@wpkernel/cli / IRResource
Interface: IRResource
Represents an Intermediate Representation (IR) for a resource.
Properties
cacheKeys
cacheKeys: object;Cache key definitions for various resource operations.
get
get: IRResourceCacheKey;list
list: IRResourceCacheKey;create?
optional create: IRResourceCacheKey;remove?
optional remove: IRResourceCacheKey;update?
optional update: IRResourceCacheKey;controllerClass
controllerClass: string;Fully-qualified PHP controller class name for this resource.
hash
hash: IRHashProvenance;A hash of the resource definition for change detection.
id
id: string;Stable identifier for the resource entry.
name
name: string;The name of the resource.
routes
routes: IRRoute[];An array of routes defined for this resource.
schemaKey
schemaKey: string;The key of the schema associated with this resource.
schemaProvenance
schemaProvenance: SchemaProvenance;The provenance of the schema.
warnings
warnings: IRWarning[];An array of warnings associated with this resource.
blocks?
optional blocks: IRResourceBlocksConfig;Optional: Generated block configuration (js-only or SSR).
capabilities?
optional capabilities: Partial<Record<string, string | ResourceCapabilityDescriptor>>;Optional: Inline capability mappings for the resource.
identity?
optional identity: ResourceIdentityConfig;Optional: Identity configuration for the resource.
queryParams?
optional queryParams: ResourceQueryParams;Optional: Query parameters configuration for the resource.
storage?
optional storage: ResourceStorageConfig;Optional: Storage configuration for the resource.
ui?
optional ui: ResourceUIConfig;Optional: UI configuration for the resource.
