/* * 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"; import { TenantBillingDetails, TenantBillingDetails$Outbound, TenantBillingDetails$outboundSchema, } from "./tenant-billing-details.js"; export type UpdateTenantRequest = { billingDetails?: TenantBillingDetails | undefined; metadata?: { [k: string]: string } | undefined; name?: string | undefined; }; /** @internal */ export type UpdateTenantRequest$Outbound = { billing_details?: TenantBillingDetails$Outbound | undefined; metadata?: { [k: string]: string } | undefined; name?: string | undefined; }; /** @internal */ export const UpdateTenantRequest$outboundSchema: z.ZodMiniType< UpdateTenantRequest$Outbound, UpdateTenantRequest > = z.pipe( z.object({ billingDetails: z.optional(TenantBillingDetails$outboundSchema), metadata: z.optional(z.record(z.string(), z.string())), name: z.optional(z.string()), }), z.transform((v) => { return remap$(v, { billingDetails: "billing_details", }); }), ); export function updateTenantRequestToJSON( updateTenantRequest: UpdateTenantRequest, ): string { return JSON.stringify( UpdateTenantRequest$outboundSchema.parse(updateTenantRequest), ); }