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
@@ -86,8 +86,8 @@ var SDK_METADATA = {
86
86
  language: "typescript",
87
87
  openapiDocVersion: "2.4.0",
88
88
  sdkVersion: "0.10.18",
89
- genVersion: "2.882.0",
90
- userAgent: "speakeasy-sdk/typescript 0.10.18 2.882.0 2.4.0 @useautumn/sdk"
89
+ genVersion: "2.884.13",
90
+ userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.4.0 @useautumn/sdk"
91
91
  };
92
92
 
93
93
  // ../sdk/src/lib/http.ts
@@ -12581,7 +12581,7 @@ var CreatePlanDimensionsToItemRequestBodyEnum1 = {
12581
12581
  var CreatePlanToItemRequestBodyEnum = {
12582
12582
  Inf: "inf"
12583
12583
  };
12584
- var CreatePlanPriceLicenseInterval = {
12584
+ var CreatePlanPriceLicenseIntervalRequestBody = {
12585
12585
  OneOff: "one_off",
12586
12586
  Week: "week",
12587
12587
  Month: "month",
@@ -12589,7 +12589,7 @@ var CreatePlanPriceLicenseInterval = {
12589
12589
  SemiAnnual: "semi_annual",
12590
12590
  Year: "year"
12591
12591
  };
12592
- var CreatePlanLicenseResetInterval = {
12592
+ var CreatePlanLicenseResetIntervalRequestBody = {
12593
12593
  OneOff: "one_off",
12594
12594
  Minute: "minute",
12595
12595
  Hour: "hour",
@@ -12600,11 +12600,11 @@ var CreatePlanLicenseResetInterval = {
12600
12600
  SemiAnnual: "semi_annual",
12601
12601
  Year: "year"
12602
12602
  };
12603
- var CreatePlanLicenseTierBehavior = {
12603
+ var CreatePlanLicenseTierBehaviorRequestBody = {
12604
12604
  Graduated: "graduated",
12605
12605
  Volume: "volume"
12606
12606
  };
12607
- var CreatePlanLicenseAddItemPriceInterval = {
12607
+ var CreatePlanAddItemPriceIntervalRequestBody = {
12608
12608
  OneOff: "one_off",
12609
12609
  Week: "week",
12610
12610
  Month: "month",
@@ -12612,47 +12612,47 @@ var CreatePlanLicenseAddItemPriceInterval = {
12612
12612
  SemiAnnual: "semi_annual",
12613
12613
  Year: "year"
12614
12614
  };
12615
- var CreatePlanLicenseAddItemBillingMethod = {
12615
+ var CreatePlanAddItemBillingMethodRequestBody = {
12616
12616
  Prepaid: "prepaid",
12617
12617
  UsageBased: "usage_based"
12618
12618
  };
12619
- var CreatePlanLicenseOnIncrease = {
12619
+ var CreatePlanLicenseOnIncreaseRequestBody = {
12620
12620
  BillImmediately: "bill_immediately",
12621
12621
  ProrateImmediately: "prorate_immediately",
12622
12622
  ProrateNextCycle: "prorate_next_cycle",
12623
12623
  BillNextCycle: "bill_next_cycle"
12624
12624
  };
12625
- var CreatePlanLicenseOnDecrease = {
12625
+ var CreatePlanLicenseOnDecreaseRequestBody = {
12626
12626
  Prorate: "prorate",
12627
12627
  ProrateImmediately: "prorate_immediately",
12628
12628
  ProrateNextCycle: "prorate_next_cycle",
12629
12629
  None: "none",
12630
12630
  NoProrations: "no_prorations"
12631
12631
  };
12632
- var CreatePlanLicenseExpiryDurationType = {
12632
+ var CreatePlanLicenseExpiryDurationTypeRequestBody = {
12633
12633
  Month: "month",
12634
12634
  Forever: "forever"
12635
12635
  };
12636
- var CreatePlanLicenseDuration = {
12636
+ var CreatePlanLicenseDurationRequestBody = {
12637
12637
  Day: "day",
12638
12638
  Week: "week",
12639
12639
  Month: "month",
12640
12640
  Year: "year"
12641
12641
  };
12642
- var CreatePlanDimensionsToLicenseEnum2 = {
12642
+ var CreatePlanDimensionsToLicenseRequestBodyEnum2 = {
12643
12643
  Inf: "inf"
12644
12644
  };
12645
- var CreatePlanDimensionsToLicenseEnum1 = {
12645
+ var CreatePlanDimensionsToLicenseRequestBodyEnum1 = {
12646
12646
  Inf: "inf"
12647
12647
  };
12648
- var CreatePlanToLicenseEnum = {
12648
+ var CreatePlanToLicenseRequestBodyEnum = {
12649
12649
  Inf: "inf"
12650
12650
  };
12651
- var CreatePlanLicenseRemoveItemBillingMethod = {
12651
+ var CreatePlanRemoveItemBillingMethodRequestBody = {
12652
12652
  Prepaid: "prepaid",
12653
12653
  UsageBased: "usage_based"
12654
12654
  };
12655
- var CreatePlanIntervalLicenseRemoveItemEnum2 = {
12655
+ var CreatePlanIntervalRemoveItemRequestBodyEnum2 = {
12656
12656
  OneOff: "one_off",
12657
12657
  Minute: "minute",
12658
12658
  Hour: "hour",
@@ -12663,7 +12663,7 @@ var CreatePlanIntervalLicenseRemoveItemEnum2 = {
12663
12663
  SemiAnnual: "semi_annual",
12664
12664
  Year: "year"
12665
12665
  };
12666
- var CreatePlanIntervalLicenseRemoveItemEnum1 = {
12666
+ var CreatePlanIntervalRemoveItemRequestBodyEnum1 = {
12667
12667
  OneOff: "one_off",
12668
12668
  Week: "week",
12669
12669
  Month: "month",
@@ -13186,19 +13186,21 @@ var CreatePlanItemPlanItem$outboundSchema = z27.pipe(
13186
13186
  });
13187
13187
  })
13188
13188
  );
13189
- var CreatePlanPriceLicenseInterval$outboundSchema = z27.enum(CreatePlanPriceLicenseInterval);
13190
- var CreatePlanLicenseAdditionalCurrency$outboundSchema = z27.object({
13189
+ var CreatePlanPriceLicenseIntervalRequestBody$outboundSchema = z27.enum(
13190
+ CreatePlanPriceLicenseIntervalRequestBody
13191
+ );
13192
+ var CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z27.object({
13191
13193
  currency: z27.string(),
13192
13194
  amount: z27.number()
13193
13195
  });
13194
- var CreatePlanLicenseBasePrice$outboundSchema = z27.pipe(
13196
+ var CreatePlanBasePriceRequestBody$outboundSchema = z27.pipe(
13195
13197
  z27.object({
13196
13198
  amount: z27.number(),
13197
- interval: CreatePlanPriceLicenseInterval$outboundSchema,
13199
+ interval: CreatePlanPriceLicenseIntervalRequestBody$outboundSchema,
13198
13200
  intervalCount: z27._default(z27.number(), 1),
13199
- additionalCurrencies: z27.optional(
13200
- z27.array(z27.lazy(() => CreatePlanLicenseAdditionalCurrency$outboundSchema))
13201
- )
13201
+ additionalCurrencies: z27.optional(z27.array(z27.lazy(
13202
+ () => CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
13203
+ )))
13202
13204
  }),
13203
13205
  z27.transform((v) => {
13204
13206
  return remap(v, {
@@ -13207,13 +13209,15 @@ var CreatePlanLicenseBasePrice$outboundSchema = z27.pipe(
13207
13209
  });
13208
13210
  })
13209
13211
  );
13210
- var CreatePlanLicenseThresholdBilling$outboundSchema = z27.object({
13212
+ var CreatePlanLicenseThresholdBillingRequestBody$outboundSchema = z27.object({
13211
13213
  threshold: z27.number()
13212
13214
  });
13213
- var CreatePlanLicenseResetInterval$outboundSchema = z27.enum(CreatePlanLicenseResetInterval);
13214
- var CreatePlanLicenseReset$outboundSchema = z27.pipe(
13215
+ var CreatePlanLicenseResetIntervalRequestBody$outboundSchema = z27.enum(
13216
+ CreatePlanLicenseResetIntervalRequestBody
13217
+ );
13218
+ var CreatePlanLicenseResetRequestBody$outboundSchema = z27.pipe(
13215
13219
  z27.object({
13216
- interval: CreatePlanLicenseResetInterval$outboundSchema,
13220
+ interval: CreatePlanLicenseResetIntervalRequestBody$outboundSchema,
13217
13221
  intervalCount: z27._default(z27.number(), 1)
13218
13222
  }),
13219
13223
  z27.transform((v) => {
@@ -13222,12 +13226,12 @@ var CreatePlanLicenseReset$outboundSchema = z27.pipe(
13222
13226
  });
13223
13227
  })
13224
13228
  );
13225
- var CreatePlanLicenseAddItemAdditionalCurrency$outboundSchema = z27.object({
13229
+ var CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema = z27.object({
13226
13230
  currency: z27.string(),
13227
13231
  amount: z27.number()
13228
13232
  });
13229
- var CreatePlanLicensePriceTo$outboundSchema = smartUnion([z27.number(), z27.string()]);
13230
- var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z27.pipe(
13233
+ var CreatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z27.number(), z27.string()]);
13234
+ var CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z27.pipe(
13231
13235
  z27.object({
13232
13236
  currency: z27.string(),
13233
13237
  amount: z27.optional(z27.number()),
@@ -13239,13 +13243,13 @@ var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z27.pipe(
13239
13243
  });
13240
13244
  })
13241
13245
  );
13242
- var CreatePlanLicensePriceTier$outboundSchema = z27.pipe(
13246
+ var CreatePlanLicensePriceTierRequestBody$outboundSchema = z27.pipe(
13243
13247
  z27.object({
13244
13248
  to: smartUnion([z27.number(), z27.string()]),
13245
13249
  amount: z27.optional(z27.number()),
13246
13250
  flatAmount: z27.optional(z27.number()),
13247
13251
  additionalCurrencies: z27.optional(z27.array(z27.lazy(
13248
- () => CreatePlanLicenseTierAdditionalCurrency$outboundSchema
13252
+ () => CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
13249
13253
  )))
13250
13254
  }),
13251
13255
  z27.transform((v) => {
@@ -13255,27 +13259,31 @@ var CreatePlanLicensePriceTier$outboundSchema = z27.pipe(
13255
13259
  });
13256
13260
  })
13257
13261
  );
13258
- var CreatePlanLicenseTierBehavior$outboundSchema = z27.enum(CreatePlanLicenseTierBehavior);
13259
- var CreatePlanLicenseAddItemPriceInterval$outboundSchema = z27.enum(
13260
- CreatePlanLicenseAddItemPriceInterval
13262
+ var CreatePlanLicenseTierBehaviorRequestBody$outboundSchema = z27.enum(
13263
+ CreatePlanLicenseTierBehaviorRequestBody
13264
+ );
13265
+ var CreatePlanAddItemPriceIntervalRequestBody$outboundSchema = z27.enum(
13266
+ CreatePlanAddItemPriceIntervalRequestBody
13261
13267
  );
13262
- var CreatePlanLicenseAddItemBillingMethod$outboundSchema = z27.enum(
13263
- CreatePlanLicenseAddItemBillingMethod
13268
+ var CreatePlanAddItemBillingMethodRequestBody$outboundSchema = z27.enum(
13269
+ CreatePlanAddItemBillingMethodRequestBody
13264
13270
  );
13265
- var CreatePlanLicensePrice$outboundSchema = z27.pipe(
13271
+ var CreatePlanLicensePriceRequestBody$outboundSchema = z27.pipe(
13266
13272
  z27.object({
13267
13273
  amount: z27.optional(z27.number()),
13268
13274
  additionalCurrencies: z27.optional(z27.array(z27.lazy(
13269
- () => CreatePlanLicenseAddItemAdditionalCurrency$outboundSchema
13275
+ () => CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema
13270
13276
  ))),
13271
13277
  tiers: z27.optional(z27.array(z27.lazy(
13272
- () => CreatePlanLicensePriceTier$outboundSchema
13278
+ () => CreatePlanLicensePriceTierRequestBody$outboundSchema
13273
13279
  ))),
13274
- tierBehavior: z27.optional(CreatePlanLicenseTierBehavior$outboundSchema),
13275
- interval: CreatePlanLicenseAddItemPriceInterval$outboundSchema,
13280
+ tierBehavior: z27.optional(
13281
+ CreatePlanLicenseTierBehaviorRequestBody$outboundSchema
13282
+ ),
13283
+ interval: CreatePlanAddItemPriceIntervalRequestBody$outboundSchema,
13276
13284
  intervalCount: z27._default(z27.number(), 1),
13277
13285
  billingUnits: z27._default(z27.number(), 1),
13278
- billingMethod: CreatePlanLicenseAddItemBillingMethod$outboundSchema,
13286
+ billingMethod: CreatePlanAddItemBillingMethodRequestBody$outboundSchema,
13279
13287
  maxPurchase: z27.optional(z27.nullable(z27.number()))
13280
13288
  }),
13281
13289
  z27.transform((v) => {
@@ -13289,12 +13297,16 @@ var CreatePlanLicensePrice$outboundSchema = z27.pipe(
13289
13297
  });
13290
13298
  })
13291
13299
  );
13292
- var CreatePlanLicenseOnIncrease$outboundSchema = z27.enum(CreatePlanLicenseOnIncrease);
13293
- var CreatePlanLicenseOnDecrease$outboundSchema = z27.enum(CreatePlanLicenseOnDecrease);
13294
- var CreatePlanLicenseProration$outboundSchema = z27.pipe(
13300
+ var CreatePlanLicenseOnIncreaseRequestBody$outboundSchema = z27.enum(
13301
+ CreatePlanLicenseOnIncreaseRequestBody
13302
+ );
13303
+ var CreatePlanLicenseOnDecreaseRequestBody$outboundSchema = z27.enum(
13304
+ CreatePlanLicenseOnDecreaseRequestBody
13305
+ );
13306
+ var CreatePlanLicenseProrationRequestBody$outboundSchema = z27.pipe(
13295
13307
  z27.object({
13296
- onIncrease: CreatePlanLicenseOnIncrease$outboundSchema,
13297
- onDecrease: CreatePlanLicenseOnDecrease$outboundSchema
13308
+ onIncrease: CreatePlanLicenseOnIncreaseRequestBody$outboundSchema,
13309
+ onDecrease: CreatePlanLicenseOnDecreaseRequestBody$outboundSchema
13298
13310
  }),
13299
13311
  z27.transform((v) => {
13300
13312
  return remap(v, {
@@ -13303,12 +13315,14 @@ var CreatePlanLicenseProration$outboundSchema = z27.pipe(
13303
13315
  });
13304
13316
  })
13305
13317
  );
13306
- var CreatePlanLicenseExpiryDurationType$outboundSchema = z27.enum(CreatePlanLicenseExpiryDurationType);
13307
- var CreatePlanLicenseRollover$outboundSchema = z27.pipe(
13318
+ var CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z27.enum(
13319
+ CreatePlanLicenseExpiryDurationTypeRequestBody
13320
+ );
13321
+ var CreatePlanLicenseRolloverRequestBody$outboundSchema = z27.pipe(
13308
13322
  z27.object({
13309
13323
  max: z27.optional(z27.number()),
13310
13324
  maxPercentage: z27.optional(z27.number()),
13311
- expiryDurationType: CreatePlanLicenseExpiryDurationType$outboundSchema,
13325
+ expiryDurationType: CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
13312
13326
  expiryDurationLength: z27.optional(z27.number())
13313
13327
  }),
13314
13328
  z27.transform((v) => {
@@ -13319,13 +13333,13 @@ var CreatePlanLicenseRollover$outboundSchema = z27.pipe(
13319
13333
  });
13320
13334
  })
13321
13335
  );
13322
- var CreatePlanLicenseDuration$outboundSchema = z27.enum(CreatePlanLicenseDuration);
13323
- var CreatePlanLicenseExpiry$outboundSchema = z27.object({
13324
- duration: CreatePlanLicenseDuration$outboundSchema,
13336
+ var CreatePlanLicenseDurationRequestBody$outboundSchema = z27.enum(CreatePlanLicenseDurationRequestBody);
13337
+ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
13338
+ duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
13325
13339
  length: z27.number()
13326
13340
  });
13327
13341
  var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13328
- var CreatePlanDimensionsLicense4$outboundSchema = z27.pipe(
13342
+ var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
13329
13343
  z27.object({
13330
13344
  match: z27.record(
13331
13345
  z27.string(),
@@ -13341,13 +13355,18 @@ var CreatePlanDimensionsLicense4$outboundSchema = z27.pipe(
13341
13355
  })
13342
13356
  );
13343
13357
  var CreatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13344
- var CreatePlanDimensionsToLicenseEnum2$outboundSchema = z27.enum(CreatePlanDimensionsToLicenseEnum2);
13345
- var CreatePlanDimensionsLicenseToUnion2$outboundSchema = smartUnion([z27.number(), CreatePlanDimensionsToLicenseEnum2$outboundSchema]);
13346
- var CreatePlanDimensionsLicenseTier2$outboundSchema = z27.pipe(
13358
+ var CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z27.enum(
13359
+ CreatePlanDimensionsToLicenseRequestBodyEnum2
13360
+ );
13361
+ var CreatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
13362
+ z27.number(),
13363
+ CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
13364
+ ]);
13365
+ var CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z27.pipe(
13347
13366
  z27.object({
13348
13367
  to: smartUnion([
13349
13368
  z27.number(),
13350
- CreatePlanDimensionsToLicenseEnum2$outboundSchema
13369
+ CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
13351
13370
  ]),
13352
13371
  creditCost: z27.number()
13353
13372
  }),
@@ -13357,7 +13376,7 @@ var CreatePlanDimensionsLicenseTier2$outboundSchema = z27.pipe(
13357
13376
  });
13358
13377
  })
13359
13378
  );
13360
- var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
13379
+ var CreatePlanDimensionsLicenseRequestBody3$outboundSchema = z27.pipe(
13361
13380
  z27.object({
13362
13381
  match: z27.record(
13363
13382
  z27.string(),
@@ -13366,7 +13385,9 @@ var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
13366
13385
  priority: z27.optional(z27.int()),
13367
13386
  tierBehavior: z27.literal("graduated"),
13368
13387
  tiers: z27.array(
13369
- z27.lazy(() => CreatePlanDimensionsLicenseTier2$outboundSchema)
13388
+ z27.lazy(
13389
+ () => CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema
13390
+ )
13370
13391
  )
13371
13392
  }),
13372
13393
  z27.transform((v) => {
@@ -13375,12 +13396,12 @@ var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
13375
13396
  });
13376
13397
  })
13377
13398
  );
13378
- var CreatePlanLicenseDimensionsUnion2$outboundSchema = smartUnion([
13379
- z27.lazy(() => CreatePlanDimensionsLicense3$outboundSchema),
13380
- z27.lazy(() => CreatePlanDimensionsLicense4$outboundSchema)
13399
+ var CreatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
13400
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
13401
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
13381
13402
  ]);
13382
13403
  var CreatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13383
- var CreatePlanLicenseMultipliers2$outboundSchema = z27.object({
13404
+ var CreatePlanLicenseMultipliersRequestBody2$outboundSchema = z27.object({
13384
13405
  match: z27.record(
13385
13406
  z27.string(),
13386
13407
  smartUnion([z27.string(), z27.number(), z27.boolean()])
@@ -13388,20 +13409,20 @@ var CreatePlanLicenseMultipliers2$outboundSchema = z27.object({
13388
13409
  factor: z27.optional(z27.number()),
13389
13410
  add: z27.optional(z27.number())
13390
13411
  });
13391
- var CreatePlanCreditSchemaLicense2$outboundSchema = z27.pipe(
13412
+ var CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z27.pipe(
13392
13413
  z27.object({
13393
13414
  meteredFeatureId: z27.string(),
13394
13415
  billingUnits: z27.optional(z27.number()),
13395
13416
  dimensions: z27.optional(z27.record(
13396
13417
  z27.string(),
13397
13418
  smartUnion([
13398
- z27.lazy(() => CreatePlanDimensionsLicense3$outboundSchema),
13399
- z27.lazy(() => CreatePlanDimensionsLicense4$outboundSchema)
13419
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
13420
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
13400
13421
  ])
13401
13422
  )),
13402
13423
  multipliers: z27.optional(z27.record(
13403
13424
  z27.string(),
13404
- z27.lazy(() => CreatePlanLicenseMultipliers2$outboundSchema)
13425
+ z27.lazy(() => CreatePlanLicenseMultipliersRequestBody2$outboundSchema)
13405
13426
  )),
13406
13427
  creditCost: z27.number()
13407
13428
  }),
@@ -13414,7 +13435,7 @@ var CreatePlanCreditSchemaLicense2$outboundSchema = z27.pipe(
13414
13435
  })
13415
13436
  );
13416
13437
  var CreatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13417
- var CreatePlanDimensionsLicense2$outboundSchema = z27.pipe(
13438
+ var CreatePlanDimensionsLicenseRequestBody2$outboundSchema = z27.pipe(
13418
13439
  z27.object({
13419
13440
  match: z27.record(
13420
13441
  z27.string(),
@@ -13430,13 +13451,18 @@ var CreatePlanDimensionsLicense2$outboundSchema = z27.pipe(
13430
13451
  })
13431
13452
  );
13432
13453
  var CreatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13433
- var CreatePlanDimensionsToLicenseEnum1$outboundSchema = z27.enum(CreatePlanDimensionsToLicenseEnum1);
13434
- var CreatePlanDimensionsLicenseToUnion1$outboundSchema = smartUnion([z27.number(), CreatePlanDimensionsToLicenseEnum1$outboundSchema]);
13435
- var CreatePlanDimensionsLicenseTier1$outboundSchema = z27.pipe(
13454
+ var CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z27.enum(
13455
+ CreatePlanDimensionsToLicenseRequestBodyEnum1
13456
+ );
13457
+ var CreatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
13458
+ z27.number(),
13459
+ CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
13460
+ ]);
13461
+ var CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z27.pipe(
13436
13462
  z27.object({
13437
13463
  to: smartUnion([
13438
13464
  z27.number(),
13439
- CreatePlanDimensionsToLicenseEnum1$outboundSchema
13465
+ CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
13440
13466
  ]),
13441
13467
  creditCost: z27.number()
13442
13468
  }),
@@ -13446,7 +13472,7 @@ var CreatePlanDimensionsLicenseTier1$outboundSchema = z27.pipe(
13446
13472
  });
13447
13473
  })
13448
13474
  );
13449
- var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
13475
+ var CreatePlanDimensionsLicenseRequestBody1$outboundSchema = z27.pipe(
13450
13476
  z27.object({
13451
13477
  match: z27.record(
13452
13478
  z27.string(),
@@ -13455,7 +13481,9 @@ var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
13455
13481
  priority: z27.optional(z27.int()),
13456
13482
  tierBehavior: z27.literal("graduated"),
13457
13483
  tiers: z27.array(
13458
- z27.lazy(() => CreatePlanDimensionsLicenseTier1$outboundSchema)
13484
+ z27.lazy(
13485
+ () => CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema
13486
+ )
13459
13487
  )
13460
13488
  }),
13461
13489
  z27.transform((v) => {
@@ -13464,12 +13492,12 @@ var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
13464
13492
  });
13465
13493
  })
13466
13494
  );
13467
- var CreatePlanLicenseDimensionsUnion1$outboundSchema = smartUnion([
13468
- z27.lazy(() => CreatePlanDimensionsLicense1$outboundSchema),
13469
- z27.lazy(() => CreatePlanDimensionsLicense2$outboundSchema)
13495
+ var CreatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
13496
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
13497
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
13470
13498
  ]);
13471
13499
  var CreatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13472
- var CreatePlanLicenseMultipliers1$outboundSchema = z27.object({
13500
+ var CreatePlanLicenseMultipliersRequestBody1$outboundSchema = z27.object({
13473
13501
  match: z27.record(
13474
13502
  z27.string(),
13475
13503
  smartUnion([z27.string(), z27.number(), z27.boolean()])
@@ -13477,11 +13505,17 @@ var CreatePlanLicenseMultipliers1$outboundSchema = z27.object({
13477
13505
  factor: z27.optional(z27.number()),
13478
13506
  add: z27.optional(z27.number())
13479
13507
  });
13480
- var CreatePlanToLicenseEnum$outboundSchema = z27.enum(CreatePlanToLicenseEnum);
13481
- var CreatePlanLicenseFeatureOverrideToUnion$outboundSchema = smartUnion([z27.number(), CreatePlanToLicenseEnum$outboundSchema]);
13482
- var CreatePlanLicenseFeatureOverrideTier$outboundSchema = z27.pipe(
13508
+ var CreatePlanToLicenseRequestBodyEnum$outboundSchema = z27.enum(CreatePlanToLicenseRequestBodyEnum);
13509
+ var CreatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
13510
+ z27.number(),
13511
+ CreatePlanToLicenseRequestBodyEnum$outboundSchema
13512
+ ]);
13513
+ var CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z27.pipe(
13483
13514
  z27.object({
13484
- to: smartUnion([z27.number(), CreatePlanToLicenseEnum$outboundSchema]),
13515
+ to: smartUnion([
13516
+ z27.number(),
13517
+ CreatePlanToLicenseRequestBodyEnum$outboundSchema
13518
+ ]),
13485
13519
  creditCost: z27.number()
13486
13520
  }),
13487
13521
  z27.transform((v) => {
@@ -13490,24 +13524,24 @@ var CreatePlanLicenseFeatureOverrideTier$outboundSchema = z27.pipe(
13490
13524
  });
13491
13525
  })
13492
13526
  );
13493
- var CreatePlanCreditSchemaLicense1$outboundSchema = z27.pipe(
13527
+ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
13494
13528
  z27.object({
13495
13529
  meteredFeatureId: z27.string(),
13496
13530
  billingUnits: z27.optional(z27.number()),
13497
13531
  dimensions: z27.optional(z27.record(
13498
13532
  z27.string(),
13499
13533
  smartUnion([
13500
- z27.lazy(() => CreatePlanDimensionsLicense1$outboundSchema),
13501
- z27.lazy(() => CreatePlanDimensionsLicense2$outboundSchema)
13534
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
13535
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
13502
13536
  ])
13503
13537
  )),
13504
13538
  multipliers: z27.optional(z27.record(
13505
13539
  z27.string(),
13506
- z27.lazy(() => CreatePlanLicenseMultipliers1$outboundSchema)
13540
+ z27.lazy(() => CreatePlanLicenseMultipliersRequestBody1$outboundSchema)
13507
13541
  )),
13508
13542
  tierBehavior: z27.literal("graduated"),
13509
13543
  tiers: z27.array(z27.lazy(
13510
- () => CreatePlanLicenseFeatureOverrideTier$outboundSchema
13544
+ () => CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
13511
13545
  ))
13512
13546
  }),
13513
13547
  z27.transform((v) => {
@@ -13518,14 +13552,14 @@ var CreatePlanCreditSchemaLicense1$outboundSchema = z27.pipe(
13518
13552
  });
13519
13553
  })
13520
13554
  );
13521
- var CreatePlanLicenseCreditSchemaUnion$outboundSchema = smartUnion([
13522
- z27.lazy(() => CreatePlanCreditSchemaLicense1$outboundSchema),
13523
- z27.lazy(() => CreatePlanCreditSchemaLicense2$outboundSchema)
13555
+ var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
13556
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
13557
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
13524
13558
  ]);
13525
- var CreatePlanLicenseProviderMarkups$outboundSchema = z27.object({
13559
+ var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
13526
13560
  markup: z27.number()
13527
13561
  });
13528
- var CreatePlanLicenseModelMarkups$outboundSchema = z27.pipe(
13562
+ var CreatePlanLicenseModelMarkupsRequestBody$outboundSchema = z27.pipe(
13529
13563
  z27.object({
13530
13564
  markup: z27.optional(z27.number()),
13531
13565
  inputCost: z27.optional(z27.number()),
@@ -13538,16 +13572,16 @@ var CreatePlanLicenseModelMarkups$outboundSchema = z27.pipe(
13538
13572
  });
13539
13573
  })
13540
13574
  );
13541
- var CreatePlanLicenseMarkups$outboundSchema = z27.pipe(
13575
+ var CreatePlanLicenseMarkupsRequestBody$outboundSchema = z27.pipe(
13542
13576
  z27.object({
13543
13577
  defaultMarkup: z27.optional(z27.number()),
13544
13578
  providerMarkups: z27.optional(z27.nullable(z27.record(
13545
13579
  z27.string(),
13546
- z27.lazy(() => CreatePlanLicenseProviderMarkups$outboundSchema)
13580
+ z27.lazy(() => CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
13547
13581
  ))),
13548
13582
  modelMarkups: z27.optional(z27.nullable(z27.record(
13549
13583
  z27.string(),
13550
- z27.lazy(() => CreatePlanLicenseModelMarkups$outboundSchema)
13584
+ z27.lazy(() => CreatePlanLicenseModelMarkupsRequestBody$outboundSchema)
13551
13585
  )))
13552
13586
  }),
13553
13587
  z27.transform((v) => {
@@ -13558,16 +13592,16 @@ var CreatePlanLicenseMarkups$outboundSchema = z27.pipe(
13558
13592
  });
13559
13593
  })
13560
13594
  );
13561
- var CreatePlanLicenseFeatureOverride$outboundSchema = z27.pipe(
13595
+ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
13562
13596
  z27.object({
13563
13597
  creditSchema: z27.optional(z27.array(smartUnion([
13564
- z27.lazy(() => CreatePlanCreditSchemaLicense1$outboundSchema),
13598
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
13565
13599
  z27.lazy(
13566
- () => CreatePlanCreditSchemaLicense2$outboundSchema
13600
+ () => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
13567
13601
  )
13568
13602
  ]))),
13569
13603
  markups: z27.optional(z27.lazy(
13570
- () => CreatePlanLicenseMarkups$outboundSchema
13604
+ () => CreatePlanLicenseMarkupsRequestBody$outboundSchema
13571
13605
  ))
13572
13606
  }),
13573
13607
  z27.transform((v) => {
@@ -13576,29 +13610,33 @@ var CreatePlanLicenseFeatureOverride$outboundSchema = z27.pipe(
13576
13610
  });
13577
13611
  })
13578
13612
  );
13579
- var CreatePlanLicensePlanItem$outboundSchema = z27.pipe(
13613
+ var CreatePlanLicensePlanItemRequestBody$outboundSchema = z27.pipe(
13580
13614
  z27.object({
13581
- thresholdBilling: z27.optional(
13582
- z27.nullable(
13583
- z27.lazy(() => CreatePlanLicenseThresholdBilling$outboundSchema)
13584
- )
13585
- ),
13615
+ thresholdBilling: z27.optional(z27.nullable(z27.lazy(
13616
+ () => CreatePlanLicenseThresholdBillingRequestBody$outboundSchema
13617
+ ))),
13586
13618
  featureId: z27.string(),
13587
13619
  included: z27.optional(z27.number()),
13588
13620
  unlimited: z27.optional(z27.boolean()),
13589
13621
  pooled: z27._default(z27.boolean(), false),
13590
- reset: z27.optional(z27.lazy(() => CreatePlanLicenseReset$outboundSchema)),
13591
- price: z27.optional(z27.lazy(() => CreatePlanLicensePrice$outboundSchema)),
13592
- proration: z27.optional(
13593
- z27.lazy(() => CreatePlanLicenseProration$outboundSchema)
13594
- ),
13595
- rollover: z27.optional(
13596
- z27.lazy(() => CreatePlanLicenseRollover$outboundSchema)
13597
- ),
13598
- expiry: z27.optional(z27.lazy(() => CreatePlanLicenseExpiry$outboundSchema)),
13599
- featureOverride: z27.optional(
13600
- z27.lazy(() => CreatePlanLicenseFeatureOverride$outboundSchema)
13601
- )
13622
+ reset: z27.optional(z27.lazy(
13623
+ () => CreatePlanLicenseResetRequestBody$outboundSchema
13624
+ )),
13625
+ price: z27.optional(z27.lazy(
13626
+ () => CreatePlanLicensePriceRequestBody$outboundSchema
13627
+ )),
13628
+ proration: z27.optional(z27.lazy(
13629
+ () => CreatePlanLicenseProrationRequestBody$outboundSchema
13630
+ )),
13631
+ rollover: z27.optional(z27.lazy(
13632
+ () => CreatePlanLicenseRolloverRequestBody$outboundSchema
13633
+ )),
13634
+ expiry: z27.optional(z27.lazy(
13635
+ () => CreatePlanLicenseExpiryRequestBody$outboundSchema
13636
+ )),
13637
+ featureOverride: z27.optional(z27.lazy(
13638
+ () => CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema
13639
+ ))
13602
13640
  }),
13603
13641
  z27.transform((v) => {
13604
13642
  return remap(v, {
@@ -13608,29 +13646,29 @@ var CreatePlanLicensePlanItem$outboundSchema = z27.pipe(
13608
13646
  });
13609
13647
  })
13610
13648
  );
13611
- var CreatePlanLicenseRemoveItemBillingMethod$outboundSchema = z27.enum(
13612
- CreatePlanLicenseRemoveItemBillingMethod
13649
+ var CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema = z27.enum(
13650
+ CreatePlanRemoveItemBillingMethodRequestBody
13613
13651
  );
13614
- var CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema = z27.enum(
13615
- CreatePlanIntervalLicenseRemoveItemEnum2
13652
+ var CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema = z27.enum(
13653
+ CreatePlanIntervalRemoveItemRequestBodyEnum2
13616
13654
  );
13617
- var CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z27.enum(
13618
- CreatePlanIntervalLicenseRemoveItemEnum1
13655
+ var CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema = z27.enum(
13656
+ CreatePlanIntervalRemoveItemRequestBodyEnum1
13619
13657
  );
13620
- var CreatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
13621
- CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
13622
- CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
13658
+ var CreatePlanIntervalRequestBodyUnion$outboundSchema = smartUnion([
13659
+ CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
13660
+ CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
13623
13661
  ]);
13624
- var CreatePlanLicensePlanItemFilter$outboundSchema = z27.pipe(
13662
+ var CreatePlanPlanItemFilterRequestBody$outboundSchema = z27.pipe(
13625
13663
  z27.object({
13626
13664
  featureId: z27.optional(z27.string()),
13627
13665
  billingMethod: z27.optional(
13628
- CreatePlanLicenseRemoveItemBillingMethod$outboundSchema
13666
+ CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema
13629
13667
  ),
13630
13668
  interval: z27.optional(
13631
13669
  smartUnion([
13632
- CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
13633
- CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
13670
+ CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
13671
+ CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
13634
13672
  ])
13635
13673
  ),
13636
13674
  intervalCount: z27.optional(z27.int()),
@@ -13644,16 +13682,18 @@ var CreatePlanLicensePlanItemFilter$outboundSchema = z27.pipe(
13644
13682
  });
13645
13683
  })
13646
13684
  );
13647
- var CreatePlanLicenseCustomize$outboundSchema = z27.pipe(
13685
+ var CreatePlanCustomizeRequestBody$outboundSchema = z27.pipe(
13648
13686
  z27.object({
13649
13687
  price: z27.optional(
13650
- z27.nullable(z27.lazy(() => CreatePlanLicenseBasePrice$outboundSchema))
13688
+ z27.nullable(z27.lazy(() => CreatePlanBasePriceRequestBody$outboundSchema))
13651
13689
  ),
13652
13690
  addItems: z27.optional(
13653
- z27.array(z27.lazy(() => CreatePlanLicensePlanItem$outboundSchema))
13691
+ z27.array(
13692
+ z27.lazy(() => CreatePlanLicensePlanItemRequestBody$outboundSchema)
13693
+ )
13654
13694
  ),
13655
13695
  removeItems: z27.optional(
13656
- z27.array(z27.lazy(() => CreatePlanLicensePlanItemFilter$outboundSchema))
13696
+ z27.array(z27.lazy(() => CreatePlanPlanItemFilterRequestBody$outboundSchema))
13657
13697
  )
13658
13698
  }),
13659
13699
  z27.transform((v) => {
@@ -13663,14 +13703,14 @@ var CreatePlanLicenseCustomize$outboundSchema = z27.pipe(
13663
13703
  });
13664
13704
  })
13665
13705
  );
13666
- var CreatePlanLicense$outboundSchema = z27.pipe(
13706
+ var CreatePlanLicenseRequest$outboundSchema = z27.pipe(
13667
13707
  z27.object({
13668
13708
  licensePlanId: z27.string(),
13669
13709
  versionSlug: z27.optional(z27.string()),
13670
13710
  included: z27.optional(z27.int()),
13671
13711
  prepaidOnly: z27.optional(z27.boolean()),
13672
13712
  customize: z27.optional(
13673
- z27.nullable(z27.lazy(() => CreatePlanLicenseCustomize$outboundSchema))
13713
+ z27.nullable(z27.lazy(() => CreatePlanCustomizeRequestBody$outboundSchema))
13674
13714
  ),
13675
13715
  metadata: z27.optional(z27.record(z27.string(), z27.any()))
13676
13716
  }),
@@ -13876,7 +13916,7 @@ var CreatePlanParams$outboundSchema = z27.pipe(
13876
13916
  z27.array(z27.lazy(() => CreatePlanItemPlanItem$outboundSchema))
13877
13917
  ),
13878
13918
  licenses: z27.optional(
13879
- z27.array(z27.lazy(() => CreatePlanLicense$outboundSchema))
13919
+ z27.array(z27.lazy(() => CreatePlanLicenseRequest$outboundSchema))
13880
13920
  ),
13881
13921
  freeTrial: z27.optional(z27.lazy(() => FreeTrialRequestBody$outboundSchema)),
13882
13922
  config: z27.optional(
@@ -14147,17 +14187,17 @@ var CreatePlanVariantDetailsAddItemPriceInterval = {
14147
14187
  SemiAnnual: "semi_annual",
14148
14188
  Year: "year"
14149
14189
  };
14150
- var CreatePlanAddItemBillingMethodResponse = {
14190
+ var CreatePlanVariantDetailsAddItemBillingMethod = {
14151
14191
  Prepaid: "prepaid",
14152
14192
  UsageBased: "usage_based"
14153
14193
  };
14154
- var CreatePlanOnIncreaseResponse = {
14194
+ var CreatePlanVariantDetailsOnIncrease = {
14155
14195
  BillImmediately: "bill_immediately",
14156
14196
  ProrateImmediately: "prorate_immediately",
14157
14197
  ProrateNextCycle: "prorate_next_cycle",
14158
14198
  BillNextCycle: "bill_next_cycle"
14159
14199
  };
14160
- var CreatePlanOnDecreaseResponse = {
14200
+ var CreatePlanVariantDetailsOnDecrease = {
14161
14201
  Prorate: "prorate",
14162
14202
  ProrateImmediately: "prorate_immediately",
14163
14203
  ProrateNextCycle: "prorate_next_cycle",
@@ -14183,7 +14223,7 @@ var CreatePlanDimensionsToVariantDetailsEnum1 = {
14183
14223
  var CreatePlanToVariantDetailsEnum = {
14184
14224
  Inf: "inf"
14185
14225
  };
14186
- var CreatePlanRemoveItemBillingMethodResponse = {
14226
+ var CreatePlanVariantDetailsRemoveItemBillingMethod = {
14187
14227
  Prepaid: "prepaid",
14188
14228
  UsageBased: "usage_based"
14189
14229
  };
@@ -14908,7 +14948,7 @@ var CreatePlanVariantDetailsAdditionalCurrency$inboundSchema = z28.object(
14908
14948
  amount: number2()
14909
14949
  }
14910
14950
  );
14911
- var CreatePlanBasePriceResponse$inboundSchema = z28.pipe(
14951
+ var CreatePlanVariantDetailsBasePrice$inboundSchema = z28.pipe(
14912
14952
  z28.object({
14913
14953
  amount: number2(),
14914
14954
  interval: CreatePlanPriceVariantDetailsInterval$inboundSchema,
@@ -14939,7 +14979,7 @@ var CreatePlanVariantDetailsReset$inboundSchema = z28.pipe(
14939
14979
  });
14940
14980
  })
14941
14981
  );
14942
- var CreatePlanAddItemAdditionalCurrencyResponse$inboundSchema = z28.object({
14982
+ var CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z28.object({
14943
14983
  currency: string5(),
14944
14984
  amount: number2()
14945
14985
  });
@@ -14974,12 +15014,12 @@ var CreatePlanVariantDetailsPriceTier$inboundSchema = z28.pipe(
14974
15014
  );
14975
15015
  var CreatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(CreatePlanVariantDetailsTierBehavior);
14976
15016
  var CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemPriceInterval);
14977
- var CreatePlanAddItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanAddItemBillingMethodResponse);
15017
+ var CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemBillingMethod);
14978
15018
  var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
14979
15019
  z28.object({
14980
15020
  amount: optional3(number2()),
14981
15021
  additional_currencies: optional3(z28.array(z28.lazy(
14982
- () => CreatePlanAddItemAdditionalCurrencyResponse$inboundSchema
15022
+ () => CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
14983
15023
  ))),
14984
15024
  tiers: optional3(z28.array(z28.lazy(
14985
15025
  () => CreatePlanVariantDetailsPriceTier$inboundSchema
@@ -14990,7 +15030,7 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
14990
15030
  interval: CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
14991
15031
  interval_count: z28._default(number2(), 1),
14992
15032
  billing_units: z28._default(number2(), 1),
14993
- billing_method: CreatePlanAddItemBillingMethodResponse$inboundSchema,
15033
+ billing_method: CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
14994
15034
  max_purchase: z28.optional(z28.nullable(number2()))
14995
15035
  }),
14996
15036
  z28.transform((v) => {
@@ -15004,12 +15044,12 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
15004
15044
  });
15005
15045
  })
15006
15046
  );
15007
- var CreatePlanOnIncreaseResponse$inboundSchema = inboundSchema(CreatePlanOnIncreaseResponse);
15008
- var CreatePlanOnDecreaseResponse$inboundSchema = inboundSchema(CreatePlanOnDecreaseResponse);
15009
- var CreatePlanProrationResponse$inboundSchema = z28.pipe(
15047
+ var CreatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnIncrease);
15048
+ var CreatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnDecrease);
15049
+ var CreatePlanVariantDetailsProration$inboundSchema = z28.pipe(
15010
15050
  z28.object({
15011
- on_increase: CreatePlanOnIncreaseResponse$inboundSchema,
15012
- on_decrease: CreatePlanOnDecreaseResponse$inboundSchema
15051
+ on_increase: CreatePlanVariantDetailsOnIncrease$inboundSchema,
15052
+ on_decrease: CreatePlanVariantDetailsOnDecrease$inboundSchema
15013
15053
  }),
15014
15054
  z28.transform((v) => {
15015
15055
  return remap(v, {
@@ -15284,7 +15324,7 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
15284
15324
  });
15285
15325
  })
15286
15326
  );
15287
- var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
15327
+ var CreatePlanVariantDetailsPlanItem$inboundSchema = z28.pipe(
15288
15328
  z28.object({
15289
15329
  threshold_billing: z28.optional(z28.nullable(z28.lazy(
15290
15330
  () => CreatePlanVariantDetailsThresholdBilling$inboundSchema
@@ -15300,7 +15340,7 @@ var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
15300
15340
  () => CreatePlanVariantDetailsPrice$inboundSchema
15301
15341
  )),
15302
15342
  proration: optional3(z28.lazy(
15303
- () => CreatePlanProrationResponse$inboundSchema
15343
+ () => CreatePlanVariantDetailsProration$inboundSchema
15304
15344
  )),
15305
15345
  rollover: optional3(z28.lazy(
15306
15346
  () => CreatePlanVariantDetailsRollover$inboundSchema
@@ -15320,18 +15360,18 @@ var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
15320
15360
  });
15321
15361
  })
15322
15362
  );
15323
- var CreatePlanRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanRemoveItemBillingMethodResponse);
15363
+ var CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsRemoveItemBillingMethod);
15324
15364
  var CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum2);
15325
15365
  var CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum1);
15326
15366
  var CreatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
15327
15367
  CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
15328
15368
  CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
15329
15369
  ]);
15330
- var CreatePlanPlanItemFilterResponse$inboundSchema = z28.pipe(
15370
+ var CreatePlanVariantDetailsPlanItemFilter$inboundSchema = z28.pipe(
15331
15371
  z28.object({
15332
15372
  feature_id: optional3(string5()),
15333
15373
  billing_method: optional3(
15334
- CreatePlanRemoveItemBillingMethodResponse$inboundSchema
15374
+ CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
15335
15375
  ),
15336
15376
  interval: optional3(
15337
15377
  smartUnion([
@@ -15654,6 +15694,96 @@ var CreatePlanIntervalUpsertLicenseRemoveItemEnum1 = {
15654
15694
  SemiAnnual: "semi_annual",
15655
15695
  Year: "year"
15656
15696
  };
15697
+ var CreatePlanPriceLicenseIntervalResponse = {
15698
+ OneOff: "one_off",
15699
+ Week: "week",
15700
+ Month: "month",
15701
+ Quarter: "quarter",
15702
+ SemiAnnual: "semi_annual",
15703
+ Year: "year"
15704
+ };
15705
+ var CreatePlanLicenseResetIntervalResponse = {
15706
+ OneOff: "one_off",
15707
+ Minute: "minute",
15708
+ Hour: "hour",
15709
+ Day: "day",
15710
+ Week: "week",
15711
+ Month: "month",
15712
+ Quarter: "quarter",
15713
+ SemiAnnual: "semi_annual",
15714
+ Year: "year"
15715
+ };
15716
+ var CreatePlanLicenseTierBehaviorResponse = {
15717
+ Graduated: "graduated",
15718
+ Volume: "volume"
15719
+ };
15720
+ var CreatePlanLicenseAddItemPriceIntervalResponse = {
15721
+ OneOff: "one_off",
15722
+ Week: "week",
15723
+ Month: "month",
15724
+ Quarter: "quarter",
15725
+ SemiAnnual: "semi_annual",
15726
+ Year: "year"
15727
+ };
15728
+ var CreatePlanLicenseAddItemBillingMethodResponse = {
15729
+ Prepaid: "prepaid",
15730
+ UsageBased: "usage_based"
15731
+ };
15732
+ var CreatePlanLicenseOnIncreaseResponse = {
15733
+ BillImmediately: "bill_immediately",
15734
+ ProrateImmediately: "prorate_immediately",
15735
+ ProrateNextCycle: "prorate_next_cycle",
15736
+ BillNextCycle: "bill_next_cycle"
15737
+ };
15738
+ var CreatePlanLicenseOnDecreaseResponse = {
15739
+ Prorate: "prorate",
15740
+ ProrateImmediately: "prorate_immediately",
15741
+ ProrateNextCycle: "prorate_next_cycle",
15742
+ None: "none",
15743
+ NoProrations: "no_prorations"
15744
+ };
15745
+ var CreatePlanLicenseExpiryDurationTypeResponse = {
15746
+ Month: "month",
15747
+ Forever: "forever"
15748
+ };
15749
+ var CreatePlanLicenseDurationResponse = {
15750
+ Day: "day",
15751
+ Week: "week",
15752
+ Month: "month",
15753
+ Year: "year"
15754
+ };
15755
+ var CreatePlanDimensionsToLicenseResponseEnum2 = {
15756
+ Inf: "inf"
15757
+ };
15758
+ var CreatePlanDimensionsToLicenseResponseEnum1 = {
15759
+ Inf: "inf"
15760
+ };
15761
+ var CreatePlanToLicenseResponseEnum = {
15762
+ Inf: "inf"
15763
+ };
15764
+ var CreatePlanLicenseRemoveItemBillingMethodResponse = {
15765
+ Prepaid: "prepaid",
15766
+ UsageBased: "usage_based"
15767
+ };
15768
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum2 = {
15769
+ OneOff: "one_off",
15770
+ Minute: "minute",
15771
+ Hour: "hour",
15772
+ Day: "day",
15773
+ Week: "week",
15774
+ Month: "month",
15775
+ Quarter: "quarter",
15776
+ SemiAnnual: "semi_annual",
15777
+ Year: "year"
15778
+ };
15779
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
15780
+ OneOff: "one_off",
15781
+ Week: "week",
15782
+ Month: "month",
15783
+ Quarter: "quarter",
15784
+ SemiAnnual: "semi_annual",
15785
+ Year: "year"
15786
+ };
15657
15787
  var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
15658
15788
  z29.object({
15659
15789
  on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
@@ -16042,14 +16172,16 @@ var CreatePlanRemoveLicense$inboundSchema = z29.pipe(
16042
16172
  });
16043
16173
  })
16044
16174
  );
16045
- var CreatePlanCustomizeResponse$inboundSchema = z29.pipe(
16175
+ var CreatePlanVariantDetailsCustomize$inboundSchema = z29.pipe(
16046
16176
  z29.object({
16047
- price: z29.optional(z29.nullable(CreatePlanBasePriceResponse$inboundSchema)),
16177
+ price: z29.optional(
16178
+ z29.nullable(CreatePlanVariantDetailsBasePrice$inboundSchema)
16179
+ ),
16048
16180
  add_items: optional3(
16049
- z29.array(CreatePlanPlanItemResponse$inboundSchema)
16181
+ z29.array(CreatePlanVariantDetailsPlanItem$inboundSchema)
16050
16182
  ),
16051
16183
  remove_items: optional3(
16052
- z29.array(CreatePlanPlanItemFilterResponse$inboundSchema)
16184
+ z29.array(CreatePlanVariantDetailsPlanItemFilter$inboundSchema)
16053
16185
  ),
16054
16186
  free_trial: z29.optional(z29.nullable(CreatePlanFreeTrialParams$inboundSchema)),
16055
16187
  billing_controls: optional3(
@@ -16077,7 +16209,7 @@ var CreatePlanVariantDetails$inboundSchema = z29.pipe(
16077
16209
  z29.object({
16078
16210
  base_plan_id: string5(),
16079
16211
  customize: optional3(
16080
- z29.lazy(() => CreatePlanCustomizeResponse$inboundSchema)
16212
+ z29.lazy(() => CreatePlanVariantDetailsCustomize$inboundSchema)
16081
16213
  )
16082
16214
  }),
16083
16215
  z29.transform((v) => {
@@ -16086,6 +16218,493 @@ var CreatePlanVariantDetails$inboundSchema = z29.pipe(
16086
16218
  });
16087
16219
  })
16088
16220
  );
16221
+ var CreatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(CreatePlanPriceLicenseIntervalResponse);
16222
+ var CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z29.object({
16223
+ currency: string5(),
16224
+ amount: number2()
16225
+ });
16226
+ var CreatePlanLicenseBasePriceResponse$inboundSchema = z29.pipe(
16227
+ z29.object({
16228
+ amount: number2(),
16229
+ interval: CreatePlanPriceLicenseIntervalResponse$inboundSchema,
16230
+ interval_count: z29._default(number2(), 1),
16231
+ additional_currencies: optional3(z29.array(z29.lazy(
16232
+ () => CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema
16233
+ )))
16234
+ }),
16235
+ z29.transform((v) => {
16236
+ return remap(v, {
16237
+ "interval_count": "intervalCount",
16238
+ "additional_currencies": "additionalCurrencies"
16239
+ });
16240
+ })
16241
+ );
16242
+ var CreatePlanLicenseThresholdBillingResponse$inboundSchema = z29.object({
16243
+ threshold: number2()
16244
+ });
16245
+ var CreatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseResetIntervalResponse);
16246
+ var CreatePlanLicenseResetResponse$inboundSchema = z29.pipe(
16247
+ z29.object({
16248
+ interval: CreatePlanLicenseResetIntervalResponse$inboundSchema,
16249
+ interval_count: z29._default(number2(), 1)
16250
+ }),
16251
+ z29.transform((v) => {
16252
+ return remap(v, {
16253
+ "interval_count": "intervalCount"
16254
+ });
16255
+ })
16256
+ );
16257
+ var CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z29.object({
16258
+ currency: string5(),
16259
+ amount: number2()
16260
+ });
16261
+ var CreatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
16262
+ var CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z29.pipe(
16263
+ z29.object({
16264
+ currency: string5(),
16265
+ amount: optional3(number2()),
16266
+ flat_amount: optional3(number2())
16267
+ }),
16268
+ z29.transform((v) => {
16269
+ return remap(v, {
16270
+ "flat_amount": "flatAmount"
16271
+ });
16272
+ })
16273
+ );
16274
+ var CreatePlanLicensePriceTierResponse$inboundSchema = z29.pipe(
16275
+ z29.object({
16276
+ to: smartUnion([number2(), string5()]),
16277
+ amount: number2(),
16278
+ flat_amount: optional3(number2()),
16279
+ additional_currencies: optional3(z29.array(z29.lazy(
16280
+ () => CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
16281
+ )))
16282
+ }),
16283
+ z29.transform((v) => {
16284
+ return remap(v, {
16285
+ "flat_amount": "flatAmount",
16286
+ "additional_currencies": "additionalCurrencies"
16287
+ });
16288
+ })
16289
+ );
16290
+ var CreatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(CreatePlanLicenseTierBehaviorResponse);
16291
+ var CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemPriceIntervalResponse);
16292
+ var CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemBillingMethodResponse);
16293
+ var CreatePlanLicensePriceResponse$inboundSchema = z29.pipe(
16294
+ z29.object({
16295
+ amount: optional3(number2()),
16296
+ additional_currencies: optional3(z29.array(z29.lazy(
16297
+ () => CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
16298
+ ))),
16299
+ tiers: optional3(z29.array(z29.lazy(
16300
+ () => CreatePlanLicensePriceTierResponse$inboundSchema
16301
+ ))),
16302
+ tier_behavior: optional3(
16303
+ CreatePlanLicenseTierBehaviorResponse$inboundSchema
16304
+ ),
16305
+ interval: CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
16306
+ interval_count: z29._default(number2(), 1),
16307
+ billing_units: z29._default(number2(), 1),
16308
+ billing_method: CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
16309
+ max_purchase: z29.optional(z29.nullable(number2()))
16310
+ }),
16311
+ z29.transform((v) => {
16312
+ return remap(v, {
16313
+ "additional_currencies": "additionalCurrencies",
16314
+ "tier_behavior": "tierBehavior",
16315
+ "interval_count": "intervalCount",
16316
+ "billing_units": "billingUnits",
16317
+ "billing_method": "billingMethod",
16318
+ "max_purchase": "maxPurchase"
16319
+ });
16320
+ })
16321
+ );
16322
+ var CreatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnIncreaseResponse);
16323
+ var CreatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnDecreaseResponse);
16324
+ var CreatePlanLicenseProrationResponse$inboundSchema = z29.pipe(
16325
+ z29.object({
16326
+ on_increase: CreatePlanLicenseOnIncreaseResponse$inboundSchema,
16327
+ on_decrease: CreatePlanLicenseOnDecreaseResponse$inboundSchema
16328
+ }),
16329
+ z29.transform((v) => {
16330
+ return remap(v, {
16331
+ "on_increase": "onIncrease",
16332
+ "on_decrease": "onDecrease"
16333
+ });
16334
+ })
16335
+ );
16336
+ var CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePlanLicenseExpiryDurationTypeResponse);
16337
+ var CreatePlanLicenseRolloverResponse$inboundSchema = z29.pipe(
16338
+ z29.object({
16339
+ max: optional3(number2()),
16340
+ max_percentage: optional3(number2()),
16341
+ expiry_duration_type: CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
16342
+ expiry_duration_length: optional3(number2())
16343
+ }),
16344
+ z29.transform((v) => {
16345
+ return remap(v, {
16346
+ "max_percentage": "maxPercentage",
16347
+ "expiry_duration_type": "expiryDurationType",
16348
+ "expiry_duration_length": "expiryDurationLength"
16349
+ });
16350
+ })
16351
+ );
16352
+ var CreatePlanLicenseDurationResponse$inboundSchema = inboundSchema(CreatePlanLicenseDurationResponse);
16353
+ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
16354
+ duration: CreatePlanLicenseDurationResponse$inboundSchema,
16355
+ length: number2()
16356
+ });
16357
+ var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
16358
+ z29.object({
16359
+ match: z29.record(z29.string(), string5()),
16360
+ priority: optional3(number2()),
16361
+ credit_cost: number2()
16362
+ }),
16363
+ z29.transform((v) => {
16364
+ return remap(v, {
16365
+ "credit_cost": "creditCost"
16366
+ });
16367
+ })
16368
+ );
16369
+ var CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z29.enum(
16370
+ CreatePlanDimensionsToLicenseResponseEnum2
16371
+ );
16372
+ var CreatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
16373
+ number2(),
16374
+ CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
16375
+ ]);
16376
+ var CreatePlanDimensionsLicenseTierResponse2$inboundSchema = z29.pipe(
16377
+ z29.object({
16378
+ to: smartUnion([
16379
+ number2(),
16380
+ CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
16381
+ ]),
16382
+ credit_cost: number2()
16383
+ }),
16384
+ z29.transform((v) => {
16385
+ return remap(v, {
16386
+ "credit_cost": "creditCost"
16387
+ });
16388
+ })
16389
+ );
16390
+ var CreatePlanDimensionsLicenseResponse3$inboundSchema = z29.pipe(
16391
+ z29.object({
16392
+ match: z29.record(z29.string(), string5()),
16393
+ priority: optional3(number2()),
16394
+ tier_behavior: literal3("graduated"),
16395
+ tiers: z29.array(
16396
+ z29.lazy(() => CreatePlanDimensionsLicenseTierResponse2$inboundSchema)
16397
+ )
16398
+ }),
16399
+ z29.transform((v) => {
16400
+ return remap(v, {
16401
+ "tier_behavior": "tierBehavior"
16402
+ });
16403
+ })
16404
+ );
16405
+ var CreatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
16406
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
16407
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
16408
+ ]);
16409
+ var CreatePlanLicenseMultipliersResponse2$inboundSchema = z29.object({
16410
+ match: z29.record(z29.string(), string5()),
16411
+ factor: optional3(number2()),
16412
+ add: optional3(number2())
16413
+ });
16414
+ var CreatePlanCreditSchemaLicenseResponse2$inboundSchema = z29.pipe(
16415
+ z29.object({
16416
+ metered_feature_id: string5(),
16417
+ billing_units: optional3(number2()),
16418
+ dimensions: optional3(z29.record(
16419
+ z29.string(),
16420
+ smartUnion([
16421
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
16422
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
16423
+ ])
16424
+ )),
16425
+ multipliers: optional3(z29.record(
16426
+ z29.string(),
16427
+ z29.lazy(() => CreatePlanLicenseMultipliersResponse2$inboundSchema)
16428
+ )),
16429
+ credit_cost: number2()
16430
+ }),
16431
+ z29.transform((v) => {
16432
+ return remap(v, {
16433
+ "metered_feature_id": "meteredFeatureId",
16434
+ "billing_units": "billingUnits",
16435
+ "credit_cost": "creditCost"
16436
+ });
16437
+ })
16438
+ );
16439
+ var CreatePlanDimensionsLicenseResponse2$inboundSchema = z29.pipe(
16440
+ z29.object({
16441
+ match: z29.record(z29.string(), string5()),
16442
+ priority: optional3(number2()),
16443
+ credit_cost: number2()
16444
+ }),
16445
+ z29.transform((v) => {
16446
+ return remap(v, {
16447
+ "credit_cost": "creditCost"
16448
+ });
16449
+ })
16450
+ );
16451
+ var CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z29.enum(
16452
+ CreatePlanDimensionsToLicenseResponseEnum1
16453
+ );
16454
+ var CreatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
16455
+ number2(),
16456
+ CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
16457
+ ]);
16458
+ var CreatePlanDimensionsLicenseTierResponse1$inboundSchema = z29.pipe(
16459
+ z29.object({
16460
+ to: smartUnion([
16461
+ number2(),
16462
+ CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
16463
+ ]),
16464
+ credit_cost: number2()
16465
+ }),
16466
+ z29.transform((v) => {
16467
+ return remap(v, {
16468
+ "credit_cost": "creditCost"
16469
+ });
16470
+ })
16471
+ );
16472
+ var CreatePlanDimensionsLicenseResponse1$inboundSchema = z29.pipe(
16473
+ z29.object({
16474
+ match: z29.record(z29.string(), string5()),
16475
+ priority: optional3(number2()),
16476
+ tier_behavior: literal3("graduated"),
16477
+ tiers: z29.array(
16478
+ z29.lazy(() => CreatePlanDimensionsLicenseTierResponse1$inboundSchema)
16479
+ )
16480
+ }),
16481
+ z29.transform((v) => {
16482
+ return remap(v, {
16483
+ "tier_behavior": "tierBehavior"
16484
+ });
16485
+ })
16486
+ );
16487
+ var CreatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
16488
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
16489
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
16490
+ ]);
16491
+ var CreatePlanLicenseMultipliersResponse1$inboundSchema = z29.object({
16492
+ match: z29.record(z29.string(), string5()),
16493
+ factor: optional3(number2()),
16494
+ add: optional3(number2())
16495
+ });
16496
+ var CreatePlanToLicenseResponseEnum$inboundSchema = z29.enum(CreatePlanToLicenseResponseEnum);
16497
+ var CreatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), CreatePlanToLicenseResponseEnum$inboundSchema]);
16498
+ var CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z29.pipe(
16499
+ z29.object({
16500
+ to: smartUnion([
16501
+ number2(),
16502
+ CreatePlanToLicenseResponseEnum$inboundSchema
16503
+ ]),
16504
+ credit_cost: number2()
16505
+ }),
16506
+ z29.transform((v) => {
16507
+ return remap(v, {
16508
+ "credit_cost": "creditCost"
16509
+ });
16510
+ })
16511
+ );
16512
+ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
16513
+ z29.object({
16514
+ metered_feature_id: string5(),
16515
+ billing_units: optional3(number2()),
16516
+ dimensions: optional3(z29.record(
16517
+ z29.string(),
16518
+ smartUnion([
16519
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
16520
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
16521
+ ])
16522
+ )),
16523
+ multipliers: optional3(z29.record(
16524
+ z29.string(),
16525
+ z29.lazy(() => CreatePlanLicenseMultipliersResponse1$inboundSchema)
16526
+ )),
16527
+ tier_behavior: literal3("graduated"),
16528
+ tiers: z29.array(z29.lazy(
16529
+ () => CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema
16530
+ ))
16531
+ }),
16532
+ z29.transform((v) => {
16533
+ return remap(v, {
16534
+ "metered_feature_id": "meteredFeatureId",
16535
+ "billing_units": "billingUnits",
16536
+ "tier_behavior": "tierBehavior"
16537
+ });
16538
+ })
16539
+ );
16540
+ var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
16541
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
16542
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
16543
+ ]);
16544
+ var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
16545
+ markup: number2()
16546
+ });
16547
+ var CreatePlanLicenseModelMarkupsResponse$inboundSchema = z29.pipe(
16548
+ z29.object({
16549
+ markup: optional3(number2()),
16550
+ input_cost: optional3(number2()),
16551
+ output_cost: optional3(number2())
16552
+ }),
16553
+ z29.transform((v) => {
16554
+ return remap(v, {
16555
+ "input_cost": "inputCost",
16556
+ "output_cost": "outputCost"
16557
+ });
16558
+ })
16559
+ );
16560
+ var CreatePlanLicenseMarkupsResponse$inboundSchema = z29.pipe(
16561
+ z29.object({
16562
+ default_markup: optional3(number2()),
16563
+ provider_markups: z29.optional(z29.nullable(z29.record(
16564
+ z29.string(),
16565
+ z29.lazy(() => CreatePlanLicenseProviderMarkupsResponse$inboundSchema)
16566
+ ))),
16567
+ model_markups: z29.optional(z29.nullable(z29.record(
16568
+ z29.string(),
16569
+ z29.lazy(() => CreatePlanLicenseModelMarkupsResponse$inboundSchema)
16570
+ )))
16571
+ }),
16572
+ z29.transform((v) => {
16573
+ return remap(v, {
16574
+ "default_markup": "defaultMarkup",
16575
+ "provider_markups": "providerMarkups",
16576
+ "model_markups": "modelMarkups"
16577
+ });
16578
+ })
16579
+ );
16580
+ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
16581
+ z29.object({
16582
+ credit_schema: optional3(z29.array(smartUnion([
16583
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
16584
+ z29.lazy(
16585
+ () => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
16586
+ )
16587
+ ]))),
16588
+ markups: optional3(z29.lazy(
16589
+ () => CreatePlanLicenseMarkupsResponse$inboundSchema
16590
+ ))
16591
+ }),
16592
+ z29.transform((v) => {
16593
+ return remap(v, {
16594
+ "credit_schema": "creditSchema"
16595
+ });
16596
+ })
16597
+ );
16598
+ var CreatePlanLicensePlanItemResponse$inboundSchema = z29.pipe(
16599
+ z29.object({
16600
+ threshold_billing: z29.optional(z29.nullable(z29.lazy(
16601
+ () => CreatePlanLicenseThresholdBillingResponse$inboundSchema
16602
+ ))),
16603
+ feature_id: string5(),
16604
+ included: optional3(number2()),
16605
+ unlimited: optional3(boolean2()),
16606
+ pooled: z29._default(boolean2(), false),
16607
+ reset: optional3(z29.lazy(
16608
+ () => CreatePlanLicenseResetResponse$inboundSchema
16609
+ )),
16610
+ price: optional3(z29.lazy(
16611
+ () => CreatePlanLicensePriceResponse$inboundSchema
16612
+ )),
16613
+ proration: optional3(z29.lazy(
16614
+ () => CreatePlanLicenseProrationResponse$inboundSchema
16615
+ )),
16616
+ rollover: optional3(z29.lazy(
16617
+ () => CreatePlanLicenseRolloverResponse$inboundSchema
16618
+ )),
16619
+ expiry: optional3(z29.lazy(
16620
+ () => CreatePlanLicenseExpiryResponse$inboundSchema
16621
+ )),
16622
+ feature_override: optional3(z29.lazy(
16623
+ () => CreatePlanLicenseFeatureOverrideResponse$inboundSchema
16624
+ ))
16625
+ }),
16626
+ z29.transform((v) => {
16627
+ return remap(v, {
16628
+ "threshold_billing": "thresholdBilling",
16629
+ "feature_id": "featureId",
16630
+ "feature_override": "featureOverride"
16631
+ });
16632
+ })
16633
+ );
16634
+ var CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseRemoveItemBillingMethodResponse);
16635
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum2);
16636
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum1);
16637
+ var CreatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
16638
+ CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
16639
+ CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
16640
+ ]);
16641
+ var CreatePlanLicensePlanItemFilterResponse$inboundSchema = z29.pipe(
16642
+ z29.object({
16643
+ feature_id: optional3(string5()),
16644
+ billing_method: optional3(
16645
+ CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
16646
+ ),
16647
+ interval: optional3(
16648
+ smartUnion([
16649
+ CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
16650
+ CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
16651
+ ])
16652
+ ),
16653
+ interval_count: optional3(number2()),
16654
+ included: optional3(number2())
16655
+ }),
16656
+ z29.transform((v) => {
16657
+ return remap(v, {
16658
+ "feature_id": "featureId",
16659
+ "billing_method": "billingMethod",
16660
+ "interval_count": "intervalCount"
16661
+ });
16662
+ })
16663
+ );
16664
+ var CreatePlanLicenseCustomizeResponse$inboundSchema = z29.pipe(
16665
+ z29.object({
16666
+ price: z29.optional(
16667
+ z29.nullable(
16668
+ z29.lazy(() => CreatePlanLicenseBasePriceResponse$inboundSchema)
16669
+ )
16670
+ ),
16671
+ add_items: optional3(
16672
+ z29.array(z29.lazy(() => CreatePlanLicensePlanItemResponse$inboundSchema))
16673
+ ),
16674
+ remove_items: optional3(
16675
+ z29.array(
16676
+ z29.lazy(() => CreatePlanLicensePlanItemFilterResponse$inboundSchema)
16677
+ )
16678
+ )
16679
+ }),
16680
+ z29.transform((v) => {
16681
+ return remap(v, {
16682
+ "add_items": "addItems",
16683
+ "remove_items": "removeItems"
16684
+ });
16685
+ })
16686
+ );
16687
+ var CreatePlanLicenseResponse$inboundSchema = z29.pipe(
16688
+ z29.object({
16689
+ license_plan_id: string5(),
16690
+ version: number2(),
16691
+ version_slug: optional3(string5()),
16692
+ included: number2(),
16693
+ prepaid_only: boolean2(),
16694
+ customize: optional3(
16695
+ z29.lazy(() => CreatePlanLicenseCustomizeResponse$inboundSchema)
16696
+ ),
16697
+ metadata: optional3(z29.record(z29.string(), z29.any())),
16698
+ plan: optional3(Plan$inboundSchema)
16699
+ }),
16700
+ z29.transform((v) => {
16701
+ return remap(v, {
16702
+ "license_plan_id": "licensePlanId",
16703
+ "version_slug": "versionSlug",
16704
+ "prepaid_only": "prepaidOnly"
16705
+ });
16706
+ })
16707
+ );
16089
16708
  var CreatePlanResponse$inboundSchema = z29.pipe(
16090
16709
  z29.object({
16091
16710
  id: string5(),
@@ -16115,6 +16734,9 @@ var CreatePlanResponse$inboundSchema = z29.pipe(
16115
16734
  base_variant_id: nullable(string5()),
16116
16735
  variant_details: optional3(
16117
16736
  z29.lazy(() => CreatePlanVariantDetails$inboundSchema)
16737
+ ),
16738
+ licenses: optional3(
16739
+ z29.array(z29.lazy(() => CreatePlanLicenseResponse$inboundSchema))
16118
16740
  )
16119
16741
  }),
16120
16742
  z29.transform((v) => {
@@ -24237,7 +24859,7 @@ var GetPlanPriceVariantDetailsInterval = {
24237
24859
  SemiAnnual: "semi_annual",
24238
24860
  Year: "year"
24239
24861
  };
24240
- var GetPlanAddItemResetInterval = {
24862
+ var GetPlanVariantDetailsResetInterval = {
24241
24863
  OneOff: "one_off",
24242
24864
  Minute: "minute",
24243
24865
  Hour: "hour",
@@ -24252,7 +24874,7 @@ var GetPlanVariantDetailsTierBehavior = {
24252
24874
  Graduated: "graduated",
24253
24875
  Volume: "volume"
24254
24876
  };
24255
- var GetPlanAddItemPriceInterval = {
24877
+ var GetPlanVariantDetailsAddItemPriceInterval = {
24256
24878
  OneOff: "one_off",
24257
24879
  Week: "week",
24258
24880
  Month: "month",
@@ -24260,17 +24882,17 @@ var GetPlanAddItemPriceInterval = {
24260
24882
  SemiAnnual: "semi_annual",
24261
24883
  Year: "year"
24262
24884
  };
24263
- var GetPlanAddItemBillingMethod = {
24885
+ var GetPlanVariantDetailsAddItemBillingMethod = {
24264
24886
  Prepaid: "prepaid",
24265
24887
  UsageBased: "usage_based"
24266
24888
  };
24267
- var GetPlanOnIncrease = {
24889
+ var GetPlanVariantDetailsOnIncrease = {
24268
24890
  BillImmediately: "bill_immediately",
24269
24891
  ProrateImmediately: "prorate_immediately",
24270
24892
  ProrateNextCycle: "prorate_next_cycle",
24271
24893
  BillNextCycle: "bill_next_cycle"
24272
24894
  };
24273
- var GetPlanOnDecrease = {
24895
+ var GetPlanVariantDetailsOnDecrease = {
24274
24896
  Prorate: "prorate",
24275
24897
  ProrateImmediately: "prorate_immediately",
24276
24898
  ProrateNextCycle: "prorate_next_cycle",
@@ -24296,11 +24918,11 @@ var GetPlanDimensionsToVariantDetailsEnum1 = {
24296
24918
  var GetPlanToVariantDetailsEnum = {
24297
24919
  Inf: "inf"
24298
24920
  };
24299
- var GetPlanRemoveItemBillingMethod = {
24921
+ var GetPlanVariantDetailsRemoveItemBillingMethod = {
24300
24922
  Prepaid: "prepaid",
24301
24923
  UsageBased: "usage_based"
24302
24924
  };
24303
- var GetPlanIntervalRemoveItemEnum2 = {
24925
+ var GetPlanIntervalVariantDetailsRemoveItemEnum2 = {
24304
24926
  OneOff: "one_off",
24305
24927
  Minute: "minute",
24306
24928
  Hour: "hour",
@@ -24311,7 +24933,7 @@ var GetPlanIntervalRemoveItemEnum2 = {
24311
24933
  SemiAnnual: "semi_annual",
24312
24934
  Year: "year"
24313
24935
  };
24314
- var GetPlanIntervalRemoveItemEnum1 = {
24936
+ var GetPlanIntervalVariantDetailsRemoveItemEnum1 = {
24315
24937
  OneOff: "one_off",
24316
24938
  Week: "week",
24317
24939
  Month: "month",
@@ -25071,7 +25693,7 @@ var GetPlanVariantDetailsAdditionalCurrency$inboundSchema = z56.object({
25071
25693
  currency: string5(),
25072
25694
  amount: number2()
25073
25695
  });
25074
- var GetPlanBasePrice$inboundSchema = z56.pipe(
25696
+ var GetPlanVariantDetailsBasePrice$inboundSchema = z56.pipe(
25075
25697
  z56.object({
25076
25698
  amount: number2(),
25077
25699
  interval: GetPlanPriceVariantDetailsInterval$inboundSchema,
@@ -25090,10 +25712,10 @@ var GetPlanBasePrice$inboundSchema = z56.pipe(
25090
25712
  var GetPlanVariantDetailsThresholdBilling$inboundSchema = z56.object({
25091
25713
  threshold: number2()
25092
25714
  });
25093
- var GetPlanAddItemResetInterval$inboundSchema = inboundSchema(GetPlanAddItemResetInterval);
25715
+ var GetPlanVariantDetailsResetInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsResetInterval);
25094
25716
  var GetPlanVariantDetailsReset$inboundSchema = z56.pipe(
25095
25717
  z56.object({
25096
- interval: GetPlanAddItemResetInterval$inboundSchema,
25718
+ interval: GetPlanVariantDetailsResetInterval$inboundSchema,
25097
25719
  interval_count: z56._default(number2(), 1)
25098
25720
  }),
25099
25721
  z56.transform((v) => {
@@ -25102,7 +25724,7 @@ var GetPlanVariantDetailsReset$inboundSchema = z56.pipe(
25102
25724
  });
25103
25725
  })
25104
25726
  );
25105
- var GetPlanAddItemAdditionalCurrency$inboundSchema = z56.object({
25727
+ var GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z56.object({
25106
25728
  currency: string5(),
25107
25729
  amount: number2()
25108
25730
  });
@@ -25136,24 +25758,24 @@ var GetPlanVariantDetailsPriceTier$inboundSchema = z56.pipe(
25136
25758
  })
25137
25759
  );
25138
25760
  var GetPlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(GetPlanVariantDetailsTierBehavior);
25139
- var GetPlanAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanAddItemPriceInterval);
25140
- var GetPlanAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanAddItemBillingMethod);
25761
+ var GetPlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemPriceInterval);
25762
+ var GetPlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemBillingMethod);
25141
25763
  var GetPlanVariantDetailsPrice$inboundSchema = z56.pipe(
25142
25764
  z56.object({
25143
25765
  amount: optional3(number2()),
25144
- additional_currencies: optional3(
25145
- z56.array(z56.lazy(() => GetPlanAddItemAdditionalCurrency$inboundSchema))
25146
- ),
25147
- tiers: optional3(
25148
- z56.array(z56.lazy(() => GetPlanVariantDetailsPriceTier$inboundSchema))
25149
- ),
25766
+ additional_currencies: optional3(z56.array(z56.lazy(
25767
+ () => GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
25768
+ ))),
25769
+ tiers: optional3(z56.array(z56.lazy(
25770
+ () => GetPlanVariantDetailsPriceTier$inboundSchema
25771
+ ))),
25150
25772
  tier_behavior: optional3(
25151
25773
  GetPlanVariantDetailsTierBehavior$inboundSchema
25152
25774
  ),
25153
- interval: GetPlanAddItemPriceInterval$inboundSchema,
25775
+ interval: GetPlanVariantDetailsAddItemPriceInterval$inboundSchema,
25154
25776
  interval_count: z56._default(number2(), 1),
25155
25777
  billing_units: z56._default(number2(), 1),
25156
- billing_method: GetPlanAddItemBillingMethod$inboundSchema,
25778
+ billing_method: GetPlanVariantDetailsAddItemBillingMethod$inboundSchema,
25157
25779
  max_purchase: z56.optional(z56.nullable(number2()))
25158
25780
  }),
25159
25781
  z56.transform((v) => {
@@ -25167,12 +25789,12 @@ var GetPlanVariantDetailsPrice$inboundSchema = z56.pipe(
25167
25789
  });
25168
25790
  })
25169
25791
  );
25170
- var GetPlanOnIncrease$inboundSchema = inboundSchema(GetPlanOnIncrease);
25171
- var GetPlanOnDecrease$inboundSchema = inboundSchema(GetPlanOnDecrease);
25172
- var GetPlanProration$inboundSchema = z56.pipe(
25792
+ var GetPlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnIncrease);
25793
+ var GetPlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnDecrease);
25794
+ var GetPlanVariantDetailsProration$inboundSchema = z56.pipe(
25173
25795
  z56.object({
25174
- on_increase: GetPlanOnIncrease$inboundSchema,
25175
- on_decrease: GetPlanOnDecrease$inboundSchema
25796
+ on_increase: GetPlanVariantDetailsOnIncrease$inboundSchema,
25797
+ on_decrease: GetPlanVariantDetailsOnDecrease$inboundSchema
25176
25798
  }),
25177
25799
  z56.transform((v) => {
25178
25800
  return remap(v, {
@@ -25443,7 +26065,7 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
25443
26065
  });
25444
26066
  })
25445
26067
  );
25446
- var GetPlanPlanItem$inboundSchema = z56.pipe(
26068
+ var GetPlanVariantDetailsPlanItem$inboundSchema = z56.pipe(
25447
26069
  z56.object({
25448
26070
  threshold_billing: z56.optional(z56.nullable(z56.lazy(
25449
26071
  () => GetPlanVariantDetailsThresholdBilling$inboundSchema
@@ -25458,7 +26080,9 @@ var GetPlanPlanItem$inboundSchema = z56.pipe(
25458
26080
  price: optional3(
25459
26081
  z56.lazy(() => GetPlanVariantDetailsPrice$inboundSchema)
25460
26082
  ),
25461
- proration: optional3(z56.lazy(() => GetPlanProration$inboundSchema)),
26083
+ proration: optional3(
26084
+ z56.lazy(() => GetPlanVariantDetailsProration$inboundSchema)
26085
+ ),
25462
26086
  rollover: optional3(
25463
26087
  z56.lazy(() => GetPlanVariantDetailsRollover$inboundSchema)
25464
26088
  ),
@@ -25477,23 +26101,23 @@ var GetPlanPlanItem$inboundSchema = z56.pipe(
25477
26101
  });
25478
26102
  })
25479
26103
  );
25480
- var GetPlanRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanRemoveItemBillingMethod);
25481
- var GetPlanIntervalRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalRemoveItemEnum2);
25482
- var GetPlanIntervalRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalRemoveItemEnum1);
25483
- var GetPlanIntervalUnion$inboundSchema = smartUnion([
25484
- GetPlanIntervalRemoveItemEnum1$inboundSchema,
25485
- GetPlanIntervalRemoveItemEnum2$inboundSchema
26104
+ var GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsRemoveItemBillingMethod);
26105
+ var GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum2);
26106
+ var GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum1);
26107
+ var GetPlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
26108
+ GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
26109
+ GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
25486
26110
  ]);
25487
- var GetPlanPlanItemFilter$inboundSchema = z56.pipe(
26111
+ var GetPlanVariantDetailsPlanItemFilter$inboundSchema = z56.pipe(
25488
26112
  z56.object({
25489
26113
  feature_id: optional3(string5()),
25490
26114
  billing_method: optional3(
25491
- GetPlanRemoveItemBillingMethod$inboundSchema
26115
+ GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema
25492
26116
  ),
25493
26117
  interval: optional3(
25494
26118
  smartUnion([
25495
- GetPlanIntervalRemoveItemEnum1$inboundSchema,
25496
- GetPlanIntervalRemoveItemEnum2$inboundSchema
26119
+ GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
26120
+ GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
25497
26121
  ])
25498
26122
  ),
25499
26123
  interval_count: optional3(number2()),
@@ -25717,6 +26341,96 @@ var GetPlanIntervalUpsertLicenseRemoveItemEnum1 = {
25717
26341
  SemiAnnual: "semi_annual",
25718
26342
  Year: "year"
25719
26343
  };
26344
+ var GetPlanPriceLicenseInterval = {
26345
+ OneOff: "one_off",
26346
+ Week: "week",
26347
+ Month: "month",
26348
+ Quarter: "quarter",
26349
+ SemiAnnual: "semi_annual",
26350
+ Year: "year"
26351
+ };
26352
+ var GetPlanLicenseResetInterval = {
26353
+ OneOff: "one_off",
26354
+ Minute: "minute",
26355
+ Hour: "hour",
26356
+ Day: "day",
26357
+ Week: "week",
26358
+ Month: "month",
26359
+ Quarter: "quarter",
26360
+ SemiAnnual: "semi_annual",
26361
+ Year: "year"
26362
+ };
26363
+ var GetPlanLicenseTierBehavior = {
26364
+ Graduated: "graduated",
26365
+ Volume: "volume"
26366
+ };
26367
+ var GetPlanLicenseAddItemPriceInterval = {
26368
+ OneOff: "one_off",
26369
+ Week: "week",
26370
+ Month: "month",
26371
+ Quarter: "quarter",
26372
+ SemiAnnual: "semi_annual",
26373
+ Year: "year"
26374
+ };
26375
+ var GetPlanLicenseAddItemBillingMethod = {
26376
+ Prepaid: "prepaid",
26377
+ UsageBased: "usage_based"
26378
+ };
26379
+ var GetPlanLicenseOnIncrease = {
26380
+ BillImmediately: "bill_immediately",
26381
+ ProrateImmediately: "prorate_immediately",
26382
+ ProrateNextCycle: "prorate_next_cycle",
26383
+ BillNextCycle: "bill_next_cycle"
26384
+ };
26385
+ var GetPlanLicenseOnDecrease = {
26386
+ Prorate: "prorate",
26387
+ ProrateImmediately: "prorate_immediately",
26388
+ ProrateNextCycle: "prorate_next_cycle",
26389
+ None: "none",
26390
+ NoProrations: "no_prorations"
26391
+ };
26392
+ var GetPlanLicenseExpiryDurationType = {
26393
+ Month: "month",
26394
+ Forever: "forever"
26395
+ };
26396
+ var GetPlanLicenseDuration = {
26397
+ Day: "day",
26398
+ Week: "week",
26399
+ Month: "month",
26400
+ Year: "year"
26401
+ };
26402
+ var GetPlanDimensionsToLicenseEnum2 = {
26403
+ Inf: "inf"
26404
+ };
26405
+ var GetPlanDimensionsToLicenseEnum1 = {
26406
+ Inf: "inf"
26407
+ };
26408
+ var GetPlanToLicenseEnum = {
26409
+ Inf: "inf"
26410
+ };
26411
+ var GetPlanLicenseRemoveItemBillingMethod = {
26412
+ Prepaid: "prepaid",
26413
+ UsageBased: "usage_based"
26414
+ };
26415
+ var GetPlanIntervalLicenseRemoveItemEnum2 = {
26416
+ OneOff: "one_off",
26417
+ Minute: "minute",
26418
+ Hour: "hour",
26419
+ Day: "day",
26420
+ Week: "week",
26421
+ Month: "month",
26422
+ Quarter: "quarter",
26423
+ SemiAnnual: "semi_annual",
26424
+ Year: "year"
26425
+ };
26426
+ var GetPlanIntervalLicenseRemoveItemEnum1 = {
26427
+ OneOff: "one_off",
26428
+ Week: "week",
26429
+ Month: "month",
26430
+ Quarter: "quarter",
26431
+ SemiAnnual: "semi_annual",
26432
+ Year: "year"
26433
+ };
25720
26434
  var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
25721
26435
  z57.object({
25722
26436
  feature_id: string5(),
@@ -26245,11 +26959,15 @@ var GetPlanRemoveLicense$inboundSchema = z57.pipe(
26245
26959
  });
26246
26960
  })
26247
26961
  );
26248
- var GetPlanCustomize$inboundSchema = z57.pipe(
26962
+ var GetPlanVariantDetailsCustomize$inboundSchema = z57.pipe(
26249
26963
  z57.object({
26250
- price: z57.optional(z57.nullable(GetPlanBasePrice$inboundSchema)),
26251
- add_items: optional3(z57.array(GetPlanPlanItem$inboundSchema)),
26252
- remove_items: optional3(z57.array(GetPlanPlanItemFilter$inboundSchema)),
26964
+ price: z57.optional(z57.nullable(GetPlanVariantDetailsBasePrice$inboundSchema)),
26965
+ add_items: optional3(
26966
+ z57.array(GetPlanVariantDetailsPlanItem$inboundSchema)
26967
+ ),
26968
+ remove_items: optional3(
26969
+ z57.array(GetPlanVariantDetailsPlanItemFilter$inboundSchema)
26970
+ ),
26253
26971
  free_trial: z57.optional(z57.nullable(GetPlanFreeTrialParams$inboundSchema)),
26254
26972
  billing_controls: optional3(
26255
26973
  z57.lazy(() => GetPlanVariantDetailsBillingControls$inboundSchema)
@@ -26275,7 +26993,9 @@ var GetPlanCustomize$inboundSchema = z57.pipe(
26275
26993
  var GetPlanVariantDetails$inboundSchema = z57.pipe(
26276
26994
  z57.object({
26277
26995
  base_plan_id: string5(),
26278
- customize: optional3(z57.lazy(() => GetPlanCustomize$inboundSchema))
26996
+ customize: optional3(
26997
+ z57.lazy(() => GetPlanVariantDetailsCustomize$inboundSchema)
26998
+ )
26279
26999
  }),
26280
27000
  z57.transform((v) => {
26281
27001
  return remap(v, {
@@ -26283,6 +27003,464 @@ var GetPlanVariantDetails$inboundSchema = z57.pipe(
26283
27003
  });
26284
27004
  })
26285
27005
  );
27006
+ var GetPlanPriceLicenseInterval$inboundSchema = inboundSchema(GetPlanPriceLicenseInterval);
27007
+ var GetPlanLicenseAdditionalCurrency$inboundSchema = z57.object({
27008
+ currency: string5(),
27009
+ amount: number2()
27010
+ });
27011
+ var GetPlanLicenseBasePrice$inboundSchema = z57.pipe(
27012
+ z57.object({
27013
+ amount: number2(),
27014
+ interval: GetPlanPriceLicenseInterval$inboundSchema,
27015
+ interval_count: z57._default(number2(), 1),
27016
+ additional_currencies: optional3(
27017
+ z57.array(z57.lazy(() => GetPlanLicenseAdditionalCurrency$inboundSchema))
27018
+ )
27019
+ }),
27020
+ z57.transform((v) => {
27021
+ return remap(v, {
27022
+ "interval_count": "intervalCount",
27023
+ "additional_currencies": "additionalCurrencies"
27024
+ });
27025
+ })
27026
+ );
27027
+ var GetPlanLicenseThresholdBilling$inboundSchema = z57.object({
27028
+ threshold: number2()
27029
+ });
27030
+ var GetPlanLicenseResetInterval$inboundSchema = inboundSchema(GetPlanLicenseResetInterval);
27031
+ var GetPlanLicenseReset$inboundSchema = z57.pipe(
27032
+ z57.object({
27033
+ interval: GetPlanLicenseResetInterval$inboundSchema,
27034
+ interval_count: z57._default(number2(), 1)
27035
+ }),
27036
+ z57.transform((v) => {
27037
+ return remap(v, {
27038
+ "interval_count": "intervalCount"
27039
+ });
27040
+ })
27041
+ );
27042
+ var GetPlanLicenseAddItemAdditionalCurrency$inboundSchema = z57.object({
27043
+ currency: string5(),
27044
+ amount: number2()
27045
+ });
27046
+ var GetPlanLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
27047
+ var GetPlanLicenseTierAdditionalCurrency$inboundSchema = z57.pipe(
27048
+ z57.object({
27049
+ currency: string5(),
27050
+ amount: optional3(number2()),
27051
+ flat_amount: optional3(number2())
27052
+ }),
27053
+ z57.transform((v) => {
27054
+ return remap(v, {
27055
+ "flat_amount": "flatAmount"
27056
+ });
27057
+ })
27058
+ );
27059
+ var GetPlanLicensePriceTier$inboundSchema = z57.pipe(
27060
+ z57.object({
27061
+ to: smartUnion([number2(), string5()]),
27062
+ amount: number2(),
27063
+ flat_amount: optional3(number2()),
27064
+ additional_currencies: optional3(
27065
+ z57.array(z57.lazy(() => GetPlanLicenseTierAdditionalCurrency$inboundSchema))
27066
+ )
27067
+ }),
27068
+ z57.transform((v) => {
27069
+ return remap(v, {
27070
+ "flat_amount": "flatAmount",
27071
+ "additional_currencies": "additionalCurrencies"
27072
+ });
27073
+ })
27074
+ );
27075
+ var GetPlanLicenseTierBehavior$inboundSchema = inboundSchema(GetPlanLicenseTierBehavior);
27076
+ var GetPlanLicenseAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanLicenseAddItemPriceInterval);
27077
+ var GetPlanLicenseAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseAddItemBillingMethod);
27078
+ var GetPlanLicensePrice$inboundSchema = z57.pipe(
27079
+ z57.object({
27080
+ amount: optional3(number2()),
27081
+ additional_currencies: optional3(z57.array(z57.lazy(
27082
+ () => GetPlanLicenseAddItemAdditionalCurrency$inboundSchema
27083
+ ))),
27084
+ tiers: optional3(z57.array(z57.lazy(
27085
+ () => GetPlanLicensePriceTier$inboundSchema
27086
+ ))),
27087
+ tier_behavior: optional3(GetPlanLicenseTierBehavior$inboundSchema),
27088
+ interval: GetPlanLicenseAddItemPriceInterval$inboundSchema,
27089
+ interval_count: z57._default(number2(), 1),
27090
+ billing_units: z57._default(number2(), 1),
27091
+ billing_method: GetPlanLicenseAddItemBillingMethod$inboundSchema,
27092
+ max_purchase: z57.optional(z57.nullable(number2()))
27093
+ }),
27094
+ z57.transform((v) => {
27095
+ return remap(v, {
27096
+ "additional_currencies": "additionalCurrencies",
27097
+ "tier_behavior": "tierBehavior",
27098
+ "interval_count": "intervalCount",
27099
+ "billing_units": "billingUnits",
27100
+ "billing_method": "billingMethod",
27101
+ "max_purchase": "maxPurchase"
27102
+ });
27103
+ })
27104
+ );
27105
+ var GetPlanLicenseOnIncrease$inboundSchema = inboundSchema(GetPlanLicenseOnIncrease);
27106
+ var GetPlanLicenseOnDecrease$inboundSchema = inboundSchema(GetPlanLicenseOnDecrease);
27107
+ var GetPlanLicenseProration$inboundSchema = z57.pipe(
27108
+ z57.object({
27109
+ on_increase: GetPlanLicenseOnIncrease$inboundSchema,
27110
+ on_decrease: GetPlanLicenseOnDecrease$inboundSchema
27111
+ }),
27112
+ z57.transform((v) => {
27113
+ return remap(v, {
27114
+ "on_increase": "onIncrease",
27115
+ "on_decrease": "onDecrease"
27116
+ });
27117
+ })
27118
+ );
27119
+ var GetPlanLicenseExpiryDurationType$inboundSchema = inboundSchema(GetPlanLicenseExpiryDurationType);
27120
+ var GetPlanLicenseRollover$inboundSchema = z57.pipe(
27121
+ z57.object({
27122
+ max: optional3(number2()),
27123
+ max_percentage: optional3(number2()),
27124
+ expiry_duration_type: GetPlanLicenseExpiryDurationType$inboundSchema,
27125
+ expiry_duration_length: optional3(number2())
27126
+ }),
27127
+ z57.transform((v) => {
27128
+ return remap(v, {
27129
+ "max_percentage": "maxPercentage",
27130
+ "expiry_duration_type": "expiryDurationType",
27131
+ "expiry_duration_length": "expiryDurationLength"
27132
+ });
27133
+ })
27134
+ );
27135
+ var GetPlanLicenseDuration$inboundSchema = inboundSchema(GetPlanLicenseDuration);
27136
+ var GetPlanLicenseExpiry$inboundSchema = z57.object({
27137
+ duration: GetPlanLicenseDuration$inboundSchema,
27138
+ length: number2()
27139
+ });
27140
+ var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
27141
+ z57.object({
27142
+ match: z57.record(z57.string(), string5()),
27143
+ priority: optional3(number2()),
27144
+ credit_cost: number2()
27145
+ }),
27146
+ z57.transform((v) => {
27147
+ return remap(v, {
27148
+ "credit_cost": "creditCost"
27149
+ });
27150
+ })
27151
+ );
27152
+ var GetPlanDimensionsToLicenseEnum2$inboundSchema = z57.enum(GetPlanDimensionsToLicenseEnum2);
27153
+ var GetPlanDimensionsLicenseToUnion2$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum2$inboundSchema]);
27154
+ var GetPlanDimensionsLicenseTier2$inboundSchema = z57.pipe(
27155
+ z57.object({
27156
+ to: smartUnion([
27157
+ number2(),
27158
+ GetPlanDimensionsToLicenseEnum2$inboundSchema
27159
+ ]),
27160
+ credit_cost: number2()
27161
+ }),
27162
+ z57.transform((v) => {
27163
+ return remap(v, {
27164
+ "credit_cost": "creditCost"
27165
+ });
27166
+ })
27167
+ );
27168
+ var GetPlanDimensionsLicense3$inboundSchema = z57.pipe(
27169
+ z57.object({
27170
+ match: z57.record(z57.string(), string5()),
27171
+ priority: optional3(number2()),
27172
+ tier_behavior: literal3("graduated"),
27173
+ tiers: z57.array(z57.lazy(() => GetPlanDimensionsLicenseTier2$inboundSchema))
27174
+ }),
27175
+ z57.transform((v) => {
27176
+ return remap(v, {
27177
+ "tier_behavior": "tierBehavior"
27178
+ });
27179
+ })
27180
+ );
27181
+ var GetPlanLicenseDimensionsUnion2$inboundSchema = smartUnion([
27182
+ z57.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
27183
+ z57.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
27184
+ ]);
27185
+ var GetPlanLicenseMultipliers2$inboundSchema = z57.object({
27186
+ match: z57.record(z57.string(), string5()),
27187
+ factor: optional3(number2()),
27188
+ add: optional3(number2())
27189
+ });
27190
+ var GetPlanCreditSchemaLicense2$inboundSchema = z57.pipe(
27191
+ z57.object({
27192
+ metered_feature_id: string5(),
27193
+ billing_units: optional3(number2()),
27194
+ dimensions: optional3(z57.record(
27195
+ z57.string(),
27196
+ smartUnion([
27197
+ z57.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
27198
+ z57.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
27199
+ ])
27200
+ )),
27201
+ multipliers: optional3(z57.record(
27202
+ z57.string(),
27203
+ z57.lazy(() => GetPlanLicenseMultipliers2$inboundSchema)
27204
+ )),
27205
+ credit_cost: number2()
27206
+ }),
27207
+ z57.transform((v) => {
27208
+ return remap(v, {
27209
+ "metered_feature_id": "meteredFeatureId",
27210
+ "billing_units": "billingUnits",
27211
+ "credit_cost": "creditCost"
27212
+ });
27213
+ })
27214
+ );
27215
+ var GetPlanDimensionsLicense2$inboundSchema = z57.pipe(
27216
+ z57.object({
27217
+ match: z57.record(z57.string(), string5()),
27218
+ priority: optional3(number2()),
27219
+ credit_cost: number2()
27220
+ }),
27221
+ z57.transform((v) => {
27222
+ return remap(v, {
27223
+ "credit_cost": "creditCost"
27224
+ });
27225
+ })
27226
+ );
27227
+ var GetPlanDimensionsToLicenseEnum1$inboundSchema = z57.enum(GetPlanDimensionsToLicenseEnum1);
27228
+ var GetPlanDimensionsLicenseToUnion1$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum1$inboundSchema]);
27229
+ var GetPlanDimensionsLicenseTier1$inboundSchema = z57.pipe(
27230
+ z57.object({
27231
+ to: smartUnion([
27232
+ number2(),
27233
+ GetPlanDimensionsToLicenseEnum1$inboundSchema
27234
+ ]),
27235
+ credit_cost: number2()
27236
+ }),
27237
+ z57.transform((v) => {
27238
+ return remap(v, {
27239
+ "credit_cost": "creditCost"
27240
+ });
27241
+ })
27242
+ );
27243
+ var GetPlanDimensionsLicense1$inboundSchema = z57.pipe(
27244
+ z57.object({
27245
+ match: z57.record(z57.string(), string5()),
27246
+ priority: optional3(number2()),
27247
+ tier_behavior: literal3("graduated"),
27248
+ tiers: z57.array(z57.lazy(() => GetPlanDimensionsLicenseTier1$inboundSchema))
27249
+ }),
27250
+ z57.transform((v) => {
27251
+ return remap(v, {
27252
+ "tier_behavior": "tierBehavior"
27253
+ });
27254
+ })
27255
+ );
27256
+ var GetPlanLicenseDimensionsUnion1$inboundSchema = smartUnion([
27257
+ z57.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
27258
+ z57.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
27259
+ ]);
27260
+ var GetPlanLicenseMultipliers1$inboundSchema = z57.object({
27261
+ match: z57.record(z57.string(), string5()),
27262
+ factor: optional3(number2()),
27263
+ add: optional3(number2())
27264
+ });
27265
+ var GetPlanToLicenseEnum$inboundSchema = z57.enum(GetPlanToLicenseEnum);
27266
+ var GetPlanLicenseFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]);
27267
+ var GetPlanLicenseFeatureOverrideTier$inboundSchema = z57.pipe(
27268
+ z57.object({
27269
+ to: smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]),
27270
+ credit_cost: number2()
27271
+ }),
27272
+ z57.transform((v) => {
27273
+ return remap(v, {
27274
+ "credit_cost": "creditCost"
27275
+ });
27276
+ })
27277
+ );
27278
+ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
27279
+ z57.object({
27280
+ metered_feature_id: string5(),
27281
+ billing_units: optional3(number2()),
27282
+ dimensions: optional3(z57.record(
27283
+ z57.string(),
27284
+ smartUnion([
27285
+ z57.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
27286
+ z57.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
27287
+ ])
27288
+ )),
27289
+ multipliers: optional3(z57.record(
27290
+ z57.string(),
27291
+ z57.lazy(() => GetPlanLicenseMultipliers1$inboundSchema)
27292
+ )),
27293
+ tier_behavior: literal3("graduated"),
27294
+ tiers: z57.array(z57.lazy(
27295
+ () => GetPlanLicenseFeatureOverrideTier$inboundSchema
27296
+ ))
27297
+ }),
27298
+ z57.transform((v) => {
27299
+ return remap(v, {
27300
+ "metered_feature_id": "meteredFeatureId",
27301
+ "billing_units": "billingUnits",
27302
+ "tier_behavior": "tierBehavior"
27303
+ });
27304
+ })
27305
+ );
27306
+ var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
27307
+ z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
27308
+ z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
27309
+ ]);
27310
+ var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
27311
+ markup: number2()
27312
+ });
27313
+ var GetPlanLicenseModelMarkups$inboundSchema = z57.pipe(
27314
+ z57.object({
27315
+ markup: optional3(number2()),
27316
+ input_cost: optional3(number2()),
27317
+ output_cost: optional3(number2())
27318
+ }),
27319
+ z57.transform((v) => {
27320
+ return remap(v, {
27321
+ "input_cost": "inputCost",
27322
+ "output_cost": "outputCost"
27323
+ });
27324
+ })
27325
+ );
27326
+ var GetPlanLicenseMarkups$inboundSchema = z57.pipe(
27327
+ z57.object({
27328
+ default_markup: optional3(number2()),
27329
+ provider_markups: z57.optional(z57.nullable(z57.record(
27330
+ z57.string(),
27331
+ z57.lazy(() => GetPlanLicenseProviderMarkups$inboundSchema)
27332
+ ))),
27333
+ model_markups: z57.optional(z57.nullable(z57.record(
27334
+ z57.string(),
27335
+ z57.lazy(() => GetPlanLicenseModelMarkups$inboundSchema)
27336
+ )))
27337
+ }),
27338
+ z57.transform((v) => {
27339
+ return remap(v, {
27340
+ "default_markup": "defaultMarkup",
27341
+ "provider_markups": "providerMarkups",
27342
+ "model_markups": "modelMarkups"
27343
+ });
27344
+ })
27345
+ );
27346
+ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
27347
+ z57.object({
27348
+ credit_schema: optional3(z57.array(smartUnion([
27349
+ z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
27350
+ z57.lazy(
27351
+ () => GetPlanCreditSchemaLicense2$inboundSchema
27352
+ )
27353
+ ]))),
27354
+ markups: optional3(z57.lazy(
27355
+ () => GetPlanLicenseMarkups$inboundSchema
27356
+ ))
27357
+ }),
27358
+ z57.transform((v) => {
27359
+ return remap(v, {
27360
+ "credit_schema": "creditSchema"
27361
+ });
27362
+ })
27363
+ );
27364
+ var GetPlanLicensePlanItem$inboundSchema = z57.pipe(
27365
+ z57.object({
27366
+ threshold_billing: z57.optional(
27367
+ z57.nullable(z57.lazy(() => GetPlanLicenseThresholdBilling$inboundSchema))
27368
+ ),
27369
+ feature_id: string5(),
27370
+ included: optional3(number2()),
27371
+ unlimited: optional3(boolean2()),
27372
+ pooled: z57._default(boolean2(), false),
27373
+ reset: optional3(z57.lazy(() => GetPlanLicenseReset$inboundSchema)),
27374
+ price: optional3(z57.lazy(() => GetPlanLicensePrice$inboundSchema)),
27375
+ proration: optional3(
27376
+ z57.lazy(() => GetPlanLicenseProration$inboundSchema)
27377
+ ),
27378
+ rollover: optional3(
27379
+ z57.lazy(() => GetPlanLicenseRollover$inboundSchema)
27380
+ ),
27381
+ expiry: optional3(z57.lazy(() => GetPlanLicenseExpiry$inboundSchema)),
27382
+ feature_override: optional3(
27383
+ z57.lazy(() => GetPlanLicenseFeatureOverride$inboundSchema)
27384
+ )
27385
+ }),
27386
+ z57.transform((v) => {
27387
+ return remap(v, {
27388
+ "threshold_billing": "thresholdBilling",
27389
+ "feature_id": "featureId",
27390
+ "feature_override": "featureOverride"
27391
+ });
27392
+ })
27393
+ );
27394
+ var GetPlanLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseRemoveItemBillingMethod);
27395
+ var GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum2);
27396
+ var GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum1);
27397
+ var GetPlanLicenseIntervalUnion$inboundSchema = smartUnion([
27398
+ GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
27399
+ GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
27400
+ ]);
27401
+ var GetPlanLicensePlanItemFilter$inboundSchema = z57.pipe(
27402
+ z57.object({
27403
+ feature_id: optional3(string5()),
27404
+ billing_method: optional3(
27405
+ GetPlanLicenseRemoveItemBillingMethod$inboundSchema
27406
+ ),
27407
+ interval: optional3(
27408
+ smartUnion([
27409
+ GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
27410
+ GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
27411
+ ])
27412
+ ),
27413
+ interval_count: optional3(number2()),
27414
+ included: optional3(number2())
27415
+ }),
27416
+ z57.transform((v) => {
27417
+ return remap(v, {
27418
+ "feature_id": "featureId",
27419
+ "billing_method": "billingMethod",
27420
+ "interval_count": "intervalCount"
27421
+ });
27422
+ })
27423
+ );
27424
+ var GetPlanLicenseCustomize$inboundSchema = z57.pipe(
27425
+ z57.object({
27426
+ price: z57.optional(
27427
+ z57.nullable(z57.lazy(() => GetPlanLicenseBasePrice$inboundSchema))
27428
+ ),
27429
+ add_items: optional3(
27430
+ z57.array(z57.lazy(() => GetPlanLicensePlanItem$inboundSchema))
27431
+ ),
27432
+ remove_items: optional3(
27433
+ z57.array(z57.lazy(() => GetPlanLicensePlanItemFilter$inboundSchema))
27434
+ )
27435
+ }),
27436
+ z57.transform((v) => {
27437
+ return remap(v, {
27438
+ "add_items": "addItems",
27439
+ "remove_items": "removeItems"
27440
+ });
27441
+ })
27442
+ );
27443
+ var GetPlanLicense$inboundSchema = z57.pipe(
27444
+ z57.object({
27445
+ license_plan_id: string5(),
27446
+ version: number2(),
27447
+ version_slug: optional3(string5()),
27448
+ included: number2(),
27449
+ prepaid_only: boolean2(),
27450
+ customize: optional3(
27451
+ z57.lazy(() => GetPlanLicenseCustomize$inboundSchema)
27452
+ ),
27453
+ metadata: optional3(z57.record(z57.string(), z57.any())),
27454
+ plan: optional3(Plan$inboundSchema)
27455
+ }),
27456
+ z57.transform((v) => {
27457
+ return remap(v, {
27458
+ "license_plan_id": "licensePlanId",
27459
+ "version_slug": "versionSlug",
27460
+ "prepaid_only": "prepaidOnly"
27461
+ });
27462
+ })
27463
+ );
26286
27464
  var GetPlanResponse$inboundSchema = z57.pipe(
26287
27465
  z57.object({
26288
27466
  id: string5(),
@@ -26310,6 +27488,9 @@ var GetPlanResponse$inboundSchema = z57.pipe(
26310
27488
  base_variant_id: nullable(string5()),
26311
27489
  variant_details: optional3(
26312
27490
  z57.lazy(() => GetPlanVariantDetails$inboundSchema)
27491
+ ),
27492
+ licenses: optional3(
27493
+ z57.array(z57.lazy(() => GetPlanLicense$inboundSchema))
26313
27494
  )
26314
27495
  }),
26315
27496
  z57.transform((v) => {
@@ -48238,7 +49419,7 @@ var UpdatePlanDimensionsToItemRequestBodyEnum1 = {
48238
49419
  var UpdatePlanToItemRequestBodyEnum = {
48239
49420
  Inf: "inf"
48240
49421
  };
48241
- var UpdatePlanPriceLicenseInterval = {
49422
+ var UpdatePlanPriceLicenseIntervalRequestBody = {
48242
49423
  OneOff: "one_off",
48243
49424
  Week: "week",
48244
49425
  Month: "month",
@@ -48246,7 +49427,7 @@ var UpdatePlanPriceLicenseInterval = {
48246
49427
  SemiAnnual: "semi_annual",
48247
49428
  Year: "year"
48248
49429
  };
48249
- var UpdatePlanLicenseResetInterval = {
49430
+ var UpdatePlanLicenseResetIntervalRequestBody = {
48250
49431
  OneOff: "one_off",
48251
49432
  Minute: "minute",
48252
49433
  Hour: "hour",
@@ -48257,11 +49438,11 @@ var UpdatePlanLicenseResetInterval = {
48257
49438
  SemiAnnual: "semi_annual",
48258
49439
  Year: "year"
48259
49440
  };
48260
- var UpdatePlanLicenseTierBehavior = {
49441
+ var UpdatePlanLicenseTierBehaviorRequestBody = {
48261
49442
  Graduated: "graduated",
48262
49443
  Volume: "volume"
48263
49444
  };
48264
- var UpdatePlanLicenseAddItemPriceInterval = {
49445
+ var UpdatePlanLicenseAddItemPriceIntervalRequestBody = {
48265
49446
  OneOff: "one_off",
48266
49447
  Week: "week",
48267
49448
  Month: "month",
@@ -48269,47 +49450,47 @@ var UpdatePlanLicenseAddItemPriceInterval = {
48269
49450
  SemiAnnual: "semi_annual",
48270
49451
  Year: "year"
48271
49452
  };
48272
- var UpdatePlanLicenseAddItemBillingMethod = {
49453
+ var UpdatePlanLicenseAddItemBillingMethodRequestBody = {
48273
49454
  Prepaid: "prepaid",
48274
49455
  UsageBased: "usage_based"
48275
49456
  };
48276
- var UpdatePlanLicenseOnIncrease = {
49457
+ var UpdatePlanLicenseOnIncreaseRequestBody = {
48277
49458
  BillImmediately: "bill_immediately",
48278
49459
  ProrateImmediately: "prorate_immediately",
48279
49460
  ProrateNextCycle: "prorate_next_cycle",
48280
49461
  BillNextCycle: "bill_next_cycle"
48281
49462
  };
48282
- var UpdatePlanLicenseOnDecrease = {
49463
+ var UpdatePlanLicenseOnDecreaseRequestBody = {
48283
49464
  Prorate: "prorate",
48284
49465
  ProrateImmediately: "prorate_immediately",
48285
49466
  ProrateNextCycle: "prorate_next_cycle",
48286
49467
  None: "none",
48287
49468
  NoProrations: "no_prorations"
48288
49469
  };
48289
- var UpdatePlanLicenseExpiryDurationType = {
49470
+ var UpdatePlanLicenseExpiryDurationTypeRequestBody = {
48290
49471
  Month: "month",
48291
49472
  Forever: "forever"
48292
49473
  };
48293
- var UpdatePlanLicenseDuration = {
49474
+ var UpdatePlanLicenseDurationRequestBody = {
48294
49475
  Day: "day",
48295
49476
  Week: "week",
48296
49477
  Month: "month",
48297
49478
  Year: "year"
48298
49479
  };
48299
- var UpdatePlanDimensionsToLicenseEnum2 = {
49480
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum2 = {
48300
49481
  Inf: "inf"
48301
49482
  };
48302
- var UpdatePlanDimensionsToLicenseEnum1 = {
49483
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum1 = {
48303
49484
  Inf: "inf"
48304
49485
  };
48305
- var UpdatePlanToLicenseEnum = {
49486
+ var UpdatePlanToLicenseRequestBodyEnum = {
48306
49487
  Inf: "inf"
48307
49488
  };
48308
- var UpdatePlanLicenseRemoveItemBillingMethod = {
49489
+ var UpdatePlanLicenseRemoveItemBillingMethodRequestBody = {
48309
49490
  Prepaid: "prepaid",
48310
49491
  UsageBased: "usage_based"
48311
49492
  };
48312
- var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
49493
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2 = {
48313
49494
  OneOff: "one_off",
48314
49495
  Minute: "minute",
48315
49496
  Hour: "hour",
@@ -48320,7 +49501,7 @@ var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
48320
49501
  SemiAnnual: "semi_annual",
48321
49502
  Year: "year"
48322
49503
  };
48323
- var UpdatePlanIntervalLicenseRemoveItemEnum1 = {
49504
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1 = {
48324
49505
  OneOff: "one_off",
48325
49506
  Week: "week",
48326
49507
  Month: "month",
@@ -48851,19 +50032,21 @@ var UpdatePlanItemPlanItem$outboundSchema = z113.pipe(
48851
50032
  });
48852
50033
  })
48853
50034
  );
48854
- var UpdatePlanPriceLicenseInterval$outboundSchema = z113.enum(UpdatePlanPriceLicenseInterval);
48855
- var UpdatePlanLicenseAdditionalCurrency$outboundSchema = z113.object({
50035
+ var UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema = z113.enum(
50036
+ UpdatePlanPriceLicenseIntervalRequestBody
50037
+ );
50038
+ var UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z113.object({
48856
50039
  currency: z113.string(),
48857
50040
  amount: z113.number()
48858
50041
  });
48859
- var UpdatePlanLicenseBasePrice$outboundSchema = z113.pipe(
50042
+ var UpdatePlanLicenseBasePriceRequestBody$outboundSchema = z113.pipe(
48860
50043
  z113.object({
48861
50044
  amount: z113.number(),
48862
- interval: UpdatePlanPriceLicenseInterval$outboundSchema,
50045
+ interval: UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema,
48863
50046
  intervalCount: z113._default(z113.number(), 1),
48864
- additionalCurrencies: z113.optional(
48865
- z113.array(z113.lazy(() => UpdatePlanLicenseAdditionalCurrency$outboundSchema))
48866
- )
50047
+ additionalCurrencies: z113.optional(z113.array(z113.lazy(
50048
+ () => UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
50049
+ )))
48867
50050
  }),
48868
50051
  z113.transform((v) => {
48869
50052
  return remap(v, {
@@ -48872,13 +50055,15 @@ var UpdatePlanLicenseBasePrice$outboundSchema = z113.pipe(
48872
50055
  });
48873
50056
  })
48874
50057
  );
48875
- var UpdatePlanLicenseThresholdBilling$outboundSchema = z113.object({
50058
+ var UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema = z113.object({
48876
50059
  threshold: z113.number()
48877
50060
  });
48878
- var UpdatePlanLicenseResetInterval$outboundSchema = z113.enum(UpdatePlanLicenseResetInterval);
48879
- var UpdatePlanLicenseReset$outboundSchema = z113.pipe(
50061
+ var UpdatePlanLicenseResetIntervalRequestBody$outboundSchema = z113.enum(
50062
+ UpdatePlanLicenseResetIntervalRequestBody
50063
+ );
50064
+ var UpdatePlanLicenseResetRequestBody$outboundSchema = z113.pipe(
48880
50065
  z113.object({
48881
- interval: UpdatePlanLicenseResetInterval$outboundSchema,
50066
+ interval: UpdatePlanLicenseResetIntervalRequestBody$outboundSchema,
48882
50067
  intervalCount: z113._default(z113.number(), 1)
48883
50068
  }),
48884
50069
  z113.transform((v) => {
@@ -48887,12 +50072,12 @@ var UpdatePlanLicenseReset$outboundSchema = z113.pipe(
48887
50072
  });
48888
50073
  })
48889
50074
  );
48890
- var UpdatePlanLicenseAddItemAdditionalCurrency$outboundSchema = z113.object({
50075
+ var UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema = z113.object({
48891
50076
  currency: z113.string(),
48892
50077
  amount: z113.number()
48893
50078
  });
48894
- var UpdatePlanLicensePriceTo$outboundSchema = smartUnion([z113.number(), z113.string()]);
48895
- var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z113.pipe(
50079
+ var UpdatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z113.number(), z113.string()]);
50080
+ var UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z113.pipe(
48896
50081
  z113.object({
48897
50082
  currency: z113.string(),
48898
50083
  amount: z113.optional(z113.number()),
@@ -48904,13 +50089,13 @@ var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z113.pipe(
48904
50089
  });
48905
50090
  })
48906
50091
  );
48907
- var UpdatePlanLicensePriceTier$outboundSchema = z113.pipe(
50092
+ var UpdatePlanLicensePriceTierRequestBody$outboundSchema = z113.pipe(
48908
50093
  z113.object({
48909
50094
  to: smartUnion([z113.number(), z113.string()]),
48910
50095
  amount: z113.optional(z113.number()),
48911
50096
  flatAmount: z113.optional(z113.number()),
48912
50097
  additionalCurrencies: z113.optional(z113.array(z113.lazy(
48913
- () => UpdatePlanLicenseTierAdditionalCurrency$outboundSchema
50098
+ () => UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
48914
50099
  )))
48915
50100
  }),
48916
50101
  z113.transform((v) => {
@@ -48920,27 +50105,27 @@ var UpdatePlanLicensePriceTier$outboundSchema = z113.pipe(
48920
50105
  });
48921
50106
  })
48922
50107
  );
48923
- var UpdatePlanLicenseTierBehavior$outboundSchema = z113.enum(UpdatePlanLicenseTierBehavior);
48924
- var UpdatePlanLicenseAddItemPriceInterval$outboundSchema = z113.enum(
48925
- UpdatePlanLicenseAddItemPriceInterval
48926
- );
48927
- var UpdatePlanLicenseAddItemBillingMethod$outboundSchema = z113.enum(
48928
- UpdatePlanLicenseAddItemBillingMethod
50108
+ var UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema = z113.enum(
50109
+ UpdatePlanLicenseTierBehaviorRequestBody
48929
50110
  );
48930
- var UpdatePlanLicensePrice$outboundSchema = z113.pipe(
50111
+ var UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseAddItemPriceIntervalRequestBody);
50112
+ var UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseAddItemBillingMethodRequestBody);
50113
+ var UpdatePlanLicensePriceRequestBody$outboundSchema = z113.pipe(
48931
50114
  z113.object({
48932
50115
  amount: z113.optional(z113.number()),
48933
50116
  additionalCurrencies: z113.optional(z113.array(z113.lazy(
48934
- () => UpdatePlanLicenseAddItemAdditionalCurrency$outboundSchema
50117
+ () => UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema
48935
50118
  ))),
48936
50119
  tiers: z113.optional(z113.array(z113.lazy(
48937
- () => UpdatePlanLicensePriceTier$outboundSchema
50120
+ () => UpdatePlanLicensePriceTierRequestBody$outboundSchema
48938
50121
  ))),
48939
- tierBehavior: z113.optional(UpdatePlanLicenseTierBehavior$outboundSchema),
48940
- interval: UpdatePlanLicenseAddItemPriceInterval$outboundSchema,
50122
+ tierBehavior: z113.optional(
50123
+ UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema
50124
+ ),
50125
+ interval: UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema,
48941
50126
  intervalCount: z113._default(z113.number(), 1),
48942
50127
  billingUnits: z113._default(z113.number(), 1),
48943
- billingMethod: UpdatePlanLicenseAddItemBillingMethod$outboundSchema,
50128
+ billingMethod: UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema,
48944
50129
  maxPurchase: z113.optional(z113.nullable(z113.number()))
48945
50130
  }),
48946
50131
  z113.transform((v) => {
@@ -48954,12 +50139,16 @@ var UpdatePlanLicensePrice$outboundSchema = z113.pipe(
48954
50139
  });
48955
50140
  })
48956
50141
  );
48957
- var UpdatePlanLicenseOnIncrease$outboundSchema = z113.enum(UpdatePlanLicenseOnIncrease);
48958
- var UpdatePlanLicenseOnDecrease$outboundSchema = z113.enum(UpdatePlanLicenseOnDecrease);
48959
- var UpdatePlanLicenseProration$outboundSchema = z113.pipe(
50142
+ var UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema = z113.enum(
50143
+ UpdatePlanLicenseOnIncreaseRequestBody
50144
+ );
50145
+ var UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema = z113.enum(
50146
+ UpdatePlanLicenseOnDecreaseRequestBody
50147
+ );
50148
+ var UpdatePlanLicenseProrationRequestBody$outboundSchema = z113.pipe(
48960
50149
  z113.object({
48961
- onIncrease: UpdatePlanLicenseOnIncrease$outboundSchema,
48962
- onDecrease: UpdatePlanLicenseOnDecrease$outboundSchema
50150
+ onIncrease: UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema,
50151
+ onDecrease: UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema
48963
50152
  }),
48964
50153
  z113.transform((v) => {
48965
50154
  return remap(v, {
@@ -48968,12 +50157,14 @@ var UpdatePlanLicenseProration$outboundSchema = z113.pipe(
48968
50157
  });
48969
50158
  })
48970
50159
  );
48971
- var UpdatePlanLicenseExpiryDurationType$outboundSchema = z113.enum(UpdatePlanLicenseExpiryDurationType);
48972
- var UpdatePlanLicenseRollover$outboundSchema = z113.pipe(
50160
+ var UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z113.enum(
50161
+ UpdatePlanLicenseExpiryDurationTypeRequestBody
50162
+ );
50163
+ var UpdatePlanLicenseRolloverRequestBody$outboundSchema = z113.pipe(
48973
50164
  z113.object({
48974
50165
  max: z113.optional(z113.number()),
48975
50166
  maxPercentage: z113.optional(z113.number()),
48976
- expiryDurationType: UpdatePlanLicenseExpiryDurationType$outboundSchema,
50167
+ expiryDurationType: UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
48977
50168
  expiryDurationLength: z113.optional(z113.number())
48978
50169
  }),
48979
50170
  z113.transform((v) => {
@@ -48984,13 +50175,13 @@ var UpdatePlanLicenseRollover$outboundSchema = z113.pipe(
48984
50175
  });
48985
50176
  })
48986
50177
  );
48987
- var UpdatePlanLicenseDuration$outboundSchema = z113.enum(UpdatePlanLicenseDuration);
48988
- var UpdatePlanLicenseExpiry$outboundSchema = z113.object({
48989
- duration: UpdatePlanLicenseDuration$outboundSchema,
50178
+ var UpdatePlanLicenseDurationRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseDurationRequestBody);
50179
+ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z113.object({
50180
+ duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
48990
50181
  length: z113.number()
48991
50182
  });
48992
50183
  var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
48993
- var UpdatePlanDimensionsLicense4$outboundSchema = z113.pipe(
50184
+ var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z113.pipe(
48994
50185
  z113.object({
48995
50186
  match: z113.record(
48996
50187
  z113.string(),
@@ -49006,13 +50197,18 @@ var UpdatePlanDimensionsLicense4$outboundSchema = z113.pipe(
49006
50197
  })
49007
50198
  );
49008
50199
  var UpdatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49009
- var UpdatePlanDimensionsToLicenseEnum2$outboundSchema = z113.enum(UpdatePlanDimensionsToLicenseEnum2);
49010
- var UpdatePlanDimensionsLicenseToUnion2$outboundSchema = smartUnion([z113.number(), UpdatePlanDimensionsToLicenseEnum2$outboundSchema]);
49011
- var UpdatePlanDimensionsLicenseTier2$outboundSchema = z113.pipe(
50200
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z113.enum(
50201
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2
50202
+ );
50203
+ var UpdatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
50204
+ z113.number(),
50205
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
50206
+ ]);
50207
+ var UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z113.pipe(
49012
50208
  z113.object({
49013
50209
  to: smartUnion([
49014
50210
  z113.number(),
49015
- UpdatePlanDimensionsToLicenseEnum2$outboundSchema
50211
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
49016
50212
  ]),
49017
50213
  creditCost: z113.number()
49018
50214
  }),
@@ -49022,7 +50218,7 @@ var UpdatePlanDimensionsLicenseTier2$outboundSchema = z113.pipe(
49022
50218
  });
49023
50219
  })
49024
50220
  );
49025
- var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
50221
+ var UpdatePlanDimensionsLicenseRequestBody3$outboundSchema = z113.pipe(
49026
50222
  z113.object({
49027
50223
  match: z113.record(
49028
50224
  z113.string(),
@@ -49031,7 +50227,9 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
49031
50227
  priority: z113.optional(z113.int()),
49032
50228
  tierBehavior: z113.literal("graduated"),
49033
50229
  tiers: z113.array(
49034
- z113.lazy(() => UpdatePlanDimensionsLicenseTier2$outboundSchema)
50230
+ z113.lazy(
50231
+ () => UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema
50232
+ )
49035
50233
  )
49036
50234
  }),
49037
50235
  z113.transform((v) => {
@@ -49040,12 +50238,12 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
49040
50238
  });
49041
50239
  })
49042
50240
  );
49043
- var UpdatePlanLicenseDimensionsUnion2$outboundSchema = smartUnion([
49044
- z113.lazy(() => UpdatePlanDimensionsLicense3$outboundSchema),
49045
- z113.lazy(() => UpdatePlanDimensionsLicense4$outboundSchema)
50241
+ var UpdatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
50242
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
50243
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
49046
50244
  ]);
49047
50245
  var UpdatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49048
- var UpdatePlanLicenseMultipliers2$outboundSchema = z113.object({
50246
+ var UpdatePlanLicenseMultipliersRequestBody2$outboundSchema = z113.object({
49049
50247
  match: z113.record(
49050
50248
  z113.string(),
49051
50249
  smartUnion([z113.string(), z113.number(), z113.boolean()])
@@ -49053,20 +50251,20 @@ var UpdatePlanLicenseMultipliers2$outboundSchema = z113.object({
49053
50251
  factor: z113.optional(z113.number()),
49054
50252
  add: z113.optional(z113.number())
49055
50253
  });
49056
- var UpdatePlanCreditSchemaLicense2$outboundSchema = z113.pipe(
50254
+ var UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z113.pipe(
49057
50255
  z113.object({
49058
50256
  meteredFeatureId: z113.string(),
49059
50257
  billingUnits: z113.optional(z113.number()),
49060
50258
  dimensions: z113.optional(z113.record(
49061
50259
  z113.string(),
49062
50260
  smartUnion([
49063
- z113.lazy(() => UpdatePlanDimensionsLicense3$outboundSchema),
49064
- z113.lazy(() => UpdatePlanDimensionsLicense4$outboundSchema)
50261
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
50262
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
49065
50263
  ])
49066
50264
  )),
49067
50265
  multipliers: z113.optional(z113.record(
49068
50266
  z113.string(),
49069
- z113.lazy(() => UpdatePlanLicenseMultipliers2$outboundSchema)
50267
+ z113.lazy(() => UpdatePlanLicenseMultipliersRequestBody2$outboundSchema)
49070
50268
  )),
49071
50269
  creditCost: z113.number()
49072
50270
  }),
@@ -49079,7 +50277,7 @@ var UpdatePlanCreditSchemaLicense2$outboundSchema = z113.pipe(
49079
50277
  })
49080
50278
  );
49081
50279
  var UpdatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49082
- var UpdatePlanDimensionsLicense2$outboundSchema = z113.pipe(
50280
+ var UpdatePlanDimensionsLicenseRequestBody2$outboundSchema = z113.pipe(
49083
50281
  z113.object({
49084
50282
  match: z113.record(
49085
50283
  z113.string(),
@@ -49095,13 +50293,18 @@ var UpdatePlanDimensionsLicense2$outboundSchema = z113.pipe(
49095
50293
  })
49096
50294
  );
49097
50295
  var UpdatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49098
- var UpdatePlanDimensionsToLicenseEnum1$outboundSchema = z113.enum(UpdatePlanDimensionsToLicenseEnum1);
49099
- var UpdatePlanDimensionsLicenseToUnion1$outboundSchema = smartUnion([z113.number(), UpdatePlanDimensionsToLicenseEnum1$outboundSchema]);
49100
- var UpdatePlanDimensionsLicenseTier1$outboundSchema = z113.pipe(
50296
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z113.enum(
50297
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1
50298
+ );
50299
+ var UpdatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
50300
+ z113.number(),
50301
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
50302
+ ]);
50303
+ var UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z113.pipe(
49101
50304
  z113.object({
49102
50305
  to: smartUnion([
49103
50306
  z113.number(),
49104
- UpdatePlanDimensionsToLicenseEnum1$outboundSchema
50307
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
49105
50308
  ]),
49106
50309
  creditCost: z113.number()
49107
50310
  }),
@@ -49111,7 +50314,7 @@ var UpdatePlanDimensionsLicenseTier1$outboundSchema = z113.pipe(
49111
50314
  });
49112
50315
  })
49113
50316
  );
49114
- var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
50317
+ var UpdatePlanDimensionsLicenseRequestBody1$outboundSchema = z113.pipe(
49115
50318
  z113.object({
49116
50319
  match: z113.record(
49117
50320
  z113.string(),
@@ -49120,7 +50323,9 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
49120
50323
  priority: z113.optional(z113.int()),
49121
50324
  tierBehavior: z113.literal("graduated"),
49122
50325
  tiers: z113.array(
49123
- z113.lazy(() => UpdatePlanDimensionsLicenseTier1$outboundSchema)
50326
+ z113.lazy(
50327
+ () => UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema
50328
+ )
49124
50329
  )
49125
50330
  }),
49126
50331
  z113.transform((v) => {
@@ -49129,12 +50334,12 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
49129
50334
  });
49130
50335
  })
49131
50336
  );
49132
- var UpdatePlanLicenseDimensionsUnion1$outboundSchema = smartUnion([
49133
- z113.lazy(() => UpdatePlanDimensionsLicense1$outboundSchema),
49134
- z113.lazy(() => UpdatePlanDimensionsLicense2$outboundSchema)
50337
+ var UpdatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
50338
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
50339
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
49135
50340
  ]);
49136
50341
  var UpdatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49137
- var UpdatePlanLicenseMultipliers1$outboundSchema = z113.object({
50342
+ var UpdatePlanLicenseMultipliersRequestBody1$outboundSchema = z113.object({
49138
50343
  match: z113.record(
49139
50344
  z113.string(),
49140
50345
  smartUnion([z113.string(), z113.number(), z113.boolean()])
@@ -49142,11 +50347,17 @@ var UpdatePlanLicenseMultipliers1$outboundSchema = z113.object({
49142
50347
  factor: z113.optional(z113.number()),
49143
50348
  add: z113.optional(z113.number())
49144
50349
  });
49145
- var UpdatePlanToLicenseEnum$outboundSchema = z113.enum(UpdatePlanToLicenseEnum);
49146
- var UpdatePlanLicenseFeatureOverrideToUnion$outboundSchema = smartUnion([z113.number(), UpdatePlanToLicenseEnum$outboundSchema]);
49147
- var UpdatePlanLicenseFeatureOverrideTier$outboundSchema = z113.pipe(
50350
+ var UpdatePlanToLicenseRequestBodyEnum$outboundSchema = z113.enum(UpdatePlanToLicenseRequestBodyEnum);
50351
+ var UpdatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
50352
+ z113.number(),
50353
+ UpdatePlanToLicenseRequestBodyEnum$outboundSchema
50354
+ ]);
50355
+ var UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z113.pipe(
49148
50356
  z113.object({
49149
- to: smartUnion([z113.number(), UpdatePlanToLicenseEnum$outboundSchema]),
50357
+ to: smartUnion([
50358
+ z113.number(),
50359
+ UpdatePlanToLicenseRequestBodyEnum$outboundSchema
50360
+ ]),
49150
50361
  creditCost: z113.number()
49151
50362
  }),
49152
50363
  z113.transform((v) => {
@@ -49155,24 +50366,24 @@ var UpdatePlanLicenseFeatureOverrideTier$outboundSchema = z113.pipe(
49155
50366
  });
49156
50367
  })
49157
50368
  );
49158
- var UpdatePlanCreditSchemaLicense1$outboundSchema = z113.pipe(
50369
+ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z113.pipe(
49159
50370
  z113.object({
49160
50371
  meteredFeatureId: z113.string(),
49161
50372
  billingUnits: z113.optional(z113.number()),
49162
50373
  dimensions: z113.optional(z113.record(
49163
50374
  z113.string(),
49164
50375
  smartUnion([
49165
- z113.lazy(() => UpdatePlanDimensionsLicense1$outboundSchema),
49166
- z113.lazy(() => UpdatePlanDimensionsLicense2$outboundSchema)
50376
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
50377
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
49167
50378
  ])
49168
50379
  )),
49169
50380
  multipliers: z113.optional(z113.record(
49170
50381
  z113.string(),
49171
- z113.lazy(() => UpdatePlanLicenseMultipliers1$outboundSchema)
50382
+ z113.lazy(() => UpdatePlanLicenseMultipliersRequestBody1$outboundSchema)
49172
50383
  )),
49173
50384
  tierBehavior: z113.literal("graduated"),
49174
50385
  tiers: z113.array(z113.lazy(
49175
- () => UpdatePlanLicenseFeatureOverrideTier$outboundSchema
50386
+ () => UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
49176
50387
  ))
49177
50388
  }),
49178
50389
  z113.transform((v) => {
@@ -49183,14 +50394,14 @@ var UpdatePlanCreditSchemaLicense1$outboundSchema = z113.pipe(
49183
50394
  });
49184
50395
  })
49185
50396
  );
49186
- var UpdatePlanLicenseCreditSchemaUnion$outboundSchema = smartUnion([
49187
- z113.lazy(() => UpdatePlanCreditSchemaLicense1$outboundSchema),
49188
- z113.lazy(() => UpdatePlanCreditSchemaLicense2$outboundSchema)
50397
+ var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
50398
+ z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
50399
+ z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
49189
50400
  ]);
49190
- var UpdatePlanLicenseProviderMarkups$outboundSchema = z113.object({
50401
+ var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z113.object({
49191
50402
  markup: z113.number()
49192
50403
  });
49193
- var UpdatePlanLicenseModelMarkups$outboundSchema = z113.pipe(
50404
+ var UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema = z113.pipe(
49194
50405
  z113.object({
49195
50406
  markup: z113.optional(z113.number()),
49196
50407
  inputCost: z113.optional(z113.number()),
@@ -49203,16 +50414,16 @@ var UpdatePlanLicenseModelMarkups$outboundSchema = z113.pipe(
49203
50414
  });
49204
50415
  })
49205
50416
  );
49206
- var UpdatePlanLicenseMarkups$outboundSchema = z113.pipe(
50417
+ var UpdatePlanLicenseMarkupsRequestBody$outboundSchema = z113.pipe(
49207
50418
  z113.object({
49208
50419
  defaultMarkup: z113.optional(z113.number()),
49209
50420
  providerMarkups: z113.optional(z113.nullable(z113.record(
49210
50421
  z113.string(),
49211
- z113.lazy(() => UpdatePlanLicenseProviderMarkups$outboundSchema)
50422
+ z113.lazy(() => UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
49212
50423
  ))),
49213
50424
  modelMarkups: z113.optional(z113.nullable(z113.record(
49214
50425
  z113.string(),
49215
- z113.lazy(() => UpdatePlanLicenseModelMarkups$outboundSchema)
50426
+ z113.lazy(() => UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema)
49216
50427
  )))
49217
50428
  }),
49218
50429
  z113.transform((v) => {
@@ -49223,16 +50434,16 @@ var UpdatePlanLicenseMarkups$outboundSchema = z113.pipe(
49223
50434
  });
49224
50435
  })
49225
50436
  );
49226
- var UpdatePlanLicenseFeatureOverride$outboundSchema = z113.pipe(
50437
+ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z113.pipe(
49227
50438
  z113.object({
49228
50439
  creditSchema: z113.optional(z113.array(smartUnion([
49229
- z113.lazy(() => UpdatePlanCreditSchemaLicense1$outboundSchema),
50440
+ z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
49230
50441
  z113.lazy(
49231
- () => UpdatePlanCreditSchemaLicense2$outboundSchema
50442
+ () => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
49232
50443
  )
49233
50444
  ]))),
49234
50445
  markups: z113.optional(z113.lazy(
49235
- () => UpdatePlanLicenseMarkups$outboundSchema
50446
+ () => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
49236
50447
  ))
49237
50448
  }),
49238
50449
  z113.transform((v) => {
@@ -49241,29 +50452,33 @@ var UpdatePlanLicenseFeatureOverride$outboundSchema = z113.pipe(
49241
50452
  });
49242
50453
  })
49243
50454
  );
49244
- var UpdatePlanLicensePlanItem$outboundSchema = z113.pipe(
50455
+ var UpdatePlanLicensePlanItemRequestBody$outboundSchema = z113.pipe(
49245
50456
  z113.object({
49246
- thresholdBilling: z113.optional(
49247
- z113.nullable(
49248
- z113.lazy(() => UpdatePlanLicenseThresholdBilling$outboundSchema)
49249
- )
49250
- ),
50457
+ thresholdBilling: z113.optional(z113.nullable(z113.lazy(
50458
+ () => UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema
50459
+ ))),
49251
50460
  featureId: z113.string(),
49252
50461
  included: z113.optional(z113.number()),
49253
50462
  unlimited: z113.optional(z113.boolean()),
49254
50463
  pooled: z113._default(z113.boolean(), false),
49255
- reset: z113.optional(z113.lazy(() => UpdatePlanLicenseReset$outboundSchema)),
49256
- price: z113.optional(z113.lazy(() => UpdatePlanLicensePrice$outboundSchema)),
49257
- proration: z113.optional(
49258
- z113.lazy(() => UpdatePlanLicenseProration$outboundSchema)
49259
- ),
49260
- rollover: z113.optional(
49261
- z113.lazy(() => UpdatePlanLicenseRollover$outboundSchema)
49262
- ),
49263
- expiry: z113.optional(z113.lazy(() => UpdatePlanLicenseExpiry$outboundSchema)),
49264
- featureOverride: z113.optional(
49265
- z113.lazy(() => UpdatePlanLicenseFeatureOverride$outboundSchema)
49266
- )
50464
+ reset: z113.optional(z113.lazy(
50465
+ () => UpdatePlanLicenseResetRequestBody$outboundSchema
50466
+ )),
50467
+ price: z113.optional(z113.lazy(
50468
+ () => UpdatePlanLicensePriceRequestBody$outboundSchema
50469
+ )),
50470
+ proration: z113.optional(z113.lazy(
50471
+ () => UpdatePlanLicenseProrationRequestBody$outboundSchema
50472
+ )),
50473
+ rollover: z113.optional(z113.lazy(
50474
+ () => UpdatePlanLicenseRolloverRequestBody$outboundSchema
50475
+ )),
50476
+ expiry: z113.optional(z113.lazy(
50477
+ () => UpdatePlanLicenseExpiryRequestBody$outboundSchema
50478
+ )),
50479
+ featureOverride: z113.optional(z113.lazy(
50480
+ () => UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema
50481
+ ))
49267
50482
  }),
49268
50483
  z113.transform((v) => {
49269
50484
  return remap(v, {
@@ -49273,29 +50488,23 @@ var UpdatePlanLicensePlanItem$outboundSchema = z113.pipe(
49273
50488
  });
49274
50489
  })
49275
50490
  );
49276
- var UpdatePlanLicenseRemoveItemBillingMethod$outboundSchema = z113.enum(
49277
- UpdatePlanLicenseRemoveItemBillingMethod
49278
- );
49279
- var UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema = z113.enum(
49280
- UpdatePlanIntervalLicenseRemoveItemEnum2
49281
- );
49282
- var UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z113.enum(
49283
- UpdatePlanIntervalLicenseRemoveItemEnum1
49284
- );
49285
- var UpdatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
49286
- UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
49287
- UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
50491
+ var UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseRemoveItemBillingMethodRequestBody);
50492
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema = z113.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2);
50493
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema = z113.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1);
50494
+ var UpdatePlanLicenseIntervalRequestBodyUnion$outboundSchema = smartUnion([
50495
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
50496
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
49288
50497
  ]);
49289
- var UpdatePlanLicensePlanItemFilter$outboundSchema = z113.pipe(
50498
+ var UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema = z113.pipe(
49290
50499
  z113.object({
49291
50500
  featureId: z113.optional(z113.string()),
49292
50501
  billingMethod: z113.optional(
49293
- UpdatePlanLicenseRemoveItemBillingMethod$outboundSchema
50502
+ UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema
49294
50503
  ),
49295
50504
  interval: z113.optional(
49296
50505
  smartUnion([
49297
- UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
49298
- UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
50506
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
50507
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
49299
50508
  ])
49300
50509
  ),
49301
50510
  intervalCount: z113.optional(z113.int()),
@@ -49309,17 +50518,17 @@ var UpdatePlanLicensePlanItemFilter$outboundSchema = z113.pipe(
49309
50518
  });
49310
50519
  })
49311
50520
  );
49312
- var UpdatePlanLicenseCustomize$outboundSchema = z113.pipe(
50521
+ var UpdatePlanLicenseCustomizeRequestBody$outboundSchema = z113.pipe(
49313
50522
  z113.object({
49314
- price: z113.optional(
49315
- z113.nullable(z113.lazy(() => UpdatePlanLicenseBasePrice$outboundSchema))
49316
- ),
49317
- addItems: z113.optional(
49318
- z113.array(z113.lazy(() => UpdatePlanLicensePlanItem$outboundSchema))
49319
- ),
49320
- removeItems: z113.optional(
49321
- z113.array(z113.lazy(() => UpdatePlanLicensePlanItemFilter$outboundSchema))
49322
- )
50523
+ price: z113.optional(z113.nullable(z113.lazy(
50524
+ () => UpdatePlanLicenseBasePriceRequestBody$outboundSchema
50525
+ ))),
50526
+ addItems: z113.optional(z113.array(z113.lazy(
50527
+ () => UpdatePlanLicensePlanItemRequestBody$outboundSchema
50528
+ ))),
50529
+ removeItems: z113.optional(z113.array(z113.lazy(
50530
+ () => UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema
50531
+ )))
49323
50532
  }),
49324
50533
  z113.transform((v) => {
49325
50534
  return remap(v, {
@@ -49328,15 +50537,15 @@ var UpdatePlanLicenseCustomize$outboundSchema = z113.pipe(
49328
50537
  });
49329
50538
  })
49330
50539
  );
49331
- var UpdatePlanLicense$outboundSchema = z113.pipe(
50540
+ var UpdatePlanLicenseRequest$outboundSchema = z113.pipe(
49332
50541
  z113.object({
49333
50542
  licensePlanId: z113.string(),
49334
50543
  versionSlug: z113.optional(z113.string()),
49335
50544
  included: z113.optional(z113.int()),
49336
50545
  prepaidOnly: z113.optional(z113.boolean()),
49337
- customize: z113.optional(
49338
- z113.nullable(z113.lazy(() => UpdatePlanLicenseCustomize$outboundSchema))
49339
- ),
50546
+ customize: z113.optional(z113.nullable(z113.lazy(
50547
+ () => UpdatePlanLicenseCustomizeRequestBody$outboundSchema
50548
+ ))),
49340
50549
  metadata: z113.optional(z113.record(z113.string(), z113.any()))
49341
50550
  }),
49342
50551
  z113.transform((v) => {
@@ -51025,7 +52234,7 @@ var UpdatePlanParams$outboundSchema = z114.pipe(
51025
52234
  z114.nullable(UpdatePlanBasePriceRequestBody$outboundSchema)
51026
52235
  ),
51027
52236
  items: z114.optional(z114.array(UpdatePlanItemPlanItem$outboundSchema)),
51028
- licenses: z114.optional(z114.array(UpdatePlanLicense$outboundSchema)),
52237
+ licenses: z114.optional(z114.array(UpdatePlanLicenseRequest$outboundSchema)),
51029
52238
  freeTrial: z114.optional(
51030
52239
  z114.nullable(UpdatePlanFreeTrialParamsRequestBody$outboundSchema)
51031
52240
  ),
@@ -51333,17 +52542,17 @@ var UpdatePlanVariantDetailsAddItemPriceInterval = {
51333
52542
  SemiAnnual: "semi_annual",
51334
52543
  Year: "year"
51335
52544
  };
51336
- var UpdatePlanAddItemBillingMethodResponse = {
52545
+ var UpdatePlanVariantDetailsAddItemBillingMethod = {
51337
52546
  Prepaid: "prepaid",
51338
52547
  UsageBased: "usage_based"
51339
52548
  };
51340
- var UpdatePlanOnIncreaseResponse = {
52549
+ var UpdatePlanVariantDetailsOnIncrease = {
51341
52550
  BillImmediately: "bill_immediately",
51342
52551
  ProrateImmediately: "prorate_immediately",
51343
52552
  ProrateNextCycle: "prorate_next_cycle",
51344
52553
  BillNextCycle: "bill_next_cycle"
51345
52554
  };
51346
- var UpdatePlanOnDecreaseResponse = {
52555
+ var UpdatePlanVariantDetailsOnDecrease = {
51347
52556
  Prorate: "prorate",
51348
52557
  ProrateImmediately: "prorate_immediately",
51349
52558
  ProrateNextCycle: "prorate_next_cycle",
@@ -51369,7 +52578,7 @@ var UpdatePlanDimensionsToVariantDetailsEnum1 = {
51369
52578
  var UpdatePlanToVariantDetailsEnum = {
51370
52579
  Inf: "inf"
51371
52580
  };
51372
- var UpdatePlanRemoveItemBillingMethodResponse = {
52581
+ var UpdatePlanVariantDetailsRemoveItemBillingMethod = {
51373
52582
  Prepaid: "prepaid",
51374
52583
  UsageBased: "usage_based"
51375
52584
  };
@@ -51464,7 +52673,7 @@ var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval = {
51464
52673
  SemiAnnual: "semi_annual",
51465
52674
  Year: "year"
51466
52675
  };
51467
- var UpdatePlanUpsertLicenseAddItemBillingMethodResponse = {
52676
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod = {
51468
52677
  Prepaid: "prepaid",
51469
52678
  UsageBased: "usage_based"
51470
52679
  };
@@ -51481,7 +52690,7 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
51481
52690
  None: "none",
51482
52691
  NoProrations: "no_prorations"
51483
52692
  };
51484
- var UpdatePlanUpsertLicenseExpiryDurationTypeResponse = {
52693
+ var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
51485
52694
  Month: "month",
51486
52695
  Forever: "forever"
51487
52696
  };
@@ -52068,7 +53277,7 @@ var UpdatePlanVariantDetailsAdditionalCurrency$inboundSchema = z115.object(
52068
53277
  amount: number2()
52069
53278
  }
52070
53279
  );
52071
- var UpdatePlanBasePriceResponse$inboundSchema = z115.pipe(
53280
+ var UpdatePlanVariantDetailsBasePrice$inboundSchema = z115.pipe(
52072
53281
  z115.object({
52073
53282
  amount: number2(),
52074
53283
  interval: UpdatePlanPriceVariantDetailsInterval$inboundSchema,
@@ -52099,7 +53308,7 @@ var UpdatePlanVariantDetailsReset$inboundSchema = z115.pipe(
52099
53308
  });
52100
53309
  })
52101
53310
  );
52102
- var UpdatePlanAddItemAdditionalCurrencyResponse$inboundSchema = z115.object({
53311
+ var UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z115.object({
52103
53312
  currency: string5(),
52104
53313
  amount: number2()
52105
53314
  });
@@ -52134,12 +53343,12 @@ var UpdatePlanVariantDetailsPriceTier$inboundSchema = z115.pipe(
52134
53343
  );
52135
53344
  var UpdatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(UpdatePlanVariantDetailsTierBehavior);
52136
53345
  var UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemPriceInterval);
52137
- var UpdatePlanAddItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanAddItemBillingMethodResponse);
53346
+ var UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemBillingMethod);
52138
53347
  var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
52139
53348
  z115.object({
52140
53349
  amount: optional3(number2()),
52141
53350
  additional_currencies: optional3(z115.array(z115.lazy(
52142
- () => UpdatePlanAddItemAdditionalCurrencyResponse$inboundSchema
53351
+ () => UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
52143
53352
  ))),
52144
53353
  tiers: optional3(z115.array(z115.lazy(
52145
53354
  () => UpdatePlanVariantDetailsPriceTier$inboundSchema
@@ -52150,7 +53359,7 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
52150
53359
  interval: UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
52151
53360
  interval_count: z115._default(number2(), 1),
52152
53361
  billing_units: z115._default(number2(), 1),
52153
- billing_method: UpdatePlanAddItemBillingMethodResponse$inboundSchema,
53362
+ billing_method: UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
52154
53363
  max_purchase: z115.optional(z115.nullable(number2()))
52155
53364
  }),
52156
53365
  z115.transform((v) => {
@@ -52164,12 +53373,12 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
52164
53373
  });
52165
53374
  })
52166
53375
  );
52167
- var UpdatePlanOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanOnIncreaseResponse);
52168
- var UpdatePlanOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanOnDecreaseResponse);
52169
- var UpdatePlanProrationResponse$inboundSchema = z115.pipe(
53376
+ var UpdatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnIncrease);
53377
+ var UpdatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnDecrease);
53378
+ var UpdatePlanVariantDetailsProration$inboundSchema = z115.pipe(
52170
53379
  z115.object({
52171
- on_increase: UpdatePlanOnIncreaseResponse$inboundSchema,
52172
- on_decrease: UpdatePlanOnDecreaseResponse$inboundSchema
53380
+ on_increase: UpdatePlanVariantDetailsOnIncrease$inboundSchema,
53381
+ on_decrease: UpdatePlanVariantDetailsOnDecrease$inboundSchema
52173
53382
  }),
52174
53383
  z115.transform((v) => {
52175
53384
  return remap(v, {
@@ -52444,7 +53653,7 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z115.pipe(
52444
53653
  });
52445
53654
  })
52446
53655
  );
52447
- var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
53656
+ var UpdatePlanVariantDetailsPlanItem$inboundSchema = z115.pipe(
52448
53657
  z115.object({
52449
53658
  threshold_billing: z115.optional(z115.nullable(z115.lazy(
52450
53659
  () => UpdatePlanVariantDetailsThresholdBilling$inboundSchema
@@ -52460,7 +53669,7 @@ var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
52460
53669
  () => UpdatePlanVariantDetailsPrice$inboundSchema
52461
53670
  )),
52462
53671
  proration: optional3(z115.lazy(
52463
- () => UpdatePlanProrationResponse$inboundSchema
53672
+ () => UpdatePlanVariantDetailsProration$inboundSchema
52464
53673
  )),
52465
53674
  rollover: optional3(z115.lazy(
52466
53675
  () => UpdatePlanVariantDetailsRollover$inboundSchema
@@ -52480,18 +53689,18 @@ var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
52480
53689
  });
52481
53690
  })
52482
53691
  );
52483
- var UpdatePlanRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanRemoveItemBillingMethodResponse);
53692
+ var UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsRemoveItemBillingMethod);
52484
53693
  var UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum2);
52485
53694
  var UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum1);
52486
53695
  var UpdatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
52487
53696
  UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
52488
53697
  UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
52489
53698
  ]);
52490
- var UpdatePlanPlanItemFilterResponse$inboundSchema = z115.pipe(
53699
+ var UpdatePlanVariantDetailsPlanItemFilter$inboundSchema = z115.pipe(
52491
53700
  z115.object({
52492
53701
  feature_id: optional3(string5()),
52493
53702
  billing_method: optional3(
52494
- UpdatePlanRemoveItemBillingMethodResponse$inboundSchema
53703
+ UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
52495
53704
  ),
52496
53705
  interval: optional3(
52497
53706
  smartUnion([
@@ -52668,7 +53877,7 @@ var UpdatePlanVariantDetailsBillingControls$inboundSchema = z115.pipe(
52668
53877
  })
52669
53878
  );
52670
53879
  var UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema = inboundSchema(UpdatePlanPriceVariantDetailsUpsertLicenseInterval);
52671
- var UpdatePlanUpsertLicenseAdditionalCurrencyResponse$inboundSchema = z115.object({
53880
+ var UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema = z115.object({
52672
53881
  currency: string5(),
52673
53882
  amount: number2()
52674
53883
  });
@@ -52678,7 +53887,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z115.pipe(
52678
53887
  interval: UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema,
52679
53888
  interval_count: z115._default(number2(), 1),
52680
53889
  additional_currencies: optional3(z115.array(z115.lazy(
52681
- () => UpdatePlanUpsertLicenseAdditionalCurrencyResponse$inboundSchema
53890
+ () => UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema
52682
53891
  )))
52683
53892
  }),
52684
53893
  z115.transform((v) => {
@@ -52688,7 +53897,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z115.pipe(
52688
53897
  });
52689
53898
  })
52690
53899
  );
52691
- var UpdatePlanUpsertLicenseThresholdBillingResponse$inboundSchema = z115.object({
53900
+ var UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema = z115.object({
52692
53901
  threshold: number2()
52693
53902
  });
52694
53903
  var UpdatePlanVariantDetailsUpsertLicenseResetInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseResetInterval);
@@ -52703,12 +53912,12 @@ var UpdatePlanVariantDetailsUpsertLicenseReset$inboundSchema = z115.pipe(
52703
53912
  });
52704
53913
  })
52705
53914
  );
52706
- var UpdatePlanUpsertLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z115.object({
53915
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema = z115.object({
52707
53916
  currency: string5(),
52708
53917
  amount: number2()
52709
53918
  });
52710
53919
  var UpdatePlanVariantDetailsUpsertLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
52711
- var UpdatePlanUpsertLicenseTierAdditionalCurrencyResponse$inboundSchema = z115.pipe(
53920
+ var UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema = z115.pipe(
52712
53921
  z115.object({
52713
53922
  currency: string5(),
52714
53923
  amount: optional3(number2()),
@@ -52726,7 +53935,7 @@ var UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema = z115.pipe(
52726
53935
  amount: number2(),
52727
53936
  flat_amount: optional3(number2()),
52728
53937
  additional_currencies: optional3(z115.array(z115.lazy(
52729
- () => UpdatePlanUpsertLicenseTierAdditionalCurrencyResponse$inboundSchema
53938
+ () => UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema
52730
53939
  )))
52731
53940
  }),
52732
53941
  z115.transform((v) => {
@@ -52740,14 +53949,14 @@ var UpdatePlanVariantDetailsUpsertLicenseTierBehavior$inboundSchema = inboundSch
52740
53949
  var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(
52741
53950
  UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval
52742
53951
  );
52743
- var UpdatePlanUpsertLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(
52744
- UpdatePlanUpsertLicenseAddItemBillingMethodResponse
53952
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(
53953
+ UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod
52745
53954
  );
52746
53955
  var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z115.pipe(
52747
53956
  z115.object({
52748
53957
  amount: optional3(number2()),
52749
53958
  additional_currencies: optional3(z115.array(z115.lazy(
52750
- () => UpdatePlanUpsertLicenseAddItemAdditionalCurrencyResponse$inboundSchema
53959
+ () => UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema
52751
53960
  ))),
52752
53961
  tiers: optional3(z115.array(z115.lazy(
52753
53962
  () => UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema
@@ -52758,7 +53967,7 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z115.pipe(
52758
53967
  interval: UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema,
52759
53968
  interval_count: z115._default(number2(), 1),
52760
53969
  billing_units: z115._default(number2(), 1),
52761
- billing_method: UpdatePlanUpsertLicenseAddItemBillingMethodResponse$inboundSchema,
53970
+ billing_method: UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema,
52762
53971
  max_purchase: z115.optional(z115.nullable(number2()))
52763
53972
  }),
52764
53973
  z115.transform((v) => {
@@ -52786,12 +53995,14 @@ var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z115.pipe(
52786
53995
  });
52787
53996
  })
52788
53997
  );
52789
- var UpdatePlanUpsertLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseExpiryDurationTypeResponse);
53998
+ var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
53999
+ UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
54000
+ );
52790
54001
  var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z115.pipe(
52791
54002
  z115.object({
52792
54003
  max: optional3(number2()),
52793
54004
  max_percentage: optional3(number2()),
52794
- expiry_duration_type: UpdatePlanUpsertLicenseExpiryDurationTypeResponse$inboundSchema,
54005
+ expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
52795
54006
  expiry_duration_length: optional3(number2())
52796
54007
  }),
52797
54008
  z115.transform((v) => {
@@ -52831,7 +54042,7 @@ var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum1 = {
52831
54042
  var UpdatePlanToVariantDetailsUpsertLicenseEnum = {
52832
54043
  Inf: "inf"
52833
54044
  };
52834
- var UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse = {
54045
+ var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod = {
52835
54046
  Prepaid: "prepaid",
52836
54047
  UsageBased: "usage_based"
52837
54048
  };
@@ -52854,6 +54065,96 @@ var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum1 = {
52854
54065
  SemiAnnual: "semi_annual",
52855
54066
  Year: "year"
52856
54067
  };
54068
+ var UpdatePlanPriceLicenseIntervalResponse = {
54069
+ OneOff: "one_off",
54070
+ Week: "week",
54071
+ Month: "month",
54072
+ Quarter: "quarter",
54073
+ SemiAnnual: "semi_annual",
54074
+ Year: "year"
54075
+ };
54076
+ var UpdatePlanLicenseResetIntervalResponse = {
54077
+ OneOff: "one_off",
54078
+ Minute: "minute",
54079
+ Hour: "hour",
54080
+ Day: "day",
54081
+ Week: "week",
54082
+ Month: "month",
54083
+ Quarter: "quarter",
54084
+ SemiAnnual: "semi_annual",
54085
+ Year: "year"
54086
+ };
54087
+ var UpdatePlanLicenseTierBehaviorResponse = {
54088
+ Graduated: "graduated",
54089
+ Volume: "volume"
54090
+ };
54091
+ var UpdatePlanLicenseAddItemPriceIntervalResponse = {
54092
+ OneOff: "one_off",
54093
+ Week: "week",
54094
+ Month: "month",
54095
+ Quarter: "quarter",
54096
+ SemiAnnual: "semi_annual",
54097
+ Year: "year"
54098
+ };
54099
+ var UpdatePlanLicenseAddItemBillingMethodResponse = {
54100
+ Prepaid: "prepaid",
54101
+ UsageBased: "usage_based"
54102
+ };
54103
+ var UpdatePlanLicenseOnIncreaseResponse = {
54104
+ BillImmediately: "bill_immediately",
54105
+ ProrateImmediately: "prorate_immediately",
54106
+ ProrateNextCycle: "prorate_next_cycle",
54107
+ BillNextCycle: "bill_next_cycle"
54108
+ };
54109
+ var UpdatePlanLicenseOnDecreaseResponse = {
54110
+ Prorate: "prorate",
54111
+ ProrateImmediately: "prorate_immediately",
54112
+ ProrateNextCycle: "prorate_next_cycle",
54113
+ None: "none",
54114
+ NoProrations: "no_prorations"
54115
+ };
54116
+ var UpdatePlanLicenseExpiryDurationTypeResponse = {
54117
+ Month: "month",
54118
+ Forever: "forever"
54119
+ };
54120
+ var UpdatePlanLicenseDurationResponse = {
54121
+ Day: "day",
54122
+ Week: "week",
54123
+ Month: "month",
54124
+ Year: "year"
54125
+ };
54126
+ var UpdatePlanDimensionsToLicenseResponseEnum2 = {
54127
+ Inf: "inf"
54128
+ };
54129
+ var UpdatePlanDimensionsToLicenseResponseEnum1 = {
54130
+ Inf: "inf"
54131
+ };
54132
+ var UpdatePlanToLicenseResponseEnum = {
54133
+ Inf: "inf"
54134
+ };
54135
+ var UpdatePlanLicenseRemoveItemBillingMethodResponse = {
54136
+ Prepaid: "prepaid",
54137
+ UsageBased: "usage_based"
54138
+ };
54139
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum2 = {
54140
+ OneOff: "one_off",
54141
+ Minute: "minute",
54142
+ Hour: "hour",
54143
+ Day: "day",
54144
+ Week: "week",
54145
+ Month: "month",
54146
+ Quarter: "quarter",
54147
+ SemiAnnual: "semi_annual",
54148
+ Year: "year"
54149
+ };
54150
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
54151
+ OneOff: "one_off",
54152
+ Week: "week",
54153
+ Month: "month",
54154
+ Quarter: "quarter",
54155
+ SemiAnnual: "semi_annual",
54156
+ Year: "year"
54157
+ };
52857
54158
  var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z116.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
52858
54159
  var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
52859
54160
  number2(),
@@ -53066,7 +54367,7 @@ var UpdatePlanVariantDetailsUpsertLicenseModelMarkups$inboundSchema = z116.pipe(
53066
54367
  });
53067
54368
  })
53068
54369
  );
53069
- var UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema = z116.pipe(
54370
+ var UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema = z116.pipe(
53070
54371
  z116.object({
53071
54372
  default_markup: optional3(number2()),
53072
54373
  provider_markups: z116.optional(z116.nullable(z116.record(
@@ -53090,7 +54391,7 @@ var UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema = z116.pipe(
53090
54391
  });
53091
54392
  })
53092
54393
  );
53093
- var UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
54394
+ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z116.pipe(
53094
54395
  z116.object({
53095
54396
  credit_schema: optional3(z116.array(smartUnion([
53096
54397
  z116.lazy(
@@ -53101,7 +54402,7 @@ var UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
53101
54402
  )
53102
54403
  ]))),
53103
54404
  markups: optional3(z116.lazy(
53104
- () => UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema
54405
+ () => UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema
53105
54406
  ))
53106
54407
  }),
53107
54408
  z116.transform((v) => {
@@ -53114,7 +54415,7 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
53114
54415
  z116.object({
53115
54416
  threshold_billing: z116.optional(
53116
54417
  z116.nullable(
53117
- UpdatePlanUpsertLicenseThresholdBillingResponse$inboundSchema
54418
+ UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema
53118
54419
  )
53119
54420
  ),
53120
54421
  feature_id: string5(),
@@ -53136,11 +54437,9 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
53136
54437
  expiry: optional3(
53137
54438
  UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
53138
54439
  ),
53139
- feature_override: optional3(
53140
- z116.lazy(
53141
- () => UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema
53142
- )
53143
- )
54440
+ feature_override: optional3(z116.lazy(
54441
+ () => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
54442
+ ))
53144
54443
  }),
53145
54444
  z116.transform((v) => {
53146
54445
  return remap(v, {
@@ -53150,8 +54449,8 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
53150
54449
  });
53151
54450
  })
53152
54451
  );
53153
- var UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(
53154
- UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse
54452
+ var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(
54453
+ UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod
53155
54454
  );
53156
54455
  var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2$inboundSchema = inboundSchema(
53157
54456
  UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2
@@ -53167,7 +54466,7 @@ var UpdatePlanUpsertLicensePlanItemFilterResponse$inboundSchema = z116.pipe(
53167
54466
  z116.object({
53168
54467
  feature_id: optional3(string5()),
53169
54468
  billing_method: optional3(
53170
- UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse$inboundSchema
54469
+ UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema
53171
54470
  ),
53172
54471
  interval: optional3(
53173
54472
  smartUnion([
@@ -53234,14 +54533,16 @@ var UpdatePlanRemoveLicenseResponse$inboundSchema = z116.pipe(
53234
54533
  });
53235
54534
  })
53236
54535
  );
53237
- var UpdatePlanCustomizeResponse$inboundSchema = z116.pipe(
54536
+ var UpdatePlanVariantDetailsCustomize$inboundSchema = z116.pipe(
53238
54537
  z116.object({
53239
- price: z116.optional(z116.nullable(UpdatePlanBasePriceResponse$inboundSchema)),
54538
+ price: z116.optional(
54539
+ z116.nullable(UpdatePlanVariantDetailsBasePrice$inboundSchema)
54540
+ ),
53240
54541
  add_items: optional3(
53241
- z116.array(UpdatePlanPlanItemResponse$inboundSchema)
54542
+ z116.array(UpdatePlanVariantDetailsPlanItem$inboundSchema)
53242
54543
  ),
53243
54544
  remove_items: optional3(
53244
- z116.array(UpdatePlanPlanItemFilterResponse$inboundSchema)
54545
+ z116.array(UpdatePlanVariantDetailsPlanItemFilter$inboundSchema)
53245
54546
  ),
53246
54547
  free_trial: z116.optional(
53247
54548
  z116.nullable(UpdatePlanFreeTrialParamsResponse$inboundSchema)
@@ -53271,7 +54572,7 @@ var UpdatePlanVariantDetails$inboundSchema = z116.pipe(
53271
54572
  z116.object({
53272
54573
  base_plan_id: string5(),
53273
54574
  customize: optional3(
53274
- z116.lazy(() => UpdatePlanCustomizeResponse$inboundSchema)
54575
+ z116.lazy(() => UpdatePlanVariantDetailsCustomize$inboundSchema)
53275
54576
  )
53276
54577
  }),
53277
54578
  z116.transform((v) => {
@@ -53280,6 +54581,493 @@ var UpdatePlanVariantDetails$inboundSchema = z116.pipe(
53280
54581
  });
53281
54582
  })
53282
54583
  );
54584
+ var UpdatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceLicenseIntervalResponse);
54585
+ var UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z116.object({
54586
+ currency: string5(),
54587
+ amount: number2()
54588
+ });
54589
+ var UpdatePlanLicenseBasePriceResponse$inboundSchema = z116.pipe(
54590
+ z116.object({
54591
+ amount: number2(),
54592
+ interval: UpdatePlanPriceLicenseIntervalResponse$inboundSchema,
54593
+ interval_count: z116._default(number2(), 1),
54594
+ additional_currencies: optional3(z116.array(z116.lazy(
54595
+ () => UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema
54596
+ )))
54597
+ }),
54598
+ z116.transform((v) => {
54599
+ return remap(v, {
54600
+ "interval_count": "intervalCount",
54601
+ "additional_currencies": "additionalCurrencies"
54602
+ });
54603
+ })
54604
+ );
54605
+ var UpdatePlanLicenseThresholdBillingResponse$inboundSchema = z116.object({
54606
+ threshold: number2()
54607
+ });
54608
+ var UpdatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseResetIntervalResponse);
54609
+ var UpdatePlanLicenseResetResponse$inboundSchema = z116.pipe(
54610
+ z116.object({
54611
+ interval: UpdatePlanLicenseResetIntervalResponse$inboundSchema,
54612
+ interval_count: z116._default(number2(), 1)
54613
+ }),
54614
+ z116.transform((v) => {
54615
+ return remap(v, {
54616
+ "interval_count": "intervalCount"
54617
+ });
54618
+ })
54619
+ );
54620
+ var UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z116.object({
54621
+ currency: string5(),
54622
+ amount: number2()
54623
+ });
54624
+ var UpdatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
54625
+ var UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z116.pipe(
54626
+ z116.object({
54627
+ currency: string5(),
54628
+ amount: optional3(number2()),
54629
+ flat_amount: optional3(number2())
54630
+ }),
54631
+ z116.transform((v) => {
54632
+ return remap(v, {
54633
+ "flat_amount": "flatAmount"
54634
+ });
54635
+ })
54636
+ );
54637
+ var UpdatePlanLicensePriceTierResponse$inboundSchema = z116.pipe(
54638
+ z116.object({
54639
+ to: smartUnion([number2(), string5()]),
54640
+ amount: number2(),
54641
+ flat_amount: optional3(number2()),
54642
+ additional_currencies: optional3(z116.array(z116.lazy(
54643
+ () => UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
54644
+ )))
54645
+ }),
54646
+ z116.transform((v) => {
54647
+ return remap(v, {
54648
+ "flat_amount": "flatAmount",
54649
+ "additional_currencies": "additionalCurrencies"
54650
+ });
54651
+ })
54652
+ );
54653
+ var UpdatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanLicenseTierBehaviorResponse);
54654
+ var UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemPriceIntervalResponse);
54655
+ var UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemBillingMethodResponse);
54656
+ var UpdatePlanLicensePriceResponse$inboundSchema = z116.pipe(
54657
+ z116.object({
54658
+ amount: optional3(number2()),
54659
+ additional_currencies: optional3(z116.array(z116.lazy(
54660
+ () => UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
54661
+ ))),
54662
+ tiers: optional3(z116.array(z116.lazy(
54663
+ () => UpdatePlanLicensePriceTierResponse$inboundSchema
54664
+ ))),
54665
+ tier_behavior: optional3(
54666
+ UpdatePlanLicenseTierBehaviorResponse$inboundSchema
54667
+ ),
54668
+ interval: UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
54669
+ interval_count: z116._default(number2(), 1),
54670
+ billing_units: z116._default(number2(), 1),
54671
+ billing_method: UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
54672
+ max_purchase: z116.optional(z116.nullable(number2()))
54673
+ }),
54674
+ z116.transform((v) => {
54675
+ return remap(v, {
54676
+ "additional_currencies": "additionalCurrencies",
54677
+ "tier_behavior": "tierBehavior",
54678
+ "interval_count": "intervalCount",
54679
+ "billing_units": "billingUnits",
54680
+ "billing_method": "billingMethod",
54681
+ "max_purchase": "maxPurchase"
54682
+ });
54683
+ })
54684
+ );
54685
+ var UpdatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnIncreaseResponse);
54686
+ var UpdatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnDecreaseResponse);
54687
+ var UpdatePlanLicenseProrationResponse$inboundSchema = z116.pipe(
54688
+ z116.object({
54689
+ on_increase: UpdatePlanLicenseOnIncreaseResponse$inboundSchema,
54690
+ on_decrease: UpdatePlanLicenseOnDecreaseResponse$inboundSchema
54691
+ }),
54692
+ z116.transform((v) => {
54693
+ return remap(v, {
54694
+ "on_increase": "onIncrease",
54695
+ "on_decrease": "onDecrease"
54696
+ });
54697
+ })
54698
+ );
54699
+ var UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanLicenseExpiryDurationTypeResponse);
54700
+ var UpdatePlanLicenseRolloverResponse$inboundSchema = z116.pipe(
54701
+ z116.object({
54702
+ max: optional3(number2()),
54703
+ max_percentage: optional3(number2()),
54704
+ expiry_duration_type: UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
54705
+ expiry_duration_length: optional3(number2())
54706
+ }),
54707
+ z116.transform((v) => {
54708
+ return remap(v, {
54709
+ "max_percentage": "maxPercentage",
54710
+ "expiry_duration_type": "expiryDurationType",
54711
+ "expiry_duration_length": "expiryDurationLength"
54712
+ });
54713
+ })
54714
+ );
54715
+ var UpdatePlanLicenseDurationResponse$inboundSchema = inboundSchema(UpdatePlanLicenseDurationResponse);
54716
+ var UpdatePlanLicenseExpiryResponse$inboundSchema = z116.object({
54717
+ duration: UpdatePlanLicenseDurationResponse$inboundSchema,
54718
+ length: number2()
54719
+ });
54720
+ var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z116.pipe(
54721
+ z116.object({
54722
+ match: z116.record(z116.string(), string5()),
54723
+ priority: optional3(number2()),
54724
+ credit_cost: number2()
54725
+ }),
54726
+ z116.transform((v) => {
54727
+ return remap(v, {
54728
+ "credit_cost": "creditCost"
54729
+ });
54730
+ })
54731
+ );
54732
+ var UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z116.enum(
54733
+ UpdatePlanDimensionsToLicenseResponseEnum2
54734
+ );
54735
+ var UpdatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
54736
+ number2(),
54737
+ UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
54738
+ ]);
54739
+ var UpdatePlanDimensionsLicenseTierResponse2$inboundSchema = z116.pipe(
54740
+ z116.object({
54741
+ to: smartUnion([
54742
+ number2(),
54743
+ UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
54744
+ ]),
54745
+ credit_cost: number2()
54746
+ }),
54747
+ z116.transform((v) => {
54748
+ return remap(v, {
54749
+ "credit_cost": "creditCost"
54750
+ });
54751
+ })
54752
+ );
54753
+ var UpdatePlanDimensionsLicenseResponse3$inboundSchema = z116.pipe(
54754
+ z116.object({
54755
+ match: z116.record(z116.string(), string5()),
54756
+ priority: optional3(number2()),
54757
+ tier_behavior: literal3("graduated"),
54758
+ tiers: z116.array(
54759
+ z116.lazy(() => UpdatePlanDimensionsLicenseTierResponse2$inboundSchema)
54760
+ )
54761
+ }),
54762
+ z116.transform((v) => {
54763
+ return remap(v, {
54764
+ "tier_behavior": "tierBehavior"
54765
+ });
54766
+ })
54767
+ );
54768
+ var UpdatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
54769
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
54770
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
54771
+ ]);
54772
+ var UpdatePlanLicenseMultipliersResponse2$inboundSchema = z116.object({
54773
+ match: z116.record(z116.string(), string5()),
54774
+ factor: optional3(number2()),
54775
+ add: optional3(number2())
54776
+ });
54777
+ var UpdatePlanCreditSchemaLicenseResponse2$inboundSchema = z116.pipe(
54778
+ z116.object({
54779
+ metered_feature_id: string5(),
54780
+ billing_units: optional3(number2()),
54781
+ dimensions: optional3(z116.record(
54782
+ z116.string(),
54783
+ smartUnion([
54784
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
54785
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
54786
+ ])
54787
+ )),
54788
+ multipliers: optional3(z116.record(
54789
+ z116.string(),
54790
+ z116.lazy(() => UpdatePlanLicenseMultipliersResponse2$inboundSchema)
54791
+ )),
54792
+ credit_cost: number2()
54793
+ }),
54794
+ z116.transform((v) => {
54795
+ return remap(v, {
54796
+ "metered_feature_id": "meteredFeatureId",
54797
+ "billing_units": "billingUnits",
54798
+ "credit_cost": "creditCost"
54799
+ });
54800
+ })
54801
+ );
54802
+ var UpdatePlanDimensionsLicenseResponse2$inboundSchema = z116.pipe(
54803
+ z116.object({
54804
+ match: z116.record(z116.string(), string5()),
54805
+ priority: optional3(number2()),
54806
+ credit_cost: number2()
54807
+ }),
54808
+ z116.transform((v) => {
54809
+ return remap(v, {
54810
+ "credit_cost": "creditCost"
54811
+ });
54812
+ })
54813
+ );
54814
+ var UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z116.enum(
54815
+ UpdatePlanDimensionsToLicenseResponseEnum1
54816
+ );
54817
+ var UpdatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
54818
+ number2(),
54819
+ UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
54820
+ ]);
54821
+ var UpdatePlanDimensionsLicenseTierResponse1$inboundSchema = z116.pipe(
54822
+ z116.object({
54823
+ to: smartUnion([
54824
+ number2(),
54825
+ UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
54826
+ ]),
54827
+ credit_cost: number2()
54828
+ }),
54829
+ z116.transform((v) => {
54830
+ return remap(v, {
54831
+ "credit_cost": "creditCost"
54832
+ });
54833
+ })
54834
+ );
54835
+ var UpdatePlanDimensionsLicenseResponse1$inboundSchema = z116.pipe(
54836
+ z116.object({
54837
+ match: z116.record(z116.string(), string5()),
54838
+ priority: optional3(number2()),
54839
+ tier_behavior: literal3("graduated"),
54840
+ tiers: z116.array(
54841
+ z116.lazy(() => UpdatePlanDimensionsLicenseTierResponse1$inboundSchema)
54842
+ )
54843
+ }),
54844
+ z116.transform((v) => {
54845
+ return remap(v, {
54846
+ "tier_behavior": "tierBehavior"
54847
+ });
54848
+ })
54849
+ );
54850
+ var UpdatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
54851
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
54852
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
54853
+ ]);
54854
+ var UpdatePlanLicenseMultipliersResponse1$inboundSchema = z116.object({
54855
+ match: z116.record(z116.string(), string5()),
54856
+ factor: optional3(number2()),
54857
+ add: optional3(number2())
54858
+ });
54859
+ var UpdatePlanToLicenseResponseEnum$inboundSchema = z116.enum(UpdatePlanToLicenseResponseEnum);
54860
+ var UpdatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), UpdatePlanToLicenseResponseEnum$inboundSchema]);
54861
+ var UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z116.pipe(
54862
+ z116.object({
54863
+ to: smartUnion([
54864
+ number2(),
54865
+ UpdatePlanToLicenseResponseEnum$inboundSchema
54866
+ ]),
54867
+ credit_cost: number2()
54868
+ }),
54869
+ z116.transform((v) => {
54870
+ return remap(v, {
54871
+ "credit_cost": "creditCost"
54872
+ });
54873
+ })
54874
+ );
54875
+ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z116.pipe(
54876
+ z116.object({
54877
+ metered_feature_id: string5(),
54878
+ billing_units: optional3(number2()),
54879
+ dimensions: optional3(z116.record(
54880
+ z116.string(),
54881
+ smartUnion([
54882
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
54883
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
54884
+ ])
54885
+ )),
54886
+ multipliers: optional3(z116.record(
54887
+ z116.string(),
54888
+ z116.lazy(() => UpdatePlanLicenseMultipliersResponse1$inboundSchema)
54889
+ )),
54890
+ tier_behavior: literal3("graduated"),
54891
+ tiers: z116.array(z116.lazy(
54892
+ () => UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema
54893
+ ))
54894
+ }),
54895
+ z116.transform((v) => {
54896
+ return remap(v, {
54897
+ "metered_feature_id": "meteredFeatureId",
54898
+ "billing_units": "billingUnits",
54899
+ "tier_behavior": "tierBehavior"
54900
+ });
54901
+ })
54902
+ );
54903
+ var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
54904
+ z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
54905
+ z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
54906
+ ]);
54907
+ var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z116.object({
54908
+ markup: number2()
54909
+ });
54910
+ var UpdatePlanLicenseModelMarkupsResponse$inboundSchema = z116.pipe(
54911
+ z116.object({
54912
+ markup: optional3(number2()),
54913
+ input_cost: optional3(number2()),
54914
+ output_cost: optional3(number2())
54915
+ }),
54916
+ z116.transform((v) => {
54917
+ return remap(v, {
54918
+ "input_cost": "inputCost",
54919
+ "output_cost": "outputCost"
54920
+ });
54921
+ })
54922
+ );
54923
+ var UpdatePlanLicenseMarkupsResponse$inboundSchema = z116.pipe(
54924
+ z116.object({
54925
+ default_markup: optional3(number2()),
54926
+ provider_markups: z116.optional(z116.nullable(z116.record(
54927
+ z116.string(),
54928
+ z116.lazy(() => UpdatePlanLicenseProviderMarkupsResponse$inboundSchema)
54929
+ ))),
54930
+ model_markups: z116.optional(z116.nullable(z116.record(
54931
+ z116.string(),
54932
+ z116.lazy(() => UpdatePlanLicenseModelMarkupsResponse$inboundSchema)
54933
+ )))
54934
+ }),
54935
+ z116.transform((v) => {
54936
+ return remap(v, {
54937
+ "default_markup": "defaultMarkup",
54938
+ "provider_markups": "providerMarkups",
54939
+ "model_markups": "modelMarkups"
54940
+ });
54941
+ })
54942
+ );
54943
+ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
54944
+ z116.object({
54945
+ credit_schema: optional3(z116.array(smartUnion([
54946
+ z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
54947
+ z116.lazy(
54948
+ () => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
54949
+ )
54950
+ ]))),
54951
+ markups: optional3(z116.lazy(
54952
+ () => UpdatePlanLicenseMarkupsResponse$inboundSchema
54953
+ ))
54954
+ }),
54955
+ z116.transform((v) => {
54956
+ return remap(v, {
54957
+ "credit_schema": "creditSchema"
54958
+ });
54959
+ })
54960
+ );
54961
+ var UpdatePlanLicensePlanItemResponse$inboundSchema = z116.pipe(
54962
+ z116.object({
54963
+ threshold_billing: z116.optional(z116.nullable(z116.lazy(
54964
+ () => UpdatePlanLicenseThresholdBillingResponse$inboundSchema
54965
+ ))),
54966
+ feature_id: string5(),
54967
+ included: optional3(number2()),
54968
+ unlimited: optional3(boolean2()),
54969
+ pooled: z116._default(boolean2(), false),
54970
+ reset: optional3(z116.lazy(
54971
+ () => UpdatePlanLicenseResetResponse$inboundSchema
54972
+ )),
54973
+ price: optional3(z116.lazy(
54974
+ () => UpdatePlanLicensePriceResponse$inboundSchema
54975
+ )),
54976
+ proration: optional3(z116.lazy(
54977
+ () => UpdatePlanLicenseProrationResponse$inboundSchema
54978
+ )),
54979
+ rollover: optional3(z116.lazy(
54980
+ () => UpdatePlanLicenseRolloverResponse$inboundSchema
54981
+ )),
54982
+ expiry: optional3(z116.lazy(
54983
+ () => UpdatePlanLicenseExpiryResponse$inboundSchema
54984
+ )),
54985
+ feature_override: optional3(z116.lazy(
54986
+ () => UpdatePlanLicenseFeatureOverrideResponse$inboundSchema
54987
+ ))
54988
+ }),
54989
+ z116.transform((v) => {
54990
+ return remap(v, {
54991
+ "threshold_billing": "thresholdBilling",
54992
+ "feature_id": "featureId",
54993
+ "feature_override": "featureOverride"
54994
+ });
54995
+ })
54996
+ );
54997
+ var UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseRemoveItemBillingMethodResponse);
54998
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum2);
54999
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum1);
55000
+ var UpdatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
55001
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
55002
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
55003
+ ]);
55004
+ var UpdatePlanLicensePlanItemFilterResponse$inboundSchema = z116.pipe(
55005
+ z116.object({
55006
+ feature_id: optional3(string5()),
55007
+ billing_method: optional3(
55008
+ UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
55009
+ ),
55010
+ interval: optional3(
55011
+ smartUnion([
55012
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
55013
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
55014
+ ])
55015
+ ),
55016
+ interval_count: optional3(number2()),
55017
+ included: optional3(number2())
55018
+ }),
55019
+ z116.transform((v) => {
55020
+ return remap(v, {
55021
+ "feature_id": "featureId",
55022
+ "billing_method": "billingMethod",
55023
+ "interval_count": "intervalCount"
55024
+ });
55025
+ })
55026
+ );
55027
+ var UpdatePlanLicenseCustomizeResponse$inboundSchema = z116.pipe(
55028
+ z116.object({
55029
+ price: z116.optional(
55030
+ z116.nullable(
55031
+ z116.lazy(() => UpdatePlanLicenseBasePriceResponse$inboundSchema)
55032
+ )
55033
+ ),
55034
+ add_items: optional3(
55035
+ z116.array(z116.lazy(() => UpdatePlanLicensePlanItemResponse$inboundSchema))
55036
+ ),
55037
+ remove_items: optional3(
55038
+ z116.array(
55039
+ z116.lazy(() => UpdatePlanLicensePlanItemFilterResponse$inboundSchema)
55040
+ )
55041
+ )
55042
+ }),
55043
+ z116.transform((v) => {
55044
+ return remap(v, {
55045
+ "add_items": "addItems",
55046
+ "remove_items": "removeItems"
55047
+ });
55048
+ })
55049
+ );
55050
+ var UpdatePlanLicenseResponse$inboundSchema = z116.pipe(
55051
+ z116.object({
55052
+ license_plan_id: string5(),
55053
+ version: number2(),
55054
+ version_slug: optional3(string5()),
55055
+ included: number2(),
55056
+ prepaid_only: boolean2(),
55057
+ customize: optional3(
55058
+ z116.lazy(() => UpdatePlanLicenseCustomizeResponse$inboundSchema)
55059
+ ),
55060
+ metadata: optional3(z116.record(z116.string(), z116.any())),
55061
+ plan: optional3(Plan$inboundSchema)
55062
+ }),
55063
+ z116.transform((v) => {
55064
+ return remap(v, {
55065
+ "license_plan_id": "licensePlanId",
55066
+ "version_slug": "versionSlug",
55067
+ "prepaid_only": "prepaidOnly"
55068
+ });
55069
+ })
55070
+ );
53283
55071
  var UpdatePlanResponse$inboundSchema = z116.pipe(
53284
55072
  z116.object({
53285
55073
  id: string5(),
@@ -53309,6 +55097,9 @@ var UpdatePlanResponse$inboundSchema = z116.pipe(
53309
55097
  base_variant_id: nullable(string5()),
53310
55098
  variant_details: optional3(
53311
55099
  z116.lazy(() => UpdatePlanVariantDetails$inboundSchema)
55100
+ ),
55101
+ licenses: optional3(
55102
+ z116.array(z116.lazy(() => UpdatePlanLicenseResponse$inboundSchema))
53312
55103
  )
53313
55104
  }),
53314
55105
  z116.transform((v) => {
@@ -54463,7 +56254,10 @@ var APIPromise = class {
54463
56254
  [Symbol.toStringTag] = "APIPromise";
54464
56255
  constructor(p) {
54465
56256
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
54466
- this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
56257
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
56258
+ }
56259
+ #getUnwrapped() {
56260
+ return this.#unwrapped ??= this.#promise.then(([value]) => value);
54467
56261
  }
54468
56262
  then(onfulfilled, onrejected) {
54469
56263
  return this.#promise.then(
@@ -54472,10 +56266,10 @@ var APIPromise = class {
54472
56266
  );
54473
56267
  }
54474
56268
  catch(onrejected) {
54475
- return this.#unwrapped.catch(onrejected);
56269
+ return this.#getUnwrapped().catch(onrejected);
54476
56270
  }
54477
56271
  finally(onfinally) {
54478
- return this.#unwrapped.finally(onfinally);
56272
+ return this.#getUnwrapped().finally(onfinally);
54479
56273
  }
54480
56274
  $inspect() {
54481
56275
  return this.#promise;