/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 736804b4670f */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type ConnectorListUserCredentialsV1Request = { authType?: components.AuthenticationType | null | undefined; fetchDefault?: boolean | undefined; connectorIdOrName: string; }; /** @internal */ export type ConnectorListUserCredentialsV1Request$Outbound = { auth_type?: string | null | undefined; fetch_default: boolean; connector_id_or_name: string; }; /** @internal */ export const ConnectorListUserCredentialsV1Request$outboundSchema: z.ZodType< ConnectorListUserCredentialsV1Request$Outbound, ConnectorListUserCredentialsV1Request > = 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 connectorListUserCredentialsV1RequestToJSON( connectorListUserCredentialsV1Request: ConnectorListUserCredentialsV1Request, ): string { return JSON.stringify( ConnectorListUserCredentialsV1Request$outboundSchema.parse( connectorListUserCredentialsV1Request, ), ); }