/* * 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 GetCustomerUsageSummaryRequest = { customerId?: string | undefined; customerLookupKey?: string | undefined; featureIds?: Array | undefined; featureLookupKeys?: Array | undefined; subscriptionIds?: Array | undefined; }; /** @internal */ export type GetCustomerUsageSummaryRequest$Outbound = { customer_id?: string | undefined; customer_lookup_key?: string | undefined; feature_ids?: Array | undefined; feature_lookup_keys?: Array | undefined; subscription_ids?: Array | undefined; }; /** @internal */ export const GetCustomerUsageSummaryRequest$outboundSchema: z.ZodMiniType< GetCustomerUsageSummaryRequest$Outbound, GetCustomerUsageSummaryRequest > = z.pipe( z.object({ customerId: z.optional(z.string()), customerLookupKey: z.optional(z.string()), featureIds: z.optional(z.array(z.string())), featureLookupKeys: z.optional(z.array(z.string())), subscriptionIds: z.optional(z.array(z.string())), }), z.transform((v) => { return remap$(v, { customerId: "customer_id", customerLookupKey: "customer_lookup_key", featureIds: "feature_ids", featureLookupKeys: "feature_lookup_keys", subscriptionIds: "subscription_ids", }); }), ); export function getCustomerUsageSummaryRequestToJSON( getCustomerUsageSummaryRequest: GetCustomerUsageSummaryRequest, ): string { return JSON.stringify( GetCustomerUsageSummaryRequest$outboundSchema.parse( getCustomerUsageSummaryRequest, ), ); }