/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 5a12994a5012 */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type GetchatRequest = { /** * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. */ locale?: string | undefined; /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. */ timezoneOffset?: number | undefined; getChatRequest: components.GetChatRequest; }; /** @internal */ export type GetchatRequest$Outbound = { locale?: string | undefined; timezoneOffset?: number | undefined; GetChatRequest: components.GetChatRequest$Outbound; }; /** @internal */ export const GetchatRequest$outboundSchema: z.ZodType< GetchatRequest$Outbound, z.ZodTypeDef, GetchatRequest > = z.object({ locale: z.string().optional(), timezoneOffset: z.number().int().optional(), getChatRequest: components.GetChatRequest$outboundSchema, }).transform((v) => { return remap$(v, { getChatRequest: "GetChatRequest", }); }); export function getchatRequestToJSON(getchatRequest: GetchatRequest): string { return JSON.stringify(GetchatRequest$outboundSchema.parse(getchatRequest)); }