Variable: ProviderStorageNamespace
Makaio Framework / services-core/settings/storage/providers-namespace / ProviderStorageNamespace
Variable: ProviderStorageNamespace
Section titled “Variable: ProviderStorageNamespace”
constProviderStorageNamespace:StorageNamespace<"provider",SubjectRecordFromSchemaRecord<{get: {request:ZodObject<{id:ZodString; },$strip>;response:ZodObject<{provider:ZodNullable<ZodObject<{availableModels:ZodArray<ZodObject<…, …>>;createdAt:ZodNumber;credentialEnvVars:ZodOptional<ZodRecord<…, …>>;defaultModel:ZodOptional<ZodString>;defaultModelFilterMode:ZodEnum<{allowlist: …;show-all: …; }>;description:ZodOptional<ZodString>;enabled:ZodBoolean;endpoints:ZodOptional<ZodObject<…, …>>;fastModel:ZodOptional<ZodString>;id:ZodString;name:ZodString;packageName:ZodString;updatedAt:ZodNumber; },$strip>>; },$strip>; };list: {request:ZodObject<{ },$strip>;response:ZodObject<{providers:ZodArray<ZodObject<{availableModels:ZodArray<ZodObject<…, …>>;createdAt:ZodNumber;credentialEnvVars:ZodOptional<ZodRecord<…, …>>;defaultModel:ZodOptional<ZodString>;defaultModelFilterMode:ZodEnum<{allowlist: …;show-all: …; }>;description:ZodOptional<ZodString>;enabled:ZodBoolean;endpoints:ZodOptional<ZodObject<…, …>>;fastModel:ZodOptional<ZodString>;id:ZodString;name:ZodString;packageName:ZodString;updatedAt:ZodNumber; },$strip>>; },$strip>; };listByProtocol: {request:ZodObject<{protocol:ZodEnum<{anthropic:"anthropic";openai:"openai"; }>; },$strip>;response:ZodObject<{providers:ZodArray<ZodObject<{availableModels:ZodArray<ZodObject<…, …>>;createdAt:ZodNumber;credentialEnvVars:ZodOptional<ZodRecord<…, …>>;defaultModel:ZodOptional<ZodString>;defaultModelFilterMode:ZodEnum<{allowlist: …;show-all: …; }>;description:ZodOptional<ZodString>;enabled:ZodBoolean;endpoints:ZodOptional<ZodObject<…, …>>;fastModel:ZodOptional<ZodString>;id:ZodString;name:ZodString;packageName:ZodString;updatedAt:ZodNumber; },$strip>>; },$strip>; }; }>, {[key:string]:string; },StorageNamespaceExtensions, {get: {request:ZodObject<{id:ZodString; },$strip>;response:ZodObject<{provider:ZodNullable<ZodObject<{availableModels:ZodArray<ZodObject<{contextWindowSize: …;family: …;friendlyName: …;labId: …;metadata: …;name: …;supportedReasoningLevels: …; },$strip>>;createdAt:ZodNumber;credentialEnvVars:ZodOptional<ZodRecord<ZodString,ZodString>>;defaultModel:ZodOptional<ZodString>;defaultModelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;description:ZodOptional<ZodString>;enabled:ZodBoolean;endpoints:ZodOptional<ZodObject<{anthropic: …;openai: …; },$strip>>;fastModel:ZodOptional<ZodString>;id:ZodString;name:ZodString;packageName:ZodString;updatedAt:ZodNumber; },$strip>>; },$strip>; };list: {request:ZodObject<{ },$strip>;response:ZodObject<{providers:ZodArray<ZodObject<{availableModels:ZodArray<ZodObject<{contextWindowSize: …;family: …;friendlyName: …;labId: …;metadata: …;name: …;supportedReasoningLevels: …; },$strip>>;createdAt:ZodNumber;credentialEnvVars:ZodOptional<ZodRecord<ZodString,ZodString>>;defaultModel:ZodOptional<ZodString>;defaultModelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;description:ZodOptional<ZodString>;enabled:ZodBoolean;endpoints:ZodOptional<ZodObject<{anthropic: …;openai: …; },$strip>>;fastModel:ZodOptional<ZodString>;id:ZodString;name:ZodString;packageName:ZodString;updatedAt:ZodNumber; },$strip>>; },$strip>; };listByProtocol: {request:ZodObject<{protocol:ZodEnum<{anthropic:"anthropic";openai:"openai"; }>; },$strip>;response:ZodObject<{providers:ZodArray<ZodObject<{availableModels:ZodArray<ZodObject<{contextWindowSize: …;family: …;friendlyName: …;labId: …;metadata: …;name: …;supportedReasoningLevels: …; },$strip>>;createdAt:ZodNumber;credentialEnvVars:ZodOptional<ZodRecord<ZodString,ZodString>>;defaultModel:ZodOptional<ZodString>;defaultModelFilterMode:ZodEnum<{allowlist:"allowlist";show-all:"show-all"; }>;description:ZodOptional<ZodString>;enabled:ZodBoolean;endpoints:ZodOptional<ZodObject<{anthropic: …;openai: …; },$strip>>;fastModel:ZodOptional<ZodString>;id:ZodString;name:ZodString;packageName:ZodString;updatedAt:ZodNumber; },$strip>>; },$strip>; }; }>
Defined in: ../../../packages/services/core/src/settings/storage/providers-namespace.ts:51
Storage namespace for system-managed provider records.
Exposes read-only bus subjects for querying provider data. All writes are internal — owned by the provider sync service at boot time.
get: Retrieve a single provider by IDlist: Retrieve all providerslistByProtocol: Retrieve all providers that support a given wire protocol