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