/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: f9d9f13d27f8 */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type UpdateshortcutRequest = { /** * 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; /** * Shortcut content. Id need to be specified for the shortcut. */ updateShortcutRequest: components.UpdateShortcutRequest; }; /** @internal */ export type UpdateshortcutRequest$Outbound = { locale?: string | undefined; UpdateShortcutRequest: components.UpdateShortcutRequest$Outbound; }; /** @internal */ export const UpdateshortcutRequest$outboundSchema: z.ZodType< UpdateshortcutRequest$Outbound, z.ZodTypeDef, UpdateshortcutRequest > = z.object({ locale: z.string().optional(), updateShortcutRequest: components.UpdateShortcutRequest$outboundSchema, }).transform((v) => { return remap$(v, { updateShortcutRequest: "UpdateShortcutRequest", }); }); export function updateshortcutRequestToJSON( updateshortcutRequest: UpdateshortcutRequest, ): string { return JSON.stringify( UpdateshortcutRequest$outboundSchema.parse(updateshortcutRequest), ); }