/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: c7cc87c198ec */ import * as z from "zod/v4"; import * as components from "../components/index.js"; export type ConnectorCreateV1Payload = | components.CreateConnectorRequest | components.CreateHTTPConnectorRequest; /** @internal */ export type ConnectorCreateV1Payload$Outbound = | components.CreateConnectorRequest$Outbound | components.CreateHTTPConnectorRequest$Outbound; /** @internal */ export const ConnectorCreateV1Payload$outboundSchema: z.ZodType< ConnectorCreateV1Payload$Outbound, ConnectorCreateV1Payload > = z.union([ components.CreateConnectorRequest$outboundSchema, components.CreateHTTPConnectorRequest$outboundSchema, ]); export function connectorCreateV1PayloadToJSON( connectorCreateV1Payload: ConnectorCreateV1Payload, ): string { return JSON.stringify( ConnectorCreateV1Payload$outboundSchema.parse(connectorCreateV1Payload), ); }