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
@@ -6908,8 +6908,8 @@ var SDK_METADATA = {
6908
6908
  language: "typescript",
6909
6909
  openapiDocVersion: "2.4.0",
6910
6910
  sdkVersion: "0.10.18",
6911
- genVersion: "2.882.0",
6912
- userAgent: "speakeasy-sdk/typescript 0.10.18 2.882.0 2.4.0 @useautumn/sdk"
6911
+ genVersion: "2.884.13",
6912
+ userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.4.0 @useautumn/sdk"
6913
6913
  };
6914
6914
 
6915
6915
  // ../sdk/src/lib/http.ts
@@ -19403,7 +19403,7 @@ var CreatePlanDimensionsToItemRequestBodyEnum1 = {
19403
19403
  var CreatePlanToItemRequestBodyEnum = {
19404
19404
  Inf: "inf"
19405
19405
  };
19406
- var CreatePlanPriceLicenseInterval = {
19406
+ var CreatePlanPriceLicenseIntervalRequestBody = {
19407
19407
  OneOff: "one_off",
19408
19408
  Week: "week",
19409
19409
  Month: "month",
@@ -19411,7 +19411,7 @@ var CreatePlanPriceLicenseInterval = {
19411
19411
  SemiAnnual: "semi_annual",
19412
19412
  Year: "year"
19413
19413
  };
19414
- var CreatePlanLicenseResetInterval = {
19414
+ var CreatePlanLicenseResetIntervalRequestBody = {
19415
19415
  OneOff: "one_off",
19416
19416
  Minute: "minute",
19417
19417
  Hour: "hour",
@@ -19422,11 +19422,11 @@ var CreatePlanLicenseResetInterval = {
19422
19422
  SemiAnnual: "semi_annual",
19423
19423
  Year: "year"
19424
19424
  };
19425
- var CreatePlanLicenseTierBehavior = {
19425
+ var CreatePlanLicenseTierBehaviorRequestBody = {
19426
19426
  Graduated: "graduated",
19427
19427
  Volume: "volume"
19428
19428
  };
19429
- var CreatePlanLicenseAddItemPriceInterval = {
19429
+ var CreatePlanAddItemPriceIntervalRequestBody = {
19430
19430
  OneOff: "one_off",
19431
19431
  Week: "week",
19432
19432
  Month: "month",
@@ -19434,47 +19434,47 @@ var CreatePlanLicenseAddItemPriceInterval = {
19434
19434
  SemiAnnual: "semi_annual",
19435
19435
  Year: "year"
19436
19436
  };
19437
- var CreatePlanLicenseAddItemBillingMethod = {
19437
+ var CreatePlanAddItemBillingMethodRequestBody = {
19438
19438
  Prepaid: "prepaid",
19439
19439
  UsageBased: "usage_based"
19440
19440
  };
19441
- var CreatePlanLicenseOnIncrease = {
19441
+ var CreatePlanLicenseOnIncreaseRequestBody = {
19442
19442
  BillImmediately: "bill_immediately",
19443
19443
  ProrateImmediately: "prorate_immediately",
19444
19444
  ProrateNextCycle: "prorate_next_cycle",
19445
19445
  BillNextCycle: "bill_next_cycle"
19446
19446
  };
19447
- var CreatePlanLicenseOnDecrease = {
19447
+ var CreatePlanLicenseOnDecreaseRequestBody = {
19448
19448
  Prorate: "prorate",
19449
19449
  ProrateImmediately: "prorate_immediately",
19450
19450
  ProrateNextCycle: "prorate_next_cycle",
19451
19451
  None: "none",
19452
19452
  NoProrations: "no_prorations"
19453
19453
  };
19454
- var CreatePlanLicenseExpiryDurationType = {
19454
+ var CreatePlanLicenseExpiryDurationTypeRequestBody = {
19455
19455
  Month: "month",
19456
19456
  Forever: "forever"
19457
19457
  };
19458
- var CreatePlanLicenseDuration = {
19458
+ var CreatePlanLicenseDurationRequestBody = {
19459
19459
  Day: "day",
19460
19460
  Week: "week",
19461
19461
  Month: "month",
19462
19462
  Year: "year"
19463
19463
  };
19464
- var CreatePlanDimensionsToLicenseEnum2 = {
19464
+ var CreatePlanDimensionsToLicenseRequestBodyEnum2 = {
19465
19465
  Inf: "inf"
19466
19466
  };
19467
- var CreatePlanDimensionsToLicenseEnum1 = {
19467
+ var CreatePlanDimensionsToLicenseRequestBodyEnum1 = {
19468
19468
  Inf: "inf"
19469
19469
  };
19470
- var CreatePlanToLicenseEnum = {
19470
+ var CreatePlanToLicenseRequestBodyEnum = {
19471
19471
  Inf: "inf"
19472
19472
  };
19473
- var CreatePlanLicenseRemoveItemBillingMethod = {
19473
+ var CreatePlanRemoveItemBillingMethodRequestBody = {
19474
19474
  Prepaid: "prepaid",
19475
19475
  UsageBased: "usage_based"
19476
19476
  };
19477
- var CreatePlanIntervalLicenseRemoveItemEnum2 = {
19477
+ var CreatePlanIntervalRemoveItemRequestBodyEnum2 = {
19478
19478
  OneOff: "one_off",
19479
19479
  Minute: "minute",
19480
19480
  Hour: "hour",
@@ -19485,7 +19485,7 @@ var CreatePlanIntervalLicenseRemoveItemEnum2 = {
19485
19485
  SemiAnnual: "semi_annual",
19486
19486
  Year: "year"
19487
19487
  };
19488
- var CreatePlanIntervalLicenseRemoveItemEnum1 = {
19488
+ var CreatePlanIntervalRemoveItemRequestBodyEnum1 = {
19489
19489
  OneOff: "one_off",
19490
19490
  Week: "week",
19491
19491
  Month: "month",
@@ -20008,19 +20008,21 @@ var CreatePlanItemPlanItem$outboundSchema = z46.pipe(
20008
20008
  });
20009
20009
  })
20010
20010
  );
20011
- var CreatePlanPriceLicenseInterval$outboundSchema = z46.enum(CreatePlanPriceLicenseInterval);
20012
- var CreatePlanLicenseAdditionalCurrency$outboundSchema = z46.object({
20011
+ var CreatePlanPriceLicenseIntervalRequestBody$outboundSchema = z46.enum(
20012
+ CreatePlanPriceLicenseIntervalRequestBody
20013
+ );
20014
+ var CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z46.object({
20013
20015
  currency: z46.string(),
20014
20016
  amount: z46.number()
20015
20017
  });
20016
- var CreatePlanLicenseBasePrice$outboundSchema = z46.pipe(
20018
+ var CreatePlanBasePriceRequestBody$outboundSchema = z46.pipe(
20017
20019
  z46.object({
20018
20020
  amount: z46.number(),
20019
- interval: CreatePlanPriceLicenseInterval$outboundSchema,
20021
+ interval: CreatePlanPriceLicenseIntervalRequestBody$outboundSchema,
20020
20022
  intervalCount: z46._default(z46.number(), 1),
20021
- additionalCurrencies: z46.optional(
20022
- z46.array(z46.lazy(() => CreatePlanLicenseAdditionalCurrency$outboundSchema))
20023
- )
20023
+ additionalCurrencies: z46.optional(z46.array(z46.lazy(
20024
+ () => CreatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
20025
+ )))
20024
20026
  }),
20025
20027
  z46.transform((v) => {
20026
20028
  return remap(v, {
@@ -20029,13 +20031,15 @@ var CreatePlanLicenseBasePrice$outboundSchema = z46.pipe(
20029
20031
  });
20030
20032
  })
20031
20033
  );
20032
- var CreatePlanLicenseThresholdBilling$outboundSchema = z46.object({
20034
+ var CreatePlanLicenseThresholdBillingRequestBody$outboundSchema = z46.object({
20033
20035
  threshold: z46.number()
20034
20036
  });
20035
- var CreatePlanLicenseResetInterval$outboundSchema = z46.enum(CreatePlanLicenseResetInterval);
20036
- var CreatePlanLicenseReset$outboundSchema = z46.pipe(
20037
+ var CreatePlanLicenseResetIntervalRequestBody$outboundSchema = z46.enum(
20038
+ CreatePlanLicenseResetIntervalRequestBody
20039
+ );
20040
+ var CreatePlanLicenseResetRequestBody$outboundSchema = z46.pipe(
20037
20041
  z46.object({
20038
- interval: CreatePlanLicenseResetInterval$outboundSchema,
20042
+ interval: CreatePlanLicenseResetIntervalRequestBody$outboundSchema,
20039
20043
  intervalCount: z46._default(z46.number(), 1)
20040
20044
  }),
20041
20045
  z46.transform((v) => {
@@ -20044,12 +20048,12 @@ var CreatePlanLicenseReset$outboundSchema = z46.pipe(
20044
20048
  });
20045
20049
  })
20046
20050
  );
20047
- var CreatePlanLicenseAddItemAdditionalCurrency$outboundSchema = z46.object({
20051
+ var CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema = z46.object({
20048
20052
  currency: z46.string(),
20049
20053
  amount: z46.number()
20050
20054
  });
20051
- var CreatePlanLicensePriceTo$outboundSchema = smartUnion([z46.number(), z46.string()]);
20052
- var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z46.pipe(
20055
+ var CreatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z46.number(), z46.string()]);
20056
+ var CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z46.pipe(
20053
20057
  z46.object({
20054
20058
  currency: z46.string(),
20055
20059
  amount: z46.optional(z46.number()),
@@ -20061,13 +20065,13 @@ var CreatePlanLicenseTierAdditionalCurrency$outboundSchema = z46.pipe(
20061
20065
  });
20062
20066
  })
20063
20067
  );
20064
- var CreatePlanLicensePriceTier$outboundSchema = z46.pipe(
20068
+ var CreatePlanLicensePriceTierRequestBody$outboundSchema = z46.pipe(
20065
20069
  z46.object({
20066
20070
  to: smartUnion([z46.number(), z46.string()]),
20067
20071
  amount: z46.optional(z46.number()),
20068
20072
  flatAmount: z46.optional(z46.number()),
20069
20073
  additionalCurrencies: z46.optional(z46.array(z46.lazy(
20070
- () => CreatePlanLicenseTierAdditionalCurrency$outboundSchema
20074
+ () => CreatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
20071
20075
  )))
20072
20076
  }),
20073
20077
  z46.transform((v) => {
@@ -20077,27 +20081,31 @@ var CreatePlanLicensePriceTier$outboundSchema = z46.pipe(
20077
20081
  });
20078
20082
  })
20079
20083
  );
20080
- var CreatePlanLicenseTierBehavior$outboundSchema = z46.enum(CreatePlanLicenseTierBehavior);
20081
- var CreatePlanLicenseAddItemPriceInterval$outboundSchema = z46.enum(
20082
- CreatePlanLicenseAddItemPriceInterval
20084
+ var CreatePlanLicenseTierBehaviorRequestBody$outboundSchema = z46.enum(
20085
+ CreatePlanLicenseTierBehaviorRequestBody
20086
+ );
20087
+ var CreatePlanAddItemPriceIntervalRequestBody$outboundSchema = z46.enum(
20088
+ CreatePlanAddItemPriceIntervalRequestBody
20083
20089
  );
20084
- var CreatePlanLicenseAddItemBillingMethod$outboundSchema = z46.enum(
20085
- CreatePlanLicenseAddItemBillingMethod
20090
+ var CreatePlanAddItemBillingMethodRequestBody$outboundSchema = z46.enum(
20091
+ CreatePlanAddItemBillingMethodRequestBody
20086
20092
  );
20087
- var CreatePlanLicensePrice$outboundSchema = z46.pipe(
20093
+ var CreatePlanLicensePriceRequestBody$outboundSchema = z46.pipe(
20088
20094
  z46.object({
20089
20095
  amount: z46.optional(z46.number()),
20090
20096
  additionalCurrencies: z46.optional(z46.array(z46.lazy(
20091
- () => CreatePlanLicenseAddItemAdditionalCurrency$outboundSchema
20097
+ () => CreatePlanAddItemAdditionalCurrencyRequestBody$outboundSchema
20092
20098
  ))),
20093
20099
  tiers: z46.optional(z46.array(z46.lazy(
20094
- () => CreatePlanLicensePriceTier$outboundSchema
20100
+ () => CreatePlanLicensePriceTierRequestBody$outboundSchema
20095
20101
  ))),
20096
- tierBehavior: z46.optional(CreatePlanLicenseTierBehavior$outboundSchema),
20097
- interval: CreatePlanLicenseAddItemPriceInterval$outboundSchema,
20102
+ tierBehavior: z46.optional(
20103
+ CreatePlanLicenseTierBehaviorRequestBody$outboundSchema
20104
+ ),
20105
+ interval: CreatePlanAddItemPriceIntervalRequestBody$outboundSchema,
20098
20106
  intervalCount: z46._default(z46.number(), 1),
20099
20107
  billingUnits: z46._default(z46.number(), 1),
20100
- billingMethod: CreatePlanLicenseAddItemBillingMethod$outboundSchema,
20108
+ billingMethod: CreatePlanAddItemBillingMethodRequestBody$outboundSchema,
20101
20109
  maxPurchase: z46.optional(z46.nullable(z46.number()))
20102
20110
  }),
20103
20111
  z46.transform((v) => {
@@ -20111,12 +20119,16 @@ var CreatePlanLicensePrice$outboundSchema = z46.pipe(
20111
20119
  });
20112
20120
  })
20113
20121
  );
20114
- var CreatePlanLicenseOnIncrease$outboundSchema = z46.enum(CreatePlanLicenseOnIncrease);
20115
- var CreatePlanLicenseOnDecrease$outboundSchema = z46.enum(CreatePlanLicenseOnDecrease);
20116
- var CreatePlanLicenseProration$outboundSchema = z46.pipe(
20122
+ var CreatePlanLicenseOnIncreaseRequestBody$outboundSchema = z46.enum(
20123
+ CreatePlanLicenseOnIncreaseRequestBody
20124
+ );
20125
+ var CreatePlanLicenseOnDecreaseRequestBody$outboundSchema = z46.enum(
20126
+ CreatePlanLicenseOnDecreaseRequestBody
20127
+ );
20128
+ var CreatePlanLicenseProrationRequestBody$outboundSchema = z46.pipe(
20117
20129
  z46.object({
20118
- onIncrease: CreatePlanLicenseOnIncrease$outboundSchema,
20119
- onDecrease: CreatePlanLicenseOnDecrease$outboundSchema
20130
+ onIncrease: CreatePlanLicenseOnIncreaseRequestBody$outboundSchema,
20131
+ onDecrease: CreatePlanLicenseOnDecreaseRequestBody$outboundSchema
20120
20132
  }),
20121
20133
  z46.transform((v) => {
20122
20134
  return remap(v, {
@@ -20125,12 +20137,14 @@ var CreatePlanLicenseProration$outboundSchema = z46.pipe(
20125
20137
  });
20126
20138
  })
20127
20139
  );
20128
- var CreatePlanLicenseExpiryDurationType$outboundSchema = z46.enum(CreatePlanLicenseExpiryDurationType);
20129
- var CreatePlanLicenseRollover$outboundSchema = z46.pipe(
20140
+ var CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z46.enum(
20141
+ CreatePlanLicenseExpiryDurationTypeRequestBody
20142
+ );
20143
+ var CreatePlanLicenseRolloverRequestBody$outboundSchema = z46.pipe(
20130
20144
  z46.object({
20131
20145
  max: z46.optional(z46.number()),
20132
20146
  maxPercentage: z46.optional(z46.number()),
20133
- expiryDurationType: CreatePlanLicenseExpiryDurationType$outboundSchema,
20147
+ expiryDurationType: CreatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
20134
20148
  expiryDurationLength: z46.optional(z46.number())
20135
20149
  }),
20136
20150
  z46.transform((v) => {
@@ -20141,13 +20155,13 @@ var CreatePlanLicenseRollover$outboundSchema = z46.pipe(
20141
20155
  });
20142
20156
  })
20143
20157
  );
20144
- var CreatePlanLicenseDuration$outboundSchema = z46.enum(CreatePlanLicenseDuration);
20145
- var CreatePlanLicenseExpiry$outboundSchema = z46.object({
20146
- duration: CreatePlanLicenseDuration$outboundSchema,
20158
+ var CreatePlanLicenseDurationRequestBody$outboundSchema = z46.enum(CreatePlanLicenseDurationRequestBody);
20159
+ var CreatePlanLicenseExpiryRequestBody$outboundSchema = z46.object({
20160
+ duration: CreatePlanLicenseDurationRequestBody$outboundSchema,
20147
20161
  length: z46.number()
20148
20162
  });
20149
20163
  var CreatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z46.string(), z46.number(), z46.boolean()]);
20150
- var CreatePlanDimensionsLicense4$outboundSchema = z46.pipe(
20164
+ var CreatePlanDimensionsLicenseRequestBody4$outboundSchema = z46.pipe(
20151
20165
  z46.object({
20152
20166
  match: z46.record(
20153
20167
  z46.string(),
@@ -20163,13 +20177,18 @@ var CreatePlanDimensionsLicense4$outboundSchema = z46.pipe(
20163
20177
  })
20164
20178
  );
20165
20179
  var CreatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z46.string(), z46.number(), z46.boolean()]);
20166
- var CreatePlanDimensionsToLicenseEnum2$outboundSchema = z46.enum(CreatePlanDimensionsToLicenseEnum2);
20167
- var CreatePlanDimensionsLicenseToUnion2$outboundSchema = smartUnion([z46.number(), CreatePlanDimensionsToLicenseEnum2$outboundSchema]);
20168
- var CreatePlanDimensionsLicenseTier2$outboundSchema = z46.pipe(
20180
+ var CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z46.enum(
20181
+ CreatePlanDimensionsToLicenseRequestBodyEnum2
20182
+ );
20183
+ var CreatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
20184
+ z46.number(),
20185
+ CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
20186
+ ]);
20187
+ var CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z46.pipe(
20169
20188
  z46.object({
20170
20189
  to: smartUnion([
20171
20190
  z46.number(),
20172
- CreatePlanDimensionsToLicenseEnum2$outboundSchema
20191
+ CreatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
20173
20192
  ]),
20174
20193
  creditCost: z46.number()
20175
20194
  }),
@@ -20179,7 +20198,7 @@ var CreatePlanDimensionsLicenseTier2$outboundSchema = z46.pipe(
20179
20198
  });
20180
20199
  })
20181
20200
  );
20182
- var CreatePlanDimensionsLicense3$outboundSchema = z46.pipe(
20201
+ var CreatePlanDimensionsLicenseRequestBody3$outboundSchema = z46.pipe(
20183
20202
  z46.object({
20184
20203
  match: z46.record(
20185
20204
  z46.string(),
@@ -20188,7 +20207,9 @@ var CreatePlanDimensionsLicense3$outboundSchema = z46.pipe(
20188
20207
  priority: z46.optional(z46.int()),
20189
20208
  tierBehavior: z46.literal("graduated"),
20190
20209
  tiers: z46.array(
20191
- z46.lazy(() => CreatePlanDimensionsLicenseTier2$outboundSchema)
20210
+ z46.lazy(
20211
+ () => CreatePlanDimensionsLicenseTierRequestBody2$outboundSchema
20212
+ )
20192
20213
  )
20193
20214
  }),
20194
20215
  z46.transform((v) => {
@@ -20197,12 +20218,12 @@ var CreatePlanDimensionsLicense3$outboundSchema = z46.pipe(
20197
20218
  });
20198
20219
  })
20199
20220
  );
20200
- var CreatePlanLicenseDimensionsUnion2$outboundSchema = smartUnion([
20201
- z46.lazy(() => CreatePlanDimensionsLicense3$outboundSchema),
20202
- z46.lazy(() => CreatePlanDimensionsLicense4$outboundSchema)
20221
+ var CreatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
20222
+ z46.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
20223
+ z46.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
20203
20224
  ]);
20204
20225
  var CreatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z46.string(), z46.number(), z46.boolean()]);
20205
- var CreatePlanLicenseMultipliers2$outboundSchema = z46.object({
20226
+ var CreatePlanLicenseMultipliersRequestBody2$outboundSchema = z46.object({
20206
20227
  match: z46.record(
20207
20228
  z46.string(),
20208
20229
  smartUnion([z46.string(), z46.number(), z46.boolean()])
@@ -20210,20 +20231,20 @@ var CreatePlanLicenseMultipliers2$outboundSchema = z46.object({
20210
20231
  factor: z46.optional(z46.number()),
20211
20232
  add: z46.optional(z46.number())
20212
20233
  });
20213
- var CreatePlanCreditSchemaLicense2$outboundSchema = z46.pipe(
20234
+ var CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z46.pipe(
20214
20235
  z46.object({
20215
20236
  meteredFeatureId: z46.string(),
20216
20237
  billingUnits: z46.optional(z46.number()),
20217
20238
  dimensions: z46.optional(z46.record(
20218
20239
  z46.string(),
20219
20240
  smartUnion([
20220
- z46.lazy(() => CreatePlanDimensionsLicense3$outboundSchema),
20221
- z46.lazy(() => CreatePlanDimensionsLicense4$outboundSchema)
20241
+ z46.lazy(() => CreatePlanDimensionsLicenseRequestBody3$outboundSchema),
20242
+ z46.lazy(() => CreatePlanDimensionsLicenseRequestBody4$outboundSchema)
20222
20243
  ])
20223
20244
  )),
20224
20245
  multipliers: z46.optional(z46.record(
20225
20246
  z46.string(),
20226
- z46.lazy(() => CreatePlanLicenseMultipliers2$outboundSchema)
20247
+ z46.lazy(() => CreatePlanLicenseMultipliersRequestBody2$outboundSchema)
20227
20248
  )),
20228
20249
  creditCost: z46.number()
20229
20250
  }),
@@ -20236,7 +20257,7 @@ var CreatePlanCreditSchemaLicense2$outboundSchema = z46.pipe(
20236
20257
  })
20237
20258
  );
20238
20259
  var CreatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z46.string(), z46.number(), z46.boolean()]);
20239
- var CreatePlanDimensionsLicense2$outboundSchema = z46.pipe(
20260
+ var CreatePlanDimensionsLicenseRequestBody2$outboundSchema = z46.pipe(
20240
20261
  z46.object({
20241
20262
  match: z46.record(
20242
20263
  z46.string(),
@@ -20252,13 +20273,18 @@ var CreatePlanDimensionsLicense2$outboundSchema = z46.pipe(
20252
20273
  })
20253
20274
  );
20254
20275
  var CreatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z46.string(), z46.number(), z46.boolean()]);
20255
- var CreatePlanDimensionsToLicenseEnum1$outboundSchema = z46.enum(CreatePlanDimensionsToLicenseEnum1);
20256
- var CreatePlanDimensionsLicenseToUnion1$outboundSchema = smartUnion([z46.number(), CreatePlanDimensionsToLicenseEnum1$outboundSchema]);
20257
- var CreatePlanDimensionsLicenseTier1$outboundSchema = z46.pipe(
20276
+ var CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z46.enum(
20277
+ CreatePlanDimensionsToLicenseRequestBodyEnum1
20278
+ );
20279
+ var CreatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
20280
+ z46.number(),
20281
+ CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
20282
+ ]);
20283
+ var CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z46.pipe(
20258
20284
  z46.object({
20259
20285
  to: smartUnion([
20260
20286
  z46.number(),
20261
- CreatePlanDimensionsToLicenseEnum1$outboundSchema
20287
+ CreatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
20262
20288
  ]),
20263
20289
  creditCost: z46.number()
20264
20290
  }),
@@ -20268,7 +20294,7 @@ var CreatePlanDimensionsLicenseTier1$outboundSchema = z46.pipe(
20268
20294
  });
20269
20295
  })
20270
20296
  );
20271
- var CreatePlanDimensionsLicense1$outboundSchema = z46.pipe(
20297
+ var CreatePlanDimensionsLicenseRequestBody1$outboundSchema = z46.pipe(
20272
20298
  z46.object({
20273
20299
  match: z46.record(
20274
20300
  z46.string(),
@@ -20277,7 +20303,9 @@ var CreatePlanDimensionsLicense1$outboundSchema = z46.pipe(
20277
20303
  priority: z46.optional(z46.int()),
20278
20304
  tierBehavior: z46.literal("graduated"),
20279
20305
  tiers: z46.array(
20280
- z46.lazy(() => CreatePlanDimensionsLicenseTier1$outboundSchema)
20306
+ z46.lazy(
20307
+ () => CreatePlanDimensionsLicenseTierRequestBody1$outboundSchema
20308
+ )
20281
20309
  )
20282
20310
  }),
20283
20311
  z46.transform((v) => {
@@ -20286,12 +20314,12 @@ var CreatePlanDimensionsLicense1$outboundSchema = z46.pipe(
20286
20314
  });
20287
20315
  })
20288
20316
  );
20289
- var CreatePlanLicenseDimensionsUnion1$outboundSchema = smartUnion([
20290
- z46.lazy(() => CreatePlanDimensionsLicense1$outboundSchema),
20291
- z46.lazy(() => CreatePlanDimensionsLicense2$outboundSchema)
20317
+ var CreatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
20318
+ z46.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
20319
+ z46.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
20292
20320
  ]);
20293
20321
  var CreatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z46.string(), z46.number(), z46.boolean()]);
20294
- var CreatePlanLicenseMultipliers1$outboundSchema = z46.object({
20322
+ var CreatePlanLicenseMultipliersRequestBody1$outboundSchema = z46.object({
20295
20323
  match: z46.record(
20296
20324
  z46.string(),
20297
20325
  smartUnion([z46.string(), z46.number(), z46.boolean()])
@@ -20299,11 +20327,17 @@ var CreatePlanLicenseMultipliers1$outboundSchema = z46.object({
20299
20327
  factor: z46.optional(z46.number()),
20300
20328
  add: z46.optional(z46.number())
20301
20329
  });
20302
- var CreatePlanToLicenseEnum$outboundSchema = z46.enum(CreatePlanToLicenseEnum);
20303
- var CreatePlanLicenseFeatureOverrideToUnion$outboundSchema = smartUnion([z46.number(), CreatePlanToLicenseEnum$outboundSchema]);
20304
- var CreatePlanLicenseFeatureOverrideTier$outboundSchema = z46.pipe(
20330
+ var CreatePlanToLicenseRequestBodyEnum$outboundSchema = z46.enum(CreatePlanToLicenseRequestBodyEnum);
20331
+ var CreatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
20332
+ z46.number(),
20333
+ CreatePlanToLicenseRequestBodyEnum$outboundSchema
20334
+ ]);
20335
+ var CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z46.pipe(
20305
20336
  z46.object({
20306
- to: smartUnion([z46.number(), CreatePlanToLicenseEnum$outboundSchema]),
20337
+ to: smartUnion([
20338
+ z46.number(),
20339
+ CreatePlanToLicenseRequestBodyEnum$outboundSchema
20340
+ ]),
20307
20341
  creditCost: z46.number()
20308
20342
  }),
20309
20343
  z46.transform((v) => {
@@ -20312,24 +20346,24 @@ var CreatePlanLicenseFeatureOverrideTier$outboundSchema = z46.pipe(
20312
20346
  });
20313
20347
  })
20314
20348
  );
20315
- var CreatePlanCreditSchemaLicense1$outboundSchema = z46.pipe(
20349
+ var CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z46.pipe(
20316
20350
  z46.object({
20317
20351
  meteredFeatureId: z46.string(),
20318
20352
  billingUnits: z46.optional(z46.number()),
20319
20353
  dimensions: z46.optional(z46.record(
20320
20354
  z46.string(),
20321
20355
  smartUnion([
20322
- z46.lazy(() => CreatePlanDimensionsLicense1$outboundSchema),
20323
- z46.lazy(() => CreatePlanDimensionsLicense2$outboundSchema)
20356
+ z46.lazy(() => CreatePlanDimensionsLicenseRequestBody1$outboundSchema),
20357
+ z46.lazy(() => CreatePlanDimensionsLicenseRequestBody2$outboundSchema)
20324
20358
  ])
20325
20359
  )),
20326
20360
  multipliers: z46.optional(z46.record(
20327
20361
  z46.string(),
20328
- z46.lazy(() => CreatePlanLicenseMultipliers1$outboundSchema)
20362
+ z46.lazy(() => CreatePlanLicenseMultipliersRequestBody1$outboundSchema)
20329
20363
  )),
20330
20364
  tierBehavior: z46.literal("graduated"),
20331
20365
  tiers: z46.array(z46.lazy(
20332
- () => CreatePlanLicenseFeatureOverrideTier$outboundSchema
20366
+ () => CreatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
20333
20367
  ))
20334
20368
  }),
20335
20369
  z46.transform((v) => {
@@ -20340,14 +20374,14 @@ var CreatePlanCreditSchemaLicense1$outboundSchema = z46.pipe(
20340
20374
  });
20341
20375
  })
20342
20376
  );
20343
- var CreatePlanLicenseCreditSchemaUnion$outboundSchema = smartUnion([
20344
- z46.lazy(() => CreatePlanCreditSchemaLicense1$outboundSchema),
20345
- z46.lazy(() => CreatePlanCreditSchemaLicense2$outboundSchema)
20377
+ var CreatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
20378
+ z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
20379
+ z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
20346
20380
  ]);
20347
- var CreatePlanLicenseProviderMarkups$outboundSchema = z46.object({
20381
+ var CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z46.object({
20348
20382
  markup: z46.number()
20349
20383
  });
20350
- var CreatePlanLicenseModelMarkups$outboundSchema = z46.pipe(
20384
+ var CreatePlanLicenseModelMarkupsRequestBody$outboundSchema = z46.pipe(
20351
20385
  z46.object({
20352
20386
  markup: z46.optional(z46.number()),
20353
20387
  inputCost: z46.optional(z46.number()),
@@ -20360,16 +20394,16 @@ var CreatePlanLicenseModelMarkups$outboundSchema = z46.pipe(
20360
20394
  });
20361
20395
  })
20362
20396
  );
20363
- var CreatePlanLicenseMarkups$outboundSchema = z46.pipe(
20397
+ var CreatePlanLicenseMarkupsRequestBody$outboundSchema = z46.pipe(
20364
20398
  z46.object({
20365
20399
  defaultMarkup: z46.optional(z46.number()),
20366
20400
  providerMarkups: z46.optional(z46.nullable(z46.record(
20367
20401
  z46.string(),
20368
- z46.lazy(() => CreatePlanLicenseProviderMarkups$outboundSchema)
20402
+ z46.lazy(() => CreatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
20369
20403
  ))),
20370
20404
  modelMarkups: z46.optional(z46.nullable(z46.record(
20371
20405
  z46.string(),
20372
- z46.lazy(() => CreatePlanLicenseModelMarkups$outboundSchema)
20406
+ z46.lazy(() => CreatePlanLicenseModelMarkupsRequestBody$outboundSchema)
20373
20407
  )))
20374
20408
  }),
20375
20409
  z46.transform((v) => {
@@ -20380,16 +20414,16 @@ var CreatePlanLicenseMarkups$outboundSchema = z46.pipe(
20380
20414
  });
20381
20415
  })
20382
20416
  );
20383
- var CreatePlanLicenseFeatureOverride$outboundSchema = z46.pipe(
20417
+ var CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z46.pipe(
20384
20418
  z46.object({
20385
20419
  creditSchema: z46.optional(z46.array(smartUnion([
20386
- z46.lazy(() => CreatePlanCreditSchemaLicense1$outboundSchema),
20420
+ z46.lazy(() => CreatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
20387
20421
  z46.lazy(
20388
- () => CreatePlanCreditSchemaLicense2$outboundSchema
20422
+ () => CreatePlanCreditSchemaLicenseRequestBody2$outboundSchema
20389
20423
  )
20390
20424
  ]))),
20391
20425
  markups: z46.optional(z46.lazy(
20392
- () => CreatePlanLicenseMarkups$outboundSchema
20426
+ () => CreatePlanLicenseMarkupsRequestBody$outboundSchema
20393
20427
  ))
20394
20428
  }),
20395
20429
  z46.transform((v) => {
@@ -20398,29 +20432,33 @@ var CreatePlanLicenseFeatureOverride$outboundSchema = z46.pipe(
20398
20432
  });
20399
20433
  })
20400
20434
  );
20401
- var CreatePlanLicensePlanItem$outboundSchema = z46.pipe(
20435
+ var CreatePlanLicensePlanItemRequestBody$outboundSchema = z46.pipe(
20402
20436
  z46.object({
20403
- thresholdBilling: z46.optional(
20404
- z46.nullable(
20405
- z46.lazy(() => CreatePlanLicenseThresholdBilling$outboundSchema)
20406
- )
20407
- ),
20437
+ thresholdBilling: z46.optional(z46.nullable(z46.lazy(
20438
+ () => CreatePlanLicenseThresholdBillingRequestBody$outboundSchema
20439
+ ))),
20408
20440
  featureId: z46.string(),
20409
20441
  included: z46.optional(z46.number()),
20410
20442
  unlimited: z46.optional(z46.boolean()),
20411
20443
  pooled: z46._default(z46.boolean(), false),
20412
- reset: z46.optional(z46.lazy(() => CreatePlanLicenseReset$outboundSchema)),
20413
- price: z46.optional(z46.lazy(() => CreatePlanLicensePrice$outboundSchema)),
20414
- proration: z46.optional(
20415
- z46.lazy(() => CreatePlanLicenseProration$outboundSchema)
20416
- ),
20417
- rollover: z46.optional(
20418
- z46.lazy(() => CreatePlanLicenseRollover$outboundSchema)
20419
- ),
20420
- expiry: z46.optional(z46.lazy(() => CreatePlanLicenseExpiry$outboundSchema)),
20421
- featureOverride: z46.optional(
20422
- z46.lazy(() => CreatePlanLicenseFeatureOverride$outboundSchema)
20423
- )
20444
+ reset: z46.optional(z46.lazy(
20445
+ () => CreatePlanLicenseResetRequestBody$outboundSchema
20446
+ )),
20447
+ price: z46.optional(z46.lazy(
20448
+ () => CreatePlanLicensePriceRequestBody$outboundSchema
20449
+ )),
20450
+ proration: z46.optional(z46.lazy(
20451
+ () => CreatePlanLicenseProrationRequestBody$outboundSchema
20452
+ )),
20453
+ rollover: z46.optional(z46.lazy(
20454
+ () => CreatePlanLicenseRolloverRequestBody$outboundSchema
20455
+ )),
20456
+ expiry: z46.optional(z46.lazy(
20457
+ () => CreatePlanLicenseExpiryRequestBody$outboundSchema
20458
+ )),
20459
+ featureOverride: z46.optional(z46.lazy(
20460
+ () => CreatePlanLicenseFeatureOverrideRequestBody$outboundSchema
20461
+ ))
20424
20462
  }),
20425
20463
  z46.transform((v) => {
20426
20464
  return remap(v, {
@@ -20430,29 +20468,29 @@ var CreatePlanLicensePlanItem$outboundSchema = z46.pipe(
20430
20468
  });
20431
20469
  })
20432
20470
  );
20433
- var CreatePlanLicenseRemoveItemBillingMethod$outboundSchema = z46.enum(
20434
- CreatePlanLicenseRemoveItemBillingMethod
20471
+ var CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema = z46.enum(
20472
+ CreatePlanRemoveItemBillingMethodRequestBody
20435
20473
  );
20436
- var CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema = z46.enum(
20437
- CreatePlanIntervalLicenseRemoveItemEnum2
20474
+ var CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema = z46.enum(
20475
+ CreatePlanIntervalRemoveItemRequestBodyEnum2
20438
20476
  );
20439
- var CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z46.enum(
20440
- CreatePlanIntervalLicenseRemoveItemEnum1
20477
+ var CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema = z46.enum(
20478
+ CreatePlanIntervalRemoveItemRequestBodyEnum1
20441
20479
  );
20442
- var CreatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
20443
- CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
20444
- CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
20480
+ var CreatePlanIntervalRequestBodyUnion$outboundSchema = smartUnion([
20481
+ CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
20482
+ CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
20445
20483
  ]);
20446
- var CreatePlanLicensePlanItemFilter$outboundSchema = z46.pipe(
20484
+ var CreatePlanPlanItemFilterRequestBody$outboundSchema = z46.pipe(
20447
20485
  z46.object({
20448
20486
  featureId: z46.optional(z46.string()),
20449
20487
  billingMethod: z46.optional(
20450
- CreatePlanLicenseRemoveItemBillingMethod$outboundSchema
20488
+ CreatePlanRemoveItemBillingMethodRequestBody$outboundSchema
20451
20489
  ),
20452
20490
  interval: z46.optional(
20453
20491
  smartUnion([
20454
- CreatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
20455
- CreatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
20492
+ CreatePlanIntervalRemoveItemRequestBodyEnum1$outboundSchema,
20493
+ CreatePlanIntervalRemoveItemRequestBodyEnum2$outboundSchema
20456
20494
  ])
20457
20495
  ),
20458
20496
  intervalCount: z46.optional(z46.int()),
@@ -20466,16 +20504,18 @@ var CreatePlanLicensePlanItemFilter$outboundSchema = z46.pipe(
20466
20504
  });
20467
20505
  })
20468
20506
  );
20469
- var CreatePlanLicenseCustomize$outboundSchema = z46.pipe(
20507
+ var CreatePlanCustomizeRequestBody$outboundSchema = z46.pipe(
20470
20508
  z46.object({
20471
20509
  price: z46.optional(
20472
- z46.nullable(z46.lazy(() => CreatePlanLicenseBasePrice$outboundSchema))
20510
+ z46.nullable(z46.lazy(() => CreatePlanBasePriceRequestBody$outboundSchema))
20473
20511
  ),
20474
20512
  addItems: z46.optional(
20475
- z46.array(z46.lazy(() => CreatePlanLicensePlanItem$outboundSchema))
20513
+ z46.array(
20514
+ z46.lazy(() => CreatePlanLicensePlanItemRequestBody$outboundSchema)
20515
+ )
20476
20516
  ),
20477
20517
  removeItems: z46.optional(
20478
- z46.array(z46.lazy(() => CreatePlanLicensePlanItemFilter$outboundSchema))
20518
+ z46.array(z46.lazy(() => CreatePlanPlanItemFilterRequestBody$outboundSchema))
20479
20519
  )
20480
20520
  }),
20481
20521
  z46.transform((v) => {
@@ -20485,14 +20525,14 @@ var CreatePlanLicenseCustomize$outboundSchema = z46.pipe(
20485
20525
  });
20486
20526
  })
20487
20527
  );
20488
- var CreatePlanLicense$outboundSchema = z46.pipe(
20528
+ var CreatePlanLicenseRequest$outboundSchema = z46.pipe(
20489
20529
  z46.object({
20490
20530
  licensePlanId: z46.string(),
20491
20531
  versionSlug: z46.optional(z46.string()),
20492
20532
  included: z46.optional(z46.int()),
20493
20533
  prepaidOnly: z46.optional(z46.boolean()),
20494
20534
  customize: z46.optional(
20495
- z46.nullable(z46.lazy(() => CreatePlanLicenseCustomize$outboundSchema))
20535
+ z46.nullable(z46.lazy(() => CreatePlanCustomizeRequestBody$outboundSchema))
20496
20536
  ),
20497
20537
  metadata: z46.optional(z46.record(z46.string(), z46.any()))
20498
20538
  }),
@@ -20698,7 +20738,7 @@ var CreatePlanParams$outboundSchema = z46.pipe(
20698
20738
  z46.array(z46.lazy(() => CreatePlanItemPlanItem$outboundSchema))
20699
20739
  ),
20700
20740
  licenses: z46.optional(
20701
- z46.array(z46.lazy(() => CreatePlanLicense$outboundSchema))
20741
+ z46.array(z46.lazy(() => CreatePlanLicenseRequest$outboundSchema))
20702
20742
  ),
20703
20743
  freeTrial: z46.optional(z46.lazy(() => FreeTrialRequestBody$outboundSchema)),
20704
20744
  config: z46.optional(
@@ -20969,17 +21009,17 @@ var CreatePlanVariantDetailsAddItemPriceInterval = {
20969
21009
  SemiAnnual: "semi_annual",
20970
21010
  Year: "year"
20971
21011
  };
20972
- var CreatePlanAddItemBillingMethodResponse = {
21012
+ var CreatePlanVariantDetailsAddItemBillingMethod = {
20973
21013
  Prepaid: "prepaid",
20974
21014
  UsageBased: "usage_based"
20975
21015
  };
20976
- var CreatePlanOnIncreaseResponse = {
21016
+ var CreatePlanVariantDetailsOnIncrease = {
20977
21017
  BillImmediately: "bill_immediately",
20978
21018
  ProrateImmediately: "prorate_immediately",
20979
21019
  ProrateNextCycle: "prorate_next_cycle",
20980
21020
  BillNextCycle: "bill_next_cycle"
20981
21021
  };
20982
- var CreatePlanOnDecreaseResponse = {
21022
+ var CreatePlanVariantDetailsOnDecrease = {
20983
21023
  Prorate: "prorate",
20984
21024
  ProrateImmediately: "prorate_immediately",
20985
21025
  ProrateNextCycle: "prorate_next_cycle",
@@ -21005,7 +21045,7 @@ var CreatePlanDimensionsToVariantDetailsEnum1 = {
21005
21045
  var CreatePlanToVariantDetailsEnum = {
21006
21046
  Inf: "inf"
21007
21047
  };
21008
- var CreatePlanRemoveItemBillingMethodResponse = {
21048
+ var CreatePlanVariantDetailsRemoveItemBillingMethod = {
21009
21049
  Prepaid: "prepaid",
21010
21050
  UsageBased: "usage_based"
21011
21051
  };
@@ -21730,7 +21770,7 @@ var CreatePlanVariantDetailsAdditionalCurrency$inboundSchema = z47.object(
21730
21770
  amount: number2()
21731
21771
  }
21732
21772
  );
21733
- var CreatePlanBasePriceResponse$inboundSchema = z47.pipe(
21773
+ var CreatePlanVariantDetailsBasePrice$inboundSchema = z47.pipe(
21734
21774
  z47.object({
21735
21775
  amount: number2(),
21736
21776
  interval: CreatePlanPriceVariantDetailsInterval$inboundSchema,
@@ -21761,7 +21801,7 @@ var CreatePlanVariantDetailsReset$inboundSchema = z47.pipe(
21761
21801
  });
21762
21802
  })
21763
21803
  );
21764
- var CreatePlanAddItemAdditionalCurrencyResponse$inboundSchema = z47.object({
21804
+ var CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z47.object({
21765
21805
  currency: string5(),
21766
21806
  amount: number2()
21767
21807
  });
@@ -21796,12 +21836,12 @@ var CreatePlanVariantDetailsPriceTier$inboundSchema = z47.pipe(
21796
21836
  );
21797
21837
  var CreatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(CreatePlanVariantDetailsTierBehavior);
21798
21838
  var CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemPriceInterval);
21799
- var CreatePlanAddItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanAddItemBillingMethodResponse);
21839
+ var CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsAddItemBillingMethod);
21800
21840
  var CreatePlanVariantDetailsPrice$inboundSchema = z47.pipe(
21801
21841
  z47.object({
21802
21842
  amount: optional3(number2()),
21803
21843
  additional_currencies: optional3(z47.array(z47.lazy(
21804
- () => CreatePlanAddItemAdditionalCurrencyResponse$inboundSchema
21844
+ () => CreatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
21805
21845
  ))),
21806
21846
  tiers: optional3(z47.array(z47.lazy(
21807
21847
  () => CreatePlanVariantDetailsPriceTier$inboundSchema
@@ -21812,7 +21852,7 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z47.pipe(
21812
21852
  interval: CreatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
21813
21853
  interval_count: z47._default(number2(), 1),
21814
21854
  billing_units: z47._default(number2(), 1),
21815
- billing_method: CreatePlanAddItemBillingMethodResponse$inboundSchema,
21855
+ billing_method: CreatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
21816
21856
  max_purchase: z47.optional(z47.nullable(number2()))
21817
21857
  }),
21818
21858
  z47.transform((v) => {
@@ -21826,12 +21866,12 @@ var CreatePlanVariantDetailsPrice$inboundSchema = z47.pipe(
21826
21866
  });
21827
21867
  })
21828
21868
  );
21829
- var CreatePlanOnIncreaseResponse$inboundSchema = inboundSchema(CreatePlanOnIncreaseResponse);
21830
- var CreatePlanOnDecreaseResponse$inboundSchema = inboundSchema(CreatePlanOnDecreaseResponse);
21831
- var CreatePlanProrationResponse$inboundSchema = z47.pipe(
21869
+ var CreatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnIncrease);
21870
+ var CreatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(CreatePlanVariantDetailsOnDecrease);
21871
+ var CreatePlanVariantDetailsProration$inboundSchema = z47.pipe(
21832
21872
  z47.object({
21833
- on_increase: CreatePlanOnIncreaseResponse$inboundSchema,
21834
- on_decrease: CreatePlanOnDecreaseResponse$inboundSchema
21873
+ on_increase: CreatePlanVariantDetailsOnIncrease$inboundSchema,
21874
+ on_decrease: CreatePlanVariantDetailsOnDecrease$inboundSchema
21835
21875
  }),
21836
21876
  z47.transform((v) => {
21837
21877
  return remap(v, {
@@ -22106,7 +22146,7 @@ var CreatePlanVariantDetailsFeatureOverride$inboundSchema = z47.pipe(
22106
22146
  });
22107
22147
  })
22108
22148
  );
22109
- var CreatePlanPlanItemResponse$inboundSchema = z47.pipe(
22149
+ var CreatePlanVariantDetailsPlanItem$inboundSchema = z47.pipe(
22110
22150
  z47.object({
22111
22151
  threshold_billing: z47.optional(z47.nullable(z47.lazy(
22112
22152
  () => CreatePlanVariantDetailsThresholdBilling$inboundSchema
@@ -22122,7 +22162,7 @@ var CreatePlanPlanItemResponse$inboundSchema = z47.pipe(
22122
22162
  () => CreatePlanVariantDetailsPrice$inboundSchema
22123
22163
  )),
22124
22164
  proration: optional3(z47.lazy(
22125
- () => CreatePlanProrationResponse$inboundSchema
22165
+ () => CreatePlanVariantDetailsProration$inboundSchema
22126
22166
  )),
22127
22167
  rollover: optional3(z47.lazy(
22128
22168
  () => CreatePlanVariantDetailsRollover$inboundSchema
@@ -22142,18 +22182,18 @@ var CreatePlanPlanItemResponse$inboundSchema = z47.pipe(
22142
22182
  });
22143
22183
  })
22144
22184
  );
22145
- var CreatePlanRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanRemoveItemBillingMethodResponse);
22185
+ var CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(CreatePlanVariantDetailsRemoveItemBillingMethod);
22146
22186
  var CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum2);
22147
22187
  var CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(CreatePlanIntervalVariantDetailsRemoveItemEnum1);
22148
22188
  var CreatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
22149
22189
  CreatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
22150
22190
  CreatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
22151
22191
  ]);
22152
- var CreatePlanPlanItemFilterResponse$inboundSchema = z47.pipe(
22192
+ var CreatePlanVariantDetailsPlanItemFilter$inboundSchema = z47.pipe(
22153
22193
  z47.object({
22154
22194
  feature_id: optional3(string5()),
22155
22195
  billing_method: optional3(
22156
- CreatePlanRemoveItemBillingMethodResponse$inboundSchema
22196
+ CreatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
22157
22197
  ),
22158
22198
  interval: optional3(
22159
22199
  smartUnion([
@@ -22476,6 +22516,96 @@ var CreatePlanIntervalUpsertLicenseRemoveItemEnum1 = {
22476
22516
  SemiAnnual: "semi_annual",
22477
22517
  Year: "year"
22478
22518
  };
22519
+ var CreatePlanPriceLicenseIntervalResponse = {
22520
+ OneOff: "one_off",
22521
+ Week: "week",
22522
+ Month: "month",
22523
+ Quarter: "quarter",
22524
+ SemiAnnual: "semi_annual",
22525
+ Year: "year"
22526
+ };
22527
+ var CreatePlanLicenseResetIntervalResponse = {
22528
+ OneOff: "one_off",
22529
+ Minute: "minute",
22530
+ Hour: "hour",
22531
+ Day: "day",
22532
+ Week: "week",
22533
+ Month: "month",
22534
+ Quarter: "quarter",
22535
+ SemiAnnual: "semi_annual",
22536
+ Year: "year"
22537
+ };
22538
+ var CreatePlanLicenseTierBehaviorResponse = {
22539
+ Graduated: "graduated",
22540
+ Volume: "volume"
22541
+ };
22542
+ var CreatePlanLicenseAddItemPriceIntervalResponse = {
22543
+ OneOff: "one_off",
22544
+ Week: "week",
22545
+ Month: "month",
22546
+ Quarter: "quarter",
22547
+ SemiAnnual: "semi_annual",
22548
+ Year: "year"
22549
+ };
22550
+ var CreatePlanLicenseAddItemBillingMethodResponse = {
22551
+ Prepaid: "prepaid",
22552
+ UsageBased: "usage_based"
22553
+ };
22554
+ var CreatePlanLicenseOnIncreaseResponse = {
22555
+ BillImmediately: "bill_immediately",
22556
+ ProrateImmediately: "prorate_immediately",
22557
+ ProrateNextCycle: "prorate_next_cycle",
22558
+ BillNextCycle: "bill_next_cycle"
22559
+ };
22560
+ var CreatePlanLicenseOnDecreaseResponse = {
22561
+ Prorate: "prorate",
22562
+ ProrateImmediately: "prorate_immediately",
22563
+ ProrateNextCycle: "prorate_next_cycle",
22564
+ None: "none",
22565
+ NoProrations: "no_prorations"
22566
+ };
22567
+ var CreatePlanLicenseExpiryDurationTypeResponse = {
22568
+ Month: "month",
22569
+ Forever: "forever"
22570
+ };
22571
+ var CreatePlanLicenseDurationResponse = {
22572
+ Day: "day",
22573
+ Week: "week",
22574
+ Month: "month",
22575
+ Year: "year"
22576
+ };
22577
+ var CreatePlanDimensionsToLicenseResponseEnum2 = {
22578
+ Inf: "inf"
22579
+ };
22580
+ var CreatePlanDimensionsToLicenseResponseEnum1 = {
22581
+ Inf: "inf"
22582
+ };
22583
+ var CreatePlanToLicenseResponseEnum = {
22584
+ Inf: "inf"
22585
+ };
22586
+ var CreatePlanLicenseRemoveItemBillingMethodResponse = {
22587
+ Prepaid: "prepaid",
22588
+ UsageBased: "usage_based"
22589
+ };
22590
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum2 = {
22591
+ OneOff: "one_off",
22592
+ Minute: "minute",
22593
+ Hour: "hour",
22594
+ Day: "day",
22595
+ Week: "week",
22596
+ Month: "month",
22597
+ Quarter: "quarter",
22598
+ SemiAnnual: "semi_annual",
22599
+ Year: "year"
22600
+ };
22601
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum1 = {
22602
+ OneOff: "one_off",
22603
+ Week: "week",
22604
+ Month: "month",
22605
+ Quarter: "quarter",
22606
+ SemiAnnual: "semi_annual",
22607
+ Year: "year"
22608
+ };
22479
22609
  var CreatePlanUpsertLicenseProration$inboundSchema = z48.pipe(
22480
22610
  z48.object({
22481
22611
  on_increase: CreatePlanUpsertLicenseOnIncrease$inboundSchema,
@@ -22864,14 +22994,16 @@ var CreatePlanRemoveLicense$inboundSchema = z48.pipe(
22864
22994
  });
22865
22995
  })
22866
22996
  );
22867
- var CreatePlanCustomizeResponse$inboundSchema = z48.pipe(
22997
+ var CreatePlanVariantDetailsCustomize$inboundSchema = z48.pipe(
22868
22998
  z48.object({
22869
- price: z48.optional(z48.nullable(CreatePlanBasePriceResponse$inboundSchema)),
22999
+ price: z48.optional(
23000
+ z48.nullable(CreatePlanVariantDetailsBasePrice$inboundSchema)
23001
+ ),
22870
23002
  add_items: optional3(
22871
- z48.array(CreatePlanPlanItemResponse$inboundSchema)
23003
+ z48.array(CreatePlanVariantDetailsPlanItem$inboundSchema)
22872
23004
  ),
22873
23005
  remove_items: optional3(
22874
- z48.array(CreatePlanPlanItemFilterResponse$inboundSchema)
23006
+ z48.array(CreatePlanVariantDetailsPlanItemFilter$inboundSchema)
22875
23007
  ),
22876
23008
  free_trial: z48.optional(z48.nullable(CreatePlanFreeTrialParams$inboundSchema)),
22877
23009
  billing_controls: optional3(
@@ -22899,7 +23031,7 @@ var CreatePlanVariantDetails$inboundSchema = z48.pipe(
22899
23031
  z48.object({
22900
23032
  base_plan_id: string5(),
22901
23033
  customize: optional3(
22902
- z48.lazy(() => CreatePlanCustomizeResponse$inboundSchema)
23034
+ z48.lazy(() => CreatePlanVariantDetailsCustomize$inboundSchema)
22903
23035
  )
22904
23036
  }),
22905
23037
  z48.transform((v) => {
@@ -22908,6 +23040,493 @@ var CreatePlanVariantDetails$inboundSchema = z48.pipe(
22908
23040
  });
22909
23041
  })
22910
23042
  );
23043
+ var CreatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(CreatePlanPriceLicenseIntervalResponse);
23044
+ var CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z48.object({
23045
+ currency: string5(),
23046
+ amount: number2()
23047
+ });
23048
+ var CreatePlanLicenseBasePriceResponse$inboundSchema = z48.pipe(
23049
+ z48.object({
23050
+ amount: number2(),
23051
+ interval: CreatePlanPriceLicenseIntervalResponse$inboundSchema,
23052
+ interval_count: z48._default(number2(), 1),
23053
+ additional_currencies: optional3(z48.array(z48.lazy(
23054
+ () => CreatePlanLicenseAdditionalCurrencyResponse$inboundSchema
23055
+ )))
23056
+ }),
23057
+ z48.transform((v) => {
23058
+ return remap(v, {
23059
+ "interval_count": "intervalCount",
23060
+ "additional_currencies": "additionalCurrencies"
23061
+ });
23062
+ })
23063
+ );
23064
+ var CreatePlanLicenseThresholdBillingResponse$inboundSchema = z48.object({
23065
+ threshold: number2()
23066
+ });
23067
+ var CreatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseResetIntervalResponse);
23068
+ var CreatePlanLicenseResetResponse$inboundSchema = z48.pipe(
23069
+ z48.object({
23070
+ interval: CreatePlanLicenseResetIntervalResponse$inboundSchema,
23071
+ interval_count: z48._default(number2(), 1)
23072
+ }),
23073
+ z48.transform((v) => {
23074
+ return remap(v, {
23075
+ "interval_count": "intervalCount"
23076
+ });
23077
+ })
23078
+ );
23079
+ var CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z48.object({
23080
+ currency: string5(),
23081
+ amount: number2()
23082
+ });
23083
+ var CreatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
23084
+ var CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z48.pipe(
23085
+ z48.object({
23086
+ currency: string5(),
23087
+ amount: optional3(number2()),
23088
+ flat_amount: optional3(number2())
23089
+ }),
23090
+ z48.transform((v) => {
23091
+ return remap(v, {
23092
+ "flat_amount": "flatAmount"
23093
+ });
23094
+ })
23095
+ );
23096
+ var CreatePlanLicensePriceTierResponse$inboundSchema = z48.pipe(
23097
+ z48.object({
23098
+ to: smartUnion([number2(), string5()]),
23099
+ amount: number2(),
23100
+ flat_amount: optional3(number2()),
23101
+ additional_currencies: optional3(z48.array(z48.lazy(
23102
+ () => CreatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
23103
+ )))
23104
+ }),
23105
+ z48.transform((v) => {
23106
+ return remap(v, {
23107
+ "flat_amount": "flatAmount",
23108
+ "additional_currencies": "additionalCurrencies"
23109
+ });
23110
+ })
23111
+ );
23112
+ var CreatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(CreatePlanLicenseTierBehaviorResponse);
23113
+ var CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemPriceIntervalResponse);
23114
+ var CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseAddItemBillingMethodResponse);
23115
+ var CreatePlanLicensePriceResponse$inboundSchema = z48.pipe(
23116
+ z48.object({
23117
+ amount: optional3(number2()),
23118
+ additional_currencies: optional3(z48.array(z48.lazy(
23119
+ () => CreatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
23120
+ ))),
23121
+ tiers: optional3(z48.array(z48.lazy(
23122
+ () => CreatePlanLicensePriceTierResponse$inboundSchema
23123
+ ))),
23124
+ tier_behavior: optional3(
23125
+ CreatePlanLicenseTierBehaviorResponse$inboundSchema
23126
+ ),
23127
+ interval: CreatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
23128
+ interval_count: z48._default(number2(), 1),
23129
+ billing_units: z48._default(number2(), 1),
23130
+ billing_method: CreatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
23131
+ max_purchase: z48.optional(z48.nullable(number2()))
23132
+ }),
23133
+ z48.transform((v) => {
23134
+ return remap(v, {
23135
+ "additional_currencies": "additionalCurrencies",
23136
+ "tier_behavior": "tierBehavior",
23137
+ "interval_count": "intervalCount",
23138
+ "billing_units": "billingUnits",
23139
+ "billing_method": "billingMethod",
23140
+ "max_purchase": "maxPurchase"
23141
+ });
23142
+ })
23143
+ );
23144
+ var CreatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnIncreaseResponse);
23145
+ var CreatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(CreatePlanLicenseOnDecreaseResponse);
23146
+ var CreatePlanLicenseProrationResponse$inboundSchema = z48.pipe(
23147
+ z48.object({
23148
+ on_increase: CreatePlanLicenseOnIncreaseResponse$inboundSchema,
23149
+ on_decrease: CreatePlanLicenseOnDecreaseResponse$inboundSchema
23150
+ }),
23151
+ z48.transform((v) => {
23152
+ return remap(v, {
23153
+ "on_increase": "onIncrease",
23154
+ "on_decrease": "onDecrease"
23155
+ });
23156
+ })
23157
+ );
23158
+ var CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePlanLicenseExpiryDurationTypeResponse);
23159
+ var CreatePlanLicenseRolloverResponse$inboundSchema = z48.pipe(
23160
+ z48.object({
23161
+ max: optional3(number2()),
23162
+ max_percentage: optional3(number2()),
23163
+ expiry_duration_type: CreatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
23164
+ expiry_duration_length: optional3(number2())
23165
+ }),
23166
+ z48.transform((v) => {
23167
+ return remap(v, {
23168
+ "max_percentage": "maxPercentage",
23169
+ "expiry_duration_type": "expiryDurationType",
23170
+ "expiry_duration_length": "expiryDurationLength"
23171
+ });
23172
+ })
23173
+ );
23174
+ var CreatePlanLicenseDurationResponse$inboundSchema = inboundSchema(CreatePlanLicenseDurationResponse);
23175
+ var CreatePlanLicenseExpiryResponse$inboundSchema = z48.object({
23176
+ duration: CreatePlanLicenseDurationResponse$inboundSchema,
23177
+ length: number2()
23178
+ });
23179
+ var CreatePlanDimensionsLicenseResponse4$inboundSchema = z48.pipe(
23180
+ z48.object({
23181
+ match: z48.record(z48.string(), string5()),
23182
+ priority: optional3(number2()),
23183
+ credit_cost: number2()
23184
+ }),
23185
+ z48.transform((v) => {
23186
+ return remap(v, {
23187
+ "credit_cost": "creditCost"
23188
+ });
23189
+ })
23190
+ );
23191
+ var CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z48.enum(
23192
+ CreatePlanDimensionsToLicenseResponseEnum2
23193
+ );
23194
+ var CreatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
23195
+ number2(),
23196
+ CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
23197
+ ]);
23198
+ var CreatePlanDimensionsLicenseTierResponse2$inboundSchema = z48.pipe(
23199
+ z48.object({
23200
+ to: smartUnion([
23201
+ number2(),
23202
+ CreatePlanDimensionsToLicenseResponseEnum2$inboundSchema
23203
+ ]),
23204
+ credit_cost: number2()
23205
+ }),
23206
+ z48.transform((v) => {
23207
+ return remap(v, {
23208
+ "credit_cost": "creditCost"
23209
+ });
23210
+ })
23211
+ );
23212
+ var CreatePlanDimensionsLicenseResponse3$inboundSchema = z48.pipe(
23213
+ z48.object({
23214
+ match: z48.record(z48.string(), string5()),
23215
+ priority: optional3(number2()),
23216
+ tier_behavior: literal3("graduated"),
23217
+ tiers: z48.array(
23218
+ z48.lazy(() => CreatePlanDimensionsLicenseTierResponse2$inboundSchema)
23219
+ )
23220
+ }),
23221
+ z48.transform((v) => {
23222
+ return remap(v, {
23223
+ "tier_behavior": "tierBehavior"
23224
+ });
23225
+ })
23226
+ );
23227
+ var CreatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
23228
+ z48.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
23229
+ z48.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
23230
+ ]);
23231
+ var CreatePlanLicenseMultipliersResponse2$inboundSchema = z48.object({
23232
+ match: z48.record(z48.string(), string5()),
23233
+ factor: optional3(number2()),
23234
+ add: optional3(number2())
23235
+ });
23236
+ var CreatePlanCreditSchemaLicenseResponse2$inboundSchema = z48.pipe(
23237
+ z48.object({
23238
+ metered_feature_id: string5(),
23239
+ billing_units: optional3(number2()),
23240
+ dimensions: optional3(z48.record(
23241
+ z48.string(),
23242
+ smartUnion([
23243
+ z48.lazy(() => CreatePlanDimensionsLicenseResponse3$inboundSchema),
23244
+ z48.lazy(() => CreatePlanDimensionsLicenseResponse4$inboundSchema)
23245
+ ])
23246
+ )),
23247
+ multipliers: optional3(z48.record(
23248
+ z48.string(),
23249
+ z48.lazy(() => CreatePlanLicenseMultipliersResponse2$inboundSchema)
23250
+ )),
23251
+ credit_cost: number2()
23252
+ }),
23253
+ z48.transform((v) => {
23254
+ return remap(v, {
23255
+ "metered_feature_id": "meteredFeatureId",
23256
+ "billing_units": "billingUnits",
23257
+ "credit_cost": "creditCost"
23258
+ });
23259
+ })
23260
+ );
23261
+ var CreatePlanDimensionsLicenseResponse2$inboundSchema = z48.pipe(
23262
+ z48.object({
23263
+ match: z48.record(z48.string(), string5()),
23264
+ priority: optional3(number2()),
23265
+ credit_cost: number2()
23266
+ }),
23267
+ z48.transform((v) => {
23268
+ return remap(v, {
23269
+ "credit_cost": "creditCost"
23270
+ });
23271
+ })
23272
+ );
23273
+ var CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z48.enum(
23274
+ CreatePlanDimensionsToLicenseResponseEnum1
23275
+ );
23276
+ var CreatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
23277
+ number2(),
23278
+ CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
23279
+ ]);
23280
+ var CreatePlanDimensionsLicenseTierResponse1$inboundSchema = z48.pipe(
23281
+ z48.object({
23282
+ to: smartUnion([
23283
+ number2(),
23284
+ CreatePlanDimensionsToLicenseResponseEnum1$inboundSchema
23285
+ ]),
23286
+ credit_cost: number2()
23287
+ }),
23288
+ z48.transform((v) => {
23289
+ return remap(v, {
23290
+ "credit_cost": "creditCost"
23291
+ });
23292
+ })
23293
+ );
23294
+ var CreatePlanDimensionsLicenseResponse1$inboundSchema = z48.pipe(
23295
+ z48.object({
23296
+ match: z48.record(z48.string(), string5()),
23297
+ priority: optional3(number2()),
23298
+ tier_behavior: literal3("graduated"),
23299
+ tiers: z48.array(
23300
+ z48.lazy(() => CreatePlanDimensionsLicenseTierResponse1$inboundSchema)
23301
+ )
23302
+ }),
23303
+ z48.transform((v) => {
23304
+ return remap(v, {
23305
+ "tier_behavior": "tierBehavior"
23306
+ });
23307
+ })
23308
+ );
23309
+ var CreatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
23310
+ z48.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
23311
+ z48.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
23312
+ ]);
23313
+ var CreatePlanLicenseMultipliersResponse1$inboundSchema = z48.object({
23314
+ match: z48.record(z48.string(), string5()),
23315
+ factor: optional3(number2()),
23316
+ add: optional3(number2())
23317
+ });
23318
+ var CreatePlanToLicenseResponseEnum$inboundSchema = z48.enum(CreatePlanToLicenseResponseEnum);
23319
+ var CreatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), CreatePlanToLicenseResponseEnum$inboundSchema]);
23320
+ var CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z48.pipe(
23321
+ z48.object({
23322
+ to: smartUnion([
23323
+ number2(),
23324
+ CreatePlanToLicenseResponseEnum$inboundSchema
23325
+ ]),
23326
+ credit_cost: number2()
23327
+ }),
23328
+ z48.transform((v) => {
23329
+ return remap(v, {
23330
+ "credit_cost": "creditCost"
23331
+ });
23332
+ })
23333
+ );
23334
+ var CreatePlanCreditSchemaLicenseResponse1$inboundSchema = z48.pipe(
23335
+ z48.object({
23336
+ metered_feature_id: string5(),
23337
+ billing_units: optional3(number2()),
23338
+ dimensions: optional3(z48.record(
23339
+ z48.string(),
23340
+ smartUnion([
23341
+ z48.lazy(() => CreatePlanDimensionsLicenseResponse1$inboundSchema),
23342
+ z48.lazy(() => CreatePlanDimensionsLicenseResponse2$inboundSchema)
23343
+ ])
23344
+ )),
23345
+ multipliers: optional3(z48.record(
23346
+ z48.string(),
23347
+ z48.lazy(() => CreatePlanLicenseMultipliersResponse1$inboundSchema)
23348
+ )),
23349
+ tier_behavior: literal3("graduated"),
23350
+ tiers: z48.array(z48.lazy(
23351
+ () => CreatePlanLicenseFeatureOverrideTierResponse$inboundSchema
23352
+ ))
23353
+ }),
23354
+ z48.transform((v) => {
23355
+ return remap(v, {
23356
+ "metered_feature_id": "meteredFeatureId",
23357
+ "billing_units": "billingUnits",
23358
+ "tier_behavior": "tierBehavior"
23359
+ });
23360
+ })
23361
+ );
23362
+ var CreatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
23363
+ z48.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
23364
+ z48.lazy(() => CreatePlanCreditSchemaLicenseResponse2$inboundSchema)
23365
+ ]);
23366
+ var CreatePlanLicenseProviderMarkupsResponse$inboundSchema = z48.object({
23367
+ markup: number2()
23368
+ });
23369
+ var CreatePlanLicenseModelMarkupsResponse$inboundSchema = z48.pipe(
23370
+ z48.object({
23371
+ markup: optional3(number2()),
23372
+ input_cost: optional3(number2()),
23373
+ output_cost: optional3(number2())
23374
+ }),
23375
+ z48.transform((v) => {
23376
+ return remap(v, {
23377
+ "input_cost": "inputCost",
23378
+ "output_cost": "outputCost"
23379
+ });
23380
+ })
23381
+ );
23382
+ var CreatePlanLicenseMarkupsResponse$inboundSchema = z48.pipe(
23383
+ z48.object({
23384
+ default_markup: optional3(number2()),
23385
+ provider_markups: z48.optional(z48.nullable(z48.record(
23386
+ z48.string(),
23387
+ z48.lazy(() => CreatePlanLicenseProviderMarkupsResponse$inboundSchema)
23388
+ ))),
23389
+ model_markups: z48.optional(z48.nullable(z48.record(
23390
+ z48.string(),
23391
+ z48.lazy(() => CreatePlanLicenseModelMarkupsResponse$inboundSchema)
23392
+ )))
23393
+ }),
23394
+ z48.transform((v) => {
23395
+ return remap(v, {
23396
+ "default_markup": "defaultMarkup",
23397
+ "provider_markups": "providerMarkups",
23398
+ "model_markups": "modelMarkups"
23399
+ });
23400
+ })
23401
+ );
23402
+ var CreatePlanLicenseFeatureOverrideResponse$inboundSchema = z48.pipe(
23403
+ z48.object({
23404
+ credit_schema: optional3(z48.array(smartUnion([
23405
+ z48.lazy(() => CreatePlanCreditSchemaLicenseResponse1$inboundSchema),
23406
+ z48.lazy(
23407
+ () => CreatePlanCreditSchemaLicenseResponse2$inboundSchema
23408
+ )
23409
+ ]))),
23410
+ markups: optional3(z48.lazy(
23411
+ () => CreatePlanLicenseMarkupsResponse$inboundSchema
23412
+ ))
23413
+ }),
23414
+ z48.transform((v) => {
23415
+ return remap(v, {
23416
+ "credit_schema": "creditSchema"
23417
+ });
23418
+ })
23419
+ );
23420
+ var CreatePlanLicensePlanItemResponse$inboundSchema = z48.pipe(
23421
+ z48.object({
23422
+ threshold_billing: z48.optional(z48.nullable(z48.lazy(
23423
+ () => CreatePlanLicenseThresholdBillingResponse$inboundSchema
23424
+ ))),
23425
+ feature_id: string5(),
23426
+ included: optional3(number2()),
23427
+ unlimited: optional3(boolean2()),
23428
+ pooled: z48._default(boolean2(), false),
23429
+ reset: optional3(z48.lazy(
23430
+ () => CreatePlanLicenseResetResponse$inboundSchema
23431
+ )),
23432
+ price: optional3(z48.lazy(
23433
+ () => CreatePlanLicensePriceResponse$inboundSchema
23434
+ )),
23435
+ proration: optional3(z48.lazy(
23436
+ () => CreatePlanLicenseProrationResponse$inboundSchema
23437
+ )),
23438
+ rollover: optional3(z48.lazy(
23439
+ () => CreatePlanLicenseRolloverResponse$inboundSchema
23440
+ )),
23441
+ expiry: optional3(z48.lazy(
23442
+ () => CreatePlanLicenseExpiryResponse$inboundSchema
23443
+ )),
23444
+ feature_override: optional3(z48.lazy(
23445
+ () => CreatePlanLicenseFeatureOverrideResponse$inboundSchema
23446
+ ))
23447
+ }),
23448
+ z48.transform((v) => {
23449
+ return remap(v, {
23450
+ "threshold_billing": "thresholdBilling",
23451
+ "feature_id": "featureId",
23452
+ "feature_override": "featureOverride"
23453
+ });
23454
+ })
23455
+ );
23456
+ var CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(CreatePlanLicenseRemoveItemBillingMethodResponse);
23457
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum2);
23458
+ var CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(CreatePlanIntervalLicenseRemoveItemResponseEnum1);
23459
+ var CreatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
23460
+ CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
23461
+ CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
23462
+ ]);
23463
+ var CreatePlanLicensePlanItemFilterResponse$inboundSchema = z48.pipe(
23464
+ z48.object({
23465
+ feature_id: optional3(string5()),
23466
+ billing_method: optional3(
23467
+ CreatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
23468
+ ),
23469
+ interval: optional3(
23470
+ smartUnion([
23471
+ CreatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
23472
+ CreatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
23473
+ ])
23474
+ ),
23475
+ interval_count: optional3(number2()),
23476
+ included: optional3(number2())
23477
+ }),
23478
+ z48.transform((v) => {
23479
+ return remap(v, {
23480
+ "feature_id": "featureId",
23481
+ "billing_method": "billingMethod",
23482
+ "interval_count": "intervalCount"
23483
+ });
23484
+ })
23485
+ );
23486
+ var CreatePlanLicenseCustomizeResponse$inboundSchema = z48.pipe(
23487
+ z48.object({
23488
+ price: z48.optional(
23489
+ z48.nullable(
23490
+ z48.lazy(() => CreatePlanLicenseBasePriceResponse$inboundSchema)
23491
+ )
23492
+ ),
23493
+ add_items: optional3(
23494
+ z48.array(z48.lazy(() => CreatePlanLicensePlanItemResponse$inboundSchema))
23495
+ ),
23496
+ remove_items: optional3(
23497
+ z48.array(
23498
+ z48.lazy(() => CreatePlanLicensePlanItemFilterResponse$inboundSchema)
23499
+ )
23500
+ )
23501
+ }),
23502
+ z48.transform((v) => {
23503
+ return remap(v, {
23504
+ "add_items": "addItems",
23505
+ "remove_items": "removeItems"
23506
+ });
23507
+ })
23508
+ );
23509
+ var CreatePlanLicenseResponse$inboundSchema = z48.pipe(
23510
+ z48.object({
23511
+ license_plan_id: string5(),
23512
+ version: number2(),
23513
+ version_slug: optional3(string5()),
23514
+ included: number2(),
23515
+ prepaid_only: boolean2(),
23516
+ customize: optional3(
23517
+ z48.lazy(() => CreatePlanLicenseCustomizeResponse$inboundSchema)
23518
+ ),
23519
+ metadata: optional3(z48.record(z48.string(), z48.any())),
23520
+ plan: optional3(Plan$inboundSchema)
23521
+ }),
23522
+ z48.transform((v) => {
23523
+ return remap(v, {
23524
+ "license_plan_id": "licensePlanId",
23525
+ "version_slug": "versionSlug",
23526
+ "prepaid_only": "prepaidOnly"
23527
+ });
23528
+ })
23529
+ );
22911
23530
  var CreatePlanResponse$inboundSchema = z48.pipe(
22912
23531
  z48.object({
22913
23532
  id: string5(),
@@ -22937,6 +23556,9 @@ var CreatePlanResponse$inboundSchema = z48.pipe(
22937
23556
  base_variant_id: nullable(string5()),
22938
23557
  variant_details: optional3(
22939
23558
  z48.lazy(() => CreatePlanVariantDetails$inboundSchema)
23559
+ ),
23560
+ licenses: optional3(
23561
+ z48.array(z48.lazy(() => CreatePlanLicenseResponse$inboundSchema))
22940
23562
  )
22941
23563
  }),
22942
23564
  z48.transform((v) => {
@@ -31059,7 +31681,7 @@ var GetPlanPriceVariantDetailsInterval = {
31059
31681
  SemiAnnual: "semi_annual",
31060
31682
  Year: "year"
31061
31683
  };
31062
- var GetPlanAddItemResetInterval = {
31684
+ var GetPlanVariantDetailsResetInterval = {
31063
31685
  OneOff: "one_off",
31064
31686
  Minute: "minute",
31065
31687
  Hour: "hour",
@@ -31074,7 +31696,7 @@ var GetPlanVariantDetailsTierBehavior = {
31074
31696
  Graduated: "graduated",
31075
31697
  Volume: "volume"
31076
31698
  };
31077
- var GetPlanAddItemPriceInterval = {
31699
+ var GetPlanVariantDetailsAddItemPriceInterval = {
31078
31700
  OneOff: "one_off",
31079
31701
  Week: "week",
31080
31702
  Month: "month",
@@ -31082,17 +31704,17 @@ var GetPlanAddItemPriceInterval = {
31082
31704
  SemiAnnual: "semi_annual",
31083
31705
  Year: "year"
31084
31706
  };
31085
- var GetPlanAddItemBillingMethod = {
31707
+ var GetPlanVariantDetailsAddItemBillingMethod = {
31086
31708
  Prepaid: "prepaid",
31087
31709
  UsageBased: "usage_based"
31088
31710
  };
31089
- var GetPlanOnIncrease = {
31711
+ var GetPlanVariantDetailsOnIncrease = {
31090
31712
  BillImmediately: "bill_immediately",
31091
31713
  ProrateImmediately: "prorate_immediately",
31092
31714
  ProrateNextCycle: "prorate_next_cycle",
31093
31715
  BillNextCycle: "bill_next_cycle"
31094
31716
  };
31095
- var GetPlanOnDecrease = {
31717
+ var GetPlanVariantDetailsOnDecrease = {
31096
31718
  Prorate: "prorate",
31097
31719
  ProrateImmediately: "prorate_immediately",
31098
31720
  ProrateNextCycle: "prorate_next_cycle",
@@ -31118,11 +31740,11 @@ var GetPlanDimensionsToVariantDetailsEnum1 = {
31118
31740
  var GetPlanToVariantDetailsEnum = {
31119
31741
  Inf: "inf"
31120
31742
  };
31121
- var GetPlanRemoveItemBillingMethod = {
31743
+ var GetPlanVariantDetailsRemoveItemBillingMethod = {
31122
31744
  Prepaid: "prepaid",
31123
31745
  UsageBased: "usage_based"
31124
31746
  };
31125
- var GetPlanIntervalRemoveItemEnum2 = {
31747
+ var GetPlanIntervalVariantDetailsRemoveItemEnum2 = {
31126
31748
  OneOff: "one_off",
31127
31749
  Minute: "minute",
31128
31750
  Hour: "hour",
@@ -31133,7 +31755,7 @@ var GetPlanIntervalRemoveItemEnum2 = {
31133
31755
  SemiAnnual: "semi_annual",
31134
31756
  Year: "year"
31135
31757
  };
31136
- var GetPlanIntervalRemoveItemEnum1 = {
31758
+ var GetPlanIntervalVariantDetailsRemoveItemEnum1 = {
31137
31759
  OneOff: "one_off",
31138
31760
  Week: "week",
31139
31761
  Month: "month",
@@ -31893,7 +32515,7 @@ var GetPlanVariantDetailsAdditionalCurrency$inboundSchema = z75.object({
31893
32515
  currency: string5(),
31894
32516
  amount: number2()
31895
32517
  });
31896
- var GetPlanBasePrice$inboundSchema = z75.pipe(
32518
+ var GetPlanVariantDetailsBasePrice$inboundSchema = z75.pipe(
31897
32519
  z75.object({
31898
32520
  amount: number2(),
31899
32521
  interval: GetPlanPriceVariantDetailsInterval$inboundSchema,
@@ -31912,10 +32534,10 @@ var GetPlanBasePrice$inboundSchema = z75.pipe(
31912
32534
  var GetPlanVariantDetailsThresholdBilling$inboundSchema = z75.object({
31913
32535
  threshold: number2()
31914
32536
  });
31915
- var GetPlanAddItemResetInterval$inboundSchema = inboundSchema(GetPlanAddItemResetInterval);
32537
+ var GetPlanVariantDetailsResetInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsResetInterval);
31916
32538
  var GetPlanVariantDetailsReset$inboundSchema = z75.pipe(
31917
32539
  z75.object({
31918
- interval: GetPlanAddItemResetInterval$inboundSchema,
32540
+ interval: GetPlanVariantDetailsResetInterval$inboundSchema,
31919
32541
  interval_count: z75._default(number2(), 1)
31920
32542
  }),
31921
32543
  z75.transform((v) => {
@@ -31924,7 +32546,7 @@ var GetPlanVariantDetailsReset$inboundSchema = z75.pipe(
31924
32546
  });
31925
32547
  })
31926
32548
  );
31927
- var GetPlanAddItemAdditionalCurrency$inboundSchema = z75.object({
32549
+ var GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z75.object({
31928
32550
  currency: string5(),
31929
32551
  amount: number2()
31930
32552
  });
@@ -31958,24 +32580,24 @@ var GetPlanVariantDetailsPriceTier$inboundSchema = z75.pipe(
31958
32580
  })
31959
32581
  );
31960
32582
  var GetPlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(GetPlanVariantDetailsTierBehavior);
31961
- var GetPlanAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanAddItemPriceInterval);
31962
- var GetPlanAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanAddItemBillingMethod);
32583
+ var GetPlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemPriceInterval);
32584
+ var GetPlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsAddItemBillingMethod);
31963
32585
  var GetPlanVariantDetailsPrice$inboundSchema = z75.pipe(
31964
32586
  z75.object({
31965
32587
  amount: optional3(number2()),
31966
- additional_currencies: optional3(
31967
- z75.array(z75.lazy(() => GetPlanAddItemAdditionalCurrency$inboundSchema))
31968
- ),
31969
- tiers: optional3(
31970
- z75.array(z75.lazy(() => GetPlanVariantDetailsPriceTier$inboundSchema))
31971
- ),
32588
+ additional_currencies: optional3(z75.array(z75.lazy(
32589
+ () => GetPlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
32590
+ ))),
32591
+ tiers: optional3(z75.array(z75.lazy(
32592
+ () => GetPlanVariantDetailsPriceTier$inboundSchema
32593
+ ))),
31972
32594
  tier_behavior: optional3(
31973
32595
  GetPlanVariantDetailsTierBehavior$inboundSchema
31974
32596
  ),
31975
- interval: GetPlanAddItemPriceInterval$inboundSchema,
32597
+ interval: GetPlanVariantDetailsAddItemPriceInterval$inboundSchema,
31976
32598
  interval_count: z75._default(number2(), 1),
31977
32599
  billing_units: z75._default(number2(), 1),
31978
- billing_method: GetPlanAddItemBillingMethod$inboundSchema,
32600
+ billing_method: GetPlanVariantDetailsAddItemBillingMethod$inboundSchema,
31979
32601
  max_purchase: z75.optional(z75.nullable(number2()))
31980
32602
  }),
31981
32603
  z75.transform((v) => {
@@ -31989,12 +32611,12 @@ var GetPlanVariantDetailsPrice$inboundSchema = z75.pipe(
31989
32611
  });
31990
32612
  })
31991
32613
  );
31992
- var GetPlanOnIncrease$inboundSchema = inboundSchema(GetPlanOnIncrease);
31993
- var GetPlanOnDecrease$inboundSchema = inboundSchema(GetPlanOnDecrease);
31994
- var GetPlanProration$inboundSchema = z75.pipe(
32614
+ var GetPlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnIncrease);
32615
+ var GetPlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(GetPlanVariantDetailsOnDecrease);
32616
+ var GetPlanVariantDetailsProration$inboundSchema = z75.pipe(
31995
32617
  z75.object({
31996
- on_increase: GetPlanOnIncrease$inboundSchema,
31997
- on_decrease: GetPlanOnDecrease$inboundSchema
32618
+ on_increase: GetPlanVariantDetailsOnIncrease$inboundSchema,
32619
+ on_decrease: GetPlanVariantDetailsOnDecrease$inboundSchema
31998
32620
  }),
31999
32621
  z75.transform((v) => {
32000
32622
  return remap(v, {
@@ -32265,7 +32887,7 @@ var GetPlanVariantDetailsFeatureOverride$inboundSchema = z75.pipe(
32265
32887
  });
32266
32888
  })
32267
32889
  );
32268
- var GetPlanPlanItem$inboundSchema = z75.pipe(
32890
+ var GetPlanVariantDetailsPlanItem$inboundSchema = z75.pipe(
32269
32891
  z75.object({
32270
32892
  threshold_billing: z75.optional(z75.nullable(z75.lazy(
32271
32893
  () => GetPlanVariantDetailsThresholdBilling$inboundSchema
@@ -32280,7 +32902,9 @@ var GetPlanPlanItem$inboundSchema = z75.pipe(
32280
32902
  price: optional3(
32281
32903
  z75.lazy(() => GetPlanVariantDetailsPrice$inboundSchema)
32282
32904
  ),
32283
- proration: optional3(z75.lazy(() => GetPlanProration$inboundSchema)),
32905
+ proration: optional3(
32906
+ z75.lazy(() => GetPlanVariantDetailsProration$inboundSchema)
32907
+ ),
32284
32908
  rollover: optional3(
32285
32909
  z75.lazy(() => GetPlanVariantDetailsRollover$inboundSchema)
32286
32910
  ),
@@ -32299,23 +32923,23 @@ var GetPlanPlanItem$inboundSchema = z75.pipe(
32299
32923
  });
32300
32924
  })
32301
32925
  );
32302
- var GetPlanRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanRemoveItemBillingMethod);
32303
- var GetPlanIntervalRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalRemoveItemEnum2);
32304
- var GetPlanIntervalRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalRemoveItemEnum1);
32305
- var GetPlanIntervalUnion$inboundSchema = smartUnion([
32306
- GetPlanIntervalRemoveItemEnum1$inboundSchema,
32307
- GetPlanIntervalRemoveItemEnum2$inboundSchema
32926
+ var GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanVariantDetailsRemoveItemBillingMethod);
32927
+ var GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum2);
32928
+ var GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalVariantDetailsRemoveItemEnum1);
32929
+ var GetPlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
32930
+ GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
32931
+ GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
32308
32932
  ]);
32309
- var GetPlanPlanItemFilter$inboundSchema = z75.pipe(
32933
+ var GetPlanVariantDetailsPlanItemFilter$inboundSchema = z75.pipe(
32310
32934
  z75.object({
32311
32935
  feature_id: optional3(string5()),
32312
32936
  billing_method: optional3(
32313
- GetPlanRemoveItemBillingMethod$inboundSchema
32937
+ GetPlanVariantDetailsRemoveItemBillingMethod$inboundSchema
32314
32938
  ),
32315
32939
  interval: optional3(
32316
32940
  smartUnion([
32317
- GetPlanIntervalRemoveItemEnum1$inboundSchema,
32318
- GetPlanIntervalRemoveItemEnum2$inboundSchema
32941
+ GetPlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
32942
+ GetPlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
32319
32943
  ])
32320
32944
  ),
32321
32945
  interval_count: optional3(number2()),
@@ -32539,6 +33163,96 @@ var GetPlanIntervalUpsertLicenseRemoveItemEnum1 = {
32539
33163
  SemiAnnual: "semi_annual",
32540
33164
  Year: "year"
32541
33165
  };
33166
+ var GetPlanPriceLicenseInterval = {
33167
+ OneOff: "one_off",
33168
+ Week: "week",
33169
+ Month: "month",
33170
+ Quarter: "quarter",
33171
+ SemiAnnual: "semi_annual",
33172
+ Year: "year"
33173
+ };
33174
+ var GetPlanLicenseResetInterval = {
33175
+ OneOff: "one_off",
33176
+ Minute: "minute",
33177
+ Hour: "hour",
33178
+ Day: "day",
33179
+ Week: "week",
33180
+ Month: "month",
33181
+ Quarter: "quarter",
33182
+ SemiAnnual: "semi_annual",
33183
+ Year: "year"
33184
+ };
33185
+ var GetPlanLicenseTierBehavior = {
33186
+ Graduated: "graduated",
33187
+ Volume: "volume"
33188
+ };
33189
+ var GetPlanLicenseAddItemPriceInterval = {
33190
+ OneOff: "one_off",
33191
+ Week: "week",
33192
+ Month: "month",
33193
+ Quarter: "quarter",
33194
+ SemiAnnual: "semi_annual",
33195
+ Year: "year"
33196
+ };
33197
+ var GetPlanLicenseAddItemBillingMethod = {
33198
+ Prepaid: "prepaid",
33199
+ UsageBased: "usage_based"
33200
+ };
33201
+ var GetPlanLicenseOnIncrease = {
33202
+ BillImmediately: "bill_immediately",
33203
+ ProrateImmediately: "prorate_immediately",
33204
+ ProrateNextCycle: "prorate_next_cycle",
33205
+ BillNextCycle: "bill_next_cycle"
33206
+ };
33207
+ var GetPlanLicenseOnDecrease = {
33208
+ Prorate: "prorate",
33209
+ ProrateImmediately: "prorate_immediately",
33210
+ ProrateNextCycle: "prorate_next_cycle",
33211
+ None: "none",
33212
+ NoProrations: "no_prorations"
33213
+ };
33214
+ var GetPlanLicenseExpiryDurationType = {
33215
+ Month: "month",
33216
+ Forever: "forever"
33217
+ };
33218
+ var GetPlanLicenseDuration = {
33219
+ Day: "day",
33220
+ Week: "week",
33221
+ Month: "month",
33222
+ Year: "year"
33223
+ };
33224
+ var GetPlanDimensionsToLicenseEnum2 = {
33225
+ Inf: "inf"
33226
+ };
33227
+ var GetPlanDimensionsToLicenseEnum1 = {
33228
+ Inf: "inf"
33229
+ };
33230
+ var GetPlanToLicenseEnum = {
33231
+ Inf: "inf"
33232
+ };
33233
+ var GetPlanLicenseRemoveItemBillingMethod = {
33234
+ Prepaid: "prepaid",
33235
+ UsageBased: "usage_based"
33236
+ };
33237
+ var GetPlanIntervalLicenseRemoveItemEnum2 = {
33238
+ OneOff: "one_off",
33239
+ Minute: "minute",
33240
+ Hour: "hour",
33241
+ Day: "day",
33242
+ Week: "week",
33243
+ Month: "month",
33244
+ Quarter: "quarter",
33245
+ SemiAnnual: "semi_annual",
33246
+ Year: "year"
33247
+ };
33248
+ var GetPlanIntervalLicenseRemoveItemEnum1 = {
33249
+ OneOff: "one_off",
33250
+ Week: "week",
33251
+ Month: "month",
33252
+ Quarter: "quarter",
33253
+ SemiAnnual: "semi_annual",
33254
+ Year: "year"
33255
+ };
32542
33256
  var GetPlanVariantDetailsOverageAllowed$inboundSchema = z76.pipe(
32543
33257
  z76.object({
32544
33258
  feature_id: string5(),
@@ -33067,11 +33781,15 @@ var GetPlanRemoveLicense$inboundSchema = z76.pipe(
33067
33781
  });
33068
33782
  })
33069
33783
  );
33070
- var GetPlanCustomize$inboundSchema = z76.pipe(
33784
+ var GetPlanVariantDetailsCustomize$inboundSchema = z76.pipe(
33071
33785
  z76.object({
33072
- price: z76.optional(z76.nullable(GetPlanBasePrice$inboundSchema)),
33073
- add_items: optional3(z76.array(GetPlanPlanItem$inboundSchema)),
33074
- remove_items: optional3(z76.array(GetPlanPlanItemFilter$inboundSchema)),
33786
+ price: z76.optional(z76.nullable(GetPlanVariantDetailsBasePrice$inboundSchema)),
33787
+ add_items: optional3(
33788
+ z76.array(GetPlanVariantDetailsPlanItem$inboundSchema)
33789
+ ),
33790
+ remove_items: optional3(
33791
+ z76.array(GetPlanVariantDetailsPlanItemFilter$inboundSchema)
33792
+ ),
33075
33793
  free_trial: z76.optional(z76.nullable(GetPlanFreeTrialParams$inboundSchema)),
33076
33794
  billing_controls: optional3(
33077
33795
  z76.lazy(() => GetPlanVariantDetailsBillingControls$inboundSchema)
@@ -33097,7 +33815,9 @@ var GetPlanCustomize$inboundSchema = z76.pipe(
33097
33815
  var GetPlanVariantDetails$inboundSchema = z76.pipe(
33098
33816
  z76.object({
33099
33817
  base_plan_id: string5(),
33100
- customize: optional3(z76.lazy(() => GetPlanCustomize$inboundSchema))
33818
+ customize: optional3(
33819
+ z76.lazy(() => GetPlanVariantDetailsCustomize$inboundSchema)
33820
+ )
33101
33821
  }),
33102
33822
  z76.transform((v) => {
33103
33823
  return remap(v, {
@@ -33105,6 +33825,464 @@ var GetPlanVariantDetails$inboundSchema = z76.pipe(
33105
33825
  });
33106
33826
  })
33107
33827
  );
33828
+ var GetPlanPriceLicenseInterval$inboundSchema = inboundSchema(GetPlanPriceLicenseInterval);
33829
+ var GetPlanLicenseAdditionalCurrency$inboundSchema = z76.object({
33830
+ currency: string5(),
33831
+ amount: number2()
33832
+ });
33833
+ var GetPlanLicenseBasePrice$inboundSchema = z76.pipe(
33834
+ z76.object({
33835
+ amount: number2(),
33836
+ interval: GetPlanPriceLicenseInterval$inboundSchema,
33837
+ interval_count: z76._default(number2(), 1),
33838
+ additional_currencies: optional3(
33839
+ z76.array(z76.lazy(() => GetPlanLicenseAdditionalCurrency$inboundSchema))
33840
+ )
33841
+ }),
33842
+ z76.transform((v) => {
33843
+ return remap(v, {
33844
+ "interval_count": "intervalCount",
33845
+ "additional_currencies": "additionalCurrencies"
33846
+ });
33847
+ })
33848
+ );
33849
+ var GetPlanLicenseThresholdBilling$inboundSchema = z76.object({
33850
+ threshold: number2()
33851
+ });
33852
+ var GetPlanLicenseResetInterval$inboundSchema = inboundSchema(GetPlanLicenseResetInterval);
33853
+ var GetPlanLicenseReset$inboundSchema = z76.pipe(
33854
+ z76.object({
33855
+ interval: GetPlanLicenseResetInterval$inboundSchema,
33856
+ interval_count: z76._default(number2(), 1)
33857
+ }),
33858
+ z76.transform((v) => {
33859
+ return remap(v, {
33860
+ "interval_count": "intervalCount"
33861
+ });
33862
+ })
33863
+ );
33864
+ var GetPlanLicenseAddItemAdditionalCurrency$inboundSchema = z76.object({
33865
+ currency: string5(),
33866
+ amount: number2()
33867
+ });
33868
+ var GetPlanLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
33869
+ var GetPlanLicenseTierAdditionalCurrency$inboundSchema = z76.pipe(
33870
+ z76.object({
33871
+ currency: string5(),
33872
+ amount: optional3(number2()),
33873
+ flat_amount: optional3(number2())
33874
+ }),
33875
+ z76.transform((v) => {
33876
+ return remap(v, {
33877
+ "flat_amount": "flatAmount"
33878
+ });
33879
+ })
33880
+ );
33881
+ var GetPlanLicensePriceTier$inboundSchema = z76.pipe(
33882
+ z76.object({
33883
+ to: smartUnion([number2(), string5()]),
33884
+ amount: number2(),
33885
+ flat_amount: optional3(number2()),
33886
+ additional_currencies: optional3(
33887
+ z76.array(z76.lazy(() => GetPlanLicenseTierAdditionalCurrency$inboundSchema))
33888
+ )
33889
+ }),
33890
+ z76.transform((v) => {
33891
+ return remap(v, {
33892
+ "flat_amount": "flatAmount",
33893
+ "additional_currencies": "additionalCurrencies"
33894
+ });
33895
+ })
33896
+ );
33897
+ var GetPlanLicenseTierBehavior$inboundSchema = inboundSchema(GetPlanLicenseTierBehavior);
33898
+ var GetPlanLicenseAddItemPriceInterval$inboundSchema = inboundSchema(GetPlanLicenseAddItemPriceInterval);
33899
+ var GetPlanLicenseAddItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseAddItemBillingMethod);
33900
+ var GetPlanLicensePrice$inboundSchema = z76.pipe(
33901
+ z76.object({
33902
+ amount: optional3(number2()),
33903
+ additional_currencies: optional3(z76.array(z76.lazy(
33904
+ () => GetPlanLicenseAddItemAdditionalCurrency$inboundSchema
33905
+ ))),
33906
+ tiers: optional3(z76.array(z76.lazy(
33907
+ () => GetPlanLicensePriceTier$inboundSchema
33908
+ ))),
33909
+ tier_behavior: optional3(GetPlanLicenseTierBehavior$inboundSchema),
33910
+ interval: GetPlanLicenseAddItemPriceInterval$inboundSchema,
33911
+ interval_count: z76._default(number2(), 1),
33912
+ billing_units: z76._default(number2(), 1),
33913
+ billing_method: GetPlanLicenseAddItemBillingMethod$inboundSchema,
33914
+ max_purchase: z76.optional(z76.nullable(number2()))
33915
+ }),
33916
+ z76.transform((v) => {
33917
+ return remap(v, {
33918
+ "additional_currencies": "additionalCurrencies",
33919
+ "tier_behavior": "tierBehavior",
33920
+ "interval_count": "intervalCount",
33921
+ "billing_units": "billingUnits",
33922
+ "billing_method": "billingMethod",
33923
+ "max_purchase": "maxPurchase"
33924
+ });
33925
+ })
33926
+ );
33927
+ var GetPlanLicenseOnIncrease$inboundSchema = inboundSchema(GetPlanLicenseOnIncrease);
33928
+ var GetPlanLicenseOnDecrease$inboundSchema = inboundSchema(GetPlanLicenseOnDecrease);
33929
+ var GetPlanLicenseProration$inboundSchema = z76.pipe(
33930
+ z76.object({
33931
+ on_increase: GetPlanLicenseOnIncrease$inboundSchema,
33932
+ on_decrease: GetPlanLicenseOnDecrease$inboundSchema
33933
+ }),
33934
+ z76.transform((v) => {
33935
+ return remap(v, {
33936
+ "on_increase": "onIncrease",
33937
+ "on_decrease": "onDecrease"
33938
+ });
33939
+ })
33940
+ );
33941
+ var GetPlanLicenseExpiryDurationType$inboundSchema = inboundSchema(GetPlanLicenseExpiryDurationType);
33942
+ var GetPlanLicenseRollover$inboundSchema = z76.pipe(
33943
+ z76.object({
33944
+ max: optional3(number2()),
33945
+ max_percentage: optional3(number2()),
33946
+ expiry_duration_type: GetPlanLicenseExpiryDurationType$inboundSchema,
33947
+ expiry_duration_length: optional3(number2())
33948
+ }),
33949
+ z76.transform((v) => {
33950
+ return remap(v, {
33951
+ "max_percentage": "maxPercentage",
33952
+ "expiry_duration_type": "expiryDurationType",
33953
+ "expiry_duration_length": "expiryDurationLength"
33954
+ });
33955
+ })
33956
+ );
33957
+ var GetPlanLicenseDuration$inboundSchema = inboundSchema(GetPlanLicenseDuration);
33958
+ var GetPlanLicenseExpiry$inboundSchema = z76.object({
33959
+ duration: GetPlanLicenseDuration$inboundSchema,
33960
+ length: number2()
33961
+ });
33962
+ var GetPlanDimensionsLicense4$inboundSchema = z76.pipe(
33963
+ z76.object({
33964
+ match: z76.record(z76.string(), string5()),
33965
+ priority: optional3(number2()),
33966
+ credit_cost: number2()
33967
+ }),
33968
+ z76.transform((v) => {
33969
+ return remap(v, {
33970
+ "credit_cost": "creditCost"
33971
+ });
33972
+ })
33973
+ );
33974
+ var GetPlanDimensionsToLicenseEnum2$inboundSchema = z76.enum(GetPlanDimensionsToLicenseEnum2);
33975
+ var GetPlanDimensionsLicenseToUnion2$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum2$inboundSchema]);
33976
+ var GetPlanDimensionsLicenseTier2$inboundSchema = z76.pipe(
33977
+ z76.object({
33978
+ to: smartUnion([
33979
+ number2(),
33980
+ GetPlanDimensionsToLicenseEnum2$inboundSchema
33981
+ ]),
33982
+ credit_cost: number2()
33983
+ }),
33984
+ z76.transform((v) => {
33985
+ return remap(v, {
33986
+ "credit_cost": "creditCost"
33987
+ });
33988
+ })
33989
+ );
33990
+ var GetPlanDimensionsLicense3$inboundSchema = z76.pipe(
33991
+ z76.object({
33992
+ match: z76.record(z76.string(), string5()),
33993
+ priority: optional3(number2()),
33994
+ tier_behavior: literal3("graduated"),
33995
+ tiers: z76.array(z76.lazy(() => GetPlanDimensionsLicenseTier2$inboundSchema))
33996
+ }),
33997
+ z76.transform((v) => {
33998
+ return remap(v, {
33999
+ "tier_behavior": "tierBehavior"
34000
+ });
34001
+ })
34002
+ );
34003
+ var GetPlanLicenseDimensionsUnion2$inboundSchema = smartUnion([
34004
+ z76.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
34005
+ z76.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
34006
+ ]);
34007
+ var GetPlanLicenseMultipliers2$inboundSchema = z76.object({
34008
+ match: z76.record(z76.string(), string5()),
34009
+ factor: optional3(number2()),
34010
+ add: optional3(number2())
34011
+ });
34012
+ var GetPlanCreditSchemaLicense2$inboundSchema = z76.pipe(
34013
+ z76.object({
34014
+ metered_feature_id: string5(),
34015
+ billing_units: optional3(number2()),
34016
+ dimensions: optional3(z76.record(
34017
+ z76.string(),
34018
+ smartUnion([
34019
+ z76.lazy(() => GetPlanDimensionsLicense3$inboundSchema),
34020
+ z76.lazy(() => GetPlanDimensionsLicense4$inboundSchema)
34021
+ ])
34022
+ )),
34023
+ multipliers: optional3(z76.record(
34024
+ z76.string(),
34025
+ z76.lazy(() => GetPlanLicenseMultipliers2$inboundSchema)
34026
+ )),
34027
+ credit_cost: number2()
34028
+ }),
34029
+ z76.transform((v) => {
34030
+ return remap(v, {
34031
+ "metered_feature_id": "meteredFeatureId",
34032
+ "billing_units": "billingUnits",
34033
+ "credit_cost": "creditCost"
34034
+ });
34035
+ })
34036
+ );
34037
+ var GetPlanDimensionsLicense2$inboundSchema = z76.pipe(
34038
+ z76.object({
34039
+ match: z76.record(z76.string(), string5()),
34040
+ priority: optional3(number2()),
34041
+ credit_cost: number2()
34042
+ }),
34043
+ z76.transform((v) => {
34044
+ return remap(v, {
34045
+ "credit_cost": "creditCost"
34046
+ });
34047
+ })
34048
+ );
34049
+ var GetPlanDimensionsToLicenseEnum1$inboundSchema = z76.enum(GetPlanDimensionsToLicenseEnum1);
34050
+ var GetPlanDimensionsLicenseToUnion1$inboundSchema = smartUnion([number2(), GetPlanDimensionsToLicenseEnum1$inboundSchema]);
34051
+ var GetPlanDimensionsLicenseTier1$inboundSchema = z76.pipe(
34052
+ z76.object({
34053
+ to: smartUnion([
34054
+ number2(),
34055
+ GetPlanDimensionsToLicenseEnum1$inboundSchema
34056
+ ]),
34057
+ credit_cost: number2()
34058
+ }),
34059
+ z76.transform((v) => {
34060
+ return remap(v, {
34061
+ "credit_cost": "creditCost"
34062
+ });
34063
+ })
34064
+ );
34065
+ var GetPlanDimensionsLicense1$inboundSchema = z76.pipe(
34066
+ z76.object({
34067
+ match: z76.record(z76.string(), string5()),
34068
+ priority: optional3(number2()),
34069
+ tier_behavior: literal3("graduated"),
34070
+ tiers: z76.array(z76.lazy(() => GetPlanDimensionsLicenseTier1$inboundSchema))
34071
+ }),
34072
+ z76.transform((v) => {
34073
+ return remap(v, {
34074
+ "tier_behavior": "tierBehavior"
34075
+ });
34076
+ })
34077
+ );
34078
+ var GetPlanLicenseDimensionsUnion1$inboundSchema = smartUnion([
34079
+ z76.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
34080
+ z76.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
34081
+ ]);
34082
+ var GetPlanLicenseMultipliers1$inboundSchema = z76.object({
34083
+ match: z76.record(z76.string(), string5()),
34084
+ factor: optional3(number2()),
34085
+ add: optional3(number2())
34086
+ });
34087
+ var GetPlanToLicenseEnum$inboundSchema = z76.enum(GetPlanToLicenseEnum);
34088
+ var GetPlanLicenseFeatureOverrideToUnion$inboundSchema = smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]);
34089
+ var GetPlanLicenseFeatureOverrideTier$inboundSchema = z76.pipe(
34090
+ z76.object({
34091
+ to: smartUnion([number2(), GetPlanToLicenseEnum$inboundSchema]),
34092
+ credit_cost: number2()
34093
+ }),
34094
+ z76.transform((v) => {
34095
+ return remap(v, {
34096
+ "credit_cost": "creditCost"
34097
+ });
34098
+ })
34099
+ );
34100
+ var GetPlanCreditSchemaLicense1$inboundSchema = z76.pipe(
34101
+ z76.object({
34102
+ metered_feature_id: string5(),
34103
+ billing_units: optional3(number2()),
34104
+ dimensions: optional3(z76.record(
34105
+ z76.string(),
34106
+ smartUnion([
34107
+ z76.lazy(() => GetPlanDimensionsLicense1$inboundSchema),
34108
+ z76.lazy(() => GetPlanDimensionsLicense2$inboundSchema)
34109
+ ])
34110
+ )),
34111
+ multipliers: optional3(z76.record(
34112
+ z76.string(),
34113
+ z76.lazy(() => GetPlanLicenseMultipliers1$inboundSchema)
34114
+ )),
34115
+ tier_behavior: literal3("graduated"),
34116
+ tiers: z76.array(z76.lazy(
34117
+ () => GetPlanLicenseFeatureOverrideTier$inboundSchema
34118
+ ))
34119
+ }),
34120
+ z76.transform((v) => {
34121
+ return remap(v, {
34122
+ "metered_feature_id": "meteredFeatureId",
34123
+ "billing_units": "billingUnits",
34124
+ "tier_behavior": "tierBehavior"
34125
+ });
34126
+ })
34127
+ );
34128
+ var GetPlanLicenseCreditSchemaUnion$inboundSchema = smartUnion([
34129
+ z76.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
34130
+ z76.lazy(() => GetPlanCreditSchemaLicense2$inboundSchema)
34131
+ ]);
34132
+ var GetPlanLicenseProviderMarkups$inboundSchema = z76.object({
34133
+ markup: number2()
34134
+ });
34135
+ var GetPlanLicenseModelMarkups$inboundSchema = z76.pipe(
34136
+ z76.object({
34137
+ markup: optional3(number2()),
34138
+ input_cost: optional3(number2()),
34139
+ output_cost: optional3(number2())
34140
+ }),
34141
+ z76.transform((v) => {
34142
+ return remap(v, {
34143
+ "input_cost": "inputCost",
34144
+ "output_cost": "outputCost"
34145
+ });
34146
+ })
34147
+ );
34148
+ var GetPlanLicenseMarkups$inboundSchema = z76.pipe(
34149
+ z76.object({
34150
+ default_markup: optional3(number2()),
34151
+ provider_markups: z76.optional(z76.nullable(z76.record(
34152
+ z76.string(),
34153
+ z76.lazy(() => GetPlanLicenseProviderMarkups$inboundSchema)
34154
+ ))),
34155
+ model_markups: z76.optional(z76.nullable(z76.record(
34156
+ z76.string(),
34157
+ z76.lazy(() => GetPlanLicenseModelMarkups$inboundSchema)
34158
+ )))
34159
+ }),
34160
+ z76.transform((v) => {
34161
+ return remap(v, {
34162
+ "default_markup": "defaultMarkup",
34163
+ "provider_markups": "providerMarkups",
34164
+ "model_markups": "modelMarkups"
34165
+ });
34166
+ })
34167
+ );
34168
+ var GetPlanLicenseFeatureOverride$inboundSchema = z76.pipe(
34169
+ z76.object({
34170
+ credit_schema: optional3(z76.array(smartUnion([
34171
+ z76.lazy(() => GetPlanCreditSchemaLicense1$inboundSchema),
34172
+ z76.lazy(
34173
+ () => GetPlanCreditSchemaLicense2$inboundSchema
34174
+ )
34175
+ ]))),
34176
+ markups: optional3(z76.lazy(
34177
+ () => GetPlanLicenseMarkups$inboundSchema
34178
+ ))
34179
+ }),
34180
+ z76.transform((v) => {
34181
+ return remap(v, {
34182
+ "credit_schema": "creditSchema"
34183
+ });
34184
+ })
34185
+ );
34186
+ var GetPlanLicensePlanItem$inboundSchema = z76.pipe(
34187
+ z76.object({
34188
+ threshold_billing: z76.optional(
34189
+ z76.nullable(z76.lazy(() => GetPlanLicenseThresholdBilling$inboundSchema))
34190
+ ),
34191
+ feature_id: string5(),
34192
+ included: optional3(number2()),
34193
+ unlimited: optional3(boolean2()),
34194
+ pooled: z76._default(boolean2(), false),
34195
+ reset: optional3(z76.lazy(() => GetPlanLicenseReset$inboundSchema)),
34196
+ price: optional3(z76.lazy(() => GetPlanLicensePrice$inboundSchema)),
34197
+ proration: optional3(
34198
+ z76.lazy(() => GetPlanLicenseProration$inboundSchema)
34199
+ ),
34200
+ rollover: optional3(
34201
+ z76.lazy(() => GetPlanLicenseRollover$inboundSchema)
34202
+ ),
34203
+ expiry: optional3(z76.lazy(() => GetPlanLicenseExpiry$inboundSchema)),
34204
+ feature_override: optional3(
34205
+ z76.lazy(() => GetPlanLicenseFeatureOverride$inboundSchema)
34206
+ )
34207
+ }),
34208
+ z76.transform((v) => {
34209
+ return remap(v, {
34210
+ "threshold_billing": "thresholdBilling",
34211
+ "feature_id": "featureId",
34212
+ "feature_override": "featureOverride"
34213
+ });
34214
+ })
34215
+ );
34216
+ var GetPlanLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(GetPlanLicenseRemoveItemBillingMethod);
34217
+ var GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum2);
34218
+ var GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema = inboundSchema(GetPlanIntervalLicenseRemoveItemEnum1);
34219
+ var GetPlanLicenseIntervalUnion$inboundSchema = smartUnion([
34220
+ GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
34221
+ GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
34222
+ ]);
34223
+ var GetPlanLicensePlanItemFilter$inboundSchema = z76.pipe(
34224
+ z76.object({
34225
+ feature_id: optional3(string5()),
34226
+ billing_method: optional3(
34227
+ GetPlanLicenseRemoveItemBillingMethod$inboundSchema
34228
+ ),
34229
+ interval: optional3(
34230
+ smartUnion([
34231
+ GetPlanIntervalLicenseRemoveItemEnum1$inboundSchema,
34232
+ GetPlanIntervalLicenseRemoveItemEnum2$inboundSchema
34233
+ ])
34234
+ ),
34235
+ interval_count: optional3(number2()),
34236
+ included: optional3(number2())
34237
+ }),
34238
+ z76.transform((v) => {
34239
+ return remap(v, {
34240
+ "feature_id": "featureId",
34241
+ "billing_method": "billingMethod",
34242
+ "interval_count": "intervalCount"
34243
+ });
34244
+ })
34245
+ );
34246
+ var GetPlanLicenseCustomize$inboundSchema = z76.pipe(
34247
+ z76.object({
34248
+ price: z76.optional(
34249
+ z76.nullable(z76.lazy(() => GetPlanLicenseBasePrice$inboundSchema))
34250
+ ),
34251
+ add_items: optional3(
34252
+ z76.array(z76.lazy(() => GetPlanLicensePlanItem$inboundSchema))
34253
+ ),
34254
+ remove_items: optional3(
34255
+ z76.array(z76.lazy(() => GetPlanLicensePlanItemFilter$inboundSchema))
34256
+ )
34257
+ }),
34258
+ z76.transform((v) => {
34259
+ return remap(v, {
34260
+ "add_items": "addItems",
34261
+ "remove_items": "removeItems"
34262
+ });
34263
+ })
34264
+ );
34265
+ var GetPlanLicense$inboundSchema = z76.pipe(
34266
+ z76.object({
34267
+ license_plan_id: string5(),
34268
+ version: number2(),
34269
+ version_slug: optional3(string5()),
34270
+ included: number2(),
34271
+ prepaid_only: boolean2(),
34272
+ customize: optional3(
34273
+ z76.lazy(() => GetPlanLicenseCustomize$inboundSchema)
34274
+ ),
34275
+ metadata: optional3(z76.record(z76.string(), z76.any())),
34276
+ plan: optional3(Plan$inboundSchema)
34277
+ }),
34278
+ z76.transform((v) => {
34279
+ return remap(v, {
34280
+ "license_plan_id": "licensePlanId",
34281
+ "version_slug": "versionSlug",
34282
+ "prepaid_only": "prepaidOnly"
34283
+ });
34284
+ })
34285
+ );
33108
34286
  var GetPlanResponse$inboundSchema = z76.pipe(
33109
34287
  z76.object({
33110
34288
  id: string5(),
@@ -33132,6 +34310,9 @@ var GetPlanResponse$inboundSchema = z76.pipe(
33132
34310
  base_variant_id: nullable(string5()),
33133
34311
  variant_details: optional3(
33134
34312
  z76.lazy(() => GetPlanVariantDetails$inboundSchema)
34313
+ ),
34314
+ licenses: optional3(
34315
+ z76.array(z76.lazy(() => GetPlanLicense$inboundSchema))
33135
34316
  )
33136
34317
  }),
33137
34318
  z76.transform((v) => {
@@ -55060,7 +56241,7 @@ var UpdatePlanDimensionsToItemRequestBodyEnum1 = {
55060
56241
  var UpdatePlanToItemRequestBodyEnum = {
55061
56242
  Inf: "inf"
55062
56243
  };
55063
- var UpdatePlanPriceLicenseInterval = {
56244
+ var UpdatePlanPriceLicenseIntervalRequestBody = {
55064
56245
  OneOff: "one_off",
55065
56246
  Week: "week",
55066
56247
  Month: "month",
@@ -55068,7 +56249,7 @@ var UpdatePlanPriceLicenseInterval = {
55068
56249
  SemiAnnual: "semi_annual",
55069
56250
  Year: "year"
55070
56251
  };
55071
- var UpdatePlanLicenseResetInterval = {
56252
+ var UpdatePlanLicenseResetIntervalRequestBody = {
55072
56253
  OneOff: "one_off",
55073
56254
  Minute: "minute",
55074
56255
  Hour: "hour",
@@ -55079,11 +56260,11 @@ var UpdatePlanLicenseResetInterval = {
55079
56260
  SemiAnnual: "semi_annual",
55080
56261
  Year: "year"
55081
56262
  };
55082
- var UpdatePlanLicenseTierBehavior = {
56263
+ var UpdatePlanLicenseTierBehaviorRequestBody = {
55083
56264
  Graduated: "graduated",
55084
56265
  Volume: "volume"
55085
56266
  };
55086
- var UpdatePlanLicenseAddItemPriceInterval = {
56267
+ var UpdatePlanLicenseAddItemPriceIntervalRequestBody = {
55087
56268
  OneOff: "one_off",
55088
56269
  Week: "week",
55089
56270
  Month: "month",
@@ -55091,47 +56272,47 @@ var UpdatePlanLicenseAddItemPriceInterval = {
55091
56272
  SemiAnnual: "semi_annual",
55092
56273
  Year: "year"
55093
56274
  };
55094
- var UpdatePlanLicenseAddItemBillingMethod = {
56275
+ var UpdatePlanLicenseAddItemBillingMethodRequestBody = {
55095
56276
  Prepaid: "prepaid",
55096
56277
  UsageBased: "usage_based"
55097
56278
  };
55098
- var UpdatePlanLicenseOnIncrease = {
56279
+ var UpdatePlanLicenseOnIncreaseRequestBody = {
55099
56280
  BillImmediately: "bill_immediately",
55100
56281
  ProrateImmediately: "prorate_immediately",
55101
56282
  ProrateNextCycle: "prorate_next_cycle",
55102
56283
  BillNextCycle: "bill_next_cycle"
55103
56284
  };
55104
- var UpdatePlanLicenseOnDecrease = {
56285
+ var UpdatePlanLicenseOnDecreaseRequestBody = {
55105
56286
  Prorate: "prorate",
55106
56287
  ProrateImmediately: "prorate_immediately",
55107
56288
  ProrateNextCycle: "prorate_next_cycle",
55108
56289
  None: "none",
55109
56290
  NoProrations: "no_prorations"
55110
56291
  };
55111
- var UpdatePlanLicenseExpiryDurationType = {
56292
+ var UpdatePlanLicenseExpiryDurationTypeRequestBody = {
55112
56293
  Month: "month",
55113
56294
  Forever: "forever"
55114
56295
  };
55115
- var UpdatePlanLicenseDuration = {
56296
+ var UpdatePlanLicenseDurationRequestBody = {
55116
56297
  Day: "day",
55117
56298
  Week: "week",
55118
56299
  Month: "month",
55119
56300
  Year: "year"
55120
56301
  };
55121
- var UpdatePlanDimensionsToLicenseEnum2 = {
56302
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum2 = {
55122
56303
  Inf: "inf"
55123
56304
  };
55124
- var UpdatePlanDimensionsToLicenseEnum1 = {
56305
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum1 = {
55125
56306
  Inf: "inf"
55126
56307
  };
55127
- var UpdatePlanToLicenseEnum = {
56308
+ var UpdatePlanToLicenseRequestBodyEnum = {
55128
56309
  Inf: "inf"
55129
56310
  };
55130
- var UpdatePlanLicenseRemoveItemBillingMethod = {
56311
+ var UpdatePlanLicenseRemoveItemBillingMethodRequestBody = {
55131
56312
  Prepaid: "prepaid",
55132
56313
  UsageBased: "usage_based"
55133
56314
  };
55134
- var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
56315
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2 = {
55135
56316
  OneOff: "one_off",
55136
56317
  Minute: "minute",
55137
56318
  Hour: "hour",
@@ -55142,7 +56323,7 @@ var UpdatePlanIntervalLicenseRemoveItemEnum2 = {
55142
56323
  SemiAnnual: "semi_annual",
55143
56324
  Year: "year"
55144
56325
  };
55145
- var UpdatePlanIntervalLicenseRemoveItemEnum1 = {
56326
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1 = {
55146
56327
  OneOff: "one_off",
55147
56328
  Week: "week",
55148
56329
  Month: "month",
@@ -55673,19 +56854,21 @@ var UpdatePlanItemPlanItem$outboundSchema = z132.pipe(
55673
56854
  });
55674
56855
  })
55675
56856
  );
55676
- var UpdatePlanPriceLicenseInterval$outboundSchema = z132.enum(UpdatePlanPriceLicenseInterval);
55677
- var UpdatePlanLicenseAdditionalCurrency$outboundSchema = z132.object({
56857
+ var UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema = z132.enum(
56858
+ UpdatePlanPriceLicenseIntervalRequestBody
56859
+ );
56860
+ var UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema = z132.object({
55678
56861
  currency: z132.string(),
55679
56862
  amount: z132.number()
55680
56863
  });
55681
- var UpdatePlanLicenseBasePrice$outboundSchema = z132.pipe(
56864
+ var UpdatePlanLicenseBasePriceRequestBody$outboundSchema = z132.pipe(
55682
56865
  z132.object({
55683
56866
  amount: z132.number(),
55684
- interval: UpdatePlanPriceLicenseInterval$outboundSchema,
56867
+ interval: UpdatePlanPriceLicenseIntervalRequestBody$outboundSchema,
55685
56868
  intervalCount: z132._default(z132.number(), 1),
55686
- additionalCurrencies: z132.optional(
55687
- z132.array(z132.lazy(() => UpdatePlanLicenseAdditionalCurrency$outboundSchema))
55688
- )
56869
+ additionalCurrencies: z132.optional(z132.array(z132.lazy(
56870
+ () => UpdatePlanLicenseAdditionalCurrencyRequestBody$outboundSchema
56871
+ )))
55689
56872
  }),
55690
56873
  z132.transform((v) => {
55691
56874
  return remap(v, {
@@ -55694,13 +56877,15 @@ var UpdatePlanLicenseBasePrice$outboundSchema = z132.pipe(
55694
56877
  });
55695
56878
  })
55696
56879
  );
55697
- var UpdatePlanLicenseThresholdBilling$outboundSchema = z132.object({
56880
+ var UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema = z132.object({
55698
56881
  threshold: z132.number()
55699
56882
  });
55700
- var UpdatePlanLicenseResetInterval$outboundSchema = z132.enum(UpdatePlanLicenseResetInterval);
55701
- var UpdatePlanLicenseReset$outboundSchema = z132.pipe(
56883
+ var UpdatePlanLicenseResetIntervalRequestBody$outboundSchema = z132.enum(
56884
+ UpdatePlanLicenseResetIntervalRequestBody
56885
+ );
56886
+ var UpdatePlanLicenseResetRequestBody$outboundSchema = z132.pipe(
55702
56887
  z132.object({
55703
- interval: UpdatePlanLicenseResetInterval$outboundSchema,
56888
+ interval: UpdatePlanLicenseResetIntervalRequestBody$outboundSchema,
55704
56889
  intervalCount: z132._default(z132.number(), 1)
55705
56890
  }),
55706
56891
  z132.transform((v) => {
@@ -55709,12 +56894,12 @@ var UpdatePlanLicenseReset$outboundSchema = z132.pipe(
55709
56894
  });
55710
56895
  })
55711
56896
  );
55712
- var UpdatePlanLicenseAddItemAdditionalCurrency$outboundSchema = z132.object({
56897
+ var UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema = z132.object({
55713
56898
  currency: z132.string(),
55714
56899
  amount: z132.number()
55715
56900
  });
55716
- var UpdatePlanLicensePriceTo$outboundSchema = smartUnion([z132.number(), z132.string()]);
55717
- var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z132.pipe(
56901
+ var UpdatePlanLicensePriceToRequestBody$outboundSchema = smartUnion([z132.number(), z132.string()]);
56902
+ var UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema = z132.pipe(
55718
56903
  z132.object({
55719
56904
  currency: z132.string(),
55720
56905
  amount: z132.optional(z132.number()),
@@ -55726,13 +56911,13 @@ var UpdatePlanLicenseTierAdditionalCurrency$outboundSchema = z132.pipe(
55726
56911
  });
55727
56912
  })
55728
56913
  );
55729
- var UpdatePlanLicensePriceTier$outboundSchema = z132.pipe(
56914
+ var UpdatePlanLicensePriceTierRequestBody$outboundSchema = z132.pipe(
55730
56915
  z132.object({
55731
56916
  to: smartUnion([z132.number(), z132.string()]),
55732
56917
  amount: z132.optional(z132.number()),
55733
56918
  flatAmount: z132.optional(z132.number()),
55734
56919
  additionalCurrencies: z132.optional(z132.array(z132.lazy(
55735
- () => UpdatePlanLicenseTierAdditionalCurrency$outboundSchema
56920
+ () => UpdatePlanLicenseTierAdditionalCurrencyRequestBody$outboundSchema
55736
56921
  )))
55737
56922
  }),
55738
56923
  z132.transform((v) => {
@@ -55742,27 +56927,27 @@ var UpdatePlanLicensePriceTier$outboundSchema = z132.pipe(
55742
56927
  });
55743
56928
  })
55744
56929
  );
55745
- var UpdatePlanLicenseTierBehavior$outboundSchema = z132.enum(UpdatePlanLicenseTierBehavior);
55746
- var UpdatePlanLicenseAddItemPriceInterval$outboundSchema = z132.enum(
55747
- UpdatePlanLicenseAddItemPriceInterval
55748
- );
55749
- var UpdatePlanLicenseAddItemBillingMethod$outboundSchema = z132.enum(
55750
- UpdatePlanLicenseAddItemBillingMethod
56930
+ var UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema = z132.enum(
56931
+ UpdatePlanLicenseTierBehaviorRequestBody
55751
56932
  );
55752
- var UpdatePlanLicensePrice$outboundSchema = z132.pipe(
56933
+ var UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema = z132.enum(UpdatePlanLicenseAddItemPriceIntervalRequestBody);
56934
+ var UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema = z132.enum(UpdatePlanLicenseAddItemBillingMethodRequestBody);
56935
+ var UpdatePlanLicensePriceRequestBody$outboundSchema = z132.pipe(
55753
56936
  z132.object({
55754
56937
  amount: z132.optional(z132.number()),
55755
56938
  additionalCurrencies: z132.optional(z132.array(z132.lazy(
55756
- () => UpdatePlanLicenseAddItemAdditionalCurrency$outboundSchema
56939
+ () => UpdatePlanLicenseAddItemAdditionalCurrencyRequestBody$outboundSchema
55757
56940
  ))),
55758
56941
  tiers: z132.optional(z132.array(z132.lazy(
55759
- () => UpdatePlanLicensePriceTier$outboundSchema
56942
+ () => UpdatePlanLicensePriceTierRequestBody$outboundSchema
55760
56943
  ))),
55761
- tierBehavior: z132.optional(UpdatePlanLicenseTierBehavior$outboundSchema),
55762
- interval: UpdatePlanLicenseAddItemPriceInterval$outboundSchema,
56944
+ tierBehavior: z132.optional(
56945
+ UpdatePlanLicenseTierBehaviorRequestBody$outboundSchema
56946
+ ),
56947
+ interval: UpdatePlanLicenseAddItemPriceIntervalRequestBody$outboundSchema,
55763
56948
  intervalCount: z132._default(z132.number(), 1),
55764
56949
  billingUnits: z132._default(z132.number(), 1),
55765
- billingMethod: UpdatePlanLicenseAddItemBillingMethod$outboundSchema,
56950
+ billingMethod: UpdatePlanLicenseAddItemBillingMethodRequestBody$outboundSchema,
55766
56951
  maxPurchase: z132.optional(z132.nullable(z132.number()))
55767
56952
  }),
55768
56953
  z132.transform((v) => {
@@ -55776,12 +56961,16 @@ var UpdatePlanLicensePrice$outboundSchema = z132.pipe(
55776
56961
  });
55777
56962
  })
55778
56963
  );
55779
- var UpdatePlanLicenseOnIncrease$outboundSchema = z132.enum(UpdatePlanLicenseOnIncrease);
55780
- var UpdatePlanLicenseOnDecrease$outboundSchema = z132.enum(UpdatePlanLicenseOnDecrease);
55781
- var UpdatePlanLicenseProration$outboundSchema = z132.pipe(
56964
+ var UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema = z132.enum(
56965
+ UpdatePlanLicenseOnIncreaseRequestBody
56966
+ );
56967
+ var UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema = z132.enum(
56968
+ UpdatePlanLicenseOnDecreaseRequestBody
56969
+ );
56970
+ var UpdatePlanLicenseProrationRequestBody$outboundSchema = z132.pipe(
55782
56971
  z132.object({
55783
- onIncrease: UpdatePlanLicenseOnIncrease$outboundSchema,
55784
- onDecrease: UpdatePlanLicenseOnDecrease$outboundSchema
56972
+ onIncrease: UpdatePlanLicenseOnIncreaseRequestBody$outboundSchema,
56973
+ onDecrease: UpdatePlanLicenseOnDecreaseRequestBody$outboundSchema
55785
56974
  }),
55786
56975
  z132.transform((v) => {
55787
56976
  return remap(v, {
@@ -55790,12 +56979,14 @@ var UpdatePlanLicenseProration$outboundSchema = z132.pipe(
55790
56979
  });
55791
56980
  })
55792
56981
  );
55793
- var UpdatePlanLicenseExpiryDurationType$outboundSchema = z132.enum(UpdatePlanLicenseExpiryDurationType);
55794
- var UpdatePlanLicenseRollover$outboundSchema = z132.pipe(
56982
+ var UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema = z132.enum(
56983
+ UpdatePlanLicenseExpiryDurationTypeRequestBody
56984
+ );
56985
+ var UpdatePlanLicenseRolloverRequestBody$outboundSchema = z132.pipe(
55795
56986
  z132.object({
55796
56987
  max: z132.optional(z132.number()),
55797
56988
  maxPercentage: z132.optional(z132.number()),
55798
- expiryDurationType: UpdatePlanLicenseExpiryDurationType$outboundSchema,
56989
+ expiryDurationType: UpdatePlanLicenseExpiryDurationTypeRequestBody$outboundSchema,
55799
56990
  expiryDurationLength: z132.optional(z132.number())
55800
56991
  }),
55801
56992
  z132.transform((v) => {
@@ -55806,13 +56997,13 @@ var UpdatePlanLicenseRollover$outboundSchema = z132.pipe(
55806
56997
  });
55807
56998
  })
55808
56999
  );
55809
- var UpdatePlanLicenseDuration$outboundSchema = z132.enum(UpdatePlanLicenseDuration);
55810
- var UpdatePlanLicenseExpiry$outboundSchema = z132.object({
55811
- duration: UpdatePlanLicenseDuration$outboundSchema,
57000
+ var UpdatePlanLicenseDurationRequestBody$outboundSchema = z132.enum(UpdatePlanLicenseDurationRequestBody);
57001
+ var UpdatePlanLicenseExpiryRequestBody$outboundSchema = z132.object({
57002
+ duration: UpdatePlanLicenseDurationRequestBody$outboundSchema,
55812
57003
  length: z132.number()
55813
57004
  });
55814
57005
  var UpdatePlanDimensionsLicenseMatch4$outboundSchema = smartUnion([z132.string(), z132.number(), z132.boolean()]);
55815
- var UpdatePlanDimensionsLicense4$outboundSchema = z132.pipe(
57006
+ var UpdatePlanDimensionsLicenseRequestBody4$outboundSchema = z132.pipe(
55816
57007
  z132.object({
55817
57008
  match: z132.record(
55818
57009
  z132.string(),
@@ -55828,13 +57019,18 @@ var UpdatePlanDimensionsLicense4$outboundSchema = z132.pipe(
55828
57019
  })
55829
57020
  );
55830
57021
  var UpdatePlanDimensionsLicenseMatch3$outboundSchema = smartUnion([z132.string(), z132.number(), z132.boolean()]);
55831
- var UpdatePlanDimensionsToLicenseEnum2$outboundSchema = z132.enum(UpdatePlanDimensionsToLicenseEnum2);
55832
- var UpdatePlanDimensionsLicenseToUnion2$outboundSchema = smartUnion([z132.number(), UpdatePlanDimensionsToLicenseEnum2$outboundSchema]);
55833
- var UpdatePlanDimensionsLicenseTier2$outboundSchema = z132.pipe(
57022
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema = z132.enum(
57023
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2
57024
+ );
57025
+ var UpdatePlanDimensionsLicenseToRequestBodyUnion2$outboundSchema = smartUnion([
57026
+ z132.number(),
57027
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
57028
+ ]);
57029
+ var UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema = z132.pipe(
55834
57030
  z132.object({
55835
57031
  to: smartUnion([
55836
57032
  z132.number(),
55837
- UpdatePlanDimensionsToLicenseEnum2$outboundSchema
57033
+ UpdatePlanDimensionsToLicenseRequestBodyEnum2$outboundSchema
55838
57034
  ]),
55839
57035
  creditCost: z132.number()
55840
57036
  }),
@@ -55844,7 +57040,7 @@ var UpdatePlanDimensionsLicenseTier2$outboundSchema = z132.pipe(
55844
57040
  });
55845
57041
  })
55846
57042
  );
55847
- var UpdatePlanDimensionsLicense3$outboundSchema = z132.pipe(
57043
+ var UpdatePlanDimensionsLicenseRequestBody3$outboundSchema = z132.pipe(
55848
57044
  z132.object({
55849
57045
  match: z132.record(
55850
57046
  z132.string(),
@@ -55853,7 +57049,9 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z132.pipe(
55853
57049
  priority: z132.optional(z132.int()),
55854
57050
  tierBehavior: z132.literal("graduated"),
55855
57051
  tiers: z132.array(
55856
- z132.lazy(() => UpdatePlanDimensionsLicenseTier2$outboundSchema)
57052
+ z132.lazy(
57053
+ () => UpdatePlanDimensionsLicenseTierRequestBody2$outboundSchema
57054
+ )
55857
57055
  )
55858
57056
  }),
55859
57057
  z132.transform((v) => {
@@ -55862,12 +57060,12 @@ var UpdatePlanDimensionsLicense3$outboundSchema = z132.pipe(
55862
57060
  });
55863
57061
  })
55864
57062
  );
55865
- var UpdatePlanLicenseDimensionsUnion2$outboundSchema = smartUnion([
55866
- z132.lazy(() => UpdatePlanDimensionsLicense3$outboundSchema),
55867
- z132.lazy(() => UpdatePlanDimensionsLicense4$outboundSchema)
57063
+ var UpdatePlanLicenseDimensionsRequestBodyUnion2$outboundSchema = smartUnion([
57064
+ z132.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
57065
+ z132.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
55868
57066
  ]);
55869
57067
  var UpdatePlanLicenseMultipliersMatch2$outboundSchema = smartUnion([z132.string(), z132.number(), z132.boolean()]);
55870
- var UpdatePlanLicenseMultipliers2$outboundSchema = z132.object({
57068
+ var UpdatePlanLicenseMultipliersRequestBody2$outboundSchema = z132.object({
55871
57069
  match: z132.record(
55872
57070
  z132.string(),
55873
57071
  smartUnion([z132.string(), z132.number(), z132.boolean()])
@@ -55875,20 +57073,20 @@ var UpdatePlanLicenseMultipliers2$outboundSchema = z132.object({
55875
57073
  factor: z132.optional(z132.number()),
55876
57074
  add: z132.optional(z132.number())
55877
57075
  });
55878
- var UpdatePlanCreditSchemaLicense2$outboundSchema = z132.pipe(
57076
+ var UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema = z132.pipe(
55879
57077
  z132.object({
55880
57078
  meteredFeatureId: z132.string(),
55881
57079
  billingUnits: z132.optional(z132.number()),
55882
57080
  dimensions: z132.optional(z132.record(
55883
57081
  z132.string(),
55884
57082
  smartUnion([
55885
- z132.lazy(() => UpdatePlanDimensionsLicense3$outboundSchema),
55886
- z132.lazy(() => UpdatePlanDimensionsLicense4$outboundSchema)
57083
+ z132.lazy(() => UpdatePlanDimensionsLicenseRequestBody3$outboundSchema),
57084
+ z132.lazy(() => UpdatePlanDimensionsLicenseRequestBody4$outboundSchema)
55887
57085
  ])
55888
57086
  )),
55889
57087
  multipliers: z132.optional(z132.record(
55890
57088
  z132.string(),
55891
- z132.lazy(() => UpdatePlanLicenseMultipliers2$outboundSchema)
57089
+ z132.lazy(() => UpdatePlanLicenseMultipliersRequestBody2$outboundSchema)
55892
57090
  )),
55893
57091
  creditCost: z132.number()
55894
57092
  }),
@@ -55901,7 +57099,7 @@ var UpdatePlanCreditSchemaLicense2$outboundSchema = z132.pipe(
55901
57099
  })
55902
57100
  );
55903
57101
  var UpdatePlanDimensionsLicenseMatch2$outboundSchema = smartUnion([z132.string(), z132.number(), z132.boolean()]);
55904
- var UpdatePlanDimensionsLicense2$outboundSchema = z132.pipe(
57102
+ var UpdatePlanDimensionsLicenseRequestBody2$outboundSchema = z132.pipe(
55905
57103
  z132.object({
55906
57104
  match: z132.record(
55907
57105
  z132.string(),
@@ -55917,13 +57115,18 @@ var UpdatePlanDimensionsLicense2$outboundSchema = z132.pipe(
55917
57115
  })
55918
57116
  );
55919
57117
  var UpdatePlanDimensionsLicenseMatch1$outboundSchema = smartUnion([z132.string(), z132.number(), z132.boolean()]);
55920
- var UpdatePlanDimensionsToLicenseEnum1$outboundSchema = z132.enum(UpdatePlanDimensionsToLicenseEnum1);
55921
- var UpdatePlanDimensionsLicenseToUnion1$outboundSchema = smartUnion([z132.number(), UpdatePlanDimensionsToLicenseEnum1$outboundSchema]);
55922
- var UpdatePlanDimensionsLicenseTier1$outboundSchema = z132.pipe(
57118
+ var UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema = z132.enum(
57119
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1
57120
+ );
57121
+ var UpdatePlanDimensionsLicenseToRequestBodyUnion1$outboundSchema = smartUnion([
57122
+ z132.number(),
57123
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
57124
+ ]);
57125
+ var UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema = z132.pipe(
55923
57126
  z132.object({
55924
57127
  to: smartUnion([
55925
57128
  z132.number(),
55926
- UpdatePlanDimensionsToLicenseEnum1$outboundSchema
57129
+ UpdatePlanDimensionsToLicenseRequestBodyEnum1$outboundSchema
55927
57130
  ]),
55928
57131
  creditCost: z132.number()
55929
57132
  }),
@@ -55933,7 +57136,7 @@ var UpdatePlanDimensionsLicenseTier1$outboundSchema = z132.pipe(
55933
57136
  });
55934
57137
  })
55935
57138
  );
55936
- var UpdatePlanDimensionsLicense1$outboundSchema = z132.pipe(
57139
+ var UpdatePlanDimensionsLicenseRequestBody1$outboundSchema = z132.pipe(
55937
57140
  z132.object({
55938
57141
  match: z132.record(
55939
57142
  z132.string(),
@@ -55942,7 +57145,9 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z132.pipe(
55942
57145
  priority: z132.optional(z132.int()),
55943
57146
  tierBehavior: z132.literal("graduated"),
55944
57147
  tiers: z132.array(
55945
- z132.lazy(() => UpdatePlanDimensionsLicenseTier1$outboundSchema)
57148
+ z132.lazy(
57149
+ () => UpdatePlanDimensionsLicenseTierRequestBody1$outboundSchema
57150
+ )
55946
57151
  )
55947
57152
  }),
55948
57153
  z132.transform((v) => {
@@ -55951,12 +57156,12 @@ var UpdatePlanDimensionsLicense1$outboundSchema = z132.pipe(
55951
57156
  });
55952
57157
  })
55953
57158
  );
55954
- var UpdatePlanLicenseDimensionsUnion1$outboundSchema = smartUnion([
55955
- z132.lazy(() => UpdatePlanDimensionsLicense1$outboundSchema),
55956
- z132.lazy(() => UpdatePlanDimensionsLicense2$outboundSchema)
57159
+ var UpdatePlanLicenseDimensionsRequestBodyUnion1$outboundSchema = smartUnion([
57160
+ z132.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
57161
+ z132.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
55957
57162
  ]);
55958
57163
  var UpdatePlanLicenseMultipliersMatch1$outboundSchema = smartUnion([z132.string(), z132.number(), z132.boolean()]);
55959
- var UpdatePlanLicenseMultipliers1$outboundSchema = z132.object({
57164
+ var UpdatePlanLicenseMultipliersRequestBody1$outboundSchema = z132.object({
55960
57165
  match: z132.record(
55961
57166
  z132.string(),
55962
57167
  smartUnion([z132.string(), z132.number(), z132.boolean()])
@@ -55964,11 +57169,17 @@ var UpdatePlanLicenseMultipliers1$outboundSchema = z132.object({
55964
57169
  factor: z132.optional(z132.number()),
55965
57170
  add: z132.optional(z132.number())
55966
57171
  });
55967
- var UpdatePlanToLicenseEnum$outboundSchema = z132.enum(UpdatePlanToLicenseEnum);
55968
- var UpdatePlanLicenseFeatureOverrideToUnion$outboundSchema = smartUnion([z132.number(), UpdatePlanToLicenseEnum$outboundSchema]);
55969
- var UpdatePlanLicenseFeatureOverrideTier$outboundSchema = z132.pipe(
57172
+ var UpdatePlanToLicenseRequestBodyEnum$outboundSchema = z132.enum(UpdatePlanToLicenseRequestBodyEnum);
57173
+ var UpdatePlanLicenseFeatureOverrideToRequestBodyUnion$outboundSchema = smartUnion([
57174
+ z132.number(),
57175
+ UpdatePlanToLicenseRequestBodyEnum$outboundSchema
57176
+ ]);
57177
+ var UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema = z132.pipe(
55970
57178
  z132.object({
55971
- to: smartUnion([z132.number(), UpdatePlanToLicenseEnum$outboundSchema]),
57179
+ to: smartUnion([
57180
+ z132.number(),
57181
+ UpdatePlanToLicenseRequestBodyEnum$outboundSchema
57182
+ ]),
55972
57183
  creditCost: z132.number()
55973
57184
  }),
55974
57185
  z132.transform((v) => {
@@ -55977,24 +57188,24 @@ var UpdatePlanLicenseFeatureOverrideTier$outboundSchema = z132.pipe(
55977
57188
  });
55978
57189
  })
55979
57190
  );
55980
- var UpdatePlanCreditSchemaLicense1$outboundSchema = z132.pipe(
57191
+ var UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema = z132.pipe(
55981
57192
  z132.object({
55982
57193
  meteredFeatureId: z132.string(),
55983
57194
  billingUnits: z132.optional(z132.number()),
55984
57195
  dimensions: z132.optional(z132.record(
55985
57196
  z132.string(),
55986
57197
  smartUnion([
55987
- z132.lazy(() => UpdatePlanDimensionsLicense1$outboundSchema),
55988
- z132.lazy(() => UpdatePlanDimensionsLicense2$outboundSchema)
57198
+ z132.lazy(() => UpdatePlanDimensionsLicenseRequestBody1$outboundSchema),
57199
+ z132.lazy(() => UpdatePlanDimensionsLicenseRequestBody2$outboundSchema)
55989
57200
  ])
55990
57201
  )),
55991
57202
  multipliers: z132.optional(z132.record(
55992
57203
  z132.string(),
55993
- z132.lazy(() => UpdatePlanLicenseMultipliers1$outboundSchema)
57204
+ z132.lazy(() => UpdatePlanLicenseMultipliersRequestBody1$outboundSchema)
55994
57205
  )),
55995
57206
  tierBehavior: z132.literal("graduated"),
55996
57207
  tiers: z132.array(z132.lazy(
55997
- () => UpdatePlanLicenseFeatureOverrideTier$outboundSchema
57208
+ () => UpdatePlanLicenseFeatureOverrideTierRequestBody$outboundSchema
55998
57209
  ))
55999
57210
  }),
56000
57211
  z132.transform((v) => {
@@ -56005,14 +57216,14 @@ var UpdatePlanCreditSchemaLicense1$outboundSchema = z132.pipe(
56005
57216
  });
56006
57217
  })
56007
57218
  );
56008
- var UpdatePlanLicenseCreditSchemaUnion$outboundSchema = smartUnion([
56009
- z132.lazy(() => UpdatePlanCreditSchemaLicense1$outboundSchema),
56010
- z132.lazy(() => UpdatePlanCreditSchemaLicense2$outboundSchema)
57219
+ var UpdatePlanLicenseCreditSchemaRequestBodyUnion$outboundSchema = smartUnion([
57220
+ z132.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
57221
+ z132.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema)
56011
57222
  ]);
56012
- var UpdatePlanLicenseProviderMarkups$outboundSchema = z132.object({
57223
+ var UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema = z132.object({
56013
57224
  markup: z132.number()
56014
57225
  });
56015
- var UpdatePlanLicenseModelMarkups$outboundSchema = z132.pipe(
57226
+ var UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema = z132.pipe(
56016
57227
  z132.object({
56017
57228
  markup: z132.optional(z132.number()),
56018
57229
  inputCost: z132.optional(z132.number()),
@@ -56025,16 +57236,16 @@ var UpdatePlanLicenseModelMarkups$outboundSchema = z132.pipe(
56025
57236
  });
56026
57237
  })
56027
57238
  );
56028
- var UpdatePlanLicenseMarkups$outboundSchema = z132.pipe(
57239
+ var UpdatePlanLicenseMarkupsRequestBody$outboundSchema = z132.pipe(
56029
57240
  z132.object({
56030
57241
  defaultMarkup: z132.optional(z132.number()),
56031
57242
  providerMarkups: z132.optional(z132.nullable(z132.record(
56032
57243
  z132.string(),
56033
- z132.lazy(() => UpdatePlanLicenseProviderMarkups$outboundSchema)
57244
+ z132.lazy(() => UpdatePlanLicenseProviderMarkupsRequestBody$outboundSchema)
56034
57245
  ))),
56035
57246
  modelMarkups: z132.optional(z132.nullable(z132.record(
56036
57247
  z132.string(),
56037
- z132.lazy(() => UpdatePlanLicenseModelMarkups$outboundSchema)
57248
+ z132.lazy(() => UpdatePlanLicenseModelMarkupsRequestBody$outboundSchema)
56038
57249
  )))
56039
57250
  }),
56040
57251
  z132.transform((v) => {
@@ -56045,16 +57256,16 @@ var UpdatePlanLicenseMarkups$outboundSchema = z132.pipe(
56045
57256
  });
56046
57257
  })
56047
57258
  );
56048
- var UpdatePlanLicenseFeatureOverride$outboundSchema = z132.pipe(
57259
+ var UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema = z132.pipe(
56049
57260
  z132.object({
56050
57261
  creditSchema: z132.optional(z132.array(smartUnion([
56051
- z132.lazy(() => UpdatePlanCreditSchemaLicense1$outboundSchema),
57262
+ z132.lazy(() => UpdatePlanCreditSchemaLicenseRequestBody1$outboundSchema),
56052
57263
  z132.lazy(
56053
- () => UpdatePlanCreditSchemaLicense2$outboundSchema
57264
+ () => UpdatePlanCreditSchemaLicenseRequestBody2$outboundSchema
56054
57265
  )
56055
57266
  ]))),
56056
57267
  markups: z132.optional(z132.lazy(
56057
- () => UpdatePlanLicenseMarkups$outboundSchema
57268
+ () => UpdatePlanLicenseMarkupsRequestBody$outboundSchema
56058
57269
  ))
56059
57270
  }),
56060
57271
  z132.transform((v) => {
@@ -56063,29 +57274,33 @@ var UpdatePlanLicenseFeatureOverride$outboundSchema = z132.pipe(
56063
57274
  });
56064
57275
  })
56065
57276
  );
56066
- var UpdatePlanLicensePlanItem$outboundSchema = z132.pipe(
57277
+ var UpdatePlanLicensePlanItemRequestBody$outboundSchema = z132.pipe(
56067
57278
  z132.object({
56068
- thresholdBilling: z132.optional(
56069
- z132.nullable(
56070
- z132.lazy(() => UpdatePlanLicenseThresholdBilling$outboundSchema)
56071
- )
56072
- ),
57279
+ thresholdBilling: z132.optional(z132.nullable(z132.lazy(
57280
+ () => UpdatePlanLicenseThresholdBillingRequestBody$outboundSchema
57281
+ ))),
56073
57282
  featureId: z132.string(),
56074
57283
  included: z132.optional(z132.number()),
56075
57284
  unlimited: z132.optional(z132.boolean()),
56076
57285
  pooled: z132._default(z132.boolean(), false),
56077
- reset: z132.optional(z132.lazy(() => UpdatePlanLicenseReset$outboundSchema)),
56078
- price: z132.optional(z132.lazy(() => UpdatePlanLicensePrice$outboundSchema)),
56079
- proration: z132.optional(
56080
- z132.lazy(() => UpdatePlanLicenseProration$outboundSchema)
56081
- ),
56082
- rollover: z132.optional(
56083
- z132.lazy(() => UpdatePlanLicenseRollover$outboundSchema)
56084
- ),
56085
- expiry: z132.optional(z132.lazy(() => UpdatePlanLicenseExpiry$outboundSchema)),
56086
- featureOverride: z132.optional(
56087
- z132.lazy(() => UpdatePlanLicenseFeatureOverride$outboundSchema)
56088
- )
57286
+ reset: z132.optional(z132.lazy(
57287
+ () => UpdatePlanLicenseResetRequestBody$outboundSchema
57288
+ )),
57289
+ price: z132.optional(z132.lazy(
57290
+ () => UpdatePlanLicensePriceRequestBody$outboundSchema
57291
+ )),
57292
+ proration: z132.optional(z132.lazy(
57293
+ () => UpdatePlanLicenseProrationRequestBody$outboundSchema
57294
+ )),
57295
+ rollover: z132.optional(z132.lazy(
57296
+ () => UpdatePlanLicenseRolloverRequestBody$outboundSchema
57297
+ )),
57298
+ expiry: z132.optional(z132.lazy(
57299
+ () => UpdatePlanLicenseExpiryRequestBody$outboundSchema
57300
+ )),
57301
+ featureOverride: z132.optional(z132.lazy(
57302
+ () => UpdatePlanLicenseFeatureOverrideRequestBody$outboundSchema
57303
+ ))
56089
57304
  }),
56090
57305
  z132.transform((v) => {
56091
57306
  return remap(v, {
@@ -56095,29 +57310,23 @@ var UpdatePlanLicensePlanItem$outboundSchema = z132.pipe(
56095
57310
  });
56096
57311
  })
56097
57312
  );
56098
- var UpdatePlanLicenseRemoveItemBillingMethod$outboundSchema = z132.enum(
56099
- UpdatePlanLicenseRemoveItemBillingMethod
56100
- );
56101
- var UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema = z132.enum(
56102
- UpdatePlanIntervalLicenseRemoveItemEnum2
56103
- );
56104
- var UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema = z132.enum(
56105
- UpdatePlanIntervalLicenseRemoveItemEnum1
56106
- );
56107
- var UpdatePlanLicenseIntervalUnion$outboundSchema = smartUnion([
56108
- UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
56109
- UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
57313
+ var UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema = z132.enum(UpdatePlanLicenseRemoveItemBillingMethodRequestBody);
57314
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema = z132.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2);
57315
+ var UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema = z132.enum(UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1);
57316
+ var UpdatePlanLicenseIntervalRequestBodyUnion$outboundSchema = smartUnion([
57317
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
57318
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
56110
57319
  ]);
56111
- var UpdatePlanLicensePlanItemFilter$outboundSchema = z132.pipe(
57320
+ var UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema = z132.pipe(
56112
57321
  z132.object({
56113
57322
  featureId: z132.optional(z132.string()),
56114
57323
  billingMethod: z132.optional(
56115
- UpdatePlanLicenseRemoveItemBillingMethod$outboundSchema
57324
+ UpdatePlanLicenseRemoveItemBillingMethodRequestBody$outboundSchema
56116
57325
  ),
56117
57326
  interval: z132.optional(
56118
57327
  smartUnion([
56119
- UpdatePlanIntervalLicenseRemoveItemEnum1$outboundSchema,
56120
- UpdatePlanIntervalLicenseRemoveItemEnum2$outboundSchema
57328
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum1$outboundSchema,
57329
+ UpdatePlanIntervalLicenseRemoveItemRequestBodyEnum2$outboundSchema
56121
57330
  ])
56122
57331
  ),
56123
57332
  intervalCount: z132.optional(z132.int()),
@@ -56131,17 +57340,17 @@ var UpdatePlanLicensePlanItemFilter$outboundSchema = z132.pipe(
56131
57340
  });
56132
57341
  })
56133
57342
  );
56134
- var UpdatePlanLicenseCustomize$outboundSchema = z132.pipe(
57343
+ var UpdatePlanLicenseCustomizeRequestBody$outboundSchema = z132.pipe(
56135
57344
  z132.object({
56136
- price: z132.optional(
56137
- z132.nullable(z132.lazy(() => UpdatePlanLicenseBasePrice$outboundSchema))
56138
- ),
56139
- addItems: z132.optional(
56140
- z132.array(z132.lazy(() => UpdatePlanLicensePlanItem$outboundSchema))
56141
- ),
56142
- removeItems: z132.optional(
56143
- z132.array(z132.lazy(() => UpdatePlanLicensePlanItemFilter$outboundSchema))
56144
- )
57345
+ price: z132.optional(z132.nullable(z132.lazy(
57346
+ () => UpdatePlanLicenseBasePriceRequestBody$outboundSchema
57347
+ ))),
57348
+ addItems: z132.optional(z132.array(z132.lazy(
57349
+ () => UpdatePlanLicensePlanItemRequestBody$outboundSchema
57350
+ ))),
57351
+ removeItems: z132.optional(z132.array(z132.lazy(
57352
+ () => UpdatePlanLicensePlanItemFilterRequestBody$outboundSchema
57353
+ )))
56145
57354
  }),
56146
57355
  z132.transform((v) => {
56147
57356
  return remap(v, {
@@ -56150,15 +57359,15 @@ var UpdatePlanLicenseCustomize$outboundSchema = z132.pipe(
56150
57359
  });
56151
57360
  })
56152
57361
  );
56153
- var UpdatePlanLicense$outboundSchema = z132.pipe(
57362
+ var UpdatePlanLicenseRequest$outboundSchema = z132.pipe(
56154
57363
  z132.object({
56155
57364
  licensePlanId: z132.string(),
56156
57365
  versionSlug: z132.optional(z132.string()),
56157
57366
  included: z132.optional(z132.int()),
56158
57367
  prepaidOnly: z132.optional(z132.boolean()),
56159
- customize: z132.optional(
56160
- z132.nullable(z132.lazy(() => UpdatePlanLicenseCustomize$outboundSchema))
56161
- ),
57368
+ customize: z132.optional(z132.nullable(z132.lazy(
57369
+ () => UpdatePlanLicenseCustomizeRequestBody$outboundSchema
57370
+ ))),
56162
57371
  metadata: z132.optional(z132.record(z132.string(), z132.any()))
56163
57372
  }),
56164
57373
  z132.transform((v) => {
@@ -57847,7 +59056,7 @@ var UpdatePlanParams$outboundSchema = z133.pipe(
57847
59056
  z133.nullable(UpdatePlanBasePriceRequestBody$outboundSchema)
57848
59057
  ),
57849
59058
  items: z133.optional(z133.array(UpdatePlanItemPlanItem$outboundSchema)),
57850
- licenses: z133.optional(z133.array(UpdatePlanLicense$outboundSchema)),
59059
+ licenses: z133.optional(z133.array(UpdatePlanLicenseRequest$outboundSchema)),
57851
59060
  freeTrial: z133.optional(
57852
59061
  z133.nullable(UpdatePlanFreeTrialParamsRequestBody$outboundSchema)
57853
59062
  ),
@@ -58155,17 +59364,17 @@ var UpdatePlanVariantDetailsAddItemPriceInterval = {
58155
59364
  SemiAnnual: "semi_annual",
58156
59365
  Year: "year"
58157
59366
  };
58158
- var UpdatePlanAddItemBillingMethodResponse = {
59367
+ var UpdatePlanVariantDetailsAddItemBillingMethod = {
58159
59368
  Prepaid: "prepaid",
58160
59369
  UsageBased: "usage_based"
58161
59370
  };
58162
- var UpdatePlanOnIncreaseResponse = {
59371
+ var UpdatePlanVariantDetailsOnIncrease = {
58163
59372
  BillImmediately: "bill_immediately",
58164
59373
  ProrateImmediately: "prorate_immediately",
58165
59374
  ProrateNextCycle: "prorate_next_cycle",
58166
59375
  BillNextCycle: "bill_next_cycle"
58167
59376
  };
58168
- var UpdatePlanOnDecreaseResponse = {
59377
+ var UpdatePlanVariantDetailsOnDecrease = {
58169
59378
  Prorate: "prorate",
58170
59379
  ProrateImmediately: "prorate_immediately",
58171
59380
  ProrateNextCycle: "prorate_next_cycle",
@@ -58191,7 +59400,7 @@ var UpdatePlanDimensionsToVariantDetailsEnum1 = {
58191
59400
  var UpdatePlanToVariantDetailsEnum = {
58192
59401
  Inf: "inf"
58193
59402
  };
58194
- var UpdatePlanRemoveItemBillingMethodResponse = {
59403
+ var UpdatePlanVariantDetailsRemoveItemBillingMethod = {
58195
59404
  Prepaid: "prepaid",
58196
59405
  UsageBased: "usage_based"
58197
59406
  };
@@ -58286,7 +59495,7 @@ var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval = {
58286
59495
  SemiAnnual: "semi_annual",
58287
59496
  Year: "year"
58288
59497
  };
58289
- var UpdatePlanUpsertLicenseAddItemBillingMethodResponse = {
59498
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod = {
58290
59499
  Prepaid: "prepaid",
58291
59500
  UsageBased: "usage_based"
58292
59501
  };
@@ -58303,7 +59512,7 @@ var UpdatePlanUpsertLicenseOnDecreaseResponse = {
58303
59512
  None: "none",
58304
59513
  NoProrations: "no_prorations"
58305
59514
  };
58306
- var UpdatePlanUpsertLicenseExpiryDurationTypeResponse = {
59515
+ var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType = {
58307
59516
  Month: "month",
58308
59517
  Forever: "forever"
58309
59518
  };
@@ -58890,7 +60099,7 @@ var UpdatePlanVariantDetailsAdditionalCurrency$inboundSchema = z134.object(
58890
60099
  amount: number2()
58891
60100
  }
58892
60101
  );
58893
- var UpdatePlanBasePriceResponse$inboundSchema = z134.pipe(
60102
+ var UpdatePlanVariantDetailsBasePrice$inboundSchema = z134.pipe(
58894
60103
  z134.object({
58895
60104
  amount: number2(),
58896
60105
  interval: UpdatePlanPriceVariantDetailsInterval$inboundSchema,
@@ -58921,7 +60130,7 @@ var UpdatePlanVariantDetailsReset$inboundSchema = z134.pipe(
58921
60130
  });
58922
60131
  })
58923
60132
  );
58924
- var UpdatePlanAddItemAdditionalCurrencyResponse$inboundSchema = z134.object({
60133
+ var UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema = z134.object({
58925
60134
  currency: string5(),
58926
60135
  amount: number2()
58927
60136
  });
@@ -58956,12 +60165,12 @@ var UpdatePlanVariantDetailsPriceTier$inboundSchema = z134.pipe(
58956
60165
  );
58957
60166
  var UpdatePlanVariantDetailsTierBehavior$inboundSchema = inboundSchema(UpdatePlanVariantDetailsTierBehavior);
58958
60167
  var UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemPriceInterval);
58959
- var UpdatePlanAddItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanAddItemBillingMethodResponse);
60168
+ var UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAddItemBillingMethod);
58960
60169
  var UpdatePlanVariantDetailsPrice$inboundSchema = z134.pipe(
58961
60170
  z134.object({
58962
60171
  amount: optional3(number2()),
58963
60172
  additional_currencies: optional3(z134.array(z134.lazy(
58964
- () => UpdatePlanAddItemAdditionalCurrencyResponse$inboundSchema
60173
+ () => UpdatePlanVariantDetailsAddItemAdditionalCurrency$inboundSchema
58965
60174
  ))),
58966
60175
  tiers: optional3(z134.array(z134.lazy(
58967
60176
  () => UpdatePlanVariantDetailsPriceTier$inboundSchema
@@ -58972,7 +60181,7 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z134.pipe(
58972
60181
  interval: UpdatePlanVariantDetailsAddItemPriceInterval$inboundSchema,
58973
60182
  interval_count: z134._default(number2(), 1),
58974
60183
  billing_units: z134._default(number2(), 1),
58975
- billing_method: UpdatePlanAddItemBillingMethodResponse$inboundSchema,
60184
+ billing_method: UpdatePlanVariantDetailsAddItemBillingMethod$inboundSchema,
58976
60185
  max_purchase: z134.optional(z134.nullable(number2()))
58977
60186
  }),
58978
60187
  z134.transform((v) => {
@@ -58986,12 +60195,12 @@ var UpdatePlanVariantDetailsPrice$inboundSchema = z134.pipe(
58986
60195
  });
58987
60196
  })
58988
60197
  );
58989
- var UpdatePlanOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanOnIncreaseResponse);
58990
- var UpdatePlanOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanOnDecreaseResponse);
58991
- var UpdatePlanProrationResponse$inboundSchema = z134.pipe(
60198
+ var UpdatePlanVariantDetailsOnIncrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnIncrease);
60199
+ var UpdatePlanVariantDetailsOnDecrease$inboundSchema = inboundSchema(UpdatePlanVariantDetailsOnDecrease);
60200
+ var UpdatePlanVariantDetailsProration$inboundSchema = z134.pipe(
58992
60201
  z134.object({
58993
- on_increase: UpdatePlanOnIncreaseResponse$inboundSchema,
58994
- on_decrease: UpdatePlanOnDecreaseResponse$inboundSchema
60202
+ on_increase: UpdatePlanVariantDetailsOnIncrease$inboundSchema,
60203
+ on_decrease: UpdatePlanVariantDetailsOnDecrease$inboundSchema
58995
60204
  }),
58996
60205
  z134.transform((v) => {
58997
60206
  return remap(v, {
@@ -59266,7 +60475,7 @@ var UpdatePlanVariantDetailsFeatureOverride$inboundSchema = z134.pipe(
59266
60475
  });
59267
60476
  })
59268
60477
  );
59269
- var UpdatePlanPlanItemResponse$inboundSchema = z134.pipe(
60478
+ var UpdatePlanVariantDetailsPlanItem$inboundSchema = z134.pipe(
59270
60479
  z134.object({
59271
60480
  threshold_billing: z134.optional(z134.nullable(z134.lazy(
59272
60481
  () => UpdatePlanVariantDetailsThresholdBilling$inboundSchema
@@ -59282,7 +60491,7 @@ var UpdatePlanPlanItemResponse$inboundSchema = z134.pipe(
59282
60491
  () => UpdatePlanVariantDetailsPrice$inboundSchema
59283
60492
  )),
59284
60493
  proration: optional3(z134.lazy(
59285
- () => UpdatePlanProrationResponse$inboundSchema
60494
+ () => UpdatePlanVariantDetailsProration$inboundSchema
59286
60495
  )),
59287
60496
  rollover: optional3(z134.lazy(
59288
60497
  () => UpdatePlanVariantDetailsRollover$inboundSchema
@@ -59302,18 +60511,18 @@ var UpdatePlanPlanItemResponse$inboundSchema = z134.pipe(
59302
60511
  });
59303
60512
  })
59304
60513
  );
59305
- var UpdatePlanRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanRemoveItemBillingMethodResponse);
60514
+ var UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema = inboundSchema(UpdatePlanVariantDetailsRemoveItemBillingMethod);
59306
60515
  var UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum2);
59307
60516
  var UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalVariantDetailsRemoveItemEnum1);
59308
60517
  var UpdatePlanVariantDetailsIntervalUnion$inboundSchema = smartUnion([
59309
60518
  UpdatePlanIntervalVariantDetailsRemoveItemEnum1$inboundSchema,
59310
60519
  UpdatePlanIntervalVariantDetailsRemoveItemEnum2$inboundSchema
59311
60520
  ]);
59312
- var UpdatePlanPlanItemFilterResponse$inboundSchema = z134.pipe(
60521
+ var UpdatePlanVariantDetailsPlanItemFilter$inboundSchema = z134.pipe(
59313
60522
  z134.object({
59314
60523
  feature_id: optional3(string5()),
59315
60524
  billing_method: optional3(
59316
- UpdatePlanRemoveItemBillingMethodResponse$inboundSchema
60525
+ UpdatePlanVariantDetailsRemoveItemBillingMethod$inboundSchema
59317
60526
  ),
59318
60527
  interval: optional3(
59319
60528
  smartUnion([
@@ -59490,7 +60699,7 @@ var UpdatePlanVariantDetailsBillingControls$inboundSchema = z134.pipe(
59490
60699
  })
59491
60700
  );
59492
60701
  var UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema = inboundSchema(UpdatePlanPriceVariantDetailsUpsertLicenseInterval);
59493
- var UpdatePlanUpsertLicenseAdditionalCurrencyResponse$inboundSchema = z134.object({
60702
+ var UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema = z134.object({
59494
60703
  currency: string5(),
59495
60704
  amount: number2()
59496
60705
  });
@@ -59500,7 +60709,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z134.pipe(
59500
60709
  interval: UpdatePlanPriceVariantDetailsUpsertLicenseInterval$inboundSchema,
59501
60710
  interval_count: z134._default(number2(), 1),
59502
60711
  additional_currencies: optional3(z134.array(z134.lazy(
59503
- () => UpdatePlanUpsertLicenseAdditionalCurrencyResponse$inboundSchema
60712
+ () => UpdatePlanVariantDetailsUpsertLicenseAdditionalCurrency$inboundSchema
59504
60713
  )))
59505
60714
  }),
59506
60715
  z134.transform((v) => {
@@ -59510,7 +60719,7 @@ var UpdatePlanUpsertLicenseBasePriceResponse$inboundSchema = z134.pipe(
59510
60719
  });
59511
60720
  })
59512
60721
  );
59513
- var UpdatePlanUpsertLicenseThresholdBillingResponse$inboundSchema = z134.object({
60722
+ var UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema = z134.object({
59514
60723
  threshold: number2()
59515
60724
  });
59516
60725
  var UpdatePlanVariantDetailsUpsertLicenseResetInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUpsertLicenseResetInterval);
@@ -59525,12 +60734,12 @@ var UpdatePlanVariantDetailsUpsertLicenseReset$inboundSchema = z134.pipe(
59525
60734
  });
59526
60735
  })
59527
60736
  );
59528
- var UpdatePlanUpsertLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z134.object({
60737
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema = z134.object({
59529
60738
  currency: string5(),
59530
60739
  amount: number2()
59531
60740
  });
59532
60741
  var UpdatePlanVariantDetailsUpsertLicensePriceTo$inboundSchema = smartUnion([number2(), string5()]);
59533
- var UpdatePlanUpsertLicenseTierAdditionalCurrencyResponse$inboundSchema = z134.pipe(
60742
+ var UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema = z134.pipe(
59534
60743
  z134.object({
59535
60744
  currency: string5(),
59536
60745
  amount: optional3(number2()),
@@ -59548,7 +60757,7 @@ var UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema = z134.pipe(
59548
60757
  amount: number2(),
59549
60758
  flat_amount: optional3(number2()),
59550
60759
  additional_currencies: optional3(z134.array(z134.lazy(
59551
- () => UpdatePlanUpsertLicenseTierAdditionalCurrencyResponse$inboundSchema
60760
+ () => UpdatePlanVariantDetailsUpsertLicenseTierAdditionalCurrency$inboundSchema
59552
60761
  )))
59553
60762
  }),
59554
60763
  z134.transform((v) => {
@@ -59562,14 +60771,14 @@ var UpdatePlanVariantDetailsUpsertLicenseTierBehavior$inboundSchema = inboundSch
59562
60771
  var UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema = inboundSchema(
59563
60772
  UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval
59564
60773
  );
59565
- var UpdatePlanUpsertLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(
59566
- UpdatePlanUpsertLicenseAddItemBillingMethodResponse
60774
+ var UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema = inboundSchema(
60775
+ UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod
59567
60776
  );
59568
60777
  var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z134.pipe(
59569
60778
  z134.object({
59570
60779
  amount: optional3(number2()),
59571
60780
  additional_currencies: optional3(z134.array(z134.lazy(
59572
- () => UpdatePlanUpsertLicenseAddItemAdditionalCurrencyResponse$inboundSchema
60781
+ () => UpdatePlanVariantDetailsUpsertLicenseAddItemAdditionalCurrency$inboundSchema
59573
60782
  ))),
59574
60783
  tiers: optional3(z134.array(z134.lazy(
59575
60784
  () => UpdatePlanVariantDetailsUpsertLicensePriceTier$inboundSchema
@@ -59580,7 +60789,7 @@ var UpdatePlanVariantDetailsUpsertLicensePrice$inboundSchema = z134.pipe(
59580
60789
  interval: UpdatePlanVariantDetailsUpsertLicenseAddItemPriceInterval$inboundSchema,
59581
60790
  interval_count: z134._default(number2(), 1),
59582
60791
  billing_units: z134._default(number2(), 1),
59583
- billing_method: UpdatePlanUpsertLicenseAddItemBillingMethodResponse$inboundSchema,
60792
+ billing_method: UpdatePlanVariantDetailsUpsertLicenseAddItemBillingMethod$inboundSchema,
59584
60793
  max_purchase: z134.optional(z134.nullable(number2()))
59585
60794
  }),
59586
60795
  z134.transform((v) => {
@@ -59608,12 +60817,14 @@ var UpdatePlanUpsertLicenseProrationResponse$inboundSchema = z134.pipe(
59608
60817
  });
59609
60818
  })
59610
60819
  );
59611
- var UpdatePlanUpsertLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanUpsertLicenseExpiryDurationTypeResponse);
60820
+ var UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema = inboundSchema(
60821
+ UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType
60822
+ );
59612
60823
  var UpdatePlanVariantDetailsUpsertLicenseRollover$inboundSchema = z134.pipe(
59613
60824
  z134.object({
59614
60825
  max: optional3(number2()),
59615
60826
  max_percentage: optional3(number2()),
59616
- expiry_duration_type: UpdatePlanUpsertLicenseExpiryDurationTypeResponse$inboundSchema,
60827
+ expiry_duration_type: UpdatePlanVariantDetailsUpsertLicenseExpiryDurationType$inboundSchema,
59617
60828
  expiry_duration_length: optional3(number2())
59618
60829
  }),
59619
60830
  z134.transform((v) => {
@@ -59653,7 +60864,7 @@ var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum1 = {
59653
60864
  var UpdatePlanToVariantDetailsUpsertLicenseEnum = {
59654
60865
  Inf: "inf"
59655
60866
  };
59656
- var UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse = {
60867
+ var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod = {
59657
60868
  Prepaid: "prepaid",
59658
60869
  UsageBased: "usage_based"
59659
60870
  };
@@ -59676,6 +60887,96 @@ var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum1 = {
59676
60887
  SemiAnnual: "semi_annual",
59677
60888
  Year: "year"
59678
60889
  };
60890
+ var UpdatePlanPriceLicenseIntervalResponse = {
60891
+ OneOff: "one_off",
60892
+ Week: "week",
60893
+ Month: "month",
60894
+ Quarter: "quarter",
60895
+ SemiAnnual: "semi_annual",
60896
+ Year: "year"
60897
+ };
60898
+ var UpdatePlanLicenseResetIntervalResponse = {
60899
+ OneOff: "one_off",
60900
+ Minute: "minute",
60901
+ Hour: "hour",
60902
+ Day: "day",
60903
+ Week: "week",
60904
+ Month: "month",
60905
+ Quarter: "quarter",
60906
+ SemiAnnual: "semi_annual",
60907
+ Year: "year"
60908
+ };
60909
+ var UpdatePlanLicenseTierBehaviorResponse = {
60910
+ Graduated: "graduated",
60911
+ Volume: "volume"
60912
+ };
60913
+ var UpdatePlanLicenseAddItemPriceIntervalResponse = {
60914
+ OneOff: "one_off",
60915
+ Week: "week",
60916
+ Month: "month",
60917
+ Quarter: "quarter",
60918
+ SemiAnnual: "semi_annual",
60919
+ Year: "year"
60920
+ };
60921
+ var UpdatePlanLicenseAddItemBillingMethodResponse = {
60922
+ Prepaid: "prepaid",
60923
+ UsageBased: "usage_based"
60924
+ };
60925
+ var UpdatePlanLicenseOnIncreaseResponse = {
60926
+ BillImmediately: "bill_immediately",
60927
+ ProrateImmediately: "prorate_immediately",
60928
+ ProrateNextCycle: "prorate_next_cycle",
60929
+ BillNextCycle: "bill_next_cycle"
60930
+ };
60931
+ var UpdatePlanLicenseOnDecreaseResponse = {
60932
+ Prorate: "prorate",
60933
+ ProrateImmediately: "prorate_immediately",
60934
+ ProrateNextCycle: "prorate_next_cycle",
60935
+ None: "none",
60936
+ NoProrations: "no_prorations"
60937
+ };
60938
+ var UpdatePlanLicenseExpiryDurationTypeResponse = {
60939
+ Month: "month",
60940
+ Forever: "forever"
60941
+ };
60942
+ var UpdatePlanLicenseDurationResponse = {
60943
+ Day: "day",
60944
+ Week: "week",
60945
+ Month: "month",
60946
+ Year: "year"
60947
+ };
60948
+ var UpdatePlanDimensionsToLicenseResponseEnum2 = {
60949
+ Inf: "inf"
60950
+ };
60951
+ var UpdatePlanDimensionsToLicenseResponseEnum1 = {
60952
+ Inf: "inf"
60953
+ };
60954
+ var UpdatePlanToLicenseResponseEnum = {
60955
+ Inf: "inf"
60956
+ };
60957
+ var UpdatePlanLicenseRemoveItemBillingMethodResponse = {
60958
+ Prepaid: "prepaid",
60959
+ UsageBased: "usage_based"
60960
+ };
60961
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum2 = {
60962
+ OneOff: "one_off",
60963
+ Minute: "minute",
60964
+ Hour: "hour",
60965
+ Day: "day",
60966
+ Week: "week",
60967
+ Month: "month",
60968
+ Quarter: "quarter",
60969
+ SemiAnnual: "semi_annual",
60970
+ Year: "year"
60971
+ };
60972
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1 = {
60973
+ OneOff: "one_off",
60974
+ Week: "week",
60975
+ Month: "month",
60976
+ Quarter: "quarter",
60977
+ SemiAnnual: "semi_annual",
60978
+ Year: "year"
60979
+ };
59679
60980
  var UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2$inboundSchema = z135.enum(UpdatePlanDimensionsToVariantDetailsUpsertLicenseEnum2);
59680
60981
  var UpdatePlanDimensionsVariantDetailsUpsertLicenseToUnion2$inboundSchema = smartUnion([
59681
60982
  number2(),
@@ -59888,7 +61189,7 @@ var UpdatePlanVariantDetailsUpsertLicenseModelMarkups$inboundSchema = z135.pipe(
59888
61189
  });
59889
61190
  })
59890
61191
  );
59891
- var UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema = z135.pipe(
61192
+ var UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema = z135.pipe(
59892
61193
  z135.object({
59893
61194
  default_markup: optional3(number2()),
59894
61195
  provider_markups: z135.optional(z135.nullable(z135.record(
@@ -59912,7 +61213,7 @@ var UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema = z135.pipe(
59912
61213
  });
59913
61214
  })
59914
61215
  );
59915
- var UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema = z135.pipe(
61216
+ var UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema = z135.pipe(
59916
61217
  z135.object({
59917
61218
  credit_schema: optional3(z135.array(smartUnion([
59918
61219
  z135.lazy(
@@ -59923,7 +61224,7 @@ var UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema = z135.pipe(
59923
61224
  )
59924
61225
  ]))),
59925
61226
  markups: optional3(z135.lazy(
59926
- () => UpdatePlanUpsertLicenseMarkupsResponse$inboundSchema
61227
+ () => UpdatePlanVariantDetailsUpsertLicenseMarkups$inboundSchema
59927
61228
  ))
59928
61229
  }),
59929
61230
  z135.transform((v) => {
@@ -59936,7 +61237,7 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z135.pipe(
59936
61237
  z135.object({
59937
61238
  threshold_billing: z135.optional(
59938
61239
  z135.nullable(
59939
- UpdatePlanUpsertLicenseThresholdBillingResponse$inboundSchema
61240
+ UpdatePlanVariantDetailsUpsertLicenseThresholdBilling$inboundSchema
59940
61241
  )
59941
61242
  ),
59942
61243
  feature_id: string5(),
@@ -59958,11 +61259,9 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z135.pipe(
59958
61259
  expiry: optional3(
59959
61260
  UpdatePlanVariantDetailsUpsertLicenseExpiry$inboundSchema
59960
61261
  ),
59961
- feature_override: optional3(
59962
- z135.lazy(
59963
- () => UpdatePlanUpsertLicenseFeatureOverrideResponse$inboundSchema
59964
- )
59965
- )
61262
+ feature_override: optional3(z135.lazy(
61263
+ () => UpdatePlanVariantDetailsUpsertLicenseFeatureOverride$inboundSchema
61264
+ ))
59966
61265
  }),
59967
61266
  z135.transform((v) => {
59968
61267
  return remap(v, {
@@ -59972,8 +61271,8 @@ var UpdatePlanUpsertLicensePlanItemResponse$inboundSchema = z135.pipe(
59972
61271
  });
59973
61272
  })
59974
61273
  );
59975
- var UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(
59976
- UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse
61274
+ var UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema = inboundSchema(
61275
+ UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod
59977
61276
  );
59978
61277
  var UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2$inboundSchema = inboundSchema(
59979
61278
  UpdatePlanIntervalVariantDetailsUpsertLicenseRemoveItemEnum2
@@ -59989,7 +61288,7 @@ var UpdatePlanUpsertLicensePlanItemFilterResponse$inboundSchema = z135.pipe(
59989
61288
  z135.object({
59990
61289
  feature_id: optional3(string5()),
59991
61290
  billing_method: optional3(
59992
- UpdatePlanUpsertLicenseRemoveItemBillingMethodResponse$inboundSchema
61291
+ UpdatePlanVariantDetailsUpsertLicenseRemoveItemBillingMethod$inboundSchema
59993
61292
  ),
59994
61293
  interval: optional3(
59995
61294
  smartUnion([
@@ -60056,14 +61355,16 @@ var UpdatePlanRemoveLicenseResponse$inboundSchema = z135.pipe(
60056
61355
  });
60057
61356
  })
60058
61357
  );
60059
- var UpdatePlanCustomizeResponse$inboundSchema = z135.pipe(
61358
+ var UpdatePlanVariantDetailsCustomize$inboundSchema = z135.pipe(
60060
61359
  z135.object({
60061
- price: z135.optional(z135.nullable(UpdatePlanBasePriceResponse$inboundSchema)),
61360
+ price: z135.optional(
61361
+ z135.nullable(UpdatePlanVariantDetailsBasePrice$inboundSchema)
61362
+ ),
60062
61363
  add_items: optional3(
60063
- z135.array(UpdatePlanPlanItemResponse$inboundSchema)
61364
+ z135.array(UpdatePlanVariantDetailsPlanItem$inboundSchema)
60064
61365
  ),
60065
61366
  remove_items: optional3(
60066
- z135.array(UpdatePlanPlanItemFilterResponse$inboundSchema)
61367
+ z135.array(UpdatePlanVariantDetailsPlanItemFilter$inboundSchema)
60067
61368
  ),
60068
61369
  free_trial: z135.optional(
60069
61370
  z135.nullable(UpdatePlanFreeTrialParamsResponse$inboundSchema)
@@ -60093,7 +61394,7 @@ var UpdatePlanVariantDetails$inboundSchema = z135.pipe(
60093
61394
  z135.object({
60094
61395
  base_plan_id: string5(),
60095
61396
  customize: optional3(
60096
- z135.lazy(() => UpdatePlanCustomizeResponse$inboundSchema)
61397
+ z135.lazy(() => UpdatePlanVariantDetailsCustomize$inboundSchema)
60097
61398
  )
60098
61399
  }),
60099
61400
  z135.transform((v) => {
@@ -60102,6 +61403,493 @@ var UpdatePlanVariantDetails$inboundSchema = z135.pipe(
60102
61403
  });
60103
61404
  })
60104
61405
  );
61406
+ var UpdatePlanPriceLicenseIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceLicenseIntervalResponse);
61407
+ var UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema = z135.object({
61408
+ currency: string5(),
61409
+ amount: number2()
61410
+ });
61411
+ var UpdatePlanLicenseBasePriceResponse$inboundSchema = z135.pipe(
61412
+ z135.object({
61413
+ amount: number2(),
61414
+ interval: UpdatePlanPriceLicenseIntervalResponse$inboundSchema,
61415
+ interval_count: z135._default(number2(), 1),
61416
+ additional_currencies: optional3(z135.array(z135.lazy(
61417
+ () => UpdatePlanLicenseAdditionalCurrencyResponse$inboundSchema
61418
+ )))
61419
+ }),
61420
+ z135.transform((v) => {
61421
+ return remap(v, {
61422
+ "interval_count": "intervalCount",
61423
+ "additional_currencies": "additionalCurrencies"
61424
+ });
61425
+ })
61426
+ );
61427
+ var UpdatePlanLicenseThresholdBillingResponse$inboundSchema = z135.object({
61428
+ threshold: number2()
61429
+ });
61430
+ var UpdatePlanLicenseResetIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseResetIntervalResponse);
61431
+ var UpdatePlanLicenseResetResponse$inboundSchema = z135.pipe(
61432
+ z135.object({
61433
+ interval: UpdatePlanLicenseResetIntervalResponse$inboundSchema,
61434
+ interval_count: z135._default(number2(), 1)
61435
+ }),
61436
+ z135.transform((v) => {
61437
+ return remap(v, {
61438
+ "interval_count": "intervalCount"
61439
+ });
61440
+ })
61441
+ );
61442
+ var UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema = z135.object({
61443
+ currency: string5(),
61444
+ amount: number2()
61445
+ });
61446
+ var UpdatePlanLicensePriceToResponse$inboundSchema = smartUnion([number2(), string5()]);
61447
+ var UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema = z135.pipe(
61448
+ z135.object({
61449
+ currency: string5(),
61450
+ amount: optional3(number2()),
61451
+ flat_amount: optional3(number2())
61452
+ }),
61453
+ z135.transform((v) => {
61454
+ return remap(v, {
61455
+ "flat_amount": "flatAmount"
61456
+ });
61457
+ })
61458
+ );
61459
+ var UpdatePlanLicensePriceTierResponse$inboundSchema = z135.pipe(
61460
+ z135.object({
61461
+ to: smartUnion([number2(), string5()]),
61462
+ amount: number2(),
61463
+ flat_amount: optional3(number2()),
61464
+ additional_currencies: optional3(z135.array(z135.lazy(
61465
+ () => UpdatePlanLicenseTierAdditionalCurrencyResponse$inboundSchema
61466
+ )))
61467
+ }),
61468
+ z135.transform((v) => {
61469
+ return remap(v, {
61470
+ "flat_amount": "flatAmount",
61471
+ "additional_currencies": "additionalCurrencies"
61472
+ });
61473
+ })
61474
+ );
61475
+ var UpdatePlanLicenseTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanLicenseTierBehaviorResponse);
61476
+ var UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemPriceIntervalResponse);
61477
+ var UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseAddItemBillingMethodResponse);
61478
+ var UpdatePlanLicensePriceResponse$inboundSchema = z135.pipe(
61479
+ z135.object({
61480
+ amount: optional3(number2()),
61481
+ additional_currencies: optional3(z135.array(z135.lazy(
61482
+ () => UpdatePlanLicenseAddItemAdditionalCurrencyResponse$inboundSchema
61483
+ ))),
61484
+ tiers: optional3(z135.array(z135.lazy(
61485
+ () => UpdatePlanLicensePriceTierResponse$inboundSchema
61486
+ ))),
61487
+ tier_behavior: optional3(
61488
+ UpdatePlanLicenseTierBehaviorResponse$inboundSchema
61489
+ ),
61490
+ interval: UpdatePlanLicenseAddItemPriceIntervalResponse$inboundSchema,
61491
+ interval_count: z135._default(number2(), 1),
61492
+ billing_units: z135._default(number2(), 1),
61493
+ billing_method: UpdatePlanLicenseAddItemBillingMethodResponse$inboundSchema,
61494
+ max_purchase: z135.optional(z135.nullable(number2()))
61495
+ }),
61496
+ z135.transform((v) => {
61497
+ return remap(v, {
61498
+ "additional_currencies": "additionalCurrencies",
61499
+ "tier_behavior": "tierBehavior",
61500
+ "interval_count": "intervalCount",
61501
+ "billing_units": "billingUnits",
61502
+ "billing_method": "billingMethod",
61503
+ "max_purchase": "maxPurchase"
61504
+ });
61505
+ })
61506
+ );
61507
+ var UpdatePlanLicenseOnIncreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnIncreaseResponse);
61508
+ var UpdatePlanLicenseOnDecreaseResponse$inboundSchema = inboundSchema(UpdatePlanLicenseOnDecreaseResponse);
61509
+ var UpdatePlanLicenseProrationResponse$inboundSchema = z135.pipe(
61510
+ z135.object({
61511
+ on_increase: UpdatePlanLicenseOnIncreaseResponse$inboundSchema,
61512
+ on_decrease: UpdatePlanLicenseOnDecreaseResponse$inboundSchema
61513
+ }),
61514
+ z135.transform((v) => {
61515
+ return remap(v, {
61516
+ "on_increase": "onIncrease",
61517
+ "on_decrease": "onDecrease"
61518
+ });
61519
+ })
61520
+ );
61521
+ var UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanLicenseExpiryDurationTypeResponse);
61522
+ var UpdatePlanLicenseRolloverResponse$inboundSchema = z135.pipe(
61523
+ z135.object({
61524
+ max: optional3(number2()),
61525
+ max_percentage: optional3(number2()),
61526
+ expiry_duration_type: UpdatePlanLicenseExpiryDurationTypeResponse$inboundSchema,
61527
+ expiry_duration_length: optional3(number2())
61528
+ }),
61529
+ z135.transform((v) => {
61530
+ return remap(v, {
61531
+ "max_percentage": "maxPercentage",
61532
+ "expiry_duration_type": "expiryDurationType",
61533
+ "expiry_duration_length": "expiryDurationLength"
61534
+ });
61535
+ })
61536
+ );
61537
+ var UpdatePlanLicenseDurationResponse$inboundSchema = inboundSchema(UpdatePlanLicenseDurationResponse);
61538
+ var UpdatePlanLicenseExpiryResponse$inboundSchema = z135.object({
61539
+ duration: UpdatePlanLicenseDurationResponse$inboundSchema,
61540
+ length: number2()
61541
+ });
61542
+ var UpdatePlanDimensionsLicenseResponse4$inboundSchema = z135.pipe(
61543
+ z135.object({
61544
+ match: z135.record(z135.string(), string5()),
61545
+ priority: optional3(number2()),
61546
+ credit_cost: number2()
61547
+ }),
61548
+ z135.transform((v) => {
61549
+ return remap(v, {
61550
+ "credit_cost": "creditCost"
61551
+ });
61552
+ })
61553
+ );
61554
+ var UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema = z135.enum(
61555
+ UpdatePlanDimensionsToLicenseResponseEnum2
61556
+ );
61557
+ var UpdatePlanDimensionsLicenseToResponseUnion2$inboundSchema = smartUnion([
61558
+ number2(),
61559
+ UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
61560
+ ]);
61561
+ var UpdatePlanDimensionsLicenseTierResponse2$inboundSchema = z135.pipe(
61562
+ z135.object({
61563
+ to: smartUnion([
61564
+ number2(),
61565
+ UpdatePlanDimensionsToLicenseResponseEnum2$inboundSchema
61566
+ ]),
61567
+ credit_cost: number2()
61568
+ }),
61569
+ z135.transform((v) => {
61570
+ return remap(v, {
61571
+ "credit_cost": "creditCost"
61572
+ });
61573
+ })
61574
+ );
61575
+ var UpdatePlanDimensionsLicenseResponse3$inboundSchema = z135.pipe(
61576
+ z135.object({
61577
+ match: z135.record(z135.string(), string5()),
61578
+ priority: optional3(number2()),
61579
+ tier_behavior: literal3("graduated"),
61580
+ tiers: z135.array(
61581
+ z135.lazy(() => UpdatePlanDimensionsLicenseTierResponse2$inboundSchema)
61582
+ )
61583
+ }),
61584
+ z135.transform((v) => {
61585
+ return remap(v, {
61586
+ "tier_behavior": "tierBehavior"
61587
+ });
61588
+ })
61589
+ );
61590
+ var UpdatePlanLicenseDimensionsResponseUnion2$inboundSchema = smartUnion([
61591
+ z135.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
61592
+ z135.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
61593
+ ]);
61594
+ var UpdatePlanLicenseMultipliersResponse2$inboundSchema = z135.object({
61595
+ match: z135.record(z135.string(), string5()),
61596
+ factor: optional3(number2()),
61597
+ add: optional3(number2())
61598
+ });
61599
+ var UpdatePlanCreditSchemaLicenseResponse2$inboundSchema = z135.pipe(
61600
+ z135.object({
61601
+ metered_feature_id: string5(),
61602
+ billing_units: optional3(number2()),
61603
+ dimensions: optional3(z135.record(
61604
+ z135.string(),
61605
+ smartUnion([
61606
+ z135.lazy(() => UpdatePlanDimensionsLicenseResponse3$inboundSchema),
61607
+ z135.lazy(() => UpdatePlanDimensionsLicenseResponse4$inboundSchema)
61608
+ ])
61609
+ )),
61610
+ multipliers: optional3(z135.record(
61611
+ z135.string(),
61612
+ z135.lazy(() => UpdatePlanLicenseMultipliersResponse2$inboundSchema)
61613
+ )),
61614
+ credit_cost: number2()
61615
+ }),
61616
+ z135.transform((v) => {
61617
+ return remap(v, {
61618
+ "metered_feature_id": "meteredFeatureId",
61619
+ "billing_units": "billingUnits",
61620
+ "credit_cost": "creditCost"
61621
+ });
61622
+ })
61623
+ );
61624
+ var UpdatePlanDimensionsLicenseResponse2$inboundSchema = z135.pipe(
61625
+ z135.object({
61626
+ match: z135.record(z135.string(), string5()),
61627
+ priority: optional3(number2()),
61628
+ credit_cost: number2()
61629
+ }),
61630
+ z135.transform((v) => {
61631
+ return remap(v, {
61632
+ "credit_cost": "creditCost"
61633
+ });
61634
+ })
61635
+ );
61636
+ var UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema = z135.enum(
61637
+ UpdatePlanDimensionsToLicenseResponseEnum1
61638
+ );
61639
+ var UpdatePlanDimensionsLicenseToResponseUnion1$inboundSchema = smartUnion([
61640
+ number2(),
61641
+ UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
61642
+ ]);
61643
+ var UpdatePlanDimensionsLicenseTierResponse1$inboundSchema = z135.pipe(
61644
+ z135.object({
61645
+ to: smartUnion([
61646
+ number2(),
61647
+ UpdatePlanDimensionsToLicenseResponseEnum1$inboundSchema
61648
+ ]),
61649
+ credit_cost: number2()
61650
+ }),
61651
+ z135.transform((v) => {
61652
+ return remap(v, {
61653
+ "credit_cost": "creditCost"
61654
+ });
61655
+ })
61656
+ );
61657
+ var UpdatePlanDimensionsLicenseResponse1$inboundSchema = z135.pipe(
61658
+ z135.object({
61659
+ match: z135.record(z135.string(), string5()),
61660
+ priority: optional3(number2()),
61661
+ tier_behavior: literal3("graduated"),
61662
+ tiers: z135.array(
61663
+ z135.lazy(() => UpdatePlanDimensionsLicenseTierResponse1$inboundSchema)
61664
+ )
61665
+ }),
61666
+ z135.transform((v) => {
61667
+ return remap(v, {
61668
+ "tier_behavior": "tierBehavior"
61669
+ });
61670
+ })
61671
+ );
61672
+ var UpdatePlanLicenseDimensionsResponseUnion1$inboundSchema = smartUnion([
61673
+ z135.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
61674
+ z135.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
61675
+ ]);
61676
+ var UpdatePlanLicenseMultipliersResponse1$inboundSchema = z135.object({
61677
+ match: z135.record(z135.string(), string5()),
61678
+ factor: optional3(number2()),
61679
+ add: optional3(number2())
61680
+ });
61681
+ var UpdatePlanToLicenseResponseEnum$inboundSchema = z135.enum(UpdatePlanToLicenseResponseEnum);
61682
+ var UpdatePlanLicenseFeatureOverrideToResponseUnion$inboundSchema = smartUnion([number2(), UpdatePlanToLicenseResponseEnum$inboundSchema]);
61683
+ var UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema = z135.pipe(
61684
+ z135.object({
61685
+ to: smartUnion([
61686
+ number2(),
61687
+ UpdatePlanToLicenseResponseEnum$inboundSchema
61688
+ ]),
61689
+ credit_cost: number2()
61690
+ }),
61691
+ z135.transform((v) => {
61692
+ return remap(v, {
61693
+ "credit_cost": "creditCost"
61694
+ });
61695
+ })
61696
+ );
61697
+ var UpdatePlanCreditSchemaLicenseResponse1$inboundSchema = z135.pipe(
61698
+ z135.object({
61699
+ metered_feature_id: string5(),
61700
+ billing_units: optional3(number2()),
61701
+ dimensions: optional3(z135.record(
61702
+ z135.string(),
61703
+ smartUnion([
61704
+ z135.lazy(() => UpdatePlanDimensionsLicenseResponse1$inboundSchema),
61705
+ z135.lazy(() => UpdatePlanDimensionsLicenseResponse2$inboundSchema)
61706
+ ])
61707
+ )),
61708
+ multipliers: optional3(z135.record(
61709
+ z135.string(),
61710
+ z135.lazy(() => UpdatePlanLicenseMultipliersResponse1$inboundSchema)
61711
+ )),
61712
+ tier_behavior: literal3("graduated"),
61713
+ tiers: z135.array(z135.lazy(
61714
+ () => UpdatePlanLicenseFeatureOverrideTierResponse$inboundSchema
61715
+ ))
61716
+ }),
61717
+ z135.transform((v) => {
61718
+ return remap(v, {
61719
+ "metered_feature_id": "meteredFeatureId",
61720
+ "billing_units": "billingUnits",
61721
+ "tier_behavior": "tierBehavior"
61722
+ });
61723
+ })
61724
+ );
61725
+ var UpdatePlanLicenseCreditSchemaResponseUnion$inboundSchema = smartUnion([
61726
+ z135.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
61727
+ z135.lazy(() => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema)
61728
+ ]);
61729
+ var UpdatePlanLicenseProviderMarkupsResponse$inboundSchema = z135.object({
61730
+ markup: number2()
61731
+ });
61732
+ var UpdatePlanLicenseModelMarkupsResponse$inboundSchema = z135.pipe(
61733
+ z135.object({
61734
+ markup: optional3(number2()),
61735
+ input_cost: optional3(number2()),
61736
+ output_cost: optional3(number2())
61737
+ }),
61738
+ z135.transform((v) => {
61739
+ return remap(v, {
61740
+ "input_cost": "inputCost",
61741
+ "output_cost": "outputCost"
61742
+ });
61743
+ })
61744
+ );
61745
+ var UpdatePlanLicenseMarkupsResponse$inboundSchema = z135.pipe(
61746
+ z135.object({
61747
+ default_markup: optional3(number2()),
61748
+ provider_markups: z135.optional(z135.nullable(z135.record(
61749
+ z135.string(),
61750
+ z135.lazy(() => UpdatePlanLicenseProviderMarkupsResponse$inboundSchema)
61751
+ ))),
61752
+ model_markups: z135.optional(z135.nullable(z135.record(
61753
+ z135.string(),
61754
+ z135.lazy(() => UpdatePlanLicenseModelMarkupsResponse$inboundSchema)
61755
+ )))
61756
+ }),
61757
+ z135.transform((v) => {
61758
+ return remap(v, {
61759
+ "default_markup": "defaultMarkup",
61760
+ "provider_markups": "providerMarkups",
61761
+ "model_markups": "modelMarkups"
61762
+ });
61763
+ })
61764
+ );
61765
+ var UpdatePlanLicenseFeatureOverrideResponse$inboundSchema = z135.pipe(
61766
+ z135.object({
61767
+ credit_schema: optional3(z135.array(smartUnion([
61768
+ z135.lazy(() => UpdatePlanCreditSchemaLicenseResponse1$inboundSchema),
61769
+ z135.lazy(
61770
+ () => UpdatePlanCreditSchemaLicenseResponse2$inboundSchema
61771
+ )
61772
+ ]))),
61773
+ markups: optional3(z135.lazy(
61774
+ () => UpdatePlanLicenseMarkupsResponse$inboundSchema
61775
+ ))
61776
+ }),
61777
+ z135.transform((v) => {
61778
+ return remap(v, {
61779
+ "credit_schema": "creditSchema"
61780
+ });
61781
+ })
61782
+ );
61783
+ var UpdatePlanLicensePlanItemResponse$inboundSchema = z135.pipe(
61784
+ z135.object({
61785
+ threshold_billing: z135.optional(z135.nullable(z135.lazy(
61786
+ () => UpdatePlanLicenseThresholdBillingResponse$inboundSchema
61787
+ ))),
61788
+ feature_id: string5(),
61789
+ included: optional3(number2()),
61790
+ unlimited: optional3(boolean2()),
61791
+ pooled: z135._default(boolean2(), false),
61792
+ reset: optional3(z135.lazy(
61793
+ () => UpdatePlanLicenseResetResponse$inboundSchema
61794
+ )),
61795
+ price: optional3(z135.lazy(
61796
+ () => UpdatePlanLicensePriceResponse$inboundSchema
61797
+ )),
61798
+ proration: optional3(z135.lazy(
61799
+ () => UpdatePlanLicenseProrationResponse$inboundSchema
61800
+ )),
61801
+ rollover: optional3(z135.lazy(
61802
+ () => UpdatePlanLicenseRolloverResponse$inboundSchema
61803
+ )),
61804
+ expiry: optional3(z135.lazy(
61805
+ () => UpdatePlanLicenseExpiryResponse$inboundSchema
61806
+ )),
61807
+ feature_override: optional3(z135.lazy(
61808
+ () => UpdatePlanLicenseFeatureOverrideResponse$inboundSchema
61809
+ ))
61810
+ }),
61811
+ z135.transform((v) => {
61812
+ return remap(v, {
61813
+ "threshold_billing": "thresholdBilling",
61814
+ "feature_id": "featureId",
61815
+ "feature_override": "featureOverride"
61816
+ });
61817
+ })
61818
+ );
61819
+ var UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanLicenseRemoveItemBillingMethodResponse);
61820
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum2);
61821
+ var UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema = inboundSchema(UpdatePlanIntervalLicenseRemoveItemResponseEnum1);
61822
+ var UpdatePlanLicenseIntervalResponseUnion$inboundSchema = smartUnion([
61823
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
61824
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
61825
+ ]);
61826
+ var UpdatePlanLicensePlanItemFilterResponse$inboundSchema = z135.pipe(
61827
+ z135.object({
61828
+ feature_id: optional3(string5()),
61829
+ billing_method: optional3(
61830
+ UpdatePlanLicenseRemoveItemBillingMethodResponse$inboundSchema
61831
+ ),
61832
+ interval: optional3(
61833
+ smartUnion([
61834
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum1$inboundSchema,
61835
+ UpdatePlanIntervalLicenseRemoveItemResponseEnum2$inboundSchema
61836
+ ])
61837
+ ),
61838
+ interval_count: optional3(number2()),
61839
+ included: optional3(number2())
61840
+ }),
61841
+ z135.transform((v) => {
61842
+ return remap(v, {
61843
+ "feature_id": "featureId",
61844
+ "billing_method": "billingMethod",
61845
+ "interval_count": "intervalCount"
61846
+ });
61847
+ })
61848
+ );
61849
+ var UpdatePlanLicenseCustomizeResponse$inboundSchema = z135.pipe(
61850
+ z135.object({
61851
+ price: z135.optional(
61852
+ z135.nullable(
61853
+ z135.lazy(() => UpdatePlanLicenseBasePriceResponse$inboundSchema)
61854
+ )
61855
+ ),
61856
+ add_items: optional3(
61857
+ z135.array(z135.lazy(() => UpdatePlanLicensePlanItemResponse$inboundSchema))
61858
+ ),
61859
+ remove_items: optional3(
61860
+ z135.array(
61861
+ z135.lazy(() => UpdatePlanLicensePlanItemFilterResponse$inboundSchema)
61862
+ )
61863
+ )
61864
+ }),
61865
+ z135.transform((v) => {
61866
+ return remap(v, {
61867
+ "add_items": "addItems",
61868
+ "remove_items": "removeItems"
61869
+ });
61870
+ })
61871
+ );
61872
+ var UpdatePlanLicenseResponse$inboundSchema = z135.pipe(
61873
+ z135.object({
61874
+ license_plan_id: string5(),
61875
+ version: number2(),
61876
+ version_slug: optional3(string5()),
61877
+ included: number2(),
61878
+ prepaid_only: boolean2(),
61879
+ customize: optional3(
61880
+ z135.lazy(() => UpdatePlanLicenseCustomizeResponse$inboundSchema)
61881
+ ),
61882
+ metadata: optional3(z135.record(z135.string(), z135.any())),
61883
+ plan: optional3(Plan$inboundSchema)
61884
+ }),
61885
+ z135.transform((v) => {
61886
+ return remap(v, {
61887
+ "license_plan_id": "licensePlanId",
61888
+ "version_slug": "versionSlug",
61889
+ "prepaid_only": "prepaidOnly"
61890
+ });
61891
+ })
61892
+ );
60105
61893
  var UpdatePlanResponse$inboundSchema = z135.pipe(
60106
61894
  z135.object({
60107
61895
  id: string5(),
@@ -60131,6 +61919,9 @@ var UpdatePlanResponse$inboundSchema = z135.pipe(
60131
61919
  base_variant_id: nullable(string5()),
60132
61920
  variant_details: optional3(
60133
61921
  z135.lazy(() => UpdatePlanVariantDetails$inboundSchema)
61922
+ ),
61923
+ licenses: optional3(
61924
+ z135.array(z135.lazy(() => UpdatePlanLicenseResponse$inboundSchema))
60134
61925
  )
60135
61926
  }),
60136
61927
  z135.transform((v) => {
@@ -61285,7 +63076,10 @@ var APIPromise = class {
61285
63076
  [Symbol.toStringTag] = "APIPromise";
61286
63077
  constructor(p) {
61287
63078
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
61288
- this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
63079
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
63080
+ }
63081
+ #getUnwrapped() {
63082
+ return this.#unwrapped ??= this.#promise.then(([value]) => value);
61289
63083
  }
61290
63084
  then(onfulfilled, onrejected) {
61291
63085
  return this.#promise.then(
@@ -61294,10 +63088,10 @@ var APIPromise = class {
61294
63088
  );
61295
63089
  }
61296
63090
  catch(onrejected) {
61297
- return this.#unwrapped.catch(onrejected);
63091
+ return this.#getUnwrapped().catch(onrejected);
61298
63092
  }
61299
63093
  finally(onfinally) {
61300
- return this.#unwrapped.finally(onfinally);
63094
+ return this.#getUnwrapped().finally(onfinally);
61301
63095
  }
61302
63096
  $inspect() {
61303
63097
  return this.#promise;