Variable: AdapterSubsystemSchemas
Makaio Framework / services-core/adapter-subsystem / AdapterSubsystemSchemas
Variable: AdapterSubsystemSchemas
Section titled “Variable: AdapterSubsystemSchemas”
constAdapterSubsystemSchemas:object
Defined in: ../../../packages/services/core/src/adapter-subsystem/schemas.ts:129
Adapter-subsystem bus schemas.
Each key becomes a subject identifier under the adapterSubsystem. namespace.
Type Declaration
Section titled “Type Declaration”adapter.registered
Section titled “adapter.registered”adapter.registered:
ZodObject<{adapterName:ZodString;displayName:ZodString;enabled:ZodBoolean;initialized:ZodBoolean;packageName:ZodString;providerDefinitionIds:ZodArray<ZodString>; },$strict>
Emitted once per adapter after the adapter-subsystem service processes a newly-active adapter package.
Replaces the retired batch adaptersRegistered event. The model registry
and other subscribers react per-adapter and debounce refreshes as needed.
Fire-and-forget; no replay guarantee.
bind:
object
Bind a provider config to an adapter.
bind.request
Section titled “bind.request”request:
ZodObject<{adapterName:ZodString;providerConfigId:ZodString; },$strict>
bind.response
Section titled “bind.response”response:
ZodObject<{binding:ZodObject<{adapterName:ZodString;isDefault:ZodBoolean;providerConfigId:ZodString; },$strict>; },$strict>
binding.created
Section titled “binding.created”binding.created:
ZodObject<{adapterName:ZodString;isDefault:ZodBoolean;providerConfigId:ZodString; },$strict> =BindingRecordSchema
Binding lifecycle events.
binding.defaultChanged
Section titled “binding.defaultChanged”binding.defaultChanged:
ZodObject<{adapterName:ZodString;providerConfigId:ZodString; },$strict>
binding.deleted
Section titled “binding.deleted”binding.deleted:
ZodObject<{adapterName:ZodString;providerConfigId:ZodString; },$strict>
buildProviderContext
Section titled “buildProviderContext”buildProviderContext:
object
Build a provider context from a provider config.
buildProviderContext.request
Section titled “buildProviderContext.request”request:
ZodObject<{providerConfigId:ZodString; },$strict>
buildProviderContext.response
Section titled “buildProviderContext.response”response:
ZodObject<{context:ZodNullable<ZodObject<{credentialEnvVars:ZodOptional<ZodRecord<ZodString,ZodString>>;credentialRefs:ZodRecord<ZodString,$ZodBranded<ZodString,"CredentialRef","out">>;definitionId:ZodString;endpointOverrides:ZodOptional<ZodObject<{anthropic:ZodOptional<…>;openai:ZodOptional<…>; },$strip>>;providerConfigId:ZodString; },$strip>>; },$strict>
createProviderConfig
Section titled “createProviderConfig”createProviderConfig:
object
Create a provider config.
createProviderConfig.request
Section titled “createProviderConfig.request”request:
ZodObject<{credentialRefs:ZodOptional<ZodRecord<ZodString,$ZodBranded<ZodString,"CredentialRef","out">>>;definitionId:ZodString;endpointOverrides:ZodOptional<ZodObject<{anthropic:ZodOptional<ZodString>;openai:ZodOptional<ZodString>; },$strip>>;isSentinel:ZodOptional<ZodBoolean>;modelFilterMode:ZodOptional<ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled:"disabled";enabled:"enabled";visible:"visible"; }>>>;name:ZodOptional<ZodString>; },$strict> =CreateCanonicalProviderConfigInputSchema
createProviderConfig.response
Section titled “createProviderConfig.response”response:
ZodObject<{config:ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled:"disabled";enabled:"enabled";visible:"visible"; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict>; },$strict>
deleteProviderConfig
Section titled “deleteProviderConfig”deleteProviderConfig:
object
Delete a provider config.
deleteProviderConfig.request
Section titled “deleteProviderConfig.request”request:
ZodObject<{id:ZodString; },$strict>
deleteProviderConfig.response
Section titled “deleteProviderConfig.response”response:
ZodObject<{deleted:ZodBoolean; },$strict>
ensureReady
Section titled “ensureReady”ensureReady:
object
Ensure the subsystem is ready for grain-constrained consumers.
ensureReady.request
Section titled “ensureReady.request”request:
ZodObject<{ },$strict> =EmptyObjectSchema
ensureReady.response
Section titled “ensureReady.response”response:
ZodObject<{ready:ZodLiteral<true>; },$strict>
findConfigForDefinitionAndAdapter
Section titled “findConfigForDefinitionAndAdapter”findConfigForDefinitionAndAdapter:
object
Find the provider config bound to a specific adapter for a definition.
findConfigForDefinitionAndAdapter.request
Section titled “findConfigForDefinitionAndAdapter.request”request:
ZodObject<{adapterName:ZodString;definitionId:ZodString; },$strict>
findConfigForDefinitionAndAdapter.response
Section titled “findConfigForDefinitionAndAdapter.response”response:
ZodObject<{config:ZodNullable<ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled: …;enabled: …;visible: …; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict>>; },$strict>
getAdapterConfig
Section titled “getAdapterConfig”getAdapterConfig:
object
Get one adapter config by adapter name.
getAdapterConfig.request
Section titled “getAdapterConfig.request”request:
ZodObject<{name:ZodString; },$strict>
getAdapterConfig.response
Section titled “getAdapterConfig.response”response:
ZodObject<{config:ZodNullable<ZodObject<{bindings:ZodArray<ZodObject<{adapterName:ZodString;isDefault:ZodBoolean;providerConfigId:ZodString; },$strict>>;clientId:ZodOptional<ZodString>;description:ZodOptional<ZodString>;displayName:ZodOptional<ZodString>;enabled:ZodBoolean;helpLinks:ZodOptional<ZodArray<ZodObject<{label: …;url: …; },$strict>>>;instructions:ZodOptional<ZodString>;name:ZodString;protocol:ZodOptional<ZodString>;providerDefinitionIds:ZodOptional<ZodArray<ZodString>>;settings:ZodOptional<ZodCustom<Record<string,unknown>,Record<string,unknown>>>; },$strict>>; },$strict>
getDefaultBinding
Section titled “getDefaultBinding”getDefaultBinding:
object
Get the default binding for an adapter.
getDefaultBinding.request
Section titled “getDefaultBinding.request”request:
ZodObject<{adapterName:ZodString; },$strict>
getDefaultBinding.response
Section titled “getDefaultBinding.response”response:
ZodObject<{binding:ZodNullable<ZodObject<{adapterName:ZodString;isDefault:ZodBoolean;providerConfigId:ZodString; },$strict>>; },$strict>
getProviderConfig
Section titled “getProviderConfig”getProviderConfig:
object
Get one provider config by ID.
getProviderConfig.request
Section titled “getProviderConfig.request”request:
ZodObject<{id:ZodString; },$strict>
getProviderConfig.response
Section titled “getProviderConfig.response”response:
ZodObject<{config:ZodNullable<ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled: …;enabled: …;visible: …; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict>>; },$strict>
getProviderDefinitionsByAdapter
Section titled “getProviderDefinitionsByAdapter”getProviderDefinitionsByAdapter:
object
Get provider definitions contributed by a specific adapter.
Returns the full provider definition array for the named adapter, including
the registry-populated availableModels set at boot time.
getProviderDefinitionsByAdapter.request
Section titled “getProviderDefinitionsByAdapter.request”request:
ZodObject<{adapterName:ZodString; },$strict>
getProviderDefinitionsByAdapter.response
Section titled “getProviderDefinitionsByAdapter.response”response:
ZodObject<{definitions:ZodArray<ZodObject<{availableModels:ZodDefault<ZodArray<ZodObject<{contextWindowSize: …;family: …;friendlyName: …;labId: …;metadata: …;name: …;supportedReasoningLevels: …; },$strip>>>;credentialEnvVars:ZodOptional<ZodRecord<ZodString,ZodString>>;defaultModel:ZodOptional<ZodString>;defaultModelFilterMode:ZodOptional<ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>>;description:ZodOptional<ZodString>;endpoints:ZodOptional<ZodObject<{anthropic:ZodOptional<…>;openai:ZodOptional<…>; },$strip>>;fastModel:ZodOptional<ZodString>;id:ZodString;name:ZodString; },$strip>>; },$strict>
listAdapterConfigs
Section titled “listAdapterConfigs”listAdapterConfigs:
object
List all adapter configs.
listAdapterConfigs.request
Section titled “listAdapterConfigs.request”request:
ZodObject<{ },$strict> =EmptyObjectSchema
listAdapterConfigs.response
Section titled “listAdapterConfigs.response”response:
ZodObject<{configs:ZodArray<ZodObject<{bindings:ZodArray<ZodObject<{adapterName:ZodString;isDefault:ZodBoolean;providerConfigId:ZodString; },$strict>>;clientId:ZodOptional<ZodString>;description:ZodOptional<ZodString>;displayName:ZodOptional<ZodString>;enabled:ZodBoolean;helpLinks:ZodOptional<ZodArray<ZodObject<{label: …;url: …; },$strict>>>;instructions:ZodOptional<ZodString>;name:ZodString;protocol:ZodOptional<ZodString>;providerDefinitionIds:ZodOptional<ZodArray<ZodString>>;settings:ZodOptional<ZodCustom<Record<string,unknown>,Record<string,unknown>>>; },$strict>>; },$strict>
listAdapters
Section titled “listAdapters”listAdapters:
object
List effective adapters.
listAdapters.request
Section titled “listAdapters.request”request:
ZodObject<{ },$strict> =EmptyObjectSchema
listAdapters.response
Section titled “listAdapters.response”response:
ZodObject<{adapters:ZodArray<ZodObject<{clientId:ZodOptional<ZodString>;configCount:ZodNumber;description:ZodOptional<ZodString>;displayName:ZodString;enabled:ZodBoolean;helpLinks:ZodOptional<ZodArray<ZodObject<{label: …;url: …; },$strict>>>;instructions:ZodOptional<ZodString>;name:ZodString;protocol:ZodOptional<ZodString>;providerDefinitionIds:ZodOptional<ZodArray<ZodString>>;readiness:ZodEnum<{needs-setup:"needs-setup";ready:"ready"; }>;supportsLogImport:ZodBoolean; },$strict>>; },$strict>
listBindings
Section titled “listBindings”listBindings:
object
List bindings for an adapter.
listBindings.request
Section titled “listBindings.request”request:
ZodObject<{adapterName:ZodString; },$strict>
listBindings.response
Section titled “listBindings.response”response:
ZodObject<{bindings:ZodArray<ZodObject<{adapterName:ZodString;isDefault:ZodBoolean;providerConfigId:ZodString; },$strict>>; },$strict>
listBindingsByConfig
Section titled “listBindingsByConfig”listBindingsByConfig:
object
List bindings for a provider config.
listBindingsByConfig.request
Section titled “listBindingsByConfig.request”request:
ZodObject<{providerConfigId:ZodString; },$strict>
listBindingsByConfig.response
Section titled “listBindingsByConfig.response”response:
ZodObject<{bindings:ZodArray<ZodObject<{adapterName:ZodString;isDefault:ZodBoolean;providerConfigId:ZodString; },$strict>>; },$strict>
listProviderConfigs
Section titled “listProviderConfigs”listProviderConfigs:
object
List provider configs, optionally filtering by enabled state.
listProviderConfigs.request
Section titled “listProviderConfigs.request”request:
ZodObject<{enabled:ZodOptional<ZodBoolean>; },$strict>
listProviderConfigs.response
Section titled “listProviderConfigs.response”response:
ZodObject<{configs:ZodArray<ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled: …;enabled: …;visible: …; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict>>; },$strict>
listProviderConfigsByDefinition
Section titled “listProviderConfigsByDefinition”listProviderConfigsByDefinition:
object
List provider configs for a given provider definition.
listProviderConfigsByDefinition.request
Section titled “listProviderConfigsByDefinition.request”request:
ZodObject<{definitionId:ZodString; },$strict>
listProviderConfigsByDefinition.response
Section titled “listProviderConfigsByDefinition.response”response:
ZodObject<{configs:ZodArray<ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled: …;enabled: …;visible: …; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict>>; },$strict>
providerConfig.created
Section titled “providerConfig.created”providerConfig.created:
ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled:"disabled";enabled:"enabled";visible:"visible"; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict> =ProviderConfigFileRecordSchema
Provider config lifecycle events.
providerConfig.defaultChanged
Section titled “providerConfig.defaultChanged”providerConfig.defaultChanged:
ZodObject<{configId:ZodNullable<ZodString>;definitionId:ZodString; },$strict>
providerConfig.deleted
Section titled “providerConfig.deleted”providerConfig.deleted:
ZodObject<{id:ZodString; },$strict>
providerConfig.updated
Section titled “providerConfig.updated”providerConfig.updated:
ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled:"disabled";enabled:"enabled";visible:"visible"; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict> =ProviderConfigFileRecordSchema
ready:
ZodObject<{ },$strict> =EmptyObjectSchema
Readiness observability event (fire-and-forget, no replay guarantee).
Listeners registered after the subsystem emits this event will miss it.
Use ensureReady (request/response) for reliable coordination.
setAdapterConfig
Section titled “setAdapterConfig”setAdapterConfig:
object
Set adapter config fields.
setAdapterConfig.request
Section titled “setAdapterConfig.request”request:
ZodObject<{name:ZodString;patch:ZodObject<{clientId:ZodOptional<ZodString>;description:ZodOptional<ZodString>;displayName:ZodOptional<ZodString>;enabled:ZodOptional<ZodBoolean>;helpLinks:ZodOptional<ZodArray<ZodObject<{label:ZodString;url:ZodString; },$strict>>>;instructions:ZodOptional<ZodString>;protocol:ZodOptional<ZodString>;providerDefinitionIds:ZodOptional<ZodArray<ZodString>>;settings:ZodOptional<ZodCustom<Record<string,unknown>,Record<string,unknown>>>; },$strict>; },$strict>
setAdapterConfig.response
Section titled “setAdapterConfig.response”response:
ZodObject<{config:ZodObject<{bindings:ZodArray<ZodObject<{adapterName:ZodString;isDefault:ZodBoolean;providerConfigId:ZodString; },$strict>>;clientId:ZodOptional<ZodString>;description:ZodOptional<ZodString>;displayName:ZodOptional<ZodString>;enabled:ZodBoolean;helpLinks:ZodOptional<ZodArray<ZodObject<{label:ZodString;url:ZodString; },$strict>>>;instructions:ZodOptional<ZodString>;name:ZodString;protocol:ZodOptional<ZodString>;providerDefinitionIds:ZodOptional<ZodArray<ZodString>>;settings:ZodOptional<ZodCustom<Record<string,unknown>,Record<string,unknown>>>; },$strict>; },$strict>
setAdapterEnabled
Section titled “setAdapterEnabled”setAdapterEnabled:
object
Enable or disable an adapter config.
setAdapterEnabled.request
Section titled “setAdapterEnabled.request”request:
ZodObject<{enabled:ZodBoolean;name:ZodString; },$strict>
setAdapterEnabled.response
Section titled “setAdapterEnabled.response”response:
ZodObject<{success:ZodBoolean; },$strict>
setDefaultBinding
Section titled “setDefaultBinding”setDefaultBinding:
object
Set the default binding for an adapter.
setDefaultBinding.request
Section titled “setDefaultBinding.request”request:
ZodObject<{adapterName:ZodString;providerConfigId:ZodString; },$strict>
setDefaultBinding.response
Section titled “setDefaultBinding.response”response:
ZodObject<{ },$strict> =EmptyObjectSchema
setDefaultProviderConfig
Section titled “setDefaultProviderConfig”setDefaultProviderConfig:
object
Set the default provider config for its definition.
setDefaultProviderConfig.request
Section titled “setDefaultProviderConfig.request”request:
ZodObject<{id:ZodString; },$strict>
setDefaultProviderConfig.response
Section titled “setDefaultProviderConfig.response”response:
ZodObject<{config:ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled:"disabled";enabled:"enabled";visible:"visible"; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict>; },$strict>
setModelFilterMode
Section titled “setModelFilterMode”setModelFilterMode:
object
Set the model filter mode for a provider config.
setModelFilterMode.request
Section titled “setModelFilterMode.request”request:
ZodObject<{id:ZodString;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;preferredModel:ZodOptional<ZodString>; },$strict>
setModelFilterMode.response
Section titled “setModelFilterMode.response”response:
ZodObject<{config:ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled:"disabled";enabled:"enabled";visible:"visible"; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict>; },$strict>
setProviderConfigCredentialRefs
Section titled “setProviderConfigCredentialRefs”setProviderConfigCredentialRefs:
object
Replace the canonical credential refs for one provider config.
setProviderConfigCredentialRefs.request
Section titled “setProviderConfigCredentialRefs.request”request:
ZodObject<{credentialRefs:ZodRecord<ZodString,$ZodBranded<ZodString,"CredentialRef","out">>;id:ZodString; },$strict>
setProviderConfigCredentialRefs.response
Section titled “setProviderConfigCredentialRefs.response”response:
ZodObject<{config:ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled:"disabled";enabled:"enabled";visible:"visible"; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict>; },$strict>
unbind
Section titled “unbind”unbind:
object
Unbind a provider config from an adapter.
unbind.request
Section titled “unbind.request”request:
ZodObject<{adapterName:ZodString;providerConfigId:ZodString; },$strict>
unbind.response
Section titled “unbind.response”response:
ZodObject<{ },$strict> =EmptyObjectSchema
updateProviderConfig
Section titled “updateProviderConfig”updateProviderConfig:
object
Update a provider config.
updateProviderConfig.request
Section titled “updateProviderConfig.request”request:
ZodObject<{id:ZodString;patch:ZodObject<{enabled:ZodOptional<ZodBoolean>;endpointOverrides:ZodOptional<ZodNullable<ZodObject<{anthropic:ZodOptional<…>;openai:ZodOptional<…>; },$strip>>>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled:"disabled";enabled:"enabled";visible:"visible"; }>>>;name:ZodOptional<ZodString>; },$strict>; },$strict>
updateProviderConfig.response
Section titled “updateProviderConfig.response”response:
ZodObject<{config:ZodObject<{definitionId:ZodString;enabled:ZodBoolean;endpointOverrides:ZodOptional<ZodRecord<ZodString,ZodString>>;hasCredentials:ZodBoolean;id:ZodString;isDefault:ZodBoolean;isSentinel:ZodBoolean;modelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;modelVisibility:ZodOptional<ZodRecord<ZodString,ZodEnum<{disabled:"disabled";enabled:"enabled";visible:"visible"; }>>>;name:ZodString;sourceRef:ZodOptional<ZodString>; },$strict>; },$strict>