/* * 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 DeleteApiV1SystemBackupIdRequest = { id: number; }; /** @internal */ export const DeleteApiV1SystemBackupIdRequest$inboundSchema: z.ZodType< DeleteApiV1SystemBackupIdRequest, z.ZodTypeDef, unknown > = z.object({ id: z.number().int(), }); /** @internal */ export type DeleteApiV1SystemBackupIdRequest$Outbound = { id: number; }; /** @internal */ export const DeleteApiV1SystemBackupIdRequest$outboundSchema: z.ZodType< DeleteApiV1SystemBackupIdRequest$Outbound, z.ZodTypeDef, DeleteApiV1SystemBackupIdRequest > = 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 DeleteApiV1SystemBackupIdRequest$ { /** @deprecated use `DeleteApiV1SystemBackupIdRequest$inboundSchema` instead. */ export const inboundSchema = DeleteApiV1SystemBackupIdRequest$inboundSchema; /** @deprecated use `DeleteApiV1SystemBackupIdRequest$outboundSchema` instead. */ export const outboundSchema = DeleteApiV1SystemBackupIdRequest$outboundSchema; /** @deprecated use `DeleteApiV1SystemBackupIdRequest$Outbound` instead. */ export type Outbound = DeleteApiV1SystemBackupIdRequest$Outbound; } export function deleteApiV1SystemBackupIdRequestToJSON( deleteApiV1SystemBackupIdRequest: DeleteApiV1SystemBackupIdRequest, ): string { return JSON.stringify( DeleteApiV1SystemBackupIdRequest$outboundSchema.parse( deleteApiV1SystemBackupIdRequest, ), ); } export function deleteApiV1SystemBackupIdRequestFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeleteApiV1SystemBackupIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteApiV1SystemBackupIdRequest' from JSON`, ); }