ProviderType
type ProviderType<TConfig> = { config: TConfig; id: string; name: string; setup: (config) => Promise<ProviderInstance>;};Defined in: core/src/provider/provider.type.ts:17
A registered kind of provider: its config schema plus a setup that builds a
live ProviderInstance. Config is validated against config before setup runs.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TConfig extends z.ZodType |
z.ZodType |
Properties
Section titled “Properties”config
Section titled “config”config: TConfig;Defined in: core/src/provider/provider.type.ts:20
id: string;Defined in: core/src/provider/provider.type.ts:18
name: string;Defined in: core/src/provider/provider.type.ts:19
setup: (config) => Promise<ProviderInstance>;Defined in: core/src/provider/provider.type.ts:21
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
config |
ProviderContext<TConfig> |
Returns
Section titled “Returns”Promise<ProviderInstance>