/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 92d3577970b6 */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type ConnectorListOrganizationCredentialsV1Request = { authType?: components.AuthenticationType | null | undefined; fetchDefault?: boolean | undefined; connectorIdOrName: string; }; /** @internal */ export type ConnectorListOrganizationCredentialsV1Request$Outbound = { auth_type?: string | null | undefined; fetch_default: boolean; connector_id_or_name: string; }; /** @internal */ export const ConnectorListOrganizationCredentialsV1Request$outboundSchema: z.ZodType< ConnectorListOrganizationCredentialsV1Request$Outbound, ConnectorListOrganizationCredentialsV1Request > = z.object({ authType: z.nullable(components.AuthenticationType$outboundSchema) .optional(), fetchDefault: z.boolean().default(false), connectorIdOrName: z.string(), }).transform((v) => { return remap$(v, { authType: "auth_type", fetchDefault: "fetch_default", connectorIdOrName: "connector_id_or_name", }); }); export function connectorListOrganizationCredentialsV1RequestToJSON( connectorListOrganizationCredentialsV1Request: ConnectorListOrganizationCredentialsV1Request, ): string { return JSON.stringify( ConnectorListOrganizationCredentialsV1Request$outboundSchema.parse( connectorListOrganizationCredentialsV1Request, ), ); }