/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { remap as remap$ } from "../../lib/primitives.js"; export type CustomerPortalLicenseKeysGetSecurity = { customerSession?: string | undefined; memberSession?: string | undefined; }; export type CustomerPortalLicenseKeysGetRequest = { id: string; }; /** @internal */ export type CustomerPortalLicenseKeysGetSecurity$Outbound = { customer_session?: string | undefined; member_session?: string | undefined; }; /** @internal */ export const CustomerPortalLicenseKeysGetSecurity$outboundSchema: z.ZodMiniType< CustomerPortalLicenseKeysGetSecurity$Outbound, CustomerPortalLicenseKeysGetSecurity > = z.pipe( z.object({ customerSession: z.optional(z.string()), memberSession: z.optional(z.string()), }), z.transform((v) => { return remap$(v, { customerSession: "customer_session", memberSession: "member_session", }); }), ); export function customerPortalLicenseKeysGetSecurityToJSON( customerPortalLicenseKeysGetSecurity: CustomerPortalLicenseKeysGetSecurity, ): string { return JSON.stringify( CustomerPortalLicenseKeysGetSecurity$outboundSchema.parse( customerPortalLicenseKeysGetSecurity, ), ); } /** @internal */ export type CustomerPortalLicenseKeysGetRequest$Outbound = { id: string; }; /** @internal */ export const CustomerPortalLicenseKeysGetRequest$outboundSchema: z.ZodMiniType< CustomerPortalLicenseKeysGetRequest$Outbound, CustomerPortalLicenseKeysGetRequest > = z.object({ id: z.string(), }); export function customerPortalLicenseKeysGetRequestToJSON( customerPortalLicenseKeysGetRequest: CustomerPortalLicenseKeysGetRequest, ): string { return JSON.stringify( CustomerPortalLicenseKeysGetRequest$outboundSchema.parse( customerPortalLicenseKeysGetRequest, ), ); }