autumn-js 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/adapters/express.js +6018 -6627
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +6018 -6627
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +6018 -6627
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +6019 -6628
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +6018 -6627
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-P3NB2TPD.mjs → chunk-65W4TZTS.mjs} +1 -1
- package/dist/backend/{chunk-U3XVAFP3.mjs → chunk-7KCCF4EQ.mjs} +1 -1
- package/dist/backend/{chunk-BN2RKNWA.mjs → chunk-7M2QJK3F.mjs} +1 -1
- package/dist/backend/{chunk-WBVNGT6C.mjs → chunk-ALCYAWIU.mjs} +5615 -5173
- package/dist/backend/{chunk-UFFJTOUP.mjs → chunk-DMYETTMK.mjs} +1 -1
- package/dist/backend/{chunk-O2FNE4BV.mjs → chunk-ECPEYFTT.mjs} +7 -7
- package/dist/backend/{chunk-MMTTJRJ7.mjs → chunk-QTW6YBAQ.mjs} +790 -1841
- package/dist/backend/{chunk-2WFPFKXF.mjs → chunk-UCE7X36J.mjs} +5 -5
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +6018 -6627
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +6018 -6627
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +6018 -6627
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +6018 -6627
- package/dist/backend/core/index.mjs +10 -10
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +790 -1841
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +790 -1841
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +6018 -6627
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-B4IhP62O.d.mts → routeTypes-CIyvTbT-.d.mts} +933 -268
- package/dist/backend/{routeTypes-Clg-tGZs.d.ts → routeTypes-Dovw-kXS.d.ts} +933 -268
- package/dist/better-auth/{chunk-QRHWL7PJ.mjs → chunk-AYUZ7BAL.mjs} +1 -1
- package/dist/better-auth/{chunk-ZSPHK3QP.mjs → chunk-MAM2SPNT.mjs} +790 -1841
- package/dist/better-auth/{chunk-GHX3KM47.mjs → chunk-RXQY5TZP.mjs} +5616 -5174
- package/dist/better-auth/index.js +6247 -6856
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +790 -1841
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +6018 -6627
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +6247 -6856
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -4
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-7v3j-HM8.d.ts → customer-Bp7Npmb4.d.ts} +1 -5
- package/dist/react/{customer-B1dHh-Kx.d.mts → customer-Ho7hCUyc.d.mts} +1 -5
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/index.mjs +5 -5
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListPlans.d.mts +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.mjs +5 -5
- package/dist/react/{list-plans-response-BdNdM3Qx.d.ts → list-plans-response-CN5npYlB.d.mts} +126 -5
- package/dist/react/{list-plans-response-CH1VbFIg.d.mts → list-plans-response-ZA4i4qbk.d.ts} +126 -5
- package/dist/react/{params-ClWEGYj-.d.mts → params-ChTAunjw.d.ts} +344 -25
- package/dist/react/{params-cj_zZr99.d.ts → params-xlsDk_Hb.d.mts} +344 -25
- package/dist/react/{plan-Dq6s6t9I.d.mts → plan-CrpW2EZo.d.mts} +52 -5
- package/dist/react/{plan-Dq6s6t9I.d.ts → plan-CrpW2EZo.d.ts} +52 -5
- package/dist/sdk/index.d.mts +4387 -3312
- package/dist/sdk/index.d.ts +4387 -3312
- package/dist/sdk/index.js +19203 -18287
- package/dist/sdk/index.mjs +19003 -18271
- package/package.json +3 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -103,6 +103,21 @@ var aggregateEventsResponseSchema = z.object({
|
|
|
103
103
|
|
|
104
104
|
// src/generated/attachSchemas.ts
|
|
105
105
|
import { z as z2 } from "zod/v4";
|
|
106
|
+
var attachDimensionsUpsertLicenseMatch4Schema = z2.union([
|
|
107
|
+
z2.string(),
|
|
108
|
+
z2.number(),
|
|
109
|
+
z2.boolean()
|
|
110
|
+
]);
|
|
111
|
+
var attachDimensionsUpsertLicense4Schema = z2.object({
|
|
112
|
+
match: z2.record(z2.string(), z2.union([z2.string(), z2.number(), z2.boolean()])),
|
|
113
|
+
priority: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
114
|
+
creditCost: z2.number()
|
|
115
|
+
});
|
|
116
|
+
var attachDimensionsUpsertLicenseMatch3Schema = z2.union([
|
|
117
|
+
z2.string(),
|
|
118
|
+
z2.number(),
|
|
119
|
+
z2.boolean()
|
|
120
|
+
]);
|
|
106
121
|
var attachUpsertLicenseMultipliersMatch2Schema = z2.union([
|
|
107
122
|
z2.string(),
|
|
108
123
|
z2.number(),
|
|
@@ -195,6 +210,25 @@ var attachInvoiceSchema = z2.object({
|
|
|
195
210
|
currency: z2.string(),
|
|
196
211
|
hostedInvoiceUrl: z2.string().nullable()
|
|
197
212
|
});
|
|
213
|
+
var attachUpsertLicenseExpiryOutboundSchema = z2.object({
|
|
214
|
+
duration: z2.string(),
|
|
215
|
+
length: z2.number()
|
|
216
|
+
});
|
|
217
|
+
var attachDimensionsUpsertLicenseMatch4OutboundSchema = z2.union([
|
|
218
|
+
z2.string(),
|
|
219
|
+
z2.number(),
|
|
220
|
+
z2.boolean()
|
|
221
|
+
]);
|
|
222
|
+
var attachDimensionsUpsertLicense4OutboundSchema = z2.object({
|
|
223
|
+
match: z2.record(z2.string(), z2.union([z2.string(), z2.number(), z2.boolean()])),
|
|
224
|
+
priority: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
225
|
+
credit_cost: z2.number()
|
|
226
|
+
});
|
|
227
|
+
var attachDimensionsUpsertLicenseMatch3OutboundSchema = z2.union([
|
|
228
|
+
z2.string(),
|
|
229
|
+
z2.number(),
|
|
230
|
+
z2.boolean()
|
|
231
|
+
]);
|
|
198
232
|
var attachDimensionsUpsertLicenseToUnion2OutboundSchema = z2.union([
|
|
199
233
|
z2.number(),
|
|
200
234
|
z2.string()
|
|
@@ -203,6 +237,16 @@ var attachDimensionsUpsertLicenseTier2OutboundSchema = z2.object({
|
|
|
203
237
|
to: z2.union([z2.number(), z2.string()]),
|
|
204
238
|
credit_cost: z2.number()
|
|
205
239
|
});
|
|
240
|
+
var attachDimensionsUpsertLicense3OutboundSchema = z2.object({
|
|
241
|
+
match: z2.record(z2.string(), z2.union([z2.string(), z2.number(), z2.boolean()])),
|
|
242
|
+
priority: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
243
|
+
tier_behavior: z2.literal("graduated"),
|
|
244
|
+
tiers: z2.array(attachDimensionsUpsertLicenseTier2OutboundSchema)
|
|
245
|
+
});
|
|
246
|
+
var attachUpsertLicenseDimensionsUnion2OutboundSchema = z2.union([
|
|
247
|
+
attachDimensionsUpsertLicense3OutboundSchema,
|
|
248
|
+
attachDimensionsUpsertLicense4OutboundSchema
|
|
249
|
+
]);
|
|
206
250
|
var attachUpsertLicenseMultipliersMatch2OutboundSchema = z2.union([
|
|
207
251
|
z2.string(),
|
|
208
252
|
z2.number(),
|
|
@@ -213,6 +257,25 @@ var attachUpsertLicenseMultipliers2OutboundSchema = z2.object({
|
|
|
213
257
|
factor: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
214
258
|
add: z2.union([z2.number(), z2.undefined()]).optional()
|
|
215
259
|
});
|
|
260
|
+
var attachCreditSchemaUpsertLicense2OutboundSchema = z2.object({
|
|
261
|
+
metered_feature_id: z2.string(),
|
|
262
|
+
billing_units: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
263
|
+
dimensions: z2.union([
|
|
264
|
+
z2.record(
|
|
265
|
+
z2.string(),
|
|
266
|
+
z2.union([
|
|
267
|
+
attachDimensionsUpsertLicense3OutboundSchema,
|
|
268
|
+
attachDimensionsUpsertLicense4OutboundSchema
|
|
269
|
+
])
|
|
270
|
+
),
|
|
271
|
+
z2.undefined()
|
|
272
|
+
]).optional(),
|
|
273
|
+
multipliers: z2.union([
|
|
274
|
+
z2.record(z2.string(), attachUpsertLicenseMultipliers2OutboundSchema),
|
|
275
|
+
z2.undefined()
|
|
276
|
+
]).optional(),
|
|
277
|
+
credit_cost: z2.number()
|
|
278
|
+
});
|
|
216
279
|
var attachDimensionsUpsertLicenseMatch2OutboundSchema = z2.union([
|
|
217
280
|
z2.string(),
|
|
218
281
|
z2.number(),
|
|
@@ -284,6 +347,10 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = z2.object({
|
|
|
284
347
|
tier_behavior: z2.literal("graduated"),
|
|
285
348
|
tiers: z2.array(attachUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
286
349
|
});
|
|
350
|
+
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = z2.union([
|
|
351
|
+
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
352
|
+
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
353
|
+
]);
|
|
287
354
|
var attachUpsertLicenseProviderMarkupsOutboundSchema = z2.object({
|
|
288
355
|
markup: z2.number()
|
|
289
356
|
});
|
|
@@ -303,6 +370,18 @@ var attachUpsertLicenseMarkupsOutboundSchema = z2.object({
|
|
|
303
370
|
z2.undefined()
|
|
304
371
|
]).optional().nullable()
|
|
305
372
|
});
|
|
373
|
+
var attachUpsertLicenseFeatureOverrideOutboundSchema = z2.object({
|
|
374
|
+
credit_schema: z2.union([
|
|
375
|
+
z2.array(
|
|
376
|
+
z2.union([
|
|
377
|
+
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
378
|
+
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
379
|
+
])
|
|
380
|
+
),
|
|
381
|
+
z2.undefined()
|
|
382
|
+
]).optional(),
|
|
383
|
+
markups: z2.union([attachUpsertLicenseMarkupsOutboundSchema, z2.undefined()]).optional()
|
|
384
|
+
});
|
|
306
385
|
var attachUpsertLicenseIntervalUnionOutboundSchema = z2.union([
|
|
307
386
|
z2.string(),
|
|
308
387
|
z2.string()
|
|
@@ -348,9 +427,6 @@ var attachLicenseQuantityOutboundSchema = z2.object({
|
|
|
348
427
|
license_plan_id: z2.string(),
|
|
349
428
|
quantity: z2.number()
|
|
350
429
|
});
|
|
351
|
-
var attachDimensionsToUpsertLicenseEnum2Schema = z2.any();
|
|
352
|
-
var attachDimensionsUpsertLicenseMatch3Schema = z2.any();
|
|
353
|
-
var attachDimensionsUpsertLicense4Schema = z2.any();
|
|
354
430
|
var closedEnumSchema2 = z2.any();
|
|
355
431
|
var attachUpsertLicenseThresholdBillingSchema = z2.any();
|
|
356
432
|
var attachUpsertLicenseResetSchema = z2.any();
|
|
@@ -367,8 +443,6 @@ var attachBillingControlsSchema = z2.any();
|
|
|
367
443
|
var attachFeatureQuantitySchema = z2.any();
|
|
368
444
|
var attachFreeTrialParamsSchema = z2.any();
|
|
369
445
|
var openEnumSchema2 = z2.any();
|
|
370
|
-
var attachDimensionsUpsertLicenseMatch3OutboundSchema = z2.any();
|
|
371
|
-
var attachDimensionsUpsertLicense4OutboundSchema = z2.any();
|
|
372
446
|
var attachUpsertLicenseThresholdBillingOutboundSchema = z2.any();
|
|
373
447
|
var attachUpsertLicenseResetOutboundSchema = z2.any();
|
|
374
448
|
var attachUpsertLicensePriceOutboundSchema = z2.any();
|
|
@@ -383,6 +457,12 @@ var attachCustomizeFreeTrialParamsOutboundSchema = z2.any();
|
|
|
383
457
|
var attachBillingControlsOutboundSchema = z2.any();
|
|
384
458
|
var attachFeatureQuantityOutboundSchema = z2.any();
|
|
385
459
|
var attachFreeTrialParamsOutboundSchema = z2.any();
|
|
460
|
+
var attachUpsertLicenseDurationSchema = closedEnumSchema2;
|
|
461
|
+
var attachUpsertLicenseExpirySchema = z2.object({
|
|
462
|
+
duration: attachUpsertLicenseDurationSchema,
|
|
463
|
+
length: z2.number()
|
|
464
|
+
});
|
|
465
|
+
var attachDimensionsToUpsertLicenseEnum2Schema = closedEnumSchema2;
|
|
386
466
|
var attachDimensionsUpsertLicenseToUnion2Schema = z2.union([
|
|
387
467
|
z2.number(),
|
|
388
468
|
attachDimensionsToUpsertLicenseEnum2Schema
|
|
@@ -392,7 +472,7 @@ var attachDimensionsUpsertLicenseTier2Schema = z2.object({
|
|
|
392
472
|
creditCost: z2.number()
|
|
393
473
|
});
|
|
394
474
|
var attachDimensionsUpsertLicense3Schema = z2.object({
|
|
395
|
-
match: z2.record(z2.string(),
|
|
475
|
+
match: z2.record(z2.string(), z2.union([z2.string(), z2.number(), z2.boolean()])),
|
|
396
476
|
priority: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
397
477
|
tierBehavior: z2.literal("graduated"),
|
|
398
478
|
tiers: z2.array(attachDimensionsUpsertLicenseTier2Schema)
|
|
@@ -494,6 +574,7 @@ var attachUpsertLicensePlanItemSchema = z2.object({
|
|
|
494
574
|
price: z2.union([attachUpsertLicensePriceSchema, z2.undefined()]).optional(),
|
|
495
575
|
proration: z2.union([attachUpsertLicenseProrationSchema, z2.undefined()]).optional(),
|
|
496
576
|
rollover: z2.union([attachUpsertLicenseRolloverSchema, z2.undefined()]).optional(),
|
|
577
|
+
expiry: z2.union([attachUpsertLicenseExpirySchema, z2.undefined()]).optional(),
|
|
497
578
|
featureOverride: z2.union([attachUpsertLicenseFeatureOverrideSchema, z2.undefined()]).optional()
|
|
498
579
|
});
|
|
499
580
|
var attachUpsertLicenseRemoveItemBillingMethodSchema = closedEnumSchema2;
|
|
@@ -585,54 +666,6 @@ var attachResponseSchema = z2.object({
|
|
|
585
666
|
paymentUrl: z2.string().nullable(),
|
|
586
667
|
requiredAction: z2.union([attachRequiredActionSchema, z2.undefined()]).optional()
|
|
587
668
|
});
|
|
588
|
-
var attachDimensionsUpsertLicense3OutboundSchema = z2.object({
|
|
589
|
-
match: z2.record(
|
|
590
|
-
z2.string(),
|
|
591
|
-
attachDimensionsUpsertLicenseMatch3OutboundSchema
|
|
592
|
-
),
|
|
593
|
-
priority: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
594
|
-
tier_behavior: z2.literal("graduated"),
|
|
595
|
-
tiers: z2.array(attachDimensionsUpsertLicenseTier2OutboundSchema)
|
|
596
|
-
});
|
|
597
|
-
var attachUpsertLicenseDimensionsUnion2OutboundSchema = z2.union([
|
|
598
|
-
attachDimensionsUpsertLicense3OutboundSchema,
|
|
599
|
-
attachDimensionsUpsertLicense4OutboundSchema
|
|
600
|
-
]);
|
|
601
|
-
var attachCreditSchemaUpsertLicense2OutboundSchema = z2.object({
|
|
602
|
-
metered_feature_id: z2.string(),
|
|
603
|
-
billing_units: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
604
|
-
dimensions: z2.union([
|
|
605
|
-
z2.record(
|
|
606
|
-
z2.string(),
|
|
607
|
-
z2.union([
|
|
608
|
-
attachDimensionsUpsertLicense3OutboundSchema,
|
|
609
|
-
attachDimensionsUpsertLicense4OutboundSchema
|
|
610
|
-
])
|
|
611
|
-
),
|
|
612
|
-
z2.undefined()
|
|
613
|
-
]).optional(),
|
|
614
|
-
multipliers: z2.union([
|
|
615
|
-
z2.record(z2.string(), attachUpsertLicenseMultipliers2OutboundSchema),
|
|
616
|
-
z2.undefined()
|
|
617
|
-
]).optional(),
|
|
618
|
-
credit_cost: z2.number()
|
|
619
|
-
});
|
|
620
|
-
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = z2.union([
|
|
621
|
-
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
622
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
623
|
-
]);
|
|
624
|
-
var attachUpsertLicenseFeatureOverrideOutboundSchema = z2.object({
|
|
625
|
-
credit_schema: z2.union([
|
|
626
|
-
z2.array(
|
|
627
|
-
z2.union([
|
|
628
|
-
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
629
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
630
|
-
])
|
|
631
|
-
),
|
|
632
|
-
z2.undefined()
|
|
633
|
-
]).optional(),
|
|
634
|
-
markups: z2.union([attachUpsertLicenseMarkupsOutboundSchema, z2.undefined()]).optional()
|
|
635
|
-
});
|
|
636
669
|
var attachUpsertLicensePlanItemOutboundSchema = z2.object({
|
|
637
670
|
threshold_billing: z2.union([attachUpsertLicenseThresholdBillingOutboundSchema, z2.undefined()]).optional().nullable(),
|
|
638
671
|
feature_id: z2.string(),
|
|
@@ -643,6 +676,7 @@ var attachUpsertLicensePlanItemOutboundSchema = z2.object({
|
|
|
643
676
|
price: z2.union([attachUpsertLicensePriceOutboundSchema, z2.undefined()]).optional(),
|
|
644
677
|
proration: z2.union([attachUpsertLicenseProrationOutboundSchema, z2.undefined()]).optional(),
|
|
645
678
|
rollover: z2.union([attachUpsertLicenseRolloverOutboundSchema, z2.undefined()]).optional(),
|
|
679
|
+
expiry: z2.union([attachUpsertLicenseExpiryOutboundSchema, z2.undefined()]).optional(),
|
|
646
680
|
feature_override: z2.union([attachUpsertLicenseFeatureOverrideOutboundSchema, z2.undefined()]).optional()
|
|
647
681
|
});
|
|
648
682
|
var attachUpsertLicenseCustomizeOutboundSchema = z2.object({
|
|
@@ -808,14 +842,14 @@ var createRewardCouponRequestOutboundSchema = z5.object({
|
|
|
808
842
|
type: z5.string(),
|
|
809
843
|
value: z5.number()
|
|
810
844
|
});
|
|
811
|
-
var
|
|
845
|
+
var createRewardExpiryRequestBodyOutboundSchema = z5.object({
|
|
812
846
|
type: z5.string(),
|
|
813
847
|
length: z5.number()
|
|
814
848
|
});
|
|
815
849
|
var createRewardGrantOutboundSchema = z5.object({
|
|
816
850
|
feature_id: z5.string(),
|
|
817
851
|
included: z5.number().nullable(),
|
|
818
|
-
expiry:
|
|
852
|
+
expiry: createRewardExpiryRequestBodyOutboundSchema.nullable()
|
|
819
853
|
});
|
|
820
854
|
var createRewardFeatureGrantPromoCodeOutboundSchema = z5.object({
|
|
821
855
|
code: z5.string(),
|
|
@@ -851,14 +885,14 @@ var createRewardCouponRequestSchema = z5.object({
|
|
|
851
885
|
value: z5.number()
|
|
852
886
|
});
|
|
853
887
|
var createRewardExpiryTypeRequestBodySchema = closedEnumSchema4;
|
|
854
|
-
var
|
|
888
|
+
var createRewardExpiryRequestBodySchema = z5.object({
|
|
855
889
|
type: createRewardExpiryTypeRequestBodySchema,
|
|
856
890
|
length: z5.number()
|
|
857
891
|
});
|
|
858
892
|
var createRewardGrantSchema = z5.object({
|
|
859
893
|
featureId: z5.string(),
|
|
860
894
|
included: z5.number().nullable(),
|
|
861
|
-
expiry:
|
|
895
|
+
expiry: createRewardExpiryRequestBodySchema.nullable()
|
|
862
896
|
});
|
|
863
897
|
var createRewardFeatureGrantRequestSchema = z5.object({
|
|
864
898
|
id: z5.string(),
|
|
@@ -1391,14 +1425,6 @@ var listPlansVariantDetailsUsageLimitFilterSchema = z8.object({
|
|
|
1391
1425
|
var listPlansVariantDetailsUsageAlertFilterSchema = z8.object({
|
|
1392
1426
|
properties: z8.record(z8.string(), z8.string())
|
|
1393
1427
|
});
|
|
1394
|
-
var listPlansVariantDetailsOverageAllowedSchema = z8.object({
|
|
1395
|
-
featureId: z8.string(),
|
|
1396
|
-
enabled: z8.boolean()
|
|
1397
|
-
});
|
|
1398
|
-
var listPlansVariantDetailsUpsertLicenseAdditionalCurrencySchema = z8.object({
|
|
1399
|
-
currency: z8.string(),
|
|
1400
|
-
amount: z8.number()
|
|
1401
|
-
});
|
|
1402
1428
|
var listPlansParamsOutboundSchema = z8.object({
|
|
1403
1429
|
customer_id: z8.union([z8.string(), z8.undefined()]).optional(),
|
|
1404
1430
|
entity_id: z8.union([z8.string(), z8.undefined()]).optional(),
|
|
@@ -1452,6 +1478,11 @@ var listPlansItemRolloverSchema = z8.object({
|
|
|
1452
1478
|
expiryDurationType: listPlansItemExpiryDurationTypeSchema,
|
|
1453
1479
|
expiryDurationLength: z8.union([z8.number(), z8.undefined()]).optional()
|
|
1454
1480
|
});
|
|
1481
|
+
var listPlansItemDurationSchema = openEnumSchema6;
|
|
1482
|
+
var listPlansItemExpirySchema = z8.object({
|
|
1483
|
+
duration: listPlansItemDurationSchema,
|
|
1484
|
+
length: z8.number()
|
|
1485
|
+
});
|
|
1455
1486
|
var listPlansDimensionsToItemEnum2Schema = closedEnumSchema6;
|
|
1456
1487
|
var listPlansDimensionsItemToUnion2Schema = z8.union([
|
|
1457
1488
|
z8.number(),
|
|
@@ -1565,6 +1596,7 @@ var listPlansItemSchema = z8.object({
|
|
|
1565
1596
|
price: listPlansItemPriceSchema.nullable(),
|
|
1566
1597
|
display: z8.union([listPlansItemDisplaySchema, z8.undefined()]).optional(),
|
|
1567
1598
|
rollover: z8.union([listPlansItemRolloverSchema, z8.undefined()]).optional(),
|
|
1599
|
+
expiry: z8.union([listPlansItemExpirySchema, z8.undefined()]).optional().nullable(),
|
|
1568
1600
|
featureOverride: z8.union([listPlansItemFeatureOverrideSchema, z8.undefined()]).optional()
|
|
1569
1601
|
});
|
|
1570
1602
|
var listPlansDurationTypeSchema = openEnumSchema6;
|
|
@@ -1679,6 +1711,11 @@ var listPlansVariantDetailsRolloverSchema = z8.object({
|
|
|
1679
1711
|
expiryDurationType: listPlansVariantDetailsExpiryDurationTypeSchema,
|
|
1680
1712
|
expiryDurationLength: z8.union([z8.number(), z8.undefined()]).optional()
|
|
1681
1713
|
});
|
|
1714
|
+
var listPlansVariantDetailsDurationSchema = openEnumSchema6;
|
|
1715
|
+
var listPlansVariantDetailsExpirySchema = z8.object({
|
|
1716
|
+
duration: listPlansVariantDetailsDurationSchema,
|
|
1717
|
+
length: z8.number()
|
|
1718
|
+
});
|
|
1682
1719
|
var listPlansDimensionsToVariantDetailsEnum2Schema = closedEnumSchema6;
|
|
1683
1720
|
var listPlansDimensionsVariantDetailsToUnion2Schema = z8.union([
|
|
1684
1721
|
z8.number(),
|
|
@@ -1791,6 +1828,7 @@ var listPlansVariantDetailsPlanItemSchema = z8.object({
|
|
|
1791
1828
|
price: z8.union([listPlansVariantDetailsPriceSchema, z8.undefined()]).optional(),
|
|
1792
1829
|
proration: z8.union([listPlansVariantDetailsProrationSchema, z8.undefined()]).optional(),
|
|
1793
1830
|
rollover: z8.union([listPlansVariantDetailsRolloverSchema, z8.undefined()]).optional(),
|
|
1831
|
+
expiry: z8.union([listPlansVariantDetailsExpirySchema, z8.undefined()]).optional(),
|
|
1794
1832
|
featureOverride: z8.union([listPlansVariantDetailsFeatureOverrideSchema, z8.undefined()]).optional()
|
|
1795
1833
|
});
|
|
1796
1834
|
var listPlansVariantDetailsRemoveItemBillingMethodSchema = openEnumSchema6;
|
|
@@ -1866,19 +1904,30 @@ var listPlansVariantDetailsUsageAlertSchema = z8.object({
|
|
|
1866
1904
|
filter: z8.union([listPlansVariantDetailsUsageAlertFilterSchema, z8.undefined()]).optional(),
|
|
1867
1905
|
name: z8.union([z8.string(), z8.undefined()]).optional()
|
|
1868
1906
|
});
|
|
1869
|
-
var listPlansVariantDetailsBillingControlsSchema = z8.object({
|
|
1870
|
-
autoTopups: z8.union([z8.array(listPlansVariantDetailsAutoTopupSchema), z8.undefined()]).optional(),
|
|
1871
|
-
spendLimits: z8.union([z8.array(listPlansVariantDetailsSpendLimitSchema), z8.undefined()]).optional(),
|
|
1872
|
-
usageLimits: z8.union([z8.array(listPlansVariantDetailsUsageLimitSchema), z8.undefined()]).optional(),
|
|
1873
|
-
usageAlerts: z8.union([z8.array(listPlansVariantDetailsUsageAlertSchema), z8.undefined()]).optional(),
|
|
1874
|
-
overageAllowed: z8.union([
|
|
1875
|
-
z8.array(listPlansVariantDetailsOverageAllowedSchema),
|
|
1876
|
-
z8.undefined()
|
|
1877
|
-
]).optional()
|
|
1878
|
-
});
|
|
1879
1907
|
|
|
1880
1908
|
// src/generated/listPlansSchemas.ts
|
|
1881
1909
|
import { z as z9 } from "zod/v4";
|
|
1910
|
+
var variantPlanUsageLimitFilterSchema = z9.object({
|
|
1911
|
+
properties: z9.record(z9.string(), z9.string())
|
|
1912
|
+
});
|
|
1913
|
+
var variantPlanUsageAlertFilterSchema = z9.object({
|
|
1914
|
+
properties: z9.record(z9.string(), z9.string())
|
|
1915
|
+
});
|
|
1916
|
+
var variantPlanOverageAllowedSchema = z9.object({
|
|
1917
|
+
featureId: z9.string(),
|
|
1918
|
+
enabled: z9.boolean()
|
|
1919
|
+
});
|
|
1920
|
+
var openEnumSchema7 = z9.any();
|
|
1921
|
+
var variantPlanUsageLimitIntervalSchema = z9.any();
|
|
1922
|
+
var variantPlanAutoTopupSchema = z9.any();
|
|
1923
|
+
var variantPlanSpendLimitSchema = z9.any();
|
|
1924
|
+
var variantPlanPriceSchema = z9.any();
|
|
1925
|
+
var variantItemSchema = z9.any();
|
|
1926
|
+
var variantProcessorsSchema = z9.any();
|
|
1927
|
+
var variantFreeTrialSchema = z9.any();
|
|
1928
|
+
var variantEnvSchema = z9.any();
|
|
1929
|
+
var variantConfigSchema = z9.any();
|
|
1930
|
+
var listPlansVariantCustomizeSchema = z9.any();
|
|
1882
1931
|
var listPlansPriceSchema2 = z9.any();
|
|
1883
1932
|
var listPlansItemSchema2 = z9.any();
|
|
1884
1933
|
var listPlansProcessorsSchema2 = z9.any();
|
|
@@ -1889,7 +1938,71 @@ var listPlansBillingControlsSchema2 = z9.any();
|
|
|
1889
1938
|
var listPlansCustomerEligibilitySchema2 = z9.any();
|
|
1890
1939
|
var listPlansVariantDetailsSchema = z9.any();
|
|
1891
1940
|
var listPlansLicenseSchema = z9.any();
|
|
1892
|
-
var
|
|
1941
|
+
var variantPlanAnchorSchema = openEnumSchema7;
|
|
1942
|
+
var variantPlanUsageLimitSchema = z9.object({
|
|
1943
|
+
featureId: z9.string(),
|
|
1944
|
+
enabled: z9.boolean(),
|
|
1945
|
+
limit: z9.number(),
|
|
1946
|
+
interval: variantPlanUsageLimitIntervalSchema,
|
|
1947
|
+
anchor: z9.union([variantPlanAnchorSchema, z9.undefined()]).optional(),
|
|
1948
|
+
filter: z9.union([variantPlanUsageLimitFilterSchema, z9.undefined()]).optional()
|
|
1949
|
+
});
|
|
1950
|
+
var variantPlanThresholdTypeSchema = openEnumSchema7;
|
|
1951
|
+
var variantPlanBasisSchema = openEnumSchema7;
|
|
1952
|
+
var variantPlanUsageAlertSchema = z9.object({
|
|
1953
|
+
featureId: z9.union([z9.string(), z9.undefined()]).optional(),
|
|
1954
|
+
enabled: z9.boolean(),
|
|
1955
|
+
threshold: z9.number(),
|
|
1956
|
+
thresholdType: variantPlanThresholdTypeSchema,
|
|
1957
|
+
basis: variantPlanBasisSchema,
|
|
1958
|
+
filter: z9.union([variantPlanUsageAlertFilterSchema, z9.undefined()]).optional(),
|
|
1959
|
+
name: z9.union([z9.string(), z9.undefined()]).optional()
|
|
1960
|
+
});
|
|
1961
|
+
var variantPlanBillingControlsSchema = z9.object({
|
|
1962
|
+
autoTopups: z9.union([z9.array(variantPlanAutoTopupSchema), z9.undefined()]).optional(),
|
|
1963
|
+
spendLimits: z9.union([z9.array(variantPlanSpendLimitSchema), z9.undefined()]).optional(),
|
|
1964
|
+
usageLimits: z9.union([z9.array(variantPlanUsageLimitSchema), z9.undefined()]).optional(),
|
|
1965
|
+
usageAlerts: z9.union([z9.array(variantPlanUsageAlertSchema), z9.undefined()]).optional(),
|
|
1966
|
+
overageAllowed: z9.union([z9.array(variantPlanOverageAllowedSchema), z9.undefined()]).optional()
|
|
1967
|
+
});
|
|
1968
|
+
var variantStatusSchema = openEnumSchema7;
|
|
1969
|
+
var variantAttachActionSchema = openEnumSchema7;
|
|
1970
|
+
var variantCustomerEligibilitySchema = z9.object({
|
|
1971
|
+
trialAvailable: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
1972
|
+
status: z9.union([variantStatusSchema, z9.undefined()]).optional(),
|
|
1973
|
+
canceling: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
1974
|
+
trialing: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
1975
|
+
attachAction: variantAttachActionSchema
|
|
1976
|
+
});
|
|
1977
|
+
var listPlansPlanSchema = z9.object({
|
|
1978
|
+
id: z9.string(),
|
|
1979
|
+
name: z9.string(),
|
|
1980
|
+
description: z9.string().nullable(),
|
|
1981
|
+
group: z9.string().nullable(),
|
|
1982
|
+
version: z9.number(),
|
|
1983
|
+
versionSlug: z9.union([z9.string(), z9.undefined()]).optional().nullable(),
|
|
1984
|
+
active: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
1985
|
+
addOn: z9.boolean(),
|
|
1986
|
+
autoEnable: z9.boolean(),
|
|
1987
|
+
price: variantPlanPriceSchema.nullable(),
|
|
1988
|
+
items: z9.array(variantItemSchema),
|
|
1989
|
+
processors: z9.union([variantProcessorsSchema, z9.undefined()]).optional(),
|
|
1990
|
+
freeTrial: z9.union([variantFreeTrialSchema, z9.undefined()]).optional(),
|
|
1991
|
+
createdAt: z9.number(),
|
|
1992
|
+
env: variantEnvSchema,
|
|
1993
|
+
archived: z9.boolean(),
|
|
1994
|
+
config: variantConfigSchema,
|
|
1995
|
+
billingControls: z9.union([variantPlanBillingControlsSchema, z9.undefined()]).optional(),
|
|
1996
|
+
metadata: z9.record(z9.string(), z9.any()),
|
|
1997
|
+
customerEligibility: z9.union([variantCustomerEligibilitySchema, z9.undefined()]).optional(),
|
|
1998
|
+
baseVariantId: z9.string().nullable()
|
|
1999
|
+
});
|
|
2000
|
+
var listPlansVariantSchema = z9.object({
|
|
2001
|
+
variantPlanId: z9.string(),
|
|
2002
|
+
name: z9.string(),
|
|
2003
|
+
customize: z9.union([listPlansVariantCustomizeSchema, z9.undefined()]).optional(),
|
|
2004
|
+
plan: z9.union([listPlansPlanSchema, z9.undefined()]).optional()
|
|
2005
|
+
});
|
|
1893
2006
|
var listPlansListSchema = z9.object({
|
|
1894
2007
|
id: z9.string(),
|
|
1895
2008
|
name: z9.string(),
|
|
@@ -2129,6 +2242,10 @@ var multiAttachRolloverOutboundSchema = z10.object({
|
|
|
2129
2242
|
expiry_duration_type: z10.string(),
|
|
2130
2243
|
expiry_duration_length: z10.union([z10.number(), z10.undefined()]).optional()
|
|
2131
2244
|
});
|
|
2245
|
+
var multiAttachExpiryOutboundSchema = z10.object({
|
|
2246
|
+
duration: z10.string(),
|
|
2247
|
+
length: z10.number()
|
|
2248
|
+
});
|
|
2132
2249
|
var multiAttachDimensionsMatch4OutboundSchema = z10.union([
|
|
2133
2250
|
z10.string(),
|
|
2134
2251
|
z10.number(),
|
|
@@ -2307,6 +2424,7 @@ var multiAttachPlanItemOutboundSchema = z10.object({
|
|
|
2307
2424
|
price: z10.union([multiAttachPriceOutboundSchema, z10.undefined()]).optional(),
|
|
2308
2425
|
proration: z10.union([multiAttachProrationOutboundSchema, z10.undefined()]).optional(),
|
|
2309
2426
|
rollover: z10.union([multiAttachRolloverOutboundSchema, z10.undefined()]).optional(),
|
|
2427
|
+
expiry: z10.union([multiAttachExpiryOutboundSchema, z10.undefined()]).optional(),
|
|
2310
2428
|
feature_override: z10.union([multiAttachFeatureOverrideOutboundSchema, z10.undefined()]).optional()
|
|
2311
2429
|
});
|
|
2312
2430
|
var multiAttachCustomizeOutboundSchema = z10.object({
|
|
@@ -2406,7 +2524,7 @@ var multiAttachEntityDataOutboundSchema = z10.object({
|
|
|
2406
2524
|
});
|
|
2407
2525
|
var closedEnumSchema7 = z10.any();
|
|
2408
2526
|
var customerDataSchema = z10.any();
|
|
2409
|
-
var
|
|
2527
|
+
var openEnumSchema8 = z10.any();
|
|
2410
2528
|
var customerDataOutboundSchema = z10.any();
|
|
2411
2529
|
var multiAttachPriceIntervalSchema = closedEnumSchema7;
|
|
2412
2530
|
var multiAttachBasePriceSchema = z10.object({
|
|
@@ -2447,6 +2565,11 @@ var multiAttachRolloverSchema = z10.object({
|
|
|
2447
2565
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
2448
2566
|
expiryDurationLength: z10.union([z10.number(), z10.undefined()]).optional()
|
|
2449
2567
|
});
|
|
2568
|
+
var multiAttachDurationSchema = closedEnumSchema7;
|
|
2569
|
+
var multiAttachExpirySchema = z10.object({
|
|
2570
|
+
duration: multiAttachDurationSchema,
|
|
2571
|
+
length: z10.number()
|
|
2572
|
+
});
|
|
2450
2573
|
var multiAttachDimensionsToEnum2Schema = closedEnumSchema7;
|
|
2451
2574
|
var multiAttachDimensionsToUnion2Schema = z10.union([
|
|
2452
2575
|
z10.number(),
|
|
@@ -2547,6 +2670,7 @@ var multiAttachPlanItemSchema = z10.object({
|
|
|
2547
2670
|
price: z10.union([multiAttachPriceSchema, z10.undefined()]).optional(),
|
|
2548
2671
|
proration: z10.union([multiAttachProrationSchema, z10.undefined()]).optional(),
|
|
2549
2672
|
rollover: z10.union([multiAttachRolloverSchema, z10.undefined()]).optional(),
|
|
2673
|
+
expiry: z10.union([multiAttachExpirySchema, z10.undefined()]).optional(),
|
|
2550
2674
|
featureOverride: z10.union([multiAttachFeatureOverrideSchema, z10.undefined()]).optional()
|
|
2551
2675
|
});
|
|
2552
2676
|
var multiAttachCustomizeSchema = z10.object({
|
|
@@ -2630,7 +2754,7 @@ var multiAttachParamsSchema = z10.object({
|
|
|
2630
2754
|
customerData: z10.union([customerDataSchema, z10.undefined()]).optional(),
|
|
2631
2755
|
entityData: z10.union([multiAttachEntityDataSchema, z10.undefined()]).optional()
|
|
2632
2756
|
});
|
|
2633
|
-
var multiAttachCodeSchema =
|
|
2757
|
+
var multiAttachCodeSchema = openEnumSchema8;
|
|
2634
2758
|
var multiAttachRequiredActionSchema = z10.object({
|
|
2635
2759
|
code: multiAttachCodeSchema,
|
|
2636
2760
|
reason: z10.string()
|
|
@@ -2684,6 +2808,21 @@ var openCustomerPortalParamsOutboundSchema = z11.object({
|
|
|
2684
2808
|
|
|
2685
2809
|
// src/generated/previewAttachSchemas.ts
|
|
2686
2810
|
import { z as z12 } from "zod/v4";
|
|
2811
|
+
var previewAttachDimensionsUpsertLicenseMatch4Schema = z12.union([
|
|
2812
|
+
z12.string(),
|
|
2813
|
+
z12.number(),
|
|
2814
|
+
z12.boolean()
|
|
2815
|
+
]);
|
|
2816
|
+
var previewAttachDimensionsUpsertLicense4Schema = z12.object({
|
|
2817
|
+
match: z12.record(z12.string(), z12.union([z12.string(), z12.number(), z12.boolean()])),
|
|
2818
|
+
priority: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
2819
|
+
creditCost: z12.number()
|
|
2820
|
+
});
|
|
2821
|
+
var previewAttachDimensionsUpsertLicenseMatch3Schema = z12.union([
|
|
2822
|
+
z12.string(),
|
|
2823
|
+
z12.number(),
|
|
2824
|
+
z12.boolean()
|
|
2825
|
+
]);
|
|
2687
2826
|
var previewAttachUpsertLicenseMultipliersMatch2Schema = z12.union([
|
|
2688
2827
|
z12.string(),
|
|
2689
2828
|
z12.number(),
|
|
@@ -2843,6 +2982,21 @@ var previewAttachInvoiceCreditsSchema = z12.object({
|
|
|
2843
2982
|
balance: z12.number(),
|
|
2844
2983
|
currency: z12.string()
|
|
2845
2984
|
});
|
|
2985
|
+
var previewAttachUpsertLicenseExpiryOutboundSchema = z12.object({
|
|
2986
|
+
duration: z12.string(),
|
|
2987
|
+
length: z12.number()
|
|
2988
|
+
});
|
|
2989
|
+
var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = z12.union(
|
|
2990
|
+
[z12.string(), z12.number(), z12.boolean()]
|
|
2991
|
+
);
|
|
2992
|
+
var previewAttachDimensionsUpsertLicense4OutboundSchema = z12.object({
|
|
2993
|
+
match: z12.record(z12.string(), z12.union([z12.string(), z12.number(), z12.boolean()])),
|
|
2994
|
+
priority: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
2995
|
+
credit_cost: z12.number()
|
|
2996
|
+
});
|
|
2997
|
+
var previewAttachDimensionsUpsertLicenseMatch3OutboundSchema = z12.union(
|
|
2998
|
+
[z12.string(), z12.number(), z12.boolean()]
|
|
2999
|
+
);
|
|
2846
3000
|
var previewAttachDimensionsUpsertLicenseToUnion2OutboundSchema = z12.union([z12.number(), z12.string()]);
|
|
2847
3001
|
var previewAttachDimensionsUpsertLicenseTier2OutboundSchema = z12.object(
|
|
2848
3002
|
{
|
|
@@ -2850,12 +3004,46 @@ var previewAttachDimensionsUpsertLicenseTier2OutboundSchema = z12.object(
|
|
|
2850
3004
|
credit_cost: z12.number()
|
|
2851
3005
|
}
|
|
2852
3006
|
);
|
|
3007
|
+
var previewAttachDimensionsUpsertLicense3OutboundSchema = z12.object({
|
|
3008
|
+
match: z12.record(z12.string(), z12.union([z12.string(), z12.number(), z12.boolean()])),
|
|
3009
|
+
priority: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3010
|
+
tier_behavior: z12.literal("graduated"),
|
|
3011
|
+
tiers: z12.array(previewAttachDimensionsUpsertLicenseTier2OutboundSchema)
|
|
3012
|
+
});
|
|
3013
|
+
var previewAttachUpsertLicenseDimensionsUnion2OutboundSchema = z12.union(
|
|
3014
|
+
[
|
|
3015
|
+
previewAttachDimensionsUpsertLicense3OutboundSchema,
|
|
3016
|
+
previewAttachDimensionsUpsertLicense4OutboundSchema
|
|
3017
|
+
]
|
|
3018
|
+
);
|
|
2853
3019
|
var previewAttachUpsertLicenseMultipliersMatch2OutboundSchema = z12.union([z12.string(), z12.number(), z12.boolean()]);
|
|
2854
3020
|
var previewAttachUpsertLicenseMultipliers2OutboundSchema = z12.object({
|
|
2855
3021
|
match: z12.record(z12.string(), z12.union([z12.string(), z12.number(), z12.boolean()])),
|
|
2856
3022
|
factor: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
2857
3023
|
add: z12.union([z12.number(), z12.undefined()]).optional()
|
|
2858
3024
|
});
|
|
3025
|
+
var previewAttachCreditSchemaUpsertLicense2OutboundSchema = z12.object({
|
|
3026
|
+
metered_feature_id: z12.string(),
|
|
3027
|
+
billing_units: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3028
|
+
dimensions: z12.union([
|
|
3029
|
+
z12.record(
|
|
3030
|
+
z12.string(),
|
|
3031
|
+
z12.union([
|
|
3032
|
+
previewAttachDimensionsUpsertLicense3OutboundSchema,
|
|
3033
|
+
previewAttachDimensionsUpsertLicense4OutboundSchema
|
|
3034
|
+
])
|
|
3035
|
+
),
|
|
3036
|
+
z12.undefined()
|
|
3037
|
+
]).optional(),
|
|
3038
|
+
multipliers: z12.union([
|
|
3039
|
+
z12.record(
|
|
3040
|
+
z12.string(),
|
|
3041
|
+
previewAttachUpsertLicenseMultipliers2OutboundSchema
|
|
3042
|
+
),
|
|
3043
|
+
z12.undefined()
|
|
3044
|
+
]).optional(),
|
|
3045
|
+
credit_cost: z12.number()
|
|
3046
|
+
});
|
|
2859
3047
|
var previewAttachDimensionsUpsertLicenseMatch2OutboundSchema = z12.union(
|
|
2860
3048
|
[z12.string(), z12.number(), z12.boolean()]
|
|
2861
3049
|
);
|
|
@@ -2920,6 +3108,10 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = z12.object({
|
|
|
2920
3108
|
tier_behavior: z12.literal("graduated"),
|
|
2921
3109
|
tiers: z12.array(previewAttachUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
2922
3110
|
});
|
|
3111
|
+
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = z12.union([
|
|
3112
|
+
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3113
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3114
|
+
]);
|
|
2923
3115
|
var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = z12.object(
|
|
2924
3116
|
{
|
|
2925
3117
|
markup: z12.number()
|
|
@@ -2947,6 +3139,20 @@ var previewAttachUpsertLicenseMarkupsOutboundSchema = z12.object({
|
|
|
2947
3139
|
z12.undefined()
|
|
2948
3140
|
]).optional().nullable()
|
|
2949
3141
|
});
|
|
3142
|
+
var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = z12.object(
|
|
3143
|
+
{
|
|
3144
|
+
credit_schema: z12.union([
|
|
3145
|
+
z12.array(
|
|
3146
|
+
z12.union([
|
|
3147
|
+
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3148
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3149
|
+
])
|
|
3150
|
+
),
|
|
3151
|
+
z12.undefined()
|
|
3152
|
+
]).optional(),
|
|
3153
|
+
markups: z12.union([previewAttachUpsertLicenseMarkupsOutboundSchema, z12.undefined()]).optional()
|
|
3154
|
+
}
|
|
3155
|
+
);
|
|
2950
3156
|
var previewAttachUpsertLicenseIntervalUnionOutboundSchema = z12.union([
|
|
2951
3157
|
z12.string(),
|
|
2952
3158
|
z12.string()
|
|
@@ -2992,9 +3198,6 @@ var previewAttachLicenseQuantityOutboundSchema = z12.object({
|
|
|
2992
3198
|
license_plan_id: z12.string(),
|
|
2993
3199
|
quantity: z12.number()
|
|
2994
3200
|
});
|
|
2995
|
-
var previewAttachDimensionsToUpsertLicenseEnum2Schema = z12.any();
|
|
2996
|
-
var previewAttachDimensionsUpsertLicenseMatch3Schema = z12.any();
|
|
2997
|
-
var previewAttachDimensionsUpsertLicense4Schema = z12.any();
|
|
2998
3201
|
var closedEnumSchema8 = z12.any();
|
|
2999
3202
|
var previewAttachUpsertLicenseThresholdBillingSchema = z12.any();
|
|
3000
3203
|
var previewAttachUpsertLicenseResetSchema = z12.any();
|
|
@@ -3011,9 +3214,7 @@ var previewAttachBillingControlsSchema = z12.any();
|
|
|
3011
3214
|
var previewAttachFeatureQuantityRequestBodySchema = z12.any();
|
|
3012
3215
|
var previewAttachFreeTrialParamsSchema = z12.any();
|
|
3013
3216
|
var planSchema = z12.any();
|
|
3014
|
-
var
|
|
3015
|
-
var previewAttachDimensionsUpsertLicenseMatch3OutboundSchema = z12.any();
|
|
3016
|
-
var previewAttachDimensionsUpsertLicense4OutboundSchema = z12.any();
|
|
3217
|
+
var openEnumSchema9 = z12.any();
|
|
3017
3218
|
var previewAttachUpsertLicenseThresholdBillingOutboundSchema = z12.any();
|
|
3018
3219
|
var previewAttachUpsertLicenseResetOutboundSchema = z12.any();
|
|
3019
3220
|
var previewAttachUpsertLicensePriceOutboundSchema = z12.any();
|
|
@@ -3028,6 +3229,12 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = z12.any();
|
|
|
3028
3229
|
var previewAttachBillingControlsOutboundSchema = z12.any();
|
|
3029
3230
|
var previewAttachFeatureQuantityRequestBodyOutboundSchema = z12.any();
|
|
3030
3231
|
var previewAttachFreeTrialParamsOutboundSchema = z12.any();
|
|
3232
|
+
var previewAttachUpsertLicenseDurationSchema = closedEnumSchema8;
|
|
3233
|
+
var previewAttachUpsertLicenseExpirySchema = z12.object({
|
|
3234
|
+
duration: previewAttachUpsertLicenseDurationSchema,
|
|
3235
|
+
length: z12.number()
|
|
3236
|
+
});
|
|
3237
|
+
var previewAttachDimensionsToUpsertLicenseEnum2Schema = closedEnumSchema8;
|
|
3031
3238
|
var previewAttachDimensionsUpsertLicenseToUnion2Schema = z12.union([
|
|
3032
3239
|
z12.number(),
|
|
3033
3240
|
previewAttachDimensionsToUpsertLicenseEnum2Schema
|
|
@@ -3037,7 +3244,7 @@ var previewAttachDimensionsUpsertLicenseTier2Schema = z12.object({
|
|
|
3037
3244
|
creditCost: z12.number()
|
|
3038
3245
|
});
|
|
3039
3246
|
var previewAttachDimensionsUpsertLicense3Schema = z12.object({
|
|
3040
|
-
match: z12.record(z12.string(),
|
|
3247
|
+
match: z12.record(z12.string(), z12.union([z12.string(), z12.number(), z12.boolean()])),
|
|
3041
3248
|
priority: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3042
3249
|
tierBehavior: z12.literal("graduated"),
|
|
3043
3250
|
tiers: z12.array(previewAttachDimensionsUpsertLicenseTier2Schema)
|
|
@@ -3139,6 +3346,7 @@ var previewAttachUpsertLicensePlanItemSchema = z12.object({
|
|
|
3139
3346
|
price: z12.union([previewAttachUpsertLicensePriceSchema, z12.undefined()]).optional(),
|
|
3140
3347
|
proration: z12.union([previewAttachUpsertLicenseProrationSchema, z12.undefined()]).optional(),
|
|
3141
3348
|
rollover: z12.union([previewAttachUpsertLicenseRolloverSchema, z12.undefined()]).optional(),
|
|
3349
|
+
expiry: z12.union([previewAttachUpsertLicenseExpirySchema, z12.undefined()]).optional(),
|
|
3142
3350
|
featureOverride: z12.union([previewAttachUpsertLicenseFeatureOverrideSchema, z12.undefined()]).optional()
|
|
3143
3351
|
});
|
|
3144
3352
|
var previewAttachUpsertLicenseRemoveItemBillingMethodSchema = closedEnumSchema8;
|
|
@@ -3243,8 +3451,8 @@ var previewAttachOutgoingSchema = z12.object({
|
|
|
3243
3451
|
canceledAt: z12.number().nullable(),
|
|
3244
3452
|
expiresAt: z12.number().nullable()
|
|
3245
3453
|
});
|
|
3246
|
-
var previewAttachCheckoutTypeSchema =
|
|
3247
|
-
var previewAttachStatusSchema =
|
|
3454
|
+
var previewAttachCheckoutTypeSchema = openEnumSchema9;
|
|
3455
|
+
var previewAttachStatusSchema = openEnumSchema9;
|
|
3248
3456
|
var previewAttachTaxSchema = z12.object({
|
|
3249
3457
|
total: z12.number(),
|
|
3250
3458
|
amountInclusive: z12.number(),
|
|
@@ -3268,64 +3476,9 @@ var previewAttachResponseSchema = z12.object({
|
|
|
3268
3476
|
tax: z12.union([previewAttachTaxSchema, z12.undefined()]).optional(),
|
|
3269
3477
|
invoiceCredits: z12.union([previewAttachInvoiceCreditsSchema, z12.undefined()]).optional()
|
|
3270
3478
|
});
|
|
3271
|
-
var
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
previewAttachDimensionsUpsertLicenseMatch3OutboundSchema
|
|
3275
|
-
),
|
|
3276
|
-
priority: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3277
|
-
tier_behavior: z12.literal("graduated"),
|
|
3278
|
-
tiers: z12.array(previewAttachDimensionsUpsertLicenseTier2OutboundSchema)
|
|
3279
|
-
});
|
|
3280
|
-
var previewAttachUpsertLicenseDimensionsUnion2OutboundSchema = z12.union(
|
|
3281
|
-
[
|
|
3282
|
-
previewAttachDimensionsUpsertLicense3OutboundSchema,
|
|
3283
|
-
previewAttachDimensionsUpsertLicense4OutboundSchema
|
|
3284
|
-
]
|
|
3285
|
-
);
|
|
3286
|
-
var previewAttachCreditSchemaUpsertLicense2OutboundSchema = z12.object({
|
|
3287
|
-
metered_feature_id: z12.string(),
|
|
3288
|
-
billing_units: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3289
|
-
dimensions: z12.union([
|
|
3290
|
-
z12.record(
|
|
3291
|
-
z12.string(),
|
|
3292
|
-
z12.union([
|
|
3293
|
-
previewAttachDimensionsUpsertLicense3OutboundSchema,
|
|
3294
|
-
previewAttachDimensionsUpsertLicense4OutboundSchema
|
|
3295
|
-
])
|
|
3296
|
-
),
|
|
3297
|
-
z12.undefined()
|
|
3298
|
-
]).optional(),
|
|
3299
|
-
multipliers: z12.union([
|
|
3300
|
-
z12.record(
|
|
3301
|
-
z12.string(),
|
|
3302
|
-
previewAttachUpsertLicenseMultipliers2OutboundSchema
|
|
3303
|
-
),
|
|
3304
|
-
z12.undefined()
|
|
3305
|
-
]).optional(),
|
|
3306
|
-
credit_cost: z12.number()
|
|
3307
|
-
});
|
|
3308
|
-
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = z12.union([
|
|
3309
|
-
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3310
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3311
|
-
]);
|
|
3312
|
-
var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = z12.object(
|
|
3313
|
-
{
|
|
3314
|
-
credit_schema: z12.union([
|
|
3315
|
-
z12.array(
|
|
3316
|
-
z12.union([
|
|
3317
|
-
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3318
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3319
|
-
])
|
|
3320
|
-
),
|
|
3321
|
-
z12.undefined()
|
|
3322
|
-
]).optional(),
|
|
3323
|
-
markups: z12.union([previewAttachUpsertLicenseMarkupsOutboundSchema, z12.undefined()]).optional()
|
|
3324
|
-
}
|
|
3325
|
-
);
|
|
3326
|
-
var previewAttachUpsertLicensePlanItemOutboundSchema = z12.object({
|
|
3327
|
-
threshold_billing: z12.union([
|
|
3328
|
-
previewAttachUpsertLicenseThresholdBillingOutboundSchema,
|
|
3479
|
+
var previewAttachUpsertLicensePlanItemOutboundSchema = z12.object({
|
|
3480
|
+
threshold_billing: z12.union([
|
|
3481
|
+
previewAttachUpsertLicenseThresholdBillingOutboundSchema,
|
|
3329
3482
|
z12.undefined()
|
|
3330
3483
|
]).optional().nullable(),
|
|
3331
3484
|
feature_id: z12.string(),
|
|
@@ -3336,6 +3489,7 @@ var previewAttachUpsertLicensePlanItemOutboundSchema = z12.object({
|
|
|
3336
3489
|
price: z12.union([previewAttachUpsertLicensePriceOutboundSchema, z12.undefined()]).optional(),
|
|
3337
3490
|
proration: z12.union([previewAttachUpsertLicenseProrationOutboundSchema, z12.undefined()]).optional(),
|
|
3338
3491
|
rollover: z12.union([previewAttachUpsertLicenseRolloverOutboundSchema, z12.undefined()]).optional(),
|
|
3492
|
+
expiry: z12.union([previewAttachUpsertLicenseExpiryOutboundSchema, z12.undefined()]).optional(),
|
|
3339
3493
|
feature_override: z12.union([
|
|
3340
3494
|
previewAttachUpsertLicenseFeatureOverrideOutboundSchema,
|
|
3341
3495
|
z12.undefined()
|
|
@@ -3689,6 +3843,10 @@ var previewMultiAttachRolloverOutboundSchema = z13.object({
|
|
|
3689
3843
|
expiry_duration_type: z13.string(),
|
|
3690
3844
|
expiry_duration_length: z13.union([z13.number(), z13.undefined()]).optional()
|
|
3691
3845
|
});
|
|
3846
|
+
var previewMultiAttachExpiryOutboundSchema = z13.object({
|
|
3847
|
+
duration: z13.string(),
|
|
3848
|
+
length: z13.number()
|
|
3849
|
+
});
|
|
3692
3850
|
var previewMultiAttachDimensionsMatch4OutboundSchema = z13.union([
|
|
3693
3851
|
z13.string(),
|
|
3694
3852
|
z13.number(),
|
|
@@ -3867,6 +4025,7 @@ var previewMultiAttachPlanItemOutboundSchema = z13.object({
|
|
|
3867
4025
|
price: z13.union([previewMultiAttachPriceOutboundSchema, z13.undefined()]).optional(),
|
|
3868
4026
|
proration: z13.union([previewMultiAttachProrationOutboundSchema, z13.undefined()]).optional(),
|
|
3869
4027
|
rollover: z13.union([previewMultiAttachRolloverOutboundSchema, z13.undefined()]).optional(),
|
|
4028
|
+
expiry: z13.union([previewMultiAttachExpiryOutboundSchema, z13.undefined()]).optional(),
|
|
3870
4029
|
feature_override: z13.union([previewMultiAttachFeatureOverrideOutboundSchema, z13.undefined()]).optional()
|
|
3871
4030
|
});
|
|
3872
4031
|
var previewMultiAttachCustomizeOutboundSchema = z13.object({
|
|
@@ -3973,7 +4132,7 @@ var previewMultiAttachEntityDataOutboundSchema = z13.object({
|
|
|
3973
4132
|
var closedEnumSchema9 = z13.any();
|
|
3974
4133
|
var customerDataSchema2 = z13.any();
|
|
3975
4134
|
var planSchema2 = z13.any();
|
|
3976
|
-
var
|
|
4135
|
+
var openEnumSchema10 = z13.any();
|
|
3977
4136
|
var customerDataOutboundSchema2 = z13.any();
|
|
3978
4137
|
var previewMultiAttachPriceIntervalSchema = closedEnumSchema9;
|
|
3979
4138
|
var previewMultiAttachBasePriceSchema = z13.object({
|
|
@@ -4017,6 +4176,11 @@ var previewMultiAttachRolloverSchema = z13.object({
|
|
|
4017
4176
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
4018
4177
|
expiryDurationLength: z13.union([z13.number(), z13.undefined()]).optional()
|
|
4019
4178
|
});
|
|
4179
|
+
var previewMultiAttachDurationSchema = closedEnumSchema9;
|
|
4180
|
+
var previewMultiAttachExpirySchema = z13.object({
|
|
4181
|
+
duration: previewMultiAttachDurationSchema,
|
|
4182
|
+
length: z13.number()
|
|
4183
|
+
});
|
|
4020
4184
|
var previewMultiAttachDimensionsToEnum2Schema = closedEnumSchema9;
|
|
4021
4185
|
var previewMultiAttachDimensionsToUnion2Schema = z13.union([
|
|
4022
4186
|
z13.number(),
|
|
@@ -4129,6 +4293,7 @@ var previewMultiAttachPlanItemSchema = z13.object({
|
|
|
4129
4293
|
price: z13.union([previewMultiAttachPriceSchema, z13.undefined()]).optional(),
|
|
4130
4294
|
proration: z13.union([previewMultiAttachProrationSchema, z13.undefined()]).optional(),
|
|
4131
4295
|
rollover: z13.union([previewMultiAttachRolloverSchema, z13.undefined()]).optional(),
|
|
4296
|
+
expiry: z13.union([previewMultiAttachExpirySchema, z13.undefined()]).optional(),
|
|
4132
4297
|
featureOverride: z13.union([previewMultiAttachFeatureOverrideSchema, z13.undefined()]).optional()
|
|
4133
4298
|
});
|
|
4134
4299
|
var previewMultiAttachCustomizeSchema = z13.object({
|
|
@@ -4231,8 +4396,8 @@ var previewMultiAttachOutgoingSchema = z13.object({
|
|
|
4231
4396
|
canceledAt: z13.number().nullable(),
|
|
4232
4397
|
expiresAt: z13.number().nullable()
|
|
4233
4398
|
});
|
|
4234
|
-
var previewMultiAttachCheckoutTypeSchema =
|
|
4235
|
-
var previewMultiAttachStatusSchema =
|
|
4399
|
+
var previewMultiAttachCheckoutTypeSchema = openEnumSchema10;
|
|
4400
|
+
var previewMultiAttachStatusSchema = openEnumSchema10;
|
|
4236
4401
|
var previewMultiAttachTaxSchema = z13.object({
|
|
4237
4402
|
total: z13.number(),
|
|
4238
4403
|
amountInclusive: z13.number(),
|
|
@@ -4281,6 +4446,21 @@ var previewMultiAttachParamsOutboundSchema = z13.object({
|
|
|
4281
4446
|
|
|
4282
4447
|
// src/generated/previewUpdateSubscriptionSchemas.ts
|
|
4283
4448
|
import { z as z14 } from "zod/v4";
|
|
4449
|
+
var previewUpdateDimensionsUpsertLicenseMatch4Schema = z14.union([
|
|
4450
|
+
z14.string(),
|
|
4451
|
+
z14.number(),
|
|
4452
|
+
z14.boolean()
|
|
4453
|
+
]);
|
|
4454
|
+
var previewUpdateDimensionsUpsertLicense4Schema = z14.object({
|
|
4455
|
+
match: z14.record(z14.string(), z14.union([z14.string(), z14.number(), z14.boolean()])),
|
|
4456
|
+
priority: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4457
|
+
creditCost: z14.number()
|
|
4458
|
+
});
|
|
4459
|
+
var previewUpdateDimensionsUpsertLicenseMatch3Schema = z14.union([
|
|
4460
|
+
z14.string(),
|
|
4461
|
+
z14.number(),
|
|
4462
|
+
z14.boolean()
|
|
4463
|
+
]);
|
|
4284
4464
|
var previewUpdateUpsertLicenseMultipliersMatch2Schema = z14.union([
|
|
4285
4465
|
z14.string(),
|
|
4286
4466
|
z14.number(),
|
|
@@ -4349,6 +4529,10 @@ var previewUpdateAttachDiscountSchema = z14.object({
|
|
|
4349
4529
|
rewardId: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4350
4530
|
promotionCode: z14.union([z14.string(), z14.undefined()]).optional()
|
|
4351
4531
|
});
|
|
4532
|
+
var previewUpdateCustomLineItemSchema = z14.object({
|
|
4533
|
+
amount: z14.number(),
|
|
4534
|
+
description: z14.string()
|
|
4535
|
+
});
|
|
4352
4536
|
var previewUpdateBillingCycleAnchorSchema = z14.union([
|
|
4353
4537
|
z14.string(),
|
|
4354
4538
|
z14.number()
|
|
@@ -4435,6 +4619,21 @@ var previewUpdateInvoiceCreditsSchema = z14.object({
|
|
|
4435
4619
|
balance: z14.number(),
|
|
4436
4620
|
currency: z14.string()
|
|
4437
4621
|
});
|
|
4622
|
+
var previewUpdateUpsertLicenseExpiryOutboundSchema = z14.object({
|
|
4623
|
+
duration: z14.string(),
|
|
4624
|
+
length: z14.number()
|
|
4625
|
+
});
|
|
4626
|
+
var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = z14.union(
|
|
4627
|
+
[z14.string(), z14.number(), z14.boolean()]
|
|
4628
|
+
);
|
|
4629
|
+
var previewUpdateDimensionsUpsertLicense4OutboundSchema = z14.object({
|
|
4630
|
+
match: z14.record(z14.string(), z14.union([z14.string(), z14.number(), z14.boolean()])),
|
|
4631
|
+
priority: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4632
|
+
credit_cost: z14.number()
|
|
4633
|
+
});
|
|
4634
|
+
var previewUpdateDimensionsUpsertLicenseMatch3OutboundSchema = z14.union(
|
|
4635
|
+
[z14.string(), z14.number(), z14.boolean()]
|
|
4636
|
+
);
|
|
4438
4637
|
var previewUpdateDimensionsUpsertLicenseToUnion2OutboundSchema = z14.union([z14.number(), z14.string()]);
|
|
4439
4638
|
var previewUpdateDimensionsUpsertLicenseTier2OutboundSchema = z14.object(
|
|
4440
4639
|
{
|
|
@@ -4442,12 +4641,46 @@ var previewUpdateDimensionsUpsertLicenseTier2OutboundSchema = z14.object(
|
|
|
4442
4641
|
credit_cost: z14.number()
|
|
4443
4642
|
}
|
|
4444
4643
|
);
|
|
4644
|
+
var previewUpdateDimensionsUpsertLicense3OutboundSchema = z14.object({
|
|
4645
|
+
match: z14.record(z14.string(), z14.union([z14.string(), z14.number(), z14.boolean()])),
|
|
4646
|
+
priority: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4647
|
+
tier_behavior: z14.literal("graduated"),
|
|
4648
|
+
tiers: z14.array(previewUpdateDimensionsUpsertLicenseTier2OutboundSchema)
|
|
4649
|
+
});
|
|
4650
|
+
var previewUpdateUpsertLicenseDimensionsUnion2OutboundSchema = z14.union(
|
|
4651
|
+
[
|
|
4652
|
+
previewUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
4653
|
+
previewUpdateDimensionsUpsertLicense4OutboundSchema
|
|
4654
|
+
]
|
|
4655
|
+
);
|
|
4445
4656
|
var previewUpdateUpsertLicenseMultipliersMatch2OutboundSchema = z14.union([z14.string(), z14.number(), z14.boolean()]);
|
|
4446
4657
|
var previewUpdateUpsertLicenseMultipliers2OutboundSchema = z14.object({
|
|
4447
4658
|
match: z14.record(z14.string(), z14.union([z14.string(), z14.number(), z14.boolean()])),
|
|
4448
4659
|
factor: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4449
4660
|
add: z14.union([z14.number(), z14.undefined()]).optional()
|
|
4450
4661
|
});
|
|
4662
|
+
var previewUpdateCreditSchemaUpsertLicense2OutboundSchema = z14.object({
|
|
4663
|
+
metered_feature_id: z14.string(),
|
|
4664
|
+
billing_units: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4665
|
+
dimensions: z14.union([
|
|
4666
|
+
z14.record(
|
|
4667
|
+
z14.string(),
|
|
4668
|
+
z14.union([
|
|
4669
|
+
previewUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
4670
|
+
previewUpdateDimensionsUpsertLicense4OutboundSchema
|
|
4671
|
+
])
|
|
4672
|
+
),
|
|
4673
|
+
z14.undefined()
|
|
4674
|
+
]).optional(),
|
|
4675
|
+
multipliers: z14.union([
|
|
4676
|
+
z14.record(
|
|
4677
|
+
z14.string(),
|
|
4678
|
+
previewUpdateUpsertLicenseMultipliers2OutboundSchema
|
|
4679
|
+
),
|
|
4680
|
+
z14.undefined()
|
|
4681
|
+
]).optional(),
|
|
4682
|
+
credit_cost: z14.number()
|
|
4683
|
+
});
|
|
4451
4684
|
var previewUpdateDimensionsUpsertLicenseMatch2OutboundSchema = z14.union(
|
|
4452
4685
|
[z14.string(), z14.number(), z14.boolean()]
|
|
4453
4686
|
);
|
|
@@ -4512,6 +4745,10 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = z14.object({
|
|
|
4512
4745
|
tier_behavior: z14.literal("graduated"),
|
|
4513
4746
|
tiers: z14.array(previewUpdateUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
4514
4747
|
});
|
|
4748
|
+
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z14.union([
|
|
4749
|
+
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
4750
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
4751
|
+
]);
|
|
4515
4752
|
var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = z14.object(
|
|
4516
4753
|
{
|
|
4517
4754
|
markup: z14.number()
|
|
@@ -4539,6 +4776,20 @@ var previewUpdateUpsertLicenseMarkupsOutboundSchema = z14.object({
|
|
|
4539
4776
|
z14.undefined()
|
|
4540
4777
|
]).optional().nullable()
|
|
4541
4778
|
});
|
|
4779
|
+
var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = z14.object(
|
|
4780
|
+
{
|
|
4781
|
+
credit_schema: z14.union([
|
|
4782
|
+
z14.array(
|
|
4783
|
+
z14.union([
|
|
4784
|
+
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
4785
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
4786
|
+
])
|
|
4787
|
+
),
|
|
4788
|
+
z14.undefined()
|
|
4789
|
+
]).optional(),
|
|
4790
|
+
markups: z14.union([previewUpdateUpsertLicenseMarkupsOutboundSchema, z14.undefined()]).optional()
|
|
4791
|
+
}
|
|
4792
|
+
);
|
|
4542
4793
|
var previewUpdateUpsertLicenseIntervalUnionOutboundSchema = z14.union([
|
|
4543
4794
|
z14.string(),
|
|
4544
4795
|
z14.string()
|
|
@@ -4564,6 +4815,10 @@ var previewUpdateAttachDiscountOutboundSchema = z14.object({
|
|
|
4564
4815
|
reward_id: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4565
4816
|
promotion_code: z14.union([z14.string(), z14.undefined()]).optional()
|
|
4566
4817
|
});
|
|
4818
|
+
var previewUpdateCustomLineItemOutboundSchema = z14.object({
|
|
4819
|
+
amount: z14.number(),
|
|
4820
|
+
description: z14.string()
|
|
4821
|
+
});
|
|
4567
4822
|
var previewUpdateBillingCycleAnchorOutboundSchema = z14.union([
|
|
4568
4823
|
z14.string(),
|
|
4569
4824
|
z14.number()
|
|
@@ -4579,9 +4834,6 @@ var previewUpdateLicenseQuantityOutboundSchema = z14.object({
|
|
|
4579
4834
|
license_plan_id: z14.string(),
|
|
4580
4835
|
quantity: z14.number()
|
|
4581
4836
|
});
|
|
4582
|
-
var previewUpdateDimensionsToUpsertLicenseEnum2Schema = z14.any();
|
|
4583
|
-
var previewUpdateDimensionsUpsertLicenseMatch3Schema = z14.any();
|
|
4584
|
-
var previewUpdateDimensionsUpsertLicense4Schema = z14.any();
|
|
4585
4837
|
var closedEnumSchema10 = z14.any();
|
|
4586
4838
|
var previewUpdateUpsertLicenseThresholdBillingSchema = z14.any();
|
|
4587
4839
|
var previewUpdateUpsertLicenseResetSchema = z14.any();
|
|
@@ -4598,9 +4850,7 @@ var previewUpdateBillingControlsSchema = z14.any();
|
|
|
4598
4850
|
var previewUpdateFeatureQuantityRequestBodySchema = z14.any();
|
|
4599
4851
|
var previewUpdateFreeTrialParamsSchema = z14.any();
|
|
4600
4852
|
var planSchema3 = z14.any();
|
|
4601
|
-
var
|
|
4602
|
-
var previewUpdateDimensionsUpsertLicenseMatch3OutboundSchema = z14.any();
|
|
4603
|
-
var previewUpdateDimensionsUpsertLicense4OutboundSchema = z14.any();
|
|
4853
|
+
var openEnumSchema11 = z14.any();
|
|
4604
4854
|
var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = z14.any();
|
|
4605
4855
|
var previewUpdateUpsertLicenseResetOutboundSchema = z14.any();
|
|
4606
4856
|
var previewUpdateUpsertLicensePriceOutboundSchema = z14.any();
|
|
@@ -4615,6 +4865,12 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = z14.any();
|
|
|
4615
4865
|
var previewUpdateBillingControlsOutboundSchema = z14.any();
|
|
4616
4866
|
var previewUpdateFeatureQuantityRequestBodyOutboundSchema = z14.any();
|
|
4617
4867
|
var previewUpdateFreeTrialParamsOutboundSchema = z14.any();
|
|
4868
|
+
var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema10;
|
|
4869
|
+
var previewUpdateUpsertLicenseExpirySchema = z14.object({
|
|
4870
|
+
duration: previewUpdateUpsertLicenseDurationSchema,
|
|
4871
|
+
length: z14.number()
|
|
4872
|
+
});
|
|
4873
|
+
var previewUpdateDimensionsToUpsertLicenseEnum2Schema = closedEnumSchema10;
|
|
4618
4874
|
var previewUpdateDimensionsUpsertLicenseToUnion2Schema = z14.union([
|
|
4619
4875
|
z14.number(),
|
|
4620
4876
|
previewUpdateDimensionsToUpsertLicenseEnum2Schema
|
|
@@ -4624,7 +4880,7 @@ var previewUpdateDimensionsUpsertLicenseTier2Schema = z14.object({
|
|
|
4624
4880
|
creditCost: z14.number()
|
|
4625
4881
|
});
|
|
4626
4882
|
var previewUpdateDimensionsUpsertLicense3Schema = z14.object({
|
|
4627
|
-
match: z14.record(z14.string(),
|
|
4883
|
+
match: z14.record(z14.string(), z14.union([z14.string(), z14.number(), z14.boolean()])),
|
|
4628
4884
|
priority: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4629
4885
|
tierBehavior: z14.literal("graduated"),
|
|
4630
4886
|
tiers: z14.array(previewUpdateDimensionsUpsertLicenseTier2Schema)
|
|
@@ -4726,6 +4982,7 @@ var previewUpdateUpsertLicensePlanItemSchema = z14.object({
|
|
|
4726
4982
|
price: z14.union([previewUpdateUpsertLicensePriceSchema, z14.undefined()]).optional(),
|
|
4727
4983
|
proration: z14.union([previewUpdateUpsertLicenseProrationSchema, z14.undefined()]).optional(),
|
|
4728
4984
|
rollover: z14.union([previewUpdateUpsertLicenseRolloverSchema, z14.undefined()]).optional(),
|
|
4985
|
+
expiry: z14.union([previewUpdateUpsertLicenseExpirySchema, z14.undefined()]).optional(),
|
|
4729
4986
|
featureOverride: z14.union([previewUpdateUpsertLicenseFeatureOverrideSchema, z14.undefined()]).optional()
|
|
4730
4987
|
});
|
|
4731
4988
|
var previewUpdateUpsertLicenseRemoveItemBillingMethodSchema = closedEnumSchema10;
|
|
@@ -4795,6 +5052,7 @@ var previewUpdateParamsSchema = z14.object({
|
|
|
4795
5052
|
redirectMode: z14.union([previewUpdateRedirectModeSchema, z14.undefined()]).optional(),
|
|
4796
5053
|
subscriptionId: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4797
5054
|
discounts: z14.union([z14.array(previewUpdateAttachDiscountSchema), z14.undefined()]).optional(),
|
|
5055
|
+
customLineItems: z14.union([z14.array(previewUpdateCustomLineItemSchema), z14.undefined()]).optional(),
|
|
4798
5056
|
cancelAction: z14.union([previewUpdateCancelActionSchema, z14.undefined()]).optional(),
|
|
4799
5057
|
billingCycleAnchor: z14.union([z14.string(), z14.number(), z14.undefined()]).optional(),
|
|
4800
5058
|
noBillingChanges: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
@@ -4820,8 +5078,8 @@ var previewUpdateOutgoingSchema = z14.object({
|
|
|
4820
5078
|
canceledAt: z14.number().nullable(),
|
|
4821
5079
|
expiresAt: z14.number().nullable()
|
|
4822
5080
|
});
|
|
4823
|
-
var intentSchema =
|
|
4824
|
-
var previewUpdateStatusSchema =
|
|
5081
|
+
var intentSchema = openEnumSchema11;
|
|
5082
|
+
var previewUpdateStatusSchema = openEnumSchema11;
|
|
4825
5083
|
var previewUpdateTaxSchema = z14.object({
|
|
4826
5084
|
total: z14.number(),
|
|
4827
5085
|
amountInclusive: z14.number(),
|
|
@@ -4844,61 +5102,6 @@ var previewUpdateResponseSchema = z14.object({
|
|
|
4844
5102
|
tax: z14.union([previewUpdateTaxSchema, z14.undefined()]).optional(),
|
|
4845
5103
|
invoiceCredits: z14.union([previewUpdateInvoiceCreditsSchema, z14.undefined()]).optional()
|
|
4846
5104
|
});
|
|
4847
|
-
var previewUpdateDimensionsUpsertLicense3OutboundSchema = z14.object({
|
|
4848
|
-
match: z14.record(
|
|
4849
|
-
z14.string(),
|
|
4850
|
-
previewUpdateDimensionsUpsertLicenseMatch3OutboundSchema
|
|
4851
|
-
),
|
|
4852
|
-
priority: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4853
|
-
tier_behavior: z14.literal("graduated"),
|
|
4854
|
-
tiers: z14.array(previewUpdateDimensionsUpsertLicenseTier2OutboundSchema)
|
|
4855
|
-
});
|
|
4856
|
-
var previewUpdateUpsertLicenseDimensionsUnion2OutboundSchema = z14.union(
|
|
4857
|
-
[
|
|
4858
|
-
previewUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
4859
|
-
previewUpdateDimensionsUpsertLicense4OutboundSchema
|
|
4860
|
-
]
|
|
4861
|
-
);
|
|
4862
|
-
var previewUpdateCreditSchemaUpsertLicense2OutboundSchema = z14.object({
|
|
4863
|
-
metered_feature_id: z14.string(),
|
|
4864
|
-
billing_units: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4865
|
-
dimensions: z14.union([
|
|
4866
|
-
z14.record(
|
|
4867
|
-
z14.string(),
|
|
4868
|
-
z14.union([
|
|
4869
|
-
previewUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
4870
|
-
previewUpdateDimensionsUpsertLicense4OutboundSchema
|
|
4871
|
-
])
|
|
4872
|
-
),
|
|
4873
|
-
z14.undefined()
|
|
4874
|
-
]).optional(),
|
|
4875
|
-
multipliers: z14.union([
|
|
4876
|
-
z14.record(
|
|
4877
|
-
z14.string(),
|
|
4878
|
-
previewUpdateUpsertLicenseMultipliers2OutboundSchema
|
|
4879
|
-
),
|
|
4880
|
-
z14.undefined()
|
|
4881
|
-
]).optional(),
|
|
4882
|
-
credit_cost: z14.number()
|
|
4883
|
-
});
|
|
4884
|
-
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z14.union([
|
|
4885
|
-
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
4886
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
4887
|
-
]);
|
|
4888
|
-
var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = z14.object(
|
|
4889
|
-
{
|
|
4890
|
-
credit_schema: z14.union([
|
|
4891
|
-
z14.array(
|
|
4892
|
-
z14.union([
|
|
4893
|
-
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
4894
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
4895
|
-
])
|
|
4896
|
-
),
|
|
4897
|
-
z14.undefined()
|
|
4898
|
-
]).optional(),
|
|
4899
|
-
markups: z14.union([previewUpdateUpsertLicenseMarkupsOutboundSchema, z14.undefined()]).optional()
|
|
4900
|
-
}
|
|
4901
|
-
);
|
|
4902
5105
|
var previewUpdateUpsertLicensePlanItemOutboundSchema = z14.object({
|
|
4903
5106
|
threshold_billing: z14.union([
|
|
4904
5107
|
previewUpdateUpsertLicenseThresholdBillingOutboundSchema,
|
|
@@ -4912,6 +5115,7 @@ var previewUpdateUpsertLicensePlanItemOutboundSchema = z14.object({
|
|
|
4912
5115
|
price: z14.union([previewUpdateUpsertLicensePriceOutboundSchema, z14.undefined()]).optional(),
|
|
4913
5116
|
proration: z14.union([previewUpdateUpsertLicenseProrationOutboundSchema, z14.undefined()]).optional(),
|
|
4914
5117
|
rollover: z14.union([previewUpdateUpsertLicenseRolloverOutboundSchema, z14.undefined()]).optional(),
|
|
5118
|
+
expiry: z14.union([previewUpdateUpsertLicenseExpiryOutboundSchema, z14.undefined()]).optional(),
|
|
4915
5119
|
feature_override: z14.union([
|
|
4916
5120
|
previewUpdateUpsertLicenseFeatureOverrideOutboundSchema,
|
|
4917
5121
|
z14.undefined()
|
|
@@ -4962,6 +5166,7 @@ var previewUpdateParamsOutboundSchema = z14.object({
|
|
|
4962
5166
|
redirect_mode: z14.string(),
|
|
4963
5167
|
subscription_id: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4964
5168
|
discounts: z14.union([z14.array(previewUpdateAttachDiscountOutboundSchema), z14.undefined()]).optional(),
|
|
5169
|
+
custom_line_items: z14.union([z14.array(previewUpdateCustomLineItemOutboundSchema), z14.undefined()]).optional(),
|
|
4965
5170
|
cancel_action: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4966
5171
|
billing_cycle_anchor: z14.union([z14.string(), z14.number(), z14.undefined()]).optional(),
|
|
4967
5172
|
no_billing_changes: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
@@ -4993,1715 +5198,342 @@ var redeemReferralCodeParamsOutboundSchema = z15.object({
|
|
|
4993
5198
|
|
|
4994
5199
|
// src/generated/setupPaymentSchemas.ts
|
|
4995
5200
|
import { z as z16 } from "zod/v4";
|
|
4996
|
-
var
|
|
4997
|
-
xApiVersion: z16.union([z16.string(), z16.undefined()]).optional()
|
|
4998
|
-
});
|
|
4999
|
-
var setupPaymentFeatureQuantitySchema = z16.object({
|
|
5000
|
-
featureId: z16.string(),
|
|
5001
|
-
quantity: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5002
|
-
adjustable: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
5003
|
-
});
|
|
5004
|
-
var setupPaymentAdditionalCurrencySchema = z16.object({
|
|
5005
|
-
currency: z16.string(),
|
|
5006
|
-
amount: z16.number()
|
|
5007
|
-
});
|
|
5008
|
-
var setupPaymentItemThresholdBillingSchema = z16.object({
|
|
5009
|
-
threshold: z16.number()
|
|
5010
|
-
});
|
|
5011
|
-
var setupPaymentItemAdditionalCurrencySchema = z16.object({
|
|
5012
|
-
currency: z16.string(),
|
|
5013
|
-
amount: z16.number()
|
|
5014
|
-
});
|
|
5015
|
-
var setupPaymentItemPriceToSchema = z16.union([z16.number(), z16.string()]);
|
|
5016
|
-
var setupPaymentItemTierAdditionalCurrencySchema = z16.object({
|
|
5017
|
-
currency: z16.string(),
|
|
5018
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5019
|
-
flatAmount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5020
|
-
});
|
|
5021
|
-
var setupPaymentItemPriceTierSchema = z16.object({
|
|
5022
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5023
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5024
|
-
flatAmount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5025
|
-
additionalCurrencies: z16.union([
|
|
5026
|
-
z16.array(setupPaymentItemTierAdditionalCurrencySchema),
|
|
5027
|
-
z16.undefined()
|
|
5028
|
-
]).optional()
|
|
5029
|
-
});
|
|
5030
|
-
var setupPaymentDimensionsItemMatch4Schema = z16.union([
|
|
5201
|
+
var setupPaymentDimensionsUpsertLicenseMatch4Schema = z16.union([
|
|
5031
5202
|
z16.string(),
|
|
5032
5203
|
z16.number(),
|
|
5033
5204
|
z16.boolean()
|
|
5034
5205
|
]);
|
|
5035
|
-
var
|
|
5206
|
+
var setupPaymentDimensionsUpsertLicense4Schema = z16.object({
|
|
5036
5207
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5037
5208
|
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5038
5209
|
creditCost: z16.number()
|
|
5039
5210
|
});
|
|
5040
|
-
var
|
|
5211
|
+
var setupPaymentDimensionsUpsertLicenseMatch3Schema = z16.union([
|
|
5041
5212
|
z16.string(),
|
|
5042
5213
|
z16.number(),
|
|
5043
5214
|
z16.boolean()
|
|
5044
5215
|
]);
|
|
5045
|
-
var
|
|
5216
|
+
var setupPaymentUpsertLicenseMultipliersMatch2Schema = z16.union([
|
|
5046
5217
|
z16.string(),
|
|
5047
5218
|
z16.number(),
|
|
5048
5219
|
z16.boolean()
|
|
5049
5220
|
]);
|
|
5050
|
-
var
|
|
5221
|
+
var setupPaymentUpsertLicenseMultipliers2Schema = z16.object({
|
|
5051
5222
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5052
5223
|
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5053
5224
|
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5054
5225
|
});
|
|
5055
|
-
var
|
|
5226
|
+
var setupPaymentDimensionsUpsertLicenseMatch2Schema = z16.union([
|
|
5056
5227
|
z16.string(),
|
|
5057
5228
|
z16.number(),
|
|
5058
5229
|
z16.boolean()
|
|
5059
5230
|
]);
|
|
5060
|
-
var
|
|
5231
|
+
var setupPaymentDimensionsUpsertLicense2Schema = z16.object({
|
|
5061
5232
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5062
5233
|
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5063
5234
|
creditCost: z16.number()
|
|
5064
5235
|
});
|
|
5065
|
-
var
|
|
5236
|
+
var setupPaymentDimensionsUpsertLicenseMatch1Schema = z16.union([
|
|
5066
5237
|
z16.string(),
|
|
5067
5238
|
z16.number(),
|
|
5068
5239
|
z16.boolean()
|
|
5069
5240
|
]);
|
|
5070
|
-
var
|
|
5241
|
+
var setupPaymentUpsertLicenseMultipliersMatch1Schema = z16.union([
|
|
5071
5242
|
z16.string(),
|
|
5072
5243
|
z16.number(),
|
|
5073
5244
|
z16.boolean()
|
|
5074
5245
|
]);
|
|
5075
|
-
var
|
|
5246
|
+
var setupPaymentUpsertLicenseMultipliers1Schema = z16.object({
|
|
5076
5247
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5077
5248
|
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5078
5249
|
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5079
5250
|
});
|
|
5080
|
-
var
|
|
5251
|
+
var setupPaymentUpsertLicenseProviderMarkupsSchema = z16.object({
|
|
5081
5252
|
markup: z16.number()
|
|
5082
5253
|
});
|
|
5083
|
-
var
|
|
5254
|
+
var setupPaymentUpsertLicenseModelMarkupsSchema = z16.object({
|
|
5084
5255
|
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5085
5256
|
inputCost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5086
5257
|
outputCost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5087
5258
|
});
|
|
5088
|
-
var
|
|
5259
|
+
var setupPaymentUpsertLicenseMarkupsSchema = z16.object({
|
|
5089
5260
|
defaultMarkup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5090
5261
|
providerMarkups: z16.union([
|
|
5091
|
-
z16.record(z16.string(),
|
|
5262
|
+
z16.record(z16.string(), setupPaymentUpsertLicenseProviderMarkupsSchema),
|
|
5092
5263
|
z16.undefined()
|
|
5093
5264
|
]).optional().nullable(),
|
|
5094
5265
|
modelMarkups: z16.union([
|
|
5095
|
-
z16.record(z16.string(),
|
|
5266
|
+
z16.record(z16.string(), setupPaymentUpsertLicenseModelMarkupsSchema),
|
|
5096
5267
|
z16.undefined()
|
|
5097
5268
|
]).optional().nullable()
|
|
5098
5269
|
});
|
|
5099
|
-
var
|
|
5100
|
-
|
|
5270
|
+
var setupPaymentRemoveLicenseSchema = z16.object({
|
|
5271
|
+
licensePlanId: z16.string()
|
|
5101
5272
|
});
|
|
5102
|
-
var
|
|
5103
|
-
|
|
5104
|
-
|
|
5273
|
+
var setupPaymentAttachDiscountSchema = z16.object({
|
|
5274
|
+
rewardId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5275
|
+
promotionCode: z16.union([z16.string(), z16.undefined()]).optional()
|
|
5105
5276
|
});
|
|
5106
|
-
var
|
|
5107
|
-
z16.
|
|
5108
|
-
z16.
|
|
5277
|
+
var setupPaymentBillingCycleAnchorSchema = z16.union([
|
|
5278
|
+
z16.string(),
|
|
5279
|
+
z16.number()
|
|
5109
5280
|
]);
|
|
5110
|
-
var
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
flatAmount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5281
|
+
var setupPaymentCustomLineItemSchema = z16.object({
|
|
5282
|
+
amount: z16.number(),
|
|
5283
|
+
description: z16.string()
|
|
5114
5284
|
});
|
|
5115
|
-
var
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5285
|
+
var setupPaymentCarryOverBalancesSchema = z16.object({
|
|
5286
|
+
enabled: z16.boolean(),
|
|
5287
|
+
featureIds: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5288
|
+
});
|
|
5289
|
+
var setupPaymentCarryOverUsagesSchema = z16.object({
|
|
5290
|
+
enabled: z16.boolean(),
|
|
5291
|
+
featureIds: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5292
|
+
});
|
|
5293
|
+
var setupPaymentLicenseQuantitySchema = z16.object({
|
|
5294
|
+
licensePlanId: z16.string(),
|
|
5295
|
+
quantity: z16.number()
|
|
5296
|
+
});
|
|
5297
|
+
var setupPaymentResponseSchema = z16.object({
|
|
5298
|
+
customerId: z16.string(),
|
|
5299
|
+
entityId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5300
|
+
url: z16.string()
|
|
5123
5301
|
});
|
|
5124
|
-
var
|
|
5302
|
+
var setupPaymentUpsertLicenseExpiryOutboundSchema = z16.object({
|
|
5303
|
+
duration: z16.string(),
|
|
5304
|
+
length: z16.number()
|
|
5305
|
+
});
|
|
5306
|
+
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = z16.union([
|
|
5125
5307
|
z16.string(),
|
|
5126
5308
|
z16.number(),
|
|
5127
5309
|
z16.boolean()
|
|
5128
5310
|
]);
|
|
5129
|
-
var
|
|
5311
|
+
var setupPaymentDimensionsUpsertLicense4OutboundSchema = z16.object({
|
|
5130
5312
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5131
5313
|
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5132
|
-
|
|
5314
|
+
credit_cost: z16.number()
|
|
5133
5315
|
});
|
|
5134
|
-
var
|
|
5316
|
+
var setupPaymentDimensionsUpsertLicenseMatch3OutboundSchema = z16.union([
|
|
5135
5317
|
z16.string(),
|
|
5136
5318
|
z16.number(),
|
|
5137
5319
|
z16.boolean()
|
|
5138
5320
|
]);
|
|
5139
|
-
var
|
|
5140
|
-
|
|
5141
|
-
z16.number(),
|
|
5142
|
-
z16.
|
|
5321
|
+
var setupPaymentDimensionsUpsertLicenseToUnion2OutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
5322
|
+
var setupPaymentDimensionsUpsertLicenseTier2OutboundSchema = z16.object({
|
|
5323
|
+
to: z16.union([z16.number(), z16.string()]),
|
|
5324
|
+
credit_cost: z16.number()
|
|
5325
|
+
});
|
|
5326
|
+
var setupPaymentDimensionsUpsertLicense3OutboundSchema = z16.object({
|
|
5327
|
+
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5328
|
+
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5329
|
+
tier_behavior: z16.literal("graduated"),
|
|
5330
|
+
tiers: z16.array(setupPaymentDimensionsUpsertLicenseTier2OutboundSchema)
|
|
5331
|
+
});
|
|
5332
|
+
var setupPaymentUpsertLicenseDimensionsUnion2OutboundSchema = z16.union([
|
|
5333
|
+
setupPaymentDimensionsUpsertLicense3OutboundSchema,
|
|
5334
|
+
setupPaymentDimensionsUpsertLicense4OutboundSchema
|
|
5143
5335
|
]);
|
|
5144
|
-
var
|
|
5336
|
+
var setupPaymentUpsertLicenseMultipliersMatch2OutboundSchema = z16.union(
|
|
5337
|
+
[z16.string(), z16.number(), z16.boolean()]
|
|
5338
|
+
);
|
|
5339
|
+
var setupPaymentUpsertLicenseMultipliers2OutboundSchema = z16.object({
|
|
5145
5340
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5146
5341
|
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5147
5342
|
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5148
5343
|
});
|
|
5149
|
-
var
|
|
5344
|
+
var setupPaymentCreditSchemaUpsertLicense2OutboundSchema = z16.object({
|
|
5345
|
+
metered_feature_id: z16.string(),
|
|
5346
|
+
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5347
|
+
dimensions: z16.union([
|
|
5348
|
+
z16.record(
|
|
5349
|
+
z16.string(),
|
|
5350
|
+
z16.union([
|
|
5351
|
+
setupPaymentDimensionsUpsertLicense3OutboundSchema,
|
|
5352
|
+
setupPaymentDimensionsUpsertLicense4OutboundSchema
|
|
5353
|
+
])
|
|
5354
|
+
),
|
|
5355
|
+
z16.undefined()
|
|
5356
|
+
]).optional(),
|
|
5357
|
+
multipliers: z16.union([
|
|
5358
|
+
z16.record(z16.string(), setupPaymentUpsertLicenseMultipliers2OutboundSchema),
|
|
5359
|
+
z16.undefined()
|
|
5360
|
+
]).optional(),
|
|
5361
|
+
credit_cost: z16.number()
|
|
5362
|
+
});
|
|
5363
|
+
var setupPaymentDimensionsUpsertLicenseMatch2OutboundSchema = z16.union([
|
|
5150
5364
|
z16.string(),
|
|
5151
5365
|
z16.number(),
|
|
5152
5366
|
z16.boolean()
|
|
5153
5367
|
]);
|
|
5154
|
-
var
|
|
5155
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5156
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5157
|
-
creditCost: z16.number()
|
|
5158
|
-
});
|
|
5159
|
-
var setupPaymentDimensionsAddItemMatch1Schema = z16.union([
|
|
5160
|
-
z16.string(),
|
|
5161
|
-
z16.number(),
|
|
5162
|
-
z16.boolean()
|
|
5163
|
-
]);
|
|
5164
|
-
var setupPaymentAddItemMultipliersMatch1Schema = z16.union([
|
|
5165
|
-
z16.string(),
|
|
5166
|
-
z16.number(),
|
|
5167
|
-
z16.boolean()
|
|
5168
|
-
]);
|
|
5169
|
-
var setupPaymentAddItemMultipliers1Schema = z16.object({
|
|
5170
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5171
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5172
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5173
|
-
});
|
|
5174
|
-
var setupPaymentAddItemProviderMarkupsSchema = z16.object({
|
|
5175
|
-
markup: z16.number()
|
|
5176
|
-
});
|
|
5177
|
-
var setupPaymentAddItemModelMarkupsSchema = z16.object({
|
|
5178
|
-
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5179
|
-
inputCost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5180
|
-
outputCost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5181
|
-
});
|
|
5182
|
-
var setupPaymentAddItemMarkupsSchema = z16.object({
|
|
5183
|
-
defaultMarkup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5184
|
-
providerMarkups: z16.union([
|
|
5185
|
-
z16.record(z16.string(), setupPaymentAddItemProviderMarkupsSchema),
|
|
5186
|
-
z16.undefined()
|
|
5187
|
-
]).optional().nullable(),
|
|
5188
|
-
modelMarkups: z16.union([
|
|
5189
|
-
z16.record(z16.string(), setupPaymentAddItemModelMarkupsSchema),
|
|
5190
|
-
z16.undefined()
|
|
5191
|
-
]).optional().nullable()
|
|
5192
|
-
});
|
|
5193
|
-
var setupPaymentUsageLimitPropertiesSchema = z16.union([
|
|
5194
|
-
z16.string(),
|
|
5195
|
-
z16.number(),
|
|
5196
|
-
z16.boolean()
|
|
5197
|
-
]);
|
|
5198
|
-
var setupPaymentUsageLimitFilterSchema = z16.object({
|
|
5199
|
-
properties: z16.record(
|
|
5200
|
-
z16.string(),
|
|
5201
|
-
z16.union([z16.string(), z16.number(), z16.boolean()])
|
|
5202
|
-
)
|
|
5203
|
-
});
|
|
5204
|
-
var setupPaymentUsageAlertPropertiesSchema = z16.union([
|
|
5205
|
-
z16.string(),
|
|
5206
|
-
z16.number(),
|
|
5207
|
-
z16.boolean()
|
|
5208
|
-
]);
|
|
5209
|
-
var setupPaymentUsageAlertFilterSchema = z16.object({
|
|
5210
|
-
properties: z16.record(
|
|
5211
|
-
z16.string(),
|
|
5212
|
-
z16.union([z16.string(), z16.number(), z16.boolean()])
|
|
5213
|
-
)
|
|
5214
|
-
});
|
|
5215
|
-
var setupPaymentOverageAllowedSchema = z16.object({
|
|
5216
|
-
featureId: z16.string(),
|
|
5217
|
-
enabled: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
5218
|
-
});
|
|
5219
|
-
var setupPaymentUpsertLicenseAdditionalCurrencySchema = z16.object({
|
|
5220
|
-
currency: z16.string(),
|
|
5221
|
-
amount: z16.number()
|
|
5222
|
-
});
|
|
5223
|
-
var setupPaymentUpsertLicenseThresholdBillingSchema = z16.object({
|
|
5224
|
-
threshold: z16.number()
|
|
5225
|
-
});
|
|
5226
|
-
var setupPaymentUpsertLicenseAddItemAdditionalCurrencySchema = z16.object({
|
|
5227
|
-
currency: z16.string(),
|
|
5228
|
-
amount: z16.number()
|
|
5229
|
-
});
|
|
5230
|
-
var setupPaymentUpsertLicensePriceToSchema = z16.union([
|
|
5231
|
-
z16.number(),
|
|
5232
|
-
z16.string()
|
|
5233
|
-
]);
|
|
5234
|
-
var setupPaymentUpsertLicenseTierAdditionalCurrencySchema = z16.object({
|
|
5235
|
-
currency: z16.string(),
|
|
5236
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5237
|
-
flatAmount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5238
|
-
});
|
|
5239
|
-
var setupPaymentUpsertLicensePriceTierSchema = z16.object({
|
|
5240
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5241
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5242
|
-
flatAmount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5243
|
-
additionalCurrencies: z16.union([
|
|
5244
|
-
z16.array(setupPaymentUpsertLicenseTierAdditionalCurrencySchema),
|
|
5245
|
-
z16.undefined()
|
|
5246
|
-
]).optional()
|
|
5247
|
-
});
|
|
5248
|
-
var setupPaymentDimensionsUpsertLicenseMatch4Schema = z16.union([
|
|
5249
|
-
z16.string(),
|
|
5250
|
-
z16.number(),
|
|
5251
|
-
z16.boolean()
|
|
5252
|
-
]);
|
|
5253
|
-
var setupPaymentDimensionsUpsertLicense4Schema = z16.object({
|
|
5254
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5255
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5256
|
-
creditCost: z16.number()
|
|
5257
|
-
});
|
|
5258
|
-
var setupPaymentDimensionsUpsertLicenseMatch3Schema = z16.union([
|
|
5259
|
-
z16.string(),
|
|
5260
|
-
z16.number(),
|
|
5261
|
-
z16.boolean()
|
|
5262
|
-
]);
|
|
5263
|
-
var setupPaymentUpsertLicenseMultipliersMatch2Schema = z16.union([
|
|
5264
|
-
z16.string(),
|
|
5265
|
-
z16.number(),
|
|
5266
|
-
z16.boolean()
|
|
5267
|
-
]);
|
|
5268
|
-
var setupPaymentUpsertLicenseMultipliers2Schema = z16.object({
|
|
5269
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5270
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5271
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5272
|
-
});
|
|
5273
|
-
var setupPaymentDimensionsUpsertLicenseMatch2Schema = z16.union([
|
|
5274
|
-
z16.string(),
|
|
5275
|
-
z16.number(),
|
|
5276
|
-
z16.boolean()
|
|
5277
|
-
]);
|
|
5278
|
-
var setupPaymentDimensionsUpsertLicense2Schema = z16.object({
|
|
5279
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5280
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5281
|
-
creditCost: z16.number()
|
|
5282
|
-
});
|
|
5283
|
-
var setupPaymentDimensionsUpsertLicenseMatch1Schema = z16.union([
|
|
5284
|
-
z16.string(),
|
|
5285
|
-
z16.number(),
|
|
5286
|
-
z16.boolean()
|
|
5287
|
-
]);
|
|
5288
|
-
var setupPaymentUpsertLicenseMultipliersMatch1Schema = z16.union([
|
|
5289
|
-
z16.string(),
|
|
5290
|
-
z16.number(),
|
|
5291
|
-
z16.boolean()
|
|
5292
|
-
]);
|
|
5293
|
-
var setupPaymentUpsertLicenseMultipliers1Schema = z16.object({
|
|
5294
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5295
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5296
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5297
|
-
});
|
|
5298
|
-
var setupPaymentUpsertLicenseProviderMarkupsSchema = z16.object({
|
|
5299
|
-
markup: z16.number()
|
|
5300
|
-
});
|
|
5301
|
-
var setupPaymentUpsertLicenseModelMarkupsSchema = z16.object({
|
|
5302
|
-
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5303
|
-
inputCost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5304
|
-
outputCost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5305
|
-
});
|
|
5306
|
-
var setupPaymentUpsertLicenseMarkupsSchema = z16.object({
|
|
5307
|
-
defaultMarkup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5308
|
-
providerMarkups: z16.union([
|
|
5309
|
-
z16.record(z16.string(), setupPaymentUpsertLicenseProviderMarkupsSchema),
|
|
5310
|
-
z16.undefined()
|
|
5311
|
-
]).optional().nullable(),
|
|
5312
|
-
modelMarkups: z16.union([
|
|
5313
|
-
z16.record(z16.string(), setupPaymentUpsertLicenseModelMarkupsSchema),
|
|
5314
|
-
z16.undefined()
|
|
5315
|
-
]).optional().nullable()
|
|
5316
|
-
});
|
|
5317
|
-
var setupPaymentRemoveLicenseSchema = z16.object({
|
|
5318
|
-
licensePlanId: z16.string()
|
|
5319
|
-
});
|
|
5320
|
-
var setupPaymentAttachDiscountSchema = z16.object({
|
|
5321
|
-
rewardId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5322
|
-
promotionCode: z16.union([z16.string(), z16.undefined()]).optional()
|
|
5323
|
-
});
|
|
5324
|
-
var setupPaymentBillingCycleAnchorSchema = z16.union([
|
|
5325
|
-
z16.string(),
|
|
5326
|
-
z16.number()
|
|
5327
|
-
]);
|
|
5328
|
-
var setupPaymentCustomLineItemSchema = z16.object({
|
|
5329
|
-
amount: z16.number(),
|
|
5330
|
-
description: z16.string()
|
|
5331
|
-
});
|
|
5332
|
-
var setupPaymentCarryOverBalancesSchema = z16.object({
|
|
5333
|
-
enabled: z16.boolean(),
|
|
5334
|
-
featureIds: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5335
|
-
});
|
|
5336
|
-
var setupPaymentCarryOverUsagesSchema = z16.object({
|
|
5337
|
-
enabled: z16.boolean(),
|
|
5338
|
-
featureIds: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5339
|
-
});
|
|
5340
|
-
var setupPaymentLicenseQuantitySchema = z16.object({
|
|
5341
|
-
licensePlanId: z16.string(),
|
|
5342
|
-
quantity: z16.number()
|
|
5343
|
-
});
|
|
5344
|
-
var setupPaymentResponseSchema = z16.object({
|
|
5345
|
-
customerId: z16.string(),
|
|
5346
|
-
entityId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5347
|
-
url: z16.string()
|
|
5348
|
-
});
|
|
5349
|
-
var setupPaymentFeatureQuantityOutboundSchema = z16.object({
|
|
5350
|
-
feature_id: z16.string(),
|
|
5351
|
-
quantity: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5352
|
-
adjustable: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
5353
|
-
});
|
|
5354
|
-
var setupPaymentFreeTrialParamsOutboundSchema = z16.object({
|
|
5355
|
-
duration_length: z16.number(),
|
|
5356
|
-
duration_type: z16.string(),
|
|
5357
|
-
card_required: z16.boolean(),
|
|
5358
|
-
on_end: z16.string()
|
|
5359
|
-
});
|
|
5360
|
-
var setupPaymentAdditionalCurrencyOutboundSchema = z16.object({
|
|
5361
|
-
currency: z16.string(),
|
|
5362
|
-
amount: z16.number()
|
|
5363
|
-
});
|
|
5364
|
-
var setupPaymentBasePriceOutboundSchema = z16.object({
|
|
5365
|
-
amount: z16.number(),
|
|
5366
|
-
interval: z16.string(),
|
|
5367
|
-
interval_count: z16.number(),
|
|
5368
|
-
additional_currencies: z16.union([
|
|
5369
|
-
z16.array(setupPaymentAdditionalCurrencyOutboundSchema),
|
|
5370
|
-
z16.undefined()
|
|
5371
|
-
]).optional()
|
|
5372
|
-
});
|
|
5373
|
-
var setupPaymentItemThresholdBillingOutboundSchema = z16.object({
|
|
5374
|
-
threshold: z16.number()
|
|
5375
|
-
});
|
|
5376
|
-
var setupPaymentItemResetOutboundSchema = z16.object({
|
|
5377
|
-
interval: z16.string(),
|
|
5378
|
-
interval_count: z16.number()
|
|
5379
|
-
});
|
|
5380
|
-
var setupPaymentItemAdditionalCurrencyOutboundSchema = z16.object({
|
|
5381
|
-
currency: z16.string(),
|
|
5382
|
-
amount: z16.number()
|
|
5383
|
-
});
|
|
5384
|
-
var setupPaymentItemPriceToOutboundSchema = z16.union([
|
|
5385
|
-
z16.number(),
|
|
5386
|
-
z16.string()
|
|
5387
|
-
]);
|
|
5388
|
-
var setupPaymentItemTierAdditionalCurrencyOutboundSchema = z16.object({
|
|
5389
|
-
currency: z16.string(),
|
|
5390
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5391
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5392
|
-
});
|
|
5393
|
-
var setupPaymentItemPriceTierOutboundSchema = z16.object({
|
|
5394
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5395
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5396
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5397
|
-
additional_currencies: z16.union([
|
|
5398
|
-
z16.array(setupPaymentItemTierAdditionalCurrencyOutboundSchema),
|
|
5399
|
-
z16.undefined()
|
|
5400
|
-
]).optional()
|
|
5401
|
-
});
|
|
5402
|
-
var setupPaymentItemPriceOutboundSchema = z16.object({
|
|
5403
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5404
|
-
additional_currencies: z16.union([
|
|
5405
|
-
z16.array(setupPaymentItemAdditionalCurrencyOutboundSchema),
|
|
5406
|
-
z16.undefined()
|
|
5407
|
-
]).optional(),
|
|
5408
|
-
tiers: z16.union([z16.array(setupPaymentItemPriceTierOutboundSchema), z16.undefined()]).optional(),
|
|
5409
|
-
tier_behavior: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5410
|
-
interval: z16.string(),
|
|
5411
|
-
interval_count: z16.number(),
|
|
5412
|
-
billing_units: z16.number(),
|
|
5413
|
-
billing_method: z16.string(),
|
|
5414
|
-
max_purchase: z16.union([z16.number(), z16.undefined()]).optional().nullable()
|
|
5415
|
-
});
|
|
5416
|
-
var setupPaymentItemProrationOutboundSchema = z16.object({
|
|
5417
|
-
on_increase: z16.string(),
|
|
5418
|
-
on_decrease: z16.string()
|
|
5419
|
-
});
|
|
5420
|
-
var setupPaymentItemRolloverOutboundSchema = z16.object({
|
|
5421
|
-
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5422
|
-
max_percentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5423
|
-
expiry_duration_type: z16.string(),
|
|
5424
|
-
expiry_duration_length: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5425
|
-
});
|
|
5426
|
-
var setupPaymentDimensionsItemMatch4OutboundSchema = z16.union([
|
|
5427
|
-
z16.string(),
|
|
5428
|
-
z16.number(),
|
|
5429
|
-
z16.boolean()
|
|
5430
|
-
]);
|
|
5431
|
-
var setupPaymentDimensionsItem4OutboundSchema = z16.object({
|
|
5432
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5433
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5434
|
-
credit_cost: z16.number()
|
|
5435
|
-
});
|
|
5436
|
-
var setupPaymentDimensionsItemMatch3OutboundSchema = z16.union([
|
|
5437
|
-
z16.string(),
|
|
5438
|
-
z16.number(),
|
|
5439
|
-
z16.boolean()
|
|
5440
|
-
]);
|
|
5441
|
-
var setupPaymentDimensionsItemToUnion2OutboundSchema = z16.union([
|
|
5442
|
-
z16.number(),
|
|
5443
|
-
z16.string()
|
|
5444
|
-
]);
|
|
5445
|
-
var setupPaymentDimensionsItemTier2OutboundSchema = z16.object({
|
|
5446
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5447
|
-
credit_cost: z16.number()
|
|
5448
|
-
});
|
|
5449
|
-
var setupPaymentDimensionsItem3OutboundSchema = z16.object({
|
|
5450
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5451
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5452
|
-
tier_behavior: z16.literal("graduated"),
|
|
5453
|
-
tiers: z16.array(setupPaymentDimensionsItemTier2OutboundSchema)
|
|
5454
|
-
});
|
|
5455
|
-
var setupPaymentItemDimensionsUnion2OutboundSchema = z16.union([
|
|
5456
|
-
setupPaymentDimensionsItem3OutboundSchema,
|
|
5457
|
-
setupPaymentDimensionsItem4OutboundSchema
|
|
5458
|
-
]);
|
|
5459
|
-
var setupPaymentItemMultipliersMatch2OutboundSchema = z16.union([
|
|
5460
|
-
z16.string(),
|
|
5461
|
-
z16.number(),
|
|
5462
|
-
z16.boolean()
|
|
5463
|
-
]);
|
|
5464
|
-
var setupPaymentItemMultipliers2OutboundSchema = z16.object({
|
|
5465
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5466
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5467
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5468
|
-
});
|
|
5469
|
-
var setupPaymentCreditSchemaItem2OutboundSchema = z16.object({
|
|
5470
|
-
metered_feature_id: z16.string(),
|
|
5471
|
-
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5472
|
-
dimensions: z16.union([
|
|
5473
|
-
z16.record(
|
|
5474
|
-
z16.string(),
|
|
5475
|
-
z16.union([
|
|
5476
|
-
setupPaymentDimensionsItem3OutboundSchema,
|
|
5477
|
-
setupPaymentDimensionsItem4OutboundSchema
|
|
5478
|
-
])
|
|
5479
|
-
),
|
|
5480
|
-
z16.undefined()
|
|
5481
|
-
]).optional(),
|
|
5482
|
-
multipliers: z16.union([
|
|
5483
|
-
z16.record(z16.string(), setupPaymentItemMultipliers2OutboundSchema),
|
|
5484
|
-
z16.undefined()
|
|
5485
|
-
]).optional(),
|
|
5486
|
-
credit_cost: z16.number()
|
|
5487
|
-
});
|
|
5488
|
-
var setupPaymentDimensionsItemMatch2OutboundSchema = z16.union([
|
|
5489
|
-
z16.string(),
|
|
5490
|
-
z16.number(),
|
|
5491
|
-
z16.boolean()
|
|
5492
|
-
]);
|
|
5493
|
-
var setupPaymentDimensionsItem2OutboundSchema = z16.object({
|
|
5368
|
+
var setupPaymentDimensionsUpsertLicense2OutboundSchema = z16.object({
|
|
5494
5369
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5495
5370
|
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5496
5371
|
credit_cost: z16.number()
|
|
5497
5372
|
});
|
|
5498
|
-
var
|
|
5373
|
+
var setupPaymentDimensionsUpsertLicenseMatch1OutboundSchema = z16.union([
|
|
5499
5374
|
z16.string(),
|
|
5500
5375
|
z16.number(),
|
|
5501
5376
|
z16.boolean()
|
|
5502
5377
|
]);
|
|
5503
|
-
var
|
|
5504
|
-
|
|
5505
|
-
z16.string()
|
|
5506
|
-
]);
|
|
5507
|
-
var setupPaymentDimensionsItemTier1OutboundSchema = z16.object({
|
|
5378
|
+
var setupPaymentDimensionsUpsertLicenseToUnion1OutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
5379
|
+
var setupPaymentDimensionsUpsertLicenseTier1OutboundSchema = z16.object({
|
|
5508
5380
|
to: z16.union([z16.number(), z16.string()]),
|
|
5509
5381
|
credit_cost: z16.number()
|
|
5510
5382
|
});
|
|
5511
|
-
var
|
|
5383
|
+
var setupPaymentDimensionsUpsertLicense1OutboundSchema = z16.object({
|
|
5512
5384
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5513
5385
|
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5514
5386
|
tier_behavior: z16.literal("graduated"),
|
|
5515
|
-
tiers: z16.array(
|
|
5387
|
+
tiers: z16.array(setupPaymentDimensionsUpsertLicenseTier1OutboundSchema)
|
|
5516
5388
|
});
|
|
5517
|
-
var
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
]);
|
|
5521
|
-
var setupPaymentItemMultipliersMatch1OutboundSchema = z16.union([
|
|
5522
|
-
z16.string(),
|
|
5523
|
-
z16.number(),
|
|
5524
|
-
z16.boolean()
|
|
5389
|
+
var setupPaymentUpsertLicenseDimensionsUnion1OutboundSchema = z16.union([
|
|
5390
|
+
setupPaymentDimensionsUpsertLicense1OutboundSchema,
|
|
5391
|
+
setupPaymentDimensionsUpsertLicense2OutboundSchema
|
|
5525
5392
|
]);
|
|
5526
|
-
var
|
|
5393
|
+
var setupPaymentUpsertLicenseMultipliersMatch1OutboundSchema = z16.union(
|
|
5394
|
+
[z16.string(), z16.number(), z16.boolean()]
|
|
5395
|
+
);
|
|
5396
|
+
var setupPaymentUpsertLicenseMultipliers1OutboundSchema = z16.object({
|
|
5527
5397
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5528
5398
|
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5529
5399
|
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5530
5400
|
});
|
|
5531
|
-
var
|
|
5532
|
-
|
|
5533
|
-
z16.string()
|
|
5534
|
-
]);
|
|
5535
|
-
var setupPaymentItemFeatureOverrideTierOutboundSchema = z16.object({
|
|
5401
|
+
var setupPaymentUpsertLicenseFeatureOverrideToUnionOutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
5402
|
+
var setupPaymentUpsertLicenseFeatureOverrideTierOutboundSchema = z16.object({
|
|
5536
5403
|
to: z16.union([z16.number(), z16.string()]),
|
|
5537
5404
|
credit_cost: z16.number()
|
|
5538
5405
|
});
|
|
5539
|
-
var
|
|
5406
|
+
var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = z16.object({
|
|
5540
5407
|
metered_feature_id: z16.string(),
|
|
5541
5408
|
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5542
5409
|
dimensions: z16.union([
|
|
5543
5410
|
z16.record(
|
|
5544
5411
|
z16.string(),
|
|
5545
5412
|
z16.union([
|
|
5546
|
-
|
|
5547
|
-
|
|
5413
|
+
setupPaymentDimensionsUpsertLicense1OutboundSchema,
|
|
5414
|
+
setupPaymentDimensionsUpsertLicense2OutboundSchema
|
|
5548
5415
|
])
|
|
5549
5416
|
),
|
|
5550
5417
|
z16.undefined()
|
|
5551
5418
|
]).optional(),
|
|
5552
5419
|
multipliers: z16.union([
|
|
5553
|
-
z16.record(z16.string(),
|
|
5420
|
+
z16.record(z16.string(), setupPaymentUpsertLicenseMultipliers1OutboundSchema),
|
|
5554
5421
|
z16.undefined()
|
|
5555
5422
|
]).optional(),
|
|
5556
5423
|
tier_behavior: z16.literal("graduated"),
|
|
5557
|
-
tiers: z16.array(
|
|
5424
|
+
tiers: z16.array(setupPaymentUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
5558
5425
|
});
|
|
5559
|
-
var
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5426
|
+
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = z16.union(
|
|
5427
|
+
[
|
|
5428
|
+
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
5429
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
5430
|
+
]
|
|
5431
|
+
);
|
|
5432
|
+
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = z16.object({
|
|
5564
5433
|
markup: z16.number()
|
|
5565
5434
|
});
|
|
5566
|
-
var
|
|
5435
|
+
var setupPaymentUpsertLicenseModelMarkupsOutboundSchema = z16.object({
|
|
5567
5436
|
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5568
5437
|
input_cost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5569
5438
|
output_cost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5570
5439
|
});
|
|
5571
|
-
var
|
|
5440
|
+
var setupPaymentUpsertLicenseMarkupsOutboundSchema = z16.object({
|
|
5572
5441
|
default_markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5573
5442
|
provider_markups: z16.union([
|
|
5574
|
-
z16.record(z16.string(), setupPaymentItemProviderMarkupsOutboundSchema),
|
|
5575
|
-
z16.undefined()
|
|
5576
|
-
]).optional().nullable(),
|
|
5577
|
-
model_markups: z16.union([
|
|
5578
|
-
z16.record(z16.string(), setupPaymentItemModelMarkupsOutboundSchema),
|
|
5579
|
-
z16.undefined()
|
|
5580
|
-
]).optional().nullable()
|
|
5581
|
-
});
|
|
5582
|
-
var setupPaymentItemFeatureOverrideOutboundSchema = z16.object({
|
|
5583
|
-
credit_schema: z16.union([
|
|
5584
|
-
z16.array(
|
|
5585
|
-
z16.union([
|
|
5586
|
-
setupPaymentCreditSchemaItem1OutboundSchema,
|
|
5587
|
-
setupPaymentCreditSchemaItem2OutboundSchema
|
|
5588
|
-
])
|
|
5589
|
-
),
|
|
5590
|
-
z16.undefined()
|
|
5591
|
-
]).optional(),
|
|
5592
|
-
markups: z16.union([setupPaymentItemMarkupsOutboundSchema, z16.undefined()]).optional()
|
|
5593
|
-
});
|
|
5594
|
-
var setupPaymentItemPlanItemOutboundSchema = z16.object({
|
|
5595
|
-
threshold_billing: z16.union([setupPaymentItemThresholdBillingOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5596
|
-
feature_id: z16.string(),
|
|
5597
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5598
|
-
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5599
|
-
pooled: z16.boolean(),
|
|
5600
|
-
reset: z16.union([setupPaymentItemResetOutboundSchema, z16.undefined()]).optional(),
|
|
5601
|
-
price: z16.union([setupPaymentItemPriceOutboundSchema, z16.undefined()]).optional(),
|
|
5602
|
-
proration: z16.union([setupPaymentItemProrationOutboundSchema, z16.undefined()]).optional(),
|
|
5603
|
-
rollover: z16.union([setupPaymentItemRolloverOutboundSchema, z16.undefined()]).optional(),
|
|
5604
|
-
feature_override: z16.union([setupPaymentItemFeatureOverrideOutboundSchema, z16.undefined()]).optional()
|
|
5605
|
-
});
|
|
5606
|
-
var setupPaymentAddItemThresholdBillingOutboundSchema = z16.object({
|
|
5607
|
-
threshold: z16.number()
|
|
5608
|
-
});
|
|
5609
|
-
var setupPaymentAddItemResetOutboundSchema = z16.object({
|
|
5610
|
-
interval: z16.string(),
|
|
5611
|
-
interval_count: z16.number()
|
|
5612
|
-
});
|
|
5613
|
-
var setupPaymentAddItemAdditionalCurrencyOutboundSchema = z16.object({
|
|
5614
|
-
currency: z16.string(),
|
|
5615
|
-
amount: z16.number()
|
|
5616
|
-
});
|
|
5617
|
-
var setupPaymentAddItemPriceToOutboundSchema = z16.union([
|
|
5618
|
-
z16.number(),
|
|
5619
|
-
z16.string()
|
|
5620
|
-
]);
|
|
5621
|
-
var setupPaymentAddItemTierAdditionalCurrencyOutboundSchema = z16.object(
|
|
5622
|
-
{
|
|
5623
|
-
currency: z16.string(),
|
|
5624
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5625
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5626
|
-
}
|
|
5627
|
-
);
|
|
5628
|
-
var setupPaymentAddItemPriceTierOutboundSchema = z16.object({
|
|
5629
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5630
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5631
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5632
|
-
additional_currencies: z16.union([
|
|
5633
|
-
z16.array(setupPaymentAddItemTierAdditionalCurrencyOutboundSchema),
|
|
5634
|
-
z16.undefined()
|
|
5635
|
-
]).optional()
|
|
5636
|
-
});
|
|
5637
|
-
var setupPaymentAddItemPriceOutboundSchema = z16.object({
|
|
5638
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5639
|
-
additional_currencies: z16.union([
|
|
5640
|
-
z16.array(setupPaymentAddItemAdditionalCurrencyOutboundSchema),
|
|
5641
|
-
z16.undefined()
|
|
5642
|
-
]).optional(),
|
|
5643
|
-
tiers: z16.union([z16.array(setupPaymentAddItemPriceTierOutboundSchema), z16.undefined()]).optional(),
|
|
5644
|
-
tier_behavior: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5645
|
-
interval: z16.string(),
|
|
5646
|
-
interval_count: z16.number(),
|
|
5647
|
-
billing_units: z16.number(),
|
|
5648
|
-
billing_method: z16.string(),
|
|
5649
|
-
max_purchase: z16.union([z16.number(), z16.undefined()]).optional().nullable()
|
|
5650
|
-
});
|
|
5651
|
-
var setupPaymentAddItemProrationOutboundSchema = z16.object({
|
|
5652
|
-
on_increase: z16.string(),
|
|
5653
|
-
on_decrease: z16.string()
|
|
5654
|
-
});
|
|
5655
|
-
var setupPaymentAddItemRolloverOutboundSchema = z16.object({
|
|
5656
|
-
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5657
|
-
max_percentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5658
|
-
expiry_duration_type: z16.string(),
|
|
5659
|
-
expiry_duration_length: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5660
|
-
});
|
|
5661
|
-
var setupPaymentDimensionsAddItemMatch4OutboundSchema = z16.union([
|
|
5662
|
-
z16.string(),
|
|
5663
|
-
z16.number(),
|
|
5664
|
-
z16.boolean()
|
|
5665
|
-
]);
|
|
5666
|
-
var setupPaymentDimensionsAddItem4OutboundSchema = z16.object({
|
|
5667
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5668
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5669
|
-
credit_cost: z16.number()
|
|
5670
|
-
});
|
|
5671
|
-
var setupPaymentDimensionsAddItemMatch3OutboundSchema = z16.union([
|
|
5672
|
-
z16.string(),
|
|
5673
|
-
z16.number(),
|
|
5674
|
-
z16.boolean()
|
|
5675
|
-
]);
|
|
5676
|
-
var setupPaymentDimensionsAddItemToUnion2OutboundSchema = z16.union([
|
|
5677
|
-
z16.number(),
|
|
5678
|
-
z16.string()
|
|
5679
|
-
]);
|
|
5680
|
-
var setupPaymentDimensionsAddItemTier2OutboundSchema = z16.object({
|
|
5681
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5682
|
-
credit_cost: z16.number()
|
|
5683
|
-
});
|
|
5684
|
-
var setupPaymentDimensionsAddItem3OutboundSchema = z16.object({
|
|
5685
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5686
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5687
|
-
tier_behavior: z16.literal("graduated"),
|
|
5688
|
-
tiers: z16.array(setupPaymentDimensionsAddItemTier2OutboundSchema)
|
|
5689
|
-
});
|
|
5690
|
-
var setupPaymentAddItemDimensionsUnion2OutboundSchema = z16.union([
|
|
5691
|
-
setupPaymentDimensionsAddItem3OutboundSchema,
|
|
5692
|
-
setupPaymentDimensionsAddItem4OutboundSchema
|
|
5693
|
-
]);
|
|
5694
|
-
var setupPaymentAddItemMultipliersMatch2OutboundSchema = z16.union([
|
|
5695
|
-
z16.string(),
|
|
5696
|
-
z16.number(),
|
|
5697
|
-
z16.boolean()
|
|
5698
|
-
]);
|
|
5699
|
-
var setupPaymentAddItemMultipliers2OutboundSchema = z16.object({
|
|
5700
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5701
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5702
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5703
|
-
});
|
|
5704
|
-
var setupPaymentCreditSchemaAddItem2OutboundSchema = z16.object({
|
|
5705
|
-
metered_feature_id: z16.string(),
|
|
5706
|
-
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5707
|
-
dimensions: z16.union([
|
|
5708
|
-
z16.record(
|
|
5709
|
-
z16.string(),
|
|
5710
|
-
z16.union([
|
|
5711
|
-
setupPaymentDimensionsAddItem3OutboundSchema,
|
|
5712
|
-
setupPaymentDimensionsAddItem4OutboundSchema
|
|
5713
|
-
])
|
|
5714
|
-
),
|
|
5715
|
-
z16.undefined()
|
|
5716
|
-
]).optional(),
|
|
5717
|
-
multipliers: z16.union([
|
|
5718
|
-
z16.record(z16.string(), setupPaymentAddItemMultipliers2OutboundSchema),
|
|
5719
|
-
z16.undefined()
|
|
5720
|
-
]).optional(),
|
|
5721
|
-
credit_cost: z16.number()
|
|
5722
|
-
});
|
|
5723
|
-
var setupPaymentDimensionsAddItemMatch2OutboundSchema = z16.union([
|
|
5724
|
-
z16.string(),
|
|
5725
|
-
z16.number(),
|
|
5726
|
-
z16.boolean()
|
|
5727
|
-
]);
|
|
5728
|
-
var setupPaymentDimensionsAddItem2OutboundSchema = z16.object({
|
|
5729
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5730
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5731
|
-
credit_cost: z16.number()
|
|
5732
|
-
});
|
|
5733
|
-
var setupPaymentDimensionsAddItemMatch1OutboundSchema = z16.union([
|
|
5734
|
-
z16.string(),
|
|
5735
|
-
z16.number(),
|
|
5736
|
-
z16.boolean()
|
|
5737
|
-
]);
|
|
5738
|
-
var setupPaymentDimensionsAddItemToUnion1OutboundSchema = z16.union([
|
|
5739
|
-
z16.number(),
|
|
5740
|
-
z16.string()
|
|
5741
|
-
]);
|
|
5742
|
-
var setupPaymentDimensionsAddItemTier1OutboundSchema = z16.object({
|
|
5743
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5744
|
-
credit_cost: z16.number()
|
|
5745
|
-
});
|
|
5746
|
-
var setupPaymentDimensionsAddItem1OutboundSchema = z16.object({
|
|
5747
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5748
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5749
|
-
tier_behavior: z16.literal("graduated"),
|
|
5750
|
-
tiers: z16.array(setupPaymentDimensionsAddItemTier1OutboundSchema)
|
|
5751
|
-
});
|
|
5752
|
-
var setupPaymentAddItemDimensionsUnion1OutboundSchema = z16.union([
|
|
5753
|
-
setupPaymentDimensionsAddItem1OutboundSchema,
|
|
5754
|
-
setupPaymentDimensionsAddItem2OutboundSchema
|
|
5755
|
-
]);
|
|
5756
|
-
var setupPaymentAddItemMultipliersMatch1OutboundSchema = z16.union([
|
|
5757
|
-
z16.string(),
|
|
5758
|
-
z16.number(),
|
|
5759
|
-
z16.boolean()
|
|
5760
|
-
]);
|
|
5761
|
-
var setupPaymentAddItemMultipliers1OutboundSchema = z16.object({
|
|
5762
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5763
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5764
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5765
|
-
});
|
|
5766
|
-
var setupPaymentAddItemFeatureOverrideToUnionOutboundSchema = z16.union([
|
|
5767
|
-
z16.number(),
|
|
5768
|
-
z16.string()
|
|
5769
|
-
]);
|
|
5770
|
-
var setupPaymentAddItemFeatureOverrideTierOutboundSchema = z16.object({
|
|
5771
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5772
|
-
credit_cost: z16.number()
|
|
5773
|
-
});
|
|
5774
|
-
var setupPaymentCreditSchemaAddItem1OutboundSchema = z16.object({
|
|
5775
|
-
metered_feature_id: z16.string(),
|
|
5776
|
-
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5777
|
-
dimensions: z16.union([
|
|
5778
5443
|
z16.record(
|
|
5779
5444
|
z16.string(),
|
|
5780
|
-
|
|
5781
|
-
setupPaymentDimensionsAddItem1OutboundSchema,
|
|
5782
|
-
setupPaymentDimensionsAddItem2OutboundSchema
|
|
5783
|
-
])
|
|
5445
|
+
setupPaymentUpsertLicenseProviderMarkupsOutboundSchema
|
|
5784
5446
|
),
|
|
5785
5447
|
z16.undefined()
|
|
5786
|
-
]).optional(),
|
|
5787
|
-
multipliers: z16.union([
|
|
5788
|
-
z16.record(z16.string(), setupPaymentAddItemMultipliers1OutboundSchema),
|
|
5789
|
-
z16.undefined()
|
|
5790
|
-
]).optional(),
|
|
5791
|
-
tier_behavior: z16.literal("graduated"),
|
|
5792
|
-
tiers: z16.array(setupPaymentAddItemFeatureOverrideTierOutboundSchema)
|
|
5793
|
-
});
|
|
5794
|
-
var setupPaymentAddItemCreditSchemaUnionOutboundSchema = z16.union([
|
|
5795
|
-
setupPaymentCreditSchemaAddItem1OutboundSchema,
|
|
5796
|
-
setupPaymentCreditSchemaAddItem2OutboundSchema
|
|
5797
|
-
]);
|
|
5798
|
-
var setupPaymentAddItemProviderMarkupsOutboundSchema = z16.object({
|
|
5799
|
-
markup: z16.number()
|
|
5800
|
-
});
|
|
5801
|
-
var setupPaymentAddItemModelMarkupsOutboundSchema = z16.object({
|
|
5802
|
-
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5803
|
-
input_cost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5804
|
-
output_cost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5805
|
-
});
|
|
5806
|
-
var setupPaymentAddItemMarkupsOutboundSchema = z16.object({
|
|
5807
|
-
default_markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5808
|
-
provider_markups: z16.union([
|
|
5809
|
-
z16.record(z16.string(), setupPaymentAddItemProviderMarkupsOutboundSchema),
|
|
5810
|
-
z16.undefined()
|
|
5811
5448
|
]).optional().nullable(),
|
|
5812
5449
|
model_markups: z16.union([
|
|
5813
|
-
z16.record(z16.string(),
|
|
5450
|
+
z16.record(z16.string(), setupPaymentUpsertLicenseModelMarkupsOutboundSchema),
|
|
5814
5451
|
z16.undefined()
|
|
5815
5452
|
]).optional().nullable()
|
|
5816
5453
|
});
|
|
5817
|
-
var
|
|
5454
|
+
var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = z16.object({
|
|
5818
5455
|
credit_schema: z16.union([
|
|
5819
5456
|
z16.array(
|
|
5820
5457
|
z16.union([
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
])
|
|
5824
|
-
),
|
|
5825
|
-
z16.undefined()
|
|
5826
|
-
]).optional(),
|
|
5827
|
-
markups: z16.union([setupPaymentAddItemMarkupsOutboundSchema, z16.undefined()]).optional()
|
|
5828
|
-
});
|
|
5829
|
-
var setupPaymentAddItemPlanItemOutboundSchema = z16.object({
|
|
5830
|
-
threshold_billing: z16.union([setupPaymentAddItemThresholdBillingOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5831
|
-
feature_id: z16.string(),
|
|
5832
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5833
|
-
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5834
|
-
pooled: z16.boolean(),
|
|
5835
|
-
reset: z16.union([setupPaymentAddItemResetOutboundSchema, z16.undefined()]).optional(),
|
|
5836
|
-
price: z16.union([setupPaymentAddItemPriceOutboundSchema, z16.undefined()]).optional(),
|
|
5837
|
-
proration: z16.union([setupPaymentAddItemProrationOutboundSchema, z16.undefined()]).optional(),
|
|
5838
|
-
rollover: z16.union([setupPaymentAddItemRolloverOutboundSchema, z16.undefined()]).optional(),
|
|
5839
|
-
feature_override: z16.union([setupPaymentAddItemFeatureOverrideOutboundSchema, z16.undefined()]).optional()
|
|
5840
|
-
});
|
|
5841
|
-
var setupPaymentIntervalUnionOutboundSchema = z16.union([
|
|
5842
|
-
z16.string(),
|
|
5843
|
-
z16.string()
|
|
5844
|
-
]);
|
|
5845
|
-
var setupPaymentPlanItemFilterOutboundSchema = z16.object({
|
|
5846
|
-
feature_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5847
|
-
billing_method: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5848
|
-
interval: z16.union([z16.string(), z16.string(), z16.undefined()]).optional(),
|
|
5849
|
-
interval_count: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5850
|
-
included: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5851
|
-
});
|
|
5852
|
-
var setupPaymentCustomizeFreeTrialParamsOutboundSchema = z16.object({
|
|
5853
|
-
duration_length: z16.number(),
|
|
5854
|
-
duration_type: z16.string(),
|
|
5855
|
-
card_required: z16.boolean(),
|
|
5856
|
-
on_end: z16.string()
|
|
5857
|
-
});
|
|
5858
|
-
var setupPaymentPurchaseLimitOutboundSchema = z16.object({
|
|
5859
|
-
interval: z16.string(),
|
|
5860
|
-
interval_count: z16.number(),
|
|
5861
|
-
limit: z16.number(),
|
|
5862
|
-
count: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5863
|
-
});
|
|
5864
|
-
var setupPaymentAutoTopupOutboundSchema = z16.object({
|
|
5865
|
-
feature_id: z16.string(),
|
|
5866
|
-
enabled: z16.boolean(),
|
|
5867
|
-
threshold: z16.number(),
|
|
5868
|
-
quantity: z16.number(),
|
|
5869
|
-
purchase_limit: z16.union([setupPaymentPurchaseLimitOutboundSchema, z16.undefined()]).optional(),
|
|
5870
|
-
invoice_mode: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
5871
|
-
});
|
|
5872
|
-
var setupPaymentSpendLimitOutboundSchema = z16.object({
|
|
5873
|
-
feature_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5874
|
-
enabled: z16.boolean(),
|
|
5875
|
-
limit_type: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5876
|
-
overage_limit: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5877
|
-
skip_overage_billing: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
5878
|
-
});
|
|
5879
|
-
var setupPaymentUsageLimitPropertiesOutboundSchema = z16.union([
|
|
5880
|
-
z16.string(),
|
|
5881
|
-
z16.number(),
|
|
5882
|
-
z16.boolean()
|
|
5883
|
-
]);
|
|
5884
|
-
var setupPaymentUsageLimitFilterOutboundSchema = z16.object({
|
|
5885
|
-
properties: z16.record(
|
|
5886
|
-
z16.string(),
|
|
5887
|
-
z16.union([z16.string(), z16.number(), z16.boolean()])
|
|
5888
|
-
)
|
|
5889
|
-
});
|
|
5890
|
-
var setupPaymentUsageLimitOutboundSchema = z16.object({
|
|
5891
|
-
feature_id: z16.string(),
|
|
5892
|
-
enabled: z16.boolean(),
|
|
5893
|
-
limit: z16.number(),
|
|
5894
|
-
interval: z16.string(),
|
|
5895
|
-
anchor: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5896
|
-
filter: z16.union([setupPaymentUsageLimitFilterOutboundSchema, z16.undefined()]).optional()
|
|
5897
|
-
});
|
|
5898
|
-
var setupPaymentUsageAlertPropertiesOutboundSchema = z16.union([
|
|
5899
|
-
z16.string(),
|
|
5900
|
-
z16.number(),
|
|
5901
|
-
z16.boolean()
|
|
5902
|
-
]);
|
|
5903
|
-
var setupPaymentUsageAlertFilterOutboundSchema = z16.object({
|
|
5904
|
-
properties: z16.record(
|
|
5905
|
-
z16.string(),
|
|
5906
|
-
z16.union([z16.string(), z16.number(), z16.boolean()])
|
|
5907
|
-
)
|
|
5908
|
-
});
|
|
5909
|
-
var setupPaymentUsageAlertOutboundSchema = z16.object({
|
|
5910
|
-
feature_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5911
|
-
enabled: z16.boolean(),
|
|
5912
|
-
threshold: z16.number(),
|
|
5913
|
-
threshold_type: z16.string(),
|
|
5914
|
-
basis: z16.string(),
|
|
5915
|
-
filter: z16.union([setupPaymentUsageAlertFilterOutboundSchema, z16.undefined()]).optional(),
|
|
5916
|
-
name: z16.union([z16.string(), z16.undefined()]).optional()
|
|
5917
|
-
});
|
|
5918
|
-
var setupPaymentOverageAllowedOutboundSchema = z16.object({
|
|
5919
|
-
feature_id: z16.string(),
|
|
5920
|
-
enabled: z16.boolean()
|
|
5921
|
-
});
|
|
5922
|
-
var setupPaymentBillingControlsOutboundSchema = z16.object({
|
|
5923
|
-
auto_topups: z16.union([z16.array(setupPaymentAutoTopupOutboundSchema), z16.undefined()]).optional(),
|
|
5924
|
-
spend_limits: z16.union([z16.array(setupPaymentSpendLimitOutboundSchema), z16.undefined()]).optional(),
|
|
5925
|
-
usage_limits: z16.union([z16.array(setupPaymentUsageLimitOutboundSchema), z16.undefined()]).optional(),
|
|
5926
|
-
usage_alerts: z16.union([z16.array(setupPaymentUsageAlertOutboundSchema), z16.undefined()]).optional(),
|
|
5927
|
-
overage_allowed: z16.union([z16.array(setupPaymentOverageAllowedOutboundSchema), z16.undefined()]).optional()
|
|
5928
|
-
});
|
|
5929
|
-
var setupPaymentUpsertLicenseAdditionalCurrencyOutboundSchema = z16.object({
|
|
5930
|
-
currency: z16.string(),
|
|
5931
|
-
amount: z16.number()
|
|
5932
|
-
});
|
|
5933
|
-
var setupPaymentUpsertLicenseBasePriceOutboundSchema = z16.object({
|
|
5934
|
-
amount: z16.number(),
|
|
5935
|
-
interval: z16.string(),
|
|
5936
|
-
interval_count: z16.number(),
|
|
5937
|
-
additional_currencies: z16.union([
|
|
5938
|
-
z16.array(setupPaymentUpsertLicenseAdditionalCurrencyOutboundSchema),
|
|
5939
|
-
z16.undefined()
|
|
5940
|
-
]).optional()
|
|
5941
|
-
});
|
|
5942
|
-
var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = z16.object(
|
|
5943
|
-
{
|
|
5944
|
-
threshold: z16.number()
|
|
5945
|
-
}
|
|
5946
|
-
);
|
|
5947
|
-
var setupPaymentUpsertLicenseResetOutboundSchema = z16.object({
|
|
5948
|
-
interval: z16.string(),
|
|
5949
|
-
interval_count: z16.number()
|
|
5950
|
-
});
|
|
5951
|
-
var setupPaymentUpsertLicenseAddItemAdditionalCurrencyOutboundSchema = z16.object({
|
|
5952
|
-
currency: z16.string(),
|
|
5953
|
-
amount: z16.number()
|
|
5954
|
-
});
|
|
5955
|
-
var setupPaymentUpsertLicensePriceToOutboundSchema = z16.union([
|
|
5956
|
-
z16.number(),
|
|
5957
|
-
z16.string()
|
|
5958
|
-
]);
|
|
5959
|
-
var setupPaymentUpsertLicenseTierAdditionalCurrencyOutboundSchema = z16.object({
|
|
5960
|
-
currency: z16.string(),
|
|
5961
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5962
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5963
|
-
});
|
|
5964
|
-
var setupPaymentUpsertLicensePriceTierOutboundSchema = z16.object({
|
|
5965
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5966
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5967
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5968
|
-
additional_currencies: z16.union([
|
|
5969
|
-
z16.array(setupPaymentUpsertLicenseTierAdditionalCurrencyOutboundSchema),
|
|
5970
|
-
z16.undefined()
|
|
5971
|
-
]).optional()
|
|
5972
|
-
});
|
|
5973
|
-
var setupPaymentUpsertLicensePriceOutboundSchema = z16.object({
|
|
5974
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5975
|
-
additional_currencies: z16.union([
|
|
5976
|
-
z16.array(setupPaymentUpsertLicenseAddItemAdditionalCurrencyOutboundSchema),
|
|
5977
|
-
z16.undefined()
|
|
5978
|
-
]).optional(),
|
|
5979
|
-
tiers: z16.union([
|
|
5980
|
-
z16.array(setupPaymentUpsertLicensePriceTierOutboundSchema),
|
|
5981
|
-
z16.undefined()
|
|
5982
|
-
]).optional(),
|
|
5983
|
-
tier_behavior: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5984
|
-
interval: z16.string(),
|
|
5985
|
-
interval_count: z16.number(),
|
|
5986
|
-
billing_units: z16.number(),
|
|
5987
|
-
billing_method: z16.string(),
|
|
5988
|
-
max_purchase: z16.union([z16.number(), z16.undefined()]).optional().nullable()
|
|
5989
|
-
});
|
|
5990
|
-
var setupPaymentUpsertLicenseProrationOutboundSchema = z16.object({
|
|
5991
|
-
on_increase: z16.string(),
|
|
5992
|
-
on_decrease: z16.string()
|
|
5993
|
-
});
|
|
5994
|
-
var setupPaymentUpsertLicenseRolloverOutboundSchema = z16.object({
|
|
5995
|
-
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5996
|
-
max_percentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5997
|
-
expiry_duration_type: z16.string(),
|
|
5998
|
-
expiry_duration_length: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5999
|
-
});
|
|
6000
|
-
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = z16.union([
|
|
6001
|
-
z16.string(),
|
|
6002
|
-
z16.number(),
|
|
6003
|
-
z16.boolean()
|
|
6004
|
-
]);
|
|
6005
|
-
var setupPaymentDimensionsUpsertLicense4OutboundSchema = z16.object({
|
|
6006
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6007
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6008
|
-
credit_cost: z16.number()
|
|
6009
|
-
});
|
|
6010
|
-
var setupPaymentDimensionsUpsertLicenseMatch3OutboundSchema = z16.union([
|
|
6011
|
-
z16.string(),
|
|
6012
|
-
z16.number(),
|
|
6013
|
-
z16.boolean()
|
|
6014
|
-
]);
|
|
6015
|
-
var setupPaymentDimensionsUpsertLicenseToUnion2OutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
6016
|
-
var setupPaymentDimensionsUpsertLicenseTier2OutboundSchema = z16.object({
|
|
6017
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
6018
|
-
credit_cost: z16.number()
|
|
6019
|
-
});
|
|
6020
|
-
var setupPaymentDimensionsUpsertLicense3OutboundSchema = z16.object({
|
|
6021
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6022
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6023
|
-
tier_behavior: z16.literal("graduated"),
|
|
6024
|
-
tiers: z16.array(setupPaymentDimensionsUpsertLicenseTier2OutboundSchema)
|
|
6025
|
-
});
|
|
6026
|
-
var setupPaymentUpsertLicenseDimensionsUnion2OutboundSchema = z16.union([
|
|
6027
|
-
setupPaymentDimensionsUpsertLicense3OutboundSchema,
|
|
6028
|
-
setupPaymentDimensionsUpsertLicense4OutboundSchema
|
|
6029
|
-
]);
|
|
6030
|
-
var setupPaymentUpsertLicenseMultipliersMatch2OutboundSchema = z16.union(
|
|
6031
|
-
[z16.string(), z16.number(), z16.boolean()]
|
|
6032
|
-
);
|
|
6033
|
-
var setupPaymentUpsertLicenseMultipliers2OutboundSchema = z16.object({
|
|
6034
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6035
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6036
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6037
|
-
});
|
|
6038
|
-
var setupPaymentCreditSchemaUpsertLicense2OutboundSchema = z16.object({
|
|
6039
|
-
metered_feature_id: z16.string(),
|
|
6040
|
-
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6041
|
-
dimensions: z16.union([
|
|
6042
|
-
z16.record(
|
|
6043
|
-
z16.string(),
|
|
6044
|
-
z16.union([
|
|
6045
|
-
setupPaymentDimensionsUpsertLicense3OutboundSchema,
|
|
6046
|
-
setupPaymentDimensionsUpsertLicense4OutboundSchema
|
|
6047
|
-
])
|
|
6048
|
-
),
|
|
6049
|
-
z16.undefined()
|
|
6050
|
-
]).optional(),
|
|
6051
|
-
multipliers: z16.union([
|
|
6052
|
-
z16.record(z16.string(), setupPaymentUpsertLicenseMultipliers2OutboundSchema),
|
|
6053
|
-
z16.undefined()
|
|
6054
|
-
]).optional(),
|
|
6055
|
-
credit_cost: z16.number()
|
|
6056
|
-
});
|
|
6057
|
-
var setupPaymentDimensionsUpsertLicenseMatch2OutboundSchema = z16.union([
|
|
6058
|
-
z16.string(),
|
|
6059
|
-
z16.number(),
|
|
6060
|
-
z16.boolean()
|
|
6061
|
-
]);
|
|
6062
|
-
var setupPaymentDimensionsUpsertLicense2OutboundSchema = z16.object({
|
|
6063
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6064
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6065
|
-
credit_cost: z16.number()
|
|
6066
|
-
});
|
|
6067
|
-
var setupPaymentDimensionsUpsertLicenseMatch1OutboundSchema = z16.union([
|
|
6068
|
-
z16.string(),
|
|
6069
|
-
z16.number(),
|
|
6070
|
-
z16.boolean()
|
|
6071
|
-
]);
|
|
6072
|
-
var setupPaymentDimensionsUpsertLicenseToUnion1OutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
6073
|
-
var setupPaymentDimensionsUpsertLicenseTier1OutboundSchema = z16.object({
|
|
6074
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
6075
|
-
credit_cost: z16.number()
|
|
6076
|
-
});
|
|
6077
|
-
var setupPaymentDimensionsUpsertLicense1OutboundSchema = z16.object({
|
|
6078
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6079
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6080
|
-
tier_behavior: z16.literal("graduated"),
|
|
6081
|
-
tiers: z16.array(setupPaymentDimensionsUpsertLicenseTier1OutboundSchema)
|
|
6082
|
-
});
|
|
6083
|
-
var setupPaymentUpsertLicenseDimensionsUnion1OutboundSchema = z16.union([
|
|
6084
|
-
setupPaymentDimensionsUpsertLicense1OutboundSchema,
|
|
6085
|
-
setupPaymentDimensionsUpsertLicense2OutboundSchema
|
|
6086
|
-
]);
|
|
6087
|
-
var setupPaymentUpsertLicenseMultipliersMatch1OutboundSchema = z16.union(
|
|
6088
|
-
[z16.string(), z16.number(), z16.boolean()]
|
|
6089
|
-
);
|
|
6090
|
-
var setupPaymentUpsertLicenseMultipliers1OutboundSchema = z16.object({
|
|
6091
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6092
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6093
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6094
|
-
});
|
|
6095
|
-
var setupPaymentUpsertLicenseFeatureOverrideToUnionOutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
6096
|
-
var setupPaymentUpsertLicenseFeatureOverrideTierOutboundSchema = z16.object({
|
|
6097
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
6098
|
-
credit_cost: z16.number()
|
|
6099
|
-
});
|
|
6100
|
-
var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = z16.object({
|
|
6101
|
-
metered_feature_id: z16.string(),
|
|
6102
|
-
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6103
|
-
dimensions: z16.union([
|
|
6104
|
-
z16.record(
|
|
6105
|
-
z16.string(),
|
|
6106
|
-
z16.union([
|
|
6107
|
-
setupPaymentDimensionsUpsertLicense1OutboundSchema,
|
|
6108
|
-
setupPaymentDimensionsUpsertLicense2OutboundSchema
|
|
6109
|
-
])
|
|
6110
|
-
),
|
|
6111
|
-
z16.undefined()
|
|
6112
|
-
]).optional(),
|
|
6113
|
-
multipliers: z16.union([
|
|
6114
|
-
z16.record(z16.string(), setupPaymentUpsertLicenseMultipliers1OutboundSchema),
|
|
6115
|
-
z16.undefined()
|
|
6116
|
-
]).optional(),
|
|
6117
|
-
tier_behavior: z16.literal("graduated"),
|
|
6118
|
-
tiers: z16.array(setupPaymentUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
6119
|
-
});
|
|
6120
|
-
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = z16.union(
|
|
6121
|
-
[
|
|
6122
|
-
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
6123
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
6124
|
-
]
|
|
6125
|
-
);
|
|
6126
|
-
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = z16.object({
|
|
6127
|
-
markup: z16.number()
|
|
6128
|
-
});
|
|
6129
|
-
var setupPaymentUpsertLicenseModelMarkupsOutboundSchema = z16.object({
|
|
6130
|
-
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6131
|
-
input_cost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6132
|
-
output_cost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6133
|
-
});
|
|
6134
|
-
var setupPaymentUpsertLicenseMarkupsOutboundSchema = z16.object({
|
|
6135
|
-
default_markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6136
|
-
provider_markups: z16.union([
|
|
6137
|
-
z16.record(
|
|
6138
|
-
z16.string(),
|
|
6139
|
-
setupPaymentUpsertLicenseProviderMarkupsOutboundSchema
|
|
6140
|
-
),
|
|
6141
|
-
z16.undefined()
|
|
6142
|
-
]).optional().nullable(),
|
|
6143
|
-
model_markups: z16.union([
|
|
6144
|
-
z16.record(z16.string(), setupPaymentUpsertLicenseModelMarkupsOutboundSchema),
|
|
6145
|
-
z16.undefined()
|
|
6146
|
-
]).optional().nullable()
|
|
6147
|
-
});
|
|
6148
|
-
var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = z16.object({
|
|
6149
|
-
credit_schema: z16.union([
|
|
6150
|
-
z16.array(
|
|
6151
|
-
z16.union([
|
|
6152
|
-
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
6153
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
6154
|
-
])
|
|
6155
|
-
),
|
|
6156
|
-
z16.undefined()
|
|
6157
|
-
]).optional(),
|
|
6158
|
-
markups: z16.union([setupPaymentUpsertLicenseMarkupsOutboundSchema, z16.undefined()]).optional()
|
|
6159
|
-
});
|
|
6160
|
-
var setupPaymentUpsertLicensePlanItemOutboundSchema = z16.object({
|
|
6161
|
-
threshold_billing: z16.union([
|
|
6162
|
-
setupPaymentUpsertLicenseThresholdBillingOutboundSchema,
|
|
6163
|
-
z16.undefined()
|
|
6164
|
-
]).optional().nullable(),
|
|
6165
|
-
feature_id: z16.string(),
|
|
6166
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6167
|
-
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6168
|
-
pooled: z16.boolean(),
|
|
6169
|
-
reset: z16.union([setupPaymentUpsertLicenseResetOutboundSchema, z16.undefined()]).optional(),
|
|
6170
|
-
price: z16.union([setupPaymentUpsertLicensePriceOutboundSchema, z16.undefined()]).optional(),
|
|
6171
|
-
proration: z16.union([setupPaymentUpsertLicenseProrationOutboundSchema, z16.undefined()]).optional(),
|
|
6172
|
-
rollover: z16.union([setupPaymentUpsertLicenseRolloverOutboundSchema, z16.undefined()]).optional(),
|
|
6173
|
-
feature_override: z16.union([
|
|
6174
|
-
setupPaymentUpsertLicenseFeatureOverrideOutboundSchema,
|
|
6175
|
-
z16.undefined()
|
|
6176
|
-
]).optional()
|
|
6177
|
-
});
|
|
6178
|
-
var setupPaymentUpsertLicenseIntervalUnionOutboundSchema = z16.union([
|
|
6179
|
-
z16.string(),
|
|
6180
|
-
z16.string()
|
|
6181
|
-
]);
|
|
6182
|
-
var setupPaymentUpsertLicensePlanItemFilterOutboundSchema = z16.object({
|
|
6183
|
-
feature_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6184
|
-
billing_method: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6185
|
-
interval: z16.union([z16.string(), z16.string(), z16.undefined()]).optional(),
|
|
6186
|
-
interval_count: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6187
|
-
included: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6188
|
-
});
|
|
6189
|
-
var setupPaymentUpsertLicenseCustomizeOutboundSchema = z16.object({
|
|
6190
|
-
price: z16.union([setupPaymentUpsertLicenseBasePriceOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
6191
|
-
add_items: z16.union([
|
|
6192
|
-
z16.array(setupPaymentUpsertLicensePlanItemOutboundSchema),
|
|
6193
|
-
z16.undefined()
|
|
6194
|
-
]).optional(),
|
|
6195
|
-
remove_items: z16.union([
|
|
6196
|
-
z16.array(setupPaymentUpsertLicensePlanItemFilterOutboundSchema),
|
|
6197
|
-
z16.undefined()
|
|
6198
|
-
]).optional()
|
|
6199
|
-
});
|
|
6200
|
-
var setupPaymentUpsertLicenseOutboundSchema = z16.object({
|
|
6201
|
-
license_plan_id: z16.string(),
|
|
6202
|
-
version_slug: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6203
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6204
|
-
prepaid_only: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6205
|
-
customize: z16.union([setupPaymentUpsertLicenseCustomizeOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
6206
|
-
metadata: z16.union([z16.record(z16.string(), z16.any()), z16.undefined()]).optional()
|
|
6207
|
-
});
|
|
6208
|
-
var setupPaymentRemoveLicenseOutboundSchema = z16.object({
|
|
6209
|
-
license_plan_id: z16.string()
|
|
6210
|
-
});
|
|
6211
|
-
var setupPaymentCustomizeOutboundSchema = z16.object({
|
|
6212
|
-
price: z16.union([setupPaymentBasePriceOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
6213
|
-
items: z16.union([z16.array(setupPaymentItemPlanItemOutboundSchema), z16.undefined()]).optional(),
|
|
6214
|
-
add_items: z16.union([z16.array(setupPaymentAddItemPlanItemOutboundSchema), z16.undefined()]).optional(),
|
|
6215
|
-
remove_items: z16.union([z16.array(setupPaymentPlanItemFilterOutboundSchema), z16.undefined()]).optional(),
|
|
6216
|
-
free_trial: z16.union([setupPaymentCustomizeFreeTrialParamsOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
6217
|
-
billing_controls: z16.union([setupPaymentBillingControlsOutboundSchema, z16.undefined()]).optional(),
|
|
6218
|
-
upsert_licenses: z16.union([z16.array(setupPaymentUpsertLicenseOutboundSchema), z16.undefined()]).optional(),
|
|
6219
|
-
remove_licenses: z16.union([z16.array(setupPaymentRemoveLicenseOutboundSchema), z16.undefined()]).optional()
|
|
6220
|
-
});
|
|
6221
|
-
var setupPaymentAttachDiscountOutboundSchema = z16.object({
|
|
6222
|
-
reward_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6223
|
-
promotion_code: z16.union([z16.string(), z16.undefined()]).optional()
|
|
6224
|
-
});
|
|
6225
|
-
var setupPaymentBillingCycleAnchorOutboundSchema = z16.union([
|
|
6226
|
-
z16.string(),
|
|
6227
|
-
z16.number()
|
|
6228
|
-
]);
|
|
6229
|
-
var setupPaymentCustomLineItemOutboundSchema = z16.object({
|
|
6230
|
-
amount: z16.number(),
|
|
6231
|
-
description: z16.string()
|
|
6232
|
-
});
|
|
6233
|
-
var setupPaymentCarryOverBalancesOutboundSchema = z16.object({
|
|
6234
|
-
enabled: z16.boolean(),
|
|
6235
|
-
feature_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
6236
|
-
});
|
|
6237
|
-
var setupPaymentCarryOverUsagesOutboundSchema = z16.object({
|
|
6238
|
-
enabled: z16.boolean(),
|
|
6239
|
-
feature_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
6240
|
-
});
|
|
6241
|
-
var setupPaymentLicenseQuantityOutboundSchema = z16.object({
|
|
6242
|
-
license_plan_id: z16.string(),
|
|
6243
|
-
quantity: z16.number()
|
|
6244
|
-
});
|
|
6245
|
-
var setupPaymentParamsOutboundSchema = z16.object({
|
|
6246
|
-
customer_id: z16.string(),
|
|
6247
|
-
entity_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6248
|
-
plan_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6249
|
-
feature_quantities: z16.union([z16.array(setupPaymentFeatureQuantityOutboundSchema), z16.undefined()]).optional(),
|
|
6250
|
-
version: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6251
|
-
free_trial: z16.union([setupPaymentFreeTrialParamsOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
6252
|
-
customize: z16.union([setupPaymentCustomizeOutboundSchema, z16.undefined()]).optional(),
|
|
6253
|
-
proration_behavior: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6254
|
-
subscription_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6255
|
-
discounts: z16.union([z16.array(setupPaymentAttachDiscountOutboundSchema), z16.undefined()]).optional(),
|
|
6256
|
-
success_url: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6257
|
-
billing_cycle_anchor: z16.union([z16.string(), z16.number(), z16.undefined()]).optional(),
|
|
6258
|
-
starts_at: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6259
|
-
ends_at: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6260
|
-
checkout_session_params: z16.union([z16.record(z16.string(), z16.any()), z16.undefined()]).optional(),
|
|
6261
|
-
custom_line_items: z16.union([z16.array(setupPaymentCustomLineItemOutboundSchema), z16.undefined()]).optional(),
|
|
6262
|
-
processor_subscription_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6263
|
-
carry_over_balances: z16.union([setupPaymentCarryOverBalancesOutboundSchema, z16.undefined()]).optional(),
|
|
6264
|
-
carry_over_usages: z16.union([setupPaymentCarryOverUsagesOutboundSchema, z16.undefined()]).optional(),
|
|
6265
|
-
license_quantities: z16.union([z16.array(setupPaymentLicenseQuantityOutboundSchema), z16.undefined()]).optional(),
|
|
6266
|
-
metadata: z16.union([z16.record(z16.string(), z16.string()), z16.undefined()]).optional(),
|
|
6267
|
-
no_billing_changes: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6268
|
-
enable_plan_immediately: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6269
|
-
tax_rate_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6270
|
-
currency: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6271
|
-
remove_plan_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
6272
|
-
});
|
|
6273
|
-
var closedEnumSchema11 = z16.any();
|
|
6274
|
-
var setupPaymentDurationTypeSchema = closedEnumSchema11;
|
|
6275
|
-
var setupPaymentOnEndSchema = closedEnumSchema11;
|
|
6276
|
-
var setupPaymentFreeTrialParamsSchema = z16.object({
|
|
6277
|
-
durationLength: z16.number(),
|
|
6278
|
-
durationType: z16.union([setupPaymentDurationTypeSchema, z16.undefined()]).optional(),
|
|
6279
|
-
cardRequired: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6280
|
-
onEnd: z16.union([setupPaymentOnEndSchema, z16.undefined()]).optional()
|
|
6281
|
-
});
|
|
6282
|
-
var setupPaymentPriceIntervalSchema = closedEnumSchema11;
|
|
6283
|
-
var setupPaymentBasePriceSchema = z16.object({
|
|
6284
|
-
amount: z16.number(),
|
|
6285
|
-
interval: setupPaymentPriceIntervalSchema,
|
|
6286
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6287
|
-
additionalCurrencies: z16.union([z16.array(setupPaymentAdditionalCurrencySchema), z16.undefined()]).optional()
|
|
6288
|
-
});
|
|
6289
|
-
var setupPaymentItemResetIntervalSchema = closedEnumSchema11;
|
|
6290
|
-
var setupPaymentItemResetSchema = z16.object({
|
|
6291
|
-
interval: setupPaymentItemResetIntervalSchema,
|
|
6292
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6293
|
-
});
|
|
6294
|
-
var setupPaymentItemTierBehaviorSchema = closedEnumSchema11;
|
|
6295
|
-
var setupPaymentItemPriceIntervalSchema = closedEnumSchema11;
|
|
6296
|
-
var setupPaymentItemBillingMethodSchema = closedEnumSchema11;
|
|
6297
|
-
var setupPaymentItemPriceSchema = z16.object({
|
|
6298
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6299
|
-
additionalCurrencies: z16.union([z16.array(setupPaymentItemAdditionalCurrencySchema), z16.undefined()]).optional(),
|
|
6300
|
-
tiers: z16.union([z16.array(setupPaymentItemPriceTierSchema), z16.undefined()]).optional(),
|
|
6301
|
-
tierBehavior: z16.union([setupPaymentItemTierBehaviorSchema, z16.undefined()]).optional(),
|
|
6302
|
-
interval: setupPaymentItemPriceIntervalSchema,
|
|
6303
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6304
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6305
|
-
billingMethod: setupPaymentItemBillingMethodSchema,
|
|
6306
|
-
maxPurchase: z16.union([z16.number(), z16.undefined()]).optional().nullable()
|
|
6307
|
-
});
|
|
6308
|
-
var setupPaymentItemOnIncreaseSchema = closedEnumSchema11;
|
|
6309
|
-
var setupPaymentItemOnDecreaseSchema = closedEnumSchema11;
|
|
6310
|
-
var setupPaymentItemProrationSchema = z16.object({
|
|
6311
|
-
onIncrease: setupPaymentItemOnIncreaseSchema,
|
|
6312
|
-
onDecrease: setupPaymentItemOnDecreaseSchema
|
|
6313
|
-
});
|
|
6314
|
-
var setupPaymentItemExpiryDurationTypeSchema = closedEnumSchema11;
|
|
6315
|
-
var setupPaymentItemRolloverSchema = z16.object({
|
|
6316
|
-
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6317
|
-
maxPercentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6318
|
-
expiryDurationType: setupPaymentItemExpiryDurationTypeSchema,
|
|
6319
|
-
expiryDurationLength: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6320
|
-
});
|
|
6321
|
-
var setupPaymentDimensionsToItemEnum2Schema = closedEnumSchema11;
|
|
6322
|
-
var setupPaymentDimensionsItemToUnion2Schema = z16.union([
|
|
6323
|
-
z16.number(),
|
|
6324
|
-
setupPaymentDimensionsToItemEnum2Schema
|
|
6325
|
-
]);
|
|
6326
|
-
var setupPaymentDimensionsItemTier2Schema = z16.object({
|
|
6327
|
-
to: z16.union([z16.number(), setupPaymentDimensionsToItemEnum2Schema]),
|
|
6328
|
-
creditCost: z16.number()
|
|
6329
|
-
});
|
|
6330
|
-
var setupPaymentDimensionsItem3Schema = z16.object({
|
|
6331
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6332
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6333
|
-
tierBehavior: z16.literal("graduated"),
|
|
6334
|
-
tiers: z16.array(setupPaymentDimensionsItemTier2Schema)
|
|
6335
|
-
});
|
|
6336
|
-
var setupPaymentItemDimensionsUnion2Schema = z16.union([
|
|
6337
|
-
setupPaymentDimensionsItem3Schema,
|
|
6338
|
-
setupPaymentDimensionsItem4Schema
|
|
6339
|
-
]);
|
|
6340
|
-
var setupPaymentCreditSchemaItem2Schema = z16.object({
|
|
6341
|
-
meteredFeatureId: z16.string(),
|
|
6342
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6343
|
-
dimensions: z16.union([
|
|
6344
|
-
z16.record(
|
|
6345
|
-
z16.string(),
|
|
6346
|
-
z16.union([
|
|
6347
|
-
setupPaymentDimensionsItem3Schema,
|
|
6348
|
-
setupPaymentDimensionsItem4Schema
|
|
6349
|
-
])
|
|
6350
|
-
),
|
|
6351
|
-
z16.undefined()
|
|
6352
|
-
]).optional(),
|
|
6353
|
-
multipliers: z16.union([
|
|
6354
|
-
z16.record(z16.string(), setupPaymentItemMultipliers2Schema),
|
|
6355
|
-
z16.undefined()
|
|
6356
|
-
]).optional(),
|
|
6357
|
-
creditCost: z16.number()
|
|
6358
|
-
});
|
|
6359
|
-
var setupPaymentDimensionsToItemEnum1Schema = closedEnumSchema11;
|
|
6360
|
-
var setupPaymentDimensionsItemToUnion1Schema = z16.union([
|
|
6361
|
-
z16.number(),
|
|
6362
|
-
setupPaymentDimensionsToItemEnum1Schema
|
|
6363
|
-
]);
|
|
6364
|
-
var setupPaymentDimensionsItemTier1Schema = z16.object({
|
|
6365
|
-
to: z16.union([z16.number(), setupPaymentDimensionsToItemEnum1Schema]),
|
|
6366
|
-
creditCost: z16.number()
|
|
6367
|
-
});
|
|
6368
|
-
var setupPaymentDimensionsItem1Schema = z16.object({
|
|
6369
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6370
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6371
|
-
tierBehavior: z16.literal("graduated"),
|
|
6372
|
-
tiers: z16.array(setupPaymentDimensionsItemTier1Schema)
|
|
6373
|
-
});
|
|
6374
|
-
var setupPaymentItemDimensionsUnion1Schema = z16.union([
|
|
6375
|
-
setupPaymentDimensionsItem1Schema,
|
|
6376
|
-
setupPaymentDimensionsItem2Schema
|
|
6377
|
-
]);
|
|
6378
|
-
var setupPaymentToItemEnumSchema = closedEnumSchema11;
|
|
6379
|
-
var setupPaymentItemFeatureOverrideToUnionSchema = z16.union([
|
|
6380
|
-
z16.number(),
|
|
6381
|
-
setupPaymentToItemEnumSchema
|
|
6382
|
-
]);
|
|
6383
|
-
var setupPaymentItemFeatureOverrideTierSchema = z16.object({
|
|
6384
|
-
to: z16.union([z16.number(), setupPaymentToItemEnumSchema]),
|
|
6385
|
-
creditCost: z16.number()
|
|
6386
|
-
});
|
|
6387
|
-
var setupPaymentCreditSchemaItem1Schema = z16.object({
|
|
6388
|
-
meteredFeatureId: z16.string(),
|
|
6389
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6390
|
-
dimensions: z16.union([
|
|
6391
|
-
z16.record(
|
|
6392
|
-
z16.string(),
|
|
6393
|
-
z16.union([
|
|
6394
|
-
setupPaymentDimensionsItem1Schema,
|
|
6395
|
-
setupPaymentDimensionsItem2Schema
|
|
6396
|
-
])
|
|
6397
|
-
),
|
|
6398
|
-
z16.undefined()
|
|
6399
|
-
]).optional(),
|
|
6400
|
-
multipliers: z16.union([
|
|
6401
|
-
z16.record(z16.string(), setupPaymentItemMultipliers1Schema),
|
|
6402
|
-
z16.undefined()
|
|
6403
|
-
]).optional(),
|
|
6404
|
-
tierBehavior: z16.literal("graduated"),
|
|
6405
|
-
tiers: z16.array(setupPaymentItemFeatureOverrideTierSchema)
|
|
6406
|
-
});
|
|
6407
|
-
var setupPaymentItemCreditSchemaUnionSchema = z16.union([
|
|
6408
|
-
setupPaymentCreditSchemaItem1Schema,
|
|
6409
|
-
setupPaymentCreditSchemaItem2Schema
|
|
6410
|
-
]);
|
|
6411
|
-
var setupPaymentItemFeatureOverrideSchema = z16.object({
|
|
6412
|
-
creditSchema: z16.union([
|
|
6413
|
-
z16.array(
|
|
6414
|
-
z16.union([
|
|
6415
|
-
setupPaymentCreditSchemaItem1Schema,
|
|
6416
|
-
setupPaymentCreditSchemaItem2Schema
|
|
6417
|
-
])
|
|
6418
|
-
),
|
|
6419
|
-
z16.undefined()
|
|
6420
|
-
]).optional(),
|
|
6421
|
-
markups: z16.union([setupPaymentItemMarkupsSchema, z16.undefined()]).optional()
|
|
6422
|
-
});
|
|
6423
|
-
var setupPaymentItemPlanItemSchema = z16.object({
|
|
6424
|
-
thresholdBilling: z16.union([setupPaymentItemThresholdBillingSchema, z16.undefined()]).optional().nullable(),
|
|
6425
|
-
featureId: z16.string(),
|
|
6426
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6427
|
-
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6428
|
-
pooled: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6429
|
-
reset: z16.union([setupPaymentItemResetSchema, z16.undefined()]).optional(),
|
|
6430
|
-
price: z16.union([setupPaymentItemPriceSchema, z16.undefined()]).optional(),
|
|
6431
|
-
proration: z16.union([setupPaymentItemProrationSchema, z16.undefined()]).optional(),
|
|
6432
|
-
rollover: z16.union([setupPaymentItemRolloverSchema, z16.undefined()]).optional(),
|
|
6433
|
-
featureOverride: z16.union([setupPaymentItemFeatureOverrideSchema, z16.undefined()]).optional()
|
|
6434
|
-
});
|
|
6435
|
-
var setupPaymentAddItemResetIntervalSchema = closedEnumSchema11;
|
|
6436
|
-
var setupPaymentAddItemResetSchema = z16.object({
|
|
6437
|
-
interval: setupPaymentAddItemResetIntervalSchema,
|
|
6438
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6439
|
-
});
|
|
6440
|
-
var setupPaymentAddItemTierBehaviorSchema = closedEnumSchema11;
|
|
6441
|
-
var setupPaymentAddItemPriceIntervalSchema = closedEnumSchema11;
|
|
6442
|
-
var setupPaymentAddItemBillingMethodSchema = closedEnumSchema11;
|
|
6443
|
-
var setupPaymentAddItemPriceSchema = z16.object({
|
|
6444
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6445
|
-
additionalCurrencies: z16.union([
|
|
6446
|
-
z16.array(setupPaymentAddItemAdditionalCurrencySchema),
|
|
6447
|
-
z16.undefined()
|
|
6448
|
-
]).optional(),
|
|
6449
|
-
tiers: z16.union([z16.array(setupPaymentAddItemPriceTierSchema), z16.undefined()]).optional(),
|
|
6450
|
-
tierBehavior: z16.union([setupPaymentAddItemTierBehaviorSchema, z16.undefined()]).optional(),
|
|
6451
|
-
interval: setupPaymentAddItemPriceIntervalSchema,
|
|
6452
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6453
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6454
|
-
billingMethod: setupPaymentAddItemBillingMethodSchema,
|
|
6455
|
-
maxPurchase: z16.union([z16.number(), z16.undefined()]).optional().nullable()
|
|
6456
|
-
});
|
|
6457
|
-
var setupPaymentAddItemOnIncreaseSchema = closedEnumSchema11;
|
|
6458
|
-
var setupPaymentAddItemOnDecreaseSchema = closedEnumSchema11;
|
|
6459
|
-
var setupPaymentAddItemProrationSchema = z16.object({
|
|
6460
|
-
onIncrease: setupPaymentAddItemOnIncreaseSchema,
|
|
6461
|
-
onDecrease: setupPaymentAddItemOnDecreaseSchema
|
|
6462
|
-
});
|
|
6463
|
-
var setupPaymentAddItemExpiryDurationTypeSchema = closedEnumSchema11;
|
|
6464
|
-
var setupPaymentAddItemRolloverSchema = z16.object({
|
|
6465
|
-
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6466
|
-
maxPercentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6467
|
-
expiryDurationType: setupPaymentAddItemExpiryDurationTypeSchema,
|
|
6468
|
-
expiryDurationLength: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6469
|
-
});
|
|
6470
|
-
var setupPaymentDimensionsToAddItemEnum2Schema = closedEnumSchema11;
|
|
6471
|
-
var setupPaymentDimensionsAddItemToUnion2Schema = z16.union([
|
|
6472
|
-
z16.number(),
|
|
6473
|
-
setupPaymentDimensionsToAddItemEnum2Schema
|
|
6474
|
-
]);
|
|
6475
|
-
var setupPaymentDimensionsAddItemTier2Schema = z16.object({
|
|
6476
|
-
to: z16.union([z16.number(), setupPaymentDimensionsToAddItemEnum2Schema]),
|
|
6477
|
-
creditCost: z16.number()
|
|
6478
|
-
});
|
|
6479
|
-
var setupPaymentDimensionsAddItem3Schema = z16.object({
|
|
6480
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6481
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6482
|
-
tierBehavior: z16.literal("graduated"),
|
|
6483
|
-
tiers: z16.array(setupPaymentDimensionsAddItemTier2Schema)
|
|
6484
|
-
});
|
|
6485
|
-
var setupPaymentAddItemDimensionsUnion2Schema = z16.union([
|
|
6486
|
-
setupPaymentDimensionsAddItem3Schema,
|
|
6487
|
-
setupPaymentDimensionsAddItem4Schema
|
|
6488
|
-
]);
|
|
6489
|
-
var setupPaymentCreditSchemaAddItem2Schema = z16.object({
|
|
6490
|
-
meteredFeatureId: z16.string(),
|
|
6491
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6492
|
-
dimensions: z16.union([
|
|
6493
|
-
z16.record(
|
|
6494
|
-
z16.string(),
|
|
6495
|
-
z16.union([
|
|
6496
|
-
setupPaymentDimensionsAddItem3Schema,
|
|
6497
|
-
setupPaymentDimensionsAddItem4Schema
|
|
6498
|
-
])
|
|
6499
|
-
),
|
|
6500
|
-
z16.undefined()
|
|
6501
|
-
]).optional(),
|
|
6502
|
-
multipliers: z16.union([
|
|
6503
|
-
z16.record(z16.string(), setupPaymentAddItemMultipliers2Schema),
|
|
6504
|
-
z16.undefined()
|
|
6505
|
-
]).optional(),
|
|
6506
|
-
creditCost: z16.number()
|
|
6507
|
-
});
|
|
6508
|
-
var setupPaymentDimensionsToAddItemEnum1Schema = closedEnumSchema11;
|
|
6509
|
-
var setupPaymentDimensionsAddItemToUnion1Schema = z16.union([
|
|
6510
|
-
z16.number(),
|
|
6511
|
-
setupPaymentDimensionsToAddItemEnum1Schema
|
|
6512
|
-
]);
|
|
6513
|
-
var setupPaymentDimensionsAddItemTier1Schema = z16.object({
|
|
6514
|
-
to: z16.union([z16.number(), setupPaymentDimensionsToAddItemEnum1Schema]),
|
|
6515
|
-
creditCost: z16.number()
|
|
6516
|
-
});
|
|
6517
|
-
var setupPaymentDimensionsAddItem1Schema = z16.object({
|
|
6518
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6519
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6520
|
-
tierBehavior: z16.literal("graduated"),
|
|
6521
|
-
tiers: z16.array(setupPaymentDimensionsAddItemTier1Schema)
|
|
6522
|
-
});
|
|
6523
|
-
var setupPaymentAddItemDimensionsUnion1Schema = z16.union([
|
|
6524
|
-
setupPaymentDimensionsAddItem1Schema,
|
|
6525
|
-
setupPaymentDimensionsAddItem2Schema
|
|
6526
|
-
]);
|
|
6527
|
-
var setupPaymentToAddItemEnumSchema = closedEnumSchema11;
|
|
6528
|
-
var setupPaymentAddItemFeatureOverrideToUnionSchema = z16.union([
|
|
6529
|
-
z16.number(),
|
|
6530
|
-
setupPaymentToAddItemEnumSchema
|
|
6531
|
-
]);
|
|
6532
|
-
var setupPaymentAddItemFeatureOverrideTierSchema = z16.object({
|
|
6533
|
-
to: z16.union([z16.number(), setupPaymentToAddItemEnumSchema]),
|
|
6534
|
-
creditCost: z16.number()
|
|
6535
|
-
});
|
|
6536
|
-
var setupPaymentCreditSchemaAddItem1Schema = z16.object({
|
|
6537
|
-
meteredFeatureId: z16.string(),
|
|
6538
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6539
|
-
dimensions: z16.union([
|
|
6540
|
-
z16.record(
|
|
6541
|
-
z16.string(),
|
|
6542
|
-
z16.union([
|
|
6543
|
-
setupPaymentDimensionsAddItem1Schema,
|
|
6544
|
-
setupPaymentDimensionsAddItem2Schema
|
|
6545
|
-
])
|
|
6546
|
-
),
|
|
6547
|
-
z16.undefined()
|
|
6548
|
-
]).optional(),
|
|
6549
|
-
multipliers: z16.union([
|
|
6550
|
-
z16.record(z16.string(), setupPaymentAddItemMultipliers1Schema),
|
|
6551
|
-
z16.undefined()
|
|
6552
|
-
]).optional(),
|
|
6553
|
-
tierBehavior: z16.literal("graduated"),
|
|
6554
|
-
tiers: z16.array(setupPaymentAddItemFeatureOverrideTierSchema)
|
|
6555
|
-
});
|
|
6556
|
-
var setupPaymentAddItemCreditSchemaUnionSchema = z16.union([
|
|
6557
|
-
setupPaymentCreditSchemaAddItem1Schema,
|
|
6558
|
-
setupPaymentCreditSchemaAddItem2Schema
|
|
6559
|
-
]);
|
|
6560
|
-
var setupPaymentAddItemFeatureOverrideSchema = z16.object({
|
|
6561
|
-
creditSchema: z16.union([
|
|
6562
|
-
z16.array(
|
|
6563
|
-
z16.union([
|
|
6564
|
-
setupPaymentCreditSchemaAddItem1Schema,
|
|
6565
|
-
setupPaymentCreditSchemaAddItem2Schema
|
|
6566
|
-
])
|
|
6567
|
-
),
|
|
6568
|
-
z16.undefined()
|
|
6569
|
-
]).optional(),
|
|
6570
|
-
markups: z16.union([setupPaymentAddItemMarkupsSchema, z16.undefined()]).optional()
|
|
6571
|
-
});
|
|
6572
|
-
var setupPaymentAddItemPlanItemSchema = z16.object({
|
|
6573
|
-
thresholdBilling: z16.union([setupPaymentAddItemThresholdBillingSchema, z16.undefined()]).optional().nullable(),
|
|
6574
|
-
featureId: z16.string(),
|
|
6575
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6576
|
-
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6577
|
-
pooled: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6578
|
-
reset: z16.union([setupPaymentAddItemResetSchema, z16.undefined()]).optional(),
|
|
6579
|
-
price: z16.union([setupPaymentAddItemPriceSchema, z16.undefined()]).optional(),
|
|
6580
|
-
proration: z16.union([setupPaymentAddItemProrationSchema, z16.undefined()]).optional(),
|
|
6581
|
-
rollover: z16.union([setupPaymentAddItemRolloverSchema, z16.undefined()]).optional(),
|
|
6582
|
-
featureOverride: z16.union([setupPaymentAddItemFeatureOverrideSchema, z16.undefined()]).optional()
|
|
6583
|
-
});
|
|
6584
|
-
var setupPaymentRemoveItemBillingMethodSchema = closedEnumSchema11;
|
|
6585
|
-
var setupPaymentIntervalRemoveItemEnum2Schema = closedEnumSchema11;
|
|
6586
|
-
var setupPaymentIntervalRemoveItemEnum1Schema = closedEnumSchema11;
|
|
6587
|
-
var setupPaymentIntervalUnionSchema = z16.union([
|
|
6588
|
-
setupPaymentIntervalRemoveItemEnum1Schema,
|
|
6589
|
-
setupPaymentIntervalRemoveItemEnum2Schema
|
|
6590
|
-
]);
|
|
6591
|
-
var setupPaymentPlanItemFilterSchema = z16.object({
|
|
6592
|
-
featureId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6593
|
-
billingMethod: z16.union([setupPaymentRemoveItemBillingMethodSchema, z16.undefined()]).optional(),
|
|
6594
|
-
interval: z16.union([
|
|
6595
|
-
setupPaymentIntervalRemoveItemEnum1Schema,
|
|
6596
|
-
setupPaymentIntervalRemoveItemEnum2Schema,
|
|
5458
|
+
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
5459
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
5460
|
+
])
|
|
5461
|
+
),
|
|
6597
5462
|
z16.undefined()
|
|
6598
5463
|
]).optional(),
|
|
6599
|
-
|
|
5464
|
+
markups: z16.union([setupPaymentUpsertLicenseMarkupsOutboundSchema, z16.undefined()]).optional()
|
|
5465
|
+
});
|
|
5466
|
+
var setupPaymentUpsertLicenseIntervalUnionOutboundSchema = z16.union([
|
|
5467
|
+
z16.string(),
|
|
5468
|
+
z16.string()
|
|
5469
|
+
]);
|
|
5470
|
+
var setupPaymentUpsertLicensePlanItemFilterOutboundSchema = z16.object({
|
|
5471
|
+
feature_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5472
|
+
billing_method: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5473
|
+
interval: z16.union([z16.string(), z16.string(), z16.undefined()]).optional(),
|
|
5474
|
+
interval_count: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6600
5475
|
included: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6601
5476
|
});
|
|
6602
|
-
var
|
|
6603
|
-
|
|
6604
|
-
var setupPaymentCustomizeFreeTrialParamsSchema = z16.object({
|
|
6605
|
-
durationLength: z16.number(),
|
|
6606
|
-
durationType: z16.union([setupPaymentCustomizeDurationTypeSchema, z16.undefined()]).optional(),
|
|
6607
|
-
cardRequired: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6608
|
-
onEnd: z16.union([setupPaymentCustomizeOnEndSchema, z16.undefined()]).optional()
|
|
6609
|
-
});
|
|
6610
|
-
var setupPaymentAutoTopupIntervalSchema = closedEnumSchema11;
|
|
6611
|
-
var setupPaymentPurchaseLimitSchema = z16.object({
|
|
6612
|
-
interval: setupPaymentAutoTopupIntervalSchema,
|
|
6613
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6614
|
-
limit: z16.number(),
|
|
6615
|
-
count: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5477
|
+
var setupPaymentRemoveLicenseOutboundSchema = z16.object({
|
|
5478
|
+
license_plan_id: z16.string()
|
|
6616
5479
|
});
|
|
6617
|
-
var
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
var
|
|
6626
|
-
var setupPaymentSpendLimitSchema = z16.object({
|
|
6627
|
-
featureId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6628
|
-
enabled: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6629
|
-
limitType: z16.union([setupPaymentLimitTypeSchema, z16.undefined()]).optional(),
|
|
6630
|
-
overageLimit: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6631
|
-
skipOverageBilling: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
6632
|
-
});
|
|
6633
|
-
var setupPaymentUsageLimitIntervalSchema = closedEnumSchema11;
|
|
6634
|
-
var setupPaymentAnchorSchema = closedEnumSchema11;
|
|
6635
|
-
var setupPaymentUsageLimitSchema = z16.object({
|
|
6636
|
-
featureId: z16.string(),
|
|
6637
|
-
enabled: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6638
|
-
limit: z16.number(),
|
|
6639
|
-
interval: setupPaymentUsageLimitIntervalSchema,
|
|
6640
|
-
anchor: z16.union([setupPaymentAnchorSchema, z16.undefined()]).optional(),
|
|
6641
|
-
filter: z16.union([setupPaymentUsageLimitFilterSchema, z16.undefined()]).optional()
|
|
6642
|
-
});
|
|
6643
|
-
var setupPaymentThresholdTypeSchema = closedEnumSchema11;
|
|
6644
|
-
var setupPaymentBasisSchema = closedEnumSchema11;
|
|
6645
|
-
var setupPaymentUsageAlertSchema = z16.object({
|
|
6646
|
-
featureId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6647
|
-
enabled: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6648
|
-
threshold: z16.number(),
|
|
6649
|
-
thresholdType: setupPaymentThresholdTypeSchema,
|
|
6650
|
-
basis: z16.union([setupPaymentBasisSchema, z16.undefined()]).optional(),
|
|
6651
|
-
filter: z16.union([setupPaymentUsageAlertFilterSchema, z16.undefined()]).optional(),
|
|
6652
|
-
name: z16.union([z16.string(), z16.undefined()]).optional()
|
|
6653
|
-
});
|
|
6654
|
-
var setupPaymentBillingControlsSchema = z16.object({
|
|
6655
|
-
autoTopups: z16.union([z16.array(setupPaymentAutoTopupSchema), z16.undefined()]).optional(),
|
|
6656
|
-
spendLimits: z16.union([z16.array(setupPaymentSpendLimitSchema), z16.undefined()]).optional(),
|
|
6657
|
-
usageLimits: z16.union([z16.array(setupPaymentUsageLimitSchema), z16.undefined()]).optional(),
|
|
6658
|
-
usageAlerts: z16.union([z16.array(setupPaymentUsageAlertSchema), z16.undefined()]).optional(),
|
|
6659
|
-
overageAllowed: z16.union([z16.array(setupPaymentOverageAllowedSchema), z16.undefined()]).optional()
|
|
6660
|
-
});
|
|
6661
|
-
var setupPaymentPriceUpsertLicenseIntervalSchema = closedEnumSchema11;
|
|
6662
|
-
var setupPaymentUpsertLicenseBasePriceSchema = z16.object({
|
|
5480
|
+
var setupPaymentAttachDiscountOutboundSchema = z16.object({
|
|
5481
|
+
reward_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5482
|
+
promotion_code: z16.union([z16.string(), z16.undefined()]).optional()
|
|
5483
|
+
});
|
|
5484
|
+
var setupPaymentBillingCycleAnchorOutboundSchema = z16.union([
|
|
5485
|
+
z16.string(),
|
|
5486
|
+
z16.number()
|
|
5487
|
+
]);
|
|
5488
|
+
var setupPaymentCustomLineItemOutboundSchema = z16.object({
|
|
6663
5489
|
amount: z16.number(),
|
|
6664
|
-
|
|
6665
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6666
|
-
additionalCurrencies: z16.union([
|
|
6667
|
-
z16.array(setupPaymentUpsertLicenseAdditionalCurrencySchema),
|
|
6668
|
-
z16.undefined()
|
|
6669
|
-
]).optional()
|
|
5490
|
+
description: z16.string()
|
|
6670
5491
|
});
|
|
6671
|
-
var
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
var
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
var
|
|
6694
|
-
var
|
|
6695
|
-
var
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
var
|
|
6700
|
-
var
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
5492
|
+
var setupPaymentCarryOverBalancesOutboundSchema = z16.object({
|
|
5493
|
+
enabled: z16.boolean(),
|
|
5494
|
+
feature_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5495
|
+
});
|
|
5496
|
+
var setupPaymentCarryOverUsagesOutboundSchema = z16.object({
|
|
5497
|
+
enabled: z16.boolean(),
|
|
5498
|
+
feature_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5499
|
+
});
|
|
5500
|
+
var setupPaymentLicenseQuantityOutboundSchema = z16.object({
|
|
5501
|
+
license_plan_id: z16.string(),
|
|
5502
|
+
quantity: z16.number()
|
|
5503
|
+
});
|
|
5504
|
+
var closedEnumSchema11 = z16.any();
|
|
5505
|
+
var setupPaymentUpsertLicenseThresholdBillingSchema = z16.any();
|
|
5506
|
+
var setupPaymentUpsertLicenseResetSchema = z16.any();
|
|
5507
|
+
var setupPaymentUpsertLicensePriceSchema = z16.any();
|
|
5508
|
+
var setupPaymentUpsertLicenseProrationSchema = z16.any();
|
|
5509
|
+
var setupPaymentUpsertLicenseRolloverSchema = z16.any();
|
|
5510
|
+
var setupPaymentUpsertLicenseBasePriceSchema = z16.any();
|
|
5511
|
+
var setupPaymentBasePriceSchema = z16.any();
|
|
5512
|
+
var setupPaymentItemPlanItemSchema = z16.any();
|
|
5513
|
+
var setupPaymentAddItemPlanItemSchema = z16.any();
|
|
5514
|
+
var setupPaymentPlanItemFilterSchema = z16.any();
|
|
5515
|
+
var setupPaymentCustomizeFreeTrialParamsSchema = z16.any();
|
|
5516
|
+
var setupPaymentBillingControlsSchema = z16.any();
|
|
5517
|
+
var setupPaymentFeatureQuantitySchema = z16.any();
|
|
5518
|
+
var setupPaymentFreeTrialParamsSchema = z16.any();
|
|
5519
|
+
var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = z16.any();
|
|
5520
|
+
var setupPaymentUpsertLicenseResetOutboundSchema = z16.any();
|
|
5521
|
+
var setupPaymentUpsertLicensePriceOutboundSchema = z16.any();
|
|
5522
|
+
var setupPaymentUpsertLicenseProrationOutboundSchema = z16.any();
|
|
5523
|
+
var setupPaymentUpsertLicenseRolloverOutboundSchema = z16.any();
|
|
5524
|
+
var setupPaymentUpsertLicenseBasePriceOutboundSchema = z16.any();
|
|
5525
|
+
var setupPaymentBasePriceOutboundSchema = z16.any();
|
|
5526
|
+
var setupPaymentItemPlanItemOutboundSchema = z16.any();
|
|
5527
|
+
var setupPaymentAddItemPlanItemOutboundSchema = z16.any();
|
|
5528
|
+
var setupPaymentPlanItemFilterOutboundSchema = z16.any();
|
|
5529
|
+
var setupPaymentCustomizeFreeTrialParamsOutboundSchema = z16.any();
|
|
5530
|
+
var setupPaymentBillingControlsOutboundSchema = z16.any();
|
|
5531
|
+
var setupPaymentFeatureQuantityOutboundSchema = z16.any();
|
|
5532
|
+
var setupPaymentFreeTrialParamsOutboundSchema = z16.any();
|
|
5533
|
+
var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema11;
|
|
5534
|
+
var setupPaymentUpsertLicenseExpirySchema = z16.object({
|
|
5535
|
+
duration: setupPaymentUpsertLicenseDurationSchema,
|
|
5536
|
+
length: z16.number()
|
|
6705
5537
|
});
|
|
6706
5538
|
var setupPaymentDimensionsToUpsertLicenseEnum2Schema = closedEnumSchema11;
|
|
6707
5539
|
var setupPaymentDimensionsUpsertLicenseToUnion2Schema = z16.union([
|
|
@@ -6815,6 +5647,7 @@ var setupPaymentUpsertLicensePlanItemSchema = z16.object({
|
|
|
6815
5647
|
price: z16.union([setupPaymentUpsertLicensePriceSchema, z16.undefined()]).optional(),
|
|
6816
5648
|
proration: z16.union([setupPaymentUpsertLicenseProrationSchema, z16.undefined()]).optional(),
|
|
6817
5649
|
rollover: z16.union([setupPaymentUpsertLicenseRolloverSchema, z16.undefined()]).optional(),
|
|
5650
|
+
expiry: z16.union([setupPaymentUpsertLicenseExpirySchema, z16.undefined()]).optional(),
|
|
6818
5651
|
featureOverride: z16.union([setupPaymentUpsertLicenseFeatureOverrideSchema, z16.undefined()]).optional()
|
|
6819
5652
|
});
|
|
6820
5653
|
var setupPaymentUpsertLicenseRemoveItemBillingMethodSchema = closedEnumSchema11;
|
|
@@ -6893,9 +5726,100 @@ var setupPaymentParamsSchema = z16.object({
|
|
|
6893
5726
|
currency: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6894
5727
|
removePlanIds: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
6895
5728
|
});
|
|
5729
|
+
var setupPaymentUpsertLicensePlanItemOutboundSchema = z16.object({
|
|
5730
|
+
threshold_billing: z16.union([
|
|
5731
|
+
setupPaymentUpsertLicenseThresholdBillingOutboundSchema,
|
|
5732
|
+
z16.undefined()
|
|
5733
|
+
]).optional().nullable(),
|
|
5734
|
+
feature_id: z16.string(),
|
|
5735
|
+
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5736
|
+
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5737
|
+
pooled: z16.boolean(),
|
|
5738
|
+
reset: z16.union([setupPaymentUpsertLicenseResetOutboundSchema, z16.undefined()]).optional(),
|
|
5739
|
+
price: z16.union([setupPaymentUpsertLicensePriceOutboundSchema, z16.undefined()]).optional(),
|
|
5740
|
+
proration: z16.union([setupPaymentUpsertLicenseProrationOutboundSchema, z16.undefined()]).optional(),
|
|
5741
|
+
rollover: z16.union([setupPaymentUpsertLicenseRolloverOutboundSchema, z16.undefined()]).optional(),
|
|
5742
|
+
expiry: z16.union([setupPaymentUpsertLicenseExpiryOutboundSchema, z16.undefined()]).optional(),
|
|
5743
|
+
feature_override: z16.union([
|
|
5744
|
+
setupPaymentUpsertLicenseFeatureOverrideOutboundSchema,
|
|
5745
|
+
z16.undefined()
|
|
5746
|
+
]).optional()
|
|
5747
|
+
});
|
|
5748
|
+
var setupPaymentUpsertLicenseCustomizeOutboundSchema = z16.object({
|
|
5749
|
+
price: z16.union([setupPaymentUpsertLicenseBasePriceOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5750
|
+
add_items: z16.union([
|
|
5751
|
+
z16.array(setupPaymentUpsertLicensePlanItemOutboundSchema),
|
|
5752
|
+
z16.undefined()
|
|
5753
|
+
]).optional(),
|
|
5754
|
+
remove_items: z16.union([
|
|
5755
|
+
z16.array(setupPaymentUpsertLicensePlanItemFilterOutboundSchema),
|
|
5756
|
+
z16.undefined()
|
|
5757
|
+
]).optional()
|
|
5758
|
+
});
|
|
5759
|
+
var setupPaymentUpsertLicenseOutboundSchema = z16.object({
|
|
5760
|
+
license_plan_id: z16.string(),
|
|
5761
|
+
version_slug: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5762
|
+
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5763
|
+
prepaid_only: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5764
|
+
customize: z16.union([setupPaymentUpsertLicenseCustomizeOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5765
|
+
metadata: z16.union([z16.record(z16.string(), z16.any()), z16.undefined()]).optional()
|
|
5766
|
+
});
|
|
5767
|
+
var setupPaymentCustomizeOutboundSchema = z16.object({
|
|
5768
|
+
price: z16.union([setupPaymentBasePriceOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5769
|
+
items: z16.union([z16.array(setupPaymentItemPlanItemOutboundSchema), z16.undefined()]).optional(),
|
|
5770
|
+
add_items: z16.union([z16.array(setupPaymentAddItemPlanItemOutboundSchema), z16.undefined()]).optional(),
|
|
5771
|
+
remove_items: z16.union([z16.array(setupPaymentPlanItemFilterOutboundSchema), z16.undefined()]).optional(),
|
|
5772
|
+
free_trial: z16.union([setupPaymentCustomizeFreeTrialParamsOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5773
|
+
billing_controls: z16.union([setupPaymentBillingControlsOutboundSchema, z16.undefined()]).optional(),
|
|
5774
|
+
upsert_licenses: z16.union([z16.array(setupPaymentUpsertLicenseOutboundSchema), z16.undefined()]).optional(),
|
|
5775
|
+
remove_licenses: z16.union([z16.array(setupPaymentRemoveLicenseOutboundSchema), z16.undefined()]).optional()
|
|
5776
|
+
});
|
|
5777
|
+
var setupPaymentParamsOutboundSchema = z16.object({
|
|
5778
|
+
customer_id: z16.string(),
|
|
5779
|
+
entity_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5780
|
+
plan_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5781
|
+
feature_quantities: z16.union([z16.array(setupPaymentFeatureQuantityOutboundSchema), z16.undefined()]).optional(),
|
|
5782
|
+
version: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5783
|
+
free_trial: z16.union([setupPaymentFreeTrialParamsOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5784
|
+
customize: z16.union([setupPaymentCustomizeOutboundSchema, z16.undefined()]).optional(),
|
|
5785
|
+
proration_behavior: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5786
|
+
subscription_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5787
|
+
discounts: z16.union([z16.array(setupPaymentAttachDiscountOutboundSchema), z16.undefined()]).optional(),
|
|
5788
|
+
success_url: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5789
|
+
billing_cycle_anchor: z16.union([z16.string(), z16.number(), z16.undefined()]).optional(),
|
|
5790
|
+
starts_at: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5791
|
+
ends_at: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5792
|
+
checkout_session_params: z16.union([z16.record(z16.string(), z16.any()), z16.undefined()]).optional(),
|
|
5793
|
+
custom_line_items: z16.union([z16.array(setupPaymentCustomLineItemOutboundSchema), z16.undefined()]).optional(),
|
|
5794
|
+
processor_subscription_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5795
|
+
carry_over_balances: z16.union([setupPaymentCarryOverBalancesOutboundSchema, z16.undefined()]).optional(),
|
|
5796
|
+
carry_over_usages: z16.union([setupPaymentCarryOverUsagesOutboundSchema, z16.undefined()]).optional(),
|
|
5797
|
+
license_quantities: z16.union([z16.array(setupPaymentLicenseQuantityOutboundSchema), z16.undefined()]).optional(),
|
|
5798
|
+
metadata: z16.union([z16.record(z16.string(), z16.string()), z16.undefined()]).optional(),
|
|
5799
|
+
no_billing_changes: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5800
|
+
enable_plan_immediately: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5801
|
+
tax_rate_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5802
|
+
currency: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5803
|
+
remove_plan_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5804
|
+
});
|
|
6896
5805
|
|
|
6897
5806
|
// src/generated/updateSubscriptionSchemas.ts
|
|
6898
5807
|
import { z as z17 } from "zod/v4";
|
|
5808
|
+
var billingUpdateDimensionsUpsertLicenseMatch4Schema = z17.union([
|
|
5809
|
+
z17.string(),
|
|
5810
|
+
z17.number(),
|
|
5811
|
+
z17.boolean()
|
|
5812
|
+
]);
|
|
5813
|
+
var billingUpdateDimensionsUpsertLicense4Schema = z17.object({
|
|
5814
|
+
match: z17.record(z17.string(), z17.union([z17.string(), z17.number(), z17.boolean()])),
|
|
5815
|
+
priority: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
5816
|
+
creditCost: z17.number()
|
|
5817
|
+
});
|
|
5818
|
+
var billingUpdateDimensionsUpsertLicenseMatch3Schema = z17.union([
|
|
5819
|
+
z17.string(),
|
|
5820
|
+
z17.number(),
|
|
5821
|
+
z17.boolean()
|
|
5822
|
+
]);
|
|
6899
5823
|
var billingUpdateUpsertLicenseMultipliersMatch2Schema = z17.union([
|
|
6900
5824
|
z17.string(),
|
|
6901
5825
|
z17.number(),
|
|
@@ -6964,6 +5888,10 @@ var billingUpdateAttachDiscountSchema = z17.object({
|
|
|
6964
5888
|
rewardId: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
6965
5889
|
promotionCode: z17.union([z17.string(), z17.undefined()]).optional()
|
|
6966
5890
|
});
|
|
5891
|
+
var billingUpdateCustomLineItemSchema = z17.object({
|
|
5892
|
+
amount: z17.number(),
|
|
5893
|
+
description: z17.string()
|
|
5894
|
+
});
|
|
6967
5895
|
var billingUpdateBillingCycleAnchorSchema = z17.union([
|
|
6968
5896
|
z17.string(),
|
|
6969
5897
|
z17.number()
|
|
@@ -6986,6 +5914,21 @@ var billingUpdateInvoiceSchema = z17.object({
|
|
|
6986
5914
|
currency: z17.string(),
|
|
6987
5915
|
hostedInvoiceUrl: z17.string().nullable()
|
|
6988
5916
|
});
|
|
5917
|
+
var billingUpdateUpsertLicenseExpiryOutboundSchema = z17.object({
|
|
5918
|
+
duration: z17.string(),
|
|
5919
|
+
length: z17.number()
|
|
5920
|
+
});
|
|
5921
|
+
var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = z17.union(
|
|
5922
|
+
[z17.string(), z17.number(), z17.boolean()]
|
|
5923
|
+
);
|
|
5924
|
+
var billingUpdateDimensionsUpsertLicense4OutboundSchema = z17.object({
|
|
5925
|
+
match: z17.record(z17.string(), z17.union([z17.string(), z17.number(), z17.boolean()])),
|
|
5926
|
+
priority: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
5927
|
+
credit_cost: z17.number()
|
|
5928
|
+
});
|
|
5929
|
+
var billingUpdateDimensionsUpsertLicenseMatch3OutboundSchema = z17.union(
|
|
5930
|
+
[z17.string(), z17.number(), z17.boolean()]
|
|
5931
|
+
);
|
|
6989
5932
|
var billingUpdateDimensionsUpsertLicenseToUnion2OutboundSchema = z17.union([z17.number(), z17.string()]);
|
|
6990
5933
|
var billingUpdateDimensionsUpsertLicenseTier2OutboundSchema = z17.object(
|
|
6991
5934
|
{
|
|
@@ -6993,12 +5936,46 @@ var billingUpdateDimensionsUpsertLicenseTier2OutboundSchema = z17.object(
|
|
|
6993
5936
|
credit_cost: z17.number()
|
|
6994
5937
|
}
|
|
6995
5938
|
);
|
|
5939
|
+
var billingUpdateDimensionsUpsertLicense3OutboundSchema = z17.object({
|
|
5940
|
+
match: z17.record(z17.string(), z17.union([z17.string(), z17.number(), z17.boolean()])),
|
|
5941
|
+
priority: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
5942
|
+
tier_behavior: z17.literal("graduated"),
|
|
5943
|
+
tiers: z17.array(billingUpdateDimensionsUpsertLicenseTier2OutboundSchema)
|
|
5944
|
+
});
|
|
5945
|
+
var billingUpdateUpsertLicenseDimensionsUnion2OutboundSchema = z17.union(
|
|
5946
|
+
[
|
|
5947
|
+
billingUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
5948
|
+
billingUpdateDimensionsUpsertLicense4OutboundSchema
|
|
5949
|
+
]
|
|
5950
|
+
);
|
|
6996
5951
|
var billingUpdateUpsertLicenseMultipliersMatch2OutboundSchema = z17.union([z17.string(), z17.number(), z17.boolean()]);
|
|
6997
5952
|
var billingUpdateUpsertLicenseMultipliers2OutboundSchema = z17.object({
|
|
6998
5953
|
match: z17.record(z17.string(), z17.union([z17.string(), z17.number(), z17.boolean()])),
|
|
6999
5954
|
factor: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
7000
5955
|
add: z17.union([z17.number(), z17.undefined()]).optional()
|
|
7001
5956
|
});
|
|
5957
|
+
var billingUpdateCreditSchemaUpsertLicense2OutboundSchema = z17.object({
|
|
5958
|
+
metered_feature_id: z17.string(),
|
|
5959
|
+
billing_units: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
5960
|
+
dimensions: z17.union([
|
|
5961
|
+
z17.record(
|
|
5962
|
+
z17.string(),
|
|
5963
|
+
z17.union([
|
|
5964
|
+
billingUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
5965
|
+
billingUpdateDimensionsUpsertLicense4OutboundSchema
|
|
5966
|
+
])
|
|
5967
|
+
),
|
|
5968
|
+
z17.undefined()
|
|
5969
|
+
]).optional(),
|
|
5970
|
+
multipliers: z17.union([
|
|
5971
|
+
z17.record(
|
|
5972
|
+
z17.string(),
|
|
5973
|
+
billingUpdateUpsertLicenseMultipliers2OutboundSchema
|
|
5974
|
+
),
|
|
5975
|
+
z17.undefined()
|
|
5976
|
+
]).optional(),
|
|
5977
|
+
credit_cost: z17.number()
|
|
5978
|
+
});
|
|
7002
5979
|
var billingUpdateDimensionsUpsertLicenseMatch2OutboundSchema = z17.union(
|
|
7003
5980
|
[z17.string(), z17.number(), z17.boolean()]
|
|
7004
5981
|
);
|
|
@@ -7063,6 +6040,10 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = z17.object({
|
|
|
7063
6040
|
tier_behavior: z17.literal("graduated"),
|
|
7064
6041
|
tiers: z17.array(billingUpdateUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
7065
6042
|
});
|
|
6043
|
+
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z17.union([
|
|
6044
|
+
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
6045
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
6046
|
+
]);
|
|
7066
6047
|
var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = z17.object(
|
|
7067
6048
|
{
|
|
7068
6049
|
markup: z17.number()
|
|
@@ -7090,6 +6071,20 @@ var billingUpdateUpsertLicenseMarkupsOutboundSchema = z17.object({
|
|
|
7090
6071
|
z17.undefined()
|
|
7091
6072
|
]).optional().nullable()
|
|
7092
6073
|
});
|
|
6074
|
+
var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = z17.object(
|
|
6075
|
+
{
|
|
6076
|
+
credit_schema: z17.union([
|
|
6077
|
+
z17.array(
|
|
6078
|
+
z17.union([
|
|
6079
|
+
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
6080
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
6081
|
+
])
|
|
6082
|
+
),
|
|
6083
|
+
z17.undefined()
|
|
6084
|
+
]).optional(),
|
|
6085
|
+
markups: z17.union([billingUpdateUpsertLicenseMarkupsOutboundSchema, z17.undefined()]).optional()
|
|
6086
|
+
}
|
|
6087
|
+
);
|
|
7093
6088
|
var billingUpdateUpsertLicenseIntervalUnionOutboundSchema = z17.union([
|
|
7094
6089
|
z17.string(),
|
|
7095
6090
|
z17.string()
|
|
@@ -7115,6 +6110,10 @@ var billingUpdateAttachDiscountOutboundSchema = z17.object({
|
|
|
7115
6110
|
reward_id: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
7116
6111
|
promotion_code: z17.union([z17.string(), z17.undefined()]).optional()
|
|
7117
6112
|
});
|
|
6113
|
+
var billingUpdateCustomLineItemOutboundSchema = z17.object({
|
|
6114
|
+
amount: z17.number(),
|
|
6115
|
+
description: z17.string()
|
|
6116
|
+
});
|
|
7118
6117
|
var billingUpdateBillingCycleAnchorOutboundSchema = z17.union([
|
|
7119
6118
|
z17.string(),
|
|
7120
6119
|
z17.number()
|
|
@@ -7130,9 +6129,6 @@ var billingUpdateLicenseQuantityOutboundSchema = z17.object({
|
|
|
7130
6129
|
license_plan_id: z17.string(),
|
|
7131
6130
|
quantity: z17.number()
|
|
7132
6131
|
});
|
|
7133
|
-
var billingUpdateDimensionsToUpsertLicenseEnum2Schema = z17.any();
|
|
7134
|
-
var billingUpdateDimensionsUpsertLicenseMatch3Schema = z17.any();
|
|
7135
|
-
var billingUpdateDimensionsUpsertLicense4Schema = z17.any();
|
|
7136
6132
|
var closedEnumSchema12 = z17.any();
|
|
7137
6133
|
var billingUpdateUpsertLicenseThresholdBillingSchema = z17.any();
|
|
7138
6134
|
var billingUpdateUpsertLicenseResetSchema = z17.any();
|
|
@@ -7148,9 +6144,7 @@ var billingUpdateCustomizeFreeTrialParamsSchema = z17.any();
|
|
|
7148
6144
|
var billingUpdateBillingControlsSchema = z17.any();
|
|
7149
6145
|
var billingUpdateFeatureQuantitySchema = z17.any();
|
|
7150
6146
|
var billingUpdateFreeTrialParamsSchema = z17.any();
|
|
7151
|
-
var
|
|
7152
|
-
var billingUpdateDimensionsUpsertLicenseMatch3OutboundSchema = z17.any();
|
|
7153
|
-
var billingUpdateDimensionsUpsertLicense4OutboundSchema = z17.any();
|
|
6147
|
+
var openEnumSchema12 = z17.any();
|
|
7154
6148
|
var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = z17.any();
|
|
7155
6149
|
var billingUpdateUpsertLicenseResetOutboundSchema = z17.any();
|
|
7156
6150
|
var billingUpdateUpsertLicensePriceOutboundSchema = z17.any();
|
|
@@ -7165,6 +6159,12 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = z17.any();
|
|
|
7165
6159
|
var billingUpdateBillingControlsOutboundSchema = z17.any();
|
|
7166
6160
|
var billingUpdateFeatureQuantityOutboundSchema = z17.any();
|
|
7167
6161
|
var billingUpdateFreeTrialParamsOutboundSchema = z17.any();
|
|
6162
|
+
var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema12;
|
|
6163
|
+
var billingUpdateUpsertLicenseExpirySchema = z17.object({
|
|
6164
|
+
duration: billingUpdateUpsertLicenseDurationSchema,
|
|
6165
|
+
length: z17.number()
|
|
6166
|
+
});
|
|
6167
|
+
var billingUpdateDimensionsToUpsertLicenseEnum2Schema = closedEnumSchema12;
|
|
7168
6168
|
var billingUpdateDimensionsUpsertLicenseToUnion2Schema = z17.union([
|
|
7169
6169
|
z17.number(),
|
|
7170
6170
|
billingUpdateDimensionsToUpsertLicenseEnum2Schema
|
|
@@ -7174,7 +6174,7 @@ var billingUpdateDimensionsUpsertLicenseTier2Schema = z17.object({
|
|
|
7174
6174
|
creditCost: z17.number()
|
|
7175
6175
|
});
|
|
7176
6176
|
var billingUpdateDimensionsUpsertLicense3Schema = z17.object({
|
|
7177
|
-
match: z17.record(z17.string(),
|
|
6177
|
+
match: z17.record(z17.string(), z17.union([z17.string(), z17.number(), z17.boolean()])),
|
|
7178
6178
|
priority: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
7179
6179
|
tierBehavior: z17.literal("graduated"),
|
|
7180
6180
|
tiers: z17.array(billingUpdateDimensionsUpsertLicenseTier2Schema)
|
|
@@ -7276,6 +6276,7 @@ var billingUpdateUpsertLicensePlanItemSchema = z17.object({
|
|
|
7276
6276
|
price: z17.union([billingUpdateUpsertLicensePriceSchema, z17.undefined()]).optional(),
|
|
7277
6277
|
proration: z17.union([billingUpdateUpsertLicenseProrationSchema, z17.undefined()]).optional(),
|
|
7278
6278
|
rollover: z17.union([billingUpdateUpsertLicenseRolloverSchema, z17.undefined()]).optional(),
|
|
6279
|
+
expiry: z17.union([billingUpdateUpsertLicenseExpirySchema, z17.undefined()]).optional(),
|
|
7279
6280
|
featureOverride: z17.union([billingUpdateUpsertLicenseFeatureOverrideSchema, z17.undefined()]).optional()
|
|
7280
6281
|
});
|
|
7281
6282
|
var billingUpdateUpsertLicenseRemoveItemBillingMethodSchema = closedEnumSchema12;
|
|
@@ -7342,6 +6343,7 @@ var updateSubscriptionParamsSchema = z17.object({
|
|
|
7342
6343
|
redirectMode: z17.union([billingUpdateRedirectModeSchema, z17.undefined()]).optional(),
|
|
7343
6344
|
subscriptionId: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
7344
6345
|
discounts: z17.union([z17.array(billingUpdateAttachDiscountSchema), z17.undefined()]).optional(),
|
|
6346
|
+
customLineItems: z17.union([z17.array(billingUpdateCustomLineItemSchema), z17.undefined()]).optional(),
|
|
7345
6347
|
cancelAction: z17.union([billingUpdateCancelActionSchema, z17.undefined()]).optional(),
|
|
7346
6348
|
billingCycleAnchor: z17.union([z17.string(), z17.number(), z17.undefined()]).optional(),
|
|
7347
6349
|
noBillingChanges: z17.union([z17.boolean(), z17.undefined()]).optional(),
|
|
@@ -7351,7 +6353,7 @@ var updateSubscriptionParamsSchema = z17.object({
|
|
|
7351
6353
|
carryOverUsages: z17.union([billingUpdateCarryOverUsagesSchema, z17.undefined()]).optional(),
|
|
7352
6354
|
licenseQuantities: z17.union([z17.array(billingUpdateLicenseQuantitySchema), z17.undefined()]).optional()
|
|
7353
6355
|
});
|
|
7354
|
-
var billingUpdateCodeSchema =
|
|
6356
|
+
var billingUpdateCodeSchema = openEnumSchema12;
|
|
7355
6357
|
var billingUpdateRequiredActionSchema = z17.object({
|
|
7356
6358
|
code: billingUpdateCodeSchema,
|
|
7357
6359
|
reason: z17.string()
|
|
@@ -7363,61 +6365,6 @@ var billingUpdateResponseSchema = z17.object({
|
|
|
7363
6365
|
paymentUrl: z17.string().nullable(),
|
|
7364
6366
|
requiredAction: z17.union([billingUpdateRequiredActionSchema, z17.undefined()]).optional()
|
|
7365
6367
|
});
|
|
7366
|
-
var billingUpdateDimensionsUpsertLicense3OutboundSchema = z17.object({
|
|
7367
|
-
match: z17.record(
|
|
7368
|
-
z17.string(),
|
|
7369
|
-
billingUpdateDimensionsUpsertLicenseMatch3OutboundSchema
|
|
7370
|
-
),
|
|
7371
|
-
priority: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
7372
|
-
tier_behavior: z17.literal("graduated"),
|
|
7373
|
-
tiers: z17.array(billingUpdateDimensionsUpsertLicenseTier2OutboundSchema)
|
|
7374
|
-
});
|
|
7375
|
-
var billingUpdateUpsertLicenseDimensionsUnion2OutboundSchema = z17.union(
|
|
7376
|
-
[
|
|
7377
|
-
billingUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
7378
|
-
billingUpdateDimensionsUpsertLicense4OutboundSchema
|
|
7379
|
-
]
|
|
7380
|
-
);
|
|
7381
|
-
var billingUpdateCreditSchemaUpsertLicense2OutboundSchema = z17.object({
|
|
7382
|
-
metered_feature_id: z17.string(),
|
|
7383
|
-
billing_units: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
7384
|
-
dimensions: z17.union([
|
|
7385
|
-
z17.record(
|
|
7386
|
-
z17.string(),
|
|
7387
|
-
z17.union([
|
|
7388
|
-
billingUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
7389
|
-
billingUpdateDimensionsUpsertLicense4OutboundSchema
|
|
7390
|
-
])
|
|
7391
|
-
),
|
|
7392
|
-
z17.undefined()
|
|
7393
|
-
]).optional(),
|
|
7394
|
-
multipliers: z17.union([
|
|
7395
|
-
z17.record(
|
|
7396
|
-
z17.string(),
|
|
7397
|
-
billingUpdateUpsertLicenseMultipliers2OutboundSchema
|
|
7398
|
-
),
|
|
7399
|
-
z17.undefined()
|
|
7400
|
-
]).optional(),
|
|
7401
|
-
credit_cost: z17.number()
|
|
7402
|
-
});
|
|
7403
|
-
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z17.union([
|
|
7404
|
-
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
7405
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
7406
|
-
]);
|
|
7407
|
-
var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = z17.object(
|
|
7408
|
-
{
|
|
7409
|
-
credit_schema: z17.union([
|
|
7410
|
-
z17.array(
|
|
7411
|
-
z17.union([
|
|
7412
|
-
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
7413
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
7414
|
-
])
|
|
7415
|
-
),
|
|
7416
|
-
z17.undefined()
|
|
7417
|
-
]).optional(),
|
|
7418
|
-
markups: z17.union([billingUpdateUpsertLicenseMarkupsOutboundSchema, z17.undefined()]).optional()
|
|
7419
|
-
}
|
|
7420
|
-
);
|
|
7421
6368
|
var billingUpdateUpsertLicensePlanItemOutboundSchema = z17.object({
|
|
7422
6369
|
threshold_billing: z17.union([
|
|
7423
6370
|
billingUpdateUpsertLicenseThresholdBillingOutboundSchema,
|
|
@@ -7431,6 +6378,7 @@ var billingUpdateUpsertLicensePlanItemOutboundSchema = z17.object({
|
|
|
7431
6378
|
price: z17.union([billingUpdateUpsertLicensePriceOutboundSchema, z17.undefined()]).optional(),
|
|
7432
6379
|
proration: z17.union([billingUpdateUpsertLicenseProrationOutboundSchema, z17.undefined()]).optional(),
|
|
7433
6380
|
rollover: z17.union([billingUpdateUpsertLicenseRolloverOutboundSchema, z17.undefined()]).optional(),
|
|
6381
|
+
expiry: z17.union([billingUpdateUpsertLicenseExpiryOutboundSchema, z17.undefined()]).optional(),
|
|
7434
6382
|
feature_override: z17.union([
|
|
7435
6383
|
billingUpdateUpsertLicenseFeatureOverrideOutboundSchema,
|
|
7436
6384
|
z17.undefined()
|
|
@@ -7478,6 +6426,7 @@ var updateSubscriptionParamsOutboundSchema = z17.object({
|
|
|
7478
6426
|
redirect_mode: z17.string(),
|
|
7479
6427
|
subscription_id: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
7480
6428
|
discounts: z17.union([z17.array(billingUpdateAttachDiscountOutboundSchema), z17.undefined()]).optional(),
|
|
6429
|
+
custom_line_items: z17.union([z17.array(billingUpdateCustomLineItemOutboundSchema), z17.undefined()]).optional(),
|
|
7481
6430
|
cancel_action: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
7482
6431
|
billing_cycle_anchor: z17.union([z17.string(), z17.number(), z17.undefined()]).optional(),
|
|
7483
6432
|
no_billing_changes: z17.union([z17.boolean(), z17.undefined()]).optional(),
|