autumn-js 1.3.37 → 1.3.39

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.
Files changed (63) hide show
  1. package/dist/backend/adapters/express.js +2206 -412
  2. package/dist/backend/adapters/express.mjs +4 -4
  3. package/dist/backend/adapters/fetch.js +2206 -412
  4. package/dist/backend/adapters/fetch.mjs +4 -4
  5. package/dist/backend/adapters/hono.js +2206 -412
  6. package/dist/backend/adapters/hono.mjs +4 -4
  7. package/dist/backend/adapters/index.js +2206 -412
  8. package/dist/backend/adapters/index.mjs +7 -7
  9. package/dist/backend/adapters/next.js +2206 -412
  10. package/dist/backend/adapters/next.mjs +4 -4
  11. package/dist/backend/{chunk-FFYCTJNC.mjs → chunk-CHQNLV4Z.mjs} +1 -1
  12. package/dist/backend/{chunk-R3K32CGC.mjs → chunk-CXORULL5.mjs} +1 -1
  13. package/dist/backend/{chunk-U3ZGNGOC.mjs → chunk-FRZKPG6L.mjs} +1 -1
  14. package/dist/backend/{chunk-WEQOYACF.mjs → chunk-I45H2FVH.mjs} +1 -1
  15. package/dist/backend/{chunk-FHTBT3PQ.mjs → chunk-KQUDJM2H.mjs} +2206 -412
  16. package/dist/backend/{chunk-UMFFNC2A.mjs → chunk-N2ODBOKM.mjs} +1 -1
  17. package/dist/backend/{chunk-5O52SB6D.mjs → chunk-Y752GSEA.mjs} +1 -1
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +2206 -412
  21. package/dist/backend/core/handlers/coreHandler.mjs +2 -2
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/handleRouteByName.js +2206 -412
  25. package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
  26. package/dist/backend/core/handlers/index.d.mts +1 -1
  27. package/dist/backend/core/handlers/index.d.ts +1 -1
  28. package/dist/backend/core/handlers/index.js +2206 -412
  29. package/dist/backend/core/handlers/index.mjs +3 -3
  30. package/dist/backend/core/index.d.mts +1 -1
  31. package/dist/backend/core/index.d.ts +1 -1
  32. package/dist/backend/core/index.js +2206 -412
  33. package/dist/backend/core/index.mjs +3 -3
  34. package/dist/backend/core/routes/index.d.mts +1 -1
  35. package/dist/backend/core/routes/index.d.ts +1 -1
  36. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  37. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  38. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  39. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  40. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  41. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  42. package/dist/backend/core/types/index.d.mts +1 -1
  43. package/dist/backend/core/types/index.d.ts +1 -1
  44. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  45. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  46. package/dist/backend/index.d.mts +2 -2
  47. package/dist/backend/index.d.ts +2 -2
  48. package/dist/backend/index.js +2206 -412
  49. package/dist/backend/index.mjs +3 -3
  50. package/dist/backend/{routeTypes-DCQKUwXj.d.mts → routeTypes-C90LbFI_.d.mts} +8312 -6386
  51. package/dist/backend/{routeTypes-DZCHHDxf.d.ts → routeTypes-Dr-THiSK.d.ts} +8312 -6386
  52. package/dist/better-auth/{chunk-45DYRSXB.mjs → chunk-55SS3VYE.mjs} +2206 -412
  53. package/dist/better-auth/index.js +2206 -412
  54. package/dist/better-auth/index.mjs +1 -1
  55. package/dist/better-auth/utils/handleBetterAuthRoute.js +2206 -412
  56. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  57. package/dist/better-auth/utils/index.js +2206 -412
  58. package/dist/better-auth/utils/index.mjs +1 -1
  59. package/dist/sdk/index.d.mts +3376 -958
  60. package/dist/sdk/index.d.ts +3376 -958
  61. package/dist/sdk/index.js +28090 -25067
  62. package/dist/sdk/index.mjs +27473 -24768
  63. package/package.json +2 -2
@@ -82,8 +82,8 @@ var SDK_METADATA = {
82
82
  language: "typescript",
83
83
  openapiDocVersion: "2.4.0",
84
84
  sdkVersion: "0.10.18",
85
- genVersion: "2.882.0",
86
- userAgent: "speakeasy-sdk/typescript 0.10.18 2.882.0 2.4.0 @useautumn/sdk"
85
+ genVersion: "2.884.13",
86
+ userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.4.0 @useautumn/sdk"
87
87
  };
88
88
 
89
89
  // ../sdk/src/lib/http.ts
@@ -12577,7 +12577,7 @@ var CreatePlanDimensionsToItemRequestBodyEnum1 = {
12577
12577
  var CreatePlanToItemRequestBodyEnum = {
12578
12578
  Inf: "inf"
12579
12579
  };
12580
- var CreatePlanPriceLicenseInterval = {
12580
+ var CreatePlanPriceLicenseIntervalRequestBody = {
12581
12581
  OneOff: "one_off",
12582
12582
  Week: "week",
12583
12583
  Month: "month",
@@ -12585,7 +12585,7 @@ var CreatePlanPriceLicenseInterval = {
12585
12585
  SemiAnnual: "semi_annual",
12586
12586
  Year: "year"
12587
12587
  };
12588
- var CreatePlanLicenseResetInterval = {
12588
+ var CreatePlanLicenseResetIntervalRequestBody = {
12589
12589
  OneOff: "one_off",
12590
12590
  Minute: "minute",
12591
12591
  Hour: "hour",
@@ -12596,11 +12596,11 @@ var CreatePlanLicenseResetInterval = {
12596
12596
  SemiAnnual: "semi_annual",
12597
12597
  Year: "year"
12598
12598
  };
12599
- var CreatePlanLicenseTierBehavior = {
12599
+ var CreatePlanLicenseTierBehaviorRequestBody = {
12600
12600
  Graduated: "graduated",
12601
12601
  Volume: "volume"
12602
12602
  };
12603
- var CreatePlanLicenseAddItemPriceInterval = {
12603
+ var CreatePlanAddItemPriceIntervalRequestBody = {
12604
12604
  OneOff: "one_off",
12605
12605
  Week: "week",
12606
12606
  Month: "month",
@@ -12608,47 +12608,47 @@ var CreatePlanLicenseAddItemPriceInterval = {
12608
12608
  SemiAnnual: "semi_annual",
12609
12609
  Year: "year"
12610
12610
  };
12611
- var CreatePlanLicenseAddItemBillingMethod = {
12611
+ var CreatePlanAddItemBillingMethodRequestBody = {
12612
12612
  Prepaid: "prepaid",
12613
12613
  UsageBased: "usage_based"
12614
12614
  };
12615
- var CreatePlanLicenseOnIncrease = {
12615
+ var CreatePlanLicenseOnIncreaseRequestBody = {
12616
12616
  BillImmediately: "bill_immediately",
12617
12617
  ProrateImmediately: "prorate_immediately",
12618
12618
  ProrateNextCycle: "prorate_next_cycle",
12619
12619
  BillNextCycle: "bill_next_cycle"
12620
12620
  };
12621
- var CreatePlanLicenseOnDecrease = {
12621
+ var CreatePlanLicenseOnDecreaseRequestBody = {
12622
12622
  Prorate: "prorate",
12623
12623
  ProrateImmediately: "prorate_immediately",
12624
12624
  ProrateNextCycle: "prorate_next_cycle",
12625
12625
  None: "none",
12626
12626
  NoProrations: "no_prorations"
12627
12627
  };
12628
- var CreatePlanLicenseExpiryDurationType = {
12628
+ var CreatePlanLicenseExpiryDurationTypeRequestBody = {
12629
12629
  Month: "month",
12630
12630
  Forever: "forever"
12631
12631
  };
12632
- var CreatePlanLicenseDuration = {
12632
+ var CreatePlanLicenseDurationRequestBody = {
12633
12633
  Day: "day",
12634
12634
  Week: "week",
12635
12635
  Month: "month",
12636
12636
  Year: "year"
12637
12637
  };
12638
- var CreatePlanDimensionsToLicenseEnum2 = {
12638
+ var CreatePlanDimensionsToLicenseRequestBodyEnum2 = {
12639
12639
  Inf: "inf"
12640
12640
  };
12641
- var CreatePlanDimensionsToLicenseEnum1 = {
12641
+ var CreatePlanDimensionsToLicenseRequestBodyEnum1 = {
12642
12642
  Inf: "inf"
12643
12643
  };
12644
- var CreatePlanToLicenseEnum = {
12644
+ var CreatePlanToLicenseRequestBodyEnum = {
12645
12645
  Inf: "inf"
12646
12646
  };
12647
- var CreatePlanLicenseRemoveItemBillingMethod = {
12647
+ var CreatePlanRemoveItemBillingMethodRequestBody = {
12648
12648
  Prepaid: "prepaid",
12649
12649
  UsageBased: "usage_based"
12650
12650
  };
12651
- var CreatePlanIntervalLicenseRemoveItemEnum2 = {
12651
+ var CreatePlanIntervalRemoveItemRequestBodyEnum2 = {
12652
12652
  OneOff: "one_off",
12653
12653
  Minute: "minute",
12654
12654
  Hour: "hour",
@@ -12659,7 +12659,7 @@ var CreatePlanIntervalLicenseRemoveItemEnum2 = {
12659
12659
  SemiAnnual: "semi_annual",
12660
12660
  Year: "year"
12661
12661
  };
12662
- var CreatePlanIntervalLicenseRemoveItemEnum1 = {
12662
+ var CreatePlanIntervalRemoveItemRequestBodyEnum1 = {
12663
12663
  OneOff: "one_off",
12664
12664
  Week: "week",
12665
12665
  Month: "month",
@@ -13182,19 +13182,21 @@ var CreatePlanItemPlanItem$outboundSchema = z27.pipe(
13182
13182
  });
13183
13183
  })
13184
13184
  );
13185
- var CreatePlanPriceLicenseInterval$outboundSchema = z27.enum(CreatePlanPriceLicenseInterval);
13186
- var CreatePlanLicenseAdditionalCurrency$outboundSchema = z27.object({
13185
+ var CreatePlanPriceLicenseIntervalRequestBody$outboundSchema = z27.enum(
13186
+ CreatePlanPriceLicenseIntervalRequestBody
13187
+ );
13188
+ var CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z27.object({
13187
13189
  currency: z27.string(),
13188
13190
  amount: z27.number()
13189
13191
  });
13190
- var CreatePlanLicenseBasePrice$outboundSchema = z27.pipe(
13192
+ var CreatePlanBasePriceRequestBody$outboundSchema = z27.pipe(
13191
13193
  z27.object({
13192
13194
  amount: z27.number(),
13193
- interval: CreatePlanPriceLicenseInterval$outboundSchema,
13195
+ interval: CreatePlanPriceLicenseIntervalRequestBody$outboundSchema,
13194
13196
  intervalCount: z27._default(z27.number(), 1),
13195
- additionalCurrencies: z27.optional(
13196
- z27.array(z27.lazy(() => CreatePlanLicenseAdditionalCurrency$outboundSchema))
13197
- )
13197
+ additionalCurrencies: z27.optional(z27.array(z27.lazy(
13198
+ () => CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
13199
+ )))
13198
13200
  }),
13199
13201
  z27.transform((v) => {
13200
13202
  return remap(v, {
@@ -13203,13 +13205,15 @@ var CreatePlanLicenseBasePrice$outboundSchema = z27.pipe(
13203
13205
  });
13204
13206
  })
13205
13207
  );
13206
- var CreatePlanLicenseThresholdBilling$outboundSchema = z27.object({
13208
+ var CreatePlanLicenseThresholdBillingRequestBody$outboundSchema = z27.object({
13207
13209
  threshold: z27.number()
13208
13210
  });
13209
- var CreatePlanLicenseResetInterval$outboundSchema = z27.enum(CreatePlanLicenseResetInterval);
13210
- var CreatePlanLicenseReset$outboundSchema = z27.pipe(
13211
+ var CreatePlanLicenseResetIntervalRequestBody$outboundSchema = z27.enum(
13212
+ CreatePlanLicenseResetIntervalRequestBody
13213
+ );
13214
+ var CreatePlanLicenseResetRequestBody$outboundSchema = z27.pipe(
13211
13215
  z27.object({
13212
- interval: CreatePlanLicenseResetInterval$outboundSchema,
13216
+ interval: CreatePlanLicenseResetIntervalRequestBody$outboundSchema,
13213
13217
  intervalCount: z27._default(z27.number(), 1)
13214
13218
  }),
13215
13219
  z27.transform((v) => {
@@ -13218,12 +13222,12 @@ var CreatePlanLicenseReset$outboundSchema = z27.pipe(
13218
13222
  });
13219
13223
  })
13220
13224
  );
13221
- var CreatePlanLicenseAddItemAdditionalCurrency$outboundSchema = z27.object({
13225
+ var CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema = z27.object({
13222
13226
  currency: z27.string(),
13223
13227
  amount: z27.number()
13224
13228
  });
13225
- var CreatePlanLicensePriceTo$outboundSchema = smartUnion([z27.number(), z27.string()]);
13226
- var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z27.pipe(
13229
+ var CreatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z27.number(), z27.string()]);
13230
+ var CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z27.pipe(
13227
13231
  z27.object({
13228
13232
  currency: z27.string(),
13229
13233
  amount: z27.optional(z27.number()),
@@ -13235,13 +13239,13 @@ var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z27.pipe(
13235
13239
  });
13236
13240
  })
13237
13241
  );
13238
- var CreatePlanLicensePriceTier$outboundSchema = z27.pipe(
13242
+ var CreatePlanLicensePriceTierRequestBody$outboundSchema = z27.pipe(
13239
13243
  z27.object({
13240
13244
  to: smartUnion([z27.number(), z27.string()]),
13241
13245
  amount: z27.optional(z27.number()),
13242
13246
  flatAmount: z27.optional(z27.number()),
13243
13247
  additionalCurrencies: z27.optional(z27.array(z27.lazy(
13244
- () => CreatePlanLicenseTierAdditionalCurrency$outboundSchema
13248
+ () => CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
13245
13249
  )))
13246
13250
  }),
13247
13251
  z27.transform((v) => {
@@ -13251,27 +13255,31 @@ var CreatePlanLicensePriceTier$outboundSchema = z27.pipe(
13251
13255
  });
13252
13256
  })
13253
13257
  );
13254
- var CreatePlanLicenseTierBehavior$outboundSchema = z27.enum(CreatePlanLicenseTierBehavior);
13255
- var CreatePlanLicenseAddItemPriceInterval$outboundSchema = z27.enum(
13256
- CreatePlanLicenseAddItemPriceInterval
13258
+ var CreatePlanLicenseTierBehaviorRequestBody$outboundSchema = z27.enum(
13259
+ CreatePlanLicenseTierBehaviorRequestBody
13260
+ );
13261
+ var CreatePlanAddItemPriceIntervalRequestBody$outboundSchema = z27.enum(
13262
+ CreatePlanAddItemPriceIntervalRequestBody
13257
13263
  );
13258
- var CreatePlanLicenseAddItemBillingMethod$outboundSchema = z27.enum(
13259
- CreatePlanLicenseAddItemBillingMethod
13264
+ var CreatePlanAddItemBillingMethodRequestBody$outboundSchema = z27.enum(
13265
+ CreatePlanAddItemBillingMethodRequestBody
13260
13266
  );
13261
- var CreatePlanLicensePrice$outboundSchema = z27.pipe(
13267
+ var CreatePlanLicensePriceRequestBody$outboundSchema = z27.pipe(
13262
13268
  z27.object({
13263
13269
  amount: z27.optional(z27.number()),
13264
13270
  additionalCurrencies: z27.optional(z27.array(z27.lazy(
13265
- () => CreatePlanLicenseAddItemAdditionalCurrency$outboundSchema
13271
+ () => CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema
13266
13272
  ))),
13267
13273
  tiers: z27.optional(z27.array(z27.lazy(
13268
- () => CreatePlanLicensePriceTier$outboundSchema
13274
+ () => CreatePlanLicensePriceTierRequestBody$outboundSchema
13269
13275
  ))),
13270
- tierBehavior: z27.optional(CreatePlanLicenseTierBehavior$outboundSchema),
13271
- interval: CreatePlanLicenseAddItemPriceInterval$outboundSchema,
13276
+ tierBehavior: z27.optional(
13277
+ CreatePlanLicenseTierBehaviorRequestBody$outboundSchema
13278
+ ),
13279
+ interval: CreatePlanAddItemPriceIntervalRequestBody$outboundSchema,
13272
13280
  intervalCount: z27._default(z27.number(), 1),
13273
13281
  billingUnits: z27._default(z27.number(), 1),
13274
- billingMethod: CreatePlanLicenseAddItemBillingMethod$outboundSchema,
13282
+ billingMethod: CreatePlanAddItemBillingMethodRequestBody$outboundSchema,
13275
13283
  maxPurchase: z27.optional(z27.nullable(z27.number()))
13276
13284
  }),
13277
13285
  z27.transform((v) => {
@@ -13285,12 +13293,16 @@ var CreatePlanLicensePrice$outboundSchema = z27.pipe(
13285
13293
  });
13286
13294
  })
13287
13295
  );
13288
- var CreatePlanLicenseOnIncrease$outboundSchema = z27.enum(CreatePlanLicenseOnIncrease);
13289
- var CreatePlanLicenseOnDecrease$outboundSchema = z27.enum(CreatePlanLicenseOnDecrease);
13290
- var CreatePlanLicenseProration$outboundSchema = z27.pipe(
13296
+ var CreatePlanLicenseOnIncreaseRequestBody$outboundSchema = z27.enum(
13297
+ CreatePlanLicenseOnIncreaseRequestBody
13298
+ );
13299
+ var CreatePlanLicenseOnDecreaseRequestBody$outboundSchema = z27.enum(
13300
+ CreatePlanLicenseOnDecreaseRequestBody
13301
+ );
13302
+ var CreatePlanLicenseProrationRequestBody$outboundSchema = z27.pipe(
13291
13303
  z27.object({
13292
- onIncrease: CreatePlanLicenseOnIncrease$outboundSchema,
13293
- onDecrease: CreatePlanLicenseOnDecrease$outboundSchema
13304
+ onIncrease: CreatePlanLicenseOnIncreaseRequestBody$outboundSchema,
13305
+ onDecrease: CreatePlanLicenseOnDecreaseRequestBody$outboundSchema
13294
13306
  }),
13295
13307
  z27.transform((v) => {
13296
13308
  return remap(v, {
@@ -13299,12 +13311,14 @@ var CreatePlanLicenseProration$outboundSchema = z27.pipe(
13299
13311
  });
13300
13312
  })
13301
13313
  );
13302
- var CreatePlanLicenseExpiryDurationType$outboundSchema = z27.enum(CreatePlanLicenseExpiryDurationType);
13303
- var CreatePlanLicenseRollover$outboundSchema = z27.pipe(
13314
+ var CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z27.enum(
13315
+ CreatePlanLicenseExpiryDurationTypeRequestBody
13316
+ );
13317
+ var CreatePlanLicenseRolloverRequestBody$outboundSchema = z27.pipe(
13304
13318
  z27.object({
13305
13319
  max: z27.optional(z27.number()),
13306
13320
  maxPercentage: z27.optional(z27.number()),
13307
- expiryDurationType: CreatePlanLicenseExpiryDurationType$outboundSchema,
13321
+ expiryDurationType: CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
13308
13322
  expiryDurationLength: z27.optional(z27.number())
13309
13323
  }),
13310
13324
  z27.transform((v) => {
@@ -13315,13 +13329,13 @@ var CreatePlanLicenseRollover$outboundSchema = z27.pipe(
13315
13329
  });
13316
13330
  })
13317
13331
  );
13318
- var CreatePlanLicenseDuration$outboundSchema = z27.enum(CreatePlanLicenseDuration);
13319
- var CreatePlanLicenseExpiry$outboundSchema = z27.object({
13320
- duration: CreatePlanLicenseDuration$outboundSchema,
13332
+ var CreatePlanLicenseDurationRequestBody$outboundSchema = z27.enum(CreatePlanLicenseDurationRequestBody);
13333
+ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
13334
+ duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
13321
13335
  length: z27.number()
13322
13336
  });
13323
13337
  var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13324
- var CreatePlanDimensionsLicense4$outboundSchema = z27.pipe(
13338
+ var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
13325
13339
  z27.object({
13326
13340
  match: z27.record(
13327
13341
  z27.string(),
@@ -13337,13 +13351,18 @@ var CreatePlanDimensionsLicense4$outboundSchema = z27.pipe(
13337
13351
  })
13338
13352
  );
13339
13353
  var CreatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13340
- var CreatePlanDimensionsToLicenseEnum2$outboundSchema = z27.enum(CreatePlanDimensionsToLicenseEnum2);
13341
- var CreatePlanDimensionsLicenseToUnion2$outboundSchema = smartUnion([z27.number(), CreatePlanDimensionsToLicenseEnum2$outboundSchema]);
13342
- var CreatePlanDimensionsLicenseTier2$outboundSchema = z27.pipe(
13354
+ var CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z27.enum(
13355
+ CreatePlanDimensionsToLicenseRequestBodyEnum2
13356
+ );
13357
+ var CreatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
13358
+ z27.number(),
13359
+ CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
13360
+ ]);
13361
+ var CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z27.pipe(
13343
13362
  z27.object({
13344
13363
  to: smartUnion([
13345
13364
  z27.number(),
13346
- CreatePlanDimensionsToLicenseEnum2$outboundSchema
13365
+ CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
13347
13366
  ]),
13348
13367
  creditCost: z27.number()
13349
13368
  }),
@@ -13353,7 +13372,7 @@ var CreatePlanDimensionsLicenseTier2$outboundSchema = z27.pipe(
13353
13372
  });
13354
13373
  })
13355
13374
  );
13356
- var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
13375
+ var CreatePlanDimensionsLicenseRequestBody3$outboundSchema = z27.pipe(
13357
13376
  z27.object({
13358
13377
  match: z27.record(
13359
13378
  z27.string(),
@@ -13362,7 +13381,9 @@ var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
13362
13381
  priority: z27.optional(z27.int()),
13363
13382
  tierBehavior: z27.literal("graduated"),
13364
13383
  tiers: z27.array(
13365
- z27.lazy(() => CreatePlanDimensionsLicenseTier2$outboundSchema)
13384
+ z27.lazy(
13385
+ () => CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema
13386
+ )
13366
13387
  )
13367
13388
  }),
13368
13389
  z27.transform((v) => {
@@ -13371,12 +13392,12 @@ var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
13371
13392
  });
13372
13393
  })
13373
13394
  );
13374
- var CreatePlanLicenseDimensionsUnion2$outboundSchema = smartUnion([
13375
- z27.lazy(() => CreatePlanDimensionsLicense3$outboundSchema),
13376
- z27.lazy(() => CreatePlanDimensionsLicense4$outboundSchema)
13395
+ var CreatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
13396
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
13397
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
13377
13398
  ]);
13378
13399
  var CreatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13379
- var CreatePlanLicenseMultipliers2$outboundSchema = z27.object({
13400
+ var CreatePlanLicenseMultipliersRequestBody2$outboundSchema = z27.object({
13380
13401
  match: z27.record(
13381
13402
  z27.string(),
13382
13403
  smartUnion([z27.string(), z27.number(), z27.boolean()])
@@ -13384,20 +13405,20 @@ var CreatePlanLicenseMultipliers2$outboundSchema = z27.object({
13384
13405
  factor: z27.optional(z27.number()),
13385
13406
  add: z27.optional(z27.number())
13386
13407
  });
13387
- var CreatePlanCreditSchemaLicense2$outboundSchema = z27.pipe(
13408
+ var CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z27.pipe(
13388
13409
  z27.object({
13389
13410
  meteredFeatureId: z27.string(),
13390
13411
  billingUnits: z27.optional(z27.number()),
13391
13412
  dimensions: z27.optional(z27.record(
13392
13413
  z27.string(),
13393
13414
  smartUnion([
13394
- z27.lazy(() => CreatePlanDimensionsLicense3$outboundSchema),
13395
- z27.lazy(() => CreatePlanDimensionsLicense4$outboundSchema)
13415
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
13416
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
13396
13417
  ])
13397
13418
  )),
13398
13419
  multipliers: z27.optional(z27.record(
13399
13420
  z27.string(),
13400
- z27.lazy(() => CreatePlanLicenseMultipliers2$outboundSchema)
13421
+ z27.lazy(() => CreatePlanLicenseMultipliersRequestBody2$outboundSchema)
13401
13422
  )),
13402
13423
  creditCost: z27.number()
13403
13424
  }),
@@ -13410,7 +13431,7 @@ var CreatePlanCreditSchemaLicense2$outboundSchema = z27.pipe(
13410
13431
  })
13411
13432
  );
13412
13433
  var CreatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13413
- var CreatePlanDimensionsLicense2$outboundSchema = z27.pipe(
13434
+ var CreatePlanDimensionsLicenseRequestBody2$outboundSchema = z27.pipe(
13414
13435
  z27.object({
13415
13436
  match: z27.record(
13416
13437
  z27.string(),
@@ -13426,13 +13447,18 @@ var CreatePlanDimensionsLicense2$outboundSchema = z27.pipe(
13426
13447
  })
13427
13448
  );
13428
13449
  var CreatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13429
- var CreatePlanDimensionsToLicenseEnum1$outboundSchema = z27.enum(CreatePlanDimensionsToLicenseEnum1);
13430
- var CreatePlanDimensionsLicenseToUnion1$outboundSchema = smartUnion([z27.number(), CreatePlanDimensionsToLicenseEnum1$outboundSchema]);
13431
- var CreatePlanDimensionsLicenseTier1$outboundSchema = z27.pipe(
13450
+ var CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z27.enum(
13451
+ CreatePlanDimensionsToLicenseRequestBodyEnum1
13452
+ );
13453
+ var CreatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
13454
+ z27.number(),
13455
+ CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
13456
+ ]);
13457
+ var CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z27.pipe(
13432
13458
  z27.object({
13433
13459
  to: smartUnion([
13434
13460
  z27.number(),
13435
- CreatePlanDimensionsToLicenseEnum1$outboundSchema
13461
+ CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
13436
13462
  ]),
13437
13463
  creditCost: z27.number()
13438
13464
  }),
@@ -13442,7 +13468,7 @@ var CreatePlanDimensionsLicenseTier1$outboundSchema = z27.pipe(
13442
13468
  });
13443
13469
  })
13444
13470
  );
13445
- var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
13471
+ var CreatePlanDimensionsLicenseRequestBody1$outboundSchema = z27.pipe(
13446
13472
  z27.object({
13447
13473
  match: z27.record(
13448
13474
  z27.string(),
@@ -13451,7 +13477,9 @@ var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
13451
13477
  priority: z27.optional(z27.int()),
13452
13478
  tierBehavior: z27.literal("graduated"),
13453
13479
  tiers: z27.array(
13454
- z27.lazy(() => CreatePlanDimensionsLicenseTier1$outboundSchema)
13480
+ z27.lazy(
13481
+ () => CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema
13482
+ )
13455
13483
  )
13456
13484
  }),
13457
13485
  z27.transform((v) => {
@@ -13460,12 +13488,12 @@ var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
13460
13488
  });
13461
13489
  })
13462
13490
  );
13463
- var CreatePlanLicenseDimensionsUnion1$outboundSchema = smartUnion([
13464
- z27.lazy(() => CreatePlanDimensionsLicense1$outboundSchema),
13465
- z27.lazy(() => CreatePlanDimensionsLicense2$outboundSchema)
13491
+ var CreatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
13492
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
13493
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
13466
13494
  ]);
13467
13495
  var CreatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13468
- var CreatePlanLicenseMultipliers1$outboundSchema = z27.object({
13496
+ var CreatePlanLicenseMultipliersRequestBody1$outboundSchema = z27.object({
13469
13497
  match: z27.record(
13470
13498
  z27.string(),
13471
13499
  smartUnion([z27.string(), z27.number(), z27.boolean()])
@@ -13473,11 +13501,17 @@ var CreatePlanLicenseMultipliers1$outboundSchema = z27.object({
13473
13501
  factor: z27.optional(z27.number()),
13474
13502
  add: z27.optional(z27.number())
13475
13503
  });
13476
- var CreatePlanToLicenseEnum$outboundSchema = z27.enum(CreatePlanToLicenseEnum);
13477
- var CreatePlanLicenseFeatureOverrideToUnion$outboundSchema = smartUnion([z27.number(), CreatePlanToLicenseEnum$outboundSchema]);
13478
- var CreatePlanLicenseFeatureOverrideTier$outboundSchema = z27.pipe(
13504
+ var CreatePlanToLicenseRequestBodyEnum$outboundSchema = z27.enum(CreatePlanToLicenseRequestBodyEnum);
13505
+ var CreatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
13506
+ z27.number(),
13507
+ CreatePlanToLicenseRequestBodyEnum$outboundSchema
13508
+ ]);
13509
+ var CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z27.pipe(
13479
13510
  z27.object({
13480
- to: smartUnion([z27.number(), CreatePlanToLicenseEnum$outboundSchema]),
13511
+ to: smartUnion([
13512
+ z27.number(),
13513
+ CreatePlanToLicenseRequestBodyEnum$outboundSchema
13514
+ ]),
13481
13515
  creditCost: z27.number()
13482
13516
  }),
13483
13517
  z27.transform((v) => {
@@ -13486,24 +13520,24 @@ var CreatePlanLicenseFeatureOverrideTier$outboundSchema = z27.pipe(
13486
13520
  });
13487
13521
  })
13488
13522
  );
13489
- var CreatePlanCreditSchemaLicense1$outboundSchema = z27.pipe(
13523
+ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
13490
13524
  z27.object({
13491
13525
  meteredFeatureId: z27.string(),
13492
13526
  billingUnits: z27.optional(z27.number()),
13493
13527
  dimensions: z27.optional(z27.record(
13494
13528
  z27.string(),
13495
13529
  smartUnion([
13496
- z27.lazy(() => CreatePlanDimensionsLicense1$outboundSchema),
13497
- z27.lazy(() => CreatePlanDimensionsLicense2$outboundSchema)
13530
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
13531
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
13498
13532
  ])
13499
13533
  )),
13500
13534
  multipliers: z27.optional(z27.record(
13501
13535
  z27.string(),
13502
- z27.lazy(() => CreatePlanLicenseMultipliers1$outboundSchema)
13536
+ z27.lazy(() => CreatePlanLicenseMultipliersRequestBody1$outboundSchema)
13503
13537
  )),
13504
13538
  tierBehavior: z27.literal("graduated"),
13505
13539
  tiers: z27.array(z27.lazy(
13506
- () => CreatePlanLicenseFeatureOverrideTier$outboundSchema
13540
+ () => CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
13507
13541
  ))
13508
13542
  }),
13509
13543
  z27.transform((v) => {
@@ -13514,14 +13548,14 @@ var CreatePlanCreditSchemaLicense1$outboundSchema = z27.pipe(
13514
13548
  });
13515
13549
  })
13516
13550
  );
13517
- var CreatePlanLicenseCreditSchemaUnion$outboundSchema = smartUnion([
13518
- z27.lazy(() => CreatePlanCreditSchemaLicense1$outboundSchema),
13519
- z27.lazy(() => CreatePlanCreditSchemaLicense2$outboundSchema)
13551
+ var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
13552
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
13553
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
13520
13554
  ]);
13521
- var CreatePlanLicenseProviderMarkups$outboundSchema = z27.object({
13555
+ var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
13522
13556
  markup: z27.number()
13523
13557
  });
13524
- var CreatePlanLicenseModelMarkups$outboundSchema = z27.pipe(
13558
+ var CreatePlanLicenseModelMarkupsRequestBody$outboundSchema = z27.pipe(
13525
13559
  z27.object({
13526
13560
  markup: z27.optional(z27.number()),
13527
13561
  inputCost: z27.optional(z27.number()),
@@ -13534,16 +13568,16 @@ var CreatePlanLicenseModelMarkups$outboundSchema = z27.pipe(
13534
13568
  });
13535
13569
  })
13536
13570
  );
13537
- var CreatePlanLicenseMarkups$outboundSchema = z27.pipe(
13571
+ var CreatePlanLicenseMarkupsRequestBody$outboundSchema = z27.pipe(
13538
13572
  z27.object({
13539
13573
  defaultMarkup: z27.optional(z27.number()),
13540
13574
  providerMarkups: z27.optional(z27.nullable(z27.record(
13541
13575
  z27.string(),
13542
- z27.lazy(() => CreatePlanLicenseProviderMarkups$outboundSchema)
13576
+ z27.lazy(() => CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
13543
13577
  ))),
13544
13578
  modelMarkups: z27.optional(z27.nullable(z27.record(
13545
13579
  z27.string(),
13546
- z27.lazy(() => CreatePlanLicenseModelMarkups$outboundSchema)
13580
+ z27.lazy(() => CreatePlanLicenseModelMarkupsRequestBody$outboundSchema)
13547
13581
  )))
13548
13582
  }),
13549
13583
  z27.transform((v) => {
@@ -13554,16 +13588,16 @@ var CreatePlanLicenseMarkups$outboundSchema = z27.pipe(
13554
13588
  });
13555
13589
  })
13556
13590
  );
13557
- var CreatePlanLicenseFeatureOverride$outboundSchema = z27.pipe(
13591
+ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
13558
13592
  z27.object({
13559
13593
  creditSchema: z27.optional(z27.array(smartUnion([
13560
- z27.lazy(() => CreatePlanCreditSchemaLicense1$outboundSchema),
13594
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
13561
13595
  z27.lazy(
13562
- () => CreatePlanCreditSchemaLicense2$outboundSchema
13596
+ () => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
13563
13597
  )
13564
13598
  ]))),
13565
13599
  markups: z27.optional(z27.lazy(
13566
- () => CreatePlanLicenseMarkups$outboundSchema
13600
+ () => CreatePlanLicenseMarkupsRequestBody$outboundSchema
13567
13601
  ))
13568
13602
  }),
13569
13603
  z27.transform((v) => {
@@ -13572,29 +13606,33 @@ var CreatePlanLicenseFeatureOverride$outboundSchema = z27.pipe(
13572
13606
  });
13573
13607
  })
13574
13608
  );
13575
- var CreatePlanLicensePlanItem$outboundSchema = z27.pipe(
13609
+ var CreatePlanLicensePlanItemRequestBody$outboundSchema = z27.pipe(
13576
13610
  z27.object({
13577
- thresholdBilling: z27.optional(
13578
- z27.nullable(
13579
- z27.lazy(() => CreatePlanLicenseThresholdBilling$outboundSchema)
13580
- )
13581
- ),
13611
+ thresholdBilling: z27.optional(z27.nullable(z27.lazy(
13612
+ () => CreatePlanLicenseThresholdBillingRequestBody$outboundSchema
13613
+ ))),
13582
13614
  featureId: z27.string(),
13583
13615
  included: z27.optional(z27.number()),
13584
13616
  unlimited: z27.optional(z27.boolean()),
13585
13617
  pooled: z27._default(z27.boolean(), false),
13586
- reset: z27.optional(z27.lazy(() => CreatePlanLicenseReset$outboundSchema)),
13587
- price: z27.optional(z27.lazy(() => CreatePlanLicensePrice$outboundSchema)),
13588
- proration: z27.optional(
13589
- z27.lazy(() => CreatePlanLicenseProration$outboundSchema)
13590
- ),
13591
- rollover: z27.optional(
13592
- z27.lazy(() => CreatePlanLicenseRollover$outboundSchema)
13593
- ),
13594
- expiry: z27.optional(z27.lazy(() => CreatePlanLicenseExpiry$outboundSchema)),
13595
- featureOverride: z27.optional(
13596
- z27.lazy(() => CreatePlanLicenseFeatureOverride$outboundSchema)
13597
- )
13618
+ reset: z27.optional(z27.lazy(
13619
+ () => CreatePlanLicenseResetRequestBody$outboundSchema
13620
+ )),
13621
+ price: z27.optional(z27.lazy(
13622
+ () => CreatePlanLicensePriceRequestBody$outboundSchema
13623
+ )),
13624
+ proration: z27.optional(z27.lazy(
13625
+ () => CreatePlanLicenseProrationRequestBody$outboundSchema
13626
+ )),
13627
+ rollover: z27.optional(z27.lazy(
13628
+ () => CreatePlanLicenseRolloverRequestBody$outboundSchema
13629
+ )),
13630
+ expiry: z27.optional(z27.lazy(
13631
+ () => CreatePlanLicenseExpiryRequestBody$outboundSchema
13632
+ )),
13633
+ featureOverride: z27.optional(z27.lazy(
13634
+ () => CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema
13635
+ ))
13598
13636
  }),
13599
13637
  z27.transform((v) => {
13600
13638
  return remap(v, {
@@ -13604,29 +13642,29 @@ var CreatePlanLicensePlanItem$outboundSchema = z27.pipe(
13604
13642
  });
13605
13643
  })
13606
13644
  );
13607
- var CreatePlanLicenseRemoveItemBillingMethod$outboundSchema = z27.enum(
13608
- CreatePlanLicenseRemoveItemBillingMethod
13645
+ var CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema = z27.enum(
13646
+ CreatePlanRemoveItemBillingMethodRequestBody
13609
13647
  );
13610
- var CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema = z27.enum(
13611
- CreatePlanIntervalLicenseRemoveItemEnum2
13648
+ var CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema = z27.enum(
13649
+ CreatePlanIntervalRemoveItemRequestBodyEnum2
13612
13650
  );
13613
- var CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z27.enum(
13614
- CreatePlanIntervalLicenseRemoveItemEnum1
13651
+ var CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema = z27.enum(
13652
+ CreatePlanIntervalRemoveItemRequestBodyEnum1
13615
13653
  );
13616
- var CreatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
13617
- CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
13618
- CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
13654
+ var CreatePlanIntervalRequestBodyUnion$outboundSchema = smartUnion([
13655
+ CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
13656
+ CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
13619
13657
  ]);
13620
- var CreatePlanLicensePlanItemFilter$outboundSchema = z27.pipe(
13658
+ var CreatePlanPlanItemFilterRequestBody$outboundSchema = z27.pipe(
13621
13659
  z27.object({
13622
13660
  featureId: z27.optional(z27.string()),
13623
13661
  billingMethod: z27.optional(
13624
- CreatePlanLicenseRemoveItemBillingMethod$outboundSchema
13662
+ CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema
13625
13663
  ),
13626
13664
  interval: z27.optional(
13627
13665
  smartUnion([
13628
- CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
13629
- CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
13666
+ CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
13667
+ CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
13630
13668
  ])
13631
13669
  ),
13632
13670
  intervalCount: z27.optional(z27.int()),
@@ -13640,16 +13678,18 @@ var CreatePlanLicensePlanItemFilter$outboundSchema = z27.pipe(
13640
13678
  });
13641
13679
  })
13642
13680
  );
13643
- var CreatePlanLicenseCustomize$outboundSchema = z27.pipe(
13681
+ var CreatePlanCustomizeRequestBody$outboundSchema = z27.pipe(
13644
13682
  z27.object({
13645
13683
  price: z27.optional(
13646
- z27.nullable(z27.lazy(() => CreatePlanLicenseBasePrice$outboundSchema))
13684
+ z27.nullable(z27.lazy(() => CreatePlanBasePriceRequestBody$outboundSchema))
13647
13685
  ),
13648
13686
  addItems: z27.optional(
13649
- z27.array(z27.lazy(() => CreatePlanLicensePlanItem$outboundSchema))
13687
+ z27.array(
13688
+ z27.lazy(() => CreatePlanLicensePlanItemRequestBody$outboundSchema)
13689
+ )
13650
13690
  ),
13651
13691
  removeItems: z27.optional(
13652
- z27.array(z27.lazy(() => CreatePlanLicensePlanItemFilter$outboundSchema))
13692
+ z27.array(z27.lazy(() => CreatePlanPlanItemFilterRequestBody$outboundSchema))
13653
13693
  )
13654
13694
  }),
13655
13695
  z27.transform((v) => {
@@ -13659,14 +13699,14 @@ var CreatePlanLicenseCustomize$outboundSchema = z27.pipe(
13659
13699
  });
13660
13700
  })
13661
13701
  );
13662
- var CreatePlanLicense$outboundSchema = z27.pipe(
13702
+ var CreatePlanLicenseRequest$outboundSchema = z27.pipe(
13663
13703
  z27.object({
13664
13704
  licensePlanId: z27.string(),
13665
13705
  versionSlug: z27.optional(z27.string()),
13666
13706
  included: z27.optional(z27.int()),
13667
13707
  prepaidOnly: z27.optional(z27.boolean()),
13668
13708
  customize: z27.optional(
13669
- z27.nullable(z27.lazy(() => CreatePlanLicenseCustomize$outboundSchema))
13709
+ z27.nullable(z27.lazy(() => CreatePlanCustomizeRequestBody$outboundSchema))
13670
13710
  ),
13671
13711
  metadata: z27.optional(z27.record(z27.string(), z27.any()))
13672
13712
  }),
@@ -13872,7 +13912,7 @@ var CreatePlanParams$outboundSchema = z27.pipe(
13872
13912
  z27.array(z27.lazy(() => CreatePlanItemPlanItem$outboundSchema))
13873
13913
  ),
13874
13914
  licenses: z27.optional(
13875
- z27.array(z27.lazy(() => CreatePlanLicense$outboundSchema))
13915
+ z27.array(z27.lazy(() => CreatePlanLicenseRequest$outboundSchema))
13876
13916
  ),
13877
13917
  freeTrial: z27.optional(z27.lazy(() => FreeTrialRequestBody$outboundSchema)),
13878
13918
  config: z27.optional(
@@ -14143,17 +14183,17 @@ var CreatePlanVariantDetailsAddItemPriceInterval = {
14143
14183
  SemiAnnual: "semi_annual",
14144
14184
  Year: "year"
14145
14185
  };
14146
- var CreatePlanAddItemBillingMethodResponse = {
14186
+ var CreatePlanVariantDetailsAddItemBillingMethod = {
14147
14187
  Prepaid: "prepaid",
14148
14188
  UsageBased: "usage_based"
14149
14189
  };
14150
- var CreatePlanOnIncreaseResponse = {
14190
+ var CreatePlanVariantDetailsOnIncrease = {
14151
14191
  BillImmediately: "bill_immediately",
14152
14192
  ProrateImmediately: "prorate_immediately",
14153
14193
  ProrateNextCycle: "prorate_next_cycle",
14154
14194
  BillNextCycle: "bill_next_cycle"
14155
14195
  };
14156
- var CreatePlanOnDecreaseResponse = {
14196
+ var CreatePlanVariantDetailsOnDecrease = {
14157
14197
  Prorate: "prorate",
14158
14198
  ProrateImmediately: "prorate_immediately",
14159
14199
  ProrateNextCycle: "prorate_next_cycle",
@@ -14179,7 +14219,7 @@ var CreatePlanDimensionsToVariantDetailsEnum1 = {
14179
14219
  var CreatePlanToVariantDetailsEnum = {
14180
14220
  Inf: "inf"
14181
14221
  };
14182
- var CreatePlanRemoveItemBillingMethodResponse = {
14222
+ var CreatePlanVariantDetailsRemoveItemBillingMethod = {
14183
14223
  Prepaid: "prepaid",
14184
14224
  UsageBased: "usage_based"
14185
14225
  };
@@ -14904,7 +14944,7 @@ var CreatePlanVariantDetailsAdditionalCurrency$inboundSchema = z28.object(
14904
14944
  amount: number2()
14905
14945
  }
14906
14946
  );
14907
- var CreatePlanBasePriceResponse$inboundSchema = z28.pipe(
14947
+ var CreatePlanVariantDetailsBasePrice$inboundSchema = z28.pipe(
14908
14948
  z28.object({
14909
14949
  amount: number2(),
14910
14950
  interval: CreatePlanPriceVariantDetailsInterval$inboundSchema,
@@ -14935,7 +14975,7 @@ var CreatePlanVariantDetailsReset$inboundSchema = z28.pipe(
14935
14975
  });
14936
14976
  })
14937
14977
  );
14938
- var CreatePlanAddItemAdditionalCurrencyResponse$inboundSchema = z28.object({
14978
+ var CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z28.object({
14939
14979
  currency: string5(),
14940
14980
  amount: number2()
14941
14981
  });
@@ -14970,12 +15010,12 @@ var CreatePlanVariantDetailsPriceTier$inboundSchema = z28.pipe(
14970
15010
  );
14971
15011
  var CreatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(CreatePlanVariantDetailsTierBehavior);
14972
15012
  var CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemPriceInterval);
14973
- var CreatePlanAddItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanAddItemBillingMethodResponse);
15013
+ var CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemBillingMethod);
14974
15014
  var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
14975
15015
  z28.object({
14976
15016
  amount: optional3(number2()),
14977
15017
  additional_currencies: optional3(z28.array(z28.lazy(
14978
- () => CreatePlanAddItemAdditionalCurrencyResponse$inboundSchema
15018
+ () => CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
14979
15019
  ))),
14980
15020
  tiers: optional3(z28.array(z28.lazy(
14981
15021
  () => CreatePlanVariantDetailsPriceTier$inboundSchema
@@ -14986,7 +15026,7 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
14986
15026
  interval: CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
14987
15027
  interval_count: z28._default(number2(), 1),
14988
15028
  billing_units: z28._default(number2(), 1),
14989
- billing_method: CreatePlanAddItemBillingMethodResponse$inboundSchema,
15029
+ billing_method: CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
14990
15030
  max_purchase: z28.optional(z28.nullable(number2()))
14991
15031
  }),
14992
15032
  z28.transform((v) => {
@@ -15000,12 +15040,12 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
15000
15040
  });
15001
15041
  })
15002
15042
  );
15003
- var CreatePlanOnIncreaseResponse$inboundSchema = inboundSchema(CreatePlanOnIncreaseResponse);
15004
- var CreatePlanOnDecreaseResponse$inboundSchema = inboundSchema(CreatePlanOnDecreaseResponse);
15005
- var CreatePlanProrationResponse$inboundSchema = z28.pipe(
15043
+ var CreatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnIncrease);
15044
+ var CreatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnDecrease);
15045
+ var CreatePlanVariantDetailsProration$inboundSchema = z28.pipe(
15006
15046
  z28.object({
15007
- on_increase: CreatePlanOnIncreaseResponse$inboundSchema,
15008
- on_decrease: CreatePlanOnDecreaseResponse$inboundSchema
15047
+ on_increase: CreatePlanVariantDetailsOnIncrease$inboundSchema,
15048
+ on_decrease: CreatePlanVariantDetailsOnDecrease$inboundSchema
15009
15049
  }),
15010
15050
  z28.transform((v) => {
15011
15051
  return remap(v, {
@@ -15280,7 +15320,7 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
15280
15320
  });
15281
15321
  })
15282
15322
  );
15283
- var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
15323
+ var CreatePlanVariantDetailsPlanItem$inboundSchema = z28.pipe(
15284
15324
  z28.object({
15285
15325
  threshold_billing: z28.optional(z28.nullable(z28.lazy(
15286
15326
  () => CreatePlanVariantDetailsThresholdBilling$inboundSchema
@@ -15296,7 +15336,7 @@ var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
15296
15336
  () => CreatePlanVariantDetailsPrice$inboundSchema
15297
15337
  )),
15298
15338
  proration: optional3(z28.lazy(
15299
- () => CreatePlanProrationResponse$inboundSchema
15339
+ () => CreatePlanVariantDetailsProration$inboundSchema
15300
15340
  )),
15301
15341
  rollover: optional3(z28.lazy(
15302
15342
  () => CreatePlanVariantDetailsRollover$inboundSchema
@@ -15316,18 +15356,18 @@ var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
15316
15356
  });
15317
15357
  })
15318
15358
  );
15319
- var CreatePlanRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanRemoveItemBillingMethodResponse);
15359
+ var CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsRemoveItemBillingMethod);
15320
15360
  var CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum2);
15321
15361
  var CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum1);
15322
15362
  var CreatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
15323
15363
  CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
15324
15364
  CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
15325
15365
  ]);
15326
- var CreatePlanPlanItemFilterResponse$inboundSchema = z28.pipe(
15366
+ var CreatePlanVariantDetailsPlanItemFilter$inboundSchema = z28.pipe(
15327
15367
  z28.object({
15328
15368
  feature_id: optional3(string5()),
15329
15369
  billing_method: optional3(
15330
- CreatePlanRemoveItemBillingMethodResponse$inboundSchema
15370
+ CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
15331
15371
  ),
15332
15372
  interval: optional3(
15333
15373
  smartUnion([
@@ -15650,6 +15690,96 @@ var CreatePlanIntervalUpsertLicenseRemoveItemEnum1 = {
15650
15690
  SemiAnnual: "semi_annual",
15651
15691
  Year: "year"
15652
15692
  };
15693
+ var CreatePlanPriceLicenseIntervalResponse = {
15694
+ OneOff: "one_off",
15695
+ Week: "week",
15696
+ Month: "month",
15697
+ Quarter: "quarter",
15698
+ SemiAnnual: "semi_annual",
15699
+ Year: "year"
15700
+ };
15701
+ var CreatePlanLicenseResetIntervalResponse = {
15702
+ OneOff: "one_off",
15703
+ Minute: "minute",
15704
+ Hour: "hour",
15705
+ Day: "day",
15706
+ Week: "week",
15707
+ Month: "month",
15708
+ Quarter: "quarter",
15709
+ SemiAnnual: "semi_annual",
15710
+ Year: "year"
15711
+ };
15712
+ var CreatePlanLicenseTierBehaviorResponse = {
15713
+ Graduated: "graduated",
15714
+ Volume: "volume"
15715
+ };
15716
+ var CreatePlanLicenseAddItemPriceIntervalResponse = {
15717
+ OneOff: "one_off",
15718
+ Week: "week",
15719
+ Month: "month",
15720
+ Quarter: "quarter",
15721
+ SemiAnnual: "semi_annual",
15722
+ Year: "year"
15723
+ };
15724
+ var CreatePlanLicenseAddItemBillingMethodResponse = {
15725
+ Prepaid: "prepaid",
15726
+ UsageBased: "usage_based"
15727
+ };
15728
+ var CreatePlanLicenseOnIncreaseResponse = {
15729
+ BillImmediately: "bill_immediately",
15730
+ ProrateImmediately: "prorate_immediately",
15731
+ ProrateNextCycle: "prorate_next_cycle",
15732
+ BillNextCycle: "bill_next_cycle"
15733
+ };
15734
+ var CreatePlanLicenseOnDecreaseResponse = {
15735
+ Prorate: "prorate",
15736
+ ProrateImmediately: "prorate_immediately",
15737
+ ProrateNextCycle: "prorate_next_cycle",
15738
+ None: "none",
15739
+ NoProrations: "no_prorations"
15740
+ };
15741
+ var CreatePlanLicenseExpiryDurationTypeResponse = {
15742
+ Month: "month",
15743
+ Forever: "forever"
15744
+ };
15745
+ var CreatePlanLicenseDurationResponse = {
15746
+ Day: "day",
15747
+ Week: "week",
15748
+ Month: "month",
15749
+ Year: "year"
15750
+ };
15751
+ var CreatePlanDimensionsToLicenseResponseEnum2 = {
15752
+ Inf: "inf"
15753
+ };
15754
+ var CreatePlanDimensionsToLicenseResponseEnum1 = {
15755
+ Inf: "inf"
15756
+ };
15757
+ var CreatePlanToLicenseResponseEnum = {
15758
+ Inf: "inf"
15759
+ };
15760
+ var CreatePlanLicenseRemoveItemBillingMethodResponse = {
15761
+ Prepaid: "prepaid",
15762
+ UsageBased: "usage_based"
15763
+ };
15764
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum2 = {
15765
+ OneOff: "one_off",
15766
+ Minute: "minute",
15767
+ Hour: "hour",
15768
+ Day: "day",
15769
+ Week: "week",
15770
+ Month: "month",
15771
+ Quarter: "quarter",
15772
+ SemiAnnual: "semi_annual",
15773
+ Year: "year"
15774
+ };
15775
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
15776
+ OneOff: "one_off",
15777
+ Week: "week",
15778
+ Month: "month",
15779
+ Quarter: "quarter",
15780
+ SemiAnnual: "semi_annual",
15781
+ Year: "year"
15782
+ };
15653
15783
  var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
15654
15784
  z29.object({
15655
15785
  on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
@@ -16038,14 +16168,16 @@ var CreatePlanRemoveLicense$inboundSchema = z29.pipe(
16038
16168
  });
16039
16169
  })
16040
16170
  );
16041
- var CreatePlanCustomizeResponse$inboundSchema = z29.pipe(
16171
+ var CreatePlanVariantDetailsCustomize$inboundSchema = z29.pipe(
16042
16172
  z29.object({
16043
- price: z29.optional(z29.nullable(CreatePlanBasePriceResponse$inboundSchema)),
16173
+ price: z29.optional(
16174
+ z29.nullable(CreatePlanVariantDetailsBasePrice$inboundSchema)
16175
+ ),
16044
16176
  add_items: optional3(
16045
- z29.array(CreatePlanPlanItemResponse$inboundSchema)
16177
+ z29.array(CreatePlanVariantDetailsPlanItem$inboundSchema)
16046
16178
  ),
16047
16179
  remove_items: optional3(
16048
- z29.array(CreatePlanPlanItemFilterResponse$inboundSchema)
16180
+ z29.array(CreatePlanVariantDetailsPlanItemFilter$inboundSchema)
16049
16181
  ),
16050
16182
  free_trial: z29.optional(z29.nullable(CreatePlanFreeTrialParams$inboundSchema)),
16051
16183
  billing_controls: optional3(
@@ -16073,7 +16205,7 @@ var CreatePlanVariantDetails$inboundSchema = z29.pipe(
16073
16205
  z29.object({
16074
16206
  base_plan_id: string5(),
16075
16207
  customize: optional3(
16076
- z29.lazy(() => CreatePlanCustomizeResponse$inboundSchema)
16208
+ z29.lazy(() => CreatePlanVariantDetailsCustomize$inboundSchema)
16077
16209
  )
16078
16210
  }),
16079
16211
  z29.transform((v) => {
@@ -16082,6 +16214,493 @@ var CreatePlanVariantDetails$inboundSchema = z29.pipe(
16082
16214
  });
16083
16215
  })
16084
16216
  );
16217
+ var CreatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(CreatePlanPriceLicenseIntervalResponse);
16218
+ var CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z29.object({
16219
+ currency: string5(),
16220
+ amount: number2()
16221
+ });
16222
+ var CreatePlanLicenseBasePriceResponse$inboundSchema = z29.pipe(
16223
+ z29.object({
16224
+ amount: number2(),
16225
+ interval: CreatePlanPriceLicenseIntervalResponse$inboundSchema,
16226
+ interval_count: z29._default(number2(), 1),
16227
+ additional_currencies: optional3(z29.array(z29.lazy(
16228
+ () => CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema
16229
+ )))
16230
+ }),
16231
+ z29.transform((v) => {
16232
+ return remap(v, {
16233
+ "interval_count": "intervalCount",
16234
+ "additional_currencies": "additionalCurrencies"
16235
+ });
16236
+ })
16237
+ );
16238
+ var CreatePlanLicenseThresholdBillingResponse$inboundSchema = z29.object({
16239
+ threshold: number2()
16240
+ });
16241
+ var CreatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseResetIntervalResponse);
16242
+ var CreatePlanLicenseResetResponse$inboundSchema = z29.pipe(
16243
+ z29.object({
16244
+ interval: CreatePlanLicenseResetIntervalResponse$inboundSchema,
16245
+ interval_count: z29._default(number2(), 1)
16246
+ }),
16247
+ z29.transform((v) => {
16248
+ return remap(v, {
16249
+ "interval_count": "intervalCount"
16250
+ });
16251
+ })
16252
+ );
16253
+ var CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z29.object({
16254
+ currency: string5(),
16255
+ amount: number2()
16256
+ });
16257
+ var CreatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
16258
+ var CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z29.pipe(
16259
+ z29.object({
16260
+ currency: string5(),
16261
+ amount: optional3(number2()),
16262
+ flat_amount: optional3(number2())
16263
+ }),
16264
+ z29.transform((v) => {
16265
+ return remap(v, {
16266
+ "flat_amount": "flatAmount"
16267
+ });
16268
+ })
16269
+ );
16270
+ var CreatePlanLicensePriceTierResponse$inboundSchema = z29.pipe(
16271
+ z29.object({
16272
+ to: smartUnion([number2(), string5()]),
16273
+ amount: number2(),
16274
+ flat_amount: optional3(number2()),
16275
+ additional_currencies: optional3(z29.array(z29.lazy(
16276
+ () => CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
16277
+ )))
16278
+ }),
16279
+ z29.transform((v) => {
16280
+ return remap(v, {
16281
+ "flat_amount": "flatAmount",
16282
+ "additional_currencies": "additionalCurrencies"
16283
+ });
16284
+ })
16285
+ );
16286
+ var CreatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(CreatePlanLicenseTierBehaviorResponse);
16287
+ var CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemPriceIntervalResponse);
16288
+ var CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemBillingMethodResponse);
16289
+ var CreatePlanLicensePriceResponse$inboundSchema = z29.pipe(
16290
+ z29.object({
16291
+ amount: optional3(number2()),
16292
+ additional_currencies: optional3(z29.array(z29.lazy(
16293
+ () => CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
16294
+ ))),
16295
+ tiers: optional3(z29.array(z29.lazy(
16296
+ () => CreatePlanLicensePriceTierResponse$inboundSchema
16297
+ ))),
16298
+ tier_behavior: optional3(
16299
+ CreatePlanLicenseTierBehaviorResponse$inboundSchema
16300
+ ),
16301
+ interval: CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
16302
+ interval_count: z29._default(number2(), 1),
16303
+ billing_units: z29._default(number2(), 1),
16304
+ billing_method: CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
16305
+ max_purchase: z29.optional(z29.nullable(number2()))
16306
+ }),
16307
+ z29.transform((v) => {
16308
+ return remap(v, {
16309
+ "additional_currencies": "additionalCurrencies",
16310
+ "tier_behavior": "tierBehavior",
16311
+ "interval_count": "intervalCount",
16312
+ "billing_units": "billingUnits",
16313
+ "billing_method": "billingMethod",
16314
+ "max_purchase": "maxPurchase"
16315
+ });
16316
+ })
16317
+ );
16318
+ var CreatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnIncreaseResponse);
16319
+ var CreatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnDecreaseResponse);
16320
+ var CreatePlanLicenseProrationResponse$inboundSchema = z29.pipe(
16321
+ z29.object({
16322
+ on_increase: CreatePlanLicenseOnIncreaseResponse$inboundSchema,
16323
+ on_decrease: CreatePlanLicenseOnDecreaseResponse$inboundSchema
16324
+ }),
16325
+ z29.transform((v) => {
16326
+ return remap(v, {
16327
+ "on_increase": "onIncrease",
16328
+ "on_decrease": "onDecrease"
16329
+ });
16330
+ })
16331
+ );
16332
+ var CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePlanLicenseExpiryDurationTypeResponse);
16333
+ var CreatePlanLicenseRolloverResponse$inboundSchema = z29.pipe(
16334
+ z29.object({
16335
+ max: optional3(number2()),
16336
+ max_percentage: optional3(number2()),
16337
+ expiry_duration_type: CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
16338
+ expiry_duration_length: optional3(number2())
16339
+ }),
16340
+ z29.transform((v) => {
16341
+ return remap(v, {
16342
+ "max_percentage": "maxPercentage",
16343
+ "expiry_duration_type": "expiryDurationType",
16344
+ "expiry_duration_length": "expiryDurationLength"
16345
+ });
16346
+ })
16347
+ );
16348
+ var CreatePlanLicenseDurationResponse$inboundSchema = inboundSchema(CreatePlanLicenseDurationResponse);
16349
+ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
16350
+ duration: CreatePlanLicenseDurationResponse$inboundSchema,
16351
+ length: number2()
16352
+ });
16353
+ var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
16354
+ z29.object({
16355
+ match: z29.record(z29.string(), string5()),
16356
+ priority: optional3(number2()),
16357
+ credit_cost: number2()
16358
+ }),
16359
+ z29.transform((v) => {
16360
+ return remap(v, {
16361
+ "credit_cost": "creditCost"
16362
+ });
16363
+ })
16364
+ );
16365
+ var CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z29.enum(
16366
+ CreatePlanDimensionsToLicenseResponseEnum2
16367
+ );
16368
+ var CreatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
16369
+ number2(),
16370
+ CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
16371
+ ]);
16372
+ var CreatePlanDimensionsLicenseTierResponse2$inboundSchema = z29.pipe(
16373
+ z29.object({
16374
+ to: smartUnion([
16375
+ number2(),
16376
+ CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
16377
+ ]),
16378
+ credit_cost: number2()
16379
+ }),
16380
+ z29.transform((v) => {
16381
+ return remap(v, {
16382
+ "credit_cost": "creditCost"
16383
+ });
16384
+ })
16385
+ );
16386
+ var CreatePlanDimensionsLicenseResponse3$inboundSchema = z29.pipe(
16387
+ z29.object({
16388
+ match: z29.record(z29.string(), string5()),
16389
+ priority: optional3(number2()),
16390
+ tier_behavior: literal3("graduated"),
16391
+ tiers: z29.array(
16392
+ z29.lazy(() => CreatePlanDimensionsLicenseTierResponse2$inboundSchema)
16393
+ )
16394
+ }),
16395
+ z29.transform((v) => {
16396
+ return remap(v, {
16397
+ "tier_behavior": "tierBehavior"
16398
+ });
16399
+ })
16400
+ );
16401
+ var CreatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
16402
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
16403
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
16404
+ ]);
16405
+ var CreatePlanLicenseMultipliersResponse2$inboundSchema = z29.object({
16406
+ match: z29.record(z29.string(), string5()),
16407
+ factor: optional3(number2()),
16408
+ add: optional3(number2())
16409
+ });
16410
+ var CreatePlanCreditSchemaLicenseResponse2$inboundSchema = z29.pipe(
16411
+ z29.object({
16412
+ metered_feature_id: string5(),
16413
+ billing_units: optional3(number2()),
16414
+ dimensions: optional3(z29.record(
16415
+ z29.string(),
16416
+ smartUnion([
16417
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
16418
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
16419
+ ])
16420
+ )),
16421
+ multipliers: optional3(z29.record(
16422
+ z29.string(),
16423
+ z29.lazy(() => CreatePlanLicenseMultipliersResponse2$inboundSchema)
16424
+ )),
16425
+ credit_cost: number2()
16426
+ }),
16427
+ z29.transform((v) => {
16428
+ return remap(v, {
16429
+ "metered_feature_id": "meteredFeatureId",
16430
+ "billing_units": "billingUnits",
16431
+ "credit_cost": "creditCost"
16432
+ });
16433
+ })
16434
+ );
16435
+ var CreatePlanDimensionsLicenseResponse2$inboundSchema = z29.pipe(
16436
+ z29.object({
16437
+ match: z29.record(z29.string(), string5()),
16438
+ priority: optional3(number2()),
16439
+ credit_cost: number2()
16440
+ }),
16441
+ z29.transform((v) => {
16442
+ return remap(v, {
16443
+ "credit_cost": "creditCost"
16444
+ });
16445
+ })
16446
+ );
16447
+ var CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z29.enum(
16448
+ CreatePlanDimensionsToLicenseResponseEnum1
16449
+ );
16450
+ var CreatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
16451
+ number2(),
16452
+ CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
16453
+ ]);
16454
+ var CreatePlanDimensionsLicenseTierResponse1$inboundSchema = z29.pipe(
16455
+ z29.object({
16456
+ to: smartUnion([
16457
+ number2(),
16458
+ CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
16459
+ ]),
16460
+ credit_cost: number2()
16461
+ }),
16462
+ z29.transform((v) => {
16463
+ return remap(v, {
16464
+ "credit_cost": "creditCost"
16465
+ });
16466
+ })
16467
+ );
16468
+ var CreatePlanDimensionsLicenseResponse1$inboundSchema = z29.pipe(
16469
+ z29.object({
16470
+ match: z29.record(z29.string(), string5()),
16471
+ priority: optional3(number2()),
16472
+ tier_behavior: literal3("graduated"),
16473
+ tiers: z29.array(
16474
+ z29.lazy(() => CreatePlanDimensionsLicenseTierResponse1$inboundSchema)
16475
+ )
16476
+ }),
16477
+ z29.transform((v) => {
16478
+ return remap(v, {
16479
+ "tier_behavior": "tierBehavior"
16480
+ });
16481
+ })
16482
+ );
16483
+ var CreatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
16484
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
16485
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
16486
+ ]);
16487
+ var CreatePlanLicenseMultipliersResponse1$inboundSchema = z29.object({
16488
+ match: z29.record(z29.string(), string5()),
16489
+ factor: optional3(number2()),
16490
+ add: optional3(number2())
16491
+ });
16492
+ var CreatePlanToLicenseResponseEnum$inboundSchema = z29.enum(CreatePlanToLicenseResponseEnum);
16493
+ var CreatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), CreatePlanToLicenseResponseEnum$inboundSchema]);
16494
+ var CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z29.pipe(
16495
+ z29.object({
16496
+ to: smartUnion([
16497
+ number2(),
16498
+ CreatePlanToLicenseResponseEnum$inboundSchema
16499
+ ]),
16500
+ credit_cost: number2()
16501
+ }),
16502
+ z29.transform((v) => {
16503
+ return remap(v, {
16504
+ "credit_cost": "creditCost"
16505
+ });
16506
+ })
16507
+ );
16508
+ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
16509
+ z29.object({
16510
+ metered_feature_id: string5(),
16511
+ billing_units: optional3(number2()),
16512
+ dimensions: optional3(z29.record(
16513
+ z29.string(),
16514
+ smartUnion([
16515
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
16516
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
16517
+ ])
16518
+ )),
16519
+ multipliers: optional3(z29.record(
16520
+ z29.string(),
16521
+ z29.lazy(() => CreatePlanLicenseMultipliersResponse1$inboundSchema)
16522
+ )),
16523
+ tier_behavior: literal3("graduated"),
16524
+ tiers: z29.array(z29.lazy(
16525
+ () => CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema
16526
+ ))
16527
+ }),
16528
+ z29.transform((v) => {
16529
+ return remap(v, {
16530
+ "metered_feature_id": "meteredFeatureId",
16531
+ "billing_units": "billingUnits",
16532
+ "tier_behavior": "tierBehavior"
16533
+ });
16534
+ })
16535
+ );
16536
+ var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
16537
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
16538
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
16539
+ ]);
16540
+ var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
16541
+ markup: number2()
16542
+ });
16543
+ var CreatePlanLicenseModelMarkupsResponse$inboundSchema = z29.pipe(
16544
+ z29.object({
16545
+ markup: optional3(number2()),
16546
+ input_cost: optional3(number2()),
16547
+ output_cost: optional3(number2())
16548
+ }),
16549
+ z29.transform((v) => {
16550
+ return remap(v, {
16551
+ "input_cost": "inputCost",
16552
+ "output_cost": "outputCost"
16553
+ });
16554
+ })
16555
+ );
16556
+ var CreatePlanLicenseMarkupsResponse$inboundSchema = z29.pipe(
16557
+ z29.object({
16558
+ default_markup: optional3(number2()),
16559
+ provider_markups: z29.optional(z29.nullable(z29.record(
16560
+ z29.string(),
16561
+ z29.lazy(() => CreatePlanLicenseProviderMarkupsResponse$inboundSchema)
16562
+ ))),
16563
+ model_markups: z29.optional(z29.nullable(z29.record(
16564
+ z29.string(),
16565
+ z29.lazy(() => CreatePlanLicenseModelMarkupsResponse$inboundSchema)
16566
+ )))
16567
+ }),
16568
+ z29.transform((v) => {
16569
+ return remap(v, {
16570
+ "default_markup": "defaultMarkup",
16571
+ "provider_markups": "providerMarkups",
16572
+ "model_markups": "modelMarkups"
16573
+ });
16574
+ })
16575
+ );
16576
+ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
16577
+ z29.object({
16578
+ credit_schema: optional3(z29.array(smartUnion([
16579
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
16580
+ z29.lazy(
16581
+ () => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
16582
+ )
16583
+ ]))),
16584
+ markups: optional3(z29.lazy(
16585
+ () => CreatePlanLicenseMarkupsResponse$inboundSchema
16586
+ ))
16587
+ }),
16588
+ z29.transform((v) => {
16589
+ return remap(v, {
16590
+ "credit_schema": "creditSchema"
16591
+ });
16592
+ })
16593
+ );
16594
+ var CreatePlanLicensePlanItemResponse$inboundSchema = z29.pipe(
16595
+ z29.object({
16596
+ threshold_billing: z29.optional(z29.nullable(z29.lazy(
16597
+ () => CreatePlanLicenseThresholdBillingResponse$inboundSchema
16598
+ ))),
16599
+ feature_id: string5(),
16600
+ included: optional3(number2()),
16601
+ unlimited: optional3(boolean2()),
16602
+ pooled: z29._default(boolean2(), false),
16603
+ reset: optional3(z29.lazy(
16604
+ () => CreatePlanLicenseResetResponse$inboundSchema
16605
+ )),
16606
+ price: optional3(z29.lazy(
16607
+ () => CreatePlanLicensePriceResponse$inboundSchema
16608
+ )),
16609
+ proration: optional3(z29.lazy(
16610
+ () => CreatePlanLicenseProrationResponse$inboundSchema
16611
+ )),
16612
+ rollover: optional3(z29.lazy(
16613
+ () => CreatePlanLicenseRolloverResponse$inboundSchema
16614
+ )),
16615
+ expiry: optional3(z29.lazy(
16616
+ () => CreatePlanLicenseExpiryResponse$inboundSchema
16617
+ )),
16618
+ feature_override: optional3(z29.lazy(
16619
+ () => CreatePlanLicenseFeatureOverrideResponse$inboundSchema
16620
+ ))
16621
+ }),
16622
+ z29.transform((v) => {
16623
+ return remap(v, {
16624
+ "threshold_billing": "thresholdBilling",
16625
+ "feature_id": "featureId",
16626
+ "feature_override": "featureOverride"
16627
+ });
16628
+ })
16629
+ );
16630
+ var CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseRemoveItemBillingMethodResponse);
16631
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum2);
16632
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum1);
16633
+ var CreatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
16634
+ CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
16635
+ CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
16636
+ ]);
16637
+ var CreatePlanLicensePlanItemFilterResponse$inboundSchema = z29.pipe(
16638
+ z29.object({
16639
+ feature_id: optional3(string5()),
16640
+ billing_method: optional3(
16641
+ CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
16642
+ ),
16643
+ interval: optional3(
16644
+ smartUnion([
16645
+ CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
16646
+ CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
16647
+ ])
16648
+ ),
16649
+ interval_count: optional3(number2()),
16650
+ included: optional3(number2())
16651
+ }),
16652
+ z29.transform((v) => {
16653
+ return remap(v, {
16654
+ "feature_id": "featureId",
16655
+ "billing_method": "billingMethod",
16656
+ "interval_count": "intervalCount"
16657
+ });
16658
+ })
16659
+ );
16660
+ var CreatePlanLicenseCustomizeResponse$inboundSchema = z29.pipe(
16661
+ z29.object({
16662
+ price: z29.optional(
16663
+ z29.nullable(
16664
+ z29.lazy(() => CreatePlanLicenseBasePriceResponse$inboundSchema)
16665
+ )
16666
+ ),
16667
+ add_items: optional3(
16668
+ z29.array(z29.lazy(() => CreatePlanLicensePlanItemResponse$inboundSchema))
16669
+ ),
16670
+ remove_items: optional3(
16671
+ z29.array(
16672
+ z29.lazy(() => CreatePlanLicensePlanItemFilterResponse$inboundSchema)
16673
+ )
16674
+ )
16675
+ }),
16676
+ z29.transform((v) => {
16677
+ return remap(v, {
16678
+ "add_items": "addItems",
16679
+ "remove_items": "removeItems"
16680
+ });
16681
+ })
16682
+ );
16683
+ var CreatePlanLicenseResponse$inboundSchema = z29.pipe(
16684
+ z29.object({
16685
+ license_plan_id: string5(),
16686
+ version: number2(),
16687
+ version_slug: optional3(string5()),
16688
+ included: number2(),
16689
+ prepaid_only: boolean2(),
16690
+ customize: optional3(
16691
+ z29.lazy(() => CreatePlanLicenseCustomizeResponse$inboundSchema)
16692
+ ),
16693
+ metadata: optional3(z29.record(z29.string(), z29.any())),
16694
+ plan: optional3(Plan$inboundSchema)
16695
+ }),
16696
+ z29.transform((v) => {
16697
+ return remap(v, {
16698
+ "license_plan_id": "licensePlanId",
16699
+ "version_slug": "versionSlug",
16700
+ "prepaid_only": "prepaidOnly"
16701
+ });
16702
+ })
16703
+ );
16085
16704
  var CreatePlanResponse$inboundSchema = z29.pipe(
16086
16705
  z29.object({
16087
16706
  id: string5(),
@@ -16111,6 +16730,9 @@ var CreatePlanResponse$inboundSchema = z29.pipe(
16111
16730
  base_variant_id: nullable(string5()),
16112
16731
  variant_details: optional3(
16113
16732
  z29.lazy(() => CreatePlanVariantDetails$inboundSchema)
16733
+ ),
16734
+ licenses: optional3(
16735
+ z29.array(z29.lazy(() => CreatePlanLicenseResponse$inboundSchema))
16114
16736
  )
16115
16737
  }),
16116
16738
  z29.transform((v) => {
@@ -24233,7 +24855,7 @@ var GetPlanPriceVariantDetailsInterval = {
24233
24855
  SemiAnnual: "semi_annual",
24234
24856
  Year: "year"
24235
24857
  };
24236
- var GetPlanAddItemResetInterval = {
24858
+ var GetPlanVariantDetailsResetInterval = {
24237
24859
  OneOff: "one_off",
24238
24860
  Minute: "minute",
24239
24861
  Hour: "hour",
@@ -24248,7 +24870,7 @@ var GetPlanVariantDetailsTierBehavior = {
24248
24870
  Graduated: "graduated",
24249
24871
  Volume: "volume"
24250
24872
  };
24251
- var GetPlanAddItemPriceInterval = {
24873
+ var GetPlanVariantDetailsAddItemPriceInterval = {
24252
24874
  OneOff: "one_off",
24253
24875
  Week: "week",
24254
24876
  Month: "month",
@@ -24256,17 +24878,17 @@ var GetPlanAddItemPriceInterval = {
24256
24878
  SemiAnnual: "semi_annual",
24257
24879
  Year: "year"
24258
24880
  };
24259
- var GetPlanAddItemBillingMethod = {
24881
+ var GetPlanVariantDetailsAddItemBillingMethod = {
24260
24882
  Prepaid: "prepaid",
24261
24883
  UsageBased: "usage_based"
24262
24884
  };
24263
- var GetPlanOnIncrease = {
24885
+ var GetPlanVariantDetailsOnIncrease = {
24264
24886
  BillImmediately: "bill_immediately",
24265
24887
  ProrateImmediately: "prorate_immediately",
24266
24888
  ProrateNextCycle: "prorate_next_cycle",
24267
24889
  BillNextCycle: "bill_next_cycle"
24268
24890
  };
24269
- var GetPlanOnDecrease = {
24891
+ var GetPlanVariantDetailsOnDecrease = {
24270
24892
  Prorate: "prorate",
24271
24893
  ProrateImmediately: "prorate_immediately",
24272
24894
  ProrateNextCycle: "prorate_next_cycle",
@@ -24292,11 +24914,11 @@ var GetPlanDimensionsToVariantDetailsEnum1 = {
24292
24914
  var GetPlanToVariantDetailsEnum = {
24293
24915
  Inf: "inf"
24294
24916
  };
24295
- var GetPlanRemoveItemBillingMethod = {
24917
+ var GetPlanVariantDetailsRemoveItemBillingMethod = {
24296
24918
  Prepaid: "prepaid",
24297
24919
  UsageBased: "usage_based"
24298
24920
  };
24299
- var GetPlanIntervalRemoveItemEnum2 = {
24921
+ var GetPlanIntervalVariantDetailsRemoveItemEnum2 = {
24300
24922
  OneOff: "one_off",
24301
24923
  Minute: "minute",
24302
24924
  Hour: "hour",
@@ -24307,7 +24929,7 @@ var GetPlanIntervalRemoveItemEnum2 = {
24307
24929
  SemiAnnual: "semi_annual",
24308
24930
  Year: "year"
24309
24931
  };
24310
- var GetPlanIntervalRemoveItemEnum1 = {
24932
+ var GetPlanIntervalVariantDetailsRemoveItemEnum1 = {
24311
24933
  OneOff: "one_off",
24312
24934
  Week: "week",
24313
24935
  Month: "month",
@@ -25067,7 +25689,7 @@ var GetPlanVariantDetailsAdditionalCurrency$inboundSchema = z56.object({
25067
25689
  currency: string5(),
25068
25690
  amount: number2()
25069
25691
  });
25070
- var GetPlanBasePrice$inboundSchema = z56.pipe(
25692
+ var GetPlanVariantDetailsBasePrice$inboundSchema = z56.pipe(
25071
25693
  z56.object({
25072
25694
  amount: number2(),
25073
25695
  interval: GetPlanPriceVariantDetailsInterval$inboundSchema,
@@ -25086,10 +25708,10 @@ var GetPlanBasePrice$inboundSchema = z56.pipe(
25086
25708
  var GetPlanVariantDetailsThresholdBilling$inboundSchema = z56.object({
25087
25709
  threshold: number2()
25088
25710
  });
25089
- var GetPlanAddItemResetInterval$inboundSchema = inboundSchema(GetPlanAddItemResetInterval);
25711
+ var GetPlanVariantDetailsResetInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsResetInterval);
25090
25712
  var GetPlanVariantDetailsReset$inboundSchema = z56.pipe(
25091
25713
  z56.object({
25092
- interval: GetPlanAddItemResetInterval$inboundSchema,
25714
+ interval: GetPlanVariantDetailsResetInterval$inboundSchema,
25093
25715
  interval_count: z56._default(number2(), 1)
25094
25716
  }),
25095
25717
  z56.transform((v) => {
@@ -25098,7 +25720,7 @@ var GetPlanVariantDetailsReset$inboundSchema = z56.pipe(
25098
25720
  });
25099
25721
  })
25100
25722
  );
25101
- var GetPlanAddItemAdditionalCurrency$inboundSchema = z56.object({
25723
+ var GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z56.object({
25102
25724
  currency: string5(),
25103
25725
  amount: number2()
25104
25726
  });
@@ -25132,24 +25754,24 @@ var GetPlanVariantDetailsPriceTier$inboundSchema = z56.pipe(
25132
25754
  })
25133
25755
  );
25134
25756
  var GetPlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(GetPlanVariantDetailsTierBehavior);
25135
- var GetPlanAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanAddItemPriceInterval);
25136
- var GetPlanAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanAddItemBillingMethod);
25757
+ var GetPlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemPriceInterval);
25758
+ var GetPlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemBillingMethod);
25137
25759
  var GetPlanVariantDetailsPrice$inboundSchema = z56.pipe(
25138
25760
  z56.object({
25139
25761
  amount: optional3(number2()),
25140
- additional_currencies: optional3(
25141
- z56.array(z56.lazy(() => GetPlanAddItemAdditionalCurrency$inboundSchema))
25142
- ),
25143
- tiers: optional3(
25144
- z56.array(z56.lazy(() => GetPlanVariantDetailsPriceTier$inboundSchema))
25145
- ),
25762
+ additional_currencies: optional3(z56.array(z56.lazy(
25763
+ () => GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
25764
+ ))),
25765
+ tiers: optional3(z56.array(z56.lazy(
25766
+ () => GetPlanVariantDetailsPriceTier$inboundSchema
25767
+ ))),
25146
25768
  tier_behavior: optional3(
25147
25769
  GetPlanVariantDetailsTierBehavior$inboundSchema
25148
25770
  ),
25149
- interval: GetPlanAddItemPriceInterval$inboundSchema,
25771
+ interval: GetPlanVariantDetailsAddItemPriceInterval$inboundSchema,
25150
25772
  interval_count: z56._default(number2(), 1),
25151
25773
  billing_units: z56._default(number2(), 1),
25152
- billing_method: GetPlanAddItemBillingMethod$inboundSchema,
25774
+ billing_method: GetPlanVariantDetailsAddItemBillingMethod$inboundSchema,
25153
25775
  max_purchase: z56.optional(z56.nullable(number2()))
25154
25776
  }),
25155
25777
  z56.transform((v) => {
@@ -25163,12 +25785,12 @@ var GetPlanVariantDetailsPrice$inboundSchema = z56.pipe(
25163
25785
  });
25164
25786
  })
25165
25787
  );
25166
- var GetPlanOnIncrease$inboundSchema = inboundSchema(GetPlanOnIncrease);
25167
- var GetPlanOnDecrease$inboundSchema = inboundSchema(GetPlanOnDecrease);
25168
- var GetPlanProration$inboundSchema = z56.pipe(
25788
+ var GetPlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnIncrease);
25789
+ var GetPlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnDecrease);
25790
+ var GetPlanVariantDetailsProration$inboundSchema = z56.pipe(
25169
25791
  z56.object({
25170
- on_increase: GetPlanOnIncrease$inboundSchema,
25171
- on_decrease: GetPlanOnDecrease$inboundSchema
25792
+ on_increase: GetPlanVariantDetailsOnIncrease$inboundSchema,
25793
+ on_decrease: GetPlanVariantDetailsOnDecrease$inboundSchema
25172
25794
  }),
25173
25795
  z56.transform((v) => {
25174
25796
  return remap(v, {
@@ -25439,7 +26061,7 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
25439
26061
  });
25440
26062
  })
25441
26063
  );
25442
- var GetPlanPlanItem$inboundSchema = z56.pipe(
26064
+ var GetPlanVariantDetailsPlanItem$inboundSchema = z56.pipe(
25443
26065
  z56.object({
25444
26066
  threshold_billing: z56.optional(z56.nullable(z56.lazy(
25445
26067
  () => GetPlanVariantDetailsThresholdBilling$inboundSchema
@@ -25454,7 +26076,9 @@ var GetPlanPlanItem$inboundSchema = z56.pipe(
25454
26076
  price: optional3(
25455
26077
  z56.lazy(() => GetPlanVariantDetailsPrice$inboundSchema)
25456
26078
  ),
25457
- proration: optional3(z56.lazy(() => GetPlanProration$inboundSchema)),
26079
+ proration: optional3(
26080
+ z56.lazy(() => GetPlanVariantDetailsProration$inboundSchema)
26081
+ ),
25458
26082
  rollover: optional3(
25459
26083
  z56.lazy(() => GetPlanVariantDetailsRollover$inboundSchema)
25460
26084
  ),
@@ -25473,23 +26097,23 @@ var GetPlanPlanItem$inboundSchema = z56.pipe(
25473
26097
  });
25474
26098
  })
25475
26099
  );
25476
- var GetPlanRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanRemoveItemBillingMethod);
25477
- var GetPlanIntervalRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalRemoveItemEnum2);
25478
- var GetPlanIntervalRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalRemoveItemEnum1);
25479
- var GetPlanIntervalUnion$inboundSchema = smartUnion([
25480
- GetPlanIntervalRemoveItemEnum1$inboundSchema,
25481
- GetPlanIntervalRemoveItemEnum2$inboundSchema
26100
+ var GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsRemoveItemBillingMethod);
26101
+ var GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum2);
26102
+ var GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum1);
26103
+ var GetPlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
26104
+ GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
26105
+ GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
25482
26106
  ]);
25483
- var GetPlanPlanItemFilter$inboundSchema = z56.pipe(
26107
+ var GetPlanVariantDetailsPlanItemFilter$inboundSchema = z56.pipe(
25484
26108
  z56.object({
25485
26109
  feature_id: optional3(string5()),
25486
26110
  billing_method: optional3(
25487
- GetPlanRemoveItemBillingMethod$inboundSchema
26111
+ GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema
25488
26112
  ),
25489
26113
  interval: optional3(
25490
26114
  smartUnion([
25491
- GetPlanIntervalRemoveItemEnum1$inboundSchema,
25492
- GetPlanIntervalRemoveItemEnum2$inboundSchema
26115
+ GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
26116
+ GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
25493
26117
  ])
25494
26118
  ),
25495
26119
  interval_count: optional3(number2()),
@@ -25713,6 +26337,96 @@ var GetPlanIntervalUpsertLicenseRemoveItemEnum1 = {
25713
26337
  SemiAnnual: "semi_annual",
25714
26338
  Year: "year"
25715
26339
  };
26340
+ var GetPlanPriceLicenseInterval = {
26341
+ OneOff: "one_off",
26342
+ Week: "week",
26343
+ Month: "month",
26344
+ Quarter: "quarter",
26345
+ SemiAnnual: "semi_annual",
26346
+ Year: "year"
26347
+ };
26348
+ var GetPlanLicenseResetInterval = {
26349
+ OneOff: "one_off",
26350
+ Minute: "minute",
26351
+ Hour: "hour",
26352
+ Day: "day",
26353
+ Week: "week",
26354
+ Month: "month",
26355
+ Quarter: "quarter",
26356
+ SemiAnnual: "semi_annual",
26357
+ Year: "year"
26358
+ };
26359
+ var GetPlanLicenseTierBehavior = {
26360
+ Graduated: "graduated",
26361
+ Volume: "volume"
26362
+ };
26363
+ var GetPlanLicenseAddItemPriceInterval = {
26364
+ OneOff: "one_off",
26365
+ Week: "week",
26366
+ Month: "month",
26367
+ Quarter: "quarter",
26368
+ SemiAnnual: "semi_annual",
26369
+ Year: "year"
26370
+ };
26371
+ var GetPlanLicenseAddItemBillingMethod = {
26372
+ Prepaid: "prepaid",
26373
+ UsageBased: "usage_based"
26374
+ };
26375
+ var GetPlanLicenseOnIncrease = {
26376
+ BillImmediately: "bill_immediately",
26377
+ ProrateImmediately: "prorate_immediately",
26378
+ ProrateNextCycle: "prorate_next_cycle",
26379
+ BillNextCycle: "bill_next_cycle"
26380
+ };
26381
+ var GetPlanLicenseOnDecrease = {
26382
+ Prorate: "prorate",
26383
+ ProrateImmediately: "prorate_immediately",
26384
+ ProrateNextCycle: "prorate_next_cycle",
26385
+ None: "none",
26386
+ NoProrations: "no_prorations"
26387
+ };
26388
+ var GetPlanLicenseExpiryDurationType = {
26389
+ Month: "month",
26390
+ Forever: "forever"
26391
+ };
26392
+ var GetPlanLicenseDuration = {
26393
+ Day: "day",
26394
+ Week: "week",
26395
+ Month: "month",
26396
+ Year: "year"
26397
+ };
26398
+ var GetPlanDimensionsToLicenseEnum2 = {
26399
+ Inf: "inf"
26400
+ };
26401
+ var GetPlanDimensionsToLicenseEnum1 = {
26402
+ Inf: "inf"
26403
+ };
26404
+ var GetPlanToLicenseEnum = {
26405
+ Inf: "inf"
26406
+ };
26407
+ var GetPlanLicenseRemoveItemBillingMethod = {
26408
+ Prepaid: "prepaid",
26409
+ UsageBased: "usage_based"
26410
+ };
26411
+ var GetPlanIntervalLicenseRemoveItemEnum2 = {
26412
+ OneOff: "one_off",
26413
+ Minute: "minute",
26414
+ Hour: "hour",
26415
+ Day: "day",
26416
+ Week: "week",
26417
+ Month: "month",
26418
+ Quarter: "quarter",
26419
+ SemiAnnual: "semi_annual",
26420
+ Year: "year"
26421
+ };
26422
+ var GetPlanIntervalLicenseRemoveItemEnum1 = {
26423
+ OneOff: "one_off",
26424
+ Week: "week",
26425
+ Month: "month",
26426
+ Quarter: "quarter",
26427
+ SemiAnnual: "semi_annual",
26428
+ Year: "year"
26429
+ };
25716
26430
  var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
25717
26431
  z57.object({
25718
26432
  feature_id: string5(),
@@ -26241,11 +26955,15 @@ var GetPlanRemoveLicense$inboundSchema = z57.pipe(
26241
26955
  });
26242
26956
  })
26243
26957
  );
26244
- var GetPlanCustomize$inboundSchema = z57.pipe(
26958
+ var GetPlanVariantDetailsCustomize$inboundSchema = z57.pipe(
26245
26959
  z57.object({
26246
- price: z57.optional(z57.nullable(GetPlanBasePrice$inboundSchema)),
26247
- add_items: optional3(z57.array(GetPlanPlanItem$inboundSchema)),
26248
- remove_items: optional3(z57.array(GetPlanPlanItemFilter$inboundSchema)),
26960
+ price: z57.optional(z57.nullable(GetPlanVariantDetailsBasePrice$inboundSchema)),
26961
+ add_items: optional3(
26962
+ z57.array(GetPlanVariantDetailsPlanItem$inboundSchema)
26963
+ ),
26964
+ remove_items: optional3(
26965
+ z57.array(GetPlanVariantDetailsPlanItemFilter$inboundSchema)
26966
+ ),
26249
26967
  free_trial: z57.optional(z57.nullable(GetPlanFreeTrialParams$inboundSchema)),
26250
26968
  billing_controls: optional3(
26251
26969
  z57.lazy(() => GetPlanVariantDetailsBillingControls$inboundSchema)
@@ -26271,7 +26989,9 @@ var GetPlanCustomize$inboundSchema = z57.pipe(
26271
26989
  var GetPlanVariantDetails$inboundSchema = z57.pipe(
26272
26990
  z57.object({
26273
26991
  base_plan_id: string5(),
26274
- customize: optional3(z57.lazy(() => GetPlanCustomize$inboundSchema))
26992
+ customize: optional3(
26993
+ z57.lazy(() => GetPlanVariantDetailsCustomize$inboundSchema)
26994
+ )
26275
26995
  }),
26276
26996
  z57.transform((v) => {
26277
26997
  return remap(v, {
@@ -26279,6 +26999,464 @@ var GetPlanVariantDetails$inboundSchema = z57.pipe(
26279
26999
  });
26280
27000
  })
26281
27001
  );
27002
+ var GetPlanPriceLicenseInterval$inboundSchema = inboundSchema(GetPlanPriceLicenseInterval);
27003
+ var GetPlanLicenseAdditionalCurrency$inboundSchema = z57.object({
27004
+ currency: string5(),
27005
+ amount: number2()
27006
+ });
27007
+ var GetPlanLicenseBasePrice$inboundSchema = z57.pipe(
27008
+ z57.object({
27009
+ amount: number2(),
27010
+ interval: GetPlanPriceLicenseInterval$inboundSchema,
27011
+ interval_count: z57._default(number2(), 1),
27012
+ additional_currencies: optional3(
27013
+ z57.array(z57.lazy(() => GetPlanLicenseAdditionalCurrency$inboundSchema))
27014
+ )
27015
+ }),
27016
+ z57.transform((v) => {
27017
+ return remap(v, {
27018
+ "interval_count": "intervalCount",
27019
+ "additional_currencies": "additionalCurrencies"
27020
+ });
27021
+ })
27022
+ );
27023
+ var GetPlanLicenseThresholdBilling$inboundSchema = z57.object({
27024
+ threshold: number2()
27025
+ });
27026
+ var GetPlanLicenseResetInterval$inboundSchema = inboundSchema(GetPlanLicenseResetInterval);
27027
+ var GetPlanLicenseReset$inboundSchema = z57.pipe(
27028
+ z57.object({
27029
+ interval: GetPlanLicenseResetInterval$inboundSchema,
27030
+ interval_count: z57._default(number2(), 1)
27031
+ }),
27032
+ z57.transform((v) => {
27033
+ return remap(v, {
27034
+ "interval_count": "intervalCount"
27035
+ });
27036
+ })
27037
+ );
27038
+ var GetPlanLicenseAddItemAdditionalCurrency$inboundSchema = z57.object({
27039
+ currency: string5(),
27040
+ amount: number2()
27041
+ });
27042
+ var GetPlanLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
27043
+ var GetPlanLicenseTierAdditionalCurrency$inboundSchema = z57.pipe(
27044
+ z57.object({
27045
+ currency: string5(),
27046
+ amount: optional3(number2()),
27047
+ flat_amount: optional3(number2())
27048
+ }),
27049
+ z57.transform((v) => {
27050
+ return remap(v, {
27051
+ "flat_amount": "flatAmount"
27052
+ });
27053
+ })
27054
+ );
27055
+ var GetPlanLicensePriceTier$inboundSchema = z57.pipe(
27056
+ z57.object({
27057
+ to: smartUnion([number2(), string5()]),
27058
+ amount: number2(),
27059
+ flat_amount: optional3(number2()),
27060
+ additional_currencies: optional3(
27061
+ z57.array(z57.lazy(() => GetPlanLicenseTierAdditionalCurrency$inboundSchema))
27062
+ )
27063
+ }),
27064
+ z57.transform((v) => {
27065
+ return remap(v, {
27066
+ "flat_amount": "flatAmount",
27067
+ "additional_currencies": "additionalCurrencies"
27068
+ });
27069
+ })
27070
+ );
27071
+ var GetPlanLicenseTierBehavior$inboundSchema = inboundSchema(GetPlanLicenseTierBehavior);
27072
+ var GetPlanLicenseAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanLicenseAddItemPriceInterval);
27073
+ var GetPlanLicenseAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseAddItemBillingMethod);
27074
+ var GetPlanLicensePrice$inboundSchema = z57.pipe(
27075
+ z57.object({
27076
+ amount: optional3(number2()),
27077
+ additional_currencies: optional3(z57.array(z57.lazy(
27078
+ () => GetPlanLicenseAddItemAdditionalCurrency$inboundSchema
27079
+ ))),
27080
+ tiers: optional3(z57.array(z57.lazy(
27081
+ () => GetPlanLicensePriceTier$inboundSchema
27082
+ ))),
27083
+ tier_behavior: optional3(GetPlanLicenseTierBehavior$inboundSchema),
27084
+ interval: GetPlanLicenseAddItemPriceInterval$inboundSchema,
27085
+ interval_count: z57._default(number2(), 1),
27086
+ billing_units: z57._default(number2(), 1),
27087
+ billing_method: GetPlanLicenseAddItemBillingMethod$inboundSchema,
27088
+ max_purchase: z57.optional(z57.nullable(number2()))
27089
+ }),
27090
+ z57.transform((v) => {
27091
+ return remap(v, {
27092
+ "additional_currencies": "additionalCurrencies",
27093
+ "tier_behavior": "tierBehavior",
27094
+ "interval_count": "intervalCount",
27095
+ "billing_units": "billingUnits",
27096
+ "billing_method": "billingMethod",
27097
+ "max_purchase": "maxPurchase"
27098
+ });
27099
+ })
27100
+ );
27101
+ var GetPlanLicenseOnIncrease$inboundSchema = inboundSchema(GetPlanLicenseOnIncrease);
27102
+ var GetPlanLicenseOnDecrease$inboundSchema = inboundSchema(GetPlanLicenseOnDecrease);
27103
+ var GetPlanLicenseProration$inboundSchema = z57.pipe(
27104
+ z57.object({
27105
+ on_increase: GetPlanLicenseOnIncrease$inboundSchema,
27106
+ on_decrease: GetPlanLicenseOnDecrease$inboundSchema
27107
+ }),
27108
+ z57.transform((v) => {
27109
+ return remap(v, {
27110
+ "on_increase": "onIncrease",
27111
+ "on_decrease": "onDecrease"
27112
+ });
27113
+ })
27114
+ );
27115
+ var GetPlanLicenseExpiryDurationType$inboundSchema = inboundSchema(GetPlanLicenseExpiryDurationType);
27116
+ var GetPlanLicenseRollover$inboundSchema = z57.pipe(
27117
+ z57.object({
27118
+ max: optional3(number2()),
27119
+ max_percentage: optional3(number2()),
27120
+ expiry_duration_type: GetPlanLicenseExpiryDurationType$inboundSchema,
27121
+ expiry_duration_length: optional3(number2())
27122
+ }),
27123
+ z57.transform((v) => {
27124
+ return remap(v, {
27125
+ "max_percentage": "maxPercentage",
27126
+ "expiry_duration_type": "expiryDurationType",
27127
+ "expiry_duration_length": "expiryDurationLength"
27128
+ });
27129
+ })
27130
+ );
27131
+ var GetPlanLicenseDuration$inboundSchema = inboundSchema(GetPlanLicenseDuration);
27132
+ var GetPlanLicenseExpiry$inboundSchema = z57.object({
27133
+ duration: GetPlanLicenseDuration$inboundSchema,
27134
+ length: number2()
27135
+ });
27136
+ var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
27137
+ z57.object({
27138
+ match: z57.record(z57.string(), string5()),
27139
+ priority: optional3(number2()),
27140
+ credit_cost: number2()
27141
+ }),
27142
+ z57.transform((v) => {
27143
+ return remap(v, {
27144
+ "credit_cost": "creditCost"
27145
+ });
27146
+ })
27147
+ );
27148
+ var GetPlanDimensionsToLicenseEnum2$inboundSchema = z57.enum(GetPlanDimensionsToLicenseEnum2);
27149
+ var GetPlanDimensionsLicenseToUnion2$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum2$inboundSchema]);
27150
+ var GetPlanDimensionsLicenseTier2$inboundSchema = z57.pipe(
27151
+ z57.object({
27152
+ to: smartUnion([
27153
+ number2(),
27154
+ GetPlanDimensionsToLicenseEnum2$inboundSchema
27155
+ ]),
27156
+ credit_cost: number2()
27157
+ }),
27158
+ z57.transform((v) => {
27159
+ return remap(v, {
27160
+ "credit_cost": "creditCost"
27161
+ });
27162
+ })
27163
+ );
27164
+ var GetPlanDimensionsLicense3$inboundSchema = z57.pipe(
27165
+ z57.object({
27166
+ match: z57.record(z57.string(), string5()),
27167
+ priority: optional3(number2()),
27168
+ tier_behavior: literal3("graduated"),
27169
+ tiers: z57.array(z57.lazy(() => GetPlanDimensionsLicenseTier2$inboundSchema))
27170
+ }),
27171
+ z57.transform((v) => {
27172
+ return remap(v, {
27173
+ "tier_behavior": "tierBehavior"
27174
+ });
27175
+ })
27176
+ );
27177
+ var GetPlanLicenseDimensionsUnion2$inboundSchema = smartUnion([
27178
+ z57.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
27179
+ z57.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
27180
+ ]);
27181
+ var GetPlanLicenseMultipliers2$inboundSchema = z57.object({
27182
+ match: z57.record(z57.string(), string5()),
27183
+ factor: optional3(number2()),
27184
+ add: optional3(number2())
27185
+ });
27186
+ var GetPlanCreditSchemaLicense2$inboundSchema = z57.pipe(
27187
+ z57.object({
27188
+ metered_feature_id: string5(),
27189
+ billing_units: optional3(number2()),
27190
+ dimensions: optional3(z57.record(
27191
+ z57.string(),
27192
+ smartUnion([
27193
+ z57.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
27194
+ z57.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
27195
+ ])
27196
+ )),
27197
+ multipliers: optional3(z57.record(
27198
+ z57.string(),
27199
+ z57.lazy(() => GetPlanLicenseMultipliers2$inboundSchema)
27200
+ )),
27201
+ credit_cost: number2()
27202
+ }),
27203
+ z57.transform((v) => {
27204
+ return remap(v, {
27205
+ "metered_feature_id": "meteredFeatureId",
27206
+ "billing_units": "billingUnits",
27207
+ "credit_cost": "creditCost"
27208
+ });
27209
+ })
27210
+ );
27211
+ var GetPlanDimensionsLicense2$inboundSchema = z57.pipe(
27212
+ z57.object({
27213
+ match: z57.record(z57.string(), string5()),
27214
+ priority: optional3(number2()),
27215
+ credit_cost: number2()
27216
+ }),
27217
+ z57.transform((v) => {
27218
+ return remap(v, {
27219
+ "credit_cost": "creditCost"
27220
+ });
27221
+ })
27222
+ );
27223
+ var GetPlanDimensionsToLicenseEnum1$inboundSchema = z57.enum(GetPlanDimensionsToLicenseEnum1);
27224
+ var GetPlanDimensionsLicenseToUnion1$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum1$inboundSchema]);
27225
+ var GetPlanDimensionsLicenseTier1$inboundSchema = z57.pipe(
27226
+ z57.object({
27227
+ to: smartUnion([
27228
+ number2(),
27229
+ GetPlanDimensionsToLicenseEnum1$inboundSchema
27230
+ ]),
27231
+ credit_cost: number2()
27232
+ }),
27233
+ z57.transform((v) => {
27234
+ return remap(v, {
27235
+ "credit_cost": "creditCost"
27236
+ });
27237
+ })
27238
+ );
27239
+ var GetPlanDimensionsLicense1$inboundSchema = z57.pipe(
27240
+ z57.object({
27241
+ match: z57.record(z57.string(), string5()),
27242
+ priority: optional3(number2()),
27243
+ tier_behavior: literal3("graduated"),
27244
+ tiers: z57.array(z57.lazy(() => GetPlanDimensionsLicenseTier1$inboundSchema))
27245
+ }),
27246
+ z57.transform((v) => {
27247
+ return remap(v, {
27248
+ "tier_behavior": "tierBehavior"
27249
+ });
27250
+ })
27251
+ );
27252
+ var GetPlanLicenseDimensionsUnion1$inboundSchema = smartUnion([
27253
+ z57.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
27254
+ z57.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
27255
+ ]);
27256
+ var GetPlanLicenseMultipliers1$inboundSchema = z57.object({
27257
+ match: z57.record(z57.string(), string5()),
27258
+ factor: optional3(number2()),
27259
+ add: optional3(number2())
27260
+ });
27261
+ var GetPlanToLicenseEnum$inboundSchema = z57.enum(GetPlanToLicenseEnum);
27262
+ var GetPlanLicenseFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]);
27263
+ var GetPlanLicenseFeatureOverrideTier$inboundSchema = z57.pipe(
27264
+ z57.object({
27265
+ to: smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]),
27266
+ credit_cost: number2()
27267
+ }),
27268
+ z57.transform((v) => {
27269
+ return remap(v, {
27270
+ "credit_cost": "creditCost"
27271
+ });
27272
+ })
27273
+ );
27274
+ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
27275
+ z57.object({
27276
+ metered_feature_id: string5(),
27277
+ billing_units: optional3(number2()),
27278
+ dimensions: optional3(z57.record(
27279
+ z57.string(),
27280
+ smartUnion([
27281
+ z57.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
27282
+ z57.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
27283
+ ])
27284
+ )),
27285
+ multipliers: optional3(z57.record(
27286
+ z57.string(),
27287
+ z57.lazy(() => GetPlanLicenseMultipliers1$inboundSchema)
27288
+ )),
27289
+ tier_behavior: literal3("graduated"),
27290
+ tiers: z57.array(z57.lazy(
27291
+ () => GetPlanLicenseFeatureOverrideTier$inboundSchema
27292
+ ))
27293
+ }),
27294
+ z57.transform((v) => {
27295
+ return remap(v, {
27296
+ "metered_feature_id": "meteredFeatureId",
27297
+ "billing_units": "billingUnits",
27298
+ "tier_behavior": "tierBehavior"
27299
+ });
27300
+ })
27301
+ );
27302
+ var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
27303
+ z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
27304
+ z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
27305
+ ]);
27306
+ var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
27307
+ markup: number2()
27308
+ });
27309
+ var GetPlanLicenseModelMarkups$inboundSchema = z57.pipe(
27310
+ z57.object({
27311
+ markup: optional3(number2()),
27312
+ input_cost: optional3(number2()),
27313
+ output_cost: optional3(number2())
27314
+ }),
27315
+ z57.transform((v) => {
27316
+ return remap(v, {
27317
+ "input_cost": "inputCost",
27318
+ "output_cost": "outputCost"
27319
+ });
27320
+ })
27321
+ );
27322
+ var GetPlanLicenseMarkups$inboundSchema = z57.pipe(
27323
+ z57.object({
27324
+ default_markup: optional3(number2()),
27325
+ provider_markups: z57.optional(z57.nullable(z57.record(
27326
+ z57.string(),
27327
+ z57.lazy(() => GetPlanLicenseProviderMarkups$inboundSchema)
27328
+ ))),
27329
+ model_markups: z57.optional(z57.nullable(z57.record(
27330
+ z57.string(),
27331
+ z57.lazy(() => GetPlanLicenseModelMarkups$inboundSchema)
27332
+ )))
27333
+ }),
27334
+ z57.transform((v) => {
27335
+ return remap(v, {
27336
+ "default_markup": "defaultMarkup",
27337
+ "provider_markups": "providerMarkups",
27338
+ "model_markups": "modelMarkups"
27339
+ });
27340
+ })
27341
+ );
27342
+ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
27343
+ z57.object({
27344
+ credit_schema: optional3(z57.array(smartUnion([
27345
+ z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
27346
+ z57.lazy(
27347
+ () => GetPlanCreditSchemaLicense2$inboundSchema
27348
+ )
27349
+ ]))),
27350
+ markups: optional3(z57.lazy(
27351
+ () => GetPlanLicenseMarkups$inboundSchema
27352
+ ))
27353
+ }),
27354
+ z57.transform((v) => {
27355
+ return remap(v, {
27356
+ "credit_schema": "creditSchema"
27357
+ });
27358
+ })
27359
+ );
27360
+ var GetPlanLicensePlanItem$inboundSchema = z57.pipe(
27361
+ z57.object({
27362
+ threshold_billing: z57.optional(
27363
+ z57.nullable(z57.lazy(() => GetPlanLicenseThresholdBilling$inboundSchema))
27364
+ ),
27365
+ feature_id: string5(),
27366
+ included: optional3(number2()),
27367
+ unlimited: optional3(boolean2()),
27368
+ pooled: z57._default(boolean2(), false),
27369
+ reset: optional3(z57.lazy(() => GetPlanLicenseReset$inboundSchema)),
27370
+ price: optional3(z57.lazy(() => GetPlanLicensePrice$inboundSchema)),
27371
+ proration: optional3(
27372
+ z57.lazy(() => GetPlanLicenseProration$inboundSchema)
27373
+ ),
27374
+ rollover: optional3(
27375
+ z57.lazy(() => GetPlanLicenseRollover$inboundSchema)
27376
+ ),
27377
+ expiry: optional3(z57.lazy(() => GetPlanLicenseExpiry$inboundSchema)),
27378
+ feature_override: optional3(
27379
+ z57.lazy(() => GetPlanLicenseFeatureOverride$inboundSchema)
27380
+ )
27381
+ }),
27382
+ z57.transform((v) => {
27383
+ return remap(v, {
27384
+ "threshold_billing": "thresholdBilling",
27385
+ "feature_id": "featureId",
27386
+ "feature_override": "featureOverride"
27387
+ });
27388
+ })
27389
+ );
27390
+ var GetPlanLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseRemoveItemBillingMethod);
27391
+ var GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum2);
27392
+ var GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum1);
27393
+ var GetPlanLicenseIntervalUnion$inboundSchema = smartUnion([
27394
+ GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
27395
+ GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
27396
+ ]);
27397
+ var GetPlanLicensePlanItemFilter$inboundSchema = z57.pipe(
27398
+ z57.object({
27399
+ feature_id: optional3(string5()),
27400
+ billing_method: optional3(
27401
+ GetPlanLicenseRemoveItemBillingMethod$inboundSchema
27402
+ ),
27403
+ interval: optional3(
27404
+ smartUnion([
27405
+ GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
27406
+ GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
27407
+ ])
27408
+ ),
27409
+ interval_count: optional3(number2()),
27410
+ included: optional3(number2())
27411
+ }),
27412
+ z57.transform((v) => {
27413
+ return remap(v, {
27414
+ "feature_id": "featureId",
27415
+ "billing_method": "billingMethod",
27416
+ "interval_count": "intervalCount"
27417
+ });
27418
+ })
27419
+ );
27420
+ var GetPlanLicenseCustomize$inboundSchema = z57.pipe(
27421
+ z57.object({
27422
+ price: z57.optional(
27423
+ z57.nullable(z57.lazy(() => GetPlanLicenseBasePrice$inboundSchema))
27424
+ ),
27425
+ add_items: optional3(
27426
+ z57.array(z57.lazy(() => GetPlanLicensePlanItem$inboundSchema))
27427
+ ),
27428
+ remove_items: optional3(
27429
+ z57.array(z57.lazy(() => GetPlanLicensePlanItemFilter$inboundSchema))
27430
+ )
27431
+ }),
27432
+ z57.transform((v) => {
27433
+ return remap(v, {
27434
+ "add_items": "addItems",
27435
+ "remove_items": "removeItems"
27436
+ });
27437
+ })
27438
+ );
27439
+ var GetPlanLicense$inboundSchema = z57.pipe(
27440
+ z57.object({
27441
+ license_plan_id: string5(),
27442
+ version: number2(),
27443
+ version_slug: optional3(string5()),
27444
+ included: number2(),
27445
+ prepaid_only: boolean2(),
27446
+ customize: optional3(
27447
+ z57.lazy(() => GetPlanLicenseCustomize$inboundSchema)
27448
+ ),
27449
+ metadata: optional3(z57.record(z57.string(), z57.any())),
27450
+ plan: optional3(Plan$inboundSchema)
27451
+ }),
27452
+ z57.transform((v) => {
27453
+ return remap(v, {
27454
+ "license_plan_id": "licensePlanId",
27455
+ "version_slug": "versionSlug",
27456
+ "prepaid_only": "prepaidOnly"
27457
+ });
27458
+ })
27459
+ );
26282
27460
  var GetPlanResponse$inboundSchema = z57.pipe(
26283
27461
  z57.object({
26284
27462
  id: string5(),
@@ -26306,6 +27484,9 @@ var GetPlanResponse$inboundSchema = z57.pipe(
26306
27484
  base_variant_id: nullable(string5()),
26307
27485
  variant_details: optional3(
26308
27486
  z57.lazy(() => GetPlanVariantDetails$inboundSchema)
27487
+ ),
27488
+ licenses: optional3(
27489
+ z57.array(z57.lazy(() => GetPlanLicense$inboundSchema))
26309
27490
  )
26310
27491
  }),
26311
27492
  z57.transform((v) => {
@@ -48234,7 +49415,7 @@ var UpdatePlanDimensionsToItemRequestBodyEnum1 = {
48234
49415
  var UpdatePlanToItemRequestBodyEnum = {
48235
49416
  Inf: "inf"
48236
49417
  };
48237
- var UpdatePlanPriceLicenseInterval = {
49418
+ var UpdatePlanPriceLicenseIntervalRequestBody = {
48238
49419
  OneOff: "one_off",
48239
49420
  Week: "week",
48240
49421
  Month: "month",
@@ -48242,7 +49423,7 @@ var UpdatePlanPriceLicenseInterval = {
48242
49423
  SemiAnnual: "semi_annual",
48243
49424
  Year: "year"
48244
49425
  };
48245
- var UpdatePlanLicenseResetInterval = {
49426
+ var UpdatePlanLicenseResetIntervalRequestBody = {
48246
49427
  OneOff: "one_off",
48247
49428
  Minute: "minute",
48248
49429
  Hour: "hour",
@@ -48253,11 +49434,11 @@ var UpdatePlanLicenseResetInterval = {
48253
49434
  SemiAnnual: "semi_annual",
48254
49435
  Year: "year"
48255
49436
  };
48256
- var UpdatePlanLicenseTierBehavior = {
49437
+ var UpdatePlanLicenseTierBehaviorRequestBody = {
48257
49438
  Graduated: "graduated",
48258
49439
  Volume: "volume"
48259
49440
  };
48260
- var UpdatePlanLicenseAddItemPriceInterval = {
49441
+ var UpdatePlanLicenseAddItemPriceIntervalRequestBody = {
48261
49442
  OneOff: "one_off",
48262
49443
  Week: "week",
48263
49444
  Month: "month",
@@ -48265,47 +49446,47 @@ var UpdatePlanLicenseAddItemPriceInterval = {
48265
49446
  SemiAnnual: "semi_annual",
48266
49447
  Year: "year"
48267
49448
  };
48268
- var UpdatePlanLicenseAddItemBillingMethod = {
49449
+ var UpdatePlanLicenseAddItemBillingMethodRequestBody = {
48269
49450
  Prepaid: "prepaid",
48270
49451
  UsageBased: "usage_based"
48271
49452
  };
48272
- var UpdatePlanLicenseOnIncrease = {
49453
+ var UpdatePlanLicenseOnIncreaseRequestBody = {
48273
49454
  BillImmediately: "bill_immediately",
48274
49455
  ProrateImmediately: "prorate_immediately",
48275
49456
  ProrateNextCycle: "prorate_next_cycle",
48276
49457
  BillNextCycle: "bill_next_cycle"
48277
49458
  };
48278
- var UpdatePlanLicenseOnDecrease = {
49459
+ var UpdatePlanLicenseOnDecreaseRequestBody = {
48279
49460
  Prorate: "prorate",
48280
49461
  ProrateImmediately: "prorate_immediately",
48281
49462
  ProrateNextCycle: "prorate_next_cycle",
48282
49463
  None: "none",
48283
49464
  NoProrations: "no_prorations"
48284
49465
  };
48285
- var UpdatePlanLicenseExpiryDurationType = {
49466
+ var UpdatePlanLicenseExpiryDurationTypeRequestBody = {
48286
49467
  Month: "month",
48287
49468
  Forever: "forever"
48288
49469
  };
48289
- var UpdatePlanLicenseDuration = {
49470
+ var UpdatePlanLicenseDurationRequestBody = {
48290
49471
  Day: "day",
48291
49472
  Week: "week",
48292
49473
  Month: "month",
48293
49474
  Year: "year"
48294
49475
  };
48295
- var UpdatePlanDimensionsToLicenseEnum2 = {
49476
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum2 = {
48296
49477
  Inf: "inf"
48297
49478
  };
48298
- var UpdatePlanDimensionsToLicenseEnum1 = {
49479
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum1 = {
48299
49480
  Inf: "inf"
48300
49481
  };
48301
- var UpdatePlanToLicenseEnum = {
49482
+ var UpdatePlanToLicenseRequestBodyEnum = {
48302
49483
  Inf: "inf"
48303
49484
  };
48304
- var UpdatePlanLicenseRemoveItemBillingMethod = {
49485
+ var UpdatePlanLicenseRemoveItemBillingMethodRequestBody = {
48305
49486
  Prepaid: "prepaid",
48306
49487
  UsageBased: "usage_based"
48307
49488
  };
48308
- var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
49489
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2 = {
48309
49490
  OneOff: "one_off",
48310
49491
  Minute: "minute",
48311
49492
  Hour: "hour",
@@ -48316,7 +49497,7 @@ var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
48316
49497
  SemiAnnual: "semi_annual",
48317
49498
  Year: "year"
48318
49499
  };
48319
- var UpdatePlanIntervalLicenseRemoveItemEnum1 = {
49500
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1 = {
48320
49501
  OneOff: "one_off",
48321
49502
  Week: "week",
48322
49503
  Month: "month",
@@ -48847,19 +50028,21 @@ var UpdatePlanItemPlanItem$outboundSchema = z113.pipe(
48847
50028
  });
48848
50029
  })
48849
50030
  );
48850
- var UpdatePlanPriceLicenseInterval$outboundSchema = z113.enum(UpdatePlanPriceLicenseInterval);
48851
- var UpdatePlanLicenseAdditionalCurrency$outboundSchema = z113.object({
50031
+ var UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema = z113.enum(
50032
+ UpdatePlanPriceLicenseIntervalRequestBody
50033
+ );
50034
+ var UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z113.object({
48852
50035
  currency: z113.string(),
48853
50036
  amount: z113.number()
48854
50037
  });
48855
- var UpdatePlanLicenseBasePrice$outboundSchema = z113.pipe(
50038
+ var UpdatePlanLicenseBasePriceRequestBody$outboundSchema = z113.pipe(
48856
50039
  z113.object({
48857
50040
  amount: z113.number(),
48858
- interval: UpdatePlanPriceLicenseInterval$outboundSchema,
50041
+ interval: UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema,
48859
50042
  intervalCount: z113._default(z113.number(), 1),
48860
- additionalCurrencies: z113.optional(
48861
- z113.array(z113.lazy(() => UpdatePlanLicenseAdditionalCurrency$outboundSchema))
48862
- )
50043
+ additionalCurrencies: z113.optional(z113.array(z113.lazy(
50044
+ () => UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
50045
+ )))
48863
50046
  }),
48864
50047
  z113.transform((v) => {
48865
50048
  return remap(v, {
@@ -48868,13 +50051,15 @@ var UpdatePlanLicenseBasePrice$outboundSchema = z113.pipe(
48868
50051
  });
48869
50052
  })
48870
50053
  );
48871
- var UpdatePlanLicenseThresholdBilling$outboundSchema = z113.object({
50054
+ var UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema = z113.object({
48872
50055
  threshold: z113.number()
48873
50056
  });
48874
- var UpdatePlanLicenseResetInterval$outboundSchema = z113.enum(UpdatePlanLicenseResetInterval);
48875
- var UpdatePlanLicenseReset$outboundSchema = z113.pipe(
50057
+ var UpdatePlanLicenseResetIntervalRequestBody$outboundSchema = z113.enum(
50058
+ UpdatePlanLicenseResetIntervalRequestBody
50059
+ );
50060
+ var UpdatePlanLicenseResetRequestBody$outboundSchema = z113.pipe(
48876
50061
  z113.object({
48877
- interval: UpdatePlanLicenseResetInterval$outboundSchema,
50062
+ interval: UpdatePlanLicenseResetIntervalRequestBody$outboundSchema,
48878
50063
  intervalCount: z113._default(z113.number(), 1)
48879
50064
  }),
48880
50065
  z113.transform((v) => {
@@ -48883,12 +50068,12 @@ var UpdatePlanLicenseReset$outboundSchema = z113.pipe(
48883
50068
  });
48884
50069
  })
48885
50070
  );
48886
- var UpdatePlanLicenseAddItemAdditionalCurrency$outboundSchema = z113.object({
50071
+ var UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema = z113.object({
48887
50072
  currency: z113.string(),
48888
50073
  amount: z113.number()
48889
50074
  });
48890
- var UpdatePlanLicensePriceTo$outboundSchema = smartUnion([z113.number(), z113.string()]);
48891
- var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z113.pipe(
50075
+ var UpdatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z113.number(), z113.string()]);
50076
+ var UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z113.pipe(
48892
50077
  z113.object({
48893
50078
  currency: z113.string(),
48894
50079
  amount: z113.optional(z113.number()),
@@ -48900,13 +50085,13 @@ var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z113.pipe(
48900
50085
  });
48901
50086
  })
48902
50087
  );
48903
- var UpdatePlanLicensePriceTier$outboundSchema = z113.pipe(
50088
+ var UpdatePlanLicensePriceTierRequestBody$outboundSchema = z113.pipe(
48904
50089
  z113.object({
48905
50090
  to: smartUnion([z113.number(), z113.string()]),
48906
50091
  amount: z113.optional(z113.number()),
48907
50092
  flatAmount: z113.optional(z113.number()),
48908
50093
  additionalCurrencies: z113.optional(z113.array(z113.lazy(
48909
- () => UpdatePlanLicenseTierAdditionalCurrency$outboundSchema
50094
+ () => UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
48910
50095
  )))
48911
50096
  }),
48912
50097
  z113.transform((v) => {
@@ -48916,27 +50101,27 @@ var UpdatePlanLicensePriceTier$outboundSchema = z113.pipe(
48916
50101
  });
48917
50102
  })
48918
50103
  );
48919
- var UpdatePlanLicenseTierBehavior$outboundSchema = z113.enum(UpdatePlanLicenseTierBehavior);
48920
- var UpdatePlanLicenseAddItemPriceInterval$outboundSchema = z113.enum(
48921
- UpdatePlanLicenseAddItemPriceInterval
48922
- );
48923
- var UpdatePlanLicenseAddItemBillingMethod$outboundSchema = z113.enum(
48924
- UpdatePlanLicenseAddItemBillingMethod
50104
+ var UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema = z113.enum(
50105
+ UpdatePlanLicenseTierBehaviorRequestBody
48925
50106
  );
48926
- var UpdatePlanLicensePrice$outboundSchema = z113.pipe(
50107
+ var UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseAddItemPriceIntervalRequestBody);
50108
+ var UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseAddItemBillingMethodRequestBody);
50109
+ var UpdatePlanLicensePriceRequestBody$outboundSchema = z113.pipe(
48927
50110
  z113.object({
48928
50111
  amount: z113.optional(z113.number()),
48929
50112
  additionalCurrencies: z113.optional(z113.array(z113.lazy(
48930
- () => UpdatePlanLicenseAddItemAdditionalCurrency$outboundSchema
50113
+ () => UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema
48931
50114
  ))),
48932
50115
  tiers: z113.optional(z113.array(z113.lazy(
48933
- () => UpdatePlanLicensePriceTier$outboundSchema
50116
+ () => UpdatePlanLicensePriceTierRequestBody$outboundSchema
48934
50117
  ))),
48935
- tierBehavior: z113.optional(UpdatePlanLicenseTierBehavior$outboundSchema),
48936
- interval: UpdatePlanLicenseAddItemPriceInterval$outboundSchema,
50118
+ tierBehavior: z113.optional(
50119
+ UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema
50120
+ ),
50121
+ interval: UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema,
48937
50122
  intervalCount: z113._default(z113.number(), 1),
48938
50123
  billingUnits: z113._default(z113.number(), 1),
48939
- billingMethod: UpdatePlanLicenseAddItemBillingMethod$outboundSchema,
50124
+ billingMethod: UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema,
48940
50125
  maxPurchase: z113.optional(z113.nullable(z113.number()))
48941
50126
  }),
48942
50127
  z113.transform((v) => {
@@ -48950,12 +50135,16 @@ var UpdatePlanLicensePrice$outboundSchema = z113.pipe(
48950
50135
  });
48951
50136
  })
48952
50137
  );
48953
- var UpdatePlanLicenseOnIncrease$outboundSchema = z113.enum(UpdatePlanLicenseOnIncrease);
48954
- var UpdatePlanLicenseOnDecrease$outboundSchema = z113.enum(UpdatePlanLicenseOnDecrease);
48955
- var UpdatePlanLicenseProration$outboundSchema = z113.pipe(
50138
+ var UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema = z113.enum(
50139
+ UpdatePlanLicenseOnIncreaseRequestBody
50140
+ );
50141
+ var UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema = z113.enum(
50142
+ UpdatePlanLicenseOnDecreaseRequestBody
50143
+ );
50144
+ var UpdatePlanLicenseProrationRequestBody$outboundSchema = z113.pipe(
48956
50145
  z113.object({
48957
- onIncrease: UpdatePlanLicenseOnIncrease$outboundSchema,
48958
- onDecrease: UpdatePlanLicenseOnDecrease$outboundSchema
50146
+ onIncrease: UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema,
50147
+ onDecrease: UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema
48959
50148
  }),
48960
50149
  z113.transform((v) => {
48961
50150
  return remap(v, {
@@ -48964,12 +50153,14 @@ var UpdatePlanLicenseProration$outboundSchema = z113.pipe(
48964
50153
  });
48965
50154
  })
48966
50155
  );
48967
- var UpdatePlanLicenseExpiryDurationType$outboundSchema = z113.enum(UpdatePlanLicenseExpiryDurationType);
48968
- var UpdatePlanLicenseRollover$outboundSchema = z113.pipe(
50156
+ var UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z113.enum(
50157
+ UpdatePlanLicenseExpiryDurationTypeRequestBody
50158
+ );
50159
+ var UpdatePlanLicenseRolloverRequestBody$outboundSchema = z113.pipe(
48969
50160
  z113.object({
48970
50161
  max: z113.optional(z113.number()),
48971
50162
  maxPercentage: z113.optional(z113.number()),
48972
- expiryDurationType: UpdatePlanLicenseExpiryDurationType$outboundSchema,
50163
+ expiryDurationType: UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
48973
50164
  expiryDurationLength: z113.optional(z113.number())
48974
50165
  }),
48975
50166
  z113.transform((v) => {
@@ -48980,13 +50171,13 @@ var UpdatePlanLicenseRollover$outboundSchema = z113.pipe(
48980
50171
  });
48981
50172
  })
48982
50173
  );
48983
- var UpdatePlanLicenseDuration$outboundSchema = z113.enum(UpdatePlanLicenseDuration);
48984
- var UpdatePlanLicenseExpiry$outboundSchema = z113.object({
48985
- duration: UpdatePlanLicenseDuration$outboundSchema,
50174
+ var UpdatePlanLicenseDurationRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseDurationRequestBody);
50175
+ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z113.object({
50176
+ duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
48986
50177
  length: z113.number()
48987
50178
  });
48988
50179
  var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
48989
- var UpdatePlanDimensionsLicense4$outboundSchema = z113.pipe(
50180
+ var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z113.pipe(
48990
50181
  z113.object({
48991
50182
  match: z113.record(
48992
50183
  z113.string(),
@@ -49002,13 +50193,18 @@ var UpdatePlanDimensionsLicense4$outboundSchema = z113.pipe(
49002
50193
  })
49003
50194
  );
49004
50195
  var UpdatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49005
- var UpdatePlanDimensionsToLicenseEnum2$outboundSchema = z113.enum(UpdatePlanDimensionsToLicenseEnum2);
49006
- var UpdatePlanDimensionsLicenseToUnion2$outboundSchema = smartUnion([z113.number(), UpdatePlanDimensionsToLicenseEnum2$outboundSchema]);
49007
- var UpdatePlanDimensionsLicenseTier2$outboundSchema = z113.pipe(
50196
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z113.enum(
50197
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2
50198
+ );
50199
+ var UpdatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
50200
+ z113.number(),
50201
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
50202
+ ]);
50203
+ var UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z113.pipe(
49008
50204
  z113.object({
49009
50205
  to: smartUnion([
49010
50206
  z113.number(),
49011
- UpdatePlanDimensionsToLicenseEnum2$outboundSchema
50207
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
49012
50208
  ]),
49013
50209
  creditCost: z113.number()
49014
50210
  }),
@@ -49018,7 +50214,7 @@ var UpdatePlanDimensionsLicenseTier2$outboundSchema = z113.pipe(
49018
50214
  });
49019
50215
  })
49020
50216
  );
49021
- var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
50217
+ var UpdatePlanDimensionsLicenseRequestBody3$outboundSchema = z113.pipe(
49022
50218
  z113.object({
49023
50219
  match: z113.record(
49024
50220
  z113.string(),
@@ -49027,7 +50223,9 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
49027
50223
  priority: z113.optional(z113.int()),
49028
50224
  tierBehavior: z113.literal("graduated"),
49029
50225
  tiers: z113.array(
49030
- z113.lazy(() => UpdatePlanDimensionsLicenseTier2$outboundSchema)
50226
+ z113.lazy(
50227
+ () => UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema
50228
+ )
49031
50229
  )
49032
50230
  }),
49033
50231
  z113.transform((v) => {
@@ -49036,12 +50234,12 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
49036
50234
  });
49037
50235
  })
49038
50236
  );
49039
- var UpdatePlanLicenseDimensionsUnion2$outboundSchema = smartUnion([
49040
- z113.lazy(() => UpdatePlanDimensionsLicense3$outboundSchema),
49041
- z113.lazy(() => UpdatePlanDimensionsLicense4$outboundSchema)
50237
+ var UpdatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
50238
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
50239
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
49042
50240
  ]);
49043
50241
  var UpdatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49044
- var UpdatePlanLicenseMultipliers2$outboundSchema = z113.object({
50242
+ var UpdatePlanLicenseMultipliersRequestBody2$outboundSchema = z113.object({
49045
50243
  match: z113.record(
49046
50244
  z113.string(),
49047
50245
  smartUnion([z113.string(), z113.number(), z113.boolean()])
@@ -49049,20 +50247,20 @@ var UpdatePlanLicenseMultipliers2$outboundSchema = z113.object({
49049
50247
  factor: z113.optional(z113.number()),
49050
50248
  add: z113.optional(z113.number())
49051
50249
  });
49052
- var UpdatePlanCreditSchemaLicense2$outboundSchema = z113.pipe(
50250
+ var UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z113.pipe(
49053
50251
  z113.object({
49054
50252
  meteredFeatureId: z113.string(),
49055
50253
  billingUnits: z113.optional(z113.number()),
49056
50254
  dimensions: z113.optional(z113.record(
49057
50255
  z113.string(),
49058
50256
  smartUnion([
49059
- z113.lazy(() => UpdatePlanDimensionsLicense3$outboundSchema),
49060
- z113.lazy(() => UpdatePlanDimensionsLicense4$outboundSchema)
50257
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
50258
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
49061
50259
  ])
49062
50260
  )),
49063
50261
  multipliers: z113.optional(z113.record(
49064
50262
  z113.string(),
49065
- z113.lazy(() => UpdatePlanLicenseMultipliers2$outboundSchema)
50263
+ z113.lazy(() => UpdatePlanLicenseMultipliersRequestBody2$outboundSchema)
49066
50264
  )),
49067
50265
  creditCost: z113.number()
49068
50266
  }),
@@ -49075,7 +50273,7 @@ var UpdatePlanCreditSchemaLicense2$outboundSchema = z113.pipe(
49075
50273
  })
49076
50274
  );
49077
50275
  var UpdatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49078
- var UpdatePlanDimensionsLicense2$outboundSchema = z113.pipe(
50276
+ var UpdatePlanDimensionsLicenseRequestBody2$outboundSchema = z113.pipe(
49079
50277
  z113.object({
49080
50278
  match: z113.record(
49081
50279
  z113.string(),
@@ -49091,13 +50289,18 @@ var UpdatePlanDimensionsLicense2$outboundSchema = z113.pipe(
49091
50289
  })
49092
50290
  );
49093
50291
  var UpdatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49094
- var UpdatePlanDimensionsToLicenseEnum1$outboundSchema = z113.enum(UpdatePlanDimensionsToLicenseEnum1);
49095
- var UpdatePlanDimensionsLicenseToUnion1$outboundSchema = smartUnion([z113.number(), UpdatePlanDimensionsToLicenseEnum1$outboundSchema]);
49096
- var UpdatePlanDimensionsLicenseTier1$outboundSchema = z113.pipe(
50292
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z113.enum(
50293
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1
50294
+ );
50295
+ var UpdatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
50296
+ z113.number(),
50297
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
50298
+ ]);
50299
+ var UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z113.pipe(
49097
50300
  z113.object({
49098
50301
  to: smartUnion([
49099
50302
  z113.number(),
49100
- UpdatePlanDimensionsToLicenseEnum1$outboundSchema
50303
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
49101
50304
  ]),
49102
50305
  creditCost: z113.number()
49103
50306
  }),
@@ -49107,7 +50310,7 @@ var UpdatePlanDimensionsLicenseTier1$outboundSchema = z113.pipe(
49107
50310
  });
49108
50311
  })
49109
50312
  );
49110
- var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
50313
+ var UpdatePlanDimensionsLicenseRequestBody1$outboundSchema = z113.pipe(
49111
50314
  z113.object({
49112
50315
  match: z113.record(
49113
50316
  z113.string(),
@@ -49116,7 +50319,9 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
49116
50319
  priority: z113.optional(z113.int()),
49117
50320
  tierBehavior: z113.literal("graduated"),
49118
50321
  tiers: z113.array(
49119
- z113.lazy(() => UpdatePlanDimensionsLicenseTier1$outboundSchema)
50322
+ z113.lazy(
50323
+ () => UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema
50324
+ )
49120
50325
  )
49121
50326
  }),
49122
50327
  z113.transform((v) => {
@@ -49125,12 +50330,12 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
49125
50330
  });
49126
50331
  })
49127
50332
  );
49128
- var UpdatePlanLicenseDimensionsUnion1$outboundSchema = smartUnion([
49129
- z113.lazy(() => UpdatePlanDimensionsLicense1$outboundSchema),
49130
- z113.lazy(() => UpdatePlanDimensionsLicense2$outboundSchema)
50333
+ var UpdatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
50334
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
50335
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
49131
50336
  ]);
49132
50337
  var UpdatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49133
- var UpdatePlanLicenseMultipliers1$outboundSchema = z113.object({
50338
+ var UpdatePlanLicenseMultipliersRequestBody1$outboundSchema = z113.object({
49134
50339
  match: z113.record(
49135
50340
  z113.string(),
49136
50341
  smartUnion([z113.string(), z113.number(), z113.boolean()])
@@ -49138,11 +50343,17 @@ var UpdatePlanLicenseMultipliers1$outboundSchema = z113.object({
49138
50343
  factor: z113.optional(z113.number()),
49139
50344
  add: z113.optional(z113.number())
49140
50345
  });
49141
- var UpdatePlanToLicenseEnum$outboundSchema = z113.enum(UpdatePlanToLicenseEnum);
49142
- var UpdatePlanLicenseFeatureOverrideToUnion$outboundSchema = smartUnion([z113.number(), UpdatePlanToLicenseEnum$outboundSchema]);
49143
- var UpdatePlanLicenseFeatureOverrideTier$outboundSchema = z113.pipe(
50346
+ var UpdatePlanToLicenseRequestBodyEnum$outboundSchema = z113.enum(UpdatePlanToLicenseRequestBodyEnum);
50347
+ var UpdatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
50348
+ z113.number(),
50349
+ UpdatePlanToLicenseRequestBodyEnum$outboundSchema
50350
+ ]);
50351
+ var UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z113.pipe(
49144
50352
  z113.object({
49145
- to: smartUnion([z113.number(), UpdatePlanToLicenseEnum$outboundSchema]),
50353
+ to: smartUnion([
50354
+ z113.number(),
50355
+ UpdatePlanToLicenseRequestBodyEnum$outboundSchema
50356
+ ]),
49146
50357
  creditCost: z113.number()
49147
50358
  }),
49148
50359
  z113.transform((v) => {
@@ -49151,24 +50362,24 @@ var UpdatePlanLicenseFeatureOverrideTier$outboundSchema = z113.pipe(
49151
50362
  });
49152
50363
  })
49153
50364
  );
49154
- var UpdatePlanCreditSchemaLicense1$outboundSchema = z113.pipe(
50365
+ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z113.pipe(
49155
50366
  z113.object({
49156
50367
  meteredFeatureId: z113.string(),
49157
50368
  billingUnits: z113.optional(z113.number()),
49158
50369
  dimensions: z113.optional(z113.record(
49159
50370
  z113.string(),
49160
50371
  smartUnion([
49161
- z113.lazy(() => UpdatePlanDimensionsLicense1$outboundSchema),
49162
- z113.lazy(() => UpdatePlanDimensionsLicense2$outboundSchema)
50372
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
50373
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
49163
50374
  ])
49164
50375
  )),
49165
50376
  multipliers: z113.optional(z113.record(
49166
50377
  z113.string(),
49167
- z113.lazy(() => UpdatePlanLicenseMultipliers1$outboundSchema)
50378
+ z113.lazy(() => UpdatePlanLicenseMultipliersRequestBody1$outboundSchema)
49168
50379
  )),
49169
50380
  tierBehavior: z113.literal("graduated"),
49170
50381
  tiers: z113.array(z113.lazy(
49171
- () => UpdatePlanLicenseFeatureOverrideTier$outboundSchema
50382
+ () => UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
49172
50383
  ))
49173
50384
  }),
49174
50385
  z113.transform((v) => {
@@ -49179,14 +50390,14 @@ var UpdatePlanCreditSchemaLicense1$outboundSchema = z113.pipe(
49179
50390
  });
49180
50391
  })
49181
50392
  );
49182
- var UpdatePlanLicenseCreditSchemaUnion$outboundSchema = smartUnion([
49183
- z113.lazy(() => UpdatePlanCreditSchemaLicense1$outboundSchema),
49184
- z113.lazy(() => UpdatePlanCreditSchemaLicense2$outboundSchema)
50393
+ var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
50394
+ z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
50395
+ z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
49185
50396
  ]);
49186
- var UpdatePlanLicenseProviderMarkups$outboundSchema = z113.object({
50397
+ var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z113.object({
49187
50398
  markup: z113.number()
49188
50399
  });
49189
- var UpdatePlanLicenseModelMarkups$outboundSchema = z113.pipe(
50400
+ var UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema = z113.pipe(
49190
50401
  z113.object({
49191
50402
  markup: z113.optional(z113.number()),
49192
50403
  inputCost: z113.optional(z113.number()),
@@ -49199,16 +50410,16 @@ var UpdatePlanLicenseModelMarkups$outboundSchema = z113.pipe(
49199
50410
  });
49200
50411
  })
49201
50412
  );
49202
- var UpdatePlanLicenseMarkups$outboundSchema = z113.pipe(
50413
+ var UpdatePlanLicenseMarkupsRequestBody$outboundSchema = z113.pipe(
49203
50414
  z113.object({
49204
50415
  defaultMarkup: z113.optional(z113.number()),
49205
50416
  providerMarkups: z113.optional(z113.nullable(z113.record(
49206
50417
  z113.string(),
49207
- z113.lazy(() => UpdatePlanLicenseProviderMarkups$outboundSchema)
50418
+ z113.lazy(() => UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
49208
50419
  ))),
49209
50420
  modelMarkups: z113.optional(z113.nullable(z113.record(
49210
50421
  z113.string(),
49211
- z113.lazy(() => UpdatePlanLicenseModelMarkups$outboundSchema)
50422
+ z113.lazy(() => UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema)
49212
50423
  )))
49213
50424
  }),
49214
50425
  z113.transform((v) => {
@@ -49219,16 +50430,16 @@ var UpdatePlanLicenseMarkups$outboundSchema = z113.pipe(
49219
50430
  });
49220
50431
  })
49221
50432
  );
49222
- var UpdatePlanLicenseFeatureOverride$outboundSchema = z113.pipe(
50433
+ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z113.pipe(
49223
50434
  z113.object({
49224
50435
  creditSchema: z113.optional(z113.array(smartUnion([
49225
- z113.lazy(() => UpdatePlanCreditSchemaLicense1$outboundSchema),
50436
+ z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
49226
50437
  z113.lazy(
49227
- () => UpdatePlanCreditSchemaLicense2$outboundSchema
50438
+ () => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
49228
50439
  )
49229
50440
  ]))),
49230
50441
  markups: z113.optional(z113.lazy(
49231
- () => UpdatePlanLicenseMarkups$outboundSchema
50442
+ () => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
49232
50443
  ))
49233
50444
  }),
49234
50445
  z113.transform((v) => {
@@ -49237,29 +50448,33 @@ var UpdatePlanLicenseFeatureOverride$outboundSchema = z113.pipe(
49237
50448
  });
49238
50449
  })
49239
50450
  );
49240
- var UpdatePlanLicensePlanItem$outboundSchema = z113.pipe(
50451
+ var UpdatePlanLicensePlanItemRequestBody$outboundSchema = z113.pipe(
49241
50452
  z113.object({
49242
- thresholdBilling: z113.optional(
49243
- z113.nullable(
49244
- z113.lazy(() => UpdatePlanLicenseThresholdBilling$outboundSchema)
49245
- )
49246
- ),
50453
+ thresholdBilling: z113.optional(z113.nullable(z113.lazy(
50454
+ () => UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema
50455
+ ))),
49247
50456
  featureId: z113.string(),
49248
50457
  included: z113.optional(z113.number()),
49249
50458
  unlimited: z113.optional(z113.boolean()),
49250
50459
  pooled: z113._default(z113.boolean(), false),
49251
- reset: z113.optional(z113.lazy(() => UpdatePlanLicenseReset$outboundSchema)),
49252
- price: z113.optional(z113.lazy(() => UpdatePlanLicensePrice$outboundSchema)),
49253
- proration: z113.optional(
49254
- z113.lazy(() => UpdatePlanLicenseProration$outboundSchema)
49255
- ),
49256
- rollover: z113.optional(
49257
- z113.lazy(() => UpdatePlanLicenseRollover$outboundSchema)
49258
- ),
49259
- expiry: z113.optional(z113.lazy(() => UpdatePlanLicenseExpiry$outboundSchema)),
49260
- featureOverride: z113.optional(
49261
- z113.lazy(() => UpdatePlanLicenseFeatureOverride$outboundSchema)
49262
- )
50460
+ reset: z113.optional(z113.lazy(
50461
+ () => UpdatePlanLicenseResetRequestBody$outboundSchema
50462
+ )),
50463
+ price: z113.optional(z113.lazy(
50464
+ () => UpdatePlanLicensePriceRequestBody$outboundSchema
50465
+ )),
50466
+ proration: z113.optional(z113.lazy(
50467
+ () => UpdatePlanLicenseProrationRequestBody$outboundSchema
50468
+ )),
50469
+ rollover: z113.optional(z113.lazy(
50470
+ () => UpdatePlanLicenseRolloverRequestBody$outboundSchema
50471
+ )),
50472
+ expiry: z113.optional(z113.lazy(
50473
+ () => UpdatePlanLicenseExpiryRequestBody$outboundSchema
50474
+ )),
50475
+ featureOverride: z113.optional(z113.lazy(
50476
+ () => UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema
50477
+ ))
49263
50478
  }),
49264
50479
  z113.transform((v) => {
49265
50480
  return remap(v, {
@@ -49269,29 +50484,23 @@ var UpdatePlanLicensePlanItem$outboundSchema = z113.pipe(
49269
50484
  });
49270
50485
  })
49271
50486
  );
49272
- var UpdatePlanLicenseRemoveItemBillingMethod$outboundSchema = z113.enum(
49273
- UpdatePlanLicenseRemoveItemBillingMethod
49274
- );
49275
- var UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema = z113.enum(
49276
- UpdatePlanIntervalLicenseRemoveItemEnum2
49277
- );
49278
- var UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z113.enum(
49279
- UpdatePlanIntervalLicenseRemoveItemEnum1
49280
- );
49281
- var UpdatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
49282
- UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
49283
- UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
50487
+ var UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseRemoveItemBillingMethodRequestBody);
50488
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema = z113.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2);
50489
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema = z113.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1);
50490
+ var UpdatePlanLicenseIntervalRequestBodyUnion$outboundSchema = smartUnion([
50491
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
50492
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
49284
50493
  ]);
49285
- var UpdatePlanLicensePlanItemFilter$outboundSchema = z113.pipe(
50494
+ var UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema = z113.pipe(
49286
50495
  z113.object({
49287
50496
  featureId: z113.optional(z113.string()),
49288
50497
  billingMethod: z113.optional(
49289
- UpdatePlanLicenseRemoveItemBillingMethod$outboundSchema
50498
+ UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema
49290
50499
  ),
49291
50500
  interval: z113.optional(
49292
50501
  smartUnion([
49293
- UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
49294
- UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
50502
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
50503
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
49295
50504
  ])
49296
50505
  ),
49297
50506
  intervalCount: z113.optional(z113.int()),
@@ -49305,17 +50514,17 @@ var UpdatePlanLicensePlanItemFilter$outboundSchema = z113.pipe(
49305
50514
  });
49306
50515
  })
49307
50516
  );
49308
- var UpdatePlanLicenseCustomize$outboundSchema = z113.pipe(
50517
+ var UpdatePlanLicenseCustomizeRequestBody$outboundSchema = z113.pipe(
49309
50518
  z113.object({
49310
- price: z113.optional(
49311
- z113.nullable(z113.lazy(() => UpdatePlanLicenseBasePrice$outboundSchema))
49312
- ),
49313
- addItems: z113.optional(
49314
- z113.array(z113.lazy(() => UpdatePlanLicensePlanItem$outboundSchema))
49315
- ),
49316
- removeItems: z113.optional(
49317
- z113.array(z113.lazy(() => UpdatePlanLicensePlanItemFilter$outboundSchema))
49318
- )
50519
+ price: z113.optional(z113.nullable(z113.lazy(
50520
+ () => UpdatePlanLicenseBasePriceRequestBody$outboundSchema
50521
+ ))),
50522
+ addItems: z113.optional(z113.array(z113.lazy(
50523
+ () => UpdatePlanLicensePlanItemRequestBody$outboundSchema
50524
+ ))),
50525
+ removeItems: z113.optional(z113.array(z113.lazy(
50526
+ () => UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema
50527
+ )))
49319
50528
  }),
49320
50529
  z113.transform((v) => {
49321
50530
  return remap(v, {
@@ -49324,15 +50533,15 @@ var UpdatePlanLicenseCustomize$outboundSchema = z113.pipe(
49324
50533
  });
49325
50534
  })
49326
50535
  );
49327
- var UpdatePlanLicense$outboundSchema = z113.pipe(
50536
+ var UpdatePlanLicenseRequest$outboundSchema = z113.pipe(
49328
50537
  z113.object({
49329
50538
  licensePlanId: z113.string(),
49330
50539
  versionSlug: z113.optional(z113.string()),
49331
50540
  included: z113.optional(z113.int()),
49332
50541
  prepaidOnly: z113.optional(z113.boolean()),
49333
- customize: z113.optional(
49334
- z113.nullable(z113.lazy(() => UpdatePlanLicenseCustomize$outboundSchema))
49335
- ),
50542
+ customize: z113.optional(z113.nullable(z113.lazy(
50543
+ () => UpdatePlanLicenseCustomizeRequestBody$outboundSchema
50544
+ ))),
49336
50545
  metadata: z113.optional(z113.record(z113.string(), z113.any()))
49337
50546
  }),
49338
50547
  z113.transform((v) => {
@@ -51021,7 +52230,7 @@ var UpdatePlanParams$outboundSchema = z114.pipe(
51021
52230
  z114.nullable(UpdatePlanBasePriceRequestBody$outboundSchema)
51022
52231
  ),
51023
52232
  items: z114.optional(z114.array(UpdatePlanItemPlanItem$outboundSchema)),
51024
- licenses: z114.optional(z114.array(UpdatePlanLicense$outboundSchema)),
52233
+ licenses: z114.optional(z114.array(UpdatePlanLicenseRequest$outboundSchema)),
51025
52234
  freeTrial: z114.optional(
51026
52235
  z114.nullable(UpdatePlanFreeTrialParamsRequestBody$outboundSchema)
51027
52236
  ),
@@ -51329,17 +52538,17 @@ var UpdatePlanVariantDetailsAddItemPriceInterval = {
51329
52538
  SemiAnnual: "semi_annual",
51330
52539
  Year: "year"
51331
52540
  };
51332
- var UpdatePlanAddItemBillingMethodResponse = {
52541
+ var UpdatePlanVariantDetailsAddItemBillingMethod = {
51333
52542
  Prepaid: "prepaid",
51334
52543
  UsageBased: "usage_based"
51335
52544
  };
51336
- var UpdatePlanOnIncreaseResponse = {
52545
+ var UpdatePlanVariantDetailsOnIncrease = {
51337
52546
  BillImmediately: "bill_immediately",
51338
52547
  ProrateImmediately: "prorate_immediately",
51339
52548
  ProrateNextCycle: "prorate_next_cycle",
51340
52549
  BillNextCycle: "bill_next_cycle"
51341
52550
  };
51342
- var UpdatePlanOnDecreaseResponse = {
52551
+ var UpdatePlanVariantDetailsOnDecrease = {
51343
52552
  Prorate: "prorate",
51344
52553
  ProrateImmediately: "prorate_immediately",
51345
52554
  ProrateNextCycle: "prorate_next_cycle",
@@ -51365,7 +52574,7 @@ var UpdatePlanDimensionsToVariantDetailsEnum1 = {
51365
52574
  var UpdatePlanToVariantDetailsEnum = {
51366
52575
  Inf: "inf"
51367
52576
  };
51368
- var UpdatePlanRemoveItemBillingMethodResponse = {
52577
+ var UpdatePlanVariantDetailsRemoveItemBillingMethod = {
51369
52578
  Prepaid: "prepaid",
51370
52579
  UsageBased: "usage_based"
51371
52580
  };
@@ -51460,7 +52669,7 @@ var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval = {
51460
52669
  SemiAnnual: "semi_annual",
51461
52670
  Year: "year"
51462
52671
  };
51463
- var UpdatePlanUpsertLicenseAddItemBillingMethodResponse = {
52672
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod = {
51464
52673
  Prepaid: "prepaid",
51465
52674
  UsageBased: "usage_based"
51466
52675
  };
@@ -51477,7 +52686,7 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
51477
52686
  None: "none",
51478
52687
  NoProrations: "no_prorations"
51479
52688
  };
51480
- var UpdatePlanUpsertLicenseExpiryDurationTypeResponse = {
52689
+ var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
51481
52690
  Month: "month",
51482
52691
  Forever: "forever"
51483
52692
  };
@@ -52064,7 +53273,7 @@ var UpdatePlanVariantDetailsAdditionalCurrency$inboundSchema = z115.object(
52064
53273
  amount: number2()
52065
53274
  }
52066
53275
  );
52067
- var UpdatePlanBasePriceResponse$inboundSchema = z115.pipe(
53276
+ var UpdatePlanVariantDetailsBasePrice$inboundSchema = z115.pipe(
52068
53277
  z115.object({
52069
53278
  amount: number2(),
52070
53279
  interval: UpdatePlanPriceVariantDetailsInterval$inboundSchema,
@@ -52095,7 +53304,7 @@ var UpdatePlanVariantDetailsReset$inboundSchema = z115.pipe(
52095
53304
  });
52096
53305
  })
52097
53306
  );
52098
- var UpdatePlanAddItemAdditionalCurrencyResponse$inboundSchema = z115.object({
53307
+ var UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z115.object({
52099
53308
  currency: string5(),
52100
53309
  amount: number2()
52101
53310
  });
@@ -52130,12 +53339,12 @@ var UpdatePlanVariantDetailsPriceTier$inboundSchema = z115.pipe(
52130
53339
  );
52131
53340
  var UpdatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(UpdatePlanVariantDetailsTierBehavior);
52132
53341
  var UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemPriceInterval);
52133
- var UpdatePlanAddItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanAddItemBillingMethodResponse);
53342
+ var UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemBillingMethod);
52134
53343
  var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
52135
53344
  z115.object({
52136
53345
  amount: optional3(number2()),
52137
53346
  additional_currencies: optional3(z115.array(z115.lazy(
52138
- () => UpdatePlanAddItemAdditionalCurrencyResponse$inboundSchema
53347
+ () => UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
52139
53348
  ))),
52140
53349
  tiers: optional3(z115.array(z115.lazy(
52141
53350
  () => UpdatePlanVariantDetailsPriceTier$inboundSchema
@@ -52146,7 +53355,7 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
52146
53355
  interval: UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
52147
53356
  interval_count: z115._default(number2(), 1),
52148
53357
  billing_units: z115._default(number2(), 1),
52149
- billing_method: UpdatePlanAddItemBillingMethodResponse$inboundSchema,
53358
+ billing_method: UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
52150
53359
  max_purchase: z115.optional(z115.nullable(number2()))
52151
53360
  }),
52152
53361
  z115.transform((v) => {
@@ -52160,12 +53369,12 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
52160
53369
  });
52161
53370
  })
52162
53371
  );
52163
- var UpdatePlanOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanOnIncreaseResponse);
52164
- var UpdatePlanOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanOnDecreaseResponse);
52165
- var UpdatePlanProrationResponse$inboundSchema = z115.pipe(
53372
+ var UpdatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnIncrease);
53373
+ var UpdatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnDecrease);
53374
+ var UpdatePlanVariantDetailsProration$inboundSchema = z115.pipe(
52166
53375
  z115.object({
52167
- on_increase: UpdatePlanOnIncreaseResponse$inboundSchema,
52168
- on_decrease: UpdatePlanOnDecreaseResponse$inboundSchema
53376
+ on_increase: UpdatePlanVariantDetailsOnIncrease$inboundSchema,
53377
+ on_decrease: UpdatePlanVariantDetailsOnDecrease$inboundSchema
52169
53378
  }),
52170
53379
  z115.transform((v) => {
52171
53380
  return remap(v, {
@@ -52440,7 +53649,7 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z115.pipe(
52440
53649
  });
52441
53650
  })
52442
53651
  );
52443
- var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
53652
+ var UpdatePlanVariantDetailsPlanItem$inboundSchema = z115.pipe(
52444
53653
  z115.object({
52445
53654
  threshold_billing: z115.optional(z115.nullable(z115.lazy(
52446
53655
  () => UpdatePlanVariantDetailsThresholdBilling$inboundSchema
@@ -52456,7 +53665,7 @@ var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
52456
53665
  () => UpdatePlanVariantDetailsPrice$inboundSchema
52457
53666
  )),
52458
53667
  proration: optional3(z115.lazy(
52459
- () => UpdatePlanProrationResponse$inboundSchema
53668
+ () => UpdatePlanVariantDetailsProration$inboundSchema
52460
53669
  )),
52461
53670
  rollover: optional3(z115.lazy(
52462
53671
  () => UpdatePlanVariantDetailsRollover$inboundSchema
@@ -52476,18 +53685,18 @@ var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
52476
53685
  });
52477
53686
  })
52478
53687
  );
52479
- var UpdatePlanRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanRemoveItemBillingMethodResponse);
53688
+ var UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsRemoveItemBillingMethod);
52480
53689
  var UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum2);
52481
53690
  var UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum1);
52482
53691
  var UpdatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
52483
53692
  UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
52484
53693
  UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
52485
53694
  ]);
52486
- var UpdatePlanPlanItemFilterResponse$inboundSchema = z115.pipe(
53695
+ var UpdatePlanVariantDetailsPlanItemFilter$inboundSchema = z115.pipe(
52487
53696
  z115.object({
52488
53697
  feature_id: optional3(string5()),
52489
53698
  billing_method: optional3(
52490
- UpdatePlanRemoveItemBillingMethodResponse$inboundSchema
53699
+ UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
52491
53700
  ),
52492
53701
  interval: optional3(
52493
53702
  smartUnion([
@@ -52664,7 +53873,7 @@ var UpdatePlanVariantDetailsBillingControls$inboundSchema = z115.pipe(
52664
53873
  })
52665
53874
  );
52666
53875
  var UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema = inboundSchema(UpdatePlanPriceVariantDetailsUpsertLicenseInterval);
52667
- var UpdatePlanUpsertLicenseAdditionalCurrencyResponse$inboundSchema = z115.object({
53876
+ var UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema = z115.object({
52668
53877
  currency: string5(),
52669
53878
  amount: number2()
52670
53879
  });
@@ -52674,7 +53883,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z115.pipe(
52674
53883
  interval: UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema,
52675
53884
  interval_count: z115._default(number2(), 1),
52676
53885
  additional_currencies: optional3(z115.array(z115.lazy(
52677
- () => UpdatePlanUpsertLicenseAdditionalCurrencyResponse$inboundSchema
53886
+ () => UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema
52678
53887
  )))
52679
53888
  }),
52680
53889
  z115.transform((v) => {
@@ -52684,7 +53893,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z115.pipe(
52684
53893
  });
52685
53894
  })
52686
53895
  );
52687
- var UpdatePlanUpsertLicenseThresholdBillingResponse$inboundSchema = z115.object({
53896
+ var UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema = z115.object({
52688
53897
  threshold: number2()
52689
53898
  });
52690
53899
  var UpdatePlanVariantDetailsUpsertLicenseResetInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseResetInterval);
@@ -52699,12 +53908,12 @@ var UpdatePlanVariantDetailsUpsertLicenseReset$inboundSchema = z115.pipe(
52699
53908
  });
52700
53909
  })
52701
53910
  );
52702
- var UpdatePlanUpsertLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z115.object({
53911
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema = z115.object({
52703
53912
  currency: string5(),
52704
53913
  amount: number2()
52705
53914
  });
52706
53915
  var UpdatePlanVariantDetailsUpsertLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
52707
- var UpdatePlanUpsertLicenseTierAdditionalCurrencyResponse$inboundSchema = z115.pipe(
53916
+ var UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema = z115.pipe(
52708
53917
  z115.object({
52709
53918
  currency: string5(),
52710
53919
  amount: optional3(number2()),
@@ -52722,7 +53931,7 @@ var UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema = z115.pipe(
52722
53931
  amount: number2(),
52723
53932
  flat_amount: optional3(number2()),
52724
53933
  additional_currencies: optional3(z115.array(z115.lazy(
52725
- () => UpdatePlanUpsertLicenseTierAdditionalCurrencyResponse$inboundSchema
53934
+ () => UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema
52726
53935
  )))
52727
53936
  }),
52728
53937
  z115.transform((v) => {
@@ -52736,14 +53945,14 @@ var UpdatePlanVariantDetailsUpsertLicenseTierBehavior$inboundSchema = inboundSch
52736
53945
  var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(
52737
53946
  UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval
52738
53947
  );
52739
- var UpdatePlanUpsertLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(
52740
- UpdatePlanUpsertLicenseAddItemBillingMethodResponse
53948
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(
53949
+ UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod
52741
53950
  );
52742
53951
  var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z115.pipe(
52743
53952
  z115.object({
52744
53953
  amount: optional3(number2()),
52745
53954
  additional_currencies: optional3(z115.array(z115.lazy(
52746
- () => UpdatePlanUpsertLicenseAddItemAdditionalCurrencyResponse$inboundSchema
53955
+ () => UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema
52747
53956
  ))),
52748
53957
  tiers: optional3(z115.array(z115.lazy(
52749
53958
  () => UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema
@@ -52754,7 +53963,7 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z115.pipe(
52754
53963
  interval: UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema,
52755
53964
  interval_count: z115._default(number2(), 1),
52756
53965
  billing_units: z115._default(number2(), 1),
52757
- billing_method: UpdatePlanUpsertLicenseAddItemBillingMethodResponse$inboundSchema,
53966
+ billing_method: UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema,
52758
53967
  max_purchase: z115.optional(z115.nullable(number2()))
52759
53968
  }),
52760
53969
  z115.transform((v) => {
@@ -52782,12 +53991,14 @@ var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z115.pipe(
52782
53991
  });
52783
53992
  })
52784
53993
  );
52785
- var UpdatePlanUpsertLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseExpiryDurationTypeResponse);
53994
+ var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
53995
+ UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
53996
+ );
52786
53997
  var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z115.pipe(
52787
53998
  z115.object({
52788
53999
  max: optional3(number2()),
52789
54000
  max_percentage: optional3(number2()),
52790
- expiry_duration_type: UpdatePlanUpsertLicenseExpiryDurationTypeResponse$inboundSchema,
54001
+ expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
52791
54002
  expiry_duration_length: optional3(number2())
52792
54003
  }),
52793
54004
  z115.transform((v) => {
@@ -52827,7 +54038,7 @@ var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum1 = {
52827
54038
  var UpdatePlanToVariantDetailsUpsertLicenseEnum = {
52828
54039
  Inf: "inf"
52829
54040
  };
52830
- var UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse = {
54041
+ var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod = {
52831
54042
  Prepaid: "prepaid",
52832
54043
  UsageBased: "usage_based"
52833
54044
  };
@@ -52850,6 +54061,96 @@ var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum1 = {
52850
54061
  SemiAnnual: "semi_annual",
52851
54062
  Year: "year"
52852
54063
  };
54064
+ var UpdatePlanPriceLicenseIntervalResponse = {
54065
+ OneOff: "one_off",
54066
+ Week: "week",
54067
+ Month: "month",
54068
+ Quarter: "quarter",
54069
+ SemiAnnual: "semi_annual",
54070
+ Year: "year"
54071
+ };
54072
+ var UpdatePlanLicenseResetIntervalResponse = {
54073
+ OneOff: "one_off",
54074
+ Minute: "minute",
54075
+ Hour: "hour",
54076
+ Day: "day",
54077
+ Week: "week",
54078
+ Month: "month",
54079
+ Quarter: "quarter",
54080
+ SemiAnnual: "semi_annual",
54081
+ Year: "year"
54082
+ };
54083
+ var UpdatePlanLicenseTierBehaviorResponse = {
54084
+ Graduated: "graduated",
54085
+ Volume: "volume"
54086
+ };
54087
+ var UpdatePlanLicenseAddItemPriceIntervalResponse = {
54088
+ OneOff: "one_off",
54089
+ Week: "week",
54090
+ Month: "month",
54091
+ Quarter: "quarter",
54092
+ SemiAnnual: "semi_annual",
54093
+ Year: "year"
54094
+ };
54095
+ var UpdatePlanLicenseAddItemBillingMethodResponse = {
54096
+ Prepaid: "prepaid",
54097
+ UsageBased: "usage_based"
54098
+ };
54099
+ var UpdatePlanLicenseOnIncreaseResponse = {
54100
+ BillImmediately: "bill_immediately",
54101
+ ProrateImmediately: "prorate_immediately",
54102
+ ProrateNextCycle: "prorate_next_cycle",
54103
+ BillNextCycle: "bill_next_cycle"
54104
+ };
54105
+ var UpdatePlanLicenseOnDecreaseResponse = {
54106
+ Prorate: "prorate",
54107
+ ProrateImmediately: "prorate_immediately",
54108
+ ProrateNextCycle: "prorate_next_cycle",
54109
+ None: "none",
54110
+ NoProrations: "no_prorations"
54111
+ };
54112
+ var UpdatePlanLicenseExpiryDurationTypeResponse = {
54113
+ Month: "month",
54114
+ Forever: "forever"
54115
+ };
54116
+ var UpdatePlanLicenseDurationResponse = {
54117
+ Day: "day",
54118
+ Week: "week",
54119
+ Month: "month",
54120
+ Year: "year"
54121
+ };
54122
+ var UpdatePlanDimensionsToLicenseResponseEnum2 = {
54123
+ Inf: "inf"
54124
+ };
54125
+ var UpdatePlanDimensionsToLicenseResponseEnum1 = {
54126
+ Inf: "inf"
54127
+ };
54128
+ var UpdatePlanToLicenseResponseEnum = {
54129
+ Inf: "inf"
54130
+ };
54131
+ var UpdatePlanLicenseRemoveItemBillingMethodResponse = {
54132
+ Prepaid: "prepaid",
54133
+ UsageBased: "usage_based"
54134
+ };
54135
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum2 = {
54136
+ OneOff: "one_off",
54137
+ Minute: "minute",
54138
+ Hour: "hour",
54139
+ Day: "day",
54140
+ Week: "week",
54141
+ Month: "month",
54142
+ Quarter: "quarter",
54143
+ SemiAnnual: "semi_annual",
54144
+ Year: "year"
54145
+ };
54146
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
54147
+ OneOff: "one_off",
54148
+ Week: "week",
54149
+ Month: "month",
54150
+ Quarter: "quarter",
54151
+ SemiAnnual: "semi_annual",
54152
+ Year: "year"
54153
+ };
52853
54154
  var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z116.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
52854
54155
  var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
52855
54156
  number2(),
@@ -53062,7 +54363,7 @@ var UpdatePlanVariantDetailsUpsertLicenseModelMarkups$inboundSchema = z116.pipe(
53062
54363
  });
53063
54364
  })
53064
54365
  );
53065
- var UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema = z116.pipe(
54366
+ var UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema = z116.pipe(
53066
54367
  z116.object({
53067
54368
  default_markup: optional3(number2()),
53068
54369
  provider_markups: z116.optional(z116.nullable(z116.record(
@@ -53086,7 +54387,7 @@ var UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema = z116.pipe(
53086
54387
  });
53087
54388
  })
53088
54389
  );
53089
- var UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
54390
+ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z116.pipe(
53090
54391
  z116.object({
53091
54392
  credit_schema: optional3(z116.array(smartUnion([
53092
54393
  z116.lazy(
@@ -53097,7 +54398,7 @@ var UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
53097
54398
  )
53098
54399
  ]))),
53099
54400
  markups: optional3(z116.lazy(
53100
- () => UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema
54401
+ () => UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema
53101
54402
  ))
53102
54403
  }),
53103
54404
  z116.transform((v) => {
@@ -53110,7 +54411,7 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
53110
54411
  z116.object({
53111
54412
  threshold_billing: z116.optional(
53112
54413
  z116.nullable(
53113
- UpdatePlanUpsertLicenseThresholdBillingResponse$inboundSchema
54414
+ UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema
53114
54415
  )
53115
54416
  ),
53116
54417
  feature_id: string5(),
@@ -53132,11 +54433,9 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
53132
54433
  expiry: optional3(
53133
54434
  UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
53134
54435
  ),
53135
- feature_override: optional3(
53136
- z116.lazy(
53137
- () => UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema
53138
- )
53139
- )
54436
+ feature_override: optional3(z116.lazy(
54437
+ () => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
54438
+ ))
53140
54439
  }),
53141
54440
  z116.transform((v) => {
53142
54441
  return remap(v, {
@@ -53146,8 +54445,8 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
53146
54445
  });
53147
54446
  })
53148
54447
  );
53149
- var UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(
53150
- UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse
54448
+ var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(
54449
+ UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod
53151
54450
  );
53152
54451
  var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2$inboundSchema = inboundSchema(
53153
54452
  UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2
@@ -53163,7 +54462,7 @@ var UpdatePlanUpsertLicensePlanItemFilterResponse$inboundSchema = z116.pipe(
53163
54462
  z116.object({
53164
54463
  feature_id: optional3(string5()),
53165
54464
  billing_method: optional3(
53166
- UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse$inboundSchema
54465
+ UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema
53167
54466
  ),
53168
54467
  interval: optional3(
53169
54468
  smartUnion([
@@ -53230,14 +54529,16 @@ var UpdatePlanRemoveLicenseResponse$inboundSchema = z116.pipe(
53230
54529
  });
53231
54530
  })
53232
54531
  );
53233
- var UpdatePlanCustomizeResponse$inboundSchema = z116.pipe(
54532
+ var UpdatePlanVariantDetailsCustomize$inboundSchema = z116.pipe(
53234
54533
  z116.object({
53235
- price: z116.optional(z116.nullable(UpdatePlanBasePriceResponse$inboundSchema)),
54534
+ price: z116.optional(
54535
+ z116.nullable(UpdatePlanVariantDetailsBasePrice$inboundSchema)
54536
+ ),
53236
54537
  add_items: optional3(
53237
- z116.array(UpdatePlanPlanItemResponse$inboundSchema)
54538
+ z116.array(UpdatePlanVariantDetailsPlanItem$inboundSchema)
53238
54539
  ),
53239
54540
  remove_items: optional3(
53240
- z116.array(UpdatePlanPlanItemFilterResponse$inboundSchema)
54541
+ z116.array(UpdatePlanVariantDetailsPlanItemFilter$inboundSchema)
53241
54542
  ),
53242
54543
  free_trial: z116.optional(
53243
54544
  z116.nullable(UpdatePlanFreeTrialParamsResponse$inboundSchema)
@@ -53267,7 +54568,7 @@ var UpdatePlanVariantDetails$inboundSchema = z116.pipe(
53267
54568
  z116.object({
53268
54569
  base_plan_id: string5(),
53269
54570
  customize: optional3(
53270
- z116.lazy(() => UpdatePlanCustomizeResponse$inboundSchema)
54571
+ z116.lazy(() => UpdatePlanVariantDetailsCustomize$inboundSchema)
53271
54572
  )
53272
54573
  }),
53273
54574
  z116.transform((v) => {
@@ -53276,6 +54577,493 @@ var UpdatePlanVariantDetails$inboundSchema = z116.pipe(
53276
54577
  });
53277
54578
  })
53278
54579
  );
54580
+ var UpdatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceLicenseIntervalResponse);
54581
+ var UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z116.object({
54582
+ currency: string5(),
54583
+ amount: number2()
54584
+ });
54585
+ var UpdatePlanLicenseBasePriceResponse$inboundSchema = z116.pipe(
54586
+ z116.object({
54587
+ amount: number2(),
54588
+ interval: UpdatePlanPriceLicenseIntervalResponse$inboundSchema,
54589
+ interval_count: z116._default(number2(), 1),
54590
+ additional_currencies: optional3(z116.array(z116.lazy(
54591
+ () => UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema
54592
+ )))
54593
+ }),
54594
+ z116.transform((v) => {
54595
+ return remap(v, {
54596
+ "interval_count": "intervalCount",
54597
+ "additional_currencies": "additionalCurrencies"
54598
+ });
54599
+ })
54600
+ );
54601
+ var UpdatePlanLicenseThresholdBillingResponse$inboundSchema = z116.object({
54602
+ threshold: number2()
54603
+ });
54604
+ var UpdatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseResetIntervalResponse);
54605
+ var UpdatePlanLicenseResetResponse$inboundSchema = z116.pipe(
54606
+ z116.object({
54607
+ interval: UpdatePlanLicenseResetIntervalResponse$inboundSchema,
54608
+ interval_count: z116._default(number2(), 1)
54609
+ }),
54610
+ z116.transform((v) => {
54611
+ return remap(v, {
54612
+ "interval_count": "intervalCount"
54613
+ });
54614
+ })
54615
+ );
54616
+ var UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z116.object({
54617
+ currency: string5(),
54618
+ amount: number2()
54619
+ });
54620
+ var UpdatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
54621
+ var UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z116.pipe(
54622
+ z116.object({
54623
+ currency: string5(),
54624
+ amount: optional3(number2()),
54625
+ flat_amount: optional3(number2())
54626
+ }),
54627
+ z116.transform((v) => {
54628
+ return remap(v, {
54629
+ "flat_amount": "flatAmount"
54630
+ });
54631
+ })
54632
+ );
54633
+ var UpdatePlanLicensePriceTierResponse$inboundSchema = z116.pipe(
54634
+ z116.object({
54635
+ to: smartUnion([number2(), string5()]),
54636
+ amount: number2(),
54637
+ flat_amount: optional3(number2()),
54638
+ additional_currencies: optional3(z116.array(z116.lazy(
54639
+ () => UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
54640
+ )))
54641
+ }),
54642
+ z116.transform((v) => {
54643
+ return remap(v, {
54644
+ "flat_amount": "flatAmount",
54645
+ "additional_currencies": "additionalCurrencies"
54646
+ });
54647
+ })
54648
+ );
54649
+ var UpdatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanLicenseTierBehaviorResponse);
54650
+ var UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemPriceIntervalResponse);
54651
+ var UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemBillingMethodResponse);
54652
+ var UpdatePlanLicensePriceResponse$inboundSchema = z116.pipe(
54653
+ z116.object({
54654
+ amount: optional3(number2()),
54655
+ additional_currencies: optional3(z116.array(z116.lazy(
54656
+ () => UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
54657
+ ))),
54658
+ tiers: optional3(z116.array(z116.lazy(
54659
+ () => UpdatePlanLicensePriceTierResponse$inboundSchema
54660
+ ))),
54661
+ tier_behavior: optional3(
54662
+ UpdatePlanLicenseTierBehaviorResponse$inboundSchema
54663
+ ),
54664
+ interval: UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
54665
+ interval_count: z116._default(number2(), 1),
54666
+ billing_units: z116._default(number2(), 1),
54667
+ billing_method: UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
54668
+ max_purchase: z116.optional(z116.nullable(number2()))
54669
+ }),
54670
+ z116.transform((v) => {
54671
+ return remap(v, {
54672
+ "additional_currencies": "additionalCurrencies",
54673
+ "tier_behavior": "tierBehavior",
54674
+ "interval_count": "intervalCount",
54675
+ "billing_units": "billingUnits",
54676
+ "billing_method": "billingMethod",
54677
+ "max_purchase": "maxPurchase"
54678
+ });
54679
+ })
54680
+ );
54681
+ var UpdatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnIncreaseResponse);
54682
+ var UpdatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnDecreaseResponse);
54683
+ var UpdatePlanLicenseProrationResponse$inboundSchema = z116.pipe(
54684
+ z116.object({
54685
+ on_increase: UpdatePlanLicenseOnIncreaseResponse$inboundSchema,
54686
+ on_decrease: UpdatePlanLicenseOnDecreaseResponse$inboundSchema
54687
+ }),
54688
+ z116.transform((v) => {
54689
+ return remap(v, {
54690
+ "on_increase": "onIncrease",
54691
+ "on_decrease": "onDecrease"
54692
+ });
54693
+ })
54694
+ );
54695
+ var UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanLicenseExpiryDurationTypeResponse);
54696
+ var UpdatePlanLicenseRolloverResponse$inboundSchema = z116.pipe(
54697
+ z116.object({
54698
+ max: optional3(number2()),
54699
+ max_percentage: optional3(number2()),
54700
+ expiry_duration_type: UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
54701
+ expiry_duration_length: optional3(number2())
54702
+ }),
54703
+ z116.transform((v) => {
54704
+ return remap(v, {
54705
+ "max_percentage": "maxPercentage",
54706
+ "expiry_duration_type": "expiryDurationType",
54707
+ "expiry_duration_length": "expiryDurationLength"
54708
+ });
54709
+ })
54710
+ );
54711
+ var UpdatePlanLicenseDurationResponse$inboundSchema = inboundSchema(UpdatePlanLicenseDurationResponse);
54712
+ var UpdatePlanLicenseExpiryResponse$inboundSchema = z116.object({
54713
+ duration: UpdatePlanLicenseDurationResponse$inboundSchema,
54714
+ length: number2()
54715
+ });
54716
+ var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z116.pipe(
54717
+ z116.object({
54718
+ match: z116.record(z116.string(), string5()),
54719
+ priority: optional3(number2()),
54720
+ credit_cost: number2()
54721
+ }),
54722
+ z116.transform((v) => {
54723
+ return remap(v, {
54724
+ "credit_cost": "creditCost"
54725
+ });
54726
+ })
54727
+ );
54728
+ var UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z116.enum(
54729
+ UpdatePlanDimensionsToLicenseResponseEnum2
54730
+ );
54731
+ var UpdatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
54732
+ number2(),
54733
+ UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
54734
+ ]);
54735
+ var UpdatePlanDimensionsLicenseTierResponse2$inboundSchema = z116.pipe(
54736
+ z116.object({
54737
+ to: smartUnion([
54738
+ number2(),
54739
+ UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
54740
+ ]),
54741
+ credit_cost: number2()
54742
+ }),
54743
+ z116.transform((v) => {
54744
+ return remap(v, {
54745
+ "credit_cost": "creditCost"
54746
+ });
54747
+ })
54748
+ );
54749
+ var UpdatePlanDimensionsLicenseResponse3$inboundSchema = z116.pipe(
54750
+ z116.object({
54751
+ match: z116.record(z116.string(), string5()),
54752
+ priority: optional3(number2()),
54753
+ tier_behavior: literal3("graduated"),
54754
+ tiers: z116.array(
54755
+ z116.lazy(() => UpdatePlanDimensionsLicenseTierResponse2$inboundSchema)
54756
+ )
54757
+ }),
54758
+ z116.transform((v) => {
54759
+ return remap(v, {
54760
+ "tier_behavior": "tierBehavior"
54761
+ });
54762
+ })
54763
+ );
54764
+ var UpdatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
54765
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
54766
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
54767
+ ]);
54768
+ var UpdatePlanLicenseMultipliersResponse2$inboundSchema = z116.object({
54769
+ match: z116.record(z116.string(), string5()),
54770
+ factor: optional3(number2()),
54771
+ add: optional3(number2())
54772
+ });
54773
+ var UpdatePlanCreditSchemaLicenseResponse2$inboundSchema = z116.pipe(
54774
+ z116.object({
54775
+ metered_feature_id: string5(),
54776
+ billing_units: optional3(number2()),
54777
+ dimensions: optional3(z116.record(
54778
+ z116.string(),
54779
+ smartUnion([
54780
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
54781
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
54782
+ ])
54783
+ )),
54784
+ multipliers: optional3(z116.record(
54785
+ z116.string(),
54786
+ z116.lazy(() => UpdatePlanLicenseMultipliersResponse2$inboundSchema)
54787
+ )),
54788
+ credit_cost: number2()
54789
+ }),
54790
+ z116.transform((v) => {
54791
+ return remap(v, {
54792
+ "metered_feature_id": "meteredFeatureId",
54793
+ "billing_units": "billingUnits",
54794
+ "credit_cost": "creditCost"
54795
+ });
54796
+ })
54797
+ );
54798
+ var UpdatePlanDimensionsLicenseResponse2$inboundSchema = z116.pipe(
54799
+ z116.object({
54800
+ match: z116.record(z116.string(), string5()),
54801
+ priority: optional3(number2()),
54802
+ credit_cost: number2()
54803
+ }),
54804
+ z116.transform((v) => {
54805
+ return remap(v, {
54806
+ "credit_cost": "creditCost"
54807
+ });
54808
+ })
54809
+ );
54810
+ var UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z116.enum(
54811
+ UpdatePlanDimensionsToLicenseResponseEnum1
54812
+ );
54813
+ var UpdatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
54814
+ number2(),
54815
+ UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
54816
+ ]);
54817
+ var UpdatePlanDimensionsLicenseTierResponse1$inboundSchema = z116.pipe(
54818
+ z116.object({
54819
+ to: smartUnion([
54820
+ number2(),
54821
+ UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
54822
+ ]),
54823
+ credit_cost: number2()
54824
+ }),
54825
+ z116.transform((v) => {
54826
+ return remap(v, {
54827
+ "credit_cost": "creditCost"
54828
+ });
54829
+ })
54830
+ );
54831
+ var UpdatePlanDimensionsLicenseResponse1$inboundSchema = z116.pipe(
54832
+ z116.object({
54833
+ match: z116.record(z116.string(), string5()),
54834
+ priority: optional3(number2()),
54835
+ tier_behavior: literal3("graduated"),
54836
+ tiers: z116.array(
54837
+ z116.lazy(() => UpdatePlanDimensionsLicenseTierResponse1$inboundSchema)
54838
+ )
54839
+ }),
54840
+ z116.transform((v) => {
54841
+ return remap(v, {
54842
+ "tier_behavior": "tierBehavior"
54843
+ });
54844
+ })
54845
+ );
54846
+ var UpdatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
54847
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
54848
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
54849
+ ]);
54850
+ var UpdatePlanLicenseMultipliersResponse1$inboundSchema = z116.object({
54851
+ match: z116.record(z116.string(), string5()),
54852
+ factor: optional3(number2()),
54853
+ add: optional3(number2())
54854
+ });
54855
+ var UpdatePlanToLicenseResponseEnum$inboundSchema = z116.enum(UpdatePlanToLicenseResponseEnum);
54856
+ var UpdatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), UpdatePlanToLicenseResponseEnum$inboundSchema]);
54857
+ var UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z116.pipe(
54858
+ z116.object({
54859
+ to: smartUnion([
54860
+ number2(),
54861
+ UpdatePlanToLicenseResponseEnum$inboundSchema
54862
+ ]),
54863
+ credit_cost: number2()
54864
+ }),
54865
+ z116.transform((v) => {
54866
+ return remap(v, {
54867
+ "credit_cost": "creditCost"
54868
+ });
54869
+ })
54870
+ );
54871
+ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z116.pipe(
54872
+ z116.object({
54873
+ metered_feature_id: string5(),
54874
+ billing_units: optional3(number2()),
54875
+ dimensions: optional3(z116.record(
54876
+ z116.string(),
54877
+ smartUnion([
54878
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
54879
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
54880
+ ])
54881
+ )),
54882
+ multipliers: optional3(z116.record(
54883
+ z116.string(),
54884
+ z116.lazy(() => UpdatePlanLicenseMultipliersResponse1$inboundSchema)
54885
+ )),
54886
+ tier_behavior: literal3("graduated"),
54887
+ tiers: z116.array(z116.lazy(
54888
+ () => UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema
54889
+ ))
54890
+ }),
54891
+ z116.transform((v) => {
54892
+ return remap(v, {
54893
+ "metered_feature_id": "meteredFeatureId",
54894
+ "billing_units": "billingUnits",
54895
+ "tier_behavior": "tierBehavior"
54896
+ });
54897
+ })
54898
+ );
54899
+ var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
54900
+ z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
54901
+ z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
54902
+ ]);
54903
+ var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z116.object({
54904
+ markup: number2()
54905
+ });
54906
+ var UpdatePlanLicenseModelMarkupsResponse$inboundSchema = z116.pipe(
54907
+ z116.object({
54908
+ markup: optional3(number2()),
54909
+ input_cost: optional3(number2()),
54910
+ output_cost: optional3(number2())
54911
+ }),
54912
+ z116.transform((v) => {
54913
+ return remap(v, {
54914
+ "input_cost": "inputCost",
54915
+ "output_cost": "outputCost"
54916
+ });
54917
+ })
54918
+ );
54919
+ var UpdatePlanLicenseMarkupsResponse$inboundSchema = z116.pipe(
54920
+ z116.object({
54921
+ default_markup: optional3(number2()),
54922
+ provider_markups: z116.optional(z116.nullable(z116.record(
54923
+ z116.string(),
54924
+ z116.lazy(() => UpdatePlanLicenseProviderMarkupsResponse$inboundSchema)
54925
+ ))),
54926
+ model_markups: z116.optional(z116.nullable(z116.record(
54927
+ z116.string(),
54928
+ z116.lazy(() => UpdatePlanLicenseModelMarkupsResponse$inboundSchema)
54929
+ )))
54930
+ }),
54931
+ z116.transform((v) => {
54932
+ return remap(v, {
54933
+ "default_markup": "defaultMarkup",
54934
+ "provider_markups": "providerMarkups",
54935
+ "model_markups": "modelMarkups"
54936
+ });
54937
+ })
54938
+ );
54939
+ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
54940
+ z116.object({
54941
+ credit_schema: optional3(z116.array(smartUnion([
54942
+ z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
54943
+ z116.lazy(
54944
+ () => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
54945
+ )
54946
+ ]))),
54947
+ markups: optional3(z116.lazy(
54948
+ () => UpdatePlanLicenseMarkupsResponse$inboundSchema
54949
+ ))
54950
+ }),
54951
+ z116.transform((v) => {
54952
+ return remap(v, {
54953
+ "credit_schema": "creditSchema"
54954
+ });
54955
+ })
54956
+ );
54957
+ var UpdatePlanLicensePlanItemResponse$inboundSchema = z116.pipe(
54958
+ z116.object({
54959
+ threshold_billing: z116.optional(z116.nullable(z116.lazy(
54960
+ () => UpdatePlanLicenseThresholdBillingResponse$inboundSchema
54961
+ ))),
54962
+ feature_id: string5(),
54963
+ included: optional3(number2()),
54964
+ unlimited: optional3(boolean2()),
54965
+ pooled: z116._default(boolean2(), false),
54966
+ reset: optional3(z116.lazy(
54967
+ () => UpdatePlanLicenseResetResponse$inboundSchema
54968
+ )),
54969
+ price: optional3(z116.lazy(
54970
+ () => UpdatePlanLicensePriceResponse$inboundSchema
54971
+ )),
54972
+ proration: optional3(z116.lazy(
54973
+ () => UpdatePlanLicenseProrationResponse$inboundSchema
54974
+ )),
54975
+ rollover: optional3(z116.lazy(
54976
+ () => UpdatePlanLicenseRolloverResponse$inboundSchema
54977
+ )),
54978
+ expiry: optional3(z116.lazy(
54979
+ () => UpdatePlanLicenseExpiryResponse$inboundSchema
54980
+ )),
54981
+ feature_override: optional3(z116.lazy(
54982
+ () => UpdatePlanLicenseFeatureOverrideResponse$inboundSchema
54983
+ ))
54984
+ }),
54985
+ z116.transform((v) => {
54986
+ return remap(v, {
54987
+ "threshold_billing": "thresholdBilling",
54988
+ "feature_id": "featureId",
54989
+ "feature_override": "featureOverride"
54990
+ });
54991
+ })
54992
+ );
54993
+ var UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseRemoveItemBillingMethodResponse);
54994
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum2);
54995
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum1);
54996
+ var UpdatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
54997
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
54998
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
54999
+ ]);
55000
+ var UpdatePlanLicensePlanItemFilterResponse$inboundSchema = z116.pipe(
55001
+ z116.object({
55002
+ feature_id: optional3(string5()),
55003
+ billing_method: optional3(
55004
+ UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
55005
+ ),
55006
+ interval: optional3(
55007
+ smartUnion([
55008
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
55009
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
55010
+ ])
55011
+ ),
55012
+ interval_count: optional3(number2()),
55013
+ included: optional3(number2())
55014
+ }),
55015
+ z116.transform((v) => {
55016
+ return remap(v, {
55017
+ "feature_id": "featureId",
55018
+ "billing_method": "billingMethod",
55019
+ "interval_count": "intervalCount"
55020
+ });
55021
+ })
55022
+ );
55023
+ var UpdatePlanLicenseCustomizeResponse$inboundSchema = z116.pipe(
55024
+ z116.object({
55025
+ price: z116.optional(
55026
+ z116.nullable(
55027
+ z116.lazy(() => UpdatePlanLicenseBasePriceResponse$inboundSchema)
55028
+ )
55029
+ ),
55030
+ add_items: optional3(
55031
+ z116.array(z116.lazy(() => UpdatePlanLicensePlanItemResponse$inboundSchema))
55032
+ ),
55033
+ remove_items: optional3(
55034
+ z116.array(
55035
+ z116.lazy(() => UpdatePlanLicensePlanItemFilterResponse$inboundSchema)
55036
+ )
55037
+ )
55038
+ }),
55039
+ z116.transform((v) => {
55040
+ return remap(v, {
55041
+ "add_items": "addItems",
55042
+ "remove_items": "removeItems"
55043
+ });
55044
+ })
55045
+ );
55046
+ var UpdatePlanLicenseResponse$inboundSchema = z116.pipe(
55047
+ z116.object({
55048
+ license_plan_id: string5(),
55049
+ version: number2(),
55050
+ version_slug: optional3(string5()),
55051
+ included: number2(),
55052
+ prepaid_only: boolean2(),
55053
+ customize: optional3(
55054
+ z116.lazy(() => UpdatePlanLicenseCustomizeResponse$inboundSchema)
55055
+ ),
55056
+ metadata: optional3(z116.record(z116.string(), z116.any())),
55057
+ plan: optional3(Plan$inboundSchema)
55058
+ }),
55059
+ z116.transform((v) => {
55060
+ return remap(v, {
55061
+ "license_plan_id": "licensePlanId",
55062
+ "version_slug": "versionSlug",
55063
+ "prepaid_only": "prepaidOnly"
55064
+ });
55065
+ })
55066
+ );
53279
55067
  var UpdatePlanResponse$inboundSchema = z116.pipe(
53280
55068
  z116.object({
53281
55069
  id: string5(),
@@ -53305,6 +55093,9 @@ var UpdatePlanResponse$inboundSchema = z116.pipe(
53305
55093
  base_variant_id: nullable(string5()),
53306
55094
  variant_details: optional3(
53307
55095
  z116.lazy(() => UpdatePlanVariantDetails$inboundSchema)
55096
+ ),
55097
+ licenses: optional3(
55098
+ z116.array(z116.lazy(() => UpdatePlanLicenseResponse$inboundSchema))
53308
55099
  )
53309
55100
  }),
53310
55101
  z116.transform((v) => {
@@ -54459,7 +56250,10 @@ var APIPromise = class {
54459
56250
  [Symbol.toStringTag] = "APIPromise";
54460
56251
  constructor(p) {
54461
56252
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
54462
- this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
56253
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
56254
+ }
56255
+ #getUnwrapped() {
56256
+ return this.#unwrapped ??= this.#promise.then(([value]) => value);
54463
56257
  }
54464
56258
  then(onfulfilled, onrejected) {
54465
56259
  return this.#promise.then(
@@ -54468,10 +56262,10 @@ var APIPromise = class {
54468
56262
  );
54469
56263
  }
54470
56264
  catch(onrejected) {
54471
- return this.#unwrapped.catch(onrejected);
56265
+ return this.#getUnwrapped().catch(onrejected);
54472
56266
  }
54473
56267
  finally(onfinally) {
54474
- return this.#unwrapped.finally(onfinally);
56268
+ return this.#getUnwrapped().finally(onfinally);
54475
56269
  }
54476
56270
  $inspect() {
54477
56271
  return this.#promise;