Skip to main content

Variable: McpIntegrationCreateRequestSchema

const McpIntegrationCreateRequestSchema: ZodObject<{
name: ZodString;
organisation_id: ZodString;
workspace_id: ZodOptional<ZodString>;
slug: ZodString;
url: ZodString;
auth_type: ZodType<GatewayOpenValue<"headers" | "none" | "oauth_auto" | "oauth_client_credentials">, ZodTypeDef, GatewayOpenValue<"headers" | "none" | "oauth_auto" | "oauth_client_credentials">>;
transport: ZodType<GatewayOpenValue<"http" | "interactive" | "sse">, ZodTypeDef, GatewayOpenValue<"http" | "interactive" | "sse">>;
description: ZodOptional<ZodNullable<ZodString>>;
configurations: ZodOptional<ZodIntersection<ZodType<{
[key: string]: unknown;
custom_headers?: {
[key: string]: unknown;
};
passthrough_header?: {
[key: string]: unknown;
};
}, ZodTypeDef, {
[key: string]: unknown;
custom_headers?: {
[key: string]: unknown;
};
passthrough_header?: {
[key: string]: unknown;
};
}>, ZodType<GatewayJsonObject, ZodTypeDef, GatewayJsonObject>>>;
secret_mappings: ZodOptional<ZodArray<ZodObject<{
target_field: ZodString;
secret_reference_id: ZodString;
secret_key: ZodOptional<ZodNullable<ZodString>>;
value_format: ZodOptional<ZodNullable<ZodEnum<["json", "string"]>>>;
}, "strict", ZodTypeAny, {
target_field: string;
secret_reference_id: string;
secret_key?: string | null;
value_format?: "string" | "json" | null;
}, {
target_field: string;
secret_reference_id: string;
secret_key?: string | null;
value_format?: "string" | "json" | null;
}>, "many">>;
}, "strict", ZodTypeAny, {
name: string;
organisation_id: string;
workspace_id?: string;
slug: string;
url: string;
auth_type: GatewayOpenValue<"headers" | "none" | "oauth_auto" | "oauth_client_credentials">;
transport: GatewayOpenValue<"http" | "interactive" | "sse">;
description?: string | null;
configurations?: {
[key: string]: unknown;
custom_headers?: {
[key: string]: unknown;
};
passthrough_header?: {
[key: string]: unknown;
};
} & GatewayJsonObject;
secret_mappings?: {
target_field: string;
secret_reference_id: string;
secret_key?: string | null;
value_format?: "string" | "json" | null;
}[];
}, {
name: string;
organisation_id: string;
workspace_id?: string;
slug: string;
url: string;
auth_type: GatewayOpenValue<"headers" | "none" | "oauth_auto" | "oauth_client_credentials">;
transport: GatewayOpenValue<"http" | "interactive" | "sse">;
description?: string | null;
configurations?: {
[key: string]: unknown;
custom_headers?: {
[key: string]: unknown;
};
passthrough_header?: {
[key: string]: unknown;
};
} & GatewayJsonObject;
secret_mappings?: {
target_field: string;
secret_reference_id: string;
secret_key?: string | null;
value_format?: "string" | "json" | null;
}[];
}>;

Defined in: src/models/ai-gateway-requests.ts:415