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