Initializes a new Catalog.
Unique identifier for the catalog, usually a URI.
Protocol specification version this catalog targets.
Optionalcomponents: T[]
Component definitions to register.
Optionalfunctions: F[]
Function definitions to register.
OptionalthemeSchema: ZodTypeAny
Optional schema for this catalog's theme parameters.
Optionalinstructions: string
Optional system instructions or usage guidelines.
ReadonlycomponentsMap of available components keyed by component name.
Readonly to encourage immutable extension patterns.
ReadonlyfunctionsMap of functions provided by this catalog.
ReadonlyidUnique identifier for the catalog.
Optional ReadonlyinstructionsOptional system instructions or usage guidelines for this catalog.
ReadonlyinvokerFunction invoker callback that delegates to this catalog's registered functions.
ReadonlyprotocolProtocol specification version supported by this catalog.
Optional ReadonlythemeSchema for theme parameters used by this catalog.
Dynamically reconstructs and memoizes the unified standard A2UI catalog JSON Schema document.
Lazily computed component reference map for child reference extraction and topology validation.
StaticfromConstructs a schema-only Catalog directly from a raw A2UI catalog schema.
Raw catalog schema or client capabilities payload object.
OptionalprotocolVersion: string
Protocol version to use when the schema does not
declare one. Catalog schemas published before v1.0 omit the field, in
which case DEFAULT_PROTOCOL_VERSION applies.
A new Catalog populated with component and function schemas.
Collection of available components and functions.
The
Fparameter distinguishes catalogs that carry executable function implementations (FunctionImplementation, the default and the only kind a renderer should hold) from schema-only catalogs (FunctionApi), whose functions are signatures loaded from catalog JSON with no code attached. Consumers that need to execute functions, such asNodeResolver, constrainFtoFunctionImplementationso a schema-only catalog is rejected at compile time rather than resolving values toundefinedat runtime.