/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 196c6e70ddf9 */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; import { ConnectorAuthenticationHeader, ConnectorAuthenticationHeader$Outbound, ConnectorAuthenticationHeader$outboundSchema, } from "./connectorauthenticationheader.js"; export type NoneAuthMethod = { methodType: "none"; /** * Headers whose values must be provided as credentials. */ headers?: Array | null | undefined; }; /** @internal */ export type NoneAuthMethod$Outbound = { method_type: "none"; headers?: Array | null | undefined; }; /** @internal */ export const NoneAuthMethod$outboundSchema: z.ZodType< NoneAuthMethod$Outbound, NoneAuthMethod > = z.object({ methodType: z.literal("none"), headers: z.nullable(z.array(ConnectorAuthenticationHeader$outboundSchema)) .optional(), }).transform((v) => { return remap$(v, { methodType: "method_type", }); }); export function noneAuthMethodToJSON(noneAuthMethod: NoneAuthMethod): string { return JSON.stringify(NoneAuthMethod$outboundSchema.parse(noneAuthMethod)); }