Variable: GatewayConfigDetailSchema
const GatewayConfigDetailSchema: 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">>>;
}, "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">>>;
}, 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">>>;
}, ZodTypeAny, "passthrough">>;
Defined in: src/models/ai-gateway.ts:621
Config detail (GET /configs/{id}) — adds config, format, type, version_id on top
of the list row. config is a JSON-encoded STRING, not an object — the wire type is
preserved rather than silently parsed. Use JSON.parse(config) at the call site. Same
request/response asymmetry as mcp-integrations.configurations, see
McpIntegrationSchema.