Interface ResourceType

Information about a resource type, as defined in the archon.yaml file.

interface ResourceType {
    description?: string;
    intents?: ResourceIntent[];
    name: ResourceTypeName;
    parentName?: string;
    singleton?: ArchonResourceId;
}

Properties

description?: string

A human-readable description of the resource type, defined in the archon.yaml file.

intents?: ResourceIntent[]

The intents that can be used to access resources of this type, if any are defined in the archon.yaml file.

The name of the resource type, defined in the archon.yaml file.

parentName?: string

Parent resource type, if any. If this resource type has no parent, this field will be omitted.

singleton?: ArchonResourceId

If this resource type is a singleton, this field is the ARID of the singleton resource. If this resource type is not a singleton, this field will be omitted.