/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: d38f4544ddee */ import * as z from "zod/v3"; export type GetpolicyRequest = { /** * The id of the policy to fetch. */ id: string; /** * The version of the policy to fetch. Each time a policy is updated, the older version is still stored. If this is left empty, the latest policy is fetched. */ version?: number | undefined; }; /** @internal */ export type GetpolicyRequest$Outbound = { id: string; version?: number | undefined; }; /** @internal */ export const GetpolicyRequest$outboundSchema: z.ZodType< GetpolicyRequest$Outbound, z.ZodTypeDef, GetpolicyRequest > = z.object({ id: z.string(), version: z.number().int().optional(), }); export function getpolicyRequestToJSON( getpolicyRequest: GetpolicyRequest, ): string { return JSON.stringify( GetpolicyRequest$outboundSchema.parse(getpolicyRequest), ); }