/* * 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 { InheritanceAction, InheritanceAction$outboundSchema, } from "./inheritance-action.js"; export type SubModifyInheritanceRequest = { action?: InheritanceAction | undefined; /** * ExternalCustomerIDsToInheritSubscription is used for action="add". */ externalCustomerIdsToInheritSubscription?: Array | undefined; /** * ExternalCustomerIDsToRemove is used for action="remove". */ externalCustomerIdsToRemove?: Array | undefined; }; /** @internal */ export type SubModifyInheritanceRequest$Outbound = { action?: string | undefined; external_customer_ids_to_inherit_subscription?: Array | undefined; external_customer_ids_to_remove?: Array | undefined; }; /** @internal */ export const SubModifyInheritanceRequest$outboundSchema: z.ZodMiniType< SubModifyInheritanceRequest$Outbound, SubModifyInheritanceRequest > = z.pipe( z.object({ action: z.optional(InheritanceAction$outboundSchema), externalCustomerIdsToInheritSubscription: z.optional(z.array(z.string())), externalCustomerIdsToRemove: z.optional(z.array(z.string())), }), z.transform((v) => { return remap$(v, { externalCustomerIdsToInheritSubscription: "external_customer_ids_to_inherit_subscription", externalCustomerIdsToRemove: "external_customer_ids_to_remove", }); }), ); export function subModifyInheritanceRequestToJSON( subModifyInheritanceRequest: SubModifyInheritanceRequest, ): string { return JSON.stringify( SubModifyInheritanceRequest$outboundSchema.parse( subModifyInheritanceRequest, ), ); }