/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: f976d3b755d3 */ import * as z from "zod/v4"; export type CommandBootstrapRequestReceiver = { /** * Unique identifier for the deployment. */ deploymentId: string; role: "receiver"; target: string; }; export type CommandBootstrapRequestSender = { /** * Unique identifier for the deployment. */ deploymentId: string; role: "sender"; }; export type CommandBootstrapRequest = | CommandBootstrapRequestSender | CommandBootstrapRequestReceiver; /** @internal */ export type CommandBootstrapRequestReceiver$Outbound = { deploymentId: string; role: "receiver"; target: string; }; /** @internal */ export const CommandBootstrapRequestReceiver$outboundSchema: z.ZodType< CommandBootstrapRequestReceiver$Outbound, CommandBootstrapRequestReceiver > = z.object({ deploymentId: z.string(), role: z.literal("receiver"), target: z.string(), }); export function commandBootstrapRequestReceiverToJSON( commandBootstrapRequestReceiver: CommandBootstrapRequestReceiver, ): string { return JSON.stringify( CommandBootstrapRequestReceiver$outboundSchema.parse( commandBootstrapRequestReceiver, ), ); } /** @internal */ export type CommandBootstrapRequestSender$Outbound = { deploymentId: string; role: "sender"; }; /** @internal */ export const CommandBootstrapRequestSender$outboundSchema: z.ZodType< CommandBootstrapRequestSender$Outbound, CommandBootstrapRequestSender > = z.object({ deploymentId: z.string(), role: z.literal("sender"), }); export function commandBootstrapRequestSenderToJSON( commandBootstrapRequestSender: CommandBootstrapRequestSender, ): string { return JSON.stringify( CommandBootstrapRequestSender$outboundSchema.parse( commandBootstrapRequestSender, ), ); } /** @internal */ export type CommandBootstrapRequest$Outbound = | CommandBootstrapRequestSender$Outbound | CommandBootstrapRequestReceiver$Outbound; /** @internal */ export const CommandBootstrapRequest$outboundSchema: z.ZodType< CommandBootstrapRequest$Outbound, CommandBootstrapRequest > = z.union([ z.lazy(() => CommandBootstrapRequestSender$outboundSchema), z.lazy(() => CommandBootstrapRequestReceiver$outboundSchema), ]); export function commandBootstrapRequestToJSON( commandBootstrapRequest: CommandBootstrapRequest, ): string { return JSON.stringify( CommandBootstrapRequest$outboundSchema.parse(commandBootstrapRequest), ); }