/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 5537f69ba2bf */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type GetAgentRequest = { /** * 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; /** * The ID of the agent. */ agentId: string; }; /** @internal */ export type GetAgentRequest$Outbound = { locale?: string | undefined; timezoneOffset?: number | undefined; agent_id: string; }; /** @internal */ export const GetAgentRequest$outboundSchema: z.ZodType< GetAgentRequest$Outbound, z.ZodTypeDef, GetAgentRequest > = z.object({ locale: z.string().optional(), timezoneOffset: z.number().int().optional(), agentId: z.string(), }).transform((v) => { return remap$(v, { agentId: "agent_id", }); }); export function getAgentRequestToJSON( getAgentRequest: GetAgentRequest, ): string { return JSON.stringify(GetAgentRequest$outboundSchema.parse(getAgentRequest)); }