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
@@ -60,8 +60,8 @@ var SDK_METADATA = {
60
60
  language: "typescript",
61
61
  openapiDocVersion: "2.4.0",
62
62
  sdkVersion: "0.10.18",
63
- genVersion: "2.882.0",
64
- userAgent: "speakeasy-sdk/typescript 0.10.18 2.882.0 2.4.0 @useautumn/sdk"
63
+ genVersion: "2.884.13",
64
+ userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.4.0 @useautumn/sdk"
65
65
  };
66
66
 
67
67
  // ../sdk/src/lib/http.ts
@@ -12555,7 +12555,7 @@ var CreatePlanDimensionsToItemRequestBodyEnum1 = {
12555
12555
  var CreatePlanToItemRequestBodyEnum = {
12556
12556
  Inf: "inf"
12557
12557
  };
12558
- var CreatePlanPriceLicenseInterval = {
12558
+ var CreatePlanPriceLicenseIntervalRequestBody = {
12559
12559
  OneOff: "one_off",
12560
12560
  Week: "week",
12561
12561
  Month: "month",
@@ -12563,7 +12563,7 @@ var CreatePlanPriceLicenseInterval = {
12563
12563
  SemiAnnual: "semi_annual",
12564
12564
  Year: "year"
12565
12565
  };
12566
- var CreatePlanLicenseResetInterval = {
12566
+ var CreatePlanLicenseResetIntervalRequestBody = {
12567
12567
  OneOff: "one_off",
12568
12568
  Minute: "minute",
12569
12569
  Hour: "hour",
@@ -12574,11 +12574,11 @@ var CreatePlanLicenseResetInterval = {
12574
12574
  SemiAnnual: "semi_annual",
12575
12575
  Year: "year"
12576
12576
  };
12577
- var CreatePlanLicenseTierBehavior = {
12577
+ var CreatePlanLicenseTierBehaviorRequestBody = {
12578
12578
  Graduated: "graduated",
12579
12579
  Volume: "volume"
12580
12580
  };
12581
- var CreatePlanLicenseAddItemPriceInterval = {
12581
+ var CreatePlanAddItemPriceIntervalRequestBody = {
12582
12582
  OneOff: "one_off",
12583
12583
  Week: "week",
12584
12584
  Month: "month",
@@ -12586,47 +12586,47 @@ var CreatePlanLicenseAddItemPriceInterval = {
12586
12586
  SemiAnnual: "semi_annual",
12587
12587
  Year: "year"
12588
12588
  };
12589
- var CreatePlanLicenseAddItemBillingMethod = {
12589
+ var CreatePlanAddItemBillingMethodRequestBody = {
12590
12590
  Prepaid: "prepaid",
12591
12591
  UsageBased: "usage_based"
12592
12592
  };
12593
- var CreatePlanLicenseOnIncrease = {
12593
+ var CreatePlanLicenseOnIncreaseRequestBody = {
12594
12594
  BillImmediately: "bill_immediately",
12595
12595
  ProrateImmediately: "prorate_immediately",
12596
12596
  ProrateNextCycle: "prorate_next_cycle",
12597
12597
  BillNextCycle: "bill_next_cycle"
12598
12598
  };
12599
- var CreatePlanLicenseOnDecrease = {
12599
+ var CreatePlanLicenseOnDecreaseRequestBody = {
12600
12600
  Prorate: "prorate",
12601
12601
  ProrateImmediately: "prorate_immediately",
12602
12602
  ProrateNextCycle: "prorate_next_cycle",
12603
12603
  None: "none",
12604
12604
  NoProrations: "no_prorations"
12605
12605
  };
12606
- var CreatePlanLicenseExpiryDurationType = {
12606
+ var CreatePlanLicenseExpiryDurationTypeRequestBody = {
12607
12607
  Month: "month",
12608
12608
  Forever: "forever"
12609
12609
  };
12610
- var CreatePlanLicenseDuration = {
12610
+ var CreatePlanLicenseDurationRequestBody = {
12611
12611
  Day: "day",
12612
12612
  Week: "week",
12613
12613
  Month: "month",
12614
12614
  Year: "year"
12615
12615
  };
12616
- var CreatePlanDimensionsToLicenseEnum2 = {
12616
+ var CreatePlanDimensionsToLicenseRequestBodyEnum2 = {
12617
12617
  Inf: "inf"
12618
12618
  };
12619
- var CreatePlanDimensionsToLicenseEnum1 = {
12619
+ var CreatePlanDimensionsToLicenseRequestBodyEnum1 = {
12620
12620
  Inf: "inf"
12621
12621
  };
12622
- var CreatePlanToLicenseEnum = {
12622
+ var CreatePlanToLicenseRequestBodyEnum = {
12623
12623
  Inf: "inf"
12624
12624
  };
12625
- var CreatePlanLicenseRemoveItemBillingMethod = {
12625
+ var CreatePlanRemoveItemBillingMethodRequestBody = {
12626
12626
  Prepaid: "prepaid",
12627
12627
  UsageBased: "usage_based"
12628
12628
  };
12629
- var CreatePlanIntervalLicenseRemoveItemEnum2 = {
12629
+ var CreatePlanIntervalRemoveItemRequestBodyEnum2 = {
12630
12630
  OneOff: "one_off",
12631
12631
  Minute: "minute",
12632
12632
  Hour: "hour",
@@ -12637,7 +12637,7 @@ var CreatePlanIntervalLicenseRemoveItemEnum2 = {
12637
12637
  SemiAnnual: "semi_annual",
12638
12638
  Year: "year"
12639
12639
  };
12640
- var CreatePlanIntervalLicenseRemoveItemEnum1 = {
12640
+ var CreatePlanIntervalRemoveItemRequestBodyEnum1 = {
12641
12641
  OneOff: "one_off",
12642
12642
  Week: "week",
12643
12643
  Month: "month",
@@ -13160,19 +13160,21 @@ var CreatePlanItemPlanItem$outboundSchema = z27.pipe(
13160
13160
  });
13161
13161
  })
13162
13162
  );
13163
- var CreatePlanPriceLicenseInterval$outboundSchema = z27.enum(CreatePlanPriceLicenseInterval);
13164
- var CreatePlanLicenseAdditionalCurrency$outboundSchema = z27.object({
13163
+ var CreatePlanPriceLicenseIntervalRequestBody$outboundSchema = z27.enum(
13164
+ CreatePlanPriceLicenseIntervalRequestBody
13165
+ );
13166
+ var CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z27.object({
13165
13167
  currency: z27.string(),
13166
13168
  amount: z27.number()
13167
13169
  });
13168
- var CreatePlanLicenseBasePrice$outboundSchema = z27.pipe(
13170
+ var CreatePlanBasePriceRequestBody$outboundSchema = z27.pipe(
13169
13171
  z27.object({
13170
13172
  amount: z27.number(),
13171
- interval: CreatePlanPriceLicenseInterval$outboundSchema,
13173
+ interval: CreatePlanPriceLicenseIntervalRequestBody$outboundSchema,
13172
13174
  intervalCount: z27._default(z27.number(), 1),
13173
- additionalCurrencies: z27.optional(
13174
- z27.array(z27.lazy(() => CreatePlanLicenseAdditionalCurrency$outboundSchema))
13175
- )
13175
+ additionalCurrencies: z27.optional(z27.array(z27.lazy(
13176
+ () => CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
13177
+ )))
13176
13178
  }),
13177
13179
  z27.transform((v) => {
13178
13180
  return remap(v, {
@@ -13181,13 +13183,15 @@ var CreatePlanLicenseBasePrice$outboundSchema = z27.pipe(
13181
13183
  });
13182
13184
  })
13183
13185
  );
13184
- var CreatePlanLicenseThresholdBilling$outboundSchema = z27.object({
13186
+ var CreatePlanLicenseThresholdBillingRequestBody$outboundSchema = z27.object({
13185
13187
  threshold: z27.number()
13186
13188
  });
13187
- var CreatePlanLicenseResetInterval$outboundSchema = z27.enum(CreatePlanLicenseResetInterval);
13188
- var CreatePlanLicenseReset$outboundSchema = z27.pipe(
13189
+ var CreatePlanLicenseResetIntervalRequestBody$outboundSchema = z27.enum(
13190
+ CreatePlanLicenseResetIntervalRequestBody
13191
+ );
13192
+ var CreatePlanLicenseResetRequestBody$outboundSchema = z27.pipe(
13189
13193
  z27.object({
13190
- interval: CreatePlanLicenseResetInterval$outboundSchema,
13194
+ interval: CreatePlanLicenseResetIntervalRequestBody$outboundSchema,
13191
13195
  intervalCount: z27._default(z27.number(), 1)
13192
13196
  }),
13193
13197
  z27.transform((v) => {
@@ -13196,12 +13200,12 @@ var CreatePlanLicenseReset$outboundSchema = z27.pipe(
13196
13200
  });
13197
13201
  })
13198
13202
  );
13199
- var CreatePlanLicenseAddItemAdditionalCurrency$outboundSchema = z27.object({
13203
+ var CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema = z27.object({
13200
13204
  currency: z27.string(),
13201
13205
  amount: z27.number()
13202
13206
  });
13203
- var CreatePlanLicensePriceTo$outboundSchema = smartUnion([z27.number(), z27.string()]);
13204
- var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z27.pipe(
13207
+ var CreatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z27.number(), z27.string()]);
13208
+ var CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z27.pipe(
13205
13209
  z27.object({
13206
13210
  currency: z27.string(),
13207
13211
  amount: z27.optional(z27.number()),
@@ -13213,13 +13217,13 @@ var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z27.pipe(
13213
13217
  });
13214
13218
  })
13215
13219
  );
13216
- var CreatePlanLicensePriceTier$outboundSchema = z27.pipe(
13220
+ var CreatePlanLicensePriceTierRequestBody$outboundSchema = z27.pipe(
13217
13221
  z27.object({
13218
13222
  to: smartUnion([z27.number(), z27.string()]),
13219
13223
  amount: z27.optional(z27.number()),
13220
13224
  flatAmount: z27.optional(z27.number()),
13221
13225
  additionalCurrencies: z27.optional(z27.array(z27.lazy(
13222
- () => CreatePlanLicenseTierAdditionalCurrency$outboundSchema
13226
+ () => CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
13223
13227
  )))
13224
13228
  }),
13225
13229
  z27.transform((v) => {
@@ -13229,27 +13233,31 @@ var CreatePlanLicensePriceTier$outboundSchema = z27.pipe(
13229
13233
  });
13230
13234
  })
13231
13235
  );
13232
- var CreatePlanLicenseTierBehavior$outboundSchema = z27.enum(CreatePlanLicenseTierBehavior);
13233
- var CreatePlanLicenseAddItemPriceInterval$outboundSchema = z27.enum(
13234
- CreatePlanLicenseAddItemPriceInterval
13236
+ var CreatePlanLicenseTierBehaviorRequestBody$outboundSchema = z27.enum(
13237
+ CreatePlanLicenseTierBehaviorRequestBody
13238
+ );
13239
+ var CreatePlanAddItemPriceIntervalRequestBody$outboundSchema = z27.enum(
13240
+ CreatePlanAddItemPriceIntervalRequestBody
13235
13241
  );
13236
- var CreatePlanLicenseAddItemBillingMethod$outboundSchema = z27.enum(
13237
- CreatePlanLicenseAddItemBillingMethod
13242
+ var CreatePlanAddItemBillingMethodRequestBody$outboundSchema = z27.enum(
13243
+ CreatePlanAddItemBillingMethodRequestBody
13238
13244
  );
13239
- var CreatePlanLicensePrice$outboundSchema = z27.pipe(
13245
+ var CreatePlanLicensePriceRequestBody$outboundSchema = z27.pipe(
13240
13246
  z27.object({
13241
13247
  amount: z27.optional(z27.number()),
13242
13248
  additionalCurrencies: z27.optional(z27.array(z27.lazy(
13243
- () => CreatePlanLicenseAddItemAdditionalCurrency$outboundSchema
13249
+ () => CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema
13244
13250
  ))),
13245
13251
  tiers: z27.optional(z27.array(z27.lazy(
13246
- () => CreatePlanLicensePriceTier$outboundSchema
13252
+ () => CreatePlanLicensePriceTierRequestBody$outboundSchema
13247
13253
  ))),
13248
- tierBehavior: z27.optional(CreatePlanLicenseTierBehavior$outboundSchema),
13249
- interval: CreatePlanLicenseAddItemPriceInterval$outboundSchema,
13254
+ tierBehavior: z27.optional(
13255
+ CreatePlanLicenseTierBehaviorRequestBody$outboundSchema
13256
+ ),
13257
+ interval: CreatePlanAddItemPriceIntervalRequestBody$outboundSchema,
13250
13258
  intervalCount: z27._default(z27.number(), 1),
13251
13259
  billingUnits: z27._default(z27.number(), 1),
13252
- billingMethod: CreatePlanLicenseAddItemBillingMethod$outboundSchema,
13260
+ billingMethod: CreatePlanAddItemBillingMethodRequestBody$outboundSchema,
13253
13261
  maxPurchase: z27.optional(z27.nullable(z27.number()))
13254
13262
  }),
13255
13263
  z27.transform((v) => {
@@ -13263,12 +13271,16 @@ var CreatePlanLicensePrice$outboundSchema = z27.pipe(
13263
13271
  });
13264
13272
  })
13265
13273
  );
13266
- var CreatePlanLicenseOnIncrease$outboundSchema = z27.enum(CreatePlanLicenseOnIncrease);
13267
- var CreatePlanLicenseOnDecrease$outboundSchema = z27.enum(CreatePlanLicenseOnDecrease);
13268
- var CreatePlanLicenseProration$outboundSchema = z27.pipe(
13274
+ var CreatePlanLicenseOnIncreaseRequestBody$outboundSchema = z27.enum(
13275
+ CreatePlanLicenseOnIncreaseRequestBody
13276
+ );
13277
+ var CreatePlanLicenseOnDecreaseRequestBody$outboundSchema = z27.enum(
13278
+ CreatePlanLicenseOnDecreaseRequestBody
13279
+ );
13280
+ var CreatePlanLicenseProrationRequestBody$outboundSchema = z27.pipe(
13269
13281
  z27.object({
13270
- onIncrease: CreatePlanLicenseOnIncrease$outboundSchema,
13271
- onDecrease: CreatePlanLicenseOnDecrease$outboundSchema
13282
+ onIncrease: CreatePlanLicenseOnIncreaseRequestBody$outboundSchema,
13283
+ onDecrease: CreatePlanLicenseOnDecreaseRequestBody$outboundSchema
13272
13284
  }),
13273
13285
  z27.transform((v) => {
13274
13286
  return remap(v, {
@@ -13277,12 +13289,14 @@ var CreatePlanLicenseProration$outboundSchema = z27.pipe(
13277
13289
  });
13278
13290
  })
13279
13291
  );
13280
- var CreatePlanLicenseExpiryDurationType$outboundSchema = z27.enum(CreatePlanLicenseExpiryDurationType);
13281
- var CreatePlanLicenseRollover$outboundSchema = z27.pipe(
13292
+ var CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z27.enum(
13293
+ CreatePlanLicenseExpiryDurationTypeRequestBody
13294
+ );
13295
+ var CreatePlanLicenseRolloverRequestBody$outboundSchema = z27.pipe(
13282
13296
  z27.object({
13283
13297
  max: z27.optional(z27.number()),
13284
13298
  maxPercentage: z27.optional(z27.number()),
13285
- expiryDurationType: CreatePlanLicenseExpiryDurationType$outboundSchema,
13299
+ expiryDurationType: CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
13286
13300
  expiryDurationLength: z27.optional(z27.number())
13287
13301
  }),
13288
13302
  z27.transform((v) => {
@@ -13293,13 +13307,13 @@ var CreatePlanLicenseRollover$outboundSchema = z27.pipe(
13293
13307
  });
13294
13308
  })
13295
13309
  );
13296
- var CreatePlanLicenseDuration$outboundSchema = z27.enum(CreatePlanLicenseDuration);
13297
- var CreatePlanLicenseExpiry$outboundSchema = z27.object({
13298
- duration: CreatePlanLicenseDuration$outboundSchema,
13310
+ var CreatePlanLicenseDurationRequestBody$outboundSchema = z27.enum(CreatePlanLicenseDurationRequestBody);
13311
+ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z27.object({
13312
+ duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
13299
13313
  length: z27.number()
13300
13314
  });
13301
13315
  var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13302
- var CreatePlanDimensionsLicense4$outboundSchema = z27.pipe(
13316
+ var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z27.pipe(
13303
13317
  z27.object({
13304
13318
  match: z27.record(
13305
13319
  z27.string(),
@@ -13315,13 +13329,18 @@ var CreatePlanDimensionsLicense4$outboundSchema = z27.pipe(
13315
13329
  })
13316
13330
  );
13317
13331
  var CreatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13318
- var CreatePlanDimensionsToLicenseEnum2$outboundSchema = z27.enum(CreatePlanDimensionsToLicenseEnum2);
13319
- var CreatePlanDimensionsLicenseToUnion2$outboundSchema = smartUnion([z27.number(), CreatePlanDimensionsToLicenseEnum2$outboundSchema]);
13320
- var CreatePlanDimensionsLicenseTier2$outboundSchema = z27.pipe(
13332
+ var CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z27.enum(
13333
+ CreatePlanDimensionsToLicenseRequestBodyEnum2
13334
+ );
13335
+ var CreatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
13336
+ z27.number(),
13337
+ CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
13338
+ ]);
13339
+ var CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z27.pipe(
13321
13340
  z27.object({
13322
13341
  to: smartUnion([
13323
13342
  z27.number(),
13324
- CreatePlanDimensionsToLicenseEnum2$outboundSchema
13343
+ CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
13325
13344
  ]),
13326
13345
  creditCost: z27.number()
13327
13346
  }),
@@ -13331,7 +13350,7 @@ var CreatePlanDimensionsLicenseTier2$outboundSchema = z27.pipe(
13331
13350
  });
13332
13351
  })
13333
13352
  );
13334
- var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
13353
+ var CreatePlanDimensionsLicenseRequestBody3$outboundSchema = z27.pipe(
13335
13354
  z27.object({
13336
13355
  match: z27.record(
13337
13356
  z27.string(),
@@ -13340,7 +13359,9 @@ var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
13340
13359
  priority: z27.optional(z27.int()),
13341
13360
  tierBehavior: z27.literal("graduated"),
13342
13361
  tiers: z27.array(
13343
- z27.lazy(() => CreatePlanDimensionsLicenseTier2$outboundSchema)
13362
+ z27.lazy(
13363
+ () => CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema
13364
+ )
13344
13365
  )
13345
13366
  }),
13346
13367
  z27.transform((v) => {
@@ -13349,12 +13370,12 @@ var CreatePlanDimensionsLicense3$outboundSchema = z27.pipe(
13349
13370
  });
13350
13371
  })
13351
13372
  );
13352
- var CreatePlanLicenseDimensionsUnion2$outboundSchema = smartUnion([
13353
- z27.lazy(() => CreatePlanDimensionsLicense3$outboundSchema),
13354
- z27.lazy(() => CreatePlanDimensionsLicense4$outboundSchema)
13373
+ var CreatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
13374
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
13375
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
13355
13376
  ]);
13356
13377
  var CreatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13357
- var CreatePlanLicenseMultipliers2$outboundSchema = z27.object({
13378
+ var CreatePlanLicenseMultipliersRequestBody2$outboundSchema = z27.object({
13358
13379
  match: z27.record(
13359
13380
  z27.string(),
13360
13381
  smartUnion([z27.string(), z27.number(), z27.boolean()])
@@ -13362,20 +13383,20 @@ var CreatePlanLicenseMultipliers2$outboundSchema = z27.object({
13362
13383
  factor: z27.optional(z27.number()),
13363
13384
  add: z27.optional(z27.number())
13364
13385
  });
13365
- var CreatePlanCreditSchemaLicense2$outboundSchema = z27.pipe(
13386
+ var CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z27.pipe(
13366
13387
  z27.object({
13367
13388
  meteredFeatureId: z27.string(),
13368
13389
  billingUnits: z27.optional(z27.number()),
13369
13390
  dimensions: z27.optional(z27.record(
13370
13391
  z27.string(),
13371
13392
  smartUnion([
13372
- z27.lazy(() => CreatePlanDimensionsLicense3$outboundSchema),
13373
- z27.lazy(() => CreatePlanDimensionsLicense4$outboundSchema)
13393
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
13394
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
13374
13395
  ])
13375
13396
  )),
13376
13397
  multipliers: z27.optional(z27.record(
13377
13398
  z27.string(),
13378
- z27.lazy(() => CreatePlanLicenseMultipliers2$outboundSchema)
13399
+ z27.lazy(() => CreatePlanLicenseMultipliersRequestBody2$outboundSchema)
13379
13400
  )),
13380
13401
  creditCost: z27.number()
13381
13402
  }),
@@ -13388,7 +13409,7 @@ var CreatePlanCreditSchemaLicense2$outboundSchema = z27.pipe(
13388
13409
  })
13389
13410
  );
13390
13411
  var CreatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13391
- var CreatePlanDimensionsLicense2$outboundSchema = z27.pipe(
13412
+ var CreatePlanDimensionsLicenseRequestBody2$outboundSchema = z27.pipe(
13392
13413
  z27.object({
13393
13414
  match: z27.record(
13394
13415
  z27.string(),
@@ -13404,13 +13425,18 @@ var CreatePlanDimensionsLicense2$outboundSchema = z27.pipe(
13404
13425
  })
13405
13426
  );
13406
13427
  var CreatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13407
- var CreatePlanDimensionsToLicenseEnum1$outboundSchema = z27.enum(CreatePlanDimensionsToLicenseEnum1);
13408
- var CreatePlanDimensionsLicenseToUnion1$outboundSchema = smartUnion([z27.number(), CreatePlanDimensionsToLicenseEnum1$outboundSchema]);
13409
- var CreatePlanDimensionsLicenseTier1$outboundSchema = z27.pipe(
13428
+ var CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z27.enum(
13429
+ CreatePlanDimensionsToLicenseRequestBodyEnum1
13430
+ );
13431
+ var CreatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
13432
+ z27.number(),
13433
+ CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
13434
+ ]);
13435
+ var CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z27.pipe(
13410
13436
  z27.object({
13411
13437
  to: smartUnion([
13412
13438
  z27.number(),
13413
- CreatePlanDimensionsToLicenseEnum1$outboundSchema
13439
+ CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
13414
13440
  ]),
13415
13441
  creditCost: z27.number()
13416
13442
  }),
@@ -13420,7 +13446,7 @@ var CreatePlanDimensionsLicenseTier1$outboundSchema = z27.pipe(
13420
13446
  });
13421
13447
  })
13422
13448
  );
13423
- var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
13449
+ var CreatePlanDimensionsLicenseRequestBody1$outboundSchema = z27.pipe(
13424
13450
  z27.object({
13425
13451
  match: z27.record(
13426
13452
  z27.string(),
@@ -13429,7 +13455,9 @@ var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
13429
13455
  priority: z27.optional(z27.int()),
13430
13456
  tierBehavior: z27.literal("graduated"),
13431
13457
  tiers: z27.array(
13432
- z27.lazy(() => CreatePlanDimensionsLicenseTier1$outboundSchema)
13458
+ z27.lazy(
13459
+ () => CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema
13460
+ )
13433
13461
  )
13434
13462
  }),
13435
13463
  z27.transform((v) => {
@@ -13438,12 +13466,12 @@ var CreatePlanDimensionsLicense1$outboundSchema = z27.pipe(
13438
13466
  });
13439
13467
  })
13440
13468
  );
13441
- var CreatePlanLicenseDimensionsUnion1$outboundSchema = smartUnion([
13442
- z27.lazy(() => CreatePlanDimensionsLicense1$outboundSchema),
13443
- z27.lazy(() => CreatePlanDimensionsLicense2$outboundSchema)
13469
+ var CreatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
13470
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
13471
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
13444
13472
  ]);
13445
13473
  var CreatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z27.string(), z27.number(), z27.boolean()]);
13446
- var CreatePlanLicenseMultipliers1$outboundSchema = z27.object({
13474
+ var CreatePlanLicenseMultipliersRequestBody1$outboundSchema = z27.object({
13447
13475
  match: z27.record(
13448
13476
  z27.string(),
13449
13477
  smartUnion([z27.string(), z27.number(), z27.boolean()])
@@ -13451,11 +13479,17 @@ var CreatePlanLicenseMultipliers1$outboundSchema = z27.object({
13451
13479
  factor: z27.optional(z27.number()),
13452
13480
  add: z27.optional(z27.number())
13453
13481
  });
13454
- var CreatePlanToLicenseEnum$outboundSchema = z27.enum(CreatePlanToLicenseEnum);
13455
- var CreatePlanLicenseFeatureOverrideToUnion$outboundSchema = smartUnion([z27.number(), CreatePlanToLicenseEnum$outboundSchema]);
13456
- var CreatePlanLicenseFeatureOverrideTier$outboundSchema = z27.pipe(
13482
+ var CreatePlanToLicenseRequestBodyEnum$outboundSchema = z27.enum(CreatePlanToLicenseRequestBodyEnum);
13483
+ var CreatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
13484
+ z27.number(),
13485
+ CreatePlanToLicenseRequestBodyEnum$outboundSchema
13486
+ ]);
13487
+ var CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z27.pipe(
13457
13488
  z27.object({
13458
- to: smartUnion([z27.number(), CreatePlanToLicenseEnum$outboundSchema]),
13489
+ to: smartUnion([
13490
+ z27.number(),
13491
+ CreatePlanToLicenseRequestBodyEnum$outboundSchema
13492
+ ]),
13459
13493
  creditCost: z27.number()
13460
13494
  }),
13461
13495
  z27.transform((v) => {
@@ -13464,24 +13498,24 @@ var CreatePlanLicenseFeatureOverrideTier$outboundSchema = z27.pipe(
13464
13498
  });
13465
13499
  })
13466
13500
  );
13467
- var CreatePlanCreditSchemaLicense1$outboundSchema = z27.pipe(
13501
+ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z27.pipe(
13468
13502
  z27.object({
13469
13503
  meteredFeatureId: z27.string(),
13470
13504
  billingUnits: z27.optional(z27.number()),
13471
13505
  dimensions: z27.optional(z27.record(
13472
13506
  z27.string(),
13473
13507
  smartUnion([
13474
- z27.lazy(() => CreatePlanDimensionsLicense1$outboundSchema),
13475
- z27.lazy(() => CreatePlanDimensionsLicense2$outboundSchema)
13508
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
13509
+ z27.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
13476
13510
  ])
13477
13511
  )),
13478
13512
  multipliers: z27.optional(z27.record(
13479
13513
  z27.string(),
13480
- z27.lazy(() => CreatePlanLicenseMultipliers1$outboundSchema)
13514
+ z27.lazy(() => CreatePlanLicenseMultipliersRequestBody1$outboundSchema)
13481
13515
  )),
13482
13516
  tierBehavior: z27.literal("graduated"),
13483
13517
  tiers: z27.array(z27.lazy(
13484
- () => CreatePlanLicenseFeatureOverrideTier$outboundSchema
13518
+ () => CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
13485
13519
  ))
13486
13520
  }),
13487
13521
  z27.transform((v) => {
@@ -13492,14 +13526,14 @@ var CreatePlanCreditSchemaLicense1$outboundSchema = z27.pipe(
13492
13526
  });
13493
13527
  })
13494
13528
  );
13495
- var CreatePlanLicenseCreditSchemaUnion$outboundSchema = smartUnion([
13496
- z27.lazy(() => CreatePlanCreditSchemaLicense1$outboundSchema),
13497
- z27.lazy(() => CreatePlanCreditSchemaLicense2$outboundSchema)
13529
+ var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
13530
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
13531
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
13498
13532
  ]);
13499
- var CreatePlanLicenseProviderMarkups$outboundSchema = z27.object({
13533
+ var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z27.object({
13500
13534
  markup: z27.number()
13501
13535
  });
13502
- var CreatePlanLicenseModelMarkups$outboundSchema = z27.pipe(
13536
+ var CreatePlanLicenseModelMarkupsRequestBody$outboundSchema = z27.pipe(
13503
13537
  z27.object({
13504
13538
  markup: z27.optional(z27.number()),
13505
13539
  inputCost: z27.optional(z27.number()),
@@ -13512,16 +13546,16 @@ var CreatePlanLicenseModelMarkups$outboundSchema = z27.pipe(
13512
13546
  });
13513
13547
  })
13514
13548
  );
13515
- var CreatePlanLicenseMarkups$outboundSchema = z27.pipe(
13549
+ var CreatePlanLicenseMarkupsRequestBody$outboundSchema = z27.pipe(
13516
13550
  z27.object({
13517
13551
  defaultMarkup: z27.optional(z27.number()),
13518
13552
  providerMarkups: z27.optional(z27.nullable(z27.record(
13519
13553
  z27.string(),
13520
- z27.lazy(() => CreatePlanLicenseProviderMarkups$outboundSchema)
13554
+ z27.lazy(() => CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
13521
13555
  ))),
13522
13556
  modelMarkups: z27.optional(z27.nullable(z27.record(
13523
13557
  z27.string(),
13524
- z27.lazy(() => CreatePlanLicenseModelMarkups$outboundSchema)
13558
+ z27.lazy(() => CreatePlanLicenseModelMarkupsRequestBody$outboundSchema)
13525
13559
  )))
13526
13560
  }),
13527
13561
  z27.transform((v) => {
@@ -13532,16 +13566,16 @@ var CreatePlanLicenseMarkups$outboundSchema = z27.pipe(
13532
13566
  });
13533
13567
  })
13534
13568
  );
13535
- var CreatePlanLicenseFeatureOverride$outboundSchema = z27.pipe(
13569
+ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z27.pipe(
13536
13570
  z27.object({
13537
13571
  creditSchema: z27.optional(z27.array(smartUnion([
13538
- z27.lazy(() => CreatePlanCreditSchemaLicense1$outboundSchema),
13572
+ z27.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
13539
13573
  z27.lazy(
13540
- () => CreatePlanCreditSchemaLicense2$outboundSchema
13574
+ () => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
13541
13575
  )
13542
13576
  ]))),
13543
13577
  markups: z27.optional(z27.lazy(
13544
- () => CreatePlanLicenseMarkups$outboundSchema
13578
+ () => CreatePlanLicenseMarkupsRequestBody$outboundSchema
13545
13579
  ))
13546
13580
  }),
13547
13581
  z27.transform((v) => {
@@ -13550,29 +13584,33 @@ var CreatePlanLicenseFeatureOverride$outboundSchema = z27.pipe(
13550
13584
  });
13551
13585
  })
13552
13586
  );
13553
- var CreatePlanLicensePlanItem$outboundSchema = z27.pipe(
13587
+ var CreatePlanLicensePlanItemRequestBody$outboundSchema = z27.pipe(
13554
13588
  z27.object({
13555
- thresholdBilling: z27.optional(
13556
- z27.nullable(
13557
- z27.lazy(() => CreatePlanLicenseThresholdBilling$outboundSchema)
13558
- )
13559
- ),
13589
+ thresholdBilling: z27.optional(z27.nullable(z27.lazy(
13590
+ () => CreatePlanLicenseThresholdBillingRequestBody$outboundSchema
13591
+ ))),
13560
13592
  featureId: z27.string(),
13561
13593
  included: z27.optional(z27.number()),
13562
13594
  unlimited: z27.optional(z27.boolean()),
13563
13595
  pooled: z27._default(z27.boolean(), false),
13564
- reset: z27.optional(z27.lazy(() => CreatePlanLicenseReset$outboundSchema)),
13565
- price: z27.optional(z27.lazy(() => CreatePlanLicensePrice$outboundSchema)),
13566
- proration: z27.optional(
13567
- z27.lazy(() => CreatePlanLicenseProration$outboundSchema)
13568
- ),
13569
- rollover: z27.optional(
13570
- z27.lazy(() => CreatePlanLicenseRollover$outboundSchema)
13571
- ),
13572
- expiry: z27.optional(z27.lazy(() => CreatePlanLicenseExpiry$outboundSchema)),
13573
- featureOverride: z27.optional(
13574
- z27.lazy(() => CreatePlanLicenseFeatureOverride$outboundSchema)
13575
- )
13596
+ reset: z27.optional(z27.lazy(
13597
+ () => CreatePlanLicenseResetRequestBody$outboundSchema
13598
+ )),
13599
+ price: z27.optional(z27.lazy(
13600
+ () => CreatePlanLicensePriceRequestBody$outboundSchema
13601
+ )),
13602
+ proration: z27.optional(z27.lazy(
13603
+ () => CreatePlanLicenseProrationRequestBody$outboundSchema
13604
+ )),
13605
+ rollover: z27.optional(z27.lazy(
13606
+ () => CreatePlanLicenseRolloverRequestBody$outboundSchema
13607
+ )),
13608
+ expiry: z27.optional(z27.lazy(
13609
+ () => CreatePlanLicenseExpiryRequestBody$outboundSchema
13610
+ )),
13611
+ featureOverride: z27.optional(z27.lazy(
13612
+ () => CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema
13613
+ ))
13576
13614
  }),
13577
13615
  z27.transform((v) => {
13578
13616
  return remap(v, {
@@ -13582,29 +13620,29 @@ var CreatePlanLicensePlanItem$outboundSchema = z27.pipe(
13582
13620
  });
13583
13621
  })
13584
13622
  );
13585
- var CreatePlanLicenseRemoveItemBillingMethod$outboundSchema = z27.enum(
13586
- CreatePlanLicenseRemoveItemBillingMethod
13623
+ var CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema = z27.enum(
13624
+ CreatePlanRemoveItemBillingMethodRequestBody
13587
13625
  );
13588
- var CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema = z27.enum(
13589
- CreatePlanIntervalLicenseRemoveItemEnum2
13626
+ var CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema = z27.enum(
13627
+ CreatePlanIntervalRemoveItemRequestBodyEnum2
13590
13628
  );
13591
- var CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z27.enum(
13592
- CreatePlanIntervalLicenseRemoveItemEnum1
13629
+ var CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema = z27.enum(
13630
+ CreatePlanIntervalRemoveItemRequestBodyEnum1
13593
13631
  );
13594
- var CreatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
13595
- CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
13596
- CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
13632
+ var CreatePlanIntervalRequestBodyUnion$outboundSchema = smartUnion([
13633
+ CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
13634
+ CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
13597
13635
  ]);
13598
- var CreatePlanLicensePlanItemFilter$outboundSchema = z27.pipe(
13636
+ var CreatePlanPlanItemFilterRequestBody$outboundSchema = z27.pipe(
13599
13637
  z27.object({
13600
13638
  featureId: z27.optional(z27.string()),
13601
13639
  billingMethod: z27.optional(
13602
- CreatePlanLicenseRemoveItemBillingMethod$outboundSchema
13640
+ CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema
13603
13641
  ),
13604
13642
  interval: z27.optional(
13605
13643
  smartUnion([
13606
- CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
13607
- CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
13644
+ CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
13645
+ CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
13608
13646
  ])
13609
13647
  ),
13610
13648
  intervalCount: z27.optional(z27.int()),
@@ -13618,16 +13656,18 @@ var CreatePlanLicensePlanItemFilter$outboundSchema = z27.pipe(
13618
13656
  });
13619
13657
  })
13620
13658
  );
13621
- var CreatePlanLicenseCustomize$outboundSchema = z27.pipe(
13659
+ var CreatePlanCustomizeRequestBody$outboundSchema = z27.pipe(
13622
13660
  z27.object({
13623
13661
  price: z27.optional(
13624
- z27.nullable(z27.lazy(() => CreatePlanLicenseBasePrice$outboundSchema))
13662
+ z27.nullable(z27.lazy(() => CreatePlanBasePriceRequestBody$outboundSchema))
13625
13663
  ),
13626
13664
  addItems: z27.optional(
13627
- z27.array(z27.lazy(() => CreatePlanLicensePlanItem$outboundSchema))
13665
+ z27.array(
13666
+ z27.lazy(() => CreatePlanLicensePlanItemRequestBody$outboundSchema)
13667
+ )
13628
13668
  ),
13629
13669
  removeItems: z27.optional(
13630
- z27.array(z27.lazy(() => CreatePlanLicensePlanItemFilter$outboundSchema))
13670
+ z27.array(z27.lazy(() => CreatePlanPlanItemFilterRequestBody$outboundSchema))
13631
13671
  )
13632
13672
  }),
13633
13673
  z27.transform((v) => {
@@ -13637,14 +13677,14 @@ var CreatePlanLicenseCustomize$outboundSchema = z27.pipe(
13637
13677
  });
13638
13678
  })
13639
13679
  );
13640
- var CreatePlanLicense$outboundSchema = z27.pipe(
13680
+ var CreatePlanLicenseRequest$outboundSchema = z27.pipe(
13641
13681
  z27.object({
13642
13682
  licensePlanId: z27.string(),
13643
13683
  versionSlug: z27.optional(z27.string()),
13644
13684
  included: z27.optional(z27.int()),
13645
13685
  prepaidOnly: z27.optional(z27.boolean()),
13646
13686
  customize: z27.optional(
13647
- z27.nullable(z27.lazy(() => CreatePlanLicenseCustomize$outboundSchema))
13687
+ z27.nullable(z27.lazy(() => CreatePlanCustomizeRequestBody$outboundSchema))
13648
13688
  ),
13649
13689
  metadata: z27.optional(z27.record(z27.string(), z27.any()))
13650
13690
  }),
@@ -13850,7 +13890,7 @@ var CreatePlanParams$outboundSchema = z27.pipe(
13850
13890
  z27.array(z27.lazy(() => CreatePlanItemPlanItem$outboundSchema))
13851
13891
  ),
13852
13892
  licenses: z27.optional(
13853
- z27.array(z27.lazy(() => CreatePlanLicense$outboundSchema))
13893
+ z27.array(z27.lazy(() => CreatePlanLicenseRequest$outboundSchema))
13854
13894
  ),
13855
13895
  freeTrial: z27.optional(z27.lazy(() => FreeTrialRequestBody$outboundSchema)),
13856
13896
  config: z27.optional(
@@ -14121,17 +14161,17 @@ var CreatePlanVariantDetailsAddItemPriceInterval = {
14121
14161
  SemiAnnual: "semi_annual",
14122
14162
  Year: "year"
14123
14163
  };
14124
- var CreatePlanAddItemBillingMethodResponse = {
14164
+ var CreatePlanVariantDetailsAddItemBillingMethod = {
14125
14165
  Prepaid: "prepaid",
14126
14166
  UsageBased: "usage_based"
14127
14167
  };
14128
- var CreatePlanOnIncreaseResponse = {
14168
+ var CreatePlanVariantDetailsOnIncrease = {
14129
14169
  BillImmediately: "bill_immediately",
14130
14170
  ProrateImmediately: "prorate_immediately",
14131
14171
  ProrateNextCycle: "prorate_next_cycle",
14132
14172
  BillNextCycle: "bill_next_cycle"
14133
14173
  };
14134
- var CreatePlanOnDecreaseResponse = {
14174
+ var CreatePlanVariantDetailsOnDecrease = {
14135
14175
  Prorate: "prorate",
14136
14176
  ProrateImmediately: "prorate_immediately",
14137
14177
  ProrateNextCycle: "prorate_next_cycle",
@@ -14157,7 +14197,7 @@ var CreatePlanDimensionsToVariantDetailsEnum1 = {
14157
14197
  var CreatePlanToVariantDetailsEnum = {
14158
14198
  Inf: "inf"
14159
14199
  };
14160
- var CreatePlanRemoveItemBillingMethodResponse = {
14200
+ var CreatePlanVariantDetailsRemoveItemBillingMethod = {
14161
14201
  Prepaid: "prepaid",
14162
14202
  UsageBased: "usage_based"
14163
14203
  };
@@ -14882,7 +14922,7 @@ var CreatePlanVariantDetailsAdditionalCurrency$inboundSchema = z28.object(
14882
14922
  amount: number2()
14883
14923
  }
14884
14924
  );
14885
- var CreatePlanBasePriceResponse$inboundSchema = z28.pipe(
14925
+ var CreatePlanVariantDetailsBasePrice$inboundSchema = z28.pipe(
14886
14926
  z28.object({
14887
14927
  amount: number2(),
14888
14928
  interval: CreatePlanPriceVariantDetailsInterval$inboundSchema,
@@ -14913,7 +14953,7 @@ var CreatePlanVariantDetailsReset$inboundSchema = z28.pipe(
14913
14953
  });
14914
14954
  })
14915
14955
  );
14916
- var CreatePlanAddItemAdditionalCurrencyResponse$inboundSchema = z28.object({
14956
+ var CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z28.object({
14917
14957
  currency: string5(),
14918
14958
  amount: number2()
14919
14959
  });
@@ -14948,12 +14988,12 @@ var CreatePlanVariantDetailsPriceTier$inboundSchema = z28.pipe(
14948
14988
  );
14949
14989
  var CreatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(CreatePlanVariantDetailsTierBehavior);
14950
14990
  var CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemPriceInterval);
14951
- var CreatePlanAddItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanAddItemBillingMethodResponse);
14991
+ var CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemBillingMethod);
14952
14992
  var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
14953
14993
  z28.object({
14954
14994
  amount: optional3(number2()),
14955
14995
  additional_currencies: optional3(z28.array(z28.lazy(
14956
- () => CreatePlanAddItemAdditionalCurrencyResponse$inboundSchema
14996
+ () => CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
14957
14997
  ))),
14958
14998
  tiers: optional3(z28.array(z28.lazy(
14959
14999
  () => CreatePlanVariantDetailsPriceTier$inboundSchema
@@ -14964,7 +15004,7 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
14964
15004
  interval: CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
14965
15005
  interval_count: z28._default(number2(), 1),
14966
15006
  billing_units: z28._default(number2(), 1),
14967
- billing_method: CreatePlanAddItemBillingMethodResponse$inboundSchema,
15007
+ billing_method: CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
14968
15008
  max_purchase: z28.optional(z28.nullable(number2()))
14969
15009
  }),
14970
15010
  z28.transform((v) => {
@@ -14978,12 +15018,12 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z28.pipe(
14978
15018
  });
14979
15019
  })
14980
15020
  );
14981
- var CreatePlanOnIncreaseResponse$inboundSchema = inboundSchema(CreatePlanOnIncreaseResponse);
14982
- var CreatePlanOnDecreaseResponse$inboundSchema = inboundSchema(CreatePlanOnDecreaseResponse);
14983
- var CreatePlanProrationResponse$inboundSchema = z28.pipe(
15021
+ var CreatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnIncrease);
15022
+ var CreatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnDecrease);
15023
+ var CreatePlanVariantDetailsProration$inboundSchema = z28.pipe(
14984
15024
  z28.object({
14985
- on_increase: CreatePlanOnIncreaseResponse$inboundSchema,
14986
- on_decrease: CreatePlanOnDecreaseResponse$inboundSchema
15025
+ on_increase: CreatePlanVariantDetailsOnIncrease$inboundSchema,
15026
+ on_decrease: CreatePlanVariantDetailsOnDecrease$inboundSchema
14987
15027
  }),
14988
15028
  z28.transform((v) => {
14989
15029
  return remap(v, {
@@ -15258,7 +15298,7 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z28.pipe(
15258
15298
  });
15259
15299
  })
15260
15300
  );
15261
- var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
15301
+ var CreatePlanVariantDetailsPlanItem$inboundSchema = z28.pipe(
15262
15302
  z28.object({
15263
15303
  threshold_billing: z28.optional(z28.nullable(z28.lazy(
15264
15304
  () => CreatePlanVariantDetailsThresholdBilling$inboundSchema
@@ -15274,7 +15314,7 @@ var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
15274
15314
  () => CreatePlanVariantDetailsPrice$inboundSchema
15275
15315
  )),
15276
15316
  proration: optional3(z28.lazy(
15277
- () => CreatePlanProrationResponse$inboundSchema
15317
+ () => CreatePlanVariantDetailsProration$inboundSchema
15278
15318
  )),
15279
15319
  rollover: optional3(z28.lazy(
15280
15320
  () => CreatePlanVariantDetailsRollover$inboundSchema
@@ -15294,18 +15334,18 @@ var CreatePlanPlanItemResponse$inboundSchema = z28.pipe(
15294
15334
  });
15295
15335
  })
15296
15336
  );
15297
- var CreatePlanRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanRemoveItemBillingMethodResponse);
15337
+ var CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsRemoveItemBillingMethod);
15298
15338
  var CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum2);
15299
15339
  var CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum1);
15300
15340
  var CreatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
15301
15341
  CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
15302
15342
  CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
15303
15343
  ]);
15304
- var CreatePlanPlanItemFilterResponse$inboundSchema = z28.pipe(
15344
+ var CreatePlanVariantDetailsPlanItemFilter$inboundSchema = z28.pipe(
15305
15345
  z28.object({
15306
15346
  feature_id: optional3(string5()),
15307
15347
  billing_method: optional3(
15308
- CreatePlanRemoveItemBillingMethodResponse$inboundSchema
15348
+ CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
15309
15349
  ),
15310
15350
  interval: optional3(
15311
15351
  smartUnion([
@@ -15628,6 +15668,96 @@ var CreatePlanIntervalUpsertLicenseRemoveItemEnum1 = {
15628
15668
  SemiAnnual: "semi_annual",
15629
15669
  Year: "year"
15630
15670
  };
15671
+ var CreatePlanPriceLicenseIntervalResponse = {
15672
+ OneOff: "one_off",
15673
+ Week: "week",
15674
+ Month: "month",
15675
+ Quarter: "quarter",
15676
+ SemiAnnual: "semi_annual",
15677
+ Year: "year"
15678
+ };
15679
+ var CreatePlanLicenseResetIntervalResponse = {
15680
+ OneOff: "one_off",
15681
+ Minute: "minute",
15682
+ Hour: "hour",
15683
+ Day: "day",
15684
+ Week: "week",
15685
+ Month: "month",
15686
+ Quarter: "quarter",
15687
+ SemiAnnual: "semi_annual",
15688
+ Year: "year"
15689
+ };
15690
+ var CreatePlanLicenseTierBehaviorResponse = {
15691
+ Graduated: "graduated",
15692
+ Volume: "volume"
15693
+ };
15694
+ var CreatePlanLicenseAddItemPriceIntervalResponse = {
15695
+ OneOff: "one_off",
15696
+ Week: "week",
15697
+ Month: "month",
15698
+ Quarter: "quarter",
15699
+ SemiAnnual: "semi_annual",
15700
+ Year: "year"
15701
+ };
15702
+ var CreatePlanLicenseAddItemBillingMethodResponse = {
15703
+ Prepaid: "prepaid",
15704
+ UsageBased: "usage_based"
15705
+ };
15706
+ var CreatePlanLicenseOnIncreaseResponse = {
15707
+ BillImmediately: "bill_immediately",
15708
+ ProrateImmediately: "prorate_immediately",
15709
+ ProrateNextCycle: "prorate_next_cycle",
15710
+ BillNextCycle: "bill_next_cycle"
15711
+ };
15712
+ var CreatePlanLicenseOnDecreaseResponse = {
15713
+ Prorate: "prorate",
15714
+ ProrateImmediately: "prorate_immediately",
15715
+ ProrateNextCycle: "prorate_next_cycle",
15716
+ None: "none",
15717
+ NoProrations: "no_prorations"
15718
+ };
15719
+ var CreatePlanLicenseExpiryDurationTypeResponse = {
15720
+ Month: "month",
15721
+ Forever: "forever"
15722
+ };
15723
+ var CreatePlanLicenseDurationResponse = {
15724
+ Day: "day",
15725
+ Week: "week",
15726
+ Month: "month",
15727
+ Year: "year"
15728
+ };
15729
+ var CreatePlanDimensionsToLicenseResponseEnum2 = {
15730
+ Inf: "inf"
15731
+ };
15732
+ var CreatePlanDimensionsToLicenseResponseEnum1 = {
15733
+ Inf: "inf"
15734
+ };
15735
+ var CreatePlanToLicenseResponseEnum = {
15736
+ Inf: "inf"
15737
+ };
15738
+ var CreatePlanLicenseRemoveItemBillingMethodResponse = {
15739
+ Prepaid: "prepaid",
15740
+ UsageBased: "usage_based"
15741
+ };
15742
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum2 = {
15743
+ OneOff: "one_off",
15744
+ Minute: "minute",
15745
+ Hour: "hour",
15746
+ Day: "day",
15747
+ Week: "week",
15748
+ Month: "month",
15749
+ Quarter: "quarter",
15750
+ SemiAnnual: "semi_annual",
15751
+ Year: "year"
15752
+ };
15753
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
15754
+ OneOff: "one_off",
15755
+ Week: "week",
15756
+ Month: "month",
15757
+ Quarter: "quarter",
15758
+ SemiAnnual: "semi_annual",
15759
+ Year: "year"
15760
+ };
15631
15761
  var CreatePlanUpsertLicenseProration$inboundSchema = z29.pipe(
15632
15762
  z29.object({
15633
15763
  on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
@@ -16016,14 +16146,16 @@ var CreatePlanRemoveLicense$inboundSchema = z29.pipe(
16016
16146
  });
16017
16147
  })
16018
16148
  );
16019
- var CreatePlanCustomizeResponse$inboundSchema = z29.pipe(
16149
+ var CreatePlanVariantDetailsCustomize$inboundSchema = z29.pipe(
16020
16150
  z29.object({
16021
- price: z29.optional(z29.nullable(CreatePlanBasePriceResponse$inboundSchema)),
16151
+ price: z29.optional(
16152
+ z29.nullable(CreatePlanVariantDetailsBasePrice$inboundSchema)
16153
+ ),
16022
16154
  add_items: optional3(
16023
- z29.array(CreatePlanPlanItemResponse$inboundSchema)
16155
+ z29.array(CreatePlanVariantDetailsPlanItem$inboundSchema)
16024
16156
  ),
16025
16157
  remove_items: optional3(
16026
- z29.array(CreatePlanPlanItemFilterResponse$inboundSchema)
16158
+ z29.array(CreatePlanVariantDetailsPlanItemFilter$inboundSchema)
16027
16159
  ),
16028
16160
  free_trial: z29.optional(z29.nullable(CreatePlanFreeTrialParams$inboundSchema)),
16029
16161
  billing_controls: optional3(
@@ -16051,7 +16183,7 @@ var CreatePlanVariantDetails$inboundSchema = z29.pipe(
16051
16183
  z29.object({
16052
16184
  base_plan_id: string5(),
16053
16185
  customize: optional3(
16054
- z29.lazy(() => CreatePlanCustomizeResponse$inboundSchema)
16186
+ z29.lazy(() => CreatePlanVariantDetailsCustomize$inboundSchema)
16055
16187
  )
16056
16188
  }),
16057
16189
  z29.transform((v) => {
@@ -16060,6 +16192,493 @@ var CreatePlanVariantDetails$inboundSchema = z29.pipe(
16060
16192
  });
16061
16193
  })
16062
16194
  );
16195
+ var CreatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(CreatePlanPriceLicenseIntervalResponse);
16196
+ var CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z29.object({
16197
+ currency: string5(),
16198
+ amount: number2()
16199
+ });
16200
+ var CreatePlanLicenseBasePriceResponse$inboundSchema = z29.pipe(
16201
+ z29.object({
16202
+ amount: number2(),
16203
+ interval: CreatePlanPriceLicenseIntervalResponse$inboundSchema,
16204
+ interval_count: z29._default(number2(), 1),
16205
+ additional_currencies: optional3(z29.array(z29.lazy(
16206
+ () => CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema
16207
+ )))
16208
+ }),
16209
+ z29.transform((v) => {
16210
+ return remap(v, {
16211
+ "interval_count": "intervalCount",
16212
+ "additional_currencies": "additionalCurrencies"
16213
+ });
16214
+ })
16215
+ );
16216
+ var CreatePlanLicenseThresholdBillingResponse$inboundSchema = z29.object({
16217
+ threshold: number2()
16218
+ });
16219
+ var CreatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseResetIntervalResponse);
16220
+ var CreatePlanLicenseResetResponse$inboundSchema = z29.pipe(
16221
+ z29.object({
16222
+ interval: CreatePlanLicenseResetIntervalResponse$inboundSchema,
16223
+ interval_count: z29._default(number2(), 1)
16224
+ }),
16225
+ z29.transform((v) => {
16226
+ return remap(v, {
16227
+ "interval_count": "intervalCount"
16228
+ });
16229
+ })
16230
+ );
16231
+ var CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z29.object({
16232
+ currency: string5(),
16233
+ amount: number2()
16234
+ });
16235
+ var CreatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
16236
+ var CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z29.pipe(
16237
+ z29.object({
16238
+ currency: string5(),
16239
+ amount: optional3(number2()),
16240
+ flat_amount: optional3(number2())
16241
+ }),
16242
+ z29.transform((v) => {
16243
+ return remap(v, {
16244
+ "flat_amount": "flatAmount"
16245
+ });
16246
+ })
16247
+ );
16248
+ var CreatePlanLicensePriceTierResponse$inboundSchema = z29.pipe(
16249
+ z29.object({
16250
+ to: smartUnion([number2(), string5()]),
16251
+ amount: number2(),
16252
+ flat_amount: optional3(number2()),
16253
+ additional_currencies: optional3(z29.array(z29.lazy(
16254
+ () => CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
16255
+ )))
16256
+ }),
16257
+ z29.transform((v) => {
16258
+ return remap(v, {
16259
+ "flat_amount": "flatAmount",
16260
+ "additional_currencies": "additionalCurrencies"
16261
+ });
16262
+ })
16263
+ );
16264
+ var CreatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(CreatePlanLicenseTierBehaviorResponse);
16265
+ var CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemPriceIntervalResponse);
16266
+ var CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemBillingMethodResponse);
16267
+ var CreatePlanLicensePriceResponse$inboundSchema = z29.pipe(
16268
+ z29.object({
16269
+ amount: optional3(number2()),
16270
+ additional_currencies: optional3(z29.array(z29.lazy(
16271
+ () => CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
16272
+ ))),
16273
+ tiers: optional3(z29.array(z29.lazy(
16274
+ () => CreatePlanLicensePriceTierResponse$inboundSchema
16275
+ ))),
16276
+ tier_behavior: optional3(
16277
+ CreatePlanLicenseTierBehaviorResponse$inboundSchema
16278
+ ),
16279
+ interval: CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
16280
+ interval_count: z29._default(number2(), 1),
16281
+ billing_units: z29._default(number2(), 1),
16282
+ billing_method: CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
16283
+ max_purchase: z29.optional(z29.nullable(number2()))
16284
+ }),
16285
+ z29.transform((v) => {
16286
+ return remap(v, {
16287
+ "additional_currencies": "additionalCurrencies",
16288
+ "tier_behavior": "tierBehavior",
16289
+ "interval_count": "intervalCount",
16290
+ "billing_units": "billingUnits",
16291
+ "billing_method": "billingMethod",
16292
+ "max_purchase": "maxPurchase"
16293
+ });
16294
+ })
16295
+ );
16296
+ var CreatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnIncreaseResponse);
16297
+ var CreatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnDecreaseResponse);
16298
+ var CreatePlanLicenseProrationResponse$inboundSchema = z29.pipe(
16299
+ z29.object({
16300
+ on_increase: CreatePlanLicenseOnIncreaseResponse$inboundSchema,
16301
+ on_decrease: CreatePlanLicenseOnDecreaseResponse$inboundSchema
16302
+ }),
16303
+ z29.transform((v) => {
16304
+ return remap(v, {
16305
+ "on_increase": "onIncrease",
16306
+ "on_decrease": "onDecrease"
16307
+ });
16308
+ })
16309
+ );
16310
+ var CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePlanLicenseExpiryDurationTypeResponse);
16311
+ var CreatePlanLicenseRolloverResponse$inboundSchema = z29.pipe(
16312
+ z29.object({
16313
+ max: optional3(number2()),
16314
+ max_percentage: optional3(number2()),
16315
+ expiry_duration_type: CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
16316
+ expiry_duration_length: optional3(number2())
16317
+ }),
16318
+ z29.transform((v) => {
16319
+ return remap(v, {
16320
+ "max_percentage": "maxPercentage",
16321
+ "expiry_duration_type": "expiryDurationType",
16322
+ "expiry_duration_length": "expiryDurationLength"
16323
+ });
16324
+ })
16325
+ );
16326
+ var CreatePlanLicenseDurationResponse$inboundSchema = inboundSchema(CreatePlanLicenseDurationResponse);
16327
+ var CreatePlanLicenseExpiryResponse$inboundSchema = z29.object({
16328
+ duration: CreatePlanLicenseDurationResponse$inboundSchema,
16329
+ length: number2()
16330
+ });
16331
+ var CreatePlanDimensionsLicenseResponse4$inboundSchema = z29.pipe(
16332
+ z29.object({
16333
+ match: z29.record(z29.string(), string5()),
16334
+ priority: optional3(number2()),
16335
+ credit_cost: number2()
16336
+ }),
16337
+ z29.transform((v) => {
16338
+ return remap(v, {
16339
+ "credit_cost": "creditCost"
16340
+ });
16341
+ })
16342
+ );
16343
+ var CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z29.enum(
16344
+ CreatePlanDimensionsToLicenseResponseEnum2
16345
+ );
16346
+ var CreatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
16347
+ number2(),
16348
+ CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
16349
+ ]);
16350
+ var CreatePlanDimensionsLicenseTierResponse2$inboundSchema = z29.pipe(
16351
+ z29.object({
16352
+ to: smartUnion([
16353
+ number2(),
16354
+ CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
16355
+ ]),
16356
+ credit_cost: number2()
16357
+ }),
16358
+ z29.transform((v) => {
16359
+ return remap(v, {
16360
+ "credit_cost": "creditCost"
16361
+ });
16362
+ })
16363
+ );
16364
+ var CreatePlanDimensionsLicenseResponse3$inboundSchema = z29.pipe(
16365
+ z29.object({
16366
+ match: z29.record(z29.string(), string5()),
16367
+ priority: optional3(number2()),
16368
+ tier_behavior: literal3("graduated"),
16369
+ tiers: z29.array(
16370
+ z29.lazy(() => CreatePlanDimensionsLicenseTierResponse2$inboundSchema)
16371
+ )
16372
+ }),
16373
+ z29.transform((v) => {
16374
+ return remap(v, {
16375
+ "tier_behavior": "tierBehavior"
16376
+ });
16377
+ })
16378
+ );
16379
+ var CreatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
16380
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
16381
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
16382
+ ]);
16383
+ var CreatePlanLicenseMultipliersResponse2$inboundSchema = z29.object({
16384
+ match: z29.record(z29.string(), string5()),
16385
+ factor: optional3(number2()),
16386
+ add: optional3(number2())
16387
+ });
16388
+ var CreatePlanCreditSchemaLicenseResponse2$inboundSchema = z29.pipe(
16389
+ z29.object({
16390
+ metered_feature_id: string5(),
16391
+ billing_units: optional3(number2()),
16392
+ dimensions: optional3(z29.record(
16393
+ z29.string(),
16394
+ smartUnion([
16395
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
16396
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
16397
+ ])
16398
+ )),
16399
+ multipliers: optional3(z29.record(
16400
+ z29.string(),
16401
+ z29.lazy(() => CreatePlanLicenseMultipliersResponse2$inboundSchema)
16402
+ )),
16403
+ credit_cost: number2()
16404
+ }),
16405
+ z29.transform((v) => {
16406
+ return remap(v, {
16407
+ "metered_feature_id": "meteredFeatureId",
16408
+ "billing_units": "billingUnits",
16409
+ "credit_cost": "creditCost"
16410
+ });
16411
+ })
16412
+ );
16413
+ var CreatePlanDimensionsLicenseResponse2$inboundSchema = z29.pipe(
16414
+ z29.object({
16415
+ match: z29.record(z29.string(), string5()),
16416
+ priority: optional3(number2()),
16417
+ credit_cost: number2()
16418
+ }),
16419
+ z29.transform((v) => {
16420
+ return remap(v, {
16421
+ "credit_cost": "creditCost"
16422
+ });
16423
+ })
16424
+ );
16425
+ var CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z29.enum(
16426
+ CreatePlanDimensionsToLicenseResponseEnum1
16427
+ );
16428
+ var CreatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
16429
+ number2(),
16430
+ CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
16431
+ ]);
16432
+ var CreatePlanDimensionsLicenseTierResponse1$inboundSchema = z29.pipe(
16433
+ z29.object({
16434
+ to: smartUnion([
16435
+ number2(),
16436
+ CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
16437
+ ]),
16438
+ credit_cost: number2()
16439
+ }),
16440
+ z29.transform((v) => {
16441
+ return remap(v, {
16442
+ "credit_cost": "creditCost"
16443
+ });
16444
+ })
16445
+ );
16446
+ var CreatePlanDimensionsLicenseResponse1$inboundSchema = z29.pipe(
16447
+ z29.object({
16448
+ match: z29.record(z29.string(), string5()),
16449
+ priority: optional3(number2()),
16450
+ tier_behavior: literal3("graduated"),
16451
+ tiers: z29.array(
16452
+ z29.lazy(() => CreatePlanDimensionsLicenseTierResponse1$inboundSchema)
16453
+ )
16454
+ }),
16455
+ z29.transform((v) => {
16456
+ return remap(v, {
16457
+ "tier_behavior": "tierBehavior"
16458
+ });
16459
+ })
16460
+ );
16461
+ var CreatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
16462
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
16463
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
16464
+ ]);
16465
+ var CreatePlanLicenseMultipliersResponse1$inboundSchema = z29.object({
16466
+ match: z29.record(z29.string(), string5()),
16467
+ factor: optional3(number2()),
16468
+ add: optional3(number2())
16469
+ });
16470
+ var CreatePlanToLicenseResponseEnum$inboundSchema = z29.enum(CreatePlanToLicenseResponseEnum);
16471
+ var CreatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), CreatePlanToLicenseResponseEnum$inboundSchema]);
16472
+ var CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z29.pipe(
16473
+ z29.object({
16474
+ to: smartUnion([
16475
+ number2(),
16476
+ CreatePlanToLicenseResponseEnum$inboundSchema
16477
+ ]),
16478
+ credit_cost: number2()
16479
+ }),
16480
+ z29.transform((v) => {
16481
+ return remap(v, {
16482
+ "credit_cost": "creditCost"
16483
+ });
16484
+ })
16485
+ );
16486
+ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z29.pipe(
16487
+ z29.object({
16488
+ metered_feature_id: string5(),
16489
+ billing_units: optional3(number2()),
16490
+ dimensions: optional3(z29.record(
16491
+ z29.string(),
16492
+ smartUnion([
16493
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
16494
+ z29.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
16495
+ ])
16496
+ )),
16497
+ multipliers: optional3(z29.record(
16498
+ z29.string(),
16499
+ z29.lazy(() => CreatePlanLicenseMultipliersResponse1$inboundSchema)
16500
+ )),
16501
+ tier_behavior: literal3("graduated"),
16502
+ tiers: z29.array(z29.lazy(
16503
+ () => CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema
16504
+ ))
16505
+ }),
16506
+ z29.transform((v) => {
16507
+ return remap(v, {
16508
+ "metered_feature_id": "meteredFeatureId",
16509
+ "billing_units": "billingUnits",
16510
+ "tier_behavior": "tierBehavior"
16511
+ });
16512
+ })
16513
+ );
16514
+ var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
16515
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
16516
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
16517
+ ]);
16518
+ var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z29.object({
16519
+ markup: number2()
16520
+ });
16521
+ var CreatePlanLicenseModelMarkupsResponse$inboundSchema = z29.pipe(
16522
+ z29.object({
16523
+ markup: optional3(number2()),
16524
+ input_cost: optional3(number2()),
16525
+ output_cost: optional3(number2())
16526
+ }),
16527
+ z29.transform((v) => {
16528
+ return remap(v, {
16529
+ "input_cost": "inputCost",
16530
+ "output_cost": "outputCost"
16531
+ });
16532
+ })
16533
+ );
16534
+ var CreatePlanLicenseMarkupsResponse$inboundSchema = z29.pipe(
16535
+ z29.object({
16536
+ default_markup: optional3(number2()),
16537
+ provider_markups: z29.optional(z29.nullable(z29.record(
16538
+ z29.string(),
16539
+ z29.lazy(() => CreatePlanLicenseProviderMarkupsResponse$inboundSchema)
16540
+ ))),
16541
+ model_markups: z29.optional(z29.nullable(z29.record(
16542
+ z29.string(),
16543
+ z29.lazy(() => CreatePlanLicenseModelMarkupsResponse$inboundSchema)
16544
+ )))
16545
+ }),
16546
+ z29.transform((v) => {
16547
+ return remap(v, {
16548
+ "default_markup": "defaultMarkup",
16549
+ "provider_markups": "providerMarkups",
16550
+ "model_markups": "modelMarkups"
16551
+ });
16552
+ })
16553
+ );
16554
+ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z29.pipe(
16555
+ z29.object({
16556
+ credit_schema: optional3(z29.array(smartUnion([
16557
+ z29.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
16558
+ z29.lazy(
16559
+ () => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
16560
+ )
16561
+ ]))),
16562
+ markups: optional3(z29.lazy(
16563
+ () => CreatePlanLicenseMarkupsResponse$inboundSchema
16564
+ ))
16565
+ }),
16566
+ z29.transform((v) => {
16567
+ return remap(v, {
16568
+ "credit_schema": "creditSchema"
16569
+ });
16570
+ })
16571
+ );
16572
+ var CreatePlanLicensePlanItemResponse$inboundSchema = z29.pipe(
16573
+ z29.object({
16574
+ threshold_billing: z29.optional(z29.nullable(z29.lazy(
16575
+ () => CreatePlanLicenseThresholdBillingResponse$inboundSchema
16576
+ ))),
16577
+ feature_id: string5(),
16578
+ included: optional3(number2()),
16579
+ unlimited: optional3(boolean2()),
16580
+ pooled: z29._default(boolean2(), false),
16581
+ reset: optional3(z29.lazy(
16582
+ () => CreatePlanLicenseResetResponse$inboundSchema
16583
+ )),
16584
+ price: optional3(z29.lazy(
16585
+ () => CreatePlanLicensePriceResponse$inboundSchema
16586
+ )),
16587
+ proration: optional3(z29.lazy(
16588
+ () => CreatePlanLicenseProrationResponse$inboundSchema
16589
+ )),
16590
+ rollover: optional3(z29.lazy(
16591
+ () => CreatePlanLicenseRolloverResponse$inboundSchema
16592
+ )),
16593
+ expiry: optional3(z29.lazy(
16594
+ () => CreatePlanLicenseExpiryResponse$inboundSchema
16595
+ )),
16596
+ feature_override: optional3(z29.lazy(
16597
+ () => CreatePlanLicenseFeatureOverrideResponse$inboundSchema
16598
+ ))
16599
+ }),
16600
+ z29.transform((v) => {
16601
+ return remap(v, {
16602
+ "threshold_billing": "thresholdBilling",
16603
+ "feature_id": "featureId",
16604
+ "feature_override": "featureOverride"
16605
+ });
16606
+ })
16607
+ );
16608
+ var CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseRemoveItemBillingMethodResponse);
16609
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum2);
16610
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum1);
16611
+ var CreatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
16612
+ CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
16613
+ CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
16614
+ ]);
16615
+ var CreatePlanLicensePlanItemFilterResponse$inboundSchema = z29.pipe(
16616
+ z29.object({
16617
+ feature_id: optional3(string5()),
16618
+ billing_method: optional3(
16619
+ CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
16620
+ ),
16621
+ interval: optional3(
16622
+ smartUnion([
16623
+ CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
16624
+ CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
16625
+ ])
16626
+ ),
16627
+ interval_count: optional3(number2()),
16628
+ included: optional3(number2())
16629
+ }),
16630
+ z29.transform((v) => {
16631
+ return remap(v, {
16632
+ "feature_id": "featureId",
16633
+ "billing_method": "billingMethod",
16634
+ "interval_count": "intervalCount"
16635
+ });
16636
+ })
16637
+ );
16638
+ var CreatePlanLicenseCustomizeResponse$inboundSchema = z29.pipe(
16639
+ z29.object({
16640
+ price: z29.optional(
16641
+ z29.nullable(
16642
+ z29.lazy(() => CreatePlanLicenseBasePriceResponse$inboundSchema)
16643
+ )
16644
+ ),
16645
+ add_items: optional3(
16646
+ z29.array(z29.lazy(() => CreatePlanLicensePlanItemResponse$inboundSchema))
16647
+ ),
16648
+ remove_items: optional3(
16649
+ z29.array(
16650
+ z29.lazy(() => CreatePlanLicensePlanItemFilterResponse$inboundSchema)
16651
+ )
16652
+ )
16653
+ }),
16654
+ z29.transform((v) => {
16655
+ return remap(v, {
16656
+ "add_items": "addItems",
16657
+ "remove_items": "removeItems"
16658
+ });
16659
+ })
16660
+ );
16661
+ var CreatePlanLicenseResponse$inboundSchema = z29.pipe(
16662
+ z29.object({
16663
+ license_plan_id: string5(),
16664
+ version: number2(),
16665
+ version_slug: optional3(string5()),
16666
+ included: number2(),
16667
+ prepaid_only: boolean2(),
16668
+ customize: optional3(
16669
+ z29.lazy(() => CreatePlanLicenseCustomizeResponse$inboundSchema)
16670
+ ),
16671
+ metadata: optional3(z29.record(z29.string(), z29.any())),
16672
+ plan: optional3(Plan$inboundSchema)
16673
+ }),
16674
+ z29.transform((v) => {
16675
+ return remap(v, {
16676
+ "license_plan_id": "licensePlanId",
16677
+ "version_slug": "versionSlug",
16678
+ "prepaid_only": "prepaidOnly"
16679
+ });
16680
+ })
16681
+ );
16063
16682
  var CreatePlanResponse$inboundSchema = z29.pipe(
16064
16683
  z29.object({
16065
16684
  id: string5(),
@@ -16089,6 +16708,9 @@ var CreatePlanResponse$inboundSchema = z29.pipe(
16089
16708
  base_variant_id: nullable(string5()),
16090
16709
  variant_details: optional3(
16091
16710
  z29.lazy(() => CreatePlanVariantDetails$inboundSchema)
16711
+ ),
16712
+ licenses: optional3(
16713
+ z29.array(z29.lazy(() => CreatePlanLicenseResponse$inboundSchema))
16092
16714
  )
16093
16715
  }),
16094
16716
  z29.transform((v) => {
@@ -24211,7 +24833,7 @@ var GetPlanPriceVariantDetailsInterval = {
24211
24833
  SemiAnnual: "semi_annual",
24212
24834
  Year: "year"
24213
24835
  };
24214
- var GetPlanAddItemResetInterval = {
24836
+ var GetPlanVariantDetailsResetInterval = {
24215
24837
  OneOff: "one_off",
24216
24838
  Minute: "minute",
24217
24839
  Hour: "hour",
@@ -24226,7 +24848,7 @@ var GetPlanVariantDetailsTierBehavior = {
24226
24848
  Graduated: "graduated",
24227
24849
  Volume: "volume"
24228
24850
  };
24229
- var GetPlanAddItemPriceInterval = {
24851
+ var GetPlanVariantDetailsAddItemPriceInterval = {
24230
24852
  OneOff: "one_off",
24231
24853
  Week: "week",
24232
24854
  Month: "month",
@@ -24234,17 +24856,17 @@ var GetPlanAddItemPriceInterval = {
24234
24856
  SemiAnnual: "semi_annual",
24235
24857
  Year: "year"
24236
24858
  };
24237
- var GetPlanAddItemBillingMethod = {
24859
+ var GetPlanVariantDetailsAddItemBillingMethod = {
24238
24860
  Prepaid: "prepaid",
24239
24861
  UsageBased: "usage_based"
24240
24862
  };
24241
- var GetPlanOnIncrease = {
24863
+ var GetPlanVariantDetailsOnIncrease = {
24242
24864
  BillImmediately: "bill_immediately",
24243
24865
  ProrateImmediately: "prorate_immediately",
24244
24866
  ProrateNextCycle: "prorate_next_cycle",
24245
24867
  BillNextCycle: "bill_next_cycle"
24246
24868
  };
24247
- var GetPlanOnDecrease = {
24869
+ var GetPlanVariantDetailsOnDecrease = {
24248
24870
  Prorate: "prorate",
24249
24871
  ProrateImmediately: "prorate_immediately",
24250
24872
  ProrateNextCycle: "prorate_next_cycle",
@@ -24270,11 +24892,11 @@ var GetPlanDimensionsToVariantDetailsEnum1 = {
24270
24892
  var GetPlanToVariantDetailsEnum = {
24271
24893
  Inf: "inf"
24272
24894
  };
24273
- var GetPlanRemoveItemBillingMethod = {
24895
+ var GetPlanVariantDetailsRemoveItemBillingMethod = {
24274
24896
  Prepaid: "prepaid",
24275
24897
  UsageBased: "usage_based"
24276
24898
  };
24277
- var GetPlanIntervalRemoveItemEnum2 = {
24899
+ var GetPlanIntervalVariantDetailsRemoveItemEnum2 = {
24278
24900
  OneOff: "one_off",
24279
24901
  Minute: "minute",
24280
24902
  Hour: "hour",
@@ -24285,7 +24907,7 @@ var GetPlanIntervalRemoveItemEnum2 = {
24285
24907
  SemiAnnual: "semi_annual",
24286
24908
  Year: "year"
24287
24909
  };
24288
- var GetPlanIntervalRemoveItemEnum1 = {
24910
+ var GetPlanIntervalVariantDetailsRemoveItemEnum1 = {
24289
24911
  OneOff: "one_off",
24290
24912
  Week: "week",
24291
24913
  Month: "month",
@@ -25045,7 +25667,7 @@ var GetPlanVariantDetailsAdditionalCurrency$inboundSchema = z56.object({
25045
25667
  currency: string5(),
25046
25668
  amount: number2()
25047
25669
  });
25048
- var GetPlanBasePrice$inboundSchema = z56.pipe(
25670
+ var GetPlanVariantDetailsBasePrice$inboundSchema = z56.pipe(
25049
25671
  z56.object({
25050
25672
  amount: number2(),
25051
25673
  interval: GetPlanPriceVariantDetailsInterval$inboundSchema,
@@ -25064,10 +25686,10 @@ var GetPlanBasePrice$inboundSchema = z56.pipe(
25064
25686
  var GetPlanVariantDetailsThresholdBilling$inboundSchema = z56.object({
25065
25687
  threshold: number2()
25066
25688
  });
25067
- var GetPlanAddItemResetInterval$inboundSchema = inboundSchema(GetPlanAddItemResetInterval);
25689
+ var GetPlanVariantDetailsResetInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsResetInterval);
25068
25690
  var GetPlanVariantDetailsReset$inboundSchema = z56.pipe(
25069
25691
  z56.object({
25070
- interval: GetPlanAddItemResetInterval$inboundSchema,
25692
+ interval: GetPlanVariantDetailsResetInterval$inboundSchema,
25071
25693
  interval_count: z56._default(number2(), 1)
25072
25694
  }),
25073
25695
  z56.transform((v) => {
@@ -25076,7 +25698,7 @@ var GetPlanVariantDetailsReset$inboundSchema = z56.pipe(
25076
25698
  });
25077
25699
  })
25078
25700
  );
25079
- var GetPlanAddItemAdditionalCurrency$inboundSchema = z56.object({
25701
+ var GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z56.object({
25080
25702
  currency: string5(),
25081
25703
  amount: number2()
25082
25704
  });
@@ -25110,24 +25732,24 @@ var GetPlanVariantDetailsPriceTier$inboundSchema = z56.pipe(
25110
25732
  })
25111
25733
  );
25112
25734
  var GetPlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(GetPlanVariantDetailsTierBehavior);
25113
- var GetPlanAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanAddItemPriceInterval);
25114
- var GetPlanAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanAddItemBillingMethod);
25735
+ var GetPlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemPriceInterval);
25736
+ var GetPlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemBillingMethod);
25115
25737
  var GetPlanVariantDetailsPrice$inboundSchema = z56.pipe(
25116
25738
  z56.object({
25117
25739
  amount: optional3(number2()),
25118
- additional_currencies: optional3(
25119
- z56.array(z56.lazy(() => GetPlanAddItemAdditionalCurrency$inboundSchema))
25120
- ),
25121
- tiers: optional3(
25122
- z56.array(z56.lazy(() => GetPlanVariantDetailsPriceTier$inboundSchema))
25123
- ),
25740
+ additional_currencies: optional3(z56.array(z56.lazy(
25741
+ () => GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
25742
+ ))),
25743
+ tiers: optional3(z56.array(z56.lazy(
25744
+ () => GetPlanVariantDetailsPriceTier$inboundSchema
25745
+ ))),
25124
25746
  tier_behavior: optional3(
25125
25747
  GetPlanVariantDetailsTierBehavior$inboundSchema
25126
25748
  ),
25127
- interval: GetPlanAddItemPriceInterval$inboundSchema,
25749
+ interval: GetPlanVariantDetailsAddItemPriceInterval$inboundSchema,
25128
25750
  interval_count: z56._default(number2(), 1),
25129
25751
  billing_units: z56._default(number2(), 1),
25130
- billing_method: GetPlanAddItemBillingMethod$inboundSchema,
25752
+ billing_method: GetPlanVariantDetailsAddItemBillingMethod$inboundSchema,
25131
25753
  max_purchase: z56.optional(z56.nullable(number2()))
25132
25754
  }),
25133
25755
  z56.transform((v) => {
@@ -25141,12 +25763,12 @@ var GetPlanVariantDetailsPrice$inboundSchema = z56.pipe(
25141
25763
  });
25142
25764
  })
25143
25765
  );
25144
- var GetPlanOnIncrease$inboundSchema = inboundSchema(GetPlanOnIncrease);
25145
- var GetPlanOnDecrease$inboundSchema = inboundSchema(GetPlanOnDecrease);
25146
- var GetPlanProration$inboundSchema = z56.pipe(
25766
+ var GetPlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnIncrease);
25767
+ var GetPlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnDecrease);
25768
+ var GetPlanVariantDetailsProration$inboundSchema = z56.pipe(
25147
25769
  z56.object({
25148
- on_increase: GetPlanOnIncrease$inboundSchema,
25149
- on_decrease: GetPlanOnDecrease$inboundSchema
25770
+ on_increase: GetPlanVariantDetailsOnIncrease$inboundSchema,
25771
+ on_decrease: GetPlanVariantDetailsOnDecrease$inboundSchema
25150
25772
  }),
25151
25773
  z56.transform((v) => {
25152
25774
  return remap(v, {
@@ -25417,7 +26039,7 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z56.pipe(
25417
26039
  });
25418
26040
  })
25419
26041
  );
25420
- var GetPlanPlanItem$inboundSchema = z56.pipe(
26042
+ var GetPlanVariantDetailsPlanItem$inboundSchema = z56.pipe(
25421
26043
  z56.object({
25422
26044
  threshold_billing: z56.optional(z56.nullable(z56.lazy(
25423
26045
  () => GetPlanVariantDetailsThresholdBilling$inboundSchema
@@ -25432,7 +26054,9 @@ var GetPlanPlanItem$inboundSchema = z56.pipe(
25432
26054
  price: optional3(
25433
26055
  z56.lazy(() => GetPlanVariantDetailsPrice$inboundSchema)
25434
26056
  ),
25435
- proration: optional3(z56.lazy(() => GetPlanProration$inboundSchema)),
26057
+ proration: optional3(
26058
+ z56.lazy(() => GetPlanVariantDetailsProration$inboundSchema)
26059
+ ),
25436
26060
  rollover: optional3(
25437
26061
  z56.lazy(() => GetPlanVariantDetailsRollover$inboundSchema)
25438
26062
  ),
@@ -25451,23 +26075,23 @@ var GetPlanPlanItem$inboundSchema = z56.pipe(
25451
26075
  });
25452
26076
  })
25453
26077
  );
25454
- var GetPlanRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanRemoveItemBillingMethod);
25455
- var GetPlanIntervalRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalRemoveItemEnum2);
25456
- var GetPlanIntervalRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalRemoveItemEnum1);
25457
- var GetPlanIntervalUnion$inboundSchema = smartUnion([
25458
- GetPlanIntervalRemoveItemEnum1$inboundSchema,
25459
- GetPlanIntervalRemoveItemEnum2$inboundSchema
26078
+ var GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsRemoveItemBillingMethod);
26079
+ var GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum2);
26080
+ var GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum1);
26081
+ var GetPlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
26082
+ GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
26083
+ GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
25460
26084
  ]);
25461
- var GetPlanPlanItemFilter$inboundSchema = z56.pipe(
26085
+ var GetPlanVariantDetailsPlanItemFilter$inboundSchema = z56.pipe(
25462
26086
  z56.object({
25463
26087
  feature_id: optional3(string5()),
25464
26088
  billing_method: optional3(
25465
- GetPlanRemoveItemBillingMethod$inboundSchema
26089
+ GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema
25466
26090
  ),
25467
26091
  interval: optional3(
25468
26092
  smartUnion([
25469
- GetPlanIntervalRemoveItemEnum1$inboundSchema,
25470
- GetPlanIntervalRemoveItemEnum2$inboundSchema
26093
+ GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
26094
+ GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
25471
26095
  ])
25472
26096
  ),
25473
26097
  interval_count: optional3(number2()),
@@ -25691,6 +26315,96 @@ var GetPlanIntervalUpsertLicenseRemoveItemEnum1 = {
25691
26315
  SemiAnnual: "semi_annual",
25692
26316
  Year: "year"
25693
26317
  };
26318
+ var GetPlanPriceLicenseInterval = {
26319
+ OneOff: "one_off",
26320
+ Week: "week",
26321
+ Month: "month",
26322
+ Quarter: "quarter",
26323
+ SemiAnnual: "semi_annual",
26324
+ Year: "year"
26325
+ };
26326
+ var GetPlanLicenseResetInterval = {
26327
+ OneOff: "one_off",
26328
+ Minute: "minute",
26329
+ Hour: "hour",
26330
+ Day: "day",
26331
+ Week: "week",
26332
+ Month: "month",
26333
+ Quarter: "quarter",
26334
+ SemiAnnual: "semi_annual",
26335
+ Year: "year"
26336
+ };
26337
+ var GetPlanLicenseTierBehavior = {
26338
+ Graduated: "graduated",
26339
+ Volume: "volume"
26340
+ };
26341
+ var GetPlanLicenseAddItemPriceInterval = {
26342
+ OneOff: "one_off",
26343
+ Week: "week",
26344
+ Month: "month",
26345
+ Quarter: "quarter",
26346
+ SemiAnnual: "semi_annual",
26347
+ Year: "year"
26348
+ };
26349
+ var GetPlanLicenseAddItemBillingMethod = {
26350
+ Prepaid: "prepaid",
26351
+ UsageBased: "usage_based"
26352
+ };
26353
+ var GetPlanLicenseOnIncrease = {
26354
+ BillImmediately: "bill_immediately",
26355
+ ProrateImmediately: "prorate_immediately",
26356
+ ProrateNextCycle: "prorate_next_cycle",
26357
+ BillNextCycle: "bill_next_cycle"
26358
+ };
26359
+ var GetPlanLicenseOnDecrease = {
26360
+ Prorate: "prorate",
26361
+ ProrateImmediately: "prorate_immediately",
26362
+ ProrateNextCycle: "prorate_next_cycle",
26363
+ None: "none",
26364
+ NoProrations: "no_prorations"
26365
+ };
26366
+ var GetPlanLicenseExpiryDurationType = {
26367
+ Month: "month",
26368
+ Forever: "forever"
26369
+ };
26370
+ var GetPlanLicenseDuration = {
26371
+ Day: "day",
26372
+ Week: "week",
26373
+ Month: "month",
26374
+ Year: "year"
26375
+ };
26376
+ var GetPlanDimensionsToLicenseEnum2 = {
26377
+ Inf: "inf"
26378
+ };
26379
+ var GetPlanDimensionsToLicenseEnum1 = {
26380
+ Inf: "inf"
26381
+ };
26382
+ var GetPlanToLicenseEnum = {
26383
+ Inf: "inf"
26384
+ };
26385
+ var GetPlanLicenseRemoveItemBillingMethod = {
26386
+ Prepaid: "prepaid",
26387
+ UsageBased: "usage_based"
26388
+ };
26389
+ var GetPlanIntervalLicenseRemoveItemEnum2 = {
26390
+ OneOff: "one_off",
26391
+ Minute: "minute",
26392
+ Hour: "hour",
26393
+ Day: "day",
26394
+ Week: "week",
26395
+ Month: "month",
26396
+ Quarter: "quarter",
26397
+ SemiAnnual: "semi_annual",
26398
+ Year: "year"
26399
+ };
26400
+ var GetPlanIntervalLicenseRemoveItemEnum1 = {
26401
+ OneOff: "one_off",
26402
+ Week: "week",
26403
+ Month: "month",
26404
+ Quarter: "quarter",
26405
+ SemiAnnual: "semi_annual",
26406
+ Year: "year"
26407
+ };
25694
26408
  var GetPlanVariantDetailsOverageAllowed$inboundSchema = z57.pipe(
25695
26409
  z57.object({
25696
26410
  feature_id: string5(),
@@ -26219,11 +26933,15 @@ var GetPlanRemoveLicense$inboundSchema = z57.pipe(
26219
26933
  });
26220
26934
  })
26221
26935
  );
26222
- var GetPlanCustomize$inboundSchema = z57.pipe(
26936
+ var GetPlanVariantDetailsCustomize$inboundSchema = z57.pipe(
26223
26937
  z57.object({
26224
- price: z57.optional(z57.nullable(GetPlanBasePrice$inboundSchema)),
26225
- add_items: optional3(z57.array(GetPlanPlanItem$inboundSchema)),
26226
- remove_items: optional3(z57.array(GetPlanPlanItemFilter$inboundSchema)),
26938
+ price: z57.optional(z57.nullable(GetPlanVariantDetailsBasePrice$inboundSchema)),
26939
+ add_items: optional3(
26940
+ z57.array(GetPlanVariantDetailsPlanItem$inboundSchema)
26941
+ ),
26942
+ remove_items: optional3(
26943
+ z57.array(GetPlanVariantDetailsPlanItemFilter$inboundSchema)
26944
+ ),
26227
26945
  free_trial: z57.optional(z57.nullable(GetPlanFreeTrialParams$inboundSchema)),
26228
26946
  billing_controls: optional3(
26229
26947
  z57.lazy(() => GetPlanVariantDetailsBillingControls$inboundSchema)
@@ -26249,7 +26967,9 @@ var GetPlanCustomize$inboundSchema = z57.pipe(
26249
26967
  var GetPlanVariantDetails$inboundSchema = z57.pipe(
26250
26968
  z57.object({
26251
26969
  base_plan_id: string5(),
26252
- customize: optional3(z57.lazy(() => GetPlanCustomize$inboundSchema))
26970
+ customize: optional3(
26971
+ z57.lazy(() => GetPlanVariantDetailsCustomize$inboundSchema)
26972
+ )
26253
26973
  }),
26254
26974
  z57.transform((v) => {
26255
26975
  return remap(v, {
@@ -26257,6 +26977,464 @@ var GetPlanVariantDetails$inboundSchema = z57.pipe(
26257
26977
  });
26258
26978
  })
26259
26979
  );
26980
+ var GetPlanPriceLicenseInterval$inboundSchema = inboundSchema(GetPlanPriceLicenseInterval);
26981
+ var GetPlanLicenseAdditionalCurrency$inboundSchema = z57.object({
26982
+ currency: string5(),
26983
+ amount: number2()
26984
+ });
26985
+ var GetPlanLicenseBasePrice$inboundSchema = z57.pipe(
26986
+ z57.object({
26987
+ amount: number2(),
26988
+ interval: GetPlanPriceLicenseInterval$inboundSchema,
26989
+ interval_count: z57._default(number2(), 1),
26990
+ additional_currencies: optional3(
26991
+ z57.array(z57.lazy(() => GetPlanLicenseAdditionalCurrency$inboundSchema))
26992
+ )
26993
+ }),
26994
+ z57.transform((v) => {
26995
+ return remap(v, {
26996
+ "interval_count": "intervalCount",
26997
+ "additional_currencies": "additionalCurrencies"
26998
+ });
26999
+ })
27000
+ );
27001
+ var GetPlanLicenseThresholdBilling$inboundSchema = z57.object({
27002
+ threshold: number2()
27003
+ });
27004
+ var GetPlanLicenseResetInterval$inboundSchema = inboundSchema(GetPlanLicenseResetInterval);
27005
+ var GetPlanLicenseReset$inboundSchema = z57.pipe(
27006
+ z57.object({
27007
+ interval: GetPlanLicenseResetInterval$inboundSchema,
27008
+ interval_count: z57._default(number2(), 1)
27009
+ }),
27010
+ z57.transform((v) => {
27011
+ return remap(v, {
27012
+ "interval_count": "intervalCount"
27013
+ });
27014
+ })
27015
+ );
27016
+ var GetPlanLicenseAddItemAdditionalCurrency$inboundSchema = z57.object({
27017
+ currency: string5(),
27018
+ amount: number2()
27019
+ });
27020
+ var GetPlanLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
27021
+ var GetPlanLicenseTierAdditionalCurrency$inboundSchema = z57.pipe(
27022
+ z57.object({
27023
+ currency: string5(),
27024
+ amount: optional3(number2()),
27025
+ flat_amount: optional3(number2())
27026
+ }),
27027
+ z57.transform((v) => {
27028
+ return remap(v, {
27029
+ "flat_amount": "flatAmount"
27030
+ });
27031
+ })
27032
+ );
27033
+ var GetPlanLicensePriceTier$inboundSchema = z57.pipe(
27034
+ z57.object({
27035
+ to: smartUnion([number2(), string5()]),
27036
+ amount: number2(),
27037
+ flat_amount: optional3(number2()),
27038
+ additional_currencies: optional3(
27039
+ z57.array(z57.lazy(() => GetPlanLicenseTierAdditionalCurrency$inboundSchema))
27040
+ )
27041
+ }),
27042
+ z57.transform((v) => {
27043
+ return remap(v, {
27044
+ "flat_amount": "flatAmount",
27045
+ "additional_currencies": "additionalCurrencies"
27046
+ });
27047
+ })
27048
+ );
27049
+ var GetPlanLicenseTierBehavior$inboundSchema = inboundSchema(GetPlanLicenseTierBehavior);
27050
+ var GetPlanLicenseAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanLicenseAddItemPriceInterval);
27051
+ var GetPlanLicenseAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseAddItemBillingMethod);
27052
+ var GetPlanLicensePrice$inboundSchema = z57.pipe(
27053
+ z57.object({
27054
+ amount: optional3(number2()),
27055
+ additional_currencies: optional3(z57.array(z57.lazy(
27056
+ () => GetPlanLicenseAddItemAdditionalCurrency$inboundSchema
27057
+ ))),
27058
+ tiers: optional3(z57.array(z57.lazy(
27059
+ () => GetPlanLicensePriceTier$inboundSchema
27060
+ ))),
27061
+ tier_behavior: optional3(GetPlanLicenseTierBehavior$inboundSchema),
27062
+ interval: GetPlanLicenseAddItemPriceInterval$inboundSchema,
27063
+ interval_count: z57._default(number2(), 1),
27064
+ billing_units: z57._default(number2(), 1),
27065
+ billing_method: GetPlanLicenseAddItemBillingMethod$inboundSchema,
27066
+ max_purchase: z57.optional(z57.nullable(number2()))
27067
+ }),
27068
+ z57.transform((v) => {
27069
+ return remap(v, {
27070
+ "additional_currencies": "additionalCurrencies",
27071
+ "tier_behavior": "tierBehavior",
27072
+ "interval_count": "intervalCount",
27073
+ "billing_units": "billingUnits",
27074
+ "billing_method": "billingMethod",
27075
+ "max_purchase": "maxPurchase"
27076
+ });
27077
+ })
27078
+ );
27079
+ var GetPlanLicenseOnIncrease$inboundSchema = inboundSchema(GetPlanLicenseOnIncrease);
27080
+ var GetPlanLicenseOnDecrease$inboundSchema = inboundSchema(GetPlanLicenseOnDecrease);
27081
+ var GetPlanLicenseProration$inboundSchema = z57.pipe(
27082
+ z57.object({
27083
+ on_increase: GetPlanLicenseOnIncrease$inboundSchema,
27084
+ on_decrease: GetPlanLicenseOnDecrease$inboundSchema
27085
+ }),
27086
+ z57.transform((v) => {
27087
+ return remap(v, {
27088
+ "on_increase": "onIncrease",
27089
+ "on_decrease": "onDecrease"
27090
+ });
27091
+ })
27092
+ );
27093
+ var GetPlanLicenseExpiryDurationType$inboundSchema = inboundSchema(GetPlanLicenseExpiryDurationType);
27094
+ var GetPlanLicenseRollover$inboundSchema = z57.pipe(
27095
+ z57.object({
27096
+ max: optional3(number2()),
27097
+ max_percentage: optional3(number2()),
27098
+ expiry_duration_type: GetPlanLicenseExpiryDurationType$inboundSchema,
27099
+ expiry_duration_length: optional3(number2())
27100
+ }),
27101
+ z57.transform((v) => {
27102
+ return remap(v, {
27103
+ "max_percentage": "maxPercentage",
27104
+ "expiry_duration_type": "expiryDurationType",
27105
+ "expiry_duration_length": "expiryDurationLength"
27106
+ });
27107
+ })
27108
+ );
27109
+ var GetPlanLicenseDuration$inboundSchema = inboundSchema(GetPlanLicenseDuration);
27110
+ var GetPlanLicenseExpiry$inboundSchema = z57.object({
27111
+ duration: GetPlanLicenseDuration$inboundSchema,
27112
+ length: number2()
27113
+ });
27114
+ var GetPlanDimensionsLicense4$inboundSchema = z57.pipe(
27115
+ z57.object({
27116
+ match: z57.record(z57.string(), string5()),
27117
+ priority: optional3(number2()),
27118
+ credit_cost: number2()
27119
+ }),
27120
+ z57.transform((v) => {
27121
+ return remap(v, {
27122
+ "credit_cost": "creditCost"
27123
+ });
27124
+ })
27125
+ );
27126
+ var GetPlanDimensionsToLicenseEnum2$inboundSchema = z57.enum(GetPlanDimensionsToLicenseEnum2);
27127
+ var GetPlanDimensionsLicenseToUnion2$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum2$inboundSchema]);
27128
+ var GetPlanDimensionsLicenseTier2$inboundSchema = z57.pipe(
27129
+ z57.object({
27130
+ to: smartUnion([
27131
+ number2(),
27132
+ GetPlanDimensionsToLicenseEnum2$inboundSchema
27133
+ ]),
27134
+ credit_cost: number2()
27135
+ }),
27136
+ z57.transform((v) => {
27137
+ return remap(v, {
27138
+ "credit_cost": "creditCost"
27139
+ });
27140
+ })
27141
+ );
27142
+ var GetPlanDimensionsLicense3$inboundSchema = z57.pipe(
27143
+ z57.object({
27144
+ match: z57.record(z57.string(), string5()),
27145
+ priority: optional3(number2()),
27146
+ tier_behavior: literal3("graduated"),
27147
+ tiers: z57.array(z57.lazy(() => GetPlanDimensionsLicenseTier2$inboundSchema))
27148
+ }),
27149
+ z57.transform((v) => {
27150
+ return remap(v, {
27151
+ "tier_behavior": "tierBehavior"
27152
+ });
27153
+ })
27154
+ );
27155
+ var GetPlanLicenseDimensionsUnion2$inboundSchema = smartUnion([
27156
+ z57.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
27157
+ z57.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
27158
+ ]);
27159
+ var GetPlanLicenseMultipliers2$inboundSchema = z57.object({
27160
+ match: z57.record(z57.string(), string5()),
27161
+ factor: optional3(number2()),
27162
+ add: optional3(number2())
27163
+ });
27164
+ var GetPlanCreditSchemaLicense2$inboundSchema = z57.pipe(
27165
+ z57.object({
27166
+ metered_feature_id: string5(),
27167
+ billing_units: optional3(number2()),
27168
+ dimensions: optional3(z57.record(
27169
+ z57.string(),
27170
+ smartUnion([
27171
+ z57.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
27172
+ z57.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
27173
+ ])
27174
+ )),
27175
+ multipliers: optional3(z57.record(
27176
+ z57.string(),
27177
+ z57.lazy(() => GetPlanLicenseMultipliers2$inboundSchema)
27178
+ )),
27179
+ credit_cost: number2()
27180
+ }),
27181
+ z57.transform((v) => {
27182
+ return remap(v, {
27183
+ "metered_feature_id": "meteredFeatureId",
27184
+ "billing_units": "billingUnits",
27185
+ "credit_cost": "creditCost"
27186
+ });
27187
+ })
27188
+ );
27189
+ var GetPlanDimensionsLicense2$inboundSchema = z57.pipe(
27190
+ z57.object({
27191
+ match: z57.record(z57.string(), string5()),
27192
+ priority: optional3(number2()),
27193
+ credit_cost: number2()
27194
+ }),
27195
+ z57.transform((v) => {
27196
+ return remap(v, {
27197
+ "credit_cost": "creditCost"
27198
+ });
27199
+ })
27200
+ );
27201
+ var GetPlanDimensionsToLicenseEnum1$inboundSchema = z57.enum(GetPlanDimensionsToLicenseEnum1);
27202
+ var GetPlanDimensionsLicenseToUnion1$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum1$inboundSchema]);
27203
+ var GetPlanDimensionsLicenseTier1$inboundSchema = z57.pipe(
27204
+ z57.object({
27205
+ to: smartUnion([
27206
+ number2(),
27207
+ GetPlanDimensionsToLicenseEnum1$inboundSchema
27208
+ ]),
27209
+ credit_cost: number2()
27210
+ }),
27211
+ z57.transform((v) => {
27212
+ return remap(v, {
27213
+ "credit_cost": "creditCost"
27214
+ });
27215
+ })
27216
+ );
27217
+ var GetPlanDimensionsLicense1$inboundSchema = z57.pipe(
27218
+ z57.object({
27219
+ match: z57.record(z57.string(), string5()),
27220
+ priority: optional3(number2()),
27221
+ tier_behavior: literal3("graduated"),
27222
+ tiers: z57.array(z57.lazy(() => GetPlanDimensionsLicenseTier1$inboundSchema))
27223
+ }),
27224
+ z57.transform((v) => {
27225
+ return remap(v, {
27226
+ "tier_behavior": "tierBehavior"
27227
+ });
27228
+ })
27229
+ );
27230
+ var GetPlanLicenseDimensionsUnion1$inboundSchema = smartUnion([
27231
+ z57.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
27232
+ z57.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
27233
+ ]);
27234
+ var GetPlanLicenseMultipliers1$inboundSchema = z57.object({
27235
+ match: z57.record(z57.string(), string5()),
27236
+ factor: optional3(number2()),
27237
+ add: optional3(number2())
27238
+ });
27239
+ var GetPlanToLicenseEnum$inboundSchema = z57.enum(GetPlanToLicenseEnum);
27240
+ var GetPlanLicenseFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]);
27241
+ var GetPlanLicenseFeatureOverrideTier$inboundSchema = z57.pipe(
27242
+ z57.object({
27243
+ to: smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]),
27244
+ credit_cost: number2()
27245
+ }),
27246
+ z57.transform((v) => {
27247
+ return remap(v, {
27248
+ "credit_cost": "creditCost"
27249
+ });
27250
+ })
27251
+ );
27252
+ var GetPlanCreditSchemaLicense1$inboundSchema = z57.pipe(
27253
+ z57.object({
27254
+ metered_feature_id: string5(),
27255
+ billing_units: optional3(number2()),
27256
+ dimensions: optional3(z57.record(
27257
+ z57.string(),
27258
+ smartUnion([
27259
+ z57.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
27260
+ z57.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
27261
+ ])
27262
+ )),
27263
+ multipliers: optional3(z57.record(
27264
+ z57.string(),
27265
+ z57.lazy(() => GetPlanLicenseMultipliers1$inboundSchema)
27266
+ )),
27267
+ tier_behavior: literal3("graduated"),
27268
+ tiers: z57.array(z57.lazy(
27269
+ () => GetPlanLicenseFeatureOverrideTier$inboundSchema
27270
+ ))
27271
+ }),
27272
+ z57.transform((v) => {
27273
+ return remap(v, {
27274
+ "metered_feature_id": "meteredFeatureId",
27275
+ "billing_units": "billingUnits",
27276
+ "tier_behavior": "tierBehavior"
27277
+ });
27278
+ })
27279
+ );
27280
+ var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
27281
+ z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
27282
+ z57.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
27283
+ ]);
27284
+ var GetPlanLicenseProviderMarkups$inboundSchema = z57.object({
27285
+ markup: number2()
27286
+ });
27287
+ var GetPlanLicenseModelMarkups$inboundSchema = z57.pipe(
27288
+ z57.object({
27289
+ markup: optional3(number2()),
27290
+ input_cost: optional3(number2()),
27291
+ output_cost: optional3(number2())
27292
+ }),
27293
+ z57.transform((v) => {
27294
+ return remap(v, {
27295
+ "input_cost": "inputCost",
27296
+ "output_cost": "outputCost"
27297
+ });
27298
+ })
27299
+ );
27300
+ var GetPlanLicenseMarkups$inboundSchema = z57.pipe(
27301
+ z57.object({
27302
+ default_markup: optional3(number2()),
27303
+ provider_markups: z57.optional(z57.nullable(z57.record(
27304
+ z57.string(),
27305
+ z57.lazy(() => GetPlanLicenseProviderMarkups$inboundSchema)
27306
+ ))),
27307
+ model_markups: z57.optional(z57.nullable(z57.record(
27308
+ z57.string(),
27309
+ z57.lazy(() => GetPlanLicenseModelMarkups$inboundSchema)
27310
+ )))
27311
+ }),
27312
+ z57.transform((v) => {
27313
+ return remap(v, {
27314
+ "default_markup": "defaultMarkup",
27315
+ "provider_markups": "providerMarkups",
27316
+ "model_markups": "modelMarkups"
27317
+ });
27318
+ })
27319
+ );
27320
+ var GetPlanLicenseFeatureOverride$inboundSchema = z57.pipe(
27321
+ z57.object({
27322
+ credit_schema: optional3(z57.array(smartUnion([
27323
+ z57.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
27324
+ z57.lazy(
27325
+ () => GetPlanCreditSchemaLicense2$inboundSchema
27326
+ )
27327
+ ]))),
27328
+ markups: optional3(z57.lazy(
27329
+ () => GetPlanLicenseMarkups$inboundSchema
27330
+ ))
27331
+ }),
27332
+ z57.transform((v) => {
27333
+ return remap(v, {
27334
+ "credit_schema": "creditSchema"
27335
+ });
27336
+ })
27337
+ );
27338
+ var GetPlanLicensePlanItem$inboundSchema = z57.pipe(
27339
+ z57.object({
27340
+ threshold_billing: z57.optional(
27341
+ z57.nullable(z57.lazy(() => GetPlanLicenseThresholdBilling$inboundSchema))
27342
+ ),
27343
+ feature_id: string5(),
27344
+ included: optional3(number2()),
27345
+ unlimited: optional3(boolean2()),
27346
+ pooled: z57._default(boolean2(), false),
27347
+ reset: optional3(z57.lazy(() => GetPlanLicenseReset$inboundSchema)),
27348
+ price: optional3(z57.lazy(() => GetPlanLicensePrice$inboundSchema)),
27349
+ proration: optional3(
27350
+ z57.lazy(() => GetPlanLicenseProration$inboundSchema)
27351
+ ),
27352
+ rollover: optional3(
27353
+ z57.lazy(() => GetPlanLicenseRollover$inboundSchema)
27354
+ ),
27355
+ expiry: optional3(z57.lazy(() => GetPlanLicenseExpiry$inboundSchema)),
27356
+ feature_override: optional3(
27357
+ z57.lazy(() => GetPlanLicenseFeatureOverride$inboundSchema)
27358
+ )
27359
+ }),
27360
+ z57.transform((v) => {
27361
+ return remap(v, {
27362
+ "threshold_billing": "thresholdBilling",
27363
+ "feature_id": "featureId",
27364
+ "feature_override": "featureOverride"
27365
+ });
27366
+ })
27367
+ );
27368
+ var GetPlanLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseRemoveItemBillingMethod);
27369
+ var GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum2);
27370
+ var GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum1);
27371
+ var GetPlanLicenseIntervalUnion$inboundSchema = smartUnion([
27372
+ GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
27373
+ GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
27374
+ ]);
27375
+ var GetPlanLicensePlanItemFilter$inboundSchema = z57.pipe(
27376
+ z57.object({
27377
+ feature_id: optional3(string5()),
27378
+ billing_method: optional3(
27379
+ GetPlanLicenseRemoveItemBillingMethod$inboundSchema
27380
+ ),
27381
+ interval: optional3(
27382
+ smartUnion([
27383
+ GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
27384
+ GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
27385
+ ])
27386
+ ),
27387
+ interval_count: optional3(number2()),
27388
+ included: optional3(number2())
27389
+ }),
27390
+ z57.transform((v) => {
27391
+ return remap(v, {
27392
+ "feature_id": "featureId",
27393
+ "billing_method": "billingMethod",
27394
+ "interval_count": "intervalCount"
27395
+ });
27396
+ })
27397
+ );
27398
+ var GetPlanLicenseCustomize$inboundSchema = z57.pipe(
27399
+ z57.object({
27400
+ price: z57.optional(
27401
+ z57.nullable(z57.lazy(() => GetPlanLicenseBasePrice$inboundSchema))
27402
+ ),
27403
+ add_items: optional3(
27404
+ z57.array(z57.lazy(() => GetPlanLicensePlanItem$inboundSchema))
27405
+ ),
27406
+ remove_items: optional3(
27407
+ z57.array(z57.lazy(() => GetPlanLicensePlanItemFilter$inboundSchema))
27408
+ )
27409
+ }),
27410
+ z57.transform((v) => {
27411
+ return remap(v, {
27412
+ "add_items": "addItems",
27413
+ "remove_items": "removeItems"
27414
+ });
27415
+ })
27416
+ );
27417
+ var GetPlanLicense$inboundSchema = z57.pipe(
27418
+ z57.object({
27419
+ license_plan_id: string5(),
27420
+ version: number2(),
27421
+ version_slug: optional3(string5()),
27422
+ included: number2(),
27423
+ prepaid_only: boolean2(),
27424
+ customize: optional3(
27425
+ z57.lazy(() => GetPlanLicenseCustomize$inboundSchema)
27426
+ ),
27427
+ metadata: optional3(z57.record(z57.string(), z57.any())),
27428
+ plan: optional3(Plan$inboundSchema)
27429
+ }),
27430
+ z57.transform((v) => {
27431
+ return remap(v, {
27432
+ "license_plan_id": "licensePlanId",
27433
+ "version_slug": "versionSlug",
27434
+ "prepaid_only": "prepaidOnly"
27435
+ });
27436
+ })
27437
+ );
26260
27438
  var GetPlanResponse$inboundSchema = z57.pipe(
26261
27439
  z57.object({
26262
27440
  id: string5(),
@@ -26284,6 +27462,9 @@ var GetPlanResponse$inboundSchema = z57.pipe(
26284
27462
  base_variant_id: nullable(string5()),
26285
27463
  variant_details: optional3(
26286
27464
  z57.lazy(() => GetPlanVariantDetails$inboundSchema)
27465
+ ),
27466
+ licenses: optional3(
27467
+ z57.array(z57.lazy(() => GetPlanLicense$inboundSchema))
26287
27468
  )
26288
27469
  }),
26289
27470
  z57.transform((v) => {
@@ -48212,7 +49393,7 @@ var UpdatePlanDimensionsToItemRequestBodyEnum1 = {
48212
49393
  var UpdatePlanToItemRequestBodyEnum = {
48213
49394
  Inf: "inf"
48214
49395
  };
48215
- var UpdatePlanPriceLicenseInterval = {
49396
+ var UpdatePlanPriceLicenseIntervalRequestBody = {
48216
49397
  OneOff: "one_off",
48217
49398
  Week: "week",
48218
49399
  Month: "month",
@@ -48220,7 +49401,7 @@ var UpdatePlanPriceLicenseInterval = {
48220
49401
  SemiAnnual: "semi_annual",
48221
49402
  Year: "year"
48222
49403
  };
48223
- var UpdatePlanLicenseResetInterval = {
49404
+ var UpdatePlanLicenseResetIntervalRequestBody = {
48224
49405
  OneOff: "one_off",
48225
49406
  Minute: "minute",
48226
49407
  Hour: "hour",
@@ -48231,11 +49412,11 @@ var UpdatePlanLicenseResetInterval = {
48231
49412
  SemiAnnual: "semi_annual",
48232
49413
  Year: "year"
48233
49414
  };
48234
- var UpdatePlanLicenseTierBehavior = {
49415
+ var UpdatePlanLicenseTierBehaviorRequestBody = {
48235
49416
  Graduated: "graduated",
48236
49417
  Volume: "volume"
48237
49418
  };
48238
- var UpdatePlanLicenseAddItemPriceInterval = {
49419
+ var UpdatePlanLicenseAddItemPriceIntervalRequestBody = {
48239
49420
  OneOff: "one_off",
48240
49421
  Week: "week",
48241
49422
  Month: "month",
@@ -48243,47 +49424,47 @@ var UpdatePlanLicenseAddItemPriceInterval = {
48243
49424
  SemiAnnual: "semi_annual",
48244
49425
  Year: "year"
48245
49426
  };
48246
- var UpdatePlanLicenseAddItemBillingMethod = {
49427
+ var UpdatePlanLicenseAddItemBillingMethodRequestBody = {
48247
49428
  Prepaid: "prepaid",
48248
49429
  UsageBased: "usage_based"
48249
49430
  };
48250
- var UpdatePlanLicenseOnIncrease = {
49431
+ var UpdatePlanLicenseOnIncreaseRequestBody = {
48251
49432
  BillImmediately: "bill_immediately",
48252
49433
  ProrateImmediately: "prorate_immediately",
48253
49434
  ProrateNextCycle: "prorate_next_cycle",
48254
49435
  BillNextCycle: "bill_next_cycle"
48255
49436
  };
48256
- var UpdatePlanLicenseOnDecrease = {
49437
+ var UpdatePlanLicenseOnDecreaseRequestBody = {
48257
49438
  Prorate: "prorate",
48258
49439
  ProrateImmediately: "prorate_immediately",
48259
49440
  ProrateNextCycle: "prorate_next_cycle",
48260
49441
  None: "none",
48261
49442
  NoProrations: "no_prorations"
48262
49443
  };
48263
- var UpdatePlanLicenseExpiryDurationType = {
49444
+ var UpdatePlanLicenseExpiryDurationTypeRequestBody = {
48264
49445
  Month: "month",
48265
49446
  Forever: "forever"
48266
49447
  };
48267
- var UpdatePlanLicenseDuration = {
49448
+ var UpdatePlanLicenseDurationRequestBody = {
48268
49449
  Day: "day",
48269
49450
  Week: "week",
48270
49451
  Month: "month",
48271
49452
  Year: "year"
48272
49453
  };
48273
- var UpdatePlanDimensionsToLicenseEnum2 = {
49454
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum2 = {
48274
49455
  Inf: "inf"
48275
49456
  };
48276
- var UpdatePlanDimensionsToLicenseEnum1 = {
49457
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum1 = {
48277
49458
  Inf: "inf"
48278
49459
  };
48279
- var UpdatePlanToLicenseEnum = {
49460
+ var UpdatePlanToLicenseRequestBodyEnum = {
48280
49461
  Inf: "inf"
48281
49462
  };
48282
- var UpdatePlanLicenseRemoveItemBillingMethod = {
49463
+ var UpdatePlanLicenseRemoveItemBillingMethodRequestBody = {
48283
49464
  Prepaid: "prepaid",
48284
49465
  UsageBased: "usage_based"
48285
49466
  };
48286
- var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
49467
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2 = {
48287
49468
  OneOff: "one_off",
48288
49469
  Minute: "minute",
48289
49470
  Hour: "hour",
@@ -48294,7 +49475,7 @@ var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
48294
49475
  SemiAnnual: "semi_annual",
48295
49476
  Year: "year"
48296
49477
  };
48297
- var UpdatePlanIntervalLicenseRemoveItemEnum1 = {
49478
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1 = {
48298
49479
  OneOff: "one_off",
48299
49480
  Week: "week",
48300
49481
  Month: "month",
@@ -48825,19 +50006,21 @@ var UpdatePlanItemPlanItem$outboundSchema = z113.pipe(
48825
50006
  });
48826
50007
  })
48827
50008
  );
48828
- var UpdatePlanPriceLicenseInterval$outboundSchema = z113.enum(UpdatePlanPriceLicenseInterval);
48829
- var UpdatePlanLicenseAdditionalCurrency$outboundSchema = z113.object({
50009
+ var UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema = z113.enum(
50010
+ UpdatePlanPriceLicenseIntervalRequestBody
50011
+ );
50012
+ var UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z113.object({
48830
50013
  currency: z113.string(),
48831
50014
  amount: z113.number()
48832
50015
  });
48833
- var UpdatePlanLicenseBasePrice$outboundSchema = z113.pipe(
50016
+ var UpdatePlanLicenseBasePriceRequestBody$outboundSchema = z113.pipe(
48834
50017
  z113.object({
48835
50018
  amount: z113.number(),
48836
- interval: UpdatePlanPriceLicenseInterval$outboundSchema,
50019
+ interval: UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema,
48837
50020
  intervalCount: z113._default(z113.number(), 1),
48838
- additionalCurrencies: z113.optional(
48839
- z113.array(z113.lazy(() => UpdatePlanLicenseAdditionalCurrency$outboundSchema))
48840
- )
50021
+ additionalCurrencies: z113.optional(z113.array(z113.lazy(
50022
+ () => UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
50023
+ )))
48841
50024
  }),
48842
50025
  z113.transform((v) => {
48843
50026
  return remap(v, {
@@ -48846,13 +50029,15 @@ var UpdatePlanLicenseBasePrice$outboundSchema = z113.pipe(
48846
50029
  });
48847
50030
  })
48848
50031
  );
48849
- var UpdatePlanLicenseThresholdBilling$outboundSchema = z113.object({
50032
+ var UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema = z113.object({
48850
50033
  threshold: z113.number()
48851
50034
  });
48852
- var UpdatePlanLicenseResetInterval$outboundSchema = z113.enum(UpdatePlanLicenseResetInterval);
48853
- var UpdatePlanLicenseReset$outboundSchema = z113.pipe(
50035
+ var UpdatePlanLicenseResetIntervalRequestBody$outboundSchema = z113.enum(
50036
+ UpdatePlanLicenseResetIntervalRequestBody
50037
+ );
50038
+ var UpdatePlanLicenseResetRequestBody$outboundSchema = z113.pipe(
48854
50039
  z113.object({
48855
- interval: UpdatePlanLicenseResetInterval$outboundSchema,
50040
+ interval: UpdatePlanLicenseResetIntervalRequestBody$outboundSchema,
48856
50041
  intervalCount: z113._default(z113.number(), 1)
48857
50042
  }),
48858
50043
  z113.transform((v) => {
@@ -48861,12 +50046,12 @@ var UpdatePlanLicenseReset$outboundSchema = z113.pipe(
48861
50046
  });
48862
50047
  })
48863
50048
  );
48864
- var UpdatePlanLicenseAddItemAdditionalCurrency$outboundSchema = z113.object({
50049
+ var UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema = z113.object({
48865
50050
  currency: z113.string(),
48866
50051
  amount: z113.number()
48867
50052
  });
48868
- var UpdatePlanLicensePriceTo$outboundSchema = smartUnion([z113.number(), z113.string()]);
48869
- var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z113.pipe(
50053
+ var UpdatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z113.number(), z113.string()]);
50054
+ var UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z113.pipe(
48870
50055
  z113.object({
48871
50056
  currency: z113.string(),
48872
50057
  amount: z113.optional(z113.number()),
@@ -48878,13 +50063,13 @@ var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z113.pipe(
48878
50063
  });
48879
50064
  })
48880
50065
  );
48881
- var UpdatePlanLicensePriceTier$outboundSchema = z113.pipe(
50066
+ var UpdatePlanLicensePriceTierRequestBody$outboundSchema = z113.pipe(
48882
50067
  z113.object({
48883
50068
  to: smartUnion([z113.number(), z113.string()]),
48884
50069
  amount: z113.optional(z113.number()),
48885
50070
  flatAmount: z113.optional(z113.number()),
48886
50071
  additionalCurrencies: z113.optional(z113.array(z113.lazy(
48887
- () => UpdatePlanLicenseTierAdditionalCurrency$outboundSchema
50072
+ () => UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
48888
50073
  )))
48889
50074
  }),
48890
50075
  z113.transform((v) => {
@@ -48894,27 +50079,27 @@ var UpdatePlanLicensePriceTier$outboundSchema = z113.pipe(
48894
50079
  });
48895
50080
  })
48896
50081
  );
48897
- var UpdatePlanLicenseTierBehavior$outboundSchema = z113.enum(UpdatePlanLicenseTierBehavior);
48898
- var UpdatePlanLicenseAddItemPriceInterval$outboundSchema = z113.enum(
48899
- UpdatePlanLicenseAddItemPriceInterval
48900
- );
48901
- var UpdatePlanLicenseAddItemBillingMethod$outboundSchema = z113.enum(
48902
- UpdatePlanLicenseAddItemBillingMethod
50082
+ var UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema = z113.enum(
50083
+ UpdatePlanLicenseTierBehaviorRequestBody
48903
50084
  );
48904
- var UpdatePlanLicensePrice$outboundSchema = z113.pipe(
50085
+ var UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseAddItemPriceIntervalRequestBody);
50086
+ var UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseAddItemBillingMethodRequestBody);
50087
+ var UpdatePlanLicensePriceRequestBody$outboundSchema = z113.pipe(
48905
50088
  z113.object({
48906
50089
  amount: z113.optional(z113.number()),
48907
50090
  additionalCurrencies: z113.optional(z113.array(z113.lazy(
48908
- () => UpdatePlanLicenseAddItemAdditionalCurrency$outboundSchema
50091
+ () => UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema
48909
50092
  ))),
48910
50093
  tiers: z113.optional(z113.array(z113.lazy(
48911
- () => UpdatePlanLicensePriceTier$outboundSchema
50094
+ () => UpdatePlanLicensePriceTierRequestBody$outboundSchema
48912
50095
  ))),
48913
- tierBehavior: z113.optional(UpdatePlanLicenseTierBehavior$outboundSchema),
48914
- interval: UpdatePlanLicenseAddItemPriceInterval$outboundSchema,
50096
+ tierBehavior: z113.optional(
50097
+ UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema
50098
+ ),
50099
+ interval: UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema,
48915
50100
  intervalCount: z113._default(z113.number(), 1),
48916
50101
  billingUnits: z113._default(z113.number(), 1),
48917
- billingMethod: UpdatePlanLicenseAddItemBillingMethod$outboundSchema,
50102
+ billingMethod: UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema,
48918
50103
  maxPurchase: z113.optional(z113.nullable(z113.number()))
48919
50104
  }),
48920
50105
  z113.transform((v) => {
@@ -48928,12 +50113,16 @@ var UpdatePlanLicensePrice$outboundSchema = z113.pipe(
48928
50113
  });
48929
50114
  })
48930
50115
  );
48931
- var UpdatePlanLicenseOnIncrease$outboundSchema = z113.enum(UpdatePlanLicenseOnIncrease);
48932
- var UpdatePlanLicenseOnDecrease$outboundSchema = z113.enum(UpdatePlanLicenseOnDecrease);
48933
- var UpdatePlanLicenseProration$outboundSchema = z113.pipe(
50116
+ var UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema = z113.enum(
50117
+ UpdatePlanLicenseOnIncreaseRequestBody
50118
+ );
50119
+ var UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema = z113.enum(
50120
+ UpdatePlanLicenseOnDecreaseRequestBody
50121
+ );
50122
+ var UpdatePlanLicenseProrationRequestBody$outboundSchema = z113.pipe(
48934
50123
  z113.object({
48935
- onIncrease: UpdatePlanLicenseOnIncrease$outboundSchema,
48936
- onDecrease: UpdatePlanLicenseOnDecrease$outboundSchema
50124
+ onIncrease: UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema,
50125
+ onDecrease: UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema
48937
50126
  }),
48938
50127
  z113.transform((v) => {
48939
50128
  return remap(v, {
@@ -48942,12 +50131,14 @@ var UpdatePlanLicenseProration$outboundSchema = z113.pipe(
48942
50131
  });
48943
50132
  })
48944
50133
  );
48945
- var UpdatePlanLicenseExpiryDurationType$outboundSchema = z113.enum(UpdatePlanLicenseExpiryDurationType);
48946
- var UpdatePlanLicenseRollover$outboundSchema = z113.pipe(
50134
+ var UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z113.enum(
50135
+ UpdatePlanLicenseExpiryDurationTypeRequestBody
50136
+ );
50137
+ var UpdatePlanLicenseRolloverRequestBody$outboundSchema = z113.pipe(
48947
50138
  z113.object({
48948
50139
  max: z113.optional(z113.number()),
48949
50140
  maxPercentage: z113.optional(z113.number()),
48950
- expiryDurationType: UpdatePlanLicenseExpiryDurationType$outboundSchema,
50141
+ expiryDurationType: UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
48951
50142
  expiryDurationLength: z113.optional(z113.number())
48952
50143
  }),
48953
50144
  z113.transform((v) => {
@@ -48958,13 +50149,13 @@ var UpdatePlanLicenseRollover$outboundSchema = z113.pipe(
48958
50149
  });
48959
50150
  })
48960
50151
  );
48961
- var UpdatePlanLicenseDuration$outboundSchema = z113.enum(UpdatePlanLicenseDuration);
48962
- var UpdatePlanLicenseExpiry$outboundSchema = z113.object({
48963
- duration: UpdatePlanLicenseDuration$outboundSchema,
50152
+ var UpdatePlanLicenseDurationRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseDurationRequestBody);
50153
+ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z113.object({
50154
+ duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
48964
50155
  length: z113.number()
48965
50156
  });
48966
50157
  var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
48967
- var UpdatePlanDimensionsLicense4$outboundSchema = z113.pipe(
50158
+ var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z113.pipe(
48968
50159
  z113.object({
48969
50160
  match: z113.record(
48970
50161
  z113.string(),
@@ -48980,13 +50171,18 @@ var UpdatePlanDimensionsLicense4$outboundSchema = z113.pipe(
48980
50171
  })
48981
50172
  );
48982
50173
  var UpdatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
48983
- var UpdatePlanDimensionsToLicenseEnum2$outboundSchema = z113.enum(UpdatePlanDimensionsToLicenseEnum2);
48984
- var UpdatePlanDimensionsLicenseToUnion2$outboundSchema = smartUnion([z113.number(), UpdatePlanDimensionsToLicenseEnum2$outboundSchema]);
48985
- var UpdatePlanDimensionsLicenseTier2$outboundSchema = z113.pipe(
50174
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z113.enum(
50175
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2
50176
+ );
50177
+ var UpdatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
50178
+ z113.number(),
50179
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
50180
+ ]);
50181
+ var UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z113.pipe(
48986
50182
  z113.object({
48987
50183
  to: smartUnion([
48988
50184
  z113.number(),
48989
- UpdatePlanDimensionsToLicenseEnum2$outboundSchema
50185
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
48990
50186
  ]),
48991
50187
  creditCost: z113.number()
48992
50188
  }),
@@ -48996,7 +50192,7 @@ var UpdatePlanDimensionsLicenseTier2$outboundSchema = z113.pipe(
48996
50192
  });
48997
50193
  })
48998
50194
  );
48999
- var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
50195
+ var UpdatePlanDimensionsLicenseRequestBody3$outboundSchema = z113.pipe(
49000
50196
  z113.object({
49001
50197
  match: z113.record(
49002
50198
  z113.string(),
@@ -49005,7 +50201,9 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
49005
50201
  priority: z113.optional(z113.int()),
49006
50202
  tierBehavior: z113.literal("graduated"),
49007
50203
  tiers: z113.array(
49008
- z113.lazy(() => UpdatePlanDimensionsLicenseTier2$outboundSchema)
50204
+ z113.lazy(
50205
+ () => UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema
50206
+ )
49009
50207
  )
49010
50208
  }),
49011
50209
  z113.transform((v) => {
@@ -49014,12 +50212,12 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z113.pipe(
49014
50212
  });
49015
50213
  })
49016
50214
  );
49017
- var UpdatePlanLicenseDimensionsUnion2$outboundSchema = smartUnion([
49018
- z113.lazy(() => UpdatePlanDimensionsLicense3$outboundSchema),
49019
- z113.lazy(() => UpdatePlanDimensionsLicense4$outboundSchema)
50215
+ var UpdatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
50216
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
50217
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
49020
50218
  ]);
49021
50219
  var UpdatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49022
- var UpdatePlanLicenseMultipliers2$outboundSchema = z113.object({
50220
+ var UpdatePlanLicenseMultipliersRequestBody2$outboundSchema = z113.object({
49023
50221
  match: z113.record(
49024
50222
  z113.string(),
49025
50223
  smartUnion([z113.string(), z113.number(), z113.boolean()])
@@ -49027,20 +50225,20 @@ var UpdatePlanLicenseMultipliers2$outboundSchema = z113.object({
49027
50225
  factor: z113.optional(z113.number()),
49028
50226
  add: z113.optional(z113.number())
49029
50227
  });
49030
- var UpdatePlanCreditSchemaLicense2$outboundSchema = z113.pipe(
50228
+ var UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z113.pipe(
49031
50229
  z113.object({
49032
50230
  meteredFeatureId: z113.string(),
49033
50231
  billingUnits: z113.optional(z113.number()),
49034
50232
  dimensions: z113.optional(z113.record(
49035
50233
  z113.string(),
49036
50234
  smartUnion([
49037
- z113.lazy(() => UpdatePlanDimensionsLicense3$outboundSchema),
49038
- z113.lazy(() => UpdatePlanDimensionsLicense4$outboundSchema)
50235
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
50236
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
49039
50237
  ])
49040
50238
  )),
49041
50239
  multipliers: z113.optional(z113.record(
49042
50240
  z113.string(),
49043
- z113.lazy(() => UpdatePlanLicenseMultipliers2$outboundSchema)
50241
+ z113.lazy(() => UpdatePlanLicenseMultipliersRequestBody2$outboundSchema)
49044
50242
  )),
49045
50243
  creditCost: z113.number()
49046
50244
  }),
@@ -49053,7 +50251,7 @@ var UpdatePlanCreditSchemaLicense2$outboundSchema = z113.pipe(
49053
50251
  })
49054
50252
  );
49055
50253
  var UpdatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49056
- var UpdatePlanDimensionsLicense2$outboundSchema = z113.pipe(
50254
+ var UpdatePlanDimensionsLicenseRequestBody2$outboundSchema = z113.pipe(
49057
50255
  z113.object({
49058
50256
  match: z113.record(
49059
50257
  z113.string(),
@@ -49069,13 +50267,18 @@ var UpdatePlanDimensionsLicense2$outboundSchema = z113.pipe(
49069
50267
  })
49070
50268
  );
49071
50269
  var UpdatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49072
- var UpdatePlanDimensionsToLicenseEnum1$outboundSchema = z113.enum(UpdatePlanDimensionsToLicenseEnum1);
49073
- var UpdatePlanDimensionsLicenseToUnion1$outboundSchema = smartUnion([z113.number(), UpdatePlanDimensionsToLicenseEnum1$outboundSchema]);
49074
- var UpdatePlanDimensionsLicenseTier1$outboundSchema = z113.pipe(
50270
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z113.enum(
50271
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1
50272
+ );
50273
+ var UpdatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
50274
+ z113.number(),
50275
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
50276
+ ]);
50277
+ var UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z113.pipe(
49075
50278
  z113.object({
49076
50279
  to: smartUnion([
49077
50280
  z113.number(),
49078
- UpdatePlanDimensionsToLicenseEnum1$outboundSchema
50281
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
49079
50282
  ]),
49080
50283
  creditCost: z113.number()
49081
50284
  }),
@@ -49085,7 +50288,7 @@ var UpdatePlanDimensionsLicenseTier1$outboundSchema = z113.pipe(
49085
50288
  });
49086
50289
  })
49087
50290
  );
49088
- var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
50291
+ var UpdatePlanDimensionsLicenseRequestBody1$outboundSchema = z113.pipe(
49089
50292
  z113.object({
49090
50293
  match: z113.record(
49091
50294
  z113.string(),
@@ -49094,7 +50297,9 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
49094
50297
  priority: z113.optional(z113.int()),
49095
50298
  tierBehavior: z113.literal("graduated"),
49096
50299
  tiers: z113.array(
49097
- z113.lazy(() => UpdatePlanDimensionsLicenseTier1$outboundSchema)
50300
+ z113.lazy(
50301
+ () => UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema
50302
+ )
49098
50303
  )
49099
50304
  }),
49100
50305
  z113.transform((v) => {
@@ -49103,12 +50308,12 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z113.pipe(
49103
50308
  });
49104
50309
  })
49105
50310
  );
49106
- var UpdatePlanLicenseDimensionsUnion1$outboundSchema = smartUnion([
49107
- z113.lazy(() => UpdatePlanDimensionsLicense1$outboundSchema),
49108
- z113.lazy(() => UpdatePlanDimensionsLicense2$outboundSchema)
50311
+ var UpdatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
50312
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
50313
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
49109
50314
  ]);
49110
50315
  var UpdatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z113.string(), z113.number(), z113.boolean()]);
49111
- var UpdatePlanLicenseMultipliers1$outboundSchema = z113.object({
50316
+ var UpdatePlanLicenseMultipliersRequestBody1$outboundSchema = z113.object({
49112
50317
  match: z113.record(
49113
50318
  z113.string(),
49114
50319
  smartUnion([z113.string(), z113.number(), z113.boolean()])
@@ -49116,11 +50321,17 @@ var UpdatePlanLicenseMultipliers1$outboundSchema = z113.object({
49116
50321
  factor: z113.optional(z113.number()),
49117
50322
  add: z113.optional(z113.number())
49118
50323
  });
49119
- var UpdatePlanToLicenseEnum$outboundSchema = z113.enum(UpdatePlanToLicenseEnum);
49120
- var UpdatePlanLicenseFeatureOverrideToUnion$outboundSchema = smartUnion([z113.number(), UpdatePlanToLicenseEnum$outboundSchema]);
49121
- var UpdatePlanLicenseFeatureOverrideTier$outboundSchema = z113.pipe(
50324
+ var UpdatePlanToLicenseRequestBodyEnum$outboundSchema = z113.enum(UpdatePlanToLicenseRequestBodyEnum);
50325
+ var UpdatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
50326
+ z113.number(),
50327
+ UpdatePlanToLicenseRequestBodyEnum$outboundSchema
50328
+ ]);
50329
+ var UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z113.pipe(
49122
50330
  z113.object({
49123
- to: smartUnion([z113.number(), UpdatePlanToLicenseEnum$outboundSchema]),
50331
+ to: smartUnion([
50332
+ z113.number(),
50333
+ UpdatePlanToLicenseRequestBodyEnum$outboundSchema
50334
+ ]),
49124
50335
  creditCost: z113.number()
49125
50336
  }),
49126
50337
  z113.transform((v) => {
@@ -49129,24 +50340,24 @@ var UpdatePlanLicenseFeatureOverrideTier$outboundSchema = z113.pipe(
49129
50340
  });
49130
50341
  })
49131
50342
  );
49132
- var UpdatePlanCreditSchemaLicense1$outboundSchema = z113.pipe(
50343
+ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z113.pipe(
49133
50344
  z113.object({
49134
50345
  meteredFeatureId: z113.string(),
49135
50346
  billingUnits: z113.optional(z113.number()),
49136
50347
  dimensions: z113.optional(z113.record(
49137
50348
  z113.string(),
49138
50349
  smartUnion([
49139
- z113.lazy(() => UpdatePlanDimensionsLicense1$outboundSchema),
49140
- z113.lazy(() => UpdatePlanDimensionsLicense2$outboundSchema)
50350
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
50351
+ z113.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
49141
50352
  ])
49142
50353
  )),
49143
50354
  multipliers: z113.optional(z113.record(
49144
50355
  z113.string(),
49145
- z113.lazy(() => UpdatePlanLicenseMultipliers1$outboundSchema)
50356
+ z113.lazy(() => UpdatePlanLicenseMultipliersRequestBody1$outboundSchema)
49146
50357
  )),
49147
50358
  tierBehavior: z113.literal("graduated"),
49148
50359
  tiers: z113.array(z113.lazy(
49149
- () => UpdatePlanLicenseFeatureOverrideTier$outboundSchema
50360
+ () => UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
49150
50361
  ))
49151
50362
  }),
49152
50363
  z113.transform((v) => {
@@ -49157,14 +50368,14 @@ var UpdatePlanCreditSchemaLicense1$outboundSchema = z113.pipe(
49157
50368
  });
49158
50369
  })
49159
50370
  );
49160
- var UpdatePlanLicenseCreditSchemaUnion$outboundSchema = smartUnion([
49161
- z113.lazy(() => UpdatePlanCreditSchemaLicense1$outboundSchema),
49162
- z113.lazy(() => UpdatePlanCreditSchemaLicense2$outboundSchema)
50371
+ var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
50372
+ z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
50373
+ z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
49163
50374
  ]);
49164
- var UpdatePlanLicenseProviderMarkups$outboundSchema = z113.object({
50375
+ var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z113.object({
49165
50376
  markup: z113.number()
49166
50377
  });
49167
- var UpdatePlanLicenseModelMarkups$outboundSchema = z113.pipe(
50378
+ var UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema = z113.pipe(
49168
50379
  z113.object({
49169
50380
  markup: z113.optional(z113.number()),
49170
50381
  inputCost: z113.optional(z113.number()),
@@ -49177,16 +50388,16 @@ var UpdatePlanLicenseModelMarkups$outboundSchema = z113.pipe(
49177
50388
  });
49178
50389
  })
49179
50390
  );
49180
- var UpdatePlanLicenseMarkups$outboundSchema = z113.pipe(
50391
+ var UpdatePlanLicenseMarkupsRequestBody$outboundSchema = z113.pipe(
49181
50392
  z113.object({
49182
50393
  defaultMarkup: z113.optional(z113.number()),
49183
50394
  providerMarkups: z113.optional(z113.nullable(z113.record(
49184
50395
  z113.string(),
49185
- z113.lazy(() => UpdatePlanLicenseProviderMarkups$outboundSchema)
50396
+ z113.lazy(() => UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
49186
50397
  ))),
49187
50398
  modelMarkups: z113.optional(z113.nullable(z113.record(
49188
50399
  z113.string(),
49189
- z113.lazy(() => UpdatePlanLicenseModelMarkups$outboundSchema)
50400
+ z113.lazy(() => UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema)
49190
50401
  )))
49191
50402
  }),
49192
50403
  z113.transform((v) => {
@@ -49197,16 +50408,16 @@ var UpdatePlanLicenseMarkups$outboundSchema = z113.pipe(
49197
50408
  });
49198
50409
  })
49199
50410
  );
49200
- var UpdatePlanLicenseFeatureOverride$outboundSchema = z113.pipe(
50411
+ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z113.pipe(
49201
50412
  z113.object({
49202
50413
  creditSchema: z113.optional(z113.array(smartUnion([
49203
- z113.lazy(() => UpdatePlanCreditSchemaLicense1$outboundSchema),
50414
+ z113.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
49204
50415
  z113.lazy(
49205
- () => UpdatePlanCreditSchemaLicense2$outboundSchema
50416
+ () => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
49206
50417
  )
49207
50418
  ]))),
49208
50419
  markups: z113.optional(z113.lazy(
49209
- () => UpdatePlanLicenseMarkups$outboundSchema
50420
+ () => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
49210
50421
  ))
49211
50422
  }),
49212
50423
  z113.transform((v) => {
@@ -49215,29 +50426,33 @@ var UpdatePlanLicenseFeatureOverride$outboundSchema = z113.pipe(
49215
50426
  });
49216
50427
  })
49217
50428
  );
49218
- var UpdatePlanLicensePlanItem$outboundSchema = z113.pipe(
50429
+ var UpdatePlanLicensePlanItemRequestBody$outboundSchema = z113.pipe(
49219
50430
  z113.object({
49220
- thresholdBilling: z113.optional(
49221
- z113.nullable(
49222
- z113.lazy(() => UpdatePlanLicenseThresholdBilling$outboundSchema)
49223
- )
49224
- ),
50431
+ thresholdBilling: z113.optional(z113.nullable(z113.lazy(
50432
+ () => UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema
50433
+ ))),
49225
50434
  featureId: z113.string(),
49226
50435
  included: z113.optional(z113.number()),
49227
50436
  unlimited: z113.optional(z113.boolean()),
49228
50437
  pooled: z113._default(z113.boolean(), false),
49229
- reset: z113.optional(z113.lazy(() => UpdatePlanLicenseReset$outboundSchema)),
49230
- price: z113.optional(z113.lazy(() => UpdatePlanLicensePrice$outboundSchema)),
49231
- proration: z113.optional(
49232
- z113.lazy(() => UpdatePlanLicenseProration$outboundSchema)
49233
- ),
49234
- rollover: z113.optional(
49235
- z113.lazy(() => UpdatePlanLicenseRollover$outboundSchema)
49236
- ),
49237
- expiry: z113.optional(z113.lazy(() => UpdatePlanLicenseExpiry$outboundSchema)),
49238
- featureOverride: z113.optional(
49239
- z113.lazy(() => UpdatePlanLicenseFeatureOverride$outboundSchema)
49240
- )
50438
+ reset: z113.optional(z113.lazy(
50439
+ () => UpdatePlanLicenseResetRequestBody$outboundSchema
50440
+ )),
50441
+ price: z113.optional(z113.lazy(
50442
+ () => UpdatePlanLicensePriceRequestBody$outboundSchema
50443
+ )),
50444
+ proration: z113.optional(z113.lazy(
50445
+ () => UpdatePlanLicenseProrationRequestBody$outboundSchema
50446
+ )),
50447
+ rollover: z113.optional(z113.lazy(
50448
+ () => UpdatePlanLicenseRolloverRequestBody$outboundSchema
50449
+ )),
50450
+ expiry: z113.optional(z113.lazy(
50451
+ () => UpdatePlanLicenseExpiryRequestBody$outboundSchema
50452
+ )),
50453
+ featureOverride: z113.optional(z113.lazy(
50454
+ () => UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema
50455
+ ))
49241
50456
  }),
49242
50457
  z113.transform((v) => {
49243
50458
  return remap(v, {
@@ -49247,29 +50462,23 @@ var UpdatePlanLicensePlanItem$outboundSchema = z113.pipe(
49247
50462
  });
49248
50463
  })
49249
50464
  );
49250
- var UpdatePlanLicenseRemoveItemBillingMethod$outboundSchema = z113.enum(
49251
- UpdatePlanLicenseRemoveItemBillingMethod
49252
- );
49253
- var UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema = z113.enum(
49254
- UpdatePlanIntervalLicenseRemoveItemEnum2
49255
- );
49256
- var UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z113.enum(
49257
- UpdatePlanIntervalLicenseRemoveItemEnum1
49258
- );
49259
- var UpdatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
49260
- UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
49261
- UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
50465
+ var UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema = z113.enum(UpdatePlanLicenseRemoveItemBillingMethodRequestBody);
50466
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema = z113.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2);
50467
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema = z113.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1);
50468
+ var UpdatePlanLicenseIntervalRequestBodyUnion$outboundSchema = smartUnion([
50469
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
50470
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
49262
50471
  ]);
49263
- var UpdatePlanLicensePlanItemFilter$outboundSchema = z113.pipe(
50472
+ var UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema = z113.pipe(
49264
50473
  z113.object({
49265
50474
  featureId: z113.optional(z113.string()),
49266
50475
  billingMethod: z113.optional(
49267
- UpdatePlanLicenseRemoveItemBillingMethod$outboundSchema
50476
+ UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema
49268
50477
  ),
49269
50478
  interval: z113.optional(
49270
50479
  smartUnion([
49271
- UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
49272
- UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
50480
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
50481
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
49273
50482
  ])
49274
50483
  ),
49275
50484
  intervalCount: z113.optional(z113.int()),
@@ -49283,17 +50492,17 @@ var UpdatePlanLicensePlanItemFilter$outboundSchema = z113.pipe(
49283
50492
  });
49284
50493
  })
49285
50494
  );
49286
- var UpdatePlanLicenseCustomize$outboundSchema = z113.pipe(
50495
+ var UpdatePlanLicenseCustomizeRequestBody$outboundSchema = z113.pipe(
49287
50496
  z113.object({
49288
- price: z113.optional(
49289
- z113.nullable(z113.lazy(() => UpdatePlanLicenseBasePrice$outboundSchema))
49290
- ),
49291
- addItems: z113.optional(
49292
- z113.array(z113.lazy(() => UpdatePlanLicensePlanItem$outboundSchema))
49293
- ),
49294
- removeItems: z113.optional(
49295
- z113.array(z113.lazy(() => UpdatePlanLicensePlanItemFilter$outboundSchema))
49296
- )
50497
+ price: z113.optional(z113.nullable(z113.lazy(
50498
+ () => UpdatePlanLicenseBasePriceRequestBody$outboundSchema
50499
+ ))),
50500
+ addItems: z113.optional(z113.array(z113.lazy(
50501
+ () => UpdatePlanLicensePlanItemRequestBody$outboundSchema
50502
+ ))),
50503
+ removeItems: z113.optional(z113.array(z113.lazy(
50504
+ () => UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema
50505
+ )))
49297
50506
  }),
49298
50507
  z113.transform((v) => {
49299
50508
  return remap(v, {
@@ -49302,15 +50511,15 @@ var UpdatePlanLicenseCustomize$outboundSchema = z113.pipe(
49302
50511
  });
49303
50512
  })
49304
50513
  );
49305
- var UpdatePlanLicense$outboundSchema = z113.pipe(
50514
+ var UpdatePlanLicenseRequest$outboundSchema = z113.pipe(
49306
50515
  z113.object({
49307
50516
  licensePlanId: z113.string(),
49308
50517
  versionSlug: z113.optional(z113.string()),
49309
50518
  included: z113.optional(z113.int()),
49310
50519
  prepaidOnly: z113.optional(z113.boolean()),
49311
- customize: z113.optional(
49312
- z113.nullable(z113.lazy(() => UpdatePlanLicenseCustomize$outboundSchema))
49313
- ),
50520
+ customize: z113.optional(z113.nullable(z113.lazy(
50521
+ () => UpdatePlanLicenseCustomizeRequestBody$outboundSchema
50522
+ ))),
49314
50523
  metadata: z113.optional(z113.record(z113.string(), z113.any()))
49315
50524
  }),
49316
50525
  z113.transform((v) => {
@@ -50999,7 +52208,7 @@ var UpdatePlanParams$outboundSchema = z114.pipe(
50999
52208
  z114.nullable(UpdatePlanBasePriceRequestBody$outboundSchema)
51000
52209
  ),
51001
52210
  items: z114.optional(z114.array(UpdatePlanItemPlanItem$outboundSchema)),
51002
- licenses: z114.optional(z114.array(UpdatePlanLicense$outboundSchema)),
52211
+ licenses: z114.optional(z114.array(UpdatePlanLicenseRequest$outboundSchema)),
51003
52212
  freeTrial: z114.optional(
51004
52213
  z114.nullable(UpdatePlanFreeTrialParamsRequestBody$outboundSchema)
51005
52214
  ),
@@ -51307,17 +52516,17 @@ var UpdatePlanVariantDetailsAddItemPriceInterval = {
51307
52516
  SemiAnnual: "semi_annual",
51308
52517
  Year: "year"
51309
52518
  };
51310
- var UpdatePlanAddItemBillingMethodResponse = {
52519
+ var UpdatePlanVariantDetailsAddItemBillingMethod = {
51311
52520
  Prepaid: "prepaid",
51312
52521
  UsageBased: "usage_based"
51313
52522
  };
51314
- var UpdatePlanOnIncreaseResponse = {
52523
+ var UpdatePlanVariantDetailsOnIncrease = {
51315
52524
  BillImmediately: "bill_immediately",
51316
52525
  ProrateImmediately: "prorate_immediately",
51317
52526
  ProrateNextCycle: "prorate_next_cycle",
51318
52527
  BillNextCycle: "bill_next_cycle"
51319
52528
  };
51320
- var UpdatePlanOnDecreaseResponse = {
52529
+ var UpdatePlanVariantDetailsOnDecrease = {
51321
52530
  Prorate: "prorate",
51322
52531
  ProrateImmediately: "prorate_immediately",
51323
52532
  ProrateNextCycle: "prorate_next_cycle",
@@ -51343,7 +52552,7 @@ var UpdatePlanDimensionsToVariantDetailsEnum1 = {
51343
52552
  var UpdatePlanToVariantDetailsEnum = {
51344
52553
  Inf: "inf"
51345
52554
  };
51346
- var UpdatePlanRemoveItemBillingMethodResponse = {
52555
+ var UpdatePlanVariantDetailsRemoveItemBillingMethod = {
51347
52556
  Prepaid: "prepaid",
51348
52557
  UsageBased: "usage_based"
51349
52558
  };
@@ -51438,7 +52647,7 @@ var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval = {
51438
52647
  SemiAnnual: "semi_annual",
51439
52648
  Year: "year"
51440
52649
  };
51441
- var UpdatePlanUpsertLicenseAddItemBillingMethodResponse = {
52650
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod = {
51442
52651
  Prepaid: "prepaid",
51443
52652
  UsageBased: "usage_based"
51444
52653
  };
@@ -51455,7 +52664,7 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
51455
52664
  None: "none",
51456
52665
  NoProrations: "no_prorations"
51457
52666
  };
51458
- var UpdatePlanUpsertLicenseExpiryDurationTypeResponse = {
52667
+ var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
51459
52668
  Month: "month",
51460
52669
  Forever: "forever"
51461
52670
  };
@@ -52042,7 +53251,7 @@ var UpdatePlanVariantDetailsAdditionalCurrency$inboundSchema = z115.object(
52042
53251
  amount: number2()
52043
53252
  }
52044
53253
  );
52045
- var UpdatePlanBasePriceResponse$inboundSchema = z115.pipe(
53254
+ var UpdatePlanVariantDetailsBasePrice$inboundSchema = z115.pipe(
52046
53255
  z115.object({
52047
53256
  amount: number2(),
52048
53257
  interval: UpdatePlanPriceVariantDetailsInterval$inboundSchema,
@@ -52073,7 +53282,7 @@ var UpdatePlanVariantDetailsReset$inboundSchema = z115.pipe(
52073
53282
  });
52074
53283
  })
52075
53284
  );
52076
- var UpdatePlanAddItemAdditionalCurrencyResponse$inboundSchema = z115.object({
53285
+ var UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z115.object({
52077
53286
  currency: string5(),
52078
53287
  amount: number2()
52079
53288
  });
@@ -52108,12 +53317,12 @@ var UpdatePlanVariantDetailsPriceTier$inboundSchema = z115.pipe(
52108
53317
  );
52109
53318
  var UpdatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(UpdatePlanVariantDetailsTierBehavior);
52110
53319
  var UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemPriceInterval);
52111
- var UpdatePlanAddItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanAddItemBillingMethodResponse);
53320
+ var UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemBillingMethod);
52112
53321
  var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
52113
53322
  z115.object({
52114
53323
  amount: optional3(number2()),
52115
53324
  additional_currencies: optional3(z115.array(z115.lazy(
52116
- () => UpdatePlanAddItemAdditionalCurrencyResponse$inboundSchema
53325
+ () => UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
52117
53326
  ))),
52118
53327
  tiers: optional3(z115.array(z115.lazy(
52119
53328
  () => UpdatePlanVariantDetailsPriceTier$inboundSchema
@@ -52124,7 +53333,7 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
52124
53333
  interval: UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
52125
53334
  interval_count: z115._default(number2(), 1),
52126
53335
  billing_units: z115._default(number2(), 1),
52127
- billing_method: UpdatePlanAddItemBillingMethodResponse$inboundSchema,
53336
+ billing_method: UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
52128
53337
  max_purchase: z115.optional(z115.nullable(number2()))
52129
53338
  }),
52130
53339
  z115.transform((v) => {
@@ -52138,12 +53347,12 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z115.pipe(
52138
53347
  });
52139
53348
  })
52140
53349
  );
52141
- var UpdatePlanOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanOnIncreaseResponse);
52142
- var UpdatePlanOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanOnDecreaseResponse);
52143
- var UpdatePlanProrationResponse$inboundSchema = z115.pipe(
53350
+ var UpdatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnIncrease);
53351
+ var UpdatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnDecrease);
53352
+ var UpdatePlanVariantDetailsProration$inboundSchema = z115.pipe(
52144
53353
  z115.object({
52145
- on_increase: UpdatePlanOnIncreaseResponse$inboundSchema,
52146
- on_decrease: UpdatePlanOnDecreaseResponse$inboundSchema
53354
+ on_increase: UpdatePlanVariantDetailsOnIncrease$inboundSchema,
53355
+ on_decrease: UpdatePlanVariantDetailsOnDecrease$inboundSchema
52147
53356
  }),
52148
53357
  z115.transform((v) => {
52149
53358
  return remap(v, {
@@ -52418,7 +53627,7 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z115.pipe(
52418
53627
  });
52419
53628
  })
52420
53629
  );
52421
- var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
53630
+ var UpdatePlanVariantDetailsPlanItem$inboundSchema = z115.pipe(
52422
53631
  z115.object({
52423
53632
  threshold_billing: z115.optional(z115.nullable(z115.lazy(
52424
53633
  () => UpdatePlanVariantDetailsThresholdBilling$inboundSchema
@@ -52434,7 +53643,7 @@ var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
52434
53643
  () => UpdatePlanVariantDetailsPrice$inboundSchema
52435
53644
  )),
52436
53645
  proration: optional3(z115.lazy(
52437
- () => UpdatePlanProrationResponse$inboundSchema
53646
+ () => UpdatePlanVariantDetailsProration$inboundSchema
52438
53647
  )),
52439
53648
  rollover: optional3(z115.lazy(
52440
53649
  () => UpdatePlanVariantDetailsRollover$inboundSchema
@@ -52454,18 +53663,18 @@ var UpdatePlanPlanItemResponse$inboundSchema = z115.pipe(
52454
53663
  });
52455
53664
  })
52456
53665
  );
52457
- var UpdatePlanRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanRemoveItemBillingMethodResponse);
53666
+ var UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsRemoveItemBillingMethod);
52458
53667
  var UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum2);
52459
53668
  var UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum1);
52460
53669
  var UpdatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
52461
53670
  UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
52462
53671
  UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
52463
53672
  ]);
52464
- var UpdatePlanPlanItemFilterResponse$inboundSchema = z115.pipe(
53673
+ var UpdatePlanVariantDetailsPlanItemFilter$inboundSchema = z115.pipe(
52465
53674
  z115.object({
52466
53675
  feature_id: optional3(string5()),
52467
53676
  billing_method: optional3(
52468
- UpdatePlanRemoveItemBillingMethodResponse$inboundSchema
53677
+ UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
52469
53678
  ),
52470
53679
  interval: optional3(
52471
53680
  smartUnion([
@@ -52642,7 +53851,7 @@ var UpdatePlanVariantDetailsBillingControls$inboundSchema = z115.pipe(
52642
53851
  })
52643
53852
  );
52644
53853
  var UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema = inboundSchema(UpdatePlanPriceVariantDetailsUpsertLicenseInterval);
52645
- var UpdatePlanUpsertLicenseAdditionalCurrencyResponse$inboundSchema = z115.object({
53854
+ var UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema = z115.object({
52646
53855
  currency: string5(),
52647
53856
  amount: number2()
52648
53857
  });
@@ -52652,7 +53861,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z115.pipe(
52652
53861
  interval: UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema,
52653
53862
  interval_count: z115._default(number2(), 1),
52654
53863
  additional_currencies: optional3(z115.array(z115.lazy(
52655
- () => UpdatePlanUpsertLicenseAdditionalCurrencyResponse$inboundSchema
53864
+ () => UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema
52656
53865
  )))
52657
53866
  }),
52658
53867
  z115.transform((v) => {
@@ -52662,7 +53871,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z115.pipe(
52662
53871
  });
52663
53872
  })
52664
53873
  );
52665
- var UpdatePlanUpsertLicenseThresholdBillingResponse$inboundSchema = z115.object({
53874
+ var UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema = z115.object({
52666
53875
  threshold: number2()
52667
53876
  });
52668
53877
  var UpdatePlanVariantDetailsUpsertLicenseResetInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseResetInterval);
@@ -52677,12 +53886,12 @@ var UpdatePlanVariantDetailsUpsertLicenseReset$inboundSchema = z115.pipe(
52677
53886
  });
52678
53887
  })
52679
53888
  );
52680
- var UpdatePlanUpsertLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z115.object({
53889
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema = z115.object({
52681
53890
  currency: string5(),
52682
53891
  amount: number2()
52683
53892
  });
52684
53893
  var UpdatePlanVariantDetailsUpsertLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
52685
- var UpdatePlanUpsertLicenseTierAdditionalCurrencyResponse$inboundSchema = z115.pipe(
53894
+ var UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema = z115.pipe(
52686
53895
  z115.object({
52687
53896
  currency: string5(),
52688
53897
  amount: optional3(number2()),
@@ -52700,7 +53909,7 @@ var UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema = z115.pipe(
52700
53909
  amount: number2(),
52701
53910
  flat_amount: optional3(number2()),
52702
53911
  additional_currencies: optional3(z115.array(z115.lazy(
52703
- () => UpdatePlanUpsertLicenseTierAdditionalCurrencyResponse$inboundSchema
53912
+ () => UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema
52704
53913
  )))
52705
53914
  }),
52706
53915
  z115.transform((v) => {
@@ -52714,14 +53923,14 @@ var UpdatePlanVariantDetailsUpsertLicenseTierBehavior$inboundSchema = inboundSch
52714
53923
  var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(
52715
53924
  UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval
52716
53925
  );
52717
- var UpdatePlanUpsertLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(
52718
- UpdatePlanUpsertLicenseAddItemBillingMethodResponse
53926
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(
53927
+ UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod
52719
53928
  );
52720
53929
  var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z115.pipe(
52721
53930
  z115.object({
52722
53931
  amount: optional3(number2()),
52723
53932
  additional_currencies: optional3(z115.array(z115.lazy(
52724
- () => UpdatePlanUpsertLicenseAddItemAdditionalCurrencyResponse$inboundSchema
53933
+ () => UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema
52725
53934
  ))),
52726
53935
  tiers: optional3(z115.array(z115.lazy(
52727
53936
  () => UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema
@@ -52732,7 +53941,7 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z115.pipe(
52732
53941
  interval: UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema,
52733
53942
  interval_count: z115._default(number2(), 1),
52734
53943
  billing_units: z115._default(number2(), 1),
52735
- billing_method: UpdatePlanUpsertLicenseAddItemBillingMethodResponse$inboundSchema,
53944
+ billing_method: UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema,
52736
53945
  max_purchase: z115.optional(z115.nullable(number2()))
52737
53946
  }),
52738
53947
  z115.transform((v) => {
@@ -52760,12 +53969,14 @@ var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z115.pipe(
52760
53969
  });
52761
53970
  })
52762
53971
  );
52763
- var UpdatePlanUpsertLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseExpiryDurationTypeResponse);
53972
+ var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
53973
+ UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
53974
+ );
52764
53975
  var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z115.pipe(
52765
53976
  z115.object({
52766
53977
  max: optional3(number2()),
52767
53978
  max_percentage: optional3(number2()),
52768
- expiry_duration_type: UpdatePlanUpsertLicenseExpiryDurationTypeResponse$inboundSchema,
53979
+ expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
52769
53980
  expiry_duration_length: optional3(number2())
52770
53981
  }),
52771
53982
  z115.transform((v) => {
@@ -52805,7 +54016,7 @@ var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum1 = {
52805
54016
  var UpdatePlanToVariantDetailsUpsertLicenseEnum = {
52806
54017
  Inf: "inf"
52807
54018
  };
52808
- var UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse = {
54019
+ var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod = {
52809
54020
  Prepaid: "prepaid",
52810
54021
  UsageBased: "usage_based"
52811
54022
  };
@@ -52828,6 +54039,96 @@ var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum1 = {
52828
54039
  SemiAnnual: "semi_annual",
52829
54040
  Year: "year"
52830
54041
  };
54042
+ var UpdatePlanPriceLicenseIntervalResponse = {
54043
+ OneOff: "one_off",
54044
+ Week: "week",
54045
+ Month: "month",
54046
+ Quarter: "quarter",
54047
+ SemiAnnual: "semi_annual",
54048
+ Year: "year"
54049
+ };
54050
+ var UpdatePlanLicenseResetIntervalResponse = {
54051
+ OneOff: "one_off",
54052
+ Minute: "minute",
54053
+ Hour: "hour",
54054
+ Day: "day",
54055
+ Week: "week",
54056
+ Month: "month",
54057
+ Quarter: "quarter",
54058
+ SemiAnnual: "semi_annual",
54059
+ Year: "year"
54060
+ };
54061
+ var UpdatePlanLicenseTierBehaviorResponse = {
54062
+ Graduated: "graduated",
54063
+ Volume: "volume"
54064
+ };
54065
+ var UpdatePlanLicenseAddItemPriceIntervalResponse = {
54066
+ OneOff: "one_off",
54067
+ Week: "week",
54068
+ Month: "month",
54069
+ Quarter: "quarter",
54070
+ SemiAnnual: "semi_annual",
54071
+ Year: "year"
54072
+ };
54073
+ var UpdatePlanLicenseAddItemBillingMethodResponse = {
54074
+ Prepaid: "prepaid",
54075
+ UsageBased: "usage_based"
54076
+ };
54077
+ var UpdatePlanLicenseOnIncreaseResponse = {
54078
+ BillImmediately: "bill_immediately",
54079
+ ProrateImmediately: "prorate_immediately",
54080
+ ProrateNextCycle: "prorate_next_cycle",
54081
+ BillNextCycle: "bill_next_cycle"
54082
+ };
54083
+ var UpdatePlanLicenseOnDecreaseResponse = {
54084
+ Prorate: "prorate",
54085
+ ProrateImmediately: "prorate_immediately",
54086
+ ProrateNextCycle: "prorate_next_cycle",
54087
+ None: "none",
54088
+ NoProrations: "no_prorations"
54089
+ };
54090
+ var UpdatePlanLicenseExpiryDurationTypeResponse = {
54091
+ Month: "month",
54092
+ Forever: "forever"
54093
+ };
54094
+ var UpdatePlanLicenseDurationResponse = {
54095
+ Day: "day",
54096
+ Week: "week",
54097
+ Month: "month",
54098
+ Year: "year"
54099
+ };
54100
+ var UpdatePlanDimensionsToLicenseResponseEnum2 = {
54101
+ Inf: "inf"
54102
+ };
54103
+ var UpdatePlanDimensionsToLicenseResponseEnum1 = {
54104
+ Inf: "inf"
54105
+ };
54106
+ var UpdatePlanToLicenseResponseEnum = {
54107
+ Inf: "inf"
54108
+ };
54109
+ var UpdatePlanLicenseRemoveItemBillingMethodResponse = {
54110
+ Prepaid: "prepaid",
54111
+ UsageBased: "usage_based"
54112
+ };
54113
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum2 = {
54114
+ OneOff: "one_off",
54115
+ Minute: "minute",
54116
+ Hour: "hour",
54117
+ Day: "day",
54118
+ Week: "week",
54119
+ Month: "month",
54120
+ Quarter: "quarter",
54121
+ SemiAnnual: "semi_annual",
54122
+ Year: "year"
54123
+ };
54124
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
54125
+ OneOff: "one_off",
54126
+ Week: "week",
54127
+ Month: "month",
54128
+ Quarter: "quarter",
54129
+ SemiAnnual: "semi_annual",
54130
+ Year: "year"
54131
+ };
52831
54132
  var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z116.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
52832
54133
  var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
52833
54134
  number2(),
@@ -53040,7 +54341,7 @@ var UpdatePlanVariantDetailsUpsertLicenseModelMarkups$inboundSchema = z116.pipe(
53040
54341
  });
53041
54342
  })
53042
54343
  );
53043
- var UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema = z116.pipe(
54344
+ var UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema = z116.pipe(
53044
54345
  z116.object({
53045
54346
  default_markup: optional3(number2()),
53046
54347
  provider_markups: z116.optional(z116.nullable(z116.record(
@@ -53064,7 +54365,7 @@ var UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema = z116.pipe(
53064
54365
  });
53065
54366
  })
53066
54367
  );
53067
- var UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
54368
+ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z116.pipe(
53068
54369
  z116.object({
53069
54370
  credit_schema: optional3(z116.array(smartUnion([
53070
54371
  z116.lazy(
@@ -53075,7 +54376,7 @@ var UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
53075
54376
  )
53076
54377
  ]))),
53077
54378
  markups: optional3(z116.lazy(
53078
- () => UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema
54379
+ () => UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema
53079
54380
  ))
53080
54381
  }),
53081
54382
  z116.transform((v) => {
@@ -53088,7 +54389,7 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
53088
54389
  z116.object({
53089
54390
  threshold_billing: z116.optional(
53090
54391
  z116.nullable(
53091
- UpdatePlanUpsertLicenseThresholdBillingResponse$inboundSchema
54392
+ UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema
53092
54393
  )
53093
54394
  ),
53094
54395
  feature_id: string5(),
@@ -53110,11 +54411,9 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
53110
54411
  expiry: optional3(
53111
54412
  UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
53112
54413
  ),
53113
- feature_override: optional3(
53114
- z116.lazy(
53115
- () => UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema
53116
- )
53117
- )
54414
+ feature_override: optional3(z116.lazy(
54415
+ () => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
54416
+ ))
53118
54417
  }),
53119
54418
  z116.transform((v) => {
53120
54419
  return remap(v, {
@@ -53124,8 +54423,8 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z116.pipe(
53124
54423
  });
53125
54424
  })
53126
54425
  );
53127
- var UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(
53128
- UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse
54426
+ var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(
54427
+ UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod
53129
54428
  );
53130
54429
  var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2$inboundSchema = inboundSchema(
53131
54430
  UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2
@@ -53141,7 +54440,7 @@ var UpdatePlanUpsertLicensePlanItemFilterResponse$inboundSchema = z116.pipe(
53141
54440
  z116.object({
53142
54441
  feature_id: optional3(string5()),
53143
54442
  billing_method: optional3(
53144
- UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse$inboundSchema
54443
+ UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema
53145
54444
  ),
53146
54445
  interval: optional3(
53147
54446
  smartUnion([
@@ -53208,14 +54507,16 @@ var UpdatePlanRemoveLicenseResponse$inboundSchema = z116.pipe(
53208
54507
  });
53209
54508
  })
53210
54509
  );
53211
- var UpdatePlanCustomizeResponse$inboundSchema = z116.pipe(
54510
+ var UpdatePlanVariantDetailsCustomize$inboundSchema = z116.pipe(
53212
54511
  z116.object({
53213
- price: z116.optional(z116.nullable(UpdatePlanBasePriceResponse$inboundSchema)),
54512
+ price: z116.optional(
54513
+ z116.nullable(UpdatePlanVariantDetailsBasePrice$inboundSchema)
54514
+ ),
53214
54515
  add_items: optional3(
53215
- z116.array(UpdatePlanPlanItemResponse$inboundSchema)
54516
+ z116.array(UpdatePlanVariantDetailsPlanItem$inboundSchema)
53216
54517
  ),
53217
54518
  remove_items: optional3(
53218
- z116.array(UpdatePlanPlanItemFilterResponse$inboundSchema)
54519
+ z116.array(UpdatePlanVariantDetailsPlanItemFilter$inboundSchema)
53219
54520
  ),
53220
54521
  free_trial: z116.optional(
53221
54522
  z116.nullable(UpdatePlanFreeTrialParamsResponse$inboundSchema)
@@ -53245,7 +54546,7 @@ var UpdatePlanVariantDetails$inboundSchema = z116.pipe(
53245
54546
  z116.object({
53246
54547
  base_plan_id: string5(),
53247
54548
  customize: optional3(
53248
- z116.lazy(() => UpdatePlanCustomizeResponse$inboundSchema)
54549
+ z116.lazy(() => UpdatePlanVariantDetailsCustomize$inboundSchema)
53249
54550
  )
53250
54551
  }),
53251
54552
  z116.transform((v) => {
@@ -53254,6 +54555,493 @@ var UpdatePlanVariantDetails$inboundSchema = z116.pipe(
53254
54555
  });
53255
54556
  })
53256
54557
  );
54558
+ var UpdatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceLicenseIntervalResponse);
54559
+ var UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z116.object({
54560
+ currency: string5(),
54561
+ amount: number2()
54562
+ });
54563
+ var UpdatePlanLicenseBasePriceResponse$inboundSchema = z116.pipe(
54564
+ z116.object({
54565
+ amount: number2(),
54566
+ interval: UpdatePlanPriceLicenseIntervalResponse$inboundSchema,
54567
+ interval_count: z116._default(number2(), 1),
54568
+ additional_currencies: optional3(z116.array(z116.lazy(
54569
+ () => UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema
54570
+ )))
54571
+ }),
54572
+ z116.transform((v) => {
54573
+ return remap(v, {
54574
+ "interval_count": "intervalCount",
54575
+ "additional_currencies": "additionalCurrencies"
54576
+ });
54577
+ })
54578
+ );
54579
+ var UpdatePlanLicenseThresholdBillingResponse$inboundSchema = z116.object({
54580
+ threshold: number2()
54581
+ });
54582
+ var UpdatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseResetIntervalResponse);
54583
+ var UpdatePlanLicenseResetResponse$inboundSchema = z116.pipe(
54584
+ z116.object({
54585
+ interval: UpdatePlanLicenseResetIntervalResponse$inboundSchema,
54586
+ interval_count: z116._default(number2(), 1)
54587
+ }),
54588
+ z116.transform((v) => {
54589
+ return remap(v, {
54590
+ "interval_count": "intervalCount"
54591
+ });
54592
+ })
54593
+ );
54594
+ var UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z116.object({
54595
+ currency: string5(),
54596
+ amount: number2()
54597
+ });
54598
+ var UpdatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
54599
+ var UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z116.pipe(
54600
+ z116.object({
54601
+ currency: string5(),
54602
+ amount: optional3(number2()),
54603
+ flat_amount: optional3(number2())
54604
+ }),
54605
+ z116.transform((v) => {
54606
+ return remap(v, {
54607
+ "flat_amount": "flatAmount"
54608
+ });
54609
+ })
54610
+ );
54611
+ var UpdatePlanLicensePriceTierResponse$inboundSchema = z116.pipe(
54612
+ z116.object({
54613
+ to: smartUnion([number2(), string5()]),
54614
+ amount: number2(),
54615
+ flat_amount: optional3(number2()),
54616
+ additional_currencies: optional3(z116.array(z116.lazy(
54617
+ () => UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
54618
+ )))
54619
+ }),
54620
+ z116.transform((v) => {
54621
+ return remap(v, {
54622
+ "flat_amount": "flatAmount",
54623
+ "additional_currencies": "additionalCurrencies"
54624
+ });
54625
+ })
54626
+ );
54627
+ var UpdatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanLicenseTierBehaviorResponse);
54628
+ var UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemPriceIntervalResponse);
54629
+ var UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemBillingMethodResponse);
54630
+ var UpdatePlanLicensePriceResponse$inboundSchema = z116.pipe(
54631
+ z116.object({
54632
+ amount: optional3(number2()),
54633
+ additional_currencies: optional3(z116.array(z116.lazy(
54634
+ () => UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
54635
+ ))),
54636
+ tiers: optional3(z116.array(z116.lazy(
54637
+ () => UpdatePlanLicensePriceTierResponse$inboundSchema
54638
+ ))),
54639
+ tier_behavior: optional3(
54640
+ UpdatePlanLicenseTierBehaviorResponse$inboundSchema
54641
+ ),
54642
+ interval: UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
54643
+ interval_count: z116._default(number2(), 1),
54644
+ billing_units: z116._default(number2(), 1),
54645
+ billing_method: UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
54646
+ max_purchase: z116.optional(z116.nullable(number2()))
54647
+ }),
54648
+ z116.transform((v) => {
54649
+ return remap(v, {
54650
+ "additional_currencies": "additionalCurrencies",
54651
+ "tier_behavior": "tierBehavior",
54652
+ "interval_count": "intervalCount",
54653
+ "billing_units": "billingUnits",
54654
+ "billing_method": "billingMethod",
54655
+ "max_purchase": "maxPurchase"
54656
+ });
54657
+ })
54658
+ );
54659
+ var UpdatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnIncreaseResponse);
54660
+ var UpdatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnDecreaseResponse);
54661
+ var UpdatePlanLicenseProrationResponse$inboundSchema = z116.pipe(
54662
+ z116.object({
54663
+ on_increase: UpdatePlanLicenseOnIncreaseResponse$inboundSchema,
54664
+ on_decrease: UpdatePlanLicenseOnDecreaseResponse$inboundSchema
54665
+ }),
54666
+ z116.transform((v) => {
54667
+ return remap(v, {
54668
+ "on_increase": "onIncrease",
54669
+ "on_decrease": "onDecrease"
54670
+ });
54671
+ })
54672
+ );
54673
+ var UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanLicenseExpiryDurationTypeResponse);
54674
+ var UpdatePlanLicenseRolloverResponse$inboundSchema = z116.pipe(
54675
+ z116.object({
54676
+ max: optional3(number2()),
54677
+ max_percentage: optional3(number2()),
54678
+ expiry_duration_type: UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
54679
+ expiry_duration_length: optional3(number2())
54680
+ }),
54681
+ z116.transform((v) => {
54682
+ return remap(v, {
54683
+ "max_percentage": "maxPercentage",
54684
+ "expiry_duration_type": "expiryDurationType",
54685
+ "expiry_duration_length": "expiryDurationLength"
54686
+ });
54687
+ })
54688
+ );
54689
+ var UpdatePlanLicenseDurationResponse$inboundSchema = inboundSchema(UpdatePlanLicenseDurationResponse);
54690
+ var UpdatePlanLicenseExpiryResponse$inboundSchema = z116.object({
54691
+ duration: UpdatePlanLicenseDurationResponse$inboundSchema,
54692
+ length: number2()
54693
+ });
54694
+ var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z116.pipe(
54695
+ z116.object({
54696
+ match: z116.record(z116.string(), string5()),
54697
+ priority: optional3(number2()),
54698
+ credit_cost: number2()
54699
+ }),
54700
+ z116.transform((v) => {
54701
+ return remap(v, {
54702
+ "credit_cost": "creditCost"
54703
+ });
54704
+ })
54705
+ );
54706
+ var UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z116.enum(
54707
+ UpdatePlanDimensionsToLicenseResponseEnum2
54708
+ );
54709
+ var UpdatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
54710
+ number2(),
54711
+ UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
54712
+ ]);
54713
+ var UpdatePlanDimensionsLicenseTierResponse2$inboundSchema = z116.pipe(
54714
+ z116.object({
54715
+ to: smartUnion([
54716
+ number2(),
54717
+ UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
54718
+ ]),
54719
+ credit_cost: number2()
54720
+ }),
54721
+ z116.transform((v) => {
54722
+ return remap(v, {
54723
+ "credit_cost": "creditCost"
54724
+ });
54725
+ })
54726
+ );
54727
+ var UpdatePlanDimensionsLicenseResponse3$inboundSchema = z116.pipe(
54728
+ z116.object({
54729
+ match: z116.record(z116.string(), string5()),
54730
+ priority: optional3(number2()),
54731
+ tier_behavior: literal3("graduated"),
54732
+ tiers: z116.array(
54733
+ z116.lazy(() => UpdatePlanDimensionsLicenseTierResponse2$inboundSchema)
54734
+ )
54735
+ }),
54736
+ z116.transform((v) => {
54737
+ return remap(v, {
54738
+ "tier_behavior": "tierBehavior"
54739
+ });
54740
+ })
54741
+ );
54742
+ var UpdatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
54743
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
54744
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
54745
+ ]);
54746
+ var UpdatePlanLicenseMultipliersResponse2$inboundSchema = z116.object({
54747
+ match: z116.record(z116.string(), string5()),
54748
+ factor: optional3(number2()),
54749
+ add: optional3(number2())
54750
+ });
54751
+ var UpdatePlanCreditSchemaLicenseResponse2$inboundSchema = z116.pipe(
54752
+ z116.object({
54753
+ metered_feature_id: string5(),
54754
+ billing_units: optional3(number2()),
54755
+ dimensions: optional3(z116.record(
54756
+ z116.string(),
54757
+ smartUnion([
54758
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
54759
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
54760
+ ])
54761
+ )),
54762
+ multipliers: optional3(z116.record(
54763
+ z116.string(),
54764
+ z116.lazy(() => UpdatePlanLicenseMultipliersResponse2$inboundSchema)
54765
+ )),
54766
+ credit_cost: number2()
54767
+ }),
54768
+ z116.transform((v) => {
54769
+ return remap(v, {
54770
+ "metered_feature_id": "meteredFeatureId",
54771
+ "billing_units": "billingUnits",
54772
+ "credit_cost": "creditCost"
54773
+ });
54774
+ })
54775
+ );
54776
+ var UpdatePlanDimensionsLicenseResponse2$inboundSchema = z116.pipe(
54777
+ z116.object({
54778
+ match: z116.record(z116.string(), string5()),
54779
+ priority: optional3(number2()),
54780
+ credit_cost: number2()
54781
+ }),
54782
+ z116.transform((v) => {
54783
+ return remap(v, {
54784
+ "credit_cost": "creditCost"
54785
+ });
54786
+ })
54787
+ );
54788
+ var UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z116.enum(
54789
+ UpdatePlanDimensionsToLicenseResponseEnum1
54790
+ );
54791
+ var UpdatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
54792
+ number2(),
54793
+ UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
54794
+ ]);
54795
+ var UpdatePlanDimensionsLicenseTierResponse1$inboundSchema = z116.pipe(
54796
+ z116.object({
54797
+ to: smartUnion([
54798
+ number2(),
54799
+ UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
54800
+ ]),
54801
+ credit_cost: number2()
54802
+ }),
54803
+ z116.transform((v) => {
54804
+ return remap(v, {
54805
+ "credit_cost": "creditCost"
54806
+ });
54807
+ })
54808
+ );
54809
+ var UpdatePlanDimensionsLicenseResponse1$inboundSchema = z116.pipe(
54810
+ z116.object({
54811
+ match: z116.record(z116.string(), string5()),
54812
+ priority: optional3(number2()),
54813
+ tier_behavior: literal3("graduated"),
54814
+ tiers: z116.array(
54815
+ z116.lazy(() => UpdatePlanDimensionsLicenseTierResponse1$inboundSchema)
54816
+ )
54817
+ }),
54818
+ z116.transform((v) => {
54819
+ return remap(v, {
54820
+ "tier_behavior": "tierBehavior"
54821
+ });
54822
+ })
54823
+ );
54824
+ var UpdatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
54825
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
54826
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
54827
+ ]);
54828
+ var UpdatePlanLicenseMultipliersResponse1$inboundSchema = z116.object({
54829
+ match: z116.record(z116.string(), string5()),
54830
+ factor: optional3(number2()),
54831
+ add: optional3(number2())
54832
+ });
54833
+ var UpdatePlanToLicenseResponseEnum$inboundSchema = z116.enum(UpdatePlanToLicenseResponseEnum);
54834
+ var UpdatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), UpdatePlanToLicenseResponseEnum$inboundSchema]);
54835
+ var UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z116.pipe(
54836
+ z116.object({
54837
+ to: smartUnion([
54838
+ number2(),
54839
+ UpdatePlanToLicenseResponseEnum$inboundSchema
54840
+ ]),
54841
+ credit_cost: number2()
54842
+ }),
54843
+ z116.transform((v) => {
54844
+ return remap(v, {
54845
+ "credit_cost": "creditCost"
54846
+ });
54847
+ })
54848
+ );
54849
+ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z116.pipe(
54850
+ z116.object({
54851
+ metered_feature_id: string5(),
54852
+ billing_units: optional3(number2()),
54853
+ dimensions: optional3(z116.record(
54854
+ z116.string(),
54855
+ smartUnion([
54856
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
54857
+ z116.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
54858
+ ])
54859
+ )),
54860
+ multipliers: optional3(z116.record(
54861
+ z116.string(),
54862
+ z116.lazy(() => UpdatePlanLicenseMultipliersResponse1$inboundSchema)
54863
+ )),
54864
+ tier_behavior: literal3("graduated"),
54865
+ tiers: z116.array(z116.lazy(
54866
+ () => UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema
54867
+ ))
54868
+ }),
54869
+ z116.transform((v) => {
54870
+ return remap(v, {
54871
+ "metered_feature_id": "meteredFeatureId",
54872
+ "billing_units": "billingUnits",
54873
+ "tier_behavior": "tierBehavior"
54874
+ });
54875
+ })
54876
+ );
54877
+ var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
54878
+ z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
54879
+ z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
54880
+ ]);
54881
+ var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z116.object({
54882
+ markup: number2()
54883
+ });
54884
+ var UpdatePlanLicenseModelMarkupsResponse$inboundSchema = z116.pipe(
54885
+ z116.object({
54886
+ markup: optional3(number2()),
54887
+ input_cost: optional3(number2()),
54888
+ output_cost: optional3(number2())
54889
+ }),
54890
+ z116.transform((v) => {
54891
+ return remap(v, {
54892
+ "input_cost": "inputCost",
54893
+ "output_cost": "outputCost"
54894
+ });
54895
+ })
54896
+ );
54897
+ var UpdatePlanLicenseMarkupsResponse$inboundSchema = z116.pipe(
54898
+ z116.object({
54899
+ default_markup: optional3(number2()),
54900
+ provider_markups: z116.optional(z116.nullable(z116.record(
54901
+ z116.string(),
54902
+ z116.lazy(() => UpdatePlanLicenseProviderMarkupsResponse$inboundSchema)
54903
+ ))),
54904
+ model_markups: z116.optional(z116.nullable(z116.record(
54905
+ z116.string(),
54906
+ z116.lazy(() => UpdatePlanLicenseModelMarkupsResponse$inboundSchema)
54907
+ )))
54908
+ }),
54909
+ z116.transform((v) => {
54910
+ return remap(v, {
54911
+ "default_markup": "defaultMarkup",
54912
+ "provider_markups": "providerMarkups",
54913
+ "model_markups": "modelMarkups"
54914
+ });
54915
+ })
54916
+ );
54917
+ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z116.pipe(
54918
+ z116.object({
54919
+ credit_schema: optional3(z116.array(smartUnion([
54920
+ z116.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
54921
+ z116.lazy(
54922
+ () => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
54923
+ )
54924
+ ]))),
54925
+ markups: optional3(z116.lazy(
54926
+ () => UpdatePlanLicenseMarkupsResponse$inboundSchema
54927
+ ))
54928
+ }),
54929
+ z116.transform((v) => {
54930
+ return remap(v, {
54931
+ "credit_schema": "creditSchema"
54932
+ });
54933
+ })
54934
+ );
54935
+ var UpdatePlanLicensePlanItemResponse$inboundSchema = z116.pipe(
54936
+ z116.object({
54937
+ threshold_billing: z116.optional(z116.nullable(z116.lazy(
54938
+ () => UpdatePlanLicenseThresholdBillingResponse$inboundSchema
54939
+ ))),
54940
+ feature_id: string5(),
54941
+ included: optional3(number2()),
54942
+ unlimited: optional3(boolean2()),
54943
+ pooled: z116._default(boolean2(), false),
54944
+ reset: optional3(z116.lazy(
54945
+ () => UpdatePlanLicenseResetResponse$inboundSchema
54946
+ )),
54947
+ price: optional3(z116.lazy(
54948
+ () => UpdatePlanLicensePriceResponse$inboundSchema
54949
+ )),
54950
+ proration: optional3(z116.lazy(
54951
+ () => UpdatePlanLicenseProrationResponse$inboundSchema
54952
+ )),
54953
+ rollover: optional3(z116.lazy(
54954
+ () => UpdatePlanLicenseRolloverResponse$inboundSchema
54955
+ )),
54956
+ expiry: optional3(z116.lazy(
54957
+ () => UpdatePlanLicenseExpiryResponse$inboundSchema
54958
+ )),
54959
+ feature_override: optional3(z116.lazy(
54960
+ () => UpdatePlanLicenseFeatureOverrideResponse$inboundSchema
54961
+ ))
54962
+ }),
54963
+ z116.transform((v) => {
54964
+ return remap(v, {
54965
+ "threshold_billing": "thresholdBilling",
54966
+ "feature_id": "featureId",
54967
+ "feature_override": "featureOverride"
54968
+ });
54969
+ })
54970
+ );
54971
+ var UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseRemoveItemBillingMethodResponse);
54972
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum2);
54973
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum1);
54974
+ var UpdatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
54975
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
54976
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
54977
+ ]);
54978
+ var UpdatePlanLicensePlanItemFilterResponse$inboundSchema = z116.pipe(
54979
+ z116.object({
54980
+ feature_id: optional3(string5()),
54981
+ billing_method: optional3(
54982
+ UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
54983
+ ),
54984
+ interval: optional3(
54985
+ smartUnion([
54986
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
54987
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
54988
+ ])
54989
+ ),
54990
+ interval_count: optional3(number2()),
54991
+ included: optional3(number2())
54992
+ }),
54993
+ z116.transform((v) => {
54994
+ return remap(v, {
54995
+ "feature_id": "featureId",
54996
+ "billing_method": "billingMethod",
54997
+ "interval_count": "intervalCount"
54998
+ });
54999
+ })
55000
+ );
55001
+ var UpdatePlanLicenseCustomizeResponse$inboundSchema = z116.pipe(
55002
+ z116.object({
55003
+ price: z116.optional(
55004
+ z116.nullable(
55005
+ z116.lazy(() => UpdatePlanLicenseBasePriceResponse$inboundSchema)
55006
+ )
55007
+ ),
55008
+ add_items: optional3(
55009
+ z116.array(z116.lazy(() => UpdatePlanLicensePlanItemResponse$inboundSchema))
55010
+ ),
55011
+ remove_items: optional3(
55012
+ z116.array(
55013
+ z116.lazy(() => UpdatePlanLicensePlanItemFilterResponse$inboundSchema)
55014
+ )
55015
+ )
55016
+ }),
55017
+ z116.transform((v) => {
55018
+ return remap(v, {
55019
+ "add_items": "addItems",
55020
+ "remove_items": "removeItems"
55021
+ });
55022
+ })
55023
+ );
55024
+ var UpdatePlanLicenseResponse$inboundSchema = z116.pipe(
55025
+ z116.object({
55026
+ license_plan_id: string5(),
55027
+ version: number2(),
55028
+ version_slug: optional3(string5()),
55029
+ included: number2(),
55030
+ prepaid_only: boolean2(),
55031
+ customize: optional3(
55032
+ z116.lazy(() => UpdatePlanLicenseCustomizeResponse$inboundSchema)
55033
+ ),
55034
+ metadata: optional3(z116.record(z116.string(), z116.any())),
55035
+ plan: optional3(Plan$inboundSchema)
55036
+ }),
55037
+ z116.transform((v) => {
55038
+ return remap(v, {
55039
+ "license_plan_id": "licensePlanId",
55040
+ "version_slug": "versionSlug",
55041
+ "prepaid_only": "prepaidOnly"
55042
+ });
55043
+ })
55044
+ );
53257
55045
  var UpdatePlanResponse$inboundSchema = z116.pipe(
53258
55046
  z116.object({
53259
55047
  id: string5(),
@@ -53283,6 +55071,9 @@ var UpdatePlanResponse$inboundSchema = z116.pipe(
53283
55071
  base_variant_id: nullable(string5()),
53284
55072
  variant_details: optional3(
53285
55073
  z116.lazy(() => UpdatePlanVariantDetails$inboundSchema)
55074
+ ),
55075
+ licenses: optional3(
55076
+ z116.array(z116.lazy(() => UpdatePlanLicenseResponse$inboundSchema))
53286
55077
  )
53287
55078
  }),
53288
55079
  z116.transform((v) => {
@@ -54437,7 +56228,10 @@ var APIPromise = class {
54437
56228
  [Symbol.toStringTag] = "APIPromise";
54438
56229
  constructor(p) {
54439
56230
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
54440
- this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
56231
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
56232
+ }
56233
+ #getUnwrapped() {
56234
+ return this.#unwrapped ??= this.#promise.then(([value]) => value);
54441
56235
  }
54442
56236
  then(onfulfilled, onrejected) {
54443
56237
  return this.#promise.then(
@@ -54446,10 +56240,10 @@ var APIPromise = class {
54446
56240
  );
54447
56241
  }
54448
56242
  catch(onrejected) {
54449
- return this.#unwrapped.catch(onrejected);
56243
+ return this.#getUnwrapped().catch(onrejected);
54450
56244
  }
54451
56245
  finally(onfinally) {
54452
- return this.#unwrapped.finally(onfinally);
56246
+ return this.#getUnwrapped().finally(onfinally);
54453
56247
  }
54454
56248
  $inspect() {
54455
56249
  return this.#promise;