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