Skip to main content

Variable: GatewayConfigVersionSchema

const GatewayConfigVersionSchema: ZodObject<{
id: ZodString;
name: ZodString;
slug: ZodString;
organisation_id: ZodString;
is_default: ZodNumber;
status: ZodString;
owner_id: ZodString;
updated_by: ZodString;
created_at: ZodString;
last_updated_at: ZodString;
workspace_id: ZodString;
object: ZodString;
} & {
config: ZodString;
format: ZodString;
type: ZodString;
version_id: ZodString;
success: ZodOptional<ZodBoolean>;
data: ZodOptional<ZodObject<{
config: ZodOptional<ZodObject<{
retry: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
cache: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
strategy: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
targets: ZodOptional<ZodArray<..., ...>>;
provider: ZodOptional<ZodString>;
virtual_key: ZodOptional<ZodString>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
retry?: {
attempts?: ...;
on_status_codes?: ...;
};
cache?: {
mode?: ...;
max_age?: ...;
};
strategy?: {
mode: ...;
};
targets?: ...[];
provider?: string;
virtual_key?: string;
}, {
retry?: {
attempts?: ...;
on_status_codes?: ...;
};
cache?: {
mode?: ...;
max_age?: ...;
};
strategy?: {
mode: ...;
};
targets?: ...[];
provider?: string;
virtual_key?: string;
}>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
config: ZodOptional<ZodObject<{
retry: ZodOptional<...>;
cache: ZodOptional<...>;
strategy: ZodOptional<...>;
targets: ZodOptional<...>;
provider: ZodOptional<...>;
virtual_key: ZodOptional<...>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
retry?: ... | ...;
cache?: ... | ...;
strategy?: ... | ...;
targets?: ... | ...;
provider?: ... | ...;
virtual_key?: ... | ...;
}, {
retry?: ... | ...;
cache?: ... | ...;
strategy?: ... | ...;
targets?: ... | ...;
provider?: ... | ...;
virtual_key?: ... | ...;
}>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
config: ZodOptional<ZodObject<{
retry: ZodOptional<...>;
cache: ZodOptional<...>;
strategy: ZodOptional<...>;
targets: ZodOptional<...>;
provider: ZodOptional<...>;
virtual_key: ZodOptional<...>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
retry?: ... | ...;
cache?: ... | ...;
strategy?: ... | ...;
targets?: ... | ...;
provider?: ... | ...;
virtual_key?: ... | ...;
}, {
retry?: ... | ...;
cache?: ... | ...;
strategy?: ... | ...;
targets?: ... | ...;
provider?: ... | ...;
virtual_key?: ... | ...;
}>>;
}, ZodTypeAny, "passthrough">>>;
} & {
version_created_at: ZodString;
version_owner_id: ZodString;
}, "passthrough", ZodTypeAny, objectOutputType<{
id: ZodString;
name: ZodString;
slug: ZodString;
organisation_id: ZodString;
is_default: ZodNumber;
status: ZodString;
owner_id: ZodString;
updated_by: ZodString;
created_at: ZodString;
last_updated_at: ZodString;
workspace_id: ZodString;
object: ZodString;
} & {
config: ZodString;
format: ZodString;
type: ZodString;
version_id: ZodString;
success: ZodOptional<ZodBoolean>;
data: ZodOptional<ZodObject<{
config: ZodOptional<ZodObject<{
retry: ZodOptional<...>;
cache: ZodOptional<...>;
strategy: ZodOptional<...>;
targets: ZodOptional<...>;
provider: ZodOptional<...>;
virtual_key: ZodOptional<...>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
retry?: ... | ...;
cache?: ... | ...;
strategy?: ... | ...;
targets?: ... | ...;
provider?: ... | ...;
virtual_key?: ... | ...;
}, {
retry?: ... | ...;
cache?: ... | ...;
strategy?: ... | ...;
targets?: ... | ...;
provider?: ... | ...;
virtual_key?: ... | ...;
}>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
config: ZodOptional<ZodObject<{
retry: ...;
cache: ...;
strategy: ...;
targets: ...;
provider: ...;
virtual_key: ...;
}, "strip", ZodType<..., ..., ...>, {
retry?: ...;
cache?: ...;
strategy?: ...;
targets?: ...;
provider?: ...;
virtual_key?: ...;
}, {
retry?: ...;
cache?: ...;
strategy?: ...;
targets?: ...;
provider?: ...;
virtual_key?: ...;
}>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
config: ZodOptional<ZodObject<{
retry: ...;
cache: ...;
strategy: ...;
targets: ...;
provider: ...;
virtual_key: ...;
}, "strip", ZodType<..., ..., ...>, {
retry?: ...;
cache?: ...;
strategy?: ...;
targets?: ...;
provider?: ...;
virtual_key?: ...;
}, {
retry?: ...;
cache?: ...;
strategy?: ...;
targets?: ...;
provider?: ...;
virtual_key?: ...;
}>>;
}, ZodTypeAny, "passthrough">>>;
} & {
version_created_at: ZodString;
version_owner_id: ZodString;
}, ZodTypeAny, "passthrough">, objectInputType<{
id: ZodString;
name: ZodString;
slug: ZodString;
organisation_id: ZodString;
is_default: ZodNumber;
status: ZodString;
owner_id: ZodString;
updated_by: ZodString;
created_at: ZodString;
last_updated_at: ZodString;
workspace_id: ZodString;
object: ZodString;
} & {
config: ZodString;
format: ZodString;
type: ZodString;
version_id: ZodString;
success: ZodOptional<ZodBoolean>;
data: ZodOptional<ZodObject<{
config: ZodOptional<ZodObject<{
retry: ZodOptional<...>;
cache: ZodOptional<...>;
strategy: ZodOptional<...>;
targets: ZodOptional<...>;
provider: ZodOptional<...>;
virtual_key: ZodOptional<...>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
retry?: ... | ...;
cache?: ... | ...;
strategy?: ... | ...;
targets?: ... | ...;
provider?: ... | ...;
virtual_key?: ... | ...;
}, {
retry?: ... | ...;
cache?: ... | ...;
strategy?: ... | ...;
targets?: ... | ...;
provider?: ... | ...;
virtual_key?: ... | ...;
}>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
config: ZodOptional<ZodObject<{
retry: ...;
cache: ...;
strategy: ...;
targets: ...;
provider: ...;
virtual_key: ...;
}, "strip", ZodType<..., ..., ...>, {
retry?: ...;
cache?: ...;
strategy?: ...;
targets?: ...;
provider?: ...;
virtual_key?: ...;
}, {
retry?: ...;
cache?: ...;
strategy?: ...;
targets?: ...;
provider?: ...;
virtual_key?: ...;
}>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
config: ZodOptional<ZodObject<{
retry: ...;
cache: ...;
strategy: ...;
targets: ...;
provider: ...;
virtual_key: ...;
}, "strip", ZodType<..., ..., ...>, {
retry?: ...;
cache?: ...;
strategy?: ...;
targets?: ...;
provider?: ...;
virtual_key?: ...;
}, {
retry?: ...;
cache?: ...;
strategy?: ...;
targets?: ...;
provider?: ...;
virtual_key?: ...;
}>>;
}, ZodTypeAny, "passthrough">>>;
} & {
version_created_at: ZodString;
version_owner_id: ZodString;
}, ZodTypeAny, "passthrough">>;

Defined in: src/models/ai-gateway.ts:633

One config version from GET /configs/{id}/versions. Verified live 2026-08-29.