/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: fcad6fa47dd8 */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type GetshortcutRequest = { /** * 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; /** * GetShortcut request */ getShortcutRequest: components.GetShortcutRequestUnion; }; /** @internal */ export type GetshortcutRequest$Outbound = { locale?: string | undefined; GetShortcutRequest: components.GetShortcutRequestUnion$Outbound; }; /** @internal */ export const GetshortcutRequest$outboundSchema: z.ZodType< GetshortcutRequest$Outbound, z.ZodTypeDef, GetshortcutRequest > = z.object({ locale: z.string().optional(), getShortcutRequest: components.GetShortcutRequestUnion$outboundSchema, }).transform((v) => { return remap$(v, { getShortcutRequest: "GetShortcutRequest", }); }); export function getshortcutRequestToJSON( getshortcutRequest: GetshortcutRequest, ): string { return JSON.stringify( GetshortcutRequest$outboundSchema.parse(getshortcutRequest), ); }