/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { ClosedEnum } from "../types/enums.js"; import { AgentConnectorTool, AgentConnectorTool$Outbound, AgentConnectorTool$outboundSchema, } from "./agent-connector-tool.js"; export const Origin = { Mcp: "mcp", Onchain: "onchain", } as const; export type Origin = ClosedEnum; export type AgentConnector = { registryId: string; name?: string | undefined; origin?: Origin | undefined; tools?: Array | undefined; }; /** @internal */ export const Origin$outboundSchema: z.ZodMiniEnum = z.enum( Origin, ); /** @internal */ export type AgentConnector$Outbound = { registryId: string; name?: string | undefined; origin?: string | undefined; tools?: Array | undefined; }; /** @internal */ export const AgentConnector$outboundSchema: z.ZodMiniType< AgentConnector$Outbound, AgentConnector > = z.object({ registryId: z.string(), name: z.optional(z.string()), origin: z.optional(Origin$outboundSchema), tools: z.optional(z.array(AgentConnectorTool$outboundSchema)), }); export function agentConnectorToJSON(agentConnector: AgentConnector): string { return JSON.stringify(AgentConnector$outboundSchema.parse(agentConnector)); }