/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteApiV1CommandIdRequest = { id: number; }; /** @internal */ export const DeleteApiV1CommandIdRequest$inboundSchema: z.ZodType< DeleteApiV1CommandIdRequest, z.ZodTypeDef, unknown > = z.object({ id: z.number().int(), }); /** @internal */ export type DeleteApiV1CommandIdRequest$Outbound = { id: number; }; /** @internal */ export const DeleteApiV1CommandIdRequest$outboundSchema: z.ZodType< DeleteApiV1CommandIdRequest$Outbound, z.ZodTypeDef, DeleteApiV1CommandIdRequest > = z.object({ id: z.number().int(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace DeleteApiV1CommandIdRequest$ { /** @deprecated use `DeleteApiV1CommandIdRequest$inboundSchema` instead. */ export const inboundSchema = DeleteApiV1CommandIdRequest$inboundSchema; /** @deprecated use `DeleteApiV1CommandIdRequest$outboundSchema` instead. */ export const outboundSchema = DeleteApiV1CommandIdRequest$outboundSchema; /** @deprecated use `DeleteApiV1CommandIdRequest$Outbound` instead. */ export type Outbound = DeleteApiV1CommandIdRequest$Outbound; } export function deleteApiV1CommandIdRequestToJSON( deleteApiV1CommandIdRequest: DeleteApiV1CommandIdRequest, ): string { return JSON.stringify( DeleteApiV1CommandIdRequest$outboundSchema.parse( deleteApiV1CommandIdRequest, ), ); } export function deleteApiV1CommandIdRequestFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeleteApiV1CommandIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteApiV1CommandIdRequest' from JSON`, ); }