/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 634e074d43a0 */ import * as z from "zod/v3"; import { UserGeneratedContentId, UserGeneratedContentId$Outbound, UserGeneratedContentId$outboundSchema, } from "./usergeneratedcontentid.js"; export type GetShortcutRequest = { /** * The alias for the shortcut, including any arguments for variable shortcuts. */ alias: string; }; export type GetShortcutRequestUnion = | GetShortcutRequest | UserGeneratedContentId; /** @internal */ export type GetShortcutRequest$Outbound = { alias: string; }; /** @internal */ export const GetShortcutRequest$outboundSchema: z.ZodType< GetShortcutRequest$Outbound, z.ZodTypeDef, GetShortcutRequest > = z.object({ alias: z.string(), }); export function getShortcutRequestToJSON( getShortcutRequest: GetShortcutRequest, ): string { return JSON.stringify( GetShortcutRequest$outboundSchema.parse(getShortcutRequest), ); } /** @internal */ export type GetShortcutRequestUnion$Outbound = | GetShortcutRequest$Outbound | UserGeneratedContentId$Outbound; /** @internal */ export const GetShortcutRequestUnion$outboundSchema: z.ZodType< GetShortcutRequestUnion$Outbound, z.ZodTypeDef, GetShortcutRequestUnion > = z.union([ z.lazy(() => GetShortcutRequest$outboundSchema), UserGeneratedContentId$outboundSchema, ]); export function getShortcutRequestUnionToJSON( getShortcutRequestUnion: GetShortcutRequestUnion, ): string { return JSON.stringify( GetShortcutRequestUnion$outboundSchema.parse(getShortcutRequestUnion), ); }