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
|
@@ -112,6 +112,21 @@ var aggregateEventsResponseSchema = z.object({
|
|
|
112
112
|
|
|
113
113
|
// src/generated/attachSchemas.ts
|
|
114
114
|
import { z as z2 } from "zod/v4";
|
|
115
|
+
var attachDimensionsUpsertLicenseMatch4Schema = z2.union([
|
|
116
|
+
z2.string(),
|
|
117
|
+
z2.number(),
|
|
118
|
+
z2.boolean()
|
|
119
|
+
]);
|
|
120
|
+
var attachDimensionsUpsertLicense4Schema = z2.object({
|
|
121
|
+
match: z2.record(z2.string(), z2.union([z2.string(), z2.number(), z2.boolean()])),
|
|
122
|
+
priority: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
123
|
+
creditCost: z2.number()
|
|
124
|
+
});
|
|
125
|
+
var attachDimensionsUpsertLicenseMatch3Schema = z2.union([
|
|
126
|
+
z2.string(),
|
|
127
|
+
z2.number(),
|
|
128
|
+
z2.boolean()
|
|
129
|
+
]);
|
|
115
130
|
var attachUpsertLicenseMultipliersMatch2Schema = z2.union([
|
|
116
131
|
z2.string(),
|
|
117
132
|
z2.number(),
|
|
@@ -204,6 +219,25 @@ var attachInvoiceSchema = z2.object({
|
|
|
204
219
|
currency: z2.string(),
|
|
205
220
|
hostedInvoiceUrl: z2.string().nullable()
|
|
206
221
|
});
|
|
222
|
+
var attachUpsertLicenseExpiryOutboundSchema = z2.object({
|
|
223
|
+
duration: z2.string(),
|
|
224
|
+
length: z2.number()
|
|
225
|
+
});
|
|
226
|
+
var attachDimensionsUpsertLicenseMatch4OutboundSchema = z2.union([
|
|
227
|
+
z2.string(),
|
|
228
|
+
z2.number(),
|
|
229
|
+
z2.boolean()
|
|
230
|
+
]);
|
|
231
|
+
var attachDimensionsUpsertLicense4OutboundSchema = z2.object({
|
|
232
|
+
match: z2.record(z2.string(), z2.union([z2.string(), z2.number(), z2.boolean()])),
|
|
233
|
+
priority: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
234
|
+
credit_cost: z2.number()
|
|
235
|
+
});
|
|
236
|
+
var attachDimensionsUpsertLicenseMatch3OutboundSchema = z2.union([
|
|
237
|
+
z2.string(),
|
|
238
|
+
z2.number(),
|
|
239
|
+
z2.boolean()
|
|
240
|
+
]);
|
|
207
241
|
var attachDimensionsUpsertLicenseToUnion2OutboundSchema = z2.union([
|
|
208
242
|
z2.number(),
|
|
209
243
|
z2.string()
|
|
@@ -212,6 +246,16 @@ var attachDimensionsUpsertLicenseTier2OutboundSchema = z2.object({
|
|
|
212
246
|
to: z2.union([z2.number(), z2.string()]),
|
|
213
247
|
credit_cost: z2.number()
|
|
214
248
|
});
|
|
249
|
+
var attachDimensionsUpsertLicense3OutboundSchema = z2.object({
|
|
250
|
+
match: z2.record(z2.string(), z2.union([z2.string(), z2.number(), z2.boolean()])),
|
|
251
|
+
priority: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
252
|
+
tier_behavior: z2.literal("graduated"),
|
|
253
|
+
tiers: z2.array(attachDimensionsUpsertLicenseTier2OutboundSchema)
|
|
254
|
+
});
|
|
255
|
+
var attachUpsertLicenseDimensionsUnion2OutboundSchema = z2.union([
|
|
256
|
+
attachDimensionsUpsertLicense3OutboundSchema,
|
|
257
|
+
attachDimensionsUpsertLicense4OutboundSchema
|
|
258
|
+
]);
|
|
215
259
|
var attachUpsertLicenseMultipliersMatch2OutboundSchema = z2.union([
|
|
216
260
|
z2.string(),
|
|
217
261
|
z2.number(),
|
|
@@ -222,6 +266,25 @@ var attachUpsertLicenseMultipliers2OutboundSchema = z2.object({
|
|
|
222
266
|
factor: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
223
267
|
add: z2.union([z2.number(), z2.undefined()]).optional()
|
|
224
268
|
});
|
|
269
|
+
var attachCreditSchemaUpsertLicense2OutboundSchema = z2.object({
|
|
270
|
+
metered_feature_id: z2.string(),
|
|
271
|
+
billing_units: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
272
|
+
dimensions: z2.union([
|
|
273
|
+
z2.record(
|
|
274
|
+
z2.string(),
|
|
275
|
+
z2.union([
|
|
276
|
+
attachDimensionsUpsertLicense3OutboundSchema,
|
|
277
|
+
attachDimensionsUpsertLicense4OutboundSchema
|
|
278
|
+
])
|
|
279
|
+
),
|
|
280
|
+
z2.undefined()
|
|
281
|
+
]).optional(),
|
|
282
|
+
multipliers: z2.union([
|
|
283
|
+
z2.record(z2.string(), attachUpsertLicenseMultipliers2OutboundSchema),
|
|
284
|
+
z2.undefined()
|
|
285
|
+
]).optional(),
|
|
286
|
+
credit_cost: z2.number()
|
|
287
|
+
});
|
|
225
288
|
var attachDimensionsUpsertLicenseMatch2OutboundSchema = z2.union([
|
|
226
289
|
z2.string(),
|
|
227
290
|
z2.number(),
|
|
@@ -293,6 +356,10 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = z2.object({
|
|
|
293
356
|
tier_behavior: z2.literal("graduated"),
|
|
294
357
|
tiers: z2.array(attachUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
295
358
|
});
|
|
359
|
+
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = z2.union([
|
|
360
|
+
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
361
|
+
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
362
|
+
]);
|
|
296
363
|
var attachUpsertLicenseProviderMarkupsOutboundSchema = z2.object({
|
|
297
364
|
markup: z2.number()
|
|
298
365
|
});
|
|
@@ -312,6 +379,18 @@ var attachUpsertLicenseMarkupsOutboundSchema = z2.object({
|
|
|
312
379
|
z2.undefined()
|
|
313
380
|
]).optional().nullable()
|
|
314
381
|
});
|
|
382
|
+
var attachUpsertLicenseFeatureOverrideOutboundSchema = z2.object({
|
|
383
|
+
credit_schema: z2.union([
|
|
384
|
+
z2.array(
|
|
385
|
+
z2.union([
|
|
386
|
+
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
387
|
+
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
388
|
+
])
|
|
389
|
+
),
|
|
390
|
+
z2.undefined()
|
|
391
|
+
]).optional(),
|
|
392
|
+
markups: z2.union([attachUpsertLicenseMarkupsOutboundSchema, z2.undefined()]).optional()
|
|
393
|
+
});
|
|
315
394
|
var attachUpsertLicenseIntervalUnionOutboundSchema = z2.union([
|
|
316
395
|
z2.string(),
|
|
317
396
|
z2.string()
|
|
@@ -357,9 +436,6 @@ var attachLicenseQuantityOutboundSchema = z2.object({
|
|
|
357
436
|
license_plan_id: z2.string(),
|
|
358
437
|
quantity: z2.number()
|
|
359
438
|
});
|
|
360
|
-
var attachDimensionsToUpsertLicenseEnum2Schema = z2.any();
|
|
361
|
-
var attachDimensionsUpsertLicenseMatch3Schema = z2.any();
|
|
362
|
-
var attachDimensionsUpsertLicense4Schema = z2.any();
|
|
363
439
|
var closedEnumSchema2 = z2.any();
|
|
364
440
|
var attachUpsertLicenseThresholdBillingSchema = z2.any();
|
|
365
441
|
var attachUpsertLicenseResetSchema = z2.any();
|
|
@@ -376,8 +452,6 @@ var attachBillingControlsSchema = z2.any();
|
|
|
376
452
|
var attachFeatureQuantitySchema = z2.any();
|
|
377
453
|
var attachFreeTrialParamsSchema = z2.any();
|
|
378
454
|
var openEnumSchema2 = z2.any();
|
|
379
|
-
var attachDimensionsUpsertLicenseMatch3OutboundSchema = z2.any();
|
|
380
|
-
var attachDimensionsUpsertLicense4OutboundSchema = z2.any();
|
|
381
455
|
var attachUpsertLicenseThresholdBillingOutboundSchema = z2.any();
|
|
382
456
|
var attachUpsertLicenseResetOutboundSchema = z2.any();
|
|
383
457
|
var attachUpsertLicensePriceOutboundSchema = z2.any();
|
|
@@ -392,6 +466,12 @@ var attachCustomizeFreeTrialParamsOutboundSchema = z2.any();
|
|
|
392
466
|
var attachBillingControlsOutboundSchema = z2.any();
|
|
393
467
|
var attachFeatureQuantityOutboundSchema = z2.any();
|
|
394
468
|
var attachFreeTrialParamsOutboundSchema = z2.any();
|
|
469
|
+
var attachUpsertLicenseDurationSchema = closedEnumSchema2;
|
|
470
|
+
var attachUpsertLicenseExpirySchema = z2.object({
|
|
471
|
+
duration: attachUpsertLicenseDurationSchema,
|
|
472
|
+
length: z2.number()
|
|
473
|
+
});
|
|
474
|
+
var attachDimensionsToUpsertLicenseEnum2Schema = closedEnumSchema2;
|
|
395
475
|
var attachDimensionsUpsertLicenseToUnion2Schema = z2.union([
|
|
396
476
|
z2.number(),
|
|
397
477
|
attachDimensionsToUpsertLicenseEnum2Schema
|
|
@@ -401,7 +481,7 @@ var attachDimensionsUpsertLicenseTier2Schema = z2.object({
|
|
|
401
481
|
creditCost: z2.number()
|
|
402
482
|
});
|
|
403
483
|
var attachDimensionsUpsertLicense3Schema = z2.object({
|
|
404
|
-
match: z2.record(z2.string(),
|
|
484
|
+
match: z2.record(z2.string(), z2.union([z2.string(), z2.number(), z2.boolean()])),
|
|
405
485
|
priority: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
406
486
|
tierBehavior: z2.literal("graduated"),
|
|
407
487
|
tiers: z2.array(attachDimensionsUpsertLicenseTier2Schema)
|
|
@@ -503,6 +583,7 @@ var attachUpsertLicensePlanItemSchema = z2.object({
|
|
|
503
583
|
price: z2.union([attachUpsertLicensePriceSchema, z2.undefined()]).optional(),
|
|
504
584
|
proration: z2.union([attachUpsertLicenseProrationSchema, z2.undefined()]).optional(),
|
|
505
585
|
rollover: z2.union([attachUpsertLicenseRolloverSchema, z2.undefined()]).optional(),
|
|
586
|
+
expiry: z2.union([attachUpsertLicenseExpirySchema, z2.undefined()]).optional(),
|
|
506
587
|
featureOverride: z2.union([attachUpsertLicenseFeatureOverrideSchema, z2.undefined()]).optional()
|
|
507
588
|
});
|
|
508
589
|
var attachUpsertLicenseRemoveItemBillingMethodSchema = closedEnumSchema2;
|
|
@@ -594,54 +675,6 @@ var attachResponseSchema = z2.object({
|
|
|
594
675
|
paymentUrl: z2.string().nullable(),
|
|
595
676
|
requiredAction: z2.union([attachRequiredActionSchema, z2.undefined()]).optional()
|
|
596
677
|
});
|
|
597
|
-
var attachDimensionsUpsertLicense3OutboundSchema = z2.object({
|
|
598
|
-
match: z2.record(
|
|
599
|
-
z2.string(),
|
|
600
|
-
attachDimensionsUpsertLicenseMatch3OutboundSchema
|
|
601
|
-
),
|
|
602
|
-
priority: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
603
|
-
tier_behavior: z2.literal("graduated"),
|
|
604
|
-
tiers: z2.array(attachDimensionsUpsertLicenseTier2OutboundSchema)
|
|
605
|
-
});
|
|
606
|
-
var attachUpsertLicenseDimensionsUnion2OutboundSchema = z2.union([
|
|
607
|
-
attachDimensionsUpsertLicense3OutboundSchema,
|
|
608
|
-
attachDimensionsUpsertLicense4OutboundSchema
|
|
609
|
-
]);
|
|
610
|
-
var attachCreditSchemaUpsertLicense2OutboundSchema = z2.object({
|
|
611
|
-
metered_feature_id: z2.string(),
|
|
612
|
-
billing_units: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
613
|
-
dimensions: z2.union([
|
|
614
|
-
z2.record(
|
|
615
|
-
z2.string(),
|
|
616
|
-
z2.union([
|
|
617
|
-
attachDimensionsUpsertLicense3OutboundSchema,
|
|
618
|
-
attachDimensionsUpsertLicense4OutboundSchema
|
|
619
|
-
])
|
|
620
|
-
),
|
|
621
|
-
z2.undefined()
|
|
622
|
-
]).optional(),
|
|
623
|
-
multipliers: z2.union([
|
|
624
|
-
z2.record(z2.string(), attachUpsertLicenseMultipliers2OutboundSchema),
|
|
625
|
-
z2.undefined()
|
|
626
|
-
]).optional(),
|
|
627
|
-
credit_cost: z2.number()
|
|
628
|
-
});
|
|
629
|
-
var attachUpsertLicenseCreditSchemaUnionOutboundSchema = z2.union([
|
|
630
|
-
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
631
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
632
|
-
]);
|
|
633
|
-
var attachUpsertLicenseFeatureOverrideOutboundSchema = z2.object({
|
|
634
|
-
credit_schema: z2.union([
|
|
635
|
-
z2.array(
|
|
636
|
-
z2.union([
|
|
637
|
-
attachCreditSchemaUpsertLicense1OutboundSchema,
|
|
638
|
-
attachCreditSchemaUpsertLicense2OutboundSchema
|
|
639
|
-
])
|
|
640
|
-
),
|
|
641
|
-
z2.undefined()
|
|
642
|
-
]).optional(),
|
|
643
|
-
markups: z2.union([attachUpsertLicenseMarkupsOutboundSchema, z2.undefined()]).optional()
|
|
644
|
-
});
|
|
645
678
|
var attachUpsertLicensePlanItemOutboundSchema = z2.object({
|
|
646
679
|
threshold_billing: z2.union([attachUpsertLicenseThresholdBillingOutboundSchema, z2.undefined()]).optional().nullable(),
|
|
647
680
|
feature_id: z2.string(),
|
|
@@ -652,6 +685,7 @@ var attachUpsertLicensePlanItemOutboundSchema = z2.object({
|
|
|
652
685
|
price: z2.union([attachUpsertLicensePriceOutboundSchema, z2.undefined()]).optional(),
|
|
653
686
|
proration: z2.union([attachUpsertLicenseProrationOutboundSchema, z2.undefined()]).optional(),
|
|
654
687
|
rollover: z2.union([attachUpsertLicenseRolloverOutboundSchema, z2.undefined()]).optional(),
|
|
688
|
+
expiry: z2.union([attachUpsertLicenseExpiryOutboundSchema, z2.undefined()]).optional(),
|
|
655
689
|
feature_override: z2.union([attachUpsertLicenseFeatureOverrideOutboundSchema, z2.undefined()]).optional()
|
|
656
690
|
});
|
|
657
691
|
var attachUpsertLicenseCustomizeOutboundSchema = z2.object({
|
|
@@ -817,14 +851,14 @@ var createRewardCouponRequestOutboundSchema = z5.object({
|
|
|
817
851
|
type: z5.string(),
|
|
818
852
|
value: z5.number()
|
|
819
853
|
});
|
|
820
|
-
var
|
|
854
|
+
var createRewardExpiryRequestBodyOutboundSchema = z5.object({
|
|
821
855
|
type: z5.string(),
|
|
822
856
|
length: z5.number()
|
|
823
857
|
});
|
|
824
858
|
var createRewardGrantOutboundSchema = z5.object({
|
|
825
859
|
feature_id: z5.string(),
|
|
826
860
|
included: z5.number().nullable(),
|
|
827
|
-
expiry:
|
|
861
|
+
expiry: createRewardExpiryRequestBodyOutboundSchema.nullable()
|
|
828
862
|
});
|
|
829
863
|
var createRewardFeatureGrantPromoCodeOutboundSchema = z5.object({
|
|
830
864
|
code: z5.string(),
|
|
@@ -860,14 +894,14 @@ var createRewardCouponRequestSchema = z5.object({
|
|
|
860
894
|
value: z5.number()
|
|
861
895
|
});
|
|
862
896
|
var createRewardExpiryTypeRequestBodySchema = closedEnumSchema4;
|
|
863
|
-
var
|
|
897
|
+
var createRewardExpiryRequestBodySchema = z5.object({
|
|
864
898
|
type: createRewardExpiryTypeRequestBodySchema,
|
|
865
899
|
length: z5.number()
|
|
866
900
|
});
|
|
867
901
|
var createRewardGrantSchema = z5.object({
|
|
868
902
|
featureId: z5.string(),
|
|
869
903
|
included: z5.number().nullable(),
|
|
870
|
-
expiry:
|
|
904
|
+
expiry: createRewardExpiryRequestBodySchema.nullable()
|
|
871
905
|
});
|
|
872
906
|
var createRewardFeatureGrantRequestSchema = z5.object({
|
|
873
907
|
id: z5.string(),
|
|
@@ -1400,14 +1434,6 @@ var listPlansVariantDetailsUsageLimitFilterSchema = z8.object({
|
|
|
1400
1434
|
var listPlansVariantDetailsUsageAlertFilterSchema = z8.object({
|
|
1401
1435
|
properties: z8.record(z8.string(), z8.string())
|
|
1402
1436
|
});
|
|
1403
|
-
var listPlansVariantDetailsOverageAllowedSchema = z8.object({
|
|
1404
|
-
featureId: z8.string(),
|
|
1405
|
-
enabled: z8.boolean()
|
|
1406
|
-
});
|
|
1407
|
-
var listPlansVariantDetailsUpsertLicenseAdditionalCurrencySchema = z8.object({
|
|
1408
|
-
currency: z8.string(),
|
|
1409
|
-
amount: z8.number()
|
|
1410
|
-
});
|
|
1411
1437
|
var listPlansParamsOutboundSchema = z8.object({
|
|
1412
1438
|
customer_id: z8.union([z8.string(), z8.undefined()]).optional(),
|
|
1413
1439
|
entity_id: z8.union([z8.string(), z8.undefined()]).optional(),
|
|
@@ -1461,6 +1487,11 @@ var listPlansItemRolloverSchema = z8.object({
|
|
|
1461
1487
|
expiryDurationType: listPlansItemExpiryDurationTypeSchema,
|
|
1462
1488
|
expiryDurationLength: z8.union([z8.number(), z8.undefined()]).optional()
|
|
1463
1489
|
});
|
|
1490
|
+
var listPlansItemDurationSchema = openEnumSchema6;
|
|
1491
|
+
var listPlansItemExpirySchema = z8.object({
|
|
1492
|
+
duration: listPlansItemDurationSchema,
|
|
1493
|
+
length: z8.number()
|
|
1494
|
+
});
|
|
1464
1495
|
var listPlansDimensionsToItemEnum2Schema = closedEnumSchema6;
|
|
1465
1496
|
var listPlansDimensionsItemToUnion2Schema = z8.union([
|
|
1466
1497
|
z8.number(),
|
|
@@ -1574,6 +1605,7 @@ var listPlansItemSchema = z8.object({
|
|
|
1574
1605
|
price: listPlansItemPriceSchema.nullable(),
|
|
1575
1606
|
display: z8.union([listPlansItemDisplaySchema, z8.undefined()]).optional(),
|
|
1576
1607
|
rollover: z8.union([listPlansItemRolloverSchema, z8.undefined()]).optional(),
|
|
1608
|
+
expiry: z8.union([listPlansItemExpirySchema, z8.undefined()]).optional().nullable(),
|
|
1577
1609
|
featureOverride: z8.union([listPlansItemFeatureOverrideSchema, z8.undefined()]).optional()
|
|
1578
1610
|
});
|
|
1579
1611
|
var listPlansDurationTypeSchema = openEnumSchema6;
|
|
@@ -1688,6 +1720,11 @@ var listPlansVariantDetailsRolloverSchema = z8.object({
|
|
|
1688
1720
|
expiryDurationType: listPlansVariantDetailsExpiryDurationTypeSchema,
|
|
1689
1721
|
expiryDurationLength: z8.union([z8.number(), z8.undefined()]).optional()
|
|
1690
1722
|
});
|
|
1723
|
+
var listPlansVariantDetailsDurationSchema = openEnumSchema6;
|
|
1724
|
+
var listPlansVariantDetailsExpirySchema = z8.object({
|
|
1725
|
+
duration: listPlansVariantDetailsDurationSchema,
|
|
1726
|
+
length: z8.number()
|
|
1727
|
+
});
|
|
1691
1728
|
var listPlansDimensionsToVariantDetailsEnum2Schema = closedEnumSchema6;
|
|
1692
1729
|
var listPlansDimensionsVariantDetailsToUnion2Schema = z8.union([
|
|
1693
1730
|
z8.number(),
|
|
@@ -1800,6 +1837,7 @@ var listPlansVariantDetailsPlanItemSchema = z8.object({
|
|
|
1800
1837
|
price: z8.union([listPlansVariantDetailsPriceSchema, z8.undefined()]).optional(),
|
|
1801
1838
|
proration: z8.union([listPlansVariantDetailsProrationSchema, z8.undefined()]).optional(),
|
|
1802
1839
|
rollover: z8.union([listPlansVariantDetailsRolloverSchema, z8.undefined()]).optional(),
|
|
1840
|
+
expiry: z8.union([listPlansVariantDetailsExpirySchema, z8.undefined()]).optional(),
|
|
1803
1841
|
featureOverride: z8.union([listPlansVariantDetailsFeatureOverrideSchema, z8.undefined()]).optional()
|
|
1804
1842
|
});
|
|
1805
1843
|
var listPlansVariantDetailsRemoveItemBillingMethodSchema = openEnumSchema6;
|
|
@@ -1875,19 +1913,30 @@ var listPlansVariantDetailsUsageAlertSchema = z8.object({
|
|
|
1875
1913
|
filter: z8.union([listPlansVariantDetailsUsageAlertFilterSchema, z8.undefined()]).optional(),
|
|
1876
1914
|
name: z8.union([z8.string(), z8.undefined()]).optional()
|
|
1877
1915
|
});
|
|
1878
|
-
var listPlansVariantDetailsBillingControlsSchema = z8.object({
|
|
1879
|
-
autoTopups: z8.union([z8.array(listPlansVariantDetailsAutoTopupSchema), z8.undefined()]).optional(),
|
|
1880
|
-
spendLimits: z8.union([z8.array(listPlansVariantDetailsSpendLimitSchema), z8.undefined()]).optional(),
|
|
1881
|
-
usageLimits: z8.union([z8.array(listPlansVariantDetailsUsageLimitSchema), z8.undefined()]).optional(),
|
|
1882
|
-
usageAlerts: z8.union([z8.array(listPlansVariantDetailsUsageAlertSchema), z8.undefined()]).optional(),
|
|
1883
|
-
overageAllowed: z8.union([
|
|
1884
|
-
z8.array(listPlansVariantDetailsOverageAllowedSchema),
|
|
1885
|
-
z8.undefined()
|
|
1886
|
-
]).optional()
|
|
1887
|
-
});
|
|
1888
1916
|
|
|
1889
1917
|
// src/generated/listPlansSchemas.ts
|
|
1890
1918
|
import { z as z9 } from "zod/v4";
|
|
1919
|
+
var variantPlanUsageLimitFilterSchema = z9.object({
|
|
1920
|
+
properties: z9.record(z9.string(), z9.string())
|
|
1921
|
+
});
|
|
1922
|
+
var variantPlanUsageAlertFilterSchema = z9.object({
|
|
1923
|
+
properties: z9.record(z9.string(), z9.string())
|
|
1924
|
+
});
|
|
1925
|
+
var variantPlanOverageAllowedSchema = z9.object({
|
|
1926
|
+
featureId: z9.string(),
|
|
1927
|
+
enabled: z9.boolean()
|
|
1928
|
+
});
|
|
1929
|
+
var openEnumSchema7 = z9.any();
|
|
1930
|
+
var variantPlanUsageLimitIntervalSchema = z9.any();
|
|
1931
|
+
var variantPlanAutoTopupSchema = z9.any();
|
|
1932
|
+
var variantPlanSpendLimitSchema = z9.any();
|
|
1933
|
+
var variantPlanPriceSchema = z9.any();
|
|
1934
|
+
var variantItemSchema = z9.any();
|
|
1935
|
+
var variantProcessorsSchema = z9.any();
|
|
1936
|
+
var variantFreeTrialSchema = z9.any();
|
|
1937
|
+
var variantEnvSchema = z9.any();
|
|
1938
|
+
var variantConfigSchema = z9.any();
|
|
1939
|
+
var listPlansVariantCustomizeSchema = z9.any();
|
|
1891
1940
|
var listPlansPriceSchema2 = z9.any();
|
|
1892
1941
|
var listPlansItemSchema2 = z9.any();
|
|
1893
1942
|
var listPlansProcessorsSchema2 = z9.any();
|
|
@@ -1898,7 +1947,71 @@ var listPlansBillingControlsSchema2 = z9.any();
|
|
|
1898
1947
|
var listPlansCustomerEligibilitySchema2 = z9.any();
|
|
1899
1948
|
var listPlansVariantDetailsSchema = z9.any();
|
|
1900
1949
|
var listPlansLicenseSchema = z9.any();
|
|
1901
|
-
var
|
|
1950
|
+
var variantPlanAnchorSchema = openEnumSchema7;
|
|
1951
|
+
var variantPlanUsageLimitSchema = z9.object({
|
|
1952
|
+
featureId: z9.string(),
|
|
1953
|
+
enabled: z9.boolean(),
|
|
1954
|
+
limit: z9.number(),
|
|
1955
|
+
interval: variantPlanUsageLimitIntervalSchema,
|
|
1956
|
+
anchor: z9.union([variantPlanAnchorSchema, z9.undefined()]).optional(),
|
|
1957
|
+
filter: z9.union([variantPlanUsageLimitFilterSchema, z9.undefined()]).optional()
|
|
1958
|
+
});
|
|
1959
|
+
var variantPlanThresholdTypeSchema = openEnumSchema7;
|
|
1960
|
+
var variantPlanBasisSchema = openEnumSchema7;
|
|
1961
|
+
var variantPlanUsageAlertSchema = z9.object({
|
|
1962
|
+
featureId: z9.union([z9.string(), z9.undefined()]).optional(),
|
|
1963
|
+
enabled: z9.boolean(),
|
|
1964
|
+
threshold: z9.number(),
|
|
1965
|
+
thresholdType: variantPlanThresholdTypeSchema,
|
|
1966
|
+
basis: variantPlanBasisSchema,
|
|
1967
|
+
filter: z9.union([variantPlanUsageAlertFilterSchema, z9.undefined()]).optional(),
|
|
1968
|
+
name: z9.union([z9.string(), z9.undefined()]).optional()
|
|
1969
|
+
});
|
|
1970
|
+
var variantPlanBillingControlsSchema = z9.object({
|
|
1971
|
+
autoTopups: z9.union([z9.array(variantPlanAutoTopupSchema), z9.undefined()]).optional(),
|
|
1972
|
+
spendLimits: z9.union([z9.array(variantPlanSpendLimitSchema), z9.undefined()]).optional(),
|
|
1973
|
+
usageLimits: z9.union([z9.array(variantPlanUsageLimitSchema), z9.undefined()]).optional(),
|
|
1974
|
+
usageAlerts: z9.union([z9.array(variantPlanUsageAlertSchema), z9.undefined()]).optional(),
|
|
1975
|
+
overageAllowed: z9.union([z9.array(variantPlanOverageAllowedSchema), z9.undefined()]).optional()
|
|
1976
|
+
});
|
|
1977
|
+
var variantStatusSchema = openEnumSchema7;
|
|
1978
|
+
var variantAttachActionSchema = openEnumSchema7;
|
|
1979
|
+
var variantCustomerEligibilitySchema = z9.object({
|
|
1980
|
+
trialAvailable: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
1981
|
+
status: z9.union([variantStatusSchema, z9.undefined()]).optional(),
|
|
1982
|
+
canceling: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
1983
|
+
trialing: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
1984
|
+
attachAction: variantAttachActionSchema
|
|
1985
|
+
});
|
|
1986
|
+
var listPlansPlanSchema = z9.object({
|
|
1987
|
+
id: z9.string(),
|
|
1988
|
+
name: z9.string(),
|
|
1989
|
+
description: z9.string().nullable(),
|
|
1990
|
+
group: z9.string().nullable(),
|
|
1991
|
+
version: z9.number(),
|
|
1992
|
+
versionSlug: z9.union([z9.string(), z9.undefined()]).optional().nullable(),
|
|
1993
|
+
active: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
1994
|
+
addOn: z9.boolean(),
|
|
1995
|
+
autoEnable: z9.boolean(),
|
|
1996
|
+
price: variantPlanPriceSchema.nullable(),
|
|
1997
|
+
items: z9.array(variantItemSchema),
|
|
1998
|
+
processors: z9.union([variantProcessorsSchema, z9.undefined()]).optional(),
|
|
1999
|
+
freeTrial: z9.union([variantFreeTrialSchema, z9.undefined()]).optional(),
|
|
2000
|
+
createdAt: z9.number(),
|
|
2001
|
+
env: variantEnvSchema,
|
|
2002
|
+
archived: z9.boolean(),
|
|
2003
|
+
config: variantConfigSchema,
|
|
2004
|
+
billingControls: z9.union([variantPlanBillingControlsSchema, z9.undefined()]).optional(),
|
|
2005
|
+
metadata: z9.record(z9.string(), z9.any()),
|
|
2006
|
+
customerEligibility: z9.union([variantCustomerEligibilitySchema, z9.undefined()]).optional(),
|
|
2007
|
+
baseVariantId: z9.string().nullable()
|
|
2008
|
+
});
|
|
2009
|
+
var listPlansVariantSchema = z9.object({
|
|
2010
|
+
variantPlanId: z9.string(),
|
|
2011
|
+
name: z9.string(),
|
|
2012
|
+
customize: z9.union([listPlansVariantCustomizeSchema, z9.undefined()]).optional(),
|
|
2013
|
+
plan: z9.union([listPlansPlanSchema, z9.undefined()]).optional()
|
|
2014
|
+
});
|
|
1902
2015
|
var listPlansListSchema = z9.object({
|
|
1903
2016
|
id: z9.string(),
|
|
1904
2017
|
name: z9.string(),
|
|
@@ -2138,6 +2251,10 @@ var multiAttachRolloverOutboundSchema = z10.object({
|
|
|
2138
2251
|
expiry_duration_type: z10.string(),
|
|
2139
2252
|
expiry_duration_length: z10.union([z10.number(), z10.undefined()]).optional()
|
|
2140
2253
|
});
|
|
2254
|
+
var multiAttachExpiryOutboundSchema = z10.object({
|
|
2255
|
+
duration: z10.string(),
|
|
2256
|
+
length: z10.number()
|
|
2257
|
+
});
|
|
2141
2258
|
var multiAttachDimensionsMatch4OutboundSchema = z10.union([
|
|
2142
2259
|
z10.string(),
|
|
2143
2260
|
z10.number(),
|
|
@@ -2316,6 +2433,7 @@ var multiAttachPlanItemOutboundSchema = z10.object({
|
|
|
2316
2433
|
price: z10.union([multiAttachPriceOutboundSchema, z10.undefined()]).optional(),
|
|
2317
2434
|
proration: z10.union([multiAttachProrationOutboundSchema, z10.undefined()]).optional(),
|
|
2318
2435
|
rollover: z10.union([multiAttachRolloverOutboundSchema, z10.undefined()]).optional(),
|
|
2436
|
+
expiry: z10.union([multiAttachExpiryOutboundSchema, z10.undefined()]).optional(),
|
|
2319
2437
|
feature_override: z10.union([multiAttachFeatureOverrideOutboundSchema, z10.undefined()]).optional()
|
|
2320
2438
|
});
|
|
2321
2439
|
var multiAttachCustomizeOutboundSchema = z10.object({
|
|
@@ -2415,7 +2533,7 @@ var multiAttachEntityDataOutboundSchema = z10.object({
|
|
|
2415
2533
|
});
|
|
2416
2534
|
var closedEnumSchema7 = z10.any();
|
|
2417
2535
|
var customerDataSchema = z10.any();
|
|
2418
|
-
var
|
|
2536
|
+
var openEnumSchema8 = z10.any();
|
|
2419
2537
|
var customerDataOutboundSchema = z10.any();
|
|
2420
2538
|
var multiAttachPriceIntervalSchema = closedEnumSchema7;
|
|
2421
2539
|
var multiAttachBasePriceSchema = z10.object({
|
|
@@ -2456,6 +2574,11 @@ var multiAttachRolloverSchema = z10.object({
|
|
|
2456
2574
|
expiryDurationType: multiAttachExpiryDurationTypeSchema,
|
|
2457
2575
|
expiryDurationLength: z10.union([z10.number(), z10.undefined()]).optional()
|
|
2458
2576
|
});
|
|
2577
|
+
var multiAttachDurationSchema = closedEnumSchema7;
|
|
2578
|
+
var multiAttachExpirySchema = z10.object({
|
|
2579
|
+
duration: multiAttachDurationSchema,
|
|
2580
|
+
length: z10.number()
|
|
2581
|
+
});
|
|
2459
2582
|
var multiAttachDimensionsToEnum2Schema = closedEnumSchema7;
|
|
2460
2583
|
var multiAttachDimensionsToUnion2Schema = z10.union([
|
|
2461
2584
|
z10.number(),
|
|
@@ -2556,6 +2679,7 @@ var multiAttachPlanItemSchema = z10.object({
|
|
|
2556
2679
|
price: z10.union([multiAttachPriceSchema, z10.undefined()]).optional(),
|
|
2557
2680
|
proration: z10.union([multiAttachProrationSchema, z10.undefined()]).optional(),
|
|
2558
2681
|
rollover: z10.union([multiAttachRolloverSchema, z10.undefined()]).optional(),
|
|
2682
|
+
expiry: z10.union([multiAttachExpirySchema, z10.undefined()]).optional(),
|
|
2559
2683
|
featureOverride: z10.union([multiAttachFeatureOverrideSchema, z10.undefined()]).optional()
|
|
2560
2684
|
});
|
|
2561
2685
|
var multiAttachCustomizeSchema = z10.object({
|
|
@@ -2639,7 +2763,7 @@ var multiAttachParamsSchema = z10.object({
|
|
|
2639
2763
|
customerData: z10.union([customerDataSchema, z10.undefined()]).optional(),
|
|
2640
2764
|
entityData: z10.union([multiAttachEntityDataSchema, z10.undefined()]).optional()
|
|
2641
2765
|
});
|
|
2642
|
-
var multiAttachCodeSchema =
|
|
2766
|
+
var multiAttachCodeSchema = openEnumSchema8;
|
|
2643
2767
|
var multiAttachRequiredActionSchema = z10.object({
|
|
2644
2768
|
code: multiAttachCodeSchema,
|
|
2645
2769
|
reason: z10.string()
|
|
@@ -2693,6 +2817,21 @@ var openCustomerPortalParamsOutboundSchema = z11.object({
|
|
|
2693
2817
|
|
|
2694
2818
|
// src/generated/previewAttachSchemas.ts
|
|
2695
2819
|
import { z as z12 } from "zod/v4";
|
|
2820
|
+
var previewAttachDimensionsUpsertLicenseMatch4Schema = z12.union([
|
|
2821
|
+
z12.string(),
|
|
2822
|
+
z12.number(),
|
|
2823
|
+
z12.boolean()
|
|
2824
|
+
]);
|
|
2825
|
+
var previewAttachDimensionsUpsertLicense4Schema = z12.object({
|
|
2826
|
+
match: z12.record(z12.string(), z12.union([z12.string(), z12.number(), z12.boolean()])),
|
|
2827
|
+
priority: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
2828
|
+
creditCost: z12.number()
|
|
2829
|
+
});
|
|
2830
|
+
var previewAttachDimensionsUpsertLicenseMatch3Schema = z12.union([
|
|
2831
|
+
z12.string(),
|
|
2832
|
+
z12.number(),
|
|
2833
|
+
z12.boolean()
|
|
2834
|
+
]);
|
|
2696
2835
|
var previewAttachUpsertLicenseMultipliersMatch2Schema = z12.union([
|
|
2697
2836
|
z12.string(),
|
|
2698
2837
|
z12.number(),
|
|
@@ -2852,6 +2991,21 @@ var previewAttachInvoiceCreditsSchema = z12.object({
|
|
|
2852
2991
|
balance: z12.number(),
|
|
2853
2992
|
currency: z12.string()
|
|
2854
2993
|
});
|
|
2994
|
+
var previewAttachUpsertLicenseExpiryOutboundSchema = z12.object({
|
|
2995
|
+
duration: z12.string(),
|
|
2996
|
+
length: z12.number()
|
|
2997
|
+
});
|
|
2998
|
+
var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = z12.union(
|
|
2999
|
+
[z12.string(), z12.number(), z12.boolean()]
|
|
3000
|
+
);
|
|
3001
|
+
var previewAttachDimensionsUpsertLicense4OutboundSchema = z12.object({
|
|
3002
|
+
match: z12.record(z12.string(), z12.union([z12.string(), z12.number(), z12.boolean()])),
|
|
3003
|
+
priority: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3004
|
+
credit_cost: z12.number()
|
|
3005
|
+
});
|
|
3006
|
+
var previewAttachDimensionsUpsertLicenseMatch3OutboundSchema = z12.union(
|
|
3007
|
+
[z12.string(), z12.number(), z12.boolean()]
|
|
3008
|
+
);
|
|
2855
3009
|
var previewAttachDimensionsUpsertLicenseToUnion2OutboundSchema = z12.union([z12.number(), z12.string()]);
|
|
2856
3010
|
var previewAttachDimensionsUpsertLicenseTier2OutboundSchema = z12.object(
|
|
2857
3011
|
{
|
|
@@ -2859,12 +3013,46 @@ var previewAttachDimensionsUpsertLicenseTier2OutboundSchema = z12.object(
|
|
|
2859
3013
|
credit_cost: z12.number()
|
|
2860
3014
|
}
|
|
2861
3015
|
);
|
|
3016
|
+
var previewAttachDimensionsUpsertLicense3OutboundSchema = z12.object({
|
|
3017
|
+
match: z12.record(z12.string(), z12.union([z12.string(), z12.number(), z12.boolean()])),
|
|
3018
|
+
priority: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3019
|
+
tier_behavior: z12.literal("graduated"),
|
|
3020
|
+
tiers: z12.array(previewAttachDimensionsUpsertLicenseTier2OutboundSchema)
|
|
3021
|
+
});
|
|
3022
|
+
var previewAttachUpsertLicenseDimensionsUnion2OutboundSchema = z12.union(
|
|
3023
|
+
[
|
|
3024
|
+
previewAttachDimensionsUpsertLicense3OutboundSchema,
|
|
3025
|
+
previewAttachDimensionsUpsertLicense4OutboundSchema
|
|
3026
|
+
]
|
|
3027
|
+
);
|
|
2862
3028
|
var previewAttachUpsertLicenseMultipliersMatch2OutboundSchema = z12.union([z12.string(), z12.number(), z12.boolean()]);
|
|
2863
3029
|
var previewAttachUpsertLicenseMultipliers2OutboundSchema = z12.object({
|
|
2864
3030
|
match: z12.record(z12.string(), z12.union([z12.string(), z12.number(), z12.boolean()])),
|
|
2865
3031
|
factor: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
2866
3032
|
add: z12.union([z12.number(), z12.undefined()]).optional()
|
|
2867
3033
|
});
|
|
3034
|
+
var previewAttachCreditSchemaUpsertLicense2OutboundSchema = z12.object({
|
|
3035
|
+
metered_feature_id: z12.string(),
|
|
3036
|
+
billing_units: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3037
|
+
dimensions: z12.union([
|
|
3038
|
+
z12.record(
|
|
3039
|
+
z12.string(),
|
|
3040
|
+
z12.union([
|
|
3041
|
+
previewAttachDimensionsUpsertLicense3OutboundSchema,
|
|
3042
|
+
previewAttachDimensionsUpsertLicense4OutboundSchema
|
|
3043
|
+
])
|
|
3044
|
+
),
|
|
3045
|
+
z12.undefined()
|
|
3046
|
+
]).optional(),
|
|
3047
|
+
multipliers: z12.union([
|
|
3048
|
+
z12.record(
|
|
3049
|
+
z12.string(),
|
|
3050
|
+
previewAttachUpsertLicenseMultipliers2OutboundSchema
|
|
3051
|
+
),
|
|
3052
|
+
z12.undefined()
|
|
3053
|
+
]).optional(),
|
|
3054
|
+
credit_cost: z12.number()
|
|
3055
|
+
});
|
|
2868
3056
|
var previewAttachDimensionsUpsertLicenseMatch2OutboundSchema = z12.union(
|
|
2869
3057
|
[z12.string(), z12.number(), z12.boolean()]
|
|
2870
3058
|
);
|
|
@@ -2929,6 +3117,10 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = z12.object({
|
|
|
2929
3117
|
tier_behavior: z12.literal("graduated"),
|
|
2930
3118
|
tiers: z12.array(previewAttachUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
2931
3119
|
});
|
|
3120
|
+
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = z12.union([
|
|
3121
|
+
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3122
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3123
|
+
]);
|
|
2932
3124
|
var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = z12.object(
|
|
2933
3125
|
{
|
|
2934
3126
|
markup: z12.number()
|
|
@@ -2956,6 +3148,20 @@ var previewAttachUpsertLicenseMarkupsOutboundSchema = z12.object({
|
|
|
2956
3148
|
z12.undefined()
|
|
2957
3149
|
]).optional().nullable()
|
|
2958
3150
|
});
|
|
3151
|
+
var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = z12.object(
|
|
3152
|
+
{
|
|
3153
|
+
credit_schema: z12.union([
|
|
3154
|
+
z12.array(
|
|
3155
|
+
z12.union([
|
|
3156
|
+
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3157
|
+
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3158
|
+
])
|
|
3159
|
+
),
|
|
3160
|
+
z12.undefined()
|
|
3161
|
+
]).optional(),
|
|
3162
|
+
markups: z12.union([previewAttachUpsertLicenseMarkupsOutboundSchema, z12.undefined()]).optional()
|
|
3163
|
+
}
|
|
3164
|
+
);
|
|
2959
3165
|
var previewAttachUpsertLicenseIntervalUnionOutboundSchema = z12.union([
|
|
2960
3166
|
z12.string(),
|
|
2961
3167
|
z12.string()
|
|
@@ -3001,9 +3207,6 @@ var previewAttachLicenseQuantityOutboundSchema = z12.object({
|
|
|
3001
3207
|
license_plan_id: z12.string(),
|
|
3002
3208
|
quantity: z12.number()
|
|
3003
3209
|
});
|
|
3004
|
-
var previewAttachDimensionsToUpsertLicenseEnum2Schema = z12.any();
|
|
3005
|
-
var previewAttachDimensionsUpsertLicenseMatch3Schema = z12.any();
|
|
3006
|
-
var previewAttachDimensionsUpsertLicense4Schema = z12.any();
|
|
3007
3210
|
var closedEnumSchema8 = z12.any();
|
|
3008
3211
|
var previewAttachUpsertLicenseThresholdBillingSchema = z12.any();
|
|
3009
3212
|
var previewAttachUpsertLicenseResetSchema = z12.any();
|
|
@@ -3020,9 +3223,7 @@ var previewAttachBillingControlsSchema = z12.any();
|
|
|
3020
3223
|
var previewAttachFeatureQuantityRequestBodySchema = z12.any();
|
|
3021
3224
|
var previewAttachFreeTrialParamsSchema = z12.any();
|
|
3022
3225
|
var planSchema = z12.any();
|
|
3023
|
-
var
|
|
3024
|
-
var previewAttachDimensionsUpsertLicenseMatch3OutboundSchema = z12.any();
|
|
3025
|
-
var previewAttachDimensionsUpsertLicense4OutboundSchema = z12.any();
|
|
3226
|
+
var openEnumSchema9 = z12.any();
|
|
3026
3227
|
var previewAttachUpsertLicenseThresholdBillingOutboundSchema = z12.any();
|
|
3027
3228
|
var previewAttachUpsertLicenseResetOutboundSchema = z12.any();
|
|
3028
3229
|
var previewAttachUpsertLicensePriceOutboundSchema = z12.any();
|
|
@@ -3037,6 +3238,12 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = z12.any();
|
|
|
3037
3238
|
var previewAttachBillingControlsOutboundSchema = z12.any();
|
|
3038
3239
|
var previewAttachFeatureQuantityRequestBodyOutboundSchema = z12.any();
|
|
3039
3240
|
var previewAttachFreeTrialParamsOutboundSchema = z12.any();
|
|
3241
|
+
var previewAttachUpsertLicenseDurationSchema = closedEnumSchema8;
|
|
3242
|
+
var previewAttachUpsertLicenseExpirySchema = z12.object({
|
|
3243
|
+
duration: previewAttachUpsertLicenseDurationSchema,
|
|
3244
|
+
length: z12.number()
|
|
3245
|
+
});
|
|
3246
|
+
var previewAttachDimensionsToUpsertLicenseEnum2Schema = closedEnumSchema8;
|
|
3040
3247
|
var previewAttachDimensionsUpsertLicenseToUnion2Schema = z12.union([
|
|
3041
3248
|
z12.number(),
|
|
3042
3249
|
previewAttachDimensionsToUpsertLicenseEnum2Schema
|
|
@@ -3046,7 +3253,7 @@ var previewAttachDimensionsUpsertLicenseTier2Schema = z12.object({
|
|
|
3046
3253
|
creditCost: z12.number()
|
|
3047
3254
|
});
|
|
3048
3255
|
var previewAttachDimensionsUpsertLicense3Schema = z12.object({
|
|
3049
|
-
match: z12.record(z12.string(),
|
|
3256
|
+
match: z12.record(z12.string(), z12.union([z12.string(), z12.number(), z12.boolean()])),
|
|
3050
3257
|
priority: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3051
3258
|
tierBehavior: z12.literal("graduated"),
|
|
3052
3259
|
tiers: z12.array(previewAttachDimensionsUpsertLicenseTier2Schema)
|
|
@@ -3148,6 +3355,7 @@ var previewAttachUpsertLicensePlanItemSchema = z12.object({
|
|
|
3148
3355
|
price: z12.union([previewAttachUpsertLicensePriceSchema, z12.undefined()]).optional(),
|
|
3149
3356
|
proration: z12.union([previewAttachUpsertLicenseProrationSchema, z12.undefined()]).optional(),
|
|
3150
3357
|
rollover: z12.union([previewAttachUpsertLicenseRolloverSchema, z12.undefined()]).optional(),
|
|
3358
|
+
expiry: z12.union([previewAttachUpsertLicenseExpirySchema, z12.undefined()]).optional(),
|
|
3151
3359
|
featureOverride: z12.union([previewAttachUpsertLicenseFeatureOverrideSchema, z12.undefined()]).optional()
|
|
3152
3360
|
});
|
|
3153
3361
|
var previewAttachUpsertLicenseRemoveItemBillingMethodSchema = closedEnumSchema8;
|
|
@@ -3252,8 +3460,8 @@ var previewAttachOutgoingSchema = z12.object({
|
|
|
3252
3460
|
canceledAt: z12.number().nullable(),
|
|
3253
3461
|
expiresAt: z12.number().nullable()
|
|
3254
3462
|
});
|
|
3255
|
-
var previewAttachCheckoutTypeSchema =
|
|
3256
|
-
var previewAttachStatusSchema =
|
|
3463
|
+
var previewAttachCheckoutTypeSchema = openEnumSchema9;
|
|
3464
|
+
var previewAttachStatusSchema = openEnumSchema9;
|
|
3257
3465
|
var previewAttachTaxSchema = z12.object({
|
|
3258
3466
|
total: z12.number(),
|
|
3259
3467
|
amountInclusive: z12.number(),
|
|
@@ -3277,64 +3485,9 @@ var previewAttachResponseSchema = z12.object({
|
|
|
3277
3485
|
tax: z12.union([previewAttachTaxSchema, z12.undefined()]).optional(),
|
|
3278
3486
|
invoiceCredits: z12.union([previewAttachInvoiceCreditsSchema, z12.undefined()]).optional()
|
|
3279
3487
|
});
|
|
3280
|
-
var
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
previewAttachDimensionsUpsertLicenseMatch3OutboundSchema
|
|
3284
|
-
),
|
|
3285
|
-
priority: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3286
|
-
tier_behavior: z12.literal("graduated"),
|
|
3287
|
-
tiers: z12.array(previewAttachDimensionsUpsertLicenseTier2OutboundSchema)
|
|
3288
|
-
});
|
|
3289
|
-
var previewAttachUpsertLicenseDimensionsUnion2OutboundSchema = z12.union(
|
|
3290
|
-
[
|
|
3291
|
-
previewAttachDimensionsUpsertLicense3OutboundSchema,
|
|
3292
|
-
previewAttachDimensionsUpsertLicense4OutboundSchema
|
|
3293
|
-
]
|
|
3294
|
-
);
|
|
3295
|
-
var previewAttachCreditSchemaUpsertLicense2OutboundSchema = z12.object({
|
|
3296
|
-
metered_feature_id: z12.string(),
|
|
3297
|
-
billing_units: z12.union([z12.number(), z12.undefined()]).optional(),
|
|
3298
|
-
dimensions: z12.union([
|
|
3299
|
-
z12.record(
|
|
3300
|
-
z12.string(),
|
|
3301
|
-
z12.union([
|
|
3302
|
-
previewAttachDimensionsUpsertLicense3OutboundSchema,
|
|
3303
|
-
previewAttachDimensionsUpsertLicense4OutboundSchema
|
|
3304
|
-
])
|
|
3305
|
-
),
|
|
3306
|
-
z12.undefined()
|
|
3307
|
-
]).optional(),
|
|
3308
|
-
multipliers: z12.union([
|
|
3309
|
-
z12.record(
|
|
3310
|
-
z12.string(),
|
|
3311
|
-
previewAttachUpsertLicenseMultipliers2OutboundSchema
|
|
3312
|
-
),
|
|
3313
|
-
z12.undefined()
|
|
3314
|
-
]).optional(),
|
|
3315
|
-
credit_cost: z12.number()
|
|
3316
|
-
});
|
|
3317
|
-
var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = z12.union([
|
|
3318
|
-
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3319
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3320
|
-
]);
|
|
3321
|
-
var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = z12.object(
|
|
3322
|
-
{
|
|
3323
|
-
credit_schema: z12.union([
|
|
3324
|
-
z12.array(
|
|
3325
|
-
z12.union([
|
|
3326
|
-
previewAttachCreditSchemaUpsertLicense1OutboundSchema,
|
|
3327
|
-
previewAttachCreditSchemaUpsertLicense2OutboundSchema
|
|
3328
|
-
])
|
|
3329
|
-
),
|
|
3330
|
-
z12.undefined()
|
|
3331
|
-
]).optional(),
|
|
3332
|
-
markups: z12.union([previewAttachUpsertLicenseMarkupsOutboundSchema, z12.undefined()]).optional()
|
|
3333
|
-
}
|
|
3334
|
-
);
|
|
3335
|
-
var previewAttachUpsertLicensePlanItemOutboundSchema = z12.object({
|
|
3336
|
-
threshold_billing: z12.union([
|
|
3337
|
-
previewAttachUpsertLicenseThresholdBillingOutboundSchema,
|
|
3488
|
+
var previewAttachUpsertLicensePlanItemOutboundSchema = z12.object({
|
|
3489
|
+
threshold_billing: z12.union([
|
|
3490
|
+
previewAttachUpsertLicenseThresholdBillingOutboundSchema,
|
|
3338
3491
|
z12.undefined()
|
|
3339
3492
|
]).optional().nullable(),
|
|
3340
3493
|
feature_id: z12.string(),
|
|
@@ -3345,6 +3498,7 @@ var previewAttachUpsertLicensePlanItemOutboundSchema = z12.object({
|
|
|
3345
3498
|
price: z12.union([previewAttachUpsertLicensePriceOutboundSchema, z12.undefined()]).optional(),
|
|
3346
3499
|
proration: z12.union([previewAttachUpsertLicenseProrationOutboundSchema, z12.undefined()]).optional(),
|
|
3347
3500
|
rollover: z12.union([previewAttachUpsertLicenseRolloverOutboundSchema, z12.undefined()]).optional(),
|
|
3501
|
+
expiry: z12.union([previewAttachUpsertLicenseExpiryOutboundSchema, z12.undefined()]).optional(),
|
|
3348
3502
|
feature_override: z12.union([
|
|
3349
3503
|
previewAttachUpsertLicenseFeatureOverrideOutboundSchema,
|
|
3350
3504
|
z12.undefined()
|
|
@@ -3698,6 +3852,10 @@ var previewMultiAttachRolloverOutboundSchema = z13.object({
|
|
|
3698
3852
|
expiry_duration_type: z13.string(),
|
|
3699
3853
|
expiry_duration_length: z13.union([z13.number(), z13.undefined()]).optional()
|
|
3700
3854
|
});
|
|
3855
|
+
var previewMultiAttachExpiryOutboundSchema = z13.object({
|
|
3856
|
+
duration: z13.string(),
|
|
3857
|
+
length: z13.number()
|
|
3858
|
+
});
|
|
3701
3859
|
var previewMultiAttachDimensionsMatch4OutboundSchema = z13.union([
|
|
3702
3860
|
z13.string(),
|
|
3703
3861
|
z13.number(),
|
|
@@ -3876,6 +4034,7 @@ var previewMultiAttachPlanItemOutboundSchema = z13.object({
|
|
|
3876
4034
|
price: z13.union([previewMultiAttachPriceOutboundSchema, z13.undefined()]).optional(),
|
|
3877
4035
|
proration: z13.union([previewMultiAttachProrationOutboundSchema, z13.undefined()]).optional(),
|
|
3878
4036
|
rollover: z13.union([previewMultiAttachRolloverOutboundSchema, z13.undefined()]).optional(),
|
|
4037
|
+
expiry: z13.union([previewMultiAttachExpiryOutboundSchema, z13.undefined()]).optional(),
|
|
3879
4038
|
feature_override: z13.union([previewMultiAttachFeatureOverrideOutboundSchema, z13.undefined()]).optional()
|
|
3880
4039
|
});
|
|
3881
4040
|
var previewMultiAttachCustomizeOutboundSchema = z13.object({
|
|
@@ -3982,7 +4141,7 @@ var previewMultiAttachEntityDataOutboundSchema = z13.object({
|
|
|
3982
4141
|
var closedEnumSchema9 = z13.any();
|
|
3983
4142
|
var customerDataSchema2 = z13.any();
|
|
3984
4143
|
var planSchema2 = z13.any();
|
|
3985
|
-
var
|
|
4144
|
+
var openEnumSchema10 = z13.any();
|
|
3986
4145
|
var customerDataOutboundSchema2 = z13.any();
|
|
3987
4146
|
var previewMultiAttachPriceIntervalSchema = closedEnumSchema9;
|
|
3988
4147
|
var previewMultiAttachBasePriceSchema = z13.object({
|
|
@@ -4026,6 +4185,11 @@ var previewMultiAttachRolloverSchema = z13.object({
|
|
|
4026
4185
|
expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
|
|
4027
4186
|
expiryDurationLength: z13.union([z13.number(), z13.undefined()]).optional()
|
|
4028
4187
|
});
|
|
4188
|
+
var previewMultiAttachDurationSchema = closedEnumSchema9;
|
|
4189
|
+
var previewMultiAttachExpirySchema = z13.object({
|
|
4190
|
+
duration: previewMultiAttachDurationSchema,
|
|
4191
|
+
length: z13.number()
|
|
4192
|
+
});
|
|
4029
4193
|
var previewMultiAttachDimensionsToEnum2Schema = closedEnumSchema9;
|
|
4030
4194
|
var previewMultiAttachDimensionsToUnion2Schema = z13.union([
|
|
4031
4195
|
z13.number(),
|
|
@@ -4138,6 +4302,7 @@ var previewMultiAttachPlanItemSchema = z13.object({
|
|
|
4138
4302
|
price: z13.union([previewMultiAttachPriceSchema, z13.undefined()]).optional(),
|
|
4139
4303
|
proration: z13.union([previewMultiAttachProrationSchema, z13.undefined()]).optional(),
|
|
4140
4304
|
rollover: z13.union([previewMultiAttachRolloverSchema, z13.undefined()]).optional(),
|
|
4305
|
+
expiry: z13.union([previewMultiAttachExpirySchema, z13.undefined()]).optional(),
|
|
4141
4306
|
featureOverride: z13.union([previewMultiAttachFeatureOverrideSchema, z13.undefined()]).optional()
|
|
4142
4307
|
});
|
|
4143
4308
|
var previewMultiAttachCustomizeSchema = z13.object({
|
|
@@ -4240,8 +4405,8 @@ var previewMultiAttachOutgoingSchema = z13.object({
|
|
|
4240
4405
|
canceledAt: z13.number().nullable(),
|
|
4241
4406
|
expiresAt: z13.number().nullable()
|
|
4242
4407
|
});
|
|
4243
|
-
var previewMultiAttachCheckoutTypeSchema =
|
|
4244
|
-
var previewMultiAttachStatusSchema =
|
|
4408
|
+
var previewMultiAttachCheckoutTypeSchema = openEnumSchema10;
|
|
4409
|
+
var previewMultiAttachStatusSchema = openEnumSchema10;
|
|
4245
4410
|
var previewMultiAttachTaxSchema = z13.object({
|
|
4246
4411
|
total: z13.number(),
|
|
4247
4412
|
amountInclusive: z13.number(),
|
|
@@ -4290,6 +4455,21 @@ var previewMultiAttachParamsOutboundSchema = z13.object({
|
|
|
4290
4455
|
|
|
4291
4456
|
// src/generated/previewUpdateSubscriptionSchemas.ts
|
|
4292
4457
|
import { z as z14 } from "zod/v4";
|
|
4458
|
+
var previewUpdateDimensionsUpsertLicenseMatch4Schema = z14.union([
|
|
4459
|
+
z14.string(),
|
|
4460
|
+
z14.number(),
|
|
4461
|
+
z14.boolean()
|
|
4462
|
+
]);
|
|
4463
|
+
var previewUpdateDimensionsUpsertLicense4Schema = z14.object({
|
|
4464
|
+
match: z14.record(z14.string(), z14.union([z14.string(), z14.number(), z14.boolean()])),
|
|
4465
|
+
priority: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4466
|
+
creditCost: z14.number()
|
|
4467
|
+
});
|
|
4468
|
+
var previewUpdateDimensionsUpsertLicenseMatch3Schema = z14.union([
|
|
4469
|
+
z14.string(),
|
|
4470
|
+
z14.number(),
|
|
4471
|
+
z14.boolean()
|
|
4472
|
+
]);
|
|
4293
4473
|
var previewUpdateUpsertLicenseMultipliersMatch2Schema = z14.union([
|
|
4294
4474
|
z14.string(),
|
|
4295
4475
|
z14.number(),
|
|
@@ -4358,6 +4538,10 @@ var previewUpdateAttachDiscountSchema = z14.object({
|
|
|
4358
4538
|
rewardId: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4359
4539
|
promotionCode: z14.union([z14.string(), z14.undefined()]).optional()
|
|
4360
4540
|
});
|
|
4541
|
+
var previewUpdateCustomLineItemSchema = z14.object({
|
|
4542
|
+
amount: z14.number(),
|
|
4543
|
+
description: z14.string()
|
|
4544
|
+
});
|
|
4361
4545
|
var previewUpdateBillingCycleAnchorSchema = z14.union([
|
|
4362
4546
|
z14.string(),
|
|
4363
4547
|
z14.number()
|
|
@@ -4444,6 +4628,21 @@ var previewUpdateInvoiceCreditsSchema = z14.object({
|
|
|
4444
4628
|
balance: z14.number(),
|
|
4445
4629
|
currency: z14.string()
|
|
4446
4630
|
});
|
|
4631
|
+
var previewUpdateUpsertLicenseExpiryOutboundSchema = z14.object({
|
|
4632
|
+
duration: z14.string(),
|
|
4633
|
+
length: z14.number()
|
|
4634
|
+
});
|
|
4635
|
+
var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = z14.union(
|
|
4636
|
+
[z14.string(), z14.number(), z14.boolean()]
|
|
4637
|
+
);
|
|
4638
|
+
var previewUpdateDimensionsUpsertLicense4OutboundSchema = z14.object({
|
|
4639
|
+
match: z14.record(z14.string(), z14.union([z14.string(), z14.number(), z14.boolean()])),
|
|
4640
|
+
priority: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4641
|
+
credit_cost: z14.number()
|
|
4642
|
+
});
|
|
4643
|
+
var previewUpdateDimensionsUpsertLicenseMatch3OutboundSchema = z14.union(
|
|
4644
|
+
[z14.string(), z14.number(), z14.boolean()]
|
|
4645
|
+
);
|
|
4447
4646
|
var previewUpdateDimensionsUpsertLicenseToUnion2OutboundSchema = z14.union([z14.number(), z14.string()]);
|
|
4448
4647
|
var previewUpdateDimensionsUpsertLicenseTier2OutboundSchema = z14.object(
|
|
4449
4648
|
{
|
|
@@ -4451,12 +4650,46 @@ var previewUpdateDimensionsUpsertLicenseTier2OutboundSchema = z14.object(
|
|
|
4451
4650
|
credit_cost: z14.number()
|
|
4452
4651
|
}
|
|
4453
4652
|
);
|
|
4653
|
+
var previewUpdateDimensionsUpsertLicense3OutboundSchema = z14.object({
|
|
4654
|
+
match: z14.record(z14.string(), z14.union([z14.string(), z14.number(), z14.boolean()])),
|
|
4655
|
+
priority: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4656
|
+
tier_behavior: z14.literal("graduated"),
|
|
4657
|
+
tiers: z14.array(previewUpdateDimensionsUpsertLicenseTier2OutboundSchema)
|
|
4658
|
+
});
|
|
4659
|
+
var previewUpdateUpsertLicenseDimensionsUnion2OutboundSchema = z14.union(
|
|
4660
|
+
[
|
|
4661
|
+
previewUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
4662
|
+
previewUpdateDimensionsUpsertLicense4OutboundSchema
|
|
4663
|
+
]
|
|
4664
|
+
);
|
|
4454
4665
|
var previewUpdateUpsertLicenseMultipliersMatch2OutboundSchema = z14.union([z14.string(), z14.number(), z14.boolean()]);
|
|
4455
4666
|
var previewUpdateUpsertLicenseMultipliers2OutboundSchema = z14.object({
|
|
4456
4667
|
match: z14.record(z14.string(), z14.union([z14.string(), z14.number(), z14.boolean()])),
|
|
4457
4668
|
factor: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4458
4669
|
add: z14.union([z14.number(), z14.undefined()]).optional()
|
|
4459
4670
|
});
|
|
4671
|
+
var previewUpdateCreditSchemaUpsertLicense2OutboundSchema = z14.object({
|
|
4672
|
+
metered_feature_id: z14.string(),
|
|
4673
|
+
billing_units: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4674
|
+
dimensions: z14.union([
|
|
4675
|
+
z14.record(
|
|
4676
|
+
z14.string(),
|
|
4677
|
+
z14.union([
|
|
4678
|
+
previewUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
4679
|
+
previewUpdateDimensionsUpsertLicense4OutboundSchema
|
|
4680
|
+
])
|
|
4681
|
+
),
|
|
4682
|
+
z14.undefined()
|
|
4683
|
+
]).optional(),
|
|
4684
|
+
multipliers: z14.union([
|
|
4685
|
+
z14.record(
|
|
4686
|
+
z14.string(),
|
|
4687
|
+
previewUpdateUpsertLicenseMultipliers2OutboundSchema
|
|
4688
|
+
),
|
|
4689
|
+
z14.undefined()
|
|
4690
|
+
]).optional(),
|
|
4691
|
+
credit_cost: z14.number()
|
|
4692
|
+
});
|
|
4460
4693
|
var previewUpdateDimensionsUpsertLicenseMatch2OutboundSchema = z14.union(
|
|
4461
4694
|
[z14.string(), z14.number(), z14.boolean()]
|
|
4462
4695
|
);
|
|
@@ -4521,6 +4754,10 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = z14.object({
|
|
|
4521
4754
|
tier_behavior: z14.literal("graduated"),
|
|
4522
4755
|
tiers: z14.array(previewUpdateUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
4523
4756
|
});
|
|
4757
|
+
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z14.union([
|
|
4758
|
+
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
4759
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
4760
|
+
]);
|
|
4524
4761
|
var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = z14.object(
|
|
4525
4762
|
{
|
|
4526
4763
|
markup: z14.number()
|
|
@@ -4548,6 +4785,20 @@ var previewUpdateUpsertLicenseMarkupsOutboundSchema = z14.object({
|
|
|
4548
4785
|
z14.undefined()
|
|
4549
4786
|
]).optional().nullable()
|
|
4550
4787
|
});
|
|
4788
|
+
var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = z14.object(
|
|
4789
|
+
{
|
|
4790
|
+
credit_schema: z14.union([
|
|
4791
|
+
z14.array(
|
|
4792
|
+
z14.union([
|
|
4793
|
+
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
4794
|
+
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
4795
|
+
])
|
|
4796
|
+
),
|
|
4797
|
+
z14.undefined()
|
|
4798
|
+
]).optional(),
|
|
4799
|
+
markups: z14.union([previewUpdateUpsertLicenseMarkupsOutboundSchema, z14.undefined()]).optional()
|
|
4800
|
+
}
|
|
4801
|
+
);
|
|
4551
4802
|
var previewUpdateUpsertLicenseIntervalUnionOutboundSchema = z14.union([
|
|
4552
4803
|
z14.string(),
|
|
4553
4804
|
z14.string()
|
|
@@ -4573,6 +4824,10 @@ var previewUpdateAttachDiscountOutboundSchema = z14.object({
|
|
|
4573
4824
|
reward_id: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4574
4825
|
promotion_code: z14.union([z14.string(), z14.undefined()]).optional()
|
|
4575
4826
|
});
|
|
4827
|
+
var previewUpdateCustomLineItemOutboundSchema = z14.object({
|
|
4828
|
+
amount: z14.number(),
|
|
4829
|
+
description: z14.string()
|
|
4830
|
+
});
|
|
4576
4831
|
var previewUpdateBillingCycleAnchorOutboundSchema = z14.union([
|
|
4577
4832
|
z14.string(),
|
|
4578
4833
|
z14.number()
|
|
@@ -4588,9 +4843,6 @@ var previewUpdateLicenseQuantityOutboundSchema = z14.object({
|
|
|
4588
4843
|
license_plan_id: z14.string(),
|
|
4589
4844
|
quantity: z14.number()
|
|
4590
4845
|
});
|
|
4591
|
-
var previewUpdateDimensionsToUpsertLicenseEnum2Schema = z14.any();
|
|
4592
|
-
var previewUpdateDimensionsUpsertLicenseMatch3Schema = z14.any();
|
|
4593
|
-
var previewUpdateDimensionsUpsertLicense4Schema = z14.any();
|
|
4594
4846
|
var closedEnumSchema10 = z14.any();
|
|
4595
4847
|
var previewUpdateUpsertLicenseThresholdBillingSchema = z14.any();
|
|
4596
4848
|
var previewUpdateUpsertLicenseResetSchema = z14.any();
|
|
@@ -4607,9 +4859,7 @@ var previewUpdateBillingControlsSchema = z14.any();
|
|
|
4607
4859
|
var previewUpdateFeatureQuantityRequestBodySchema = z14.any();
|
|
4608
4860
|
var previewUpdateFreeTrialParamsSchema = z14.any();
|
|
4609
4861
|
var planSchema3 = z14.any();
|
|
4610
|
-
var
|
|
4611
|
-
var previewUpdateDimensionsUpsertLicenseMatch3OutboundSchema = z14.any();
|
|
4612
|
-
var previewUpdateDimensionsUpsertLicense4OutboundSchema = z14.any();
|
|
4862
|
+
var openEnumSchema11 = z14.any();
|
|
4613
4863
|
var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = z14.any();
|
|
4614
4864
|
var previewUpdateUpsertLicenseResetOutboundSchema = z14.any();
|
|
4615
4865
|
var previewUpdateUpsertLicensePriceOutboundSchema = z14.any();
|
|
@@ -4624,6 +4874,12 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = z14.any();
|
|
|
4624
4874
|
var previewUpdateBillingControlsOutboundSchema = z14.any();
|
|
4625
4875
|
var previewUpdateFeatureQuantityRequestBodyOutboundSchema = z14.any();
|
|
4626
4876
|
var previewUpdateFreeTrialParamsOutboundSchema = z14.any();
|
|
4877
|
+
var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema10;
|
|
4878
|
+
var previewUpdateUpsertLicenseExpirySchema = z14.object({
|
|
4879
|
+
duration: previewUpdateUpsertLicenseDurationSchema,
|
|
4880
|
+
length: z14.number()
|
|
4881
|
+
});
|
|
4882
|
+
var previewUpdateDimensionsToUpsertLicenseEnum2Schema = closedEnumSchema10;
|
|
4627
4883
|
var previewUpdateDimensionsUpsertLicenseToUnion2Schema = z14.union([
|
|
4628
4884
|
z14.number(),
|
|
4629
4885
|
previewUpdateDimensionsToUpsertLicenseEnum2Schema
|
|
@@ -4633,7 +4889,7 @@ var previewUpdateDimensionsUpsertLicenseTier2Schema = z14.object({
|
|
|
4633
4889
|
creditCost: z14.number()
|
|
4634
4890
|
});
|
|
4635
4891
|
var previewUpdateDimensionsUpsertLicense3Schema = z14.object({
|
|
4636
|
-
match: z14.record(z14.string(),
|
|
4892
|
+
match: z14.record(z14.string(), z14.union([z14.string(), z14.number(), z14.boolean()])),
|
|
4637
4893
|
priority: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4638
4894
|
tierBehavior: z14.literal("graduated"),
|
|
4639
4895
|
tiers: z14.array(previewUpdateDimensionsUpsertLicenseTier2Schema)
|
|
@@ -4735,6 +4991,7 @@ var previewUpdateUpsertLicensePlanItemSchema = z14.object({
|
|
|
4735
4991
|
price: z14.union([previewUpdateUpsertLicensePriceSchema, z14.undefined()]).optional(),
|
|
4736
4992
|
proration: z14.union([previewUpdateUpsertLicenseProrationSchema, z14.undefined()]).optional(),
|
|
4737
4993
|
rollover: z14.union([previewUpdateUpsertLicenseRolloverSchema, z14.undefined()]).optional(),
|
|
4994
|
+
expiry: z14.union([previewUpdateUpsertLicenseExpirySchema, z14.undefined()]).optional(),
|
|
4738
4995
|
featureOverride: z14.union([previewUpdateUpsertLicenseFeatureOverrideSchema, z14.undefined()]).optional()
|
|
4739
4996
|
});
|
|
4740
4997
|
var previewUpdateUpsertLicenseRemoveItemBillingMethodSchema = closedEnumSchema10;
|
|
@@ -4804,6 +5061,7 @@ var previewUpdateParamsSchema = z14.object({
|
|
|
4804
5061
|
redirectMode: z14.union([previewUpdateRedirectModeSchema, z14.undefined()]).optional(),
|
|
4805
5062
|
subscriptionId: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4806
5063
|
discounts: z14.union([z14.array(previewUpdateAttachDiscountSchema), z14.undefined()]).optional(),
|
|
5064
|
+
customLineItems: z14.union([z14.array(previewUpdateCustomLineItemSchema), z14.undefined()]).optional(),
|
|
4807
5065
|
cancelAction: z14.union([previewUpdateCancelActionSchema, z14.undefined()]).optional(),
|
|
4808
5066
|
billingCycleAnchor: z14.union([z14.string(), z14.number(), z14.undefined()]).optional(),
|
|
4809
5067
|
noBillingChanges: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
@@ -4829,8 +5087,8 @@ var previewUpdateOutgoingSchema = z14.object({
|
|
|
4829
5087
|
canceledAt: z14.number().nullable(),
|
|
4830
5088
|
expiresAt: z14.number().nullable()
|
|
4831
5089
|
});
|
|
4832
|
-
var intentSchema =
|
|
4833
|
-
var previewUpdateStatusSchema =
|
|
5090
|
+
var intentSchema = openEnumSchema11;
|
|
5091
|
+
var previewUpdateStatusSchema = openEnumSchema11;
|
|
4834
5092
|
var previewUpdateTaxSchema = z14.object({
|
|
4835
5093
|
total: z14.number(),
|
|
4836
5094
|
amountInclusive: z14.number(),
|
|
@@ -4853,61 +5111,6 @@ var previewUpdateResponseSchema = z14.object({
|
|
|
4853
5111
|
tax: z14.union([previewUpdateTaxSchema, z14.undefined()]).optional(),
|
|
4854
5112
|
invoiceCredits: z14.union([previewUpdateInvoiceCreditsSchema, z14.undefined()]).optional()
|
|
4855
5113
|
});
|
|
4856
|
-
var previewUpdateDimensionsUpsertLicense3OutboundSchema = z14.object({
|
|
4857
|
-
match: z14.record(
|
|
4858
|
-
z14.string(),
|
|
4859
|
-
previewUpdateDimensionsUpsertLicenseMatch3OutboundSchema
|
|
4860
|
-
),
|
|
4861
|
-
priority: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4862
|
-
tier_behavior: z14.literal("graduated"),
|
|
4863
|
-
tiers: z14.array(previewUpdateDimensionsUpsertLicenseTier2OutboundSchema)
|
|
4864
|
-
});
|
|
4865
|
-
var previewUpdateUpsertLicenseDimensionsUnion2OutboundSchema = z14.union(
|
|
4866
|
-
[
|
|
4867
|
-
previewUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
4868
|
-
previewUpdateDimensionsUpsertLicense4OutboundSchema
|
|
4869
|
-
]
|
|
4870
|
-
);
|
|
4871
|
-
var previewUpdateCreditSchemaUpsertLicense2OutboundSchema = z14.object({
|
|
4872
|
-
metered_feature_id: z14.string(),
|
|
4873
|
-
billing_units: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
4874
|
-
dimensions: z14.union([
|
|
4875
|
-
z14.record(
|
|
4876
|
-
z14.string(),
|
|
4877
|
-
z14.union([
|
|
4878
|
-
previewUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
4879
|
-
previewUpdateDimensionsUpsertLicense4OutboundSchema
|
|
4880
|
-
])
|
|
4881
|
-
),
|
|
4882
|
-
z14.undefined()
|
|
4883
|
-
]).optional(),
|
|
4884
|
-
multipliers: z14.union([
|
|
4885
|
-
z14.record(
|
|
4886
|
-
z14.string(),
|
|
4887
|
-
previewUpdateUpsertLicenseMultipliers2OutboundSchema
|
|
4888
|
-
),
|
|
4889
|
-
z14.undefined()
|
|
4890
|
-
]).optional(),
|
|
4891
|
-
credit_cost: z14.number()
|
|
4892
|
-
});
|
|
4893
|
-
var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z14.union([
|
|
4894
|
-
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
4895
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
4896
|
-
]);
|
|
4897
|
-
var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = z14.object(
|
|
4898
|
-
{
|
|
4899
|
-
credit_schema: z14.union([
|
|
4900
|
-
z14.array(
|
|
4901
|
-
z14.union([
|
|
4902
|
-
previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
4903
|
-
previewUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
4904
|
-
])
|
|
4905
|
-
),
|
|
4906
|
-
z14.undefined()
|
|
4907
|
-
]).optional(),
|
|
4908
|
-
markups: z14.union([previewUpdateUpsertLicenseMarkupsOutboundSchema, z14.undefined()]).optional()
|
|
4909
|
-
}
|
|
4910
|
-
);
|
|
4911
5114
|
var previewUpdateUpsertLicensePlanItemOutboundSchema = z14.object({
|
|
4912
5115
|
threshold_billing: z14.union([
|
|
4913
5116
|
previewUpdateUpsertLicenseThresholdBillingOutboundSchema,
|
|
@@ -4921,6 +5124,7 @@ var previewUpdateUpsertLicensePlanItemOutboundSchema = z14.object({
|
|
|
4921
5124
|
price: z14.union([previewUpdateUpsertLicensePriceOutboundSchema, z14.undefined()]).optional(),
|
|
4922
5125
|
proration: z14.union([previewUpdateUpsertLicenseProrationOutboundSchema, z14.undefined()]).optional(),
|
|
4923
5126
|
rollover: z14.union([previewUpdateUpsertLicenseRolloverOutboundSchema, z14.undefined()]).optional(),
|
|
5127
|
+
expiry: z14.union([previewUpdateUpsertLicenseExpiryOutboundSchema, z14.undefined()]).optional(),
|
|
4924
5128
|
feature_override: z14.union([
|
|
4925
5129
|
previewUpdateUpsertLicenseFeatureOverrideOutboundSchema,
|
|
4926
5130
|
z14.undefined()
|
|
@@ -4971,6 +5175,7 @@ var previewUpdateParamsOutboundSchema = z14.object({
|
|
|
4971
5175
|
redirect_mode: z14.string(),
|
|
4972
5176
|
subscription_id: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4973
5177
|
discounts: z14.union([z14.array(previewUpdateAttachDiscountOutboundSchema), z14.undefined()]).optional(),
|
|
5178
|
+
custom_line_items: z14.union([z14.array(previewUpdateCustomLineItemOutboundSchema), z14.undefined()]).optional(),
|
|
4974
5179
|
cancel_action: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4975
5180
|
billing_cycle_anchor: z14.union([z14.string(), z14.number(), z14.undefined()]).optional(),
|
|
4976
5181
|
no_billing_changes: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
@@ -5002,1715 +5207,342 @@ var redeemReferralCodeParamsOutboundSchema = z15.object({
|
|
|
5002
5207
|
|
|
5003
5208
|
// src/generated/setupPaymentSchemas.ts
|
|
5004
5209
|
import { z as z16 } from "zod/v4";
|
|
5005
|
-
var
|
|
5006
|
-
xApiVersion: z16.union([z16.string(), z16.undefined()]).optional()
|
|
5007
|
-
});
|
|
5008
|
-
var setupPaymentFeatureQuantitySchema = z16.object({
|
|
5009
|
-
featureId: z16.string(),
|
|
5010
|
-
quantity: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5011
|
-
adjustable: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
5012
|
-
});
|
|
5013
|
-
var setupPaymentAdditionalCurrencySchema = z16.object({
|
|
5014
|
-
currency: z16.string(),
|
|
5015
|
-
amount: z16.number()
|
|
5016
|
-
});
|
|
5017
|
-
var setupPaymentItemThresholdBillingSchema = z16.object({
|
|
5018
|
-
threshold: z16.number()
|
|
5019
|
-
});
|
|
5020
|
-
var setupPaymentItemAdditionalCurrencySchema = z16.object({
|
|
5021
|
-
currency: z16.string(),
|
|
5022
|
-
amount: z16.number()
|
|
5023
|
-
});
|
|
5024
|
-
var setupPaymentItemPriceToSchema = z16.union([z16.number(), z16.string()]);
|
|
5025
|
-
var setupPaymentItemTierAdditionalCurrencySchema = z16.object({
|
|
5026
|
-
currency: z16.string(),
|
|
5027
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5028
|
-
flatAmount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5029
|
-
});
|
|
5030
|
-
var setupPaymentItemPriceTierSchema = z16.object({
|
|
5031
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5032
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5033
|
-
flatAmount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5034
|
-
additionalCurrencies: z16.union([
|
|
5035
|
-
z16.array(setupPaymentItemTierAdditionalCurrencySchema),
|
|
5036
|
-
z16.undefined()
|
|
5037
|
-
]).optional()
|
|
5038
|
-
});
|
|
5039
|
-
var setupPaymentDimensionsItemMatch4Schema = z16.union([
|
|
5210
|
+
var setupPaymentDimensionsUpsertLicenseMatch4Schema = z16.union([
|
|
5040
5211
|
z16.string(),
|
|
5041
5212
|
z16.number(),
|
|
5042
5213
|
z16.boolean()
|
|
5043
5214
|
]);
|
|
5044
|
-
var
|
|
5215
|
+
var setupPaymentDimensionsUpsertLicense4Schema = z16.object({
|
|
5045
5216
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5046
5217
|
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5047
5218
|
creditCost: z16.number()
|
|
5048
5219
|
});
|
|
5049
|
-
var
|
|
5220
|
+
var setupPaymentDimensionsUpsertLicenseMatch3Schema = z16.union([
|
|
5050
5221
|
z16.string(),
|
|
5051
5222
|
z16.number(),
|
|
5052
5223
|
z16.boolean()
|
|
5053
5224
|
]);
|
|
5054
|
-
var
|
|
5225
|
+
var setupPaymentUpsertLicenseMultipliersMatch2Schema = z16.union([
|
|
5055
5226
|
z16.string(),
|
|
5056
5227
|
z16.number(),
|
|
5057
5228
|
z16.boolean()
|
|
5058
5229
|
]);
|
|
5059
|
-
var
|
|
5230
|
+
var setupPaymentUpsertLicenseMultipliers2Schema = z16.object({
|
|
5060
5231
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5061
5232
|
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5062
5233
|
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5063
5234
|
});
|
|
5064
|
-
var
|
|
5235
|
+
var setupPaymentDimensionsUpsertLicenseMatch2Schema = z16.union([
|
|
5065
5236
|
z16.string(),
|
|
5066
5237
|
z16.number(),
|
|
5067
5238
|
z16.boolean()
|
|
5068
5239
|
]);
|
|
5069
|
-
var
|
|
5240
|
+
var setupPaymentDimensionsUpsertLicense2Schema = z16.object({
|
|
5070
5241
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5071
5242
|
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5072
5243
|
creditCost: z16.number()
|
|
5073
5244
|
});
|
|
5074
|
-
var
|
|
5245
|
+
var setupPaymentDimensionsUpsertLicenseMatch1Schema = z16.union([
|
|
5075
5246
|
z16.string(),
|
|
5076
5247
|
z16.number(),
|
|
5077
5248
|
z16.boolean()
|
|
5078
5249
|
]);
|
|
5079
|
-
var
|
|
5250
|
+
var setupPaymentUpsertLicenseMultipliersMatch1Schema = z16.union([
|
|
5080
5251
|
z16.string(),
|
|
5081
5252
|
z16.number(),
|
|
5082
5253
|
z16.boolean()
|
|
5083
5254
|
]);
|
|
5084
|
-
var
|
|
5255
|
+
var setupPaymentUpsertLicenseMultipliers1Schema = z16.object({
|
|
5085
5256
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5086
5257
|
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5087
5258
|
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5088
5259
|
});
|
|
5089
|
-
var
|
|
5260
|
+
var setupPaymentUpsertLicenseProviderMarkupsSchema = z16.object({
|
|
5090
5261
|
markup: z16.number()
|
|
5091
5262
|
});
|
|
5092
|
-
var
|
|
5263
|
+
var setupPaymentUpsertLicenseModelMarkupsSchema = z16.object({
|
|
5093
5264
|
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5094
5265
|
inputCost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5095
5266
|
outputCost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5096
5267
|
});
|
|
5097
|
-
var
|
|
5268
|
+
var setupPaymentUpsertLicenseMarkupsSchema = z16.object({
|
|
5098
5269
|
defaultMarkup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5099
5270
|
providerMarkups: z16.union([
|
|
5100
|
-
z16.record(z16.string(),
|
|
5271
|
+
z16.record(z16.string(), setupPaymentUpsertLicenseProviderMarkupsSchema),
|
|
5101
5272
|
z16.undefined()
|
|
5102
5273
|
]).optional().nullable(),
|
|
5103
5274
|
modelMarkups: z16.union([
|
|
5104
|
-
z16.record(z16.string(),
|
|
5275
|
+
z16.record(z16.string(), setupPaymentUpsertLicenseModelMarkupsSchema),
|
|
5105
5276
|
z16.undefined()
|
|
5106
5277
|
]).optional().nullable()
|
|
5107
5278
|
});
|
|
5108
|
-
var
|
|
5109
|
-
|
|
5279
|
+
var setupPaymentRemoveLicenseSchema = z16.object({
|
|
5280
|
+
licensePlanId: z16.string()
|
|
5110
5281
|
});
|
|
5111
|
-
var
|
|
5112
|
-
|
|
5113
|
-
|
|
5282
|
+
var setupPaymentAttachDiscountSchema = z16.object({
|
|
5283
|
+
rewardId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5284
|
+
promotionCode: z16.union([z16.string(), z16.undefined()]).optional()
|
|
5114
5285
|
});
|
|
5115
|
-
var
|
|
5116
|
-
z16.
|
|
5117
|
-
z16.
|
|
5286
|
+
var setupPaymentBillingCycleAnchorSchema = z16.union([
|
|
5287
|
+
z16.string(),
|
|
5288
|
+
z16.number()
|
|
5118
5289
|
]);
|
|
5119
|
-
var
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
flatAmount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5290
|
+
var setupPaymentCustomLineItemSchema = z16.object({
|
|
5291
|
+
amount: z16.number(),
|
|
5292
|
+
description: z16.string()
|
|
5123
5293
|
});
|
|
5124
|
-
var
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5294
|
+
var setupPaymentCarryOverBalancesSchema = z16.object({
|
|
5295
|
+
enabled: z16.boolean(),
|
|
5296
|
+
featureIds: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5297
|
+
});
|
|
5298
|
+
var setupPaymentCarryOverUsagesSchema = z16.object({
|
|
5299
|
+
enabled: z16.boolean(),
|
|
5300
|
+
featureIds: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5301
|
+
});
|
|
5302
|
+
var setupPaymentLicenseQuantitySchema = z16.object({
|
|
5303
|
+
licensePlanId: z16.string(),
|
|
5304
|
+
quantity: z16.number()
|
|
5305
|
+
});
|
|
5306
|
+
var setupPaymentResponseSchema = z16.object({
|
|
5307
|
+
customerId: z16.string(),
|
|
5308
|
+
entityId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5309
|
+
url: z16.string()
|
|
5132
5310
|
});
|
|
5133
|
-
var
|
|
5311
|
+
var setupPaymentUpsertLicenseExpiryOutboundSchema = z16.object({
|
|
5312
|
+
duration: z16.string(),
|
|
5313
|
+
length: z16.number()
|
|
5314
|
+
});
|
|
5315
|
+
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = z16.union([
|
|
5134
5316
|
z16.string(),
|
|
5135
5317
|
z16.number(),
|
|
5136
5318
|
z16.boolean()
|
|
5137
5319
|
]);
|
|
5138
|
-
var
|
|
5320
|
+
var setupPaymentDimensionsUpsertLicense4OutboundSchema = z16.object({
|
|
5139
5321
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5140
5322
|
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5141
|
-
|
|
5323
|
+
credit_cost: z16.number()
|
|
5142
5324
|
});
|
|
5143
|
-
var
|
|
5325
|
+
var setupPaymentDimensionsUpsertLicenseMatch3OutboundSchema = z16.union([
|
|
5144
5326
|
z16.string(),
|
|
5145
5327
|
z16.number(),
|
|
5146
5328
|
z16.boolean()
|
|
5147
5329
|
]);
|
|
5148
|
-
var
|
|
5149
|
-
|
|
5150
|
-
z16.number(),
|
|
5151
|
-
z16.
|
|
5330
|
+
var setupPaymentDimensionsUpsertLicenseToUnion2OutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
5331
|
+
var setupPaymentDimensionsUpsertLicenseTier2OutboundSchema = z16.object({
|
|
5332
|
+
to: z16.union([z16.number(), z16.string()]),
|
|
5333
|
+
credit_cost: z16.number()
|
|
5334
|
+
});
|
|
5335
|
+
var setupPaymentDimensionsUpsertLicense3OutboundSchema = z16.object({
|
|
5336
|
+
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5337
|
+
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5338
|
+
tier_behavior: z16.literal("graduated"),
|
|
5339
|
+
tiers: z16.array(setupPaymentDimensionsUpsertLicenseTier2OutboundSchema)
|
|
5340
|
+
});
|
|
5341
|
+
var setupPaymentUpsertLicenseDimensionsUnion2OutboundSchema = z16.union([
|
|
5342
|
+
setupPaymentDimensionsUpsertLicense3OutboundSchema,
|
|
5343
|
+
setupPaymentDimensionsUpsertLicense4OutboundSchema
|
|
5152
5344
|
]);
|
|
5153
|
-
var
|
|
5345
|
+
var setupPaymentUpsertLicenseMultipliersMatch2OutboundSchema = z16.union(
|
|
5346
|
+
[z16.string(), z16.number(), z16.boolean()]
|
|
5347
|
+
);
|
|
5348
|
+
var setupPaymentUpsertLicenseMultipliers2OutboundSchema = z16.object({
|
|
5154
5349
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5155
5350
|
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5156
5351
|
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5157
5352
|
});
|
|
5158
|
-
var
|
|
5353
|
+
var setupPaymentCreditSchemaUpsertLicense2OutboundSchema = z16.object({
|
|
5354
|
+
metered_feature_id: z16.string(),
|
|
5355
|
+
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5356
|
+
dimensions: z16.union([
|
|
5357
|
+
z16.record(
|
|
5358
|
+
z16.string(),
|
|
5359
|
+
z16.union([
|
|
5360
|
+
setupPaymentDimensionsUpsertLicense3OutboundSchema,
|
|
5361
|
+
setupPaymentDimensionsUpsertLicense4OutboundSchema
|
|
5362
|
+
])
|
|
5363
|
+
),
|
|
5364
|
+
z16.undefined()
|
|
5365
|
+
]).optional(),
|
|
5366
|
+
multipliers: z16.union([
|
|
5367
|
+
z16.record(z16.string(), setupPaymentUpsertLicenseMultipliers2OutboundSchema),
|
|
5368
|
+
z16.undefined()
|
|
5369
|
+
]).optional(),
|
|
5370
|
+
credit_cost: z16.number()
|
|
5371
|
+
});
|
|
5372
|
+
var setupPaymentDimensionsUpsertLicenseMatch2OutboundSchema = z16.union([
|
|
5159
5373
|
z16.string(),
|
|
5160
5374
|
z16.number(),
|
|
5161
5375
|
z16.boolean()
|
|
5162
5376
|
]);
|
|
5163
|
-
var
|
|
5164
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5165
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5166
|
-
creditCost: z16.number()
|
|
5167
|
-
});
|
|
5168
|
-
var setupPaymentDimensionsAddItemMatch1Schema = z16.union([
|
|
5169
|
-
z16.string(),
|
|
5170
|
-
z16.number(),
|
|
5171
|
-
z16.boolean()
|
|
5172
|
-
]);
|
|
5173
|
-
var setupPaymentAddItemMultipliersMatch1Schema = z16.union([
|
|
5174
|
-
z16.string(),
|
|
5175
|
-
z16.number(),
|
|
5176
|
-
z16.boolean()
|
|
5177
|
-
]);
|
|
5178
|
-
var setupPaymentAddItemMultipliers1Schema = z16.object({
|
|
5179
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5180
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5181
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5182
|
-
});
|
|
5183
|
-
var setupPaymentAddItemProviderMarkupsSchema = z16.object({
|
|
5184
|
-
markup: z16.number()
|
|
5185
|
-
});
|
|
5186
|
-
var setupPaymentAddItemModelMarkupsSchema = z16.object({
|
|
5187
|
-
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5188
|
-
inputCost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5189
|
-
outputCost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5190
|
-
});
|
|
5191
|
-
var setupPaymentAddItemMarkupsSchema = z16.object({
|
|
5192
|
-
defaultMarkup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5193
|
-
providerMarkups: z16.union([
|
|
5194
|
-
z16.record(z16.string(), setupPaymentAddItemProviderMarkupsSchema),
|
|
5195
|
-
z16.undefined()
|
|
5196
|
-
]).optional().nullable(),
|
|
5197
|
-
modelMarkups: z16.union([
|
|
5198
|
-
z16.record(z16.string(), setupPaymentAddItemModelMarkupsSchema),
|
|
5199
|
-
z16.undefined()
|
|
5200
|
-
]).optional().nullable()
|
|
5201
|
-
});
|
|
5202
|
-
var setupPaymentUsageLimitPropertiesSchema = z16.union([
|
|
5203
|
-
z16.string(),
|
|
5204
|
-
z16.number(),
|
|
5205
|
-
z16.boolean()
|
|
5206
|
-
]);
|
|
5207
|
-
var setupPaymentUsageLimitFilterSchema = z16.object({
|
|
5208
|
-
properties: z16.record(
|
|
5209
|
-
z16.string(),
|
|
5210
|
-
z16.union([z16.string(), z16.number(), z16.boolean()])
|
|
5211
|
-
)
|
|
5212
|
-
});
|
|
5213
|
-
var setupPaymentUsageAlertPropertiesSchema = z16.union([
|
|
5214
|
-
z16.string(),
|
|
5215
|
-
z16.number(),
|
|
5216
|
-
z16.boolean()
|
|
5217
|
-
]);
|
|
5218
|
-
var setupPaymentUsageAlertFilterSchema = z16.object({
|
|
5219
|
-
properties: z16.record(
|
|
5220
|
-
z16.string(),
|
|
5221
|
-
z16.union([z16.string(), z16.number(), z16.boolean()])
|
|
5222
|
-
)
|
|
5223
|
-
});
|
|
5224
|
-
var setupPaymentOverageAllowedSchema = z16.object({
|
|
5225
|
-
featureId: z16.string(),
|
|
5226
|
-
enabled: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
5227
|
-
});
|
|
5228
|
-
var setupPaymentUpsertLicenseAdditionalCurrencySchema = z16.object({
|
|
5229
|
-
currency: z16.string(),
|
|
5230
|
-
amount: z16.number()
|
|
5231
|
-
});
|
|
5232
|
-
var setupPaymentUpsertLicenseThresholdBillingSchema = z16.object({
|
|
5233
|
-
threshold: z16.number()
|
|
5234
|
-
});
|
|
5235
|
-
var setupPaymentUpsertLicenseAddItemAdditionalCurrencySchema = z16.object({
|
|
5236
|
-
currency: z16.string(),
|
|
5237
|
-
amount: z16.number()
|
|
5238
|
-
});
|
|
5239
|
-
var setupPaymentUpsertLicensePriceToSchema = z16.union([
|
|
5240
|
-
z16.number(),
|
|
5241
|
-
z16.string()
|
|
5242
|
-
]);
|
|
5243
|
-
var setupPaymentUpsertLicenseTierAdditionalCurrencySchema = z16.object({
|
|
5244
|
-
currency: z16.string(),
|
|
5245
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5246
|
-
flatAmount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5247
|
-
});
|
|
5248
|
-
var setupPaymentUpsertLicensePriceTierSchema = z16.object({
|
|
5249
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5250
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5251
|
-
flatAmount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5252
|
-
additionalCurrencies: z16.union([
|
|
5253
|
-
z16.array(setupPaymentUpsertLicenseTierAdditionalCurrencySchema),
|
|
5254
|
-
z16.undefined()
|
|
5255
|
-
]).optional()
|
|
5256
|
-
});
|
|
5257
|
-
var setupPaymentDimensionsUpsertLicenseMatch4Schema = z16.union([
|
|
5258
|
-
z16.string(),
|
|
5259
|
-
z16.number(),
|
|
5260
|
-
z16.boolean()
|
|
5261
|
-
]);
|
|
5262
|
-
var setupPaymentDimensionsUpsertLicense4Schema = z16.object({
|
|
5263
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5264
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5265
|
-
creditCost: z16.number()
|
|
5266
|
-
});
|
|
5267
|
-
var setupPaymentDimensionsUpsertLicenseMatch3Schema = z16.union([
|
|
5268
|
-
z16.string(),
|
|
5269
|
-
z16.number(),
|
|
5270
|
-
z16.boolean()
|
|
5271
|
-
]);
|
|
5272
|
-
var setupPaymentUpsertLicenseMultipliersMatch2Schema = z16.union([
|
|
5273
|
-
z16.string(),
|
|
5274
|
-
z16.number(),
|
|
5275
|
-
z16.boolean()
|
|
5276
|
-
]);
|
|
5277
|
-
var setupPaymentUpsertLicenseMultipliers2Schema = z16.object({
|
|
5278
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5279
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5280
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5281
|
-
});
|
|
5282
|
-
var setupPaymentDimensionsUpsertLicenseMatch2Schema = z16.union([
|
|
5283
|
-
z16.string(),
|
|
5284
|
-
z16.number(),
|
|
5285
|
-
z16.boolean()
|
|
5286
|
-
]);
|
|
5287
|
-
var setupPaymentDimensionsUpsertLicense2Schema = z16.object({
|
|
5288
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5289
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5290
|
-
creditCost: z16.number()
|
|
5291
|
-
});
|
|
5292
|
-
var setupPaymentDimensionsUpsertLicenseMatch1Schema = z16.union([
|
|
5293
|
-
z16.string(),
|
|
5294
|
-
z16.number(),
|
|
5295
|
-
z16.boolean()
|
|
5296
|
-
]);
|
|
5297
|
-
var setupPaymentUpsertLicenseMultipliersMatch1Schema = z16.union([
|
|
5298
|
-
z16.string(),
|
|
5299
|
-
z16.number(),
|
|
5300
|
-
z16.boolean()
|
|
5301
|
-
]);
|
|
5302
|
-
var setupPaymentUpsertLicenseMultipliers1Schema = z16.object({
|
|
5303
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5304
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5305
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5306
|
-
});
|
|
5307
|
-
var setupPaymentUpsertLicenseProviderMarkupsSchema = z16.object({
|
|
5308
|
-
markup: z16.number()
|
|
5309
|
-
});
|
|
5310
|
-
var setupPaymentUpsertLicenseModelMarkupsSchema = z16.object({
|
|
5311
|
-
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5312
|
-
inputCost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5313
|
-
outputCost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5314
|
-
});
|
|
5315
|
-
var setupPaymentUpsertLicenseMarkupsSchema = z16.object({
|
|
5316
|
-
defaultMarkup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5317
|
-
providerMarkups: z16.union([
|
|
5318
|
-
z16.record(z16.string(), setupPaymentUpsertLicenseProviderMarkupsSchema),
|
|
5319
|
-
z16.undefined()
|
|
5320
|
-
]).optional().nullable(),
|
|
5321
|
-
modelMarkups: z16.union([
|
|
5322
|
-
z16.record(z16.string(), setupPaymentUpsertLicenseModelMarkupsSchema),
|
|
5323
|
-
z16.undefined()
|
|
5324
|
-
]).optional().nullable()
|
|
5325
|
-
});
|
|
5326
|
-
var setupPaymentRemoveLicenseSchema = z16.object({
|
|
5327
|
-
licensePlanId: z16.string()
|
|
5328
|
-
});
|
|
5329
|
-
var setupPaymentAttachDiscountSchema = z16.object({
|
|
5330
|
-
rewardId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5331
|
-
promotionCode: z16.union([z16.string(), z16.undefined()]).optional()
|
|
5332
|
-
});
|
|
5333
|
-
var setupPaymentBillingCycleAnchorSchema = z16.union([
|
|
5334
|
-
z16.string(),
|
|
5335
|
-
z16.number()
|
|
5336
|
-
]);
|
|
5337
|
-
var setupPaymentCustomLineItemSchema = z16.object({
|
|
5338
|
-
amount: z16.number(),
|
|
5339
|
-
description: z16.string()
|
|
5340
|
-
});
|
|
5341
|
-
var setupPaymentCarryOverBalancesSchema = z16.object({
|
|
5342
|
-
enabled: z16.boolean(),
|
|
5343
|
-
featureIds: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5344
|
-
});
|
|
5345
|
-
var setupPaymentCarryOverUsagesSchema = z16.object({
|
|
5346
|
-
enabled: z16.boolean(),
|
|
5347
|
-
featureIds: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5348
|
-
});
|
|
5349
|
-
var setupPaymentLicenseQuantitySchema = z16.object({
|
|
5350
|
-
licensePlanId: z16.string(),
|
|
5351
|
-
quantity: z16.number()
|
|
5352
|
-
});
|
|
5353
|
-
var setupPaymentResponseSchema = z16.object({
|
|
5354
|
-
customerId: z16.string(),
|
|
5355
|
-
entityId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5356
|
-
url: z16.string()
|
|
5357
|
-
});
|
|
5358
|
-
var setupPaymentFeatureQuantityOutboundSchema = z16.object({
|
|
5359
|
-
feature_id: z16.string(),
|
|
5360
|
-
quantity: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5361
|
-
adjustable: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
5362
|
-
});
|
|
5363
|
-
var setupPaymentFreeTrialParamsOutboundSchema = z16.object({
|
|
5364
|
-
duration_length: z16.number(),
|
|
5365
|
-
duration_type: z16.string(),
|
|
5366
|
-
card_required: z16.boolean(),
|
|
5367
|
-
on_end: z16.string()
|
|
5368
|
-
});
|
|
5369
|
-
var setupPaymentAdditionalCurrencyOutboundSchema = z16.object({
|
|
5370
|
-
currency: z16.string(),
|
|
5371
|
-
amount: z16.number()
|
|
5372
|
-
});
|
|
5373
|
-
var setupPaymentBasePriceOutboundSchema = z16.object({
|
|
5374
|
-
amount: z16.number(),
|
|
5375
|
-
interval: z16.string(),
|
|
5376
|
-
interval_count: z16.number(),
|
|
5377
|
-
additional_currencies: z16.union([
|
|
5378
|
-
z16.array(setupPaymentAdditionalCurrencyOutboundSchema),
|
|
5379
|
-
z16.undefined()
|
|
5380
|
-
]).optional()
|
|
5381
|
-
});
|
|
5382
|
-
var setupPaymentItemThresholdBillingOutboundSchema = z16.object({
|
|
5383
|
-
threshold: z16.number()
|
|
5384
|
-
});
|
|
5385
|
-
var setupPaymentItemResetOutboundSchema = z16.object({
|
|
5386
|
-
interval: z16.string(),
|
|
5387
|
-
interval_count: z16.number()
|
|
5388
|
-
});
|
|
5389
|
-
var setupPaymentItemAdditionalCurrencyOutboundSchema = z16.object({
|
|
5390
|
-
currency: z16.string(),
|
|
5391
|
-
amount: z16.number()
|
|
5392
|
-
});
|
|
5393
|
-
var setupPaymentItemPriceToOutboundSchema = z16.union([
|
|
5394
|
-
z16.number(),
|
|
5395
|
-
z16.string()
|
|
5396
|
-
]);
|
|
5397
|
-
var setupPaymentItemTierAdditionalCurrencyOutboundSchema = z16.object({
|
|
5398
|
-
currency: z16.string(),
|
|
5399
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5400
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5401
|
-
});
|
|
5402
|
-
var setupPaymentItemPriceTierOutboundSchema = z16.object({
|
|
5403
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5404
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5405
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5406
|
-
additional_currencies: z16.union([
|
|
5407
|
-
z16.array(setupPaymentItemTierAdditionalCurrencyOutboundSchema),
|
|
5408
|
-
z16.undefined()
|
|
5409
|
-
]).optional()
|
|
5410
|
-
});
|
|
5411
|
-
var setupPaymentItemPriceOutboundSchema = z16.object({
|
|
5412
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5413
|
-
additional_currencies: z16.union([
|
|
5414
|
-
z16.array(setupPaymentItemAdditionalCurrencyOutboundSchema),
|
|
5415
|
-
z16.undefined()
|
|
5416
|
-
]).optional(),
|
|
5417
|
-
tiers: z16.union([z16.array(setupPaymentItemPriceTierOutboundSchema), z16.undefined()]).optional(),
|
|
5418
|
-
tier_behavior: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5419
|
-
interval: z16.string(),
|
|
5420
|
-
interval_count: z16.number(),
|
|
5421
|
-
billing_units: z16.number(),
|
|
5422
|
-
billing_method: z16.string(),
|
|
5423
|
-
max_purchase: z16.union([z16.number(), z16.undefined()]).optional().nullable()
|
|
5424
|
-
});
|
|
5425
|
-
var setupPaymentItemProrationOutboundSchema = z16.object({
|
|
5426
|
-
on_increase: z16.string(),
|
|
5427
|
-
on_decrease: z16.string()
|
|
5428
|
-
});
|
|
5429
|
-
var setupPaymentItemRolloverOutboundSchema = z16.object({
|
|
5430
|
-
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5431
|
-
max_percentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5432
|
-
expiry_duration_type: z16.string(),
|
|
5433
|
-
expiry_duration_length: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5434
|
-
});
|
|
5435
|
-
var setupPaymentDimensionsItemMatch4OutboundSchema = z16.union([
|
|
5436
|
-
z16.string(),
|
|
5437
|
-
z16.number(),
|
|
5438
|
-
z16.boolean()
|
|
5439
|
-
]);
|
|
5440
|
-
var setupPaymentDimensionsItem4OutboundSchema = z16.object({
|
|
5441
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5442
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5443
|
-
credit_cost: z16.number()
|
|
5444
|
-
});
|
|
5445
|
-
var setupPaymentDimensionsItemMatch3OutboundSchema = z16.union([
|
|
5446
|
-
z16.string(),
|
|
5447
|
-
z16.number(),
|
|
5448
|
-
z16.boolean()
|
|
5449
|
-
]);
|
|
5450
|
-
var setupPaymentDimensionsItemToUnion2OutboundSchema = z16.union([
|
|
5451
|
-
z16.number(),
|
|
5452
|
-
z16.string()
|
|
5453
|
-
]);
|
|
5454
|
-
var setupPaymentDimensionsItemTier2OutboundSchema = z16.object({
|
|
5455
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5456
|
-
credit_cost: z16.number()
|
|
5457
|
-
});
|
|
5458
|
-
var setupPaymentDimensionsItem3OutboundSchema = z16.object({
|
|
5459
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5460
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5461
|
-
tier_behavior: z16.literal("graduated"),
|
|
5462
|
-
tiers: z16.array(setupPaymentDimensionsItemTier2OutboundSchema)
|
|
5463
|
-
});
|
|
5464
|
-
var setupPaymentItemDimensionsUnion2OutboundSchema = z16.union([
|
|
5465
|
-
setupPaymentDimensionsItem3OutboundSchema,
|
|
5466
|
-
setupPaymentDimensionsItem4OutboundSchema
|
|
5467
|
-
]);
|
|
5468
|
-
var setupPaymentItemMultipliersMatch2OutboundSchema = z16.union([
|
|
5469
|
-
z16.string(),
|
|
5470
|
-
z16.number(),
|
|
5471
|
-
z16.boolean()
|
|
5472
|
-
]);
|
|
5473
|
-
var setupPaymentItemMultipliers2OutboundSchema = z16.object({
|
|
5474
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5475
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5476
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5477
|
-
});
|
|
5478
|
-
var setupPaymentCreditSchemaItem2OutboundSchema = z16.object({
|
|
5479
|
-
metered_feature_id: z16.string(),
|
|
5480
|
-
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5481
|
-
dimensions: z16.union([
|
|
5482
|
-
z16.record(
|
|
5483
|
-
z16.string(),
|
|
5484
|
-
z16.union([
|
|
5485
|
-
setupPaymentDimensionsItem3OutboundSchema,
|
|
5486
|
-
setupPaymentDimensionsItem4OutboundSchema
|
|
5487
|
-
])
|
|
5488
|
-
),
|
|
5489
|
-
z16.undefined()
|
|
5490
|
-
]).optional(),
|
|
5491
|
-
multipliers: z16.union([
|
|
5492
|
-
z16.record(z16.string(), setupPaymentItemMultipliers2OutboundSchema),
|
|
5493
|
-
z16.undefined()
|
|
5494
|
-
]).optional(),
|
|
5495
|
-
credit_cost: z16.number()
|
|
5496
|
-
});
|
|
5497
|
-
var setupPaymentDimensionsItemMatch2OutboundSchema = z16.union([
|
|
5498
|
-
z16.string(),
|
|
5499
|
-
z16.number(),
|
|
5500
|
-
z16.boolean()
|
|
5501
|
-
]);
|
|
5502
|
-
var setupPaymentDimensionsItem2OutboundSchema = z16.object({
|
|
5377
|
+
var setupPaymentDimensionsUpsertLicense2OutboundSchema = z16.object({
|
|
5503
5378
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5504
5379
|
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5505
5380
|
credit_cost: z16.number()
|
|
5506
5381
|
});
|
|
5507
|
-
var
|
|
5382
|
+
var setupPaymentDimensionsUpsertLicenseMatch1OutboundSchema = z16.union([
|
|
5508
5383
|
z16.string(),
|
|
5509
5384
|
z16.number(),
|
|
5510
5385
|
z16.boolean()
|
|
5511
5386
|
]);
|
|
5512
|
-
var
|
|
5513
|
-
|
|
5514
|
-
z16.string()
|
|
5515
|
-
]);
|
|
5516
|
-
var setupPaymentDimensionsItemTier1OutboundSchema = z16.object({
|
|
5387
|
+
var setupPaymentDimensionsUpsertLicenseToUnion1OutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
5388
|
+
var setupPaymentDimensionsUpsertLicenseTier1OutboundSchema = z16.object({
|
|
5517
5389
|
to: z16.union([z16.number(), z16.string()]),
|
|
5518
5390
|
credit_cost: z16.number()
|
|
5519
5391
|
});
|
|
5520
|
-
var
|
|
5392
|
+
var setupPaymentDimensionsUpsertLicense1OutboundSchema = z16.object({
|
|
5521
5393
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5522
5394
|
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5523
5395
|
tier_behavior: z16.literal("graduated"),
|
|
5524
|
-
tiers: z16.array(
|
|
5396
|
+
tiers: z16.array(setupPaymentDimensionsUpsertLicenseTier1OutboundSchema)
|
|
5525
5397
|
});
|
|
5526
|
-
var
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
]);
|
|
5530
|
-
var setupPaymentItemMultipliersMatch1OutboundSchema = z16.union([
|
|
5531
|
-
z16.string(),
|
|
5532
|
-
z16.number(),
|
|
5533
|
-
z16.boolean()
|
|
5398
|
+
var setupPaymentUpsertLicenseDimensionsUnion1OutboundSchema = z16.union([
|
|
5399
|
+
setupPaymentDimensionsUpsertLicense1OutboundSchema,
|
|
5400
|
+
setupPaymentDimensionsUpsertLicense2OutboundSchema
|
|
5534
5401
|
]);
|
|
5535
|
-
var
|
|
5402
|
+
var setupPaymentUpsertLicenseMultipliersMatch1OutboundSchema = z16.union(
|
|
5403
|
+
[z16.string(), z16.number(), z16.boolean()]
|
|
5404
|
+
);
|
|
5405
|
+
var setupPaymentUpsertLicenseMultipliers1OutboundSchema = z16.object({
|
|
5536
5406
|
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5537
5407
|
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5538
5408
|
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5539
5409
|
});
|
|
5540
|
-
var
|
|
5541
|
-
|
|
5542
|
-
z16.string()
|
|
5543
|
-
]);
|
|
5544
|
-
var setupPaymentItemFeatureOverrideTierOutboundSchema = z16.object({
|
|
5410
|
+
var setupPaymentUpsertLicenseFeatureOverrideToUnionOutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
5411
|
+
var setupPaymentUpsertLicenseFeatureOverrideTierOutboundSchema = z16.object({
|
|
5545
5412
|
to: z16.union([z16.number(), z16.string()]),
|
|
5546
5413
|
credit_cost: z16.number()
|
|
5547
5414
|
});
|
|
5548
|
-
var
|
|
5415
|
+
var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = z16.object({
|
|
5549
5416
|
metered_feature_id: z16.string(),
|
|
5550
5417
|
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5551
5418
|
dimensions: z16.union([
|
|
5552
5419
|
z16.record(
|
|
5553
5420
|
z16.string(),
|
|
5554
5421
|
z16.union([
|
|
5555
|
-
|
|
5556
|
-
|
|
5422
|
+
setupPaymentDimensionsUpsertLicense1OutboundSchema,
|
|
5423
|
+
setupPaymentDimensionsUpsertLicense2OutboundSchema
|
|
5557
5424
|
])
|
|
5558
5425
|
),
|
|
5559
5426
|
z16.undefined()
|
|
5560
5427
|
]).optional(),
|
|
5561
5428
|
multipliers: z16.union([
|
|
5562
|
-
z16.record(z16.string(),
|
|
5429
|
+
z16.record(z16.string(), setupPaymentUpsertLicenseMultipliers1OutboundSchema),
|
|
5563
5430
|
z16.undefined()
|
|
5564
5431
|
]).optional(),
|
|
5565
5432
|
tier_behavior: z16.literal("graduated"),
|
|
5566
|
-
tiers: z16.array(
|
|
5433
|
+
tiers: z16.array(setupPaymentUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
5567
5434
|
});
|
|
5568
|
-
var
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5435
|
+
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = z16.union(
|
|
5436
|
+
[
|
|
5437
|
+
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
5438
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
5439
|
+
]
|
|
5440
|
+
);
|
|
5441
|
+
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = z16.object({
|
|
5573
5442
|
markup: z16.number()
|
|
5574
5443
|
});
|
|
5575
|
-
var
|
|
5444
|
+
var setupPaymentUpsertLicenseModelMarkupsOutboundSchema = z16.object({
|
|
5576
5445
|
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5577
5446
|
input_cost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5578
5447
|
output_cost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5579
5448
|
});
|
|
5580
|
-
var
|
|
5449
|
+
var setupPaymentUpsertLicenseMarkupsOutboundSchema = z16.object({
|
|
5581
5450
|
default_markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5582
5451
|
provider_markups: z16.union([
|
|
5583
|
-
z16.record(z16.string(), setupPaymentItemProviderMarkupsOutboundSchema),
|
|
5584
|
-
z16.undefined()
|
|
5585
|
-
]).optional().nullable(),
|
|
5586
|
-
model_markups: z16.union([
|
|
5587
|
-
z16.record(z16.string(), setupPaymentItemModelMarkupsOutboundSchema),
|
|
5588
|
-
z16.undefined()
|
|
5589
|
-
]).optional().nullable()
|
|
5590
|
-
});
|
|
5591
|
-
var setupPaymentItemFeatureOverrideOutboundSchema = z16.object({
|
|
5592
|
-
credit_schema: z16.union([
|
|
5593
|
-
z16.array(
|
|
5594
|
-
z16.union([
|
|
5595
|
-
setupPaymentCreditSchemaItem1OutboundSchema,
|
|
5596
|
-
setupPaymentCreditSchemaItem2OutboundSchema
|
|
5597
|
-
])
|
|
5598
|
-
),
|
|
5599
|
-
z16.undefined()
|
|
5600
|
-
]).optional(),
|
|
5601
|
-
markups: z16.union([setupPaymentItemMarkupsOutboundSchema, z16.undefined()]).optional()
|
|
5602
|
-
});
|
|
5603
|
-
var setupPaymentItemPlanItemOutboundSchema = z16.object({
|
|
5604
|
-
threshold_billing: z16.union([setupPaymentItemThresholdBillingOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5605
|
-
feature_id: z16.string(),
|
|
5606
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5607
|
-
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5608
|
-
pooled: z16.boolean(),
|
|
5609
|
-
reset: z16.union([setupPaymentItemResetOutboundSchema, z16.undefined()]).optional(),
|
|
5610
|
-
price: z16.union([setupPaymentItemPriceOutboundSchema, z16.undefined()]).optional(),
|
|
5611
|
-
proration: z16.union([setupPaymentItemProrationOutboundSchema, z16.undefined()]).optional(),
|
|
5612
|
-
rollover: z16.union([setupPaymentItemRolloverOutboundSchema, z16.undefined()]).optional(),
|
|
5613
|
-
feature_override: z16.union([setupPaymentItemFeatureOverrideOutboundSchema, z16.undefined()]).optional()
|
|
5614
|
-
});
|
|
5615
|
-
var setupPaymentAddItemThresholdBillingOutboundSchema = z16.object({
|
|
5616
|
-
threshold: z16.number()
|
|
5617
|
-
});
|
|
5618
|
-
var setupPaymentAddItemResetOutboundSchema = z16.object({
|
|
5619
|
-
interval: z16.string(),
|
|
5620
|
-
interval_count: z16.number()
|
|
5621
|
-
});
|
|
5622
|
-
var setupPaymentAddItemAdditionalCurrencyOutboundSchema = z16.object({
|
|
5623
|
-
currency: z16.string(),
|
|
5624
|
-
amount: z16.number()
|
|
5625
|
-
});
|
|
5626
|
-
var setupPaymentAddItemPriceToOutboundSchema = z16.union([
|
|
5627
|
-
z16.number(),
|
|
5628
|
-
z16.string()
|
|
5629
|
-
]);
|
|
5630
|
-
var setupPaymentAddItemTierAdditionalCurrencyOutboundSchema = z16.object(
|
|
5631
|
-
{
|
|
5632
|
-
currency: z16.string(),
|
|
5633
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5634
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5635
|
-
}
|
|
5636
|
-
);
|
|
5637
|
-
var setupPaymentAddItemPriceTierOutboundSchema = z16.object({
|
|
5638
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5639
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5640
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5641
|
-
additional_currencies: z16.union([
|
|
5642
|
-
z16.array(setupPaymentAddItemTierAdditionalCurrencyOutboundSchema),
|
|
5643
|
-
z16.undefined()
|
|
5644
|
-
]).optional()
|
|
5645
|
-
});
|
|
5646
|
-
var setupPaymentAddItemPriceOutboundSchema = z16.object({
|
|
5647
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5648
|
-
additional_currencies: z16.union([
|
|
5649
|
-
z16.array(setupPaymentAddItemAdditionalCurrencyOutboundSchema),
|
|
5650
|
-
z16.undefined()
|
|
5651
|
-
]).optional(),
|
|
5652
|
-
tiers: z16.union([z16.array(setupPaymentAddItemPriceTierOutboundSchema), z16.undefined()]).optional(),
|
|
5653
|
-
tier_behavior: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5654
|
-
interval: z16.string(),
|
|
5655
|
-
interval_count: z16.number(),
|
|
5656
|
-
billing_units: z16.number(),
|
|
5657
|
-
billing_method: z16.string(),
|
|
5658
|
-
max_purchase: z16.union([z16.number(), z16.undefined()]).optional().nullable()
|
|
5659
|
-
});
|
|
5660
|
-
var setupPaymentAddItemProrationOutboundSchema = z16.object({
|
|
5661
|
-
on_increase: z16.string(),
|
|
5662
|
-
on_decrease: z16.string()
|
|
5663
|
-
});
|
|
5664
|
-
var setupPaymentAddItemRolloverOutboundSchema = z16.object({
|
|
5665
|
-
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5666
|
-
max_percentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5667
|
-
expiry_duration_type: z16.string(),
|
|
5668
|
-
expiry_duration_length: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5669
|
-
});
|
|
5670
|
-
var setupPaymentDimensionsAddItemMatch4OutboundSchema = z16.union([
|
|
5671
|
-
z16.string(),
|
|
5672
|
-
z16.number(),
|
|
5673
|
-
z16.boolean()
|
|
5674
|
-
]);
|
|
5675
|
-
var setupPaymentDimensionsAddItem4OutboundSchema = z16.object({
|
|
5676
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5677
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5678
|
-
credit_cost: z16.number()
|
|
5679
|
-
});
|
|
5680
|
-
var setupPaymentDimensionsAddItemMatch3OutboundSchema = z16.union([
|
|
5681
|
-
z16.string(),
|
|
5682
|
-
z16.number(),
|
|
5683
|
-
z16.boolean()
|
|
5684
|
-
]);
|
|
5685
|
-
var setupPaymentDimensionsAddItemToUnion2OutboundSchema = z16.union([
|
|
5686
|
-
z16.number(),
|
|
5687
|
-
z16.string()
|
|
5688
|
-
]);
|
|
5689
|
-
var setupPaymentDimensionsAddItemTier2OutboundSchema = z16.object({
|
|
5690
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5691
|
-
credit_cost: z16.number()
|
|
5692
|
-
});
|
|
5693
|
-
var setupPaymentDimensionsAddItem3OutboundSchema = z16.object({
|
|
5694
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5695
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5696
|
-
tier_behavior: z16.literal("graduated"),
|
|
5697
|
-
tiers: z16.array(setupPaymentDimensionsAddItemTier2OutboundSchema)
|
|
5698
|
-
});
|
|
5699
|
-
var setupPaymentAddItemDimensionsUnion2OutboundSchema = z16.union([
|
|
5700
|
-
setupPaymentDimensionsAddItem3OutboundSchema,
|
|
5701
|
-
setupPaymentDimensionsAddItem4OutboundSchema
|
|
5702
|
-
]);
|
|
5703
|
-
var setupPaymentAddItemMultipliersMatch2OutboundSchema = z16.union([
|
|
5704
|
-
z16.string(),
|
|
5705
|
-
z16.number(),
|
|
5706
|
-
z16.boolean()
|
|
5707
|
-
]);
|
|
5708
|
-
var setupPaymentAddItemMultipliers2OutboundSchema = z16.object({
|
|
5709
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5710
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5711
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5712
|
-
});
|
|
5713
|
-
var setupPaymentCreditSchemaAddItem2OutboundSchema = z16.object({
|
|
5714
|
-
metered_feature_id: z16.string(),
|
|
5715
|
-
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5716
|
-
dimensions: z16.union([
|
|
5717
|
-
z16.record(
|
|
5718
|
-
z16.string(),
|
|
5719
|
-
z16.union([
|
|
5720
|
-
setupPaymentDimensionsAddItem3OutboundSchema,
|
|
5721
|
-
setupPaymentDimensionsAddItem4OutboundSchema
|
|
5722
|
-
])
|
|
5723
|
-
),
|
|
5724
|
-
z16.undefined()
|
|
5725
|
-
]).optional(),
|
|
5726
|
-
multipliers: z16.union([
|
|
5727
|
-
z16.record(z16.string(), setupPaymentAddItemMultipliers2OutboundSchema),
|
|
5728
|
-
z16.undefined()
|
|
5729
|
-
]).optional(),
|
|
5730
|
-
credit_cost: z16.number()
|
|
5731
|
-
});
|
|
5732
|
-
var setupPaymentDimensionsAddItemMatch2OutboundSchema = z16.union([
|
|
5733
|
-
z16.string(),
|
|
5734
|
-
z16.number(),
|
|
5735
|
-
z16.boolean()
|
|
5736
|
-
]);
|
|
5737
|
-
var setupPaymentDimensionsAddItem2OutboundSchema = z16.object({
|
|
5738
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5739
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5740
|
-
credit_cost: z16.number()
|
|
5741
|
-
});
|
|
5742
|
-
var setupPaymentDimensionsAddItemMatch1OutboundSchema = z16.union([
|
|
5743
|
-
z16.string(),
|
|
5744
|
-
z16.number(),
|
|
5745
|
-
z16.boolean()
|
|
5746
|
-
]);
|
|
5747
|
-
var setupPaymentDimensionsAddItemToUnion1OutboundSchema = z16.union([
|
|
5748
|
-
z16.number(),
|
|
5749
|
-
z16.string()
|
|
5750
|
-
]);
|
|
5751
|
-
var setupPaymentDimensionsAddItemTier1OutboundSchema = z16.object({
|
|
5752
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5753
|
-
credit_cost: z16.number()
|
|
5754
|
-
});
|
|
5755
|
-
var setupPaymentDimensionsAddItem1OutboundSchema = z16.object({
|
|
5756
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5757
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5758
|
-
tier_behavior: z16.literal("graduated"),
|
|
5759
|
-
tiers: z16.array(setupPaymentDimensionsAddItemTier1OutboundSchema)
|
|
5760
|
-
});
|
|
5761
|
-
var setupPaymentAddItemDimensionsUnion1OutboundSchema = z16.union([
|
|
5762
|
-
setupPaymentDimensionsAddItem1OutboundSchema,
|
|
5763
|
-
setupPaymentDimensionsAddItem2OutboundSchema
|
|
5764
|
-
]);
|
|
5765
|
-
var setupPaymentAddItemMultipliersMatch1OutboundSchema = z16.union([
|
|
5766
|
-
z16.string(),
|
|
5767
|
-
z16.number(),
|
|
5768
|
-
z16.boolean()
|
|
5769
|
-
]);
|
|
5770
|
-
var setupPaymentAddItemMultipliers1OutboundSchema = z16.object({
|
|
5771
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
5772
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5773
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5774
|
-
});
|
|
5775
|
-
var setupPaymentAddItemFeatureOverrideToUnionOutboundSchema = z16.union([
|
|
5776
|
-
z16.number(),
|
|
5777
|
-
z16.string()
|
|
5778
|
-
]);
|
|
5779
|
-
var setupPaymentAddItemFeatureOverrideTierOutboundSchema = z16.object({
|
|
5780
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5781
|
-
credit_cost: z16.number()
|
|
5782
|
-
});
|
|
5783
|
-
var setupPaymentCreditSchemaAddItem1OutboundSchema = z16.object({
|
|
5784
|
-
metered_feature_id: z16.string(),
|
|
5785
|
-
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5786
|
-
dimensions: z16.union([
|
|
5787
5452
|
z16.record(
|
|
5788
5453
|
z16.string(),
|
|
5789
|
-
|
|
5790
|
-
setupPaymentDimensionsAddItem1OutboundSchema,
|
|
5791
|
-
setupPaymentDimensionsAddItem2OutboundSchema
|
|
5792
|
-
])
|
|
5454
|
+
setupPaymentUpsertLicenseProviderMarkupsOutboundSchema
|
|
5793
5455
|
),
|
|
5794
5456
|
z16.undefined()
|
|
5795
|
-
]).optional(),
|
|
5796
|
-
multipliers: z16.union([
|
|
5797
|
-
z16.record(z16.string(), setupPaymentAddItemMultipliers1OutboundSchema),
|
|
5798
|
-
z16.undefined()
|
|
5799
|
-
]).optional(),
|
|
5800
|
-
tier_behavior: z16.literal("graduated"),
|
|
5801
|
-
tiers: z16.array(setupPaymentAddItemFeatureOverrideTierOutboundSchema)
|
|
5802
|
-
});
|
|
5803
|
-
var setupPaymentAddItemCreditSchemaUnionOutboundSchema = z16.union([
|
|
5804
|
-
setupPaymentCreditSchemaAddItem1OutboundSchema,
|
|
5805
|
-
setupPaymentCreditSchemaAddItem2OutboundSchema
|
|
5806
|
-
]);
|
|
5807
|
-
var setupPaymentAddItemProviderMarkupsOutboundSchema = z16.object({
|
|
5808
|
-
markup: z16.number()
|
|
5809
|
-
});
|
|
5810
|
-
var setupPaymentAddItemModelMarkupsOutboundSchema = z16.object({
|
|
5811
|
-
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5812
|
-
input_cost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5813
|
-
output_cost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5814
|
-
});
|
|
5815
|
-
var setupPaymentAddItemMarkupsOutboundSchema = z16.object({
|
|
5816
|
-
default_markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5817
|
-
provider_markups: z16.union([
|
|
5818
|
-
z16.record(z16.string(), setupPaymentAddItemProviderMarkupsOutboundSchema),
|
|
5819
|
-
z16.undefined()
|
|
5820
5457
|
]).optional().nullable(),
|
|
5821
5458
|
model_markups: z16.union([
|
|
5822
|
-
z16.record(z16.string(),
|
|
5459
|
+
z16.record(z16.string(), setupPaymentUpsertLicenseModelMarkupsOutboundSchema),
|
|
5823
5460
|
z16.undefined()
|
|
5824
5461
|
]).optional().nullable()
|
|
5825
5462
|
});
|
|
5826
|
-
var
|
|
5463
|
+
var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = z16.object({
|
|
5827
5464
|
credit_schema: z16.union([
|
|
5828
5465
|
z16.array(
|
|
5829
5466
|
z16.union([
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
])
|
|
5833
|
-
),
|
|
5834
|
-
z16.undefined()
|
|
5835
|
-
]).optional(),
|
|
5836
|
-
markups: z16.union([setupPaymentAddItemMarkupsOutboundSchema, z16.undefined()]).optional()
|
|
5837
|
-
});
|
|
5838
|
-
var setupPaymentAddItemPlanItemOutboundSchema = z16.object({
|
|
5839
|
-
threshold_billing: z16.union([setupPaymentAddItemThresholdBillingOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5840
|
-
feature_id: z16.string(),
|
|
5841
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5842
|
-
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5843
|
-
pooled: z16.boolean(),
|
|
5844
|
-
reset: z16.union([setupPaymentAddItemResetOutboundSchema, z16.undefined()]).optional(),
|
|
5845
|
-
price: z16.union([setupPaymentAddItemPriceOutboundSchema, z16.undefined()]).optional(),
|
|
5846
|
-
proration: z16.union([setupPaymentAddItemProrationOutboundSchema, z16.undefined()]).optional(),
|
|
5847
|
-
rollover: z16.union([setupPaymentAddItemRolloverOutboundSchema, z16.undefined()]).optional(),
|
|
5848
|
-
feature_override: z16.union([setupPaymentAddItemFeatureOverrideOutboundSchema, z16.undefined()]).optional()
|
|
5849
|
-
});
|
|
5850
|
-
var setupPaymentIntervalUnionOutboundSchema = z16.union([
|
|
5851
|
-
z16.string(),
|
|
5852
|
-
z16.string()
|
|
5853
|
-
]);
|
|
5854
|
-
var setupPaymentPlanItemFilterOutboundSchema = z16.object({
|
|
5855
|
-
feature_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5856
|
-
billing_method: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5857
|
-
interval: z16.union([z16.string(), z16.string(), z16.undefined()]).optional(),
|
|
5858
|
-
interval_count: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5859
|
-
included: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5860
|
-
});
|
|
5861
|
-
var setupPaymentCustomizeFreeTrialParamsOutboundSchema = z16.object({
|
|
5862
|
-
duration_length: z16.number(),
|
|
5863
|
-
duration_type: z16.string(),
|
|
5864
|
-
card_required: z16.boolean(),
|
|
5865
|
-
on_end: z16.string()
|
|
5866
|
-
});
|
|
5867
|
-
var setupPaymentPurchaseLimitOutboundSchema = z16.object({
|
|
5868
|
-
interval: z16.string(),
|
|
5869
|
-
interval_count: z16.number(),
|
|
5870
|
-
limit: z16.number(),
|
|
5871
|
-
count: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5872
|
-
});
|
|
5873
|
-
var setupPaymentAutoTopupOutboundSchema = z16.object({
|
|
5874
|
-
feature_id: z16.string(),
|
|
5875
|
-
enabled: z16.boolean(),
|
|
5876
|
-
threshold: z16.number(),
|
|
5877
|
-
quantity: z16.number(),
|
|
5878
|
-
purchase_limit: z16.union([setupPaymentPurchaseLimitOutboundSchema, z16.undefined()]).optional(),
|
|
5879
|
-
invoice_mode: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
5880
|
-
});
|
|
5881
|
-
var setupPaymentSpendLimitOutboundSchema = z16.object({
|
|
5882
|
-
feature_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5883
|
-
enabled: z16.boolean(),
|
|
5884
|
-
limit_type: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5885
|
-
overage_limit: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5886
|
-
skip_overage_billing: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
5887
|
-
});
|
|
5888
|
-
var setupPaymentUsageLimitPropertiesOutboundSchema = z16.union([
|
|
5889
|
-
z16.string(),
|
|
5890
|
-
z16.number(),
|
|
5891
|
-
z16.boolean()
|
|
5892
|
-
]);
|
|
5893
|
-
var setupPaymentUsageLimitFilterOutboundSchema = z16.object({
|
|
5894
|
-
properties: z16.record(
|
|
5895
|
-
z16.string(),
|
|
5896
|
-
z16.union([z16.string(), z16.number(), z16.boolean()])
|
|
5897
|
-
)
|
|
5898
|
-
});
|
|
5899
|
-
var setupPaymentUsageLimitOutboundSchema = z16.object({
|
|
5900
|
-
feature_id: z16.string(),
|
|
5901
|
-
enabled: z16.boolean(),
|
|
5902
|
-
limit: z16.number(),
|
|
5903
|
-
interval: z16.string(),
|
|
5904
|
-
anchor: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5905
|
-
filter: z16.union([setupPaymentUsageLimitFilterOutboundSchema, z16.undefined()]).optional()
|
|
5906
|
-
});
|
|
5907
|
-
var setupPaymentUsageAlertPropertiesOutboundSchema = z16.union([
|
|
5908
|
-
z16.string(),
|
|
5909
|
-
z16.number(),
|
|
5910
|
-
z16.boolean()
|
|
5911
|
-
]);
|
|
5912
|
-
var setupPaymentUsageAlertFilterOutboundSchema = z16.object({
|
|
5913
|
-
properties: z16.record(
|
|
5914
|
-
z16.string(),
|
|
5915
|
-
z16.union([z16.string(), z16.number(), z16.boolean()])
|
|
5916
|
-
)
|
|
5917
|
-
});
|
|
5918
|
-
var setupPaymentUsageAlertOutboundSchema = z16.object({
|
|
5919
|
-
feature_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5920
|
-
enabled: z16.boolean(),
|
|
5921
|
-
threshold: z16.number(),
|
|
5922
|
-
threshold_type: z16.string(),
|
|
5923
|
-
basis: z16.string(),
|
|
5924
|
-
filter: z16.union([setupPaymentUsageAlertFilterOutboundSchema, z16.undefined()]).optional(),
|
|
5925
|
-
name: z16.union([z16.string(), z16.undefined()]).optional()
|
|
5926
|
-
});
|
|
5927
|
-
var setupPaymentOverageAllowedOutboundSchema = z16.object({
|
|
5928
|
-
feature_id: z16.string(),
|
|
5929
|
-
enabled: z16.boolean()
|
|
5930
|
-
});
|
|
5931
|
-
var setupPaymentBillingControlsOutboundSchema = z16.object({
|
|
5932
|
-
auto_topups: z16.union([z16.array(setupPaymentAutoTopupOutboundSchema), z16.undefined()]).optional(),
|
|
5933
|
-
spend_limits: z16.union([z16.array(setupPaymentSpendLimitOutboundSchema), z16.undefined()]).optional(),
|
|
5934
|
-
usage_limits: z16.union([z16.array(setupPaymentUsageLimitOutboundSchema), z16.undefined()]).optional(),
|
|
5935
|
-
usage_alerts: z16.union([z16.array(setupPaymentUsageAlertOutboundSchema), z16.undefined()]).optional(),
|
|
5936
|
-
overage_allowed: z16.union([z16.array(setupPaymentOverageAllowedOutboundSchema), z16.undefined()]).optional()
|
|
5937
|
-
});
|
|
5938
|
-
var setupPaymentUpsertLicenseAdditionalCurrencyOutboundSchema = z16.object({
|
|
5939
|
-
currency: z16.string(),
|
|
5940
|
-
amount: z16.number()
|
|
5941
|
-
});
|
|
5942
|
-
var setupPaymentUpsertLicenseBasePriceOutboundSchema = z16.object({
|
|
5943
|
-
amount: z16.number(),
|
|
5944
|
-
interval: z16.string(),
|
|
5945
|
-
interval_count: z16.number(),
|
|
5946
|
-
additional_currencies: z16.union([
|
|
5947
|
-
z16.array(setupPaymentUpsertLicenseAdditionalCurrencyOutboundSchema),
|
|
5948
|
-
z16.undefined()
|
|
5949
|
-
]).optional()
|
|
5950
|
-
});
|
|
5951
|
-
var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = z16.object(
|
|
5952
|
-
{
|
|
5953
|
-
threshold: z16.number()
|
|
5954
|
-
}
|
|
5955
|
-
);
|
|
5956
|
-
var setupPaymentUpsertLicenseResetOutboundSchema = z16.object({
|
|
5957
|
-
interval: z16.string(),
|
|
5958
|
-
interval_count: z16.number()
|
|
5959
|
-
});
|
|
5960
|
-
var setupPaymentUpsertLicenseAddItemAdditionalCurrencyOutboundSchema = z16.object({
|
|
5961
|
-
currency: z16.string(),
|
|
5962
|
-
amount: z16.number()
|
|
5963
|
-
});
|
|
5964
|
-
var setupPaymentUpsertLicensePriceToOutboundSchema = z16.union([
|
|
5965
|
-
z16.number(),
|
|
5966
|
-
z16.string()
|
|
5967
|
-
]);
|
|
5968
|
-
var setupPaymentUpsertLicenseTierAdditionalCurrencyOutboundSchema = z16.object({
|
|
5969
|
-
currency: z16.string(),
|
|
5970
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5971
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5972
|
-
});
|
|
5973
|
-
var setupPaymentUpsertLicensePriceTierOutboundSchema = z16.object({
|
|
5974
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
5975
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5976
|
-
flat_amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5977
|
-
additional_currencies: z16.union([
|
|
5978
|
-
z16.array(setupPaymentUpsertLicenseTierAdditionalCurrencyOutboundSchema),
|
|
5979
|
-
z16.undefined()
|
|
5980
|
-
]).optional()
|
|
5981
|
-
});
|
|
5982
|
-
var setupPaymentUpsertLicensePriceOutboundSchema = z16.object({
|
|
5983
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5984
|
-
additional_currencies: z16.union([
|
|
5985
|
-
z16.array(setupPaymentUpsertLicenseAddItemAdditionalCurrencyOutboundSchema),
|
|
5986
|
-
z16.undefined()
|
|
5987
|
-
]).optional(),
|
|
5988
|
-
tiers: z16.union([
|
|
5989
|
-
z16.array(setupPaymentUpsertLicensePriceTierOutboundSchema),
|
|
5990
|
-
z16.undefined()
|
|
5991
|
-
]).optional(),
|
|
5992
|
-
tier_behavior: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5993
|
-
interval: z16.string(),
|
|
5994
|
-
interval_count: z16.number(),
|
|
5995
|
-
billing_units: z16.number(),
|
|
5996
|
-
billing_method: z16.string(),
|
|
5997
|
-
max_purchase: z16.union([z16.number(), z16.undefined()]).optional().nullable()
|
|
5998
|
-
});
|
|
5999
|
-
var setupPaymentUpsertLicenseProrationOutboundSchema = z16.object({
|
|
6000
|
-
on_increase: z16.string(),
|
|
6001
|
-
on_decrease: z16.string()
|
|
6002
|
-
});
|
|
6003
|
-
var setupPaymentUpsertLicenseRolloverOutboundSchema = z16.object({
|
|
6004
|
-
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6005
|
-
max_percentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6006
|
-
expiry_duration_type: z16.string(),
|
|
6007
|
-
expiry_duration_length: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6008
|
-
});
|
|
6009
|
-
var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = z16.union([
|
|
6010
|
-
z16.string(),
|
|
6011
|
-
z16.number(),
|
|
6012
|
-
z16.boolean()
|
|
6013
|
-
]);
|
|
6014
|
-
var setupPaymentDimensionsUpsertLicense4OutboundSchema = z16.object({
|
|
6015
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6016
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6017
|
-
credit_cost: z16.number()
|
|
6018
|
-
});
|
|
6019
|
-
var setupPaymentDimensionsUpsertLicenseMatch3OutboundSchema = z16.union([
|
|
6020
|
-
z16.string(),
|
|
6021
|
-
z16.number(),
|
|
6022
|
-
z16.boolean()
|
|
6023
|
-
]);
|
|
6024
|
-
var setupPaymentDimensionsUpsertLicenseToUnion2OutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
6025
|
-
var setupPaymentDimensionsUpsertLicenseTier2OutboundSchema = z16.object({
|
|
6026
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
6027
|
-
credit_cost: z16.number()
|
|
6028
|
-
});
|
|
6029
|
-
var setupPaymentDimensionsUpsertLicense3OutboundSchema = z16.object({
|
|
6030
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6031
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6032
|
-
tier_behavior: z16.literal("graduated"),
|
|
6033
|
-
tiers: z16.array(setupPaymentDimensionsUpsertLicenseTier2OutboundSchema)
|
|
6034
|
-
});
|
|
6035
|
-
var setupPaymentUpsertLicenseDimensionsUnion2OutboundSchema = z16.union([
|
|
6036
|
-
setupPaymentDimensionsUpsertLicense3OutboundSchema,
|
|
6037
|
-
setupPaymentDimensionsUpsertLicense4OutboundSchema
|
|
6038
|
-
]);
|
|
6039
|
-
var setupPaymentUpsertLicenseMultipliersMatch2OutboundSchema = z16.union(
|
|
6040
|
-
[z16.string(), z16.number(), z16.boolean()]
|
|
6041
|
-
);
|
|
6042
|
-
var setupPaymentUpsertLicenseMultipliers2OutboundSchema = z16.object({
|
|
6043
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6044
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6045
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6046
|
-
});
|
|
6047
|
-
var setupPaymentCreditSchemaUpsertLicense2OutboundSchema = z16.object({
|
|
6048
|
-
metered_feature_id: z16.string(),
|
|
6049
|
-
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6050
|
-
dimensions: z16.union([
|
|
6051
|
-
z16.record(
|
|
6052
|
-
z16.string(),
|
|
6053
|
-
z16.union([
|
|
6054
|
-
setupPaymentDimensionsUpsertLicense3OutboundSchema,
|
|
6055
|
-
setupPaymentDimensionsUpsertLicense4OutboundSchema
|
|
6056
|
-
])
|
|
6057
|
-
),
|
|
6058
|
-
z16.undefined()
|
|
6059
|
-
]).optional(),
|
|
6060
|
-
multipliers: z16.union([
|
|
6061
|
-
z16.record(z16.string(), setupPaymentUpsertLicenseMultipliers2OutboundSchema),
|
|
6062
|
-
z16.undefined()
|
|
6063
|
-
]).optional(),
|
|
6064
|
-
credit_cost: z16.number()
|
|
6065
|
-
});
|
|
6066
|
-
var setupPaymentDimensionsUpsertLicenseMatch2OutboundSchema = z16.union([
|
|
6067
|
-
z16.string(),
|
|
6068
|
-
z16.number(),
|
|
6069
|
-
z16.boolean()
|
|
6070
|
-
]);
|
|
6071
|
-
var setupPaymentDimensionsUpsertLicense2OutboundSchema = z16.object({
|
|
6072
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6073
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6074
|
-
credit_cost: z16.number()
|
|
6075
|
-
});
|
|
6076
|
-
var setupPaymentDimensionsUpsertLicenseMatch1OutboundSchema = z16.union([
|
|
6077
|
-
z16.string(),
|
|
6078
|
-
z16.number(),
|
|
6079
|
-
z16.boolean()
|
|
6080
|
-
]);
|
|
6081
|
-
var setupPaymentDimensionsUpsertLicenseToUnion1OutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
6082
|
-
var setupPaymentDimensionsUpsertLicenseTier1OutboundSchema = z16.object({
|
|
6083
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
6084
|
-
credit_cost: z16.number()
|
|
6085
|
-
});
|
|
6086
|
-
var setupPaymentDimensionsUpsertLicense1OutboundSchema = z16.object({
|
|
6087
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6088
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6089
|
-
tier_behavior: z16.literal("graduated"),
|
|
6090
|
-
tiers: z16.array(setupPaymentDimensionsUpsertLicenseTier1OutboundSchema)
|
|
6091
|
-
});
|
|
6092
|
-
var setupPaymentUpsertLicenseDimensionsUnion1OutboundSchema = z16.union([
|
|
6093
|
-
setupPaymentDimensionsUpsertLicense1OutboundSchema,
|
|
6094
|
-
setupPaymentDimensionsUpsertLicense2OutboundSchema
|
|
6095
|
-
]);
|
|
6096
|
-
var setupPaymentUpsertLicenseMultipliersMatch1OutboundSchema = z16.union(
|
|
6097
|
-
[z16.string(), z16.number(), z16.boolean()]
|
|
6098
|
-
);
|
|
6099
|
-
var setupPaymentUpsertLicenseMultipliers1OutboundSchema = z16.object({
|
|
6100
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6101
|
-
factor: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6102
|
-
add: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6103
|
-
});
|
|
6104
|
-
var setupPaymentUpsertLicenseFeatureOverrideToUnionOutboundSchema = z16.union([z16.number(), z16.string()]);
|
|
6105
|
-
var setupPaymentUpsertLicenseFeatureOverrideTierOutboundSchema = z16.object({
|
|
6106
|
-
to: z16.union([z16.number(), z16.string()]),
|
|
6107
|
-
credit_cost: z16.number()
|
|
6108
|
-
});
|
|
6109
|
-
var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = z16.object({
|
|
6110
|
-
metered_feature_id: z16.string(),
|
|
6111
|
-
billing_units: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6112
|
-
dimensions: z16.union([
|
|
6113
|
-
z16.record(
|
|
6114
|
-
z16.string(),
|
|
6115
|
-
z16.union([
|
|
6116
|
-
setupPaymentDimensionsUpsertLicense1OutboundSchema,
|
|
6117
|
-
setupPaymentDimensionsUpsertLicense2OutboundSchema
|
|
6118
|
-
])
|
|
6119
|
-
),
|
|
6120
|
-
z16.undefined()
|
|
6121
|
-
]).optional(),
|
|
6122
|
-
multipliers: z16.union([
|
|
6123
|
-
z16.record(z16.string(), setupPaymentUpsertLicenseMultipliers1OutboundSchema),
|
|
6124
|
-
z16.undefined()
|
|
6125
|
-
]).optional(),
|
|
6126
|
-
tier_behavior: z16.literal("graduated"),
|
|
6127
|
-
tiers: z16.array(setupPaymentUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
6128
|
-
});
|
|
6129
|
-
var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = z16.union(
|
|
6130
|
-
[
|
|
6131
|
-
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
6132
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
6133
|
-
]
|
|
6134
|
-
);
|
|
6135
|
-
var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = z16.object({
|
|
6136
|
-
markup: z16.number()
|
|
6137
|
-
});
|
|
6138
|
-
var setupPaymentUpsertLicenseModelMarkupsOutboundSchema = z16.object({
|
|
6139
|
-
markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6140
|
-
input_cost: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6141
|
-
output_cost: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6142
|
-
});
|
|
6143
|
-
var setupPaymentUpsertLicenseMarkupsOutboundSchema = z16.object({
|
|
6144
|
-
default_markup: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6145
|
-
provider_markups: z16.union([
|
|
6146
|
-
z16.record(
|
|
6147
|
-
z16.string(),
|
|
6148
|
-
setupPaymentUpsertLicenseProviderMarkupsOutboundSchema
|
|
6149
|
-
),
|
|
6150
|
-
z16.undefined()
|
|
6151
|
-
]).optional().nullable(),
|
|
6152
|
-
model_markups: z16.union([
|
|
6153
|
-
z16.record(z16.string(), setupPaymentUpsertLicenseModelMarkupsOutboundSchema),
|
|
6154
|
-
z16.undefined()
|
|
6155
|
-
]).optional().nullable()
|
|
6156
|
-
});
|
|
6157
|
-
var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = z16.object({
|
|
6158
|
-
credit_schema: z16.union([
|
|
6159
|
-
z16.array(
|
|
6160
|
-
z16.union([
|
|
6161
|
-
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
6162
|
-
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
6163
|
-
])
|
|
6164
|
-
),
|
|
6165
|
-
z16.undefined()
|
|
6166
|
-
]).optional(),
|
|
6167
|
-
markups: z16.union([setupPaymentUpsertLicenseMarkupsOutboundSchema, z16.undefined()]).optional()
|
|
6168
|
-
});
|
|
6169
|
-
var setupPaymentUpsertLicensePlanItemOutboundSchema = z16.object({
|
|
6170
|
-
threshold_billing: z16.union([
|
|
6171
|
-
setupPaymentUpsertLicenseThresholdBillingOutboundSchema,
|
|
6172
|
-
z16.undefined()
|
|
6173
|
-
]).optional().nullable(),
|
|
6174
|
-
feature_id: z16.string(),
|
|
6175
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6176
|
-
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6177
|
-
pooled: z16.boolean(),
|
|
6178
|
-
reset: z16.union([setupPaymentUpsertLicenseResetOutboundSchema, z16.undefined()]).optional(),
|
|
6179
|
-
price: z16.union([setupPaymentUpsertLicensePriceOutboundSchema, z16.undefined()]).optional(),
|
|
6180
|
-
proration: z16.union([setupPaymentUpsertLicenseProrationOutboundSchema, z16.undefined()]).optional(),
|
|
6181
|
-
rollover: z16.union([setupPaymentUpsertLicenseRolloverOutboundSchema, z16.undefined()]).optional(),
|
|
6182
|
-
feature_override: z16.union([
|
|
6183
|
-
setupPaymentUpsertLicenseFeatureOverrideOutboundSchema,
|
|
6184
|
-
z16.undefined()
|
|
6185
|
-
]).optional()
|
|
6186
|
-
});
|
|
6187
|
-
var setupPaymentUpsertLicenseIntervalUnionOutboundSchema = z16.union([
|
|
6188
|
-
z16.string(),
|
|
6189
|
-
z16.string()
|
|
6190
|
-
]);
|
|
6191
|
-
var setupPaymentUpsertLicensePlanItemFilterOutboundSchema = z16.object({
|
|
6192
|
-
feature_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6193
|
-
billing_method: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6194
|
-
interval: z16.union([z16.string(), z16.string(), z16.undefined()]).optional(),
|
|
6195
|
-
interval_count: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6196
|
-
included: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6197
|
-
});
|
|
6198
|
-
var setupPaymentUpsertLicenseCustomizeOutboundSchema = z16.object({
|
|
6199
|
-
price: z16.union([setupPaymentUpsertLicenseBasePriceOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
6200
|
-
add_items: z16.union([
|
|
6201
|
-
z16.array(setupPaymentUpsertLicensePlanItemOutboundSchema),
|
|
6202
|
-
z16.undefined()
|
|
6203
|
-
]).optional(),
|
|
6204
|
-
remove_items: z16.union([
|
|
6205
|
-
z16.array(setupPaymentUpsertLicensePlanItemFilterOutboundSchema),
|
|
6206
|
-
z16.undefined()
|
|
6207
|
-
]).optional()
|
|
6208
|
-
});
|
|
6209
|
-
var setupPaymentUpsertLicenseOutboundSchema = z16.object({
|
|
6210
|
-
license_plan_id: z16.string(),
|
|
6211
|
-
version_slug: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6212
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6213
|
-
prepaid_only: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6214
|
-
customize: z16.union([setupPaymentUpsertLicenseCustomizeOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
6215
|
-
metadata: z16.union([z16.record(z16.string(), z16.any()), z16.undefined()]).optional()
|
|
6216
|
-
});
|
|
6217
|
-
var setupPaymentRemoveLicenseOutboundSchema = z16.object({
|
|
6218
|
-
license_plan_id: z16.string()
|
|
6219
|
-
});
|
|
6220
|
-
var setupPaymentCustomizeOutboundSchema = z16.object({
|
|
6221
|
-
price: z16.union([setupPaymentBasePriceOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
6222
|
-
items: z16.union([z16.array(setupPaymentItemPlanItemOutboundSchema), z16.undefined()]).optional(),
|
|
6223
|
-
add_items: z16.union([z16.array(setupPaymentAddItemPlanItemOutboundSchema), z16.undefined()]).optional(),
|
|
6224
|
-
remove_items: z16.union([z16.array(setupPaymentPlanItemFilterOutboundSchema), z16.undefined()]).optional(),
|
|
6225
|
-
free_trial: z16.union([setupPaymentCustomizeFreeTrialParamsOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
6226
|
-
billing_controls: z16.union([setupPaymentBillingControlsOutboundSchema, z16.undefined()]).optional(),
|
|
6227
|
-
upsert_licenses: z16.union([z16.array(setupPaymentUpsertLicenseOutboundSchema), z16.undefined()]).optional(),
|
|
6228
|
-
remove_licenses: z16.union([z16.array(setupPaymentRemoveLicenseOutboundSchema), z16.undefined()]).optional()
|
|
6229
|
-
});
|
|
6230
|
-
var setupPaymentAttachDiscountOutboundSchema = z16.object({
|
|
6231
|
-
reward_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6232
|
-
promotion_code: z16.union([z16.string(), z16.undefined()]).optional()
|
|
6233
|
-
});
|
|
6234
|
-
var setupPaymentBillingCycleAnchorOutboundSchema = z16.union([
|
|
6235
|
-
z16.string(),
|
|
6236
|
-
z16.number()
|
|
6237
|
-
]);
|
|
6238
|
-
var setupPaymentCustomLineItemOutboundSchema = z16.object({
|
|
6239
|
-
amount: z16.number(),
|
|
6240
|
-
description: z16.string()
|
|
6241
|
-
});
|
|
6242
|
-
var setupPaymentCarryOverBalancesOutboundSchema = z16.object({
|
|
6243
|
-
enabled: z16.boolean(),
|
|
6244
|
-
feature_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
6245
|
-
});
|
|
6246
|
-
var setupPaymentCarryOverUsagesOutboundSchema = z16.object({
|
|
6247
|
-
enabled: z16.boolean(),
|
|
6248
|
-
feature_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
6249
|
-
});
|
|
6250
|
-
var setupPaymentLicenseQuantityOutboundSchema = z16.object({
|
|
6251
|
-
license_plan_id: z16.string(),
|
|
6252
|
-
quantity: z16.number()
|
|
6253
|
-
});
|
|
6254
|
-
var setupPaymentParamsOutboundSchema = z16.object({
|
|
6255
|
-
customer_id: z16.string(),
|
|
6256
|
-
entity_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6257
|
-
plan_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6258
|
-
feature_quantities: z16.union([z16.array(setupPaymentFeatureQuantityOutboundSchema), z16.undefined()]).optional(),
|
|
6259
|
-
version: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6260
|
-
free_trial: z16.union([setupPaymentFreeTrialParamsOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
6261
|
-
customize: z16.union([setupPaymentCustomizeOutboundSchema, z16.undefined()]).optional(),
|
|
6262
|
-
proration_behavior: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6263
|
-
subscription_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6264
|
-
discounts: z16.union([z16.array(setupPaymentAttachDiscountOutboundSchema), z16.undefined()]).optional(),
|
|
6265
|
-
success_url: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6266
|
-
billing_cycle_anchor: z16.union([z16.string(), z16.number(), z16.undefined()]).optional(),
|
|
6267
|
-
starts_at: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6268
|
-
ends_at: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6269
|
-
checkout_session_params: z16.union([z16.record(z16.string(), z16.any()), z16.undefined()]).optional(),
|
|
6270
|
-
custom_line_items: z16.union([z16.array(setupPaymentCustomLineItemOutboundSchema), z16.undefined()]).optional(),
|
|
6271
|
-
processor_subscription_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6272
|
-
carry_over_balances: z16.union([setupPaymentCarryOverBalancesOutboundSchema, z16.undefined()]).optional(),
|
|
6273
|
-
carry_over_usages: z16.union([setupPaymentCarryOverUsagesOutboundSchema, z16.undefined()]).optional(),
|
|
6274
|
-
license_quantities: z16.union([z16.array(setupPaymentLicenseQuantityOutboundSchema), z16.undefined()]).optional(),
|
|
6275
|
-
metadata: z16.union([z16.record(z16.string(), z16.string()), z16.undefined()]).optional(),
|
|
6276
|
-
no_billing_changes: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6277
|
-
enable_plan_immediately: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6278
|
-
tax_rate_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6279
|
-
currency: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6280
|
-
remove_plan_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
6281
|
-
});
|
|
6282
|
-
var closedEnumSchema11 = z16.any();
|
|
6283
|
-
var setupPaymentDurationTypeSchema = closedEnumSchema11;
|
|
6284
|
-
var setupPaymentOnEndSchema = closedEnumSchema11;
|
|
6285
|
-
var setupPaymentFreeTrialParamsSchema = z16.object({
|
|
6286
|
-
durationLength: z16.number(),
|
|
6287
|
-
durationType: z16.union([setupPaymentDurationTypeSchema, z16.undefined()]).optional(),
|
|
6288
|
-
cardRequired: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6289
|
-
onEnd: z16.union([setupPaymentOnEndSchema, z16.undefined()]).optional()
|
|
6290
|
-
});
|
|
6291
|
-
var setupPaymentPriceIntervalSchema = closedEnumSchema11;
|
|
6292
|
-
var setupPaymentBasePriceSchema = z16.object({
|
|
6293
|
-
amount: z16.number(),
|
|
6294
|
-
interval: setupPaymentPriceIntervalSchema,
|
|
6295
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6296
|
-
additionalCurrencies: z16.union([z16.array(setupPaymentAdditionalCurrencySchema), z16.undefined()]).optional()
|
|
6297
|
-
});
|
|
6298
|
-
var setupPaymentItemResetIntervalSchema = closedEnumSchema11;
|
|
6299
|
-
var setupPaymentItemResetSchema = z16.object({
|
|
6300
|
-
interval: setupPaymentItemResetIntervalSchema,
|
|
6301
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6302
|
-
});
|
|
6303
|
-
var setupPaymentItemTierBehaviorSchema = closedEnumSchema11;
|
|
6304
|
-
var setupPaymentItemPriceIntervalSchema = closedEnumSchema11;
|
|
6305
|
-
var setupPaymentItemBillingMethodSchema = closedEnumSchema11;
|
|
6306
|
-
var setupPaymentItemPriceSchema = z16.object({
|
|
6307
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6308
|
-
additionalCurrencies: z16.union([z16.array(setupPaymentItemAdditionalCurrencySchema), z16.undefined()]).optional(),
|
|
6309
|
-
tiers: z16.union([z16.array(setupPaymentItemPriceTierSchema), z16.undefined()]).optional(),
|
|
6310
|
-
tierBehavior: z16.union([setupPaymentItemTierBehaviorSchema, z16.undefined()]).optional(),
|
|
6311
|
-
interval: setupPaymentItemPriceIntervalSchema,
|
|
6312
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6313
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6314
|
-
billingMethod: setupPaymentItemBillingMethodSchema,
|
|
6315
|
-
maxPurchase: z16.union([z16.number(), z16.undefined()]).optional().nullable()
|
|
6316
|
-
});
|
|
6317
|
-
var setupPaymentItemOnIncreaseSchema = closedEnumSchema11;
|
|
6318
|
-
var setupPaymentItemOnDecreaseSchema = closedEnumSchema11;
|
|
6319
|
-
var setupPaymentItemProrationSchema = z16.object({
|
|
6320
|
-
onIncrease: setupPaymentItemOnIncreaseSchema,
|
|
6321
|
-
onDecrease: setupPaymentItemOnDecreaseSchema
|
|
6322
|
-
});
|
|
6323
|
-
var setupPaymentItemExpiryDurationTypeSchema = closedEnumSchema11;
|
|
6324
|
-
var setupPaymentItemRolloverSchema = z16.object({
|
|
6325
|
-
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6326
|
-
maxPercentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6327
|
-
expiryDurationType: setupPaymentItemExpiryDurationTypeSchema,
|
|
6328
|
-
expiryDurationLength: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6329
|
-
});
|
|
6330
|
-
var setupPaymentDimensionsToItemEnum2Schema = closedEnumSchema11;
|
|
6331
|
-
var setupPaymentDimensionsItemToUnion2Schema = z16.union([
|
|
6332
|
-
z16.number(),
|
|
6333
|
-
setupPaymentDimensionsToItemEnum2Schema
|
|
6334
|
-
]);
|
|
6335
|
-
var setupPaymentDimensionsItemTier2Schema = z16.object({
|
|
6336
|
-
to: z16.union([z16.number(), setupPaymentDimensionsToItemEnum2Schema]),
|
|
6337
|
-
creditCost: z16.number()
|
|
6338
|
-
});
|
|
6339
|
-
var setupPaymentDimensionsItem3Schema = z16.object({
|
|
6340
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6341
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6342
|
-
tierBehavior: z16.literal("graduated"),
|
|
6343
|
-
tiers: z16.array(setupPaymentDimensionsItemTier2Schema)
|
|
6344
|
-
});
|
|
6345
|
-
var setupPaymentItemDimensionsUnion2Schema = z16.union([
|
|
6346
|
-
setupPaymentDimensionsItem3Schema,
|
|
6347
|
-
setupPaymentDimensionsItem4Schema
|
|
6348
|
-
]);
|
|
6349
|
-
var setupPaymentCreditSchemaItem2Schema = z16.object({
|
|
6350
|
-
meteredFeatureId: z16.string(),
|
|
6351
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6352
|
-
dimensions: z16.union([
|
|
6353
|
-
z16.record(
|
|
6354
|
-
z16.string(),
|
|
6355
|
-
z16.union([
|
|
6356
|
-
setupPaymentDimensionsItem3Schema,
|
|
6357
|
-
setupPaymentDimensionsItem4Schema
|
|
6358
|
-
])
|
|
6359
|
-
),
|
|
6360
|
-
z16.undefined()
|
|
6361
|
-
]).optional(),
|
|
6362
|
-
multipliers: z16.union([
|
|
6363
|
-
z16.record(z16.string(), setupPaymentItemMultipliers2Schema),
|
|
6364
|
-
z16.undefined()
|
|
6365
|
-
]).optional(),
|
|
6366
|
-
creditCost: z16.number()
|
|
6367
|
-
});
|
|
6368
|
-
var setupPaymentDimensionsToItemEnum1Schema = closedEnumSchema11;
|
|
6369
|
-
var setupPaymentDimensionsItemToUnion1Schema = z16.union([
|
|
6370
|
-
z16.number(),
|
|
6371
|
-
setupPaymentDimensionsToItemEnum1Schema
|
|
6372
|
-
]);
|
|
6373
|
-
var setupPaymentDimensionsItemTier1Schema = z16.object({
|
|
6374
|
-
to: z16.union([z16.number(), setupPaymentDimensionsToItemEnum1Schema]),
|
|
6375
|
-
creditCost: z16.number()
|
|
6376
|
-
});
|
|
6377
|
-
var setupPaymentDimensionsItem1Schema = z16.object({
|
|
6378
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6379
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6380
|
-
tierBehavior: z16.literal("graduated"),
|
|
6381
|
-
tiers: z16.array(setupPaymentDimensionsItemTier1Schema)
|
|
6382
|
-
});
|
|
6383
|
-
var setupPaymentItemDimensionsUnion1Schema = z16.union([
|
|
6384
|
-
setupPaymentDimensionsItem1Schema,
|
|
6385
|
-
setupPaymentDimensionsItem2Schema
|
|
6386
|
-
]);
|
|
6387
|
-
var setupPaymentToItemEnumSchema = closedEnumSchema11;
|
|
6388
|
-
var setupPaymentItemFeatureOverrideToUnionSchema = z16.union([
|
|
6389
|
-
z16.number(),
|
|
6390
|
-
setupPaymentToItemEnumSchema
|
|
6391
|
-
]);
|
|
6392
|
-
var setupPaymentItemFeatureOverrideTierSchema = z16.object({
|
|
6393
|
-
to: z16.union([z16.number(), setupPaymentToItemEnumSchema]),
|
|
6394
|
-
creditCost: z16.number()
|
|
6395
|
-
});
|
|
6396
|
-
var setupPaymentCreditSchemaItem1Schema = z16.object({
|
|
6397
|
-
meteredFeatureId: z16.string(),
|
|
6398
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6399
|
-
dimensions: z16.union([
|
|
6400
|
-
z16.record(
|
|
6401
|
-
z16.string(),
|
|
6402
|
-
z16.union([
|
|
6403
|
-
setupPaymentDimensionsItem1Schema,
|
|
6404
|
-
setupPaymentDimensionsItem2Schema
|
|
6405
|
-
])
|
|
6406
|
-
),
|
|
6407
|
-
z16.undefined()
|
|
6408
|
-
]).optional(),
|
|
6409
|
-
multipliers: z16.union([
|
|
6410
|
-
z16.record(z16.string(), setupPaymentItemMultipliers1Schema),
|
|
6411
|
-
z16.undefined()
|
|
6412
|
-
]).optional(),
|
|
6413
|
-
tierBehavior: z16.literal("graduated"),
|
|
6414
|
-
tiers: z16.array(setupPaymentItemFeatureOverrideTierSchema)
|
|
6415
|
-
});
|
|
6416
|
-
var setupPaymentItemCreditSchemaUnionSchema = z16.union([
|
|
6417
|
-
setupPaymentCreditSchemaItem1Schema,
|
|
6418
|
-
setupPaymentCreditSchemaItem2Schema
|
|
6419
|
-
]);
|
|
6420
|
-
var setupPaymentItemFeatureOverrideSchema = z16.object({
|
|
6421
|
-
creditSchema: z16.union([
|
|
6422
|
-
z16.array(
|
|
6423
|
-
z16.union([
|
|
6424
|
-
setupPaymentCreditSchemaItem1Schema,
|
|
6425
|
-
setupPaymentCreditSchemaItem2Schema
|
|
6426
|
-
])
|
|
6427
|
-
),
|
|
6428
|
-
z16.undefined()
|
|
6429
|
-
]).optional(),
|
|
6430
|
-
markups: z16.union([setupPaymentItemMarkupsSchema, z16.undefined()]).optional()
|
|
6431
|
-
});
|
|
6432
|
-
var setupPaymentItemPlanItemSchema = z16.object({
|
|
6433
|
-
thresholdBilling: z16.union([setupPaymentItemThresholdBillingSchema, z16.undefined()]).optional().nullable(),
|
|
6434
|
-
featureId: z16.string(),
|
|
6435
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6436
|
-
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6437
|
-
pooled: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6438
|
-
reset: z16.union([setupPaymentItemResetSchema, z16.undefined()]).optional(),
|
|
6439
|
-
price: z16.union([setupPaymentItemPriceSchema, z16.undefined()]).optional(),
|
|
6440
|
-
proration: z16.union([setupPaymentItemProrationSchema, z16.undefined()]).optional(),
|
|
6441
|
-
rollover: z16.union([setupPaymentItemRolloverSchema, z16.undefined()]).optional(),
|
|
6442
|
-
featureOverride: z16.union([setupPaymentItemFeatureOverrideSchema, z16.undefined()]).optional()
|
|
6443
|
-
});
|
|
6444
|
-
var setupPaymentAddItemResetIntervalSchema = closedEnumSchema11;
|
|
6445
|
-
var setupPaymentAddItemResetSchema = z16.object({
|
|
6446
|
-
interval: setupPaymentAddItemResetIntervalSchema,
|
|
6447
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6448
|
-
});
|
|
6449
|
-
var setupPaymentAddItemTierBehaviorSchema = closedEnumSchema11;
|
|
6450
|
-
var setupPaymentAddItemPriceIntervalSchema = closedEnumSchema11;
|
|
6451
|
-
var setupPaymentAddItemBillingMethodSchema = closedEnumSchema11;
|
|
6452
|
-
var setupPaymentAddItemPriceSchema = z16.object({
|
|
6453
|
-
amount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6454
|
-
additionalCurrencies: z16.union([
|
|
6455
|
-
z16.array(setupPaymentAddItemAdditionalCurrencySchema),
|
|
6456
|
-
z16.undefined()
|
|
6457
|
-
]).optional(),
|
|
6458
|
-
tiers: z16.union([z16.array(setupPaymentAddItemPriceTierSchema), z16.undefined()]).optional(),
|
|
6459
|
-
tierBehavior: z16.union([setupPaymentAddItemTierBehaviorSchema, z16.undefined()]).optional(),
|
|
6460
|
-
interval: setupPaymentAddItemPriceIntervalSchema,
|
|
6461
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6462
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6463
|
-
billingMethod: setupPaymentAddItemBillingMethodSchema,
|
|
6464
|
-
maxPurchase: z16.union([z16.number(), z16.undefined()]).optional().nullable()
|
|
6465
|
-
});
|
|
6466
|
-
var setupPaymentAddItemOnIncreaseSchema = closedEnumSchema11;
|
|
6467
|
-
var setupPaymentAddItemOnDecreaseSchema = closedEnumSchema11;
|
|
6468
|
-
var setupPaymentAddItemProrationSchema = z16.object({
|
|
6469
|
-
onIncrease: setupPaymentAddItemOnIncreaseSchema,
|
|
6470
|
-
onDecrease: setupPaymentAddItemOnDecreaseSchema
|
|
6471
|
-
});
|
|
6472
|
-
var setupPaymentAddItemExpiryDurationTypeSchema = closedEnumSchema11;
|
|
6473
|
-
var setupPaymentAddItemRolloverSchema = z16.object({
|
|
6474
|
-
max: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6475
|
-
maxPercentage: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6476
|
-
expiryDurationType: setupPaymentAddItemExpiryDurationTypeSchema,
|
|
6477
|
-
expiryDurationLength: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6478
|
-
});
|
|
6479
|
-
var setupPaymentDimensionsToAddItemEnum2Schema = closedEnumSchema11;
|
|
6480
|
-
var setupPaymentDimensionsAddItemToUnion2Schema = z16.union([
|
|
6481
|
-
z16.number(),
|
|
6482
|
-
setupPaymentDimensionsToAddItemEnum2Schema
|
|
6483
|
-
]);
|
|
6484
|
-
var setupPaymentDimensionsAddItemTier2Schema = z16.object({
|
|
6485
|
-
to: z16.union([z16.number(), setupPaymentDimensionsToAddItemEnum2Schema]),
|
|
6486
|
-
creditCost: z16.number()
|
|
6487
|
-
});
|
|
6488
|
-
var setupPaymentDimensionsAddItem3Schema = z16.object({
|
|
6489
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6490
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6491
|
-
tierBehavior: z16.literal("graduated"),
|
|
6492
|
-
tiers: z16.array(setupPaymentDimensionsAddItemTier2Schema)
|
|
6493
|
-
});
|
|
6494
|
-
var setupPaymentAddItemDimensionsUnion2Schema = z16.union([
|
|
6495
|
-
setupPaymentDimensionsAddItem3Schema,
|
|
6496
|
-
setupPaymentDimensionsAddItem4Schema
|
|
6497
|
-
]);
|
|
6498
|
-
var setupPaymentCreditSchemaAddItem2Schema = z16.object({
|
|
6499
|
-
meteredFeatureId: z16.string(),
|
|
6500
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6501
|
-
dimensions: z16.union([
|
|
6502
|
-
z16.record(
|
|
6503
|
-
z16.string(),
|
|
6504
|
-
z16.union([
|
|
6505
|
-
setupPaymentDimensionsAddItem3Schema,
|
|
6506
|
-
setupPaymentDimensionsAddItem4Schema
|
|
6507
|
-
])
|
|
6508
|
-
),
|
|
6509
|
-
z16.undefined()
|
|
6510
|
-
]).optional(),
|
|
6511
|
-
multipliers: z16.union([
|
|
6512
|
-
z16.record(z16.string(), setupPaymentAddItemMultipliers2Schema),
|
|
6513
|
-
z16.undefined()
|
|
6514
|
-
]).optional(),
|
|
6515
|
-
creditCost: z16.number()
|
|
6516
|
-
});
|
|
6517
|
-
var setupPaymentDimensionsToAddItemEnum1Schema = closedEnumSchema11;
|
|
6518
|
-
var setupPaymentDimensionsAddItemToUnion1Schema = z16.union([
|
|
6519
|
-
z16.number(),
|
|
6520
|
-
setupPaymentDimensionsToAddItemEnum1Schema
|
|
6521
|
-
]);
|
|
6522
|
-
var setupPaymentDimensionsAddItemTier1Schema = z16.object({
|
|
6523
|
-
to: z16.union([z16.number(), setupPaymentDimensionsToAddItemEnum1Schema]),
|
|
6524
|
-
creditCost: z16.number()
|
|
6525
|
-
});
|
|
6526
|
-
var setupPaymentDimensionsAddItem1Schema = z16.object({
|
|
6527
|
-
match: z16.record(z16.string(), z16.union([z16.string(), z16.number(), z16.boolean()])),
|
|
6528
|
-
priority: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6529
|
-
tierBehavior: z16.literal("graduated"),
|
|
6530
|
-
tiers: z16.array(setupPaymentDimensionsAddItemTier1Schema)
|
|
6531
|
-
});
|
|
6532
|
-
var setupPaymentAddItemDimensionsUnion1Schema = z16.union([
|
|
6533
|
-
setupPaymentDimensionsAddItem1Schema,
|
|
6534
|
-
setupPaymentDimensionsAddItem2Schema
|
|
6535
|
-
]);
|
|
6536
|
-
var setupPaymentToAddItemEnumSchema = closedEnumSchema11;
|
|
6537
|
-
var setupPaymentAddItemFeatureOverrideToUnionSchema = z16.union([
|
|
6538
|
-
z16.number(),
|
|
6539
|
-
setupPaymentToAddItemEnumSchema
|
|
6540
|
-
]);
|
|
6541
|
-
var setupPaymentAddItemFeatureOverrideTierSchema = z16.object({
|
|
6542
|
-
to: z16.union([z16.number(), setupPaymentToAddItemEnumSchema]),
|
|
6543
|
-
creditCost: z16.number()
|
|
6544
|
-
});
|
|
6545
|
-
var setupPaymentCreditSchemaAddItem1Schema = z16.object({
|
|
6546
|
-
meteredFeatureId: z16.string(),
|
|
6547
|
-
billingUnits: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6548
|
-
dimensions: z16.union([
|
|
6549
|
-
z16.record(
|
|
6550
|
-
z16.string(),
|
|
6551
|
-
z16.union([
|
|
6552
|
-
setupPaymentDimensionsAddItem1Schema,
|
|
6553
|
-
setupPaymentDimensionsAddItem2Schema
|
|
6554
|
-
])
|
|
6555
|
-
),
|
|
6556
|
-
z16.undefined()
|
|
6557
|
-
]).optional(),
|
|
6558
|
-
multipliers: z16.union([
|
|
6559
|
-
z16.record(z16.string(), setupPaymentAddItemMultipliers1Schema),
|
|
6560
|
-
z16.undefined()
|
|
6561
|
-
]).optional(),
|
|
6562
|
-
tierBehavior: z16.literal("graduated"),
|
|
6563
|
-
tiers: z16.array(setupPaymentAddItemFeatureOverrideTierSchema)
|
|
6564
|
-
});
|
|
6565
|
-
var setupPaymentAddItemCreditSchemaUnionSchema = z16.union([
|
|
6566
|
-
setupPaymentCreditSchemaAddItem1Schema,
|
|
6567
|
-
setupPaymentCreditSchemaAddItem2Schema
|
|
6568
|
-
]);
|
|
6569
|
-
var setupPaymentAddItemFeatureOverrideSchema = z16.object({
|
|
6570
|
-
creditSchema: z16.union([
|
|
6571
|
-
z16.array(
|
|
6572
|
-
z16.union([
|
|
6573
|
-
setupPaymentCreditSchemaAddItem1Schema,
|
|
6574
|
-
setupPaymentCreditSchemaAddItem2Schema
|
|
6575
|
-
])
|
|
6576
|
-
),
|
|
6577
|
-
z16.undefined()
|
|
6578
|
-
]).optional(),
|
|
6579
|
-
markups: z16.union([setupPaymentAddItemMarkupsSchema, z16.undefined()]).optional()
|
|
6580
|
-
});
|
|
6581
|
-
var setupPaymentAddItemPlanItemSchema = z16.object({
|
|
6582
|
-
thresholdBilling: z16.union([setupPaymentAddItemThresholdBillingSchema, z16.undefined()]).optional().nullable(),
|
|
6583
|
-
featureId: z16.string(),
|
|
6584
|
-
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6585
|
-
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6586
|
-
pooled: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6587
|
-
reset: z16.union([setupPaymentAddItemResetSchema, z16.undefined()]).optional(),
|
|
6588
|
-
price: z16.union([setupPaymentAddItemPriceSchema, z16.undefined()]).optional(),
|
|
6589
|
-
proration: z16.union([setupPaymentAddItemProrationSchema, z16.undefined()]).optional(),
|
|
6590
|
-
rollover: z16.union([setupPaymentAddItemRolloverSchema, z16.undefined()]).optional(),
|
|
6591
|
-
featureOverride: z16.union([setupPaymentAddItemFeatureOverrideSchema, z16.undefined()]).optional()
|
|
6592
|
-
});
|
|
6593
|
-
var setupPaymentRemoveItemBillingMethodSchema = closedEnumSchema11;
|
|
6594
|
-
var setupPaymentIntervalRemoveItemEnum2Schema = closedEnumSchema11;
|
|
6595
|
-
var setupPaymentIntervalRemoveItemEnum1Schema = closedEnumSchema11;
|
|
6596
|
-
var setupPaymentIntervalUnionSchema = z16.union([
|
|
6597
|
-
setupPaymentIntervalRemoveItemEnum1Schema,
|
|
6598
|
-
setupPaymentIntervalRemoveItemEnum2Schema
|
|
6599
|
-
]);
|
|
6600
|
-
var setupPaymentPlanItemFilterSchema = z16.object({
|
|
6601
|
-
featureId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6602
|
-
billingMethod: z16.union([setupPaymentRemoveItemBillingMethodSchema, z16.undefined()]).optional(),
|
|
6603
|
-
interval: z16.union([
|
|
6604
|
-
setupPaymentIntervalRemoveItemEnum1Schema,
|
|
6605
|
-
setupPaymentIntervalRemoveItemEnum2Schema,
|
|
5467
|
+
setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
|
|
5468
|
+
setupPaymentCreditSchemaUpsertLicense2OutboundSchema
|
|
5469
|
+
])
|
|
5470
|
+
),
|
|
6606
5471
|
z16.undefined()
|
|
6607
5472
|
]).optional(),
|
|
6608
|
-
|
|
5473
|
+
markups: z16.union([setupPaymentUpsertLicenseMarkupsOutboundSchema, z16.undefined()]).optional()
|
|
5474
|
+
});
|
|
5475
|
+
var setupPaymentUpsertLicenseIntervalUnionOutboundSchema = z16.union([
|
|
5476
|
+
z16.string(),
|
|
5477
|
+
z16.string()
|
|
5478
|
+
]);
|
|
5479
|
+
var setupPaymentUpsertLicensePlanItemFilterOutboundSchema = z16.object({
|
|
5480
|
+
feature_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5481
|
+
billing_method: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5482
|
+
interval: z16.union([z16.string(), z16.string(), z16.undefined()]).optional(),
|
|
5483
|
+
interval_count: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6609
5484
|
included: z16.union([z16.number(), z16.undefined()]).optional()
|
|
6610
5485
|
});
|
|
6611
|
-
var
|
|
6612
|
-
|
|
6613
|
-
var setupPaymentCustomizeFreeTrialParamsSchema = z16.object({
|
|
6614
|
-
durationLength: z16.number(),
|
|
6615
|
-
durationType: z16.union([setupPaymentCustomizeDurationTypeSchema, z16.undefined()]).optional(),
|
|
6616
|
-
cardRequired: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6617
|
-
onEnd: z16.union([setupPaymentCustomizeOnEndSchema, z16.undefined()]).optional()
|
|
6618
|
-
});
|
|
6619
|
-
var setupPaymentAutoTopupIntervalSchema = closedEnumSchema11;
|
|
6620
|
-
var setupPaymentPurchaseLimitSchema = z16.object({
|
|
6621
|
-
interval: setupPaymentAutoTopupIntervalSchema,
|
|
6622
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6623
|
-
limit: z16.number(),
|
|
6624
|
-
count: z16.union([z16.number(), z16.undefined()]).optional()
|
|
5486
|
+
var setupPaymentRemoveLicenseOutboundSchema = z16.object({
|
|
5487
|
+
license_plan_id: z16.string()
|
|
6625
5488
|
});
|
|
6626
|
-
var
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
var
|
|
6635
|
-
var setupPaymentSpendLimitSchema = z16.object({
|
|
6636
|
-
featureId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6637
|
-
enabled: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6638
|
-
limitType: z16.union([setupPaymentLimitTypeSchema, z16.undefined()]).optional(),
|
|
6639
|
-
overageLimit: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6640
|
-
skipOverageBilling: z16.union([z16.boolean(), z16.undefined()]).optional()
|
|
6641
|
-
});
|
|
6642
|
-
var setupPaymentUsageLimitIntervalSchema = closedEnumSchema11;
|
|
6643
|
-
var setupPaymentAnchorSchema = closedEnumSchema11;
|
|
6644
|
-
var setupPaymentUsageLimitSchema = z16.object({
|
|
6645
|
-
featureId: z16.string(),
|
|
6646
|
-
enabled: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6647
|
-
limit: z16.number(),
|
|
6648
|
-
interval: setupPaymentUsageLimitIntervalSchema,
|
|
6649
|
-
anchor: z16.union([setupPaymentAnchorSchema, z16.undefined()]).optional(),
|
|
6650
|
-
filter: z16.union([setupPaymentUsageLimitFilterSchema, z16.undefined()]).optional()
|
|
6651
|
-
});
|
|
6652
|
-
var setupPaymentThresholdTypeSchema = closedEnumSchema11;
|
|
6653
|
-
var setupPaymentBasisSchema = closedEnumSchema11;
|
|
6654
|
-
var setupPaymentUsageAlertSchema = z16.object({
|
|
6655
|
-
featureId: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6656
|
-
enabled: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
6657
|
-
threshold: z16.number(),
|
|
6658
|
-
thresholdType: setupPaymentThresholdTypeSchema,
|
|
6659
|
-
basis: z16.union([setupPaymentBasisSchema, z16.undefined()]).optional(),
|
|
6660
|
-
filter: z16.union([setupPaymentUsageAlertFilterSchema, z16.undefined()]).optional(),
|
|
6661
|
-
name: z16.union([z16.string(), z16.undefined()]).optional()
|
|
6662
|
-
});
|
|
6663
|
-
var setupPaymentBillingControlsSchema = z16.object({
|
|
6664
|
-
autoTopups: z16.union([z16.array(setupPaymentAutoTopupSchema), z16.undefined()]).optional(),
|
|
6665
|
-
spendLimits: z16.union([z16.array(setupPaymentSpendLimitSchema), z16.undefined()]).optional(),
|
|
6666
|
-
usageLimits: z16.union([z16.array(setupPaymentUsageLimitSchema), z16.undefined()]).optional(),
|
|
6667
|
-
usageAlerts: z16.union([z16.array(setupPaymentUsageAlertSchema), z16.undefined()]).optional(),
|
|
6668
|
-
overageAllowed: z16.union([z16.array(setupPaymentOverageAllowedSchema), z16.undefined()]).optional()
|
|
6669
|
-
});
|
|
6670
|
-
var setupPaymentPriceUpsertLicenseIntervalSchema = closedEnumSchema11;
|
|
6671
|
-
var setupPaymentUpsertLicenseBasePriceSchema = z16.object({
|
|
5489
|
+
var setupPaymentAttachDiscountOutboundSchema = z16.object({
|
|
5490
|
+
reward_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5491
|
+
promotion_code: z16.union([z16.string(), z16.undefined()]).optional()
|
|
5492
|
+
});
|
|
5493
|
+
var setupPaymentBillingCycleAnchorOutboundSchema = z16.union([
|
|
5494
|
+
z16.string(),
|
|
5495
|
+
z16.number()
|
|
5496
|
+
]);
|
|
5497
|
+
var setupPaymentCustomLineItemOutboundSchema = z16.object({
|
|
6672
5498
|
amount: z16.number(),
|
|
6673
|
-
|
|
6674
|
-
intervalCount: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
6675
|
-
additionalCurrencies: z16.union([
|
|
6676
|
-
z16.array(setupPaymentUpsertLicenseAdditionalCurrencySchema),
|
|
6677
|
-
z16.undefined()
|
|
6678
|
-
]).optional()
|
|
5499
|
+
description: z16.string()
|
|
6679
5500
|
});
|
|
6680
|
-
var
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
var
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
var
|
|
6703
|
-
var
|
|
6704
|
-
var
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
var
|
|
6709
|
-
var
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
5501
|
+
var setupPaymentCarryOverBalancesOutboundSchema = z16.object({
|
|
5502
|
+
enabled: z16.boolean(),
|
|
5503
|
+
feature_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5504
|
+
});
|
|
5505
|
+
var setupPaymentCarryOverUsagesOutboundSchema = z16.object({
|
|
5506
|
+
enabled: z16.boolean(),
|
|
5507
|
+
feature_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5508
|
+
});
|
|
5509
|
+
var setupPaymentLicenseQuantityOutboundSchema = z16.object({
|
|
5510
|
+
license_plan_id: z16.string(),
|
|
5511
|
+
quantity: z16.number()
|
|
5512
|
+
});
|
|
5513
|
+
var closedEnumSchema11 = z16.any();
|
|
5514
|
+
var setupPaymentUpsertLicenseThresholdBillingSchema = z16.any();
|
|
5515
|
+
var setupPaymentUpsertLicenseResetSchema = z16.any();
|
|
5516
|
+
var setupPaymentUpsertLicensePriceSchema = z16.any();
|
|
5517
|
+
var setupPaymentUpsertLicenseProrationSchema = z16.any();
|
|
5518
|
+
var setupPaymentUpsertLicenseRolloverSchema = z16.any();
|
|
5519
|
+
var setupPaymentUpsertLicenseBasePriceSchema = z16.any();
|
|
5520
|
+
var setupPaymentBasePriceSchema = z16.any();
|
|
5521
|
+
var setupPaymentItemPlanItemSchema = z16.any();
|
|
5522
|
+
var setupPaymentAddItemPlanItemSchema = z16.any();
|
|
5523
|
+
var setupPaymentPlanItemFilterSchema = z16.any();
|
|
5524
|
+
var setupPaymentCustomizeFreeTrialParamsSchema = z16.any();
|
|
5525
|
+
var setupPaymentBillingControlsSchema = z16.any();
|
|
5526
|
+
var setupPaymentFeatureQuantitySchema = z16.any();
|
|
5527
|
+
var setupPaymentFreeTrialParamsSchema = z16.any();
|
|
5528
|
+
var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = z16.any();
|
|
5529
|
+
var setupPaymentUpsertLicenseResetOutboundSchema = z16.any();
|
|
5530
|
+
var setupPaymentUpsertLicensePriceOutboundSchema = z16.any();
|
|
5531
|
+
var setupPaymentUpsertLicenseProrationOutboundSchema = z16.any();
|
|
5532
|
+
var setupPaymentUpsertLicenseRolloverOutboundSchema = z16.any();
|
|
5533
|
+
var setupPaymentUpsertLicenseBasePriceOutboundSchema = z16.any();
|
|
5534
|
+
var setupPaymentBasePriceOutboundSchema = z16.any();
|
|
5535
|
+
var setupPaymentItemPlanItemOutboundSchema = z16.any();
|
|
5536
|
+
var setupPaymentAddItemPlanItemOutboundSchema = z16.any();
|
|
5537
|
+
var setupPaymentPlanItemFilterOutboundSchema = z16.any();
|
|
5538
|
+
var setupPaymentCustomizeFreeTrialParamsOutboundSchema = z16.any();
|
|
5539
|
+
var setupPaymentBillingControlsOutboundSchema = z16.any();
|
|
5540
|
+
var setupPaymentFeatureQuantityOutboundSchema = z16.any();
|
|
5541
|
+
var setupPaymentFreeTrialParamsOutboundSchema = z16.any();
|
|
5542
|
+
var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema11;
|
|
5543
|
+
var setupPaymentUpsertLicenseExpirySchema = z16.object({
|
|
5544
|
+
duration: setupPaymentUpsertLicenseDurationSchema,
|
|
5545
|
+
length: z16.number()
|
|
6714
5546
|
});
|
|
6715
5547
|
var setupPaymentDimensionsToUpsertLicenseEnum2Schema = closedEnumSchema11;
|
|
6716
5548
|
var setupPaymentDimensionsUpsertLicenseToUnion2Schema = z16.union([
|
|
@@ -6824,6 +5656,7 @@ var setupPaymentUpsertLicensePlanItemSchema = z16.object({
|
|
|
6824
5656
|
price: z16.union([setupPaymentUpsertLicensePriceSchema, z16.undefined()]).optional(),
|
|
6825
5657
|
proration: z16.union([setupPaymentUpsertLicenseProrationSchema, z16.undefined()]).optional(),
|
|
6826
5658
|
rollover: z16.union([setupPaymentUpsertLicenseRolloverSchema, z16.undefined()]).optional(),
|
|
5659
|
+
expiry: z16.union([setupPaymentUpsertLicenseExpirySchema, z16.undefined()]).optional(),
|
|
6827
5660
|
featureOverride: z16.union([setupPaymentUpsertLicenseFeatureOverrideSchema, z16.undefined()]).optional()
|
|
6828
5661
|
});
|
|
6829
5662
|
var setupPaymentUpsertLicenseRemoveItemBillingMethodSchema = closedEnumSchema11;
|
|
@@ -6902,9 +5735,100 @@ var setupPaymentParamsSchema = z16.object({
|
|
|
6902
5735
|
currency: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
6903
5736
|
removePlanIds: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
6904
5737
|
});
|
|
5738
|
+
var setupPaymentUpsertLicensePlanItemOutboundSchema = z16.object({
|
|
5739
|
+
threshold_billing: z16.union([
|
|
5740
|
+
setupPaymentUpsertLicenseThresholdBillingOutboundSchema,
|
|
5741
|
+
z16.undefined()
|
|
5742
|
+
]).optional().nullable(),
|
|
5743
|
+
feature_id: z16.string(),
|
|
5744
|
+
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5745
|
+
unlimited: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5746
|
+
pooled: z16.boolean(),
|
|
5747
|
+
reset: z16.union([setupPaymentUpsertLicenseResetOutboundSchema, z16.undefined()]).optional(),
|
|
5748
|
+
price: z16.union([setupPaymentUpsertLicensePriceOutboundSchema, z16.undefined()]).optional(),
|
|
5749
|
+
proration: z16.union([setupPaymentUpsertLicenseProrationOutboundSchema, z16.undefined()]).optional(),
|
|
5750
|
+
rollover: z16.union([setupPaymentUpsertLicenseRolloverOutboundSchema, z16.undefined()]).optional(),
|
|
5751
|
+
expiry: z16.union([setupPaymentUpsertLicenseExpiryOutboundSchema, z16.undefined()]).optional(),
|
|
5752
|
+
feature_override: z16.union([
|
|
5753
|
+
setupPaymentUpsertLicenseFeatureOverrideOutboundSchema,
|
|
5754
|
+
z16.undefined()
|
|
5755
|
+
]).optional()
|
|
5756
|
+
});
|
|
5757
|
+
var setupPaymentUpsertLicenseCustomizeOutboundSchema = z16.object({
|
|
5758
|
+
price: z16.union([setupPaymentUpsertLicenseBasePriceOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5759
|
+
add_items: z16.union([
|
|
5760
|
+
z16.array(setupPaymentUpsertLicensePlanItemOutboundSchema),
|
|
5761
|
+
z16.undefined()
|
|
5762
|
+
]).optional(),
|
|
5763
|
+
remove_items: z16.union([
|
|
5764
|
+
z16.array(setupPaymentUpsertLicensePlanItemFilterOutboundSchema),
|
|
5765
|
+
z16.undefined()
|
|
5766
|
+
]).optional()
|
|
5767
|
+
});
|
|
5768
|
+
var setupPaymentUpsertLicenseOutboundSchema = z16.object({
|
|
5769
|
+
license_plan_id: z16.string(),
|
|
5770
|
+
version_slug: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5771
|
+
included: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5772
|
+
prepaid_only: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5773
|
+
customize: z16.union([setupPaymentUpsertLicenseCustomizeOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5774
|
+
metadata: z16.union([z16.record(z16.string(), z16.any()), z16.undefined()]).optional()
|
|
5775
|
+
});
|
|
5776
|
+
var setupPaymentCustomizeOutboundSchema = z16.object({
|
|
5777
|
+
price: z16.union([setupPaymentBasePriceOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5778
|
+
items: z16.union([z16.array(setupPaymentItemPlanItemOutboundSchema), z16.undefined()]).optional(),
|
|
5779
|
+
add_items: z16.union([z16.array(setupPaymentAddItemPlanItemOutboundSchema), z16.undefined()]).optional(),
|
|
5780
|
+
remove_items: z16.union([z16.array(setupPaymentPlanItemFilterOutboundSchema), z16.undefined()]).optional(),
|
|
5781
|
+
free_trial: z16.union([setupPaymentCustomizeFreeTrialParamsOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5782
|
+
billing_controls: z16.union([setupPaymentBillingControlsOutboundSchema, z16.undefined()]).optional(),
|
|
5783
|
+
upsert_licenses: z16.union([z16.array(setupPaymentUpsertLicenseOutboundSchema), z16.undefined()]).optional(),
|
|
5784
|
+
remove_licenses: z16.union([z16.array(setupPaymentRemoveLicenseOutboundSchema), z16.undefined()]).optional()
|
|
5785
|
+
});
|
|
5786
|
+
var setupPaymentParamsOutboundSchema = z16.object({
|
|
5787
|
+
customer_id: z16.string(),
|
|
5788
|
+
entity_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5789
|
+
plan_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5790
|
+
feature_quantities: z16.union([z16.array(setupPaymentFeatureQuantityOutboundSchema), z16.undefined()]).optional(),
|
|
5791
|
+
version: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5792
|
+
free_trial: z16.union([setupPaymentFreeTrialParamsOutboundSchema, z16.undefined()]).optional().nullable(),
|
|
5793
|
+
customize: z16.union([setupPaymentCustomizeOutboundSchema, z16.undefined()]).optional(),
|
|
5794
|
+
proration_behavior: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5795
|
+
subscription_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5796
|
+
discounts: z16.union([z16.array(setupPaymentAttachDiscountOutboundSchema), z16.undefined()]).optional(),
|
|
5797
|
+
success_url: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5798
|
+
billing_cycle_anchor: z16.union([z16.string(), z16.number(), z16.undefined()]).optional(),
|
|
5799
|
+
starts_at: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5800
|
+
ends_at: z16.union([z16.number(), z16.undefined()]).optional(),
|
|
5801
|
+
checkout_session_params: z16.union([z16.record(z16.string(), z16.any()), z16.undefined()]).optional(),
|
|
5802
|
+
custom_line_items: z16.union([z16.array(setupPaymentCustomLineItemOutboundSchema), z16.undefined()]).optional(),
|
|
5803
|
+
processor_subscription_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5804
|
+
carry_over_balances: z16.union([setupPaymentCarryOverBalancesOutboundSchema, z16.undefined()]).optional(),
|
|
5805
|
+
carry_over_usages: z16.union([setupPaymentCarryOverUsagesOutboundSchema, z16.undefined()]).optional(),
|
|
5806
|
+
license_quantities: z16.union([z16.array(setupPaymentLicenseQuantityOutboundSchema), z16.undefined()]).optional(),
|
|
5807
|
+
metadata: z16.union([z16.record(z16.string(), z16.string()), z16.undefined()]).optional(),
|
|
5808
|
+
no_billing_changes: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5809
|
+
enable_plan_immediately: z16.union([z16.boolean(), z16.undefined()]).optional(),
|
|
5810
|
+
tax_rate_id: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5811
|
+
currency: z16.union([z16.string(), z16.undefined()]).optional(),
|
|
5812
|
+
remove_plan_ids: z16.union([z16.array(z16.string()), z16.undefined()]).optional()
|
|
5813
|
+
});
|
|
6905
5814
|
|
|
6906
5815
|
// src/generated/updateSubscriptionSchemas.ts
|
|
6907
5816
|
import { z as z17 } from "zod/v4";
|
|
5817
|
+
var billingUpdateDimensionsUpsertLicenseMatch4Schema = z17.union([
|
|
5818
|
+
z17.string(),
|
|
5819
|
+
z17.number(),
|
|
5820
|
+
z17.boolean()
|
|
5821
|
+
]);
|
|
5822
|
+
var billingUpdateDimensionsUpsertLicense4Schema = z17.object({
|
|
5823
|
+
match: z17.record(z17.string(), z17.union([z17.string(), z17.number(), z17.boolean()])),
|
|
5824
|
+
priority: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
5825
|
+
creditCost: z17.number()
|
|
5826
|
+
});
|
|
5827
|
+
var billingUpdateDimensionsUpsertLicenseMatch3Schema = z17.union([
|
|
5828
|
+
z17.string(),
|
|
5829
|
+
z17.number(),
|
|
5830
|
+
z17.boolean()
|
|
5831
|
+
]);
|
|
6908
5832
|
var billingUpdateUpsertLicenseMultipliersMatch2Schema = z17.union([
|
|
6909
5833
|
z17.string(),
|
|
6910
5834
|
z17.number(),
|
|
@@ -6973,6 +5897,10 @@ var billingUpdateAttachDiscountSchema = z17.object({
|
|
|
6973
5897
|
rewardId: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
6974
5898
|
promotionCode: z17.union([z17.string(), z17.undefined()]).optional()
|
|
6975
5899
|
});
|
|
5900
|
+
var billingUpdateCustomLineItemSchema = z17.object({
|
|
5901
|
+
amount: z17.number(),
|
|
5902
|
+
description: z17.string()
|
|
5903
|
+
});
|
|
6976
5904
|
var billingUpdateBillingCycleAnchorSchema = z17.union([
|
|
6977
5905
|
z17.string(),
|
|
6978
5906
|
z17.number()
|
|
@@ -6995,6 +5923,21 @@ var billingUpdateInvoiceSchema = z17.object({
|
|
|
6995
5923
|
currency: z17.string(),
|
|
6996
5924
|
hostedInvoiceUrl: z17.string().nullable()
|
|
6997
5925
|
});
|
|
5926
|
+
var billingUpdateUpsertLicenseExpiryOutboundSchema = z17.object({
|
|
5927
|
+
duration: z17.string(),
|
|
5928
|
+
length: z17.number()
|
|
5929
|
+
});
|
|
5930
|
+
var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = z17.union(
|
|
5931
|
+
[z17.string(), z17.number(), z17.boolean()]
|
|
5932
|
+
);
|
|
5933
|
+
var billingUpdateDimensionsUpsertLicense4OutboundSchema = z17.object({
|
|
5934
|
+
match: z17.record(z17.string(), z17.union([z17.string(), z17.number(), z17.boolean()])),
|
|
5935
|
+
priority: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
5936
|
+
credit_cost: z17.number()
|
|
5937
|
+
});
|
|
5938
|
+
var billingUpdateDimensionsUpsertLicenseMatch3OutboundSchema = z17.union(
|
|
5939
|
+
[z17.string(), z17.number(), z17.boolean()]
|
|
5940
|
+
);
|
|
6998
5941
|
var billingUpdateDimensionsUpsertLicenseToUnion2OutboundSchema = z17.union([z17.number(), z17.string()]);
|
|
6999
5942
|
var billingUpdateDimensionsUpsertLicenseTier2OutboundSchema = z17.object(
|
|
7000
5943
|
{
|
|
@@ -7002,12 +5945,46 @@ var billingUpdateDimensionsUpsertLicenseTier2OutboundSchema = z17.object(
|
|
|
7002
5945
|
credit_cost: z17.number()
|
|
7003
5946
|
}
|
|
7004
5947
|
);
|
|
5948
|
+
var billingUpdateDimensionsUpsertLicense3OutboundSchema = z17.object({
|
|
5949
|
+
match: z17.record(z17.string(), z17.union([z17.string(), z17.number(), z17.boolean()])),
|
|
5950
|
+
priority: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
5951
|
+
tier_behavior: z17.literal("graduated"),
|
|
5952
|
+
tiers: z17.array(billingUpdateDimensionsUpsertLicenseTier2OutboundSchema)
|
|
5953
|
+
});
|
|
5954
|
+
var billingUpdateUpsertLicenseDimensionsUnion2OutboundSchema = z17.union(
|
|
5955
|
+
[
|
|
5956
|
+
billingUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
5957
|
+
billingUpdateDimensionsUpsertLicense4OutboundSchema
|
|
5958
|
+
]
|
|
5959
|
+
);
|
|
7005
5960
|
var billingUpdateUpsertLicenseMultipliersMatch2OutboundSchema = z17.union([z17.string(), z17.number(), z17.boolean()]);
|
|
7006
5961
|
var billingUpdateUpsertLicenseMultipliers2OutboundSchema = z17.object({
|
|
7007
5962
|
match: z17.record(z17.string(), z17.union([z17.string(), z17.number(), z17.boolean()])),
|
|
7008
5963
|
factor: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
7009
5964
|
add: z17.union([z17.number(), z17.undefined()]).optional()
|
|
7010
5965
|
});
|
|
5966
|
+
var billingUpdateCreditSchemaUpsertLicense2OutboundSchema = z17.object({
|
|
5967
|
+
metered_feature_id: z17.string(),
|
|
5968
|
+
billing_units: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
5969
|
+
dimensions: z17.union([
|
|
5970
|
+
z17.record(
|
|
5971
|
+
z17.string(),
|
|
5972
|
+
z17.union([
|
|
5973
|
+
billingUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
5974
|
+
billingUpdateDimensionsUpsertLicense4OutboundSchema
|
|
5975
|
+
])
|
|
5976
|
+
),
|
|
5977
|
+
z17.undefined()
|
|
5978
|
+
]).optional(),
|
|
5979
|
+
multipliers: z17.union([
|
|
5980
|
+
z17.record(
|
|
5981
|
+
z17.string(),
|
|
5982
|
+
billingUpdateUpsertLicenseMultipliers2OutboundSchema
|
|
5983
|
+
),
|
|
5984
|
+
z17.undefined()
|
|
5985
|
+
]).optional(),
|
|
5986
|
+
credit_cost: z17.number()
|
|
5987
|
+
});
|
|
7011
5988
|
var billingUpdateDimensionsUpsertLicenseMatch2OutboundSchema = z17.union(
|
|
7012
5989
|
[z17.string(), z17.number(), z17.boolean()]
|
|
7013
5990
|
);
|
|
@@ -7072,6 +6049,10 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = z17.object({
|
|
|
7072
6049
|
tier_behavior: z17.literal("graduated"),
|
|
7073
6050
|
tiers: z17.array(billingUpdateUpsertLicenseFeatureOverrideTierOutboundSchema)
|
|
7074
6051
|
});
|
|
6052
|
+
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z17.union([
|
|
6053
|
+
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
6054
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
6055
|
+
]);
|
|
7075
6056
|
var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = z17.object(
|
|
7076
6057
|
{
|
|
7077
6058
|
markup: z17.number()
|
|
@@ -7099,6 +6080,20 @@ var billingUpdateUpsertLicenseMarkupsOutboundSchema = z17.object({
|
|
|
7099
6080
|
z17.undefined()
|
|
7100
6081
|
]).optional().nullable()
|
|
7101
6082
|
});
|
|
6083
|
+
var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = z17.object(
|
|
6084
|
+
{
|
|
6085
|
+
credit_schema: z17.union([
|
|
6086
|
+
z17.array(
|
|
6087
|
+
z17.union([
|
|
6088
|
+
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
6089
|
+
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
6090
|
+
])
|
|
6091
|
+
),
|
|
6092
|
+
z17.undefined()
|
|
6093
|
+
]).optional(),
|
|
6094
|
+
markups: z17.union([billingUpdateUpsertLicenseMarkupsOutboundSchema, z17.undefined()]).optional()
|
|
6095
|
+
}
|
|
6096
|
+
);
|
|
7102
6097
|
var billingUpdateUpsertLicenseIntervalUnionOutboundSchema = z17.union([
|
|
7103
6098
|
z17.string(),
|
|
7104
6099
|
z17.string()
|
|
@@ -7124,6 +6119,10 @@ var billingUpdateAttachDiscountOutboundSchema = z17.object({
|
|
|
7124
6119
|
reward_id: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
7125
6120
|
promotion_code: z17.union([z17.string(), z17.undefined()]).optional()
|
|
7126
6121
|
});
|
|
6122
|
+
var billingUpdateCustomLineItemOutboundSchema = z17.object({
|
|
6123
|
+
amount: z17.number(),
|
|
6124
|
+
description: z17.string()
|
|
6125
|
+
});
|
|
7127
6126
|
var billingUpdateBillingCycleAnchorOutboundSchema = z17.union([
|
|
7128
6127
|
z17.string(),
|
|
7129
6128
|
z17.number()
|
|
@@ -7139,9 +6138,6 @@ var billingUpdateLicenseQuantityOutboundSchema = z17.object({
|
|
|
7139
6138
|
license_plan_id: z17.string(),
|
|
7140
6139
|
quantity: z17.number()
|
|
7141
6140
|
});
|
|
7142
|
-
var billingUpdateDimensionsToUpsertLicenseEnum2Schema = z17.any();
|
|
7143
|
-
var billingUpdateDimensionsUpsertLicenseMatch3Schema = z17.any();
|
|
7144
|
-
var billingUpdateDimensionsUpsertLicense4Schema = z17.any();
|
|
7145
6141
|
var closedEnumSchema12 = z17.any();
|
|
7146
6142
|
var billingUpdateUpsertLicenseThresholdBillingSchema = z17.any();
|
|
7147
6143
|
var billingUpdateUpsertLicenseResetSchema = z17.any();
|
|
@@ -7157,9 +6153,7 @@ var billingUpdateCustomizeFreeTrialParamsSchema = z17.any();
|
|
|
7157
6153
|
var billingUpdateBillingControlsSchema = z17.any();
|
|
7158
6154
|
var billingUpdateFeatureQuantitySchema = z17.any();
|
|
7159
6155
|
var billingUpdateFreeTrialParamsSchema = z17.any();
|
|
7160
|
-
var
|
|
7161
|
-
var billingUpdateDimensionsUpsertLicenseMatch3OutboundSchema = z17.any();
|
|
7162
|
-
var billingUpdateDimensionsUpsertLicense4OutboundSchema = z17.any();
|
|
6156
|
+
var openEnumSchema12 = z17.any();
|
|
7163
6157
|
var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = z17.any();
|
|
7164
6158
|
var billingUpdateUpsertLicenseResetOutboundSchema = z17.any();
|
|
7165
6159
|
var billingUpdateUpsertLicensePriceOutboundSchema = z17.any();
|
|
@@ -7174,6 +6168,12 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = z17.any();
|
|
|
7174
6168
|
var billingUpdateBillingControlsOutboundSchema = z17.any();
|
|
7175
6169
|
var billingUpdateFeatureQuantityOutboundSchema = z17.any();
|
|
7176
6170
|
var billingUpdateFreeTrialParamsOutboundSchema = z17.any();
|
|
6171
|
+
var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema12;
|
|
6172
|
+
var billingUpdateUpsertLicenseExpirySchema = z17.object({
|
|
6173
|
+
duration: billingUpdateUpsertLicenseDurationSchema,
|
|
6174
|
+
length: z17.number()
|
|
6175
|
+
});
|
|
6176
|
+
var billingUpdateDimensionsToUpsertLicenseEnum2Schema = closedEnumSchema12;
|
|
7177
6177
|
var billingUpdateDimensionsUpsertLicenseToUnion2Schema = z17.union([
|
|
7178
6178
|
z17.number(),
|
|
7179
6179
|
billingUpdateDimensionsToUpsertLicenseEnum2Schema
|
|
@@ -7183,7 +6183,7 @@ var billingUpdateDimensionsUpsertLicenseTier2Schema = z17.object({
|
|
|
7183
6183
|
creditCost: z17.number()
|
|
7184
6184
|
});
|
|
7185
6185
|
var billingUpdateDimensionsUpsertLicense3Schema = z17.object({
|
|
7186
|
-
match: z17.record(z17.string(),
|
|
6186
|
+
match: z17.record(z17.string(), z17.union([z17.string(), z17.number(), z17.boolean()])),
|
|
7187
6187
|
priority: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
7188
6188
|
tierBehavior: z17.literal("graduated"),
|
|
7189
6189
|
tiers: z17.array(billingUpdateDimensionsUpsertLicenseTier2Schema)
|
|
@@ -7285,6 +6285,7 @@ var billingUpdateUpsertLicensePlanItemSchema = z17.object({
|
|
|
7285
6285
|
price: z17.union([billingUpdateUpsertLicensePriceSchema, z17.undefined()]).optional(),
|
|
7286
6286
|
proration: z17.union([billingUpdateUpsertLicenseProrationSchema, z17.undefined()]).optional(),
|
|
7287
6287
|
rollover: z17.union([billingUpdateUpsertLicenseRolloverSchema, z17.undefined()]).optional(),
|
|
6288
|
+
expiry: z17.union([billingUpdateUpsertLicenseExpirySchema, z17.undefined()]).optional(),
|
|
7288
6289
|
featureOverride: z17.union([billingUpdateUpsertLicenseFeatureOverrideSchema, z17.undefined()]).optional()
|
|
7289
6290
|
});
|
|
7290
6291
|
var billingUpdateUpsertLicenseRemoveItemBillingMethodSchema = closedEnumSchema12;
|
|
@@ -7351,6 +6352,7 @@ var updateSubscriptionParamsSchema = z17.object({
|
|
|
7351
6352
|
redirectMode: z17.union([billingUpdateRedirectModeSchema, z17.undefined()]).optional(),
|
|
7352
6353
|
subscriptionId: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
7353
6354
|
discounts: z17.union([z17.array(billingUpdateAttachDiscountSchema), z17.undefined()]).optional(),
|
|
6355
|
+
customLineItems: z17.union([z17.array(billingUpdateCustomLineItemSchema), z17.undefined()]).optional(),
|
|
7354
6356
|
cancelAction: z17.union([billingUpdateCancelActionSchema, z17.undefined()]).optional(),
|
|
7355
6357
|
billingCycleAnchor: z17.union([z17.string(), z17.number(), z17.undefined()]).optional(),
|
|
7356
6358
|
noBillingChanges: z17.union([z17.boolean(), z17.undefined()]).optional(),
|
|
@@ -7360,7 +6362,7 @@ var updateSubscriptionParamsSchema = z17.object({
|
|
|
7360
6362
|
carryOverUsages: z17.union([billingUpdateCarryOverUsagesSchema, z17.undefined()]).optional(),
|
|
7361
6363
|
licenseQuantities: z17.union([z17.array(billingUpdateLicenseQuantitySchema), z17.undefined()]).optional()
|
|
7362
6364
|
});
|
|
7363
|
-
var billingUpdateCodeSchema =
|
|
6365
|
+
var billingUpdateCodeSchema = openEnumSchema12;
|
|
7364
6366
|
var billingUpdateRequiredActionSchema = z17.object({
|
|
7365
6367
|
code: billingUpdateCodeSchema,
|
|
7366
6368
|
reason: z17.string()
|
|
@@ -7372,61 +6374,6 @@ var billingUpdateResponseSchema = z17.object({
|
|
|
7372
6374
|
paymentUrl: z17.string().nullable(),
|
|
7373
6375
|
requiredAction: z17.union([billingUpdateRequiredActionSchema, z17.undefined()]).optional()
|
|
7374
6376
|
});
|
|
7375
|
-
var billingUpdateDimensionsUpsertLicense3OutboundSchema = z17.object({
|
|
7376
|
-
match: z17.record(
|
|
7377
|
-
z17.string(),
|
|
7378
|
-
billingUpdateDimensionsUpsertLicenseMatch3OutboundSchema
|
|
7379
|
-
),
|
|
7380
|
-
priority: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
7381
|
-
tier_behavior: z17.literal("graduated"),
|
|
7382
|
-
tiers: z17.array(billingUpdateDimensionsUpsertLicenseTier2OutboundSchema)
|
|
7383
|
-
});
|
|
7384
|
-
var billingUpdateUpsertLicenseDimensionsUnion2OutboundSchema = z17.union(
|
|
7385
|
-
[
|
|
7386
|
-
billingUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
7387
|
-
billingUpdateDimensionsUpsertLicense4OutboundSchema
|
|
7388
|
-
]
|
|
7389
|
-
);
|
|
7390
|
-
var billingUpdateCreditSchemaUpsertLicense2OutboundSchema = z17.object({
|
|
7391
|
-
metered_feature_id: z17.string(),
|
|
7392
|
-
billing_units: z17.union([z17.number(), z17.undefined()]).optional(),
|
|
7393
|
-
dimensions: z17.union([
|
|
7394
|
-
z17.record(
|
|
7395
|
-
z17.string(),
|
|
7396
|
-
z17.union([
|
|
7397
|
-
billingUpdateDimensionsUpsertLicense3OutboundSchema,
|
|
7398
|
-
billingUpdateDimensionsUpsertLicense4OutboundSchema
|
|
7399
|
-
])
|
|
7400
|
-
),
|
|
7401
|
-
z17.undefined()
|
|
7402
|
-
]).optional(),
|
|
7403
|
-
multipliers: z17.union([
|
|
7404
|
-
z17.record(
|
|
7405
|
-
z17.string(),
|
|
7406
|
-
billingUpdateUpsertLicenseMultipliers2OutboundSchema
|
|
7407
|
-
),
|
|
7408
|
-
z17.undefined()
|
|
7409
|
-
]).optional(),
|
|
7410
|
-
credit_cost: z17.number()
|
|
7411
|
-
});
|
|
7412
|
-
var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z17.union([
|
|
7413
|
-
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
7414
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
7415
|
-
]);
|
|
7416
|
-
var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = z17.object(
|
|
7417
|
-
{
|
|
7418
|
-
credit_schema: z17.union([
|
|
7419
|
-
z17.array(
|
|
7420
|
-
z17.union([
|
|
7421
|
-
billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
|
|
7422
|
-
billingUpdateCreditSchemaUpsertLicense2OutboundSchema
|
|
7423
|
-
])
|
|
7424
|
-
),
|
|
7425
|
-
z17.undefined()
|
|
7426
|
-
]).optional(),
|
|
7427
|
-
markups: z17.union([billingUpdateUpsertLicenseMarkupsOutboundSchema, z17.undefined()]).optional()
|
|
7428
|
-
}
|
|
7429
|
-
);
|
|
7430
6377
|
var billingUpdateUpsertLicensePlanItemOutboundSchema = z17.object({
|
|
7431
6378
|
threshold_billing: z17.union([
|
|
7432
6379
|
billingUpdateUpsertLicenseThresholdBillingOutboundSchema,
|
|
@@ -7440,6 +6387,7 @@ var billingUpdateUpsertLicensePlanItemOutboundSchema = z17.object({
|
|
|
7440
6387
|
price: z17.union([billingUpdateUpsertLicensePriceOutboundSchema, z17.undefined()]).optional(),
|
|
7441
6388
|
proration: z17.union([billingUpdateUpsertLicenseProrationOutboundSchema, z17.undefined()]).optional(),
|
|
7442
6389
|
rollover: z17.union([billingUpdateUpsertLicenseRolloverOutboundSchema, z17.undefined()]).optional(),
|
|
6390
|
+
expiry: z17.union([billingUpdateUpsertLicenseExpiryOutboundSchema, z17.undefined()]).optional(),
|
|
7443
6391
|
feature_override: z17.union([
|
|
7444
6392
|
billingUpdateUpsertLicenseFeatureOverrideOutboundSchema,
|
|
7445
6393
|
z17.undefined()
|
|
@@ -7487,6 +6435,7 @@ var updateSubscriptionParamsOutboundSchema = z17.object({
|
|
|
7487
6435
|
redirect_mode: z17.string(),
|
|
7488
6436
|
subscription_id: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
7489
6437
|
discounts: z17.union([z17.array(billingUpdateAttachDiscountOutboundSchema), z17.undefined()]).optional(),
|
|
6438
|
+
custom_line_items: z17.union([z17.array(billingUpdateCustomLineItemOutboundSchema), z17.undefined()]).optional(),
|
|
7490
6439
|
cancel_action: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
7491
6440
|
billing_cycle_anchor: z17.union([z17.string(), z17.number(), z17.undefined()]).optional(),
|
|
7492
6441
|
no_billing_changes: z17.union([z17.boolean(), z17.undefined()]).optional(),
|