/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 308fede406ab */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; export type OAuth2ClientCredentialsInput = { grantType: "client_credentials"; clientId: string; clientSecret: string; }; /** @internal */ export type OAuth2ClientCredentialsInput$Outbound = { grant_type: "client_credentials"; client_id: string; client_secret: string; }; /** @internal */ export const OAuth2ClientCredentialsInput$outboundSchema: z.ZodType< OAuth2ClientCredentialsInput$Outbound, OAuth2ClientCredentialsInput > = z.object({ grantType: z.literal("client_credentials"), clientId: z.string(), clientSecret: z.string(), }).transform((v) => { return remap$(v, { grantType: "grant_type", clientId: "client_id", clientSecret: "client_secret", }); }); export function oAuth2ClientCredentialsInputToJSON( oAuth2ClientCredentialsInput: OAuth2ClientCredentialsInput, ): string { return JSON.stringify( OAuth2ClientCredentialsInput$outboundSchema.parse( oAuth2ClientCredentialsInput, ), ); }