autumn-js 1.4.48 → 1.4.49

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 (119) hide show
  1. package/dist/backend/adapters/express.js +1659 -792
  2. package/dist/backend/adapters/express.mjs +9 -9
  3. package/dist/backend/adapters/fetch.js +1659 -792
  4. package/dist/backend/adapters/fetch.mjs +9 -9
  5. package/dist/backend/adapters/hono.js +1659 -792
  6. package/dist/backend/adapters/hono.mjs +9 -9
  7. package/dist/backend/adapters/index.js +1659 -792
  8. package/dist/backend/adapters/index.mjs +12 -12
  9. package/dist/backend/adapters/next.js +1659 -792
  10. package/dist/backend/adapters/next.mjs +9 -9
  11. package/dist/backend/{chunk-6LQFPGW7.mjs → chunk-4J2TOGWE.mjs} +220 -60
  12. package/dist/backend/{chunk-3BKOWATO.mjs → chunk-6X4JZECX.mjs} +1 -1
  13. package/dist/backend/{chunk-57HJE4EP.mjs → chunk-EUR3CZTF.mjs} +1 -1
  14. package/dist/backend/{chunk-JZB3BYQP.mjs → chunk-EVPPOVX5.mjs} +7 -7
  15. package/dist/backend/{chunk-MYD4ZJQG.mjs → chunk-L4HKBZCC.mjs} +1439 -732
  16. package/dist/backend/{chunk-YFKANU3R.mjs → chunk-N2SCUJPL.mjs} +5 -5
  17. package/dist/backend/{chunk-XJDT6H4H.mjs → chunk-QPDWSMZ5.mjs} +1 -1
  18. package/dist/backend/{chunk-SO54V4AE.mjs → chunk-XIBFK5EL.mjs} +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +1659 -792
  22. package/dist/backend/core/handlers/coreHandler.mjs +7 -7
  23. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  25. package/dist/backend/core/handlers/executeRoute.mjs +4 -4
  26. package/dist/backend/core/handlers/handleRouteByName.js +1659 -792
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
  28. package/dist/backend/core/handlers/index.d.mts +1 -1
  29. package/dist/backend/core/handlers/index.d.ts +1 -1
  30. package/dist/backend/core/handlers/index.js +1659 -792
  31. package/dist/backend/core/handlers/index.mjs +10 -10
  32. package/dist/backend/core/index.d.mts +1 -1
  33. package/dist/backend/core/index.d.ts +1 -1
  34. package/dist/backend/core/index.js +1659 -792
  35. package/dist/backend/core/index.mjs +10 -10
  36. package/dist/backend/core/routes/index.d.mts +1 -1
  37. package/dist/backend/core/routes/index.d.ts +1 -1
  38. package/dist/backend/core/routes/index.js +220 -60
  39. package/dist/backend/core/routes/index.mjs +2 -2
  40. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  41. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  44. package/dist/backend/core/routes/routeConfigs.js +220 -60
  45. package/dist/backend/core/routes/routeConfigs.mjs +2 -2
  46. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  47. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  48. package/dist/backend/core/types/index.d.mts +1 -1
  49. package/dist/backend/core/types/index.d.ts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  51. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  52. package/dist/backend/core/utils/index.mjs +3 -3
  53. package/dist/backend/index.d.mts +2 -2
  54. package/dist/backend/index.d.ts +2 -2
  55. package/dist/backend/index.js +1659 -792
  56. package/dist/backend/index.mjs +10 -10
  57. package/dist/backend/{routeTypes-X7n9tC0I.d.mts → routeTypes-C_10hxA-.d.mts} +642 -130
  58. package/dist/backend/{routeTypes-dgoLP-JI.d.ts → routeTypes-CqaUPWtn.d.ts} +642 -130
  59. package/dist/better-auth/{chunk-HXNWUYPW.mjs → chunk-44MLRR2L.mjs} +1440 -733
  60. package/dist/better-auth/{chunk-XMGJ2JOK.mjs → chunk-TX2WZUZT.mjs} +1 -1
  61. package/dist/better-auth/{chunk-7UPP5FN5.mjs → chunk-ZHYDDOAE.mjs} +220 -60
  62. package/dist/better-auth/index.js +1659 -792
  63. package/dist/better-auth/index.mjs +3 -3
  64. package/dist/better-auth/utils/createAutumnEndpoint.js +220 -60
  65. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  66. package/dist/better-auth/utils/handleBetterAuthRoute.js +1659 -792
  67. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  68. package/dist/better-auth/utils/index.js +1659 -792
  69. package/dist/better-auth/utils/index.mjs +3 -3
  70. package/dist/react/AutumnContext.d.mts +4 -4
  71. package/dist/react/AutumnContext.d.ts +4 -4
  72. package/dist/react/client/AutumnClient.d.mts +4 -4
  73. package/dist/react/client/AutumnClient.d.ts +4 -4
  74. package/dist/react/client/IAutumnClient.d.mts +4 -4
  75. package/dist/react/client/IAutumnClient.d.ts +4 -4
  76. package/dist/react/client/index.d.mts +4 -4
  77. package/dist/react/client/index.d.ts +4 -4
  78. package/dist/react/{customer-A48nR0Yu.d.mts → customer-BK_WEJ0J.d.mts} +1 -1
  79. package/dist/react/{customer-CwfTBZ-l.d.ts → customer-CGLAquo9.d.ts} +1 -1
  80. package/dist/react/hooks/index.d.mts +4 -4
  81. package/dist/react/hooks/index.d.ts +4 -4
  82. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  83. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  84. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  85. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  86. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  87. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  88. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  89. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  90. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  91. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  92. package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
  93. package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
  94. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  95. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  96. package/dist/react/hooks/useCustomer.d.mts +3 -3
  97. package/dist/react/hooks/useCustomer.d.ts +3 -3
  98. package/dist/react/hooks/useEntity.d.mts +2 -2
  99. package/dist/react/hooks/useEntity.d.ts +2 -2
  100. package/dist/react/hooks/useListEvents.d.mts +2 -2
  101. package/dist/react/hooks/useListEvents.d.ts +2 -2
  102. package/dist/react/hooks/useListPlans.d.mts +3 -3
  103. package/dist/react/hooks/useListPlans.d.ts +3 -3
  104. package/dist/react/hooks/useReferrals.d.mts +2 -2
  105. package/dist/react/hooks/useReferrals.d.ts +2 -2
  106. package/dist/react/index.d.mts +4 -4
  107. package/dist/react/index.d.ts +4 -4
  108. package/dist/react/{list-plans-response-BSFOou5d.d.ts → list-plans-response-BMWMbzkK.d.ts} +89 -20
  109. package/dist/react/{list-plans-response-CC-3erse.d.mts → list-plans-response-kbT4GwSh.d.mts} +89 -20
  110. package/dist/react/{params-CXQcikIK.d.mts → params-D_8sPp60.d.ts} +210 -40
  111. package/dist/react/{params-iVVzwH_e.d.ts → params-eTM9nRBb.d.mts} +210 -40
  112. package/dist/react/{plan-DoD803CO.d.mts → plan-Dji-zdws.d.mts} +37 -7
  113. package/dist/react/{plan-DoD803CO.d.ts → plan-Dji-zdws.d.ts} +37 -7
  114. package/dist/sdk/index.d.mts +2013 -1205
  115. package/dist/sdk/index.d.ts +2013 -1205
  116. package/dist/sdk/index.js +21222 -20050
  117. package/dist/sdk/index.mjs +21120 -20050
  118. package/package.json +2 -2
  119. package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
@@ -135,6 +135,10 @@ var aggregateEventsResponseSchema = import_v4.z.object({
135
135
 
136
136
  // src/generated/attachSchemas.ts
137
137
  var import_v42 = require("zod/v4");
138
+ var attachCreditSchemaUpsertLicense3Schema = import_v42.z.object({
139
+ meteredFeatureId: import_v42.z.string(),
140
+ excluded: import_v42.z.literal(true)
141
+ });
138
142
  var attachDimensionsUpsertLicenseMatch4Schema = import_v42.z.union([
139
143
  import_v42.z.string(),
140
144
  import_v42.z.number(),
@@ -263,10 +267,20 @@ var attachInvoiceSchema = import_v42.z.object({
263
267
  currency: import_v42.z.string(),
264
268
  hostedInvoiceUrl: import_v42.z.string().nullable()
265
269
  });
270
+ var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.object({
271
+ max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
272
+ max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
273
+ expiry_duration_type: import_v42.z.string(),
274
+ expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
275
+ });
266
276
  var attachUpsertLicenseExpiryOutboundSchema = import_v42.z.object({
267
277
  duration: import_v42.z.string(),
268
278
  length: import_v42.z.number()
269
279
  });
280
+ var attachCreditSchemaUpsertLicense3OutboundSchema = import_v42.z.object({
281
+ metered_feature_id: import_v42.z.string(),
282
+ excluded: import_v42.z.literal(true)
283
+ });
270
284
  var attachDimensionsUpsertLicenseMatch4OutboundSchema = import_v42.z.union([
271
285
  import_v42.z.string(),
272
286
  import_v42.z.number(),
@@ -402,7 +416,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = import_v42.z.object({
402
416
  });
403
417
  var attachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v42.z.union([
404
418
  attachCreditSchemaUpsertLicense1OutboundSchema,
405
- attachCreditSchemaUpsertLicense2OutboundSchema
419
+ attachCreditSchemaUpsertLicense2OutboundSchema,
420
+ attachCreditSchemaUpsertLicense3OutboundSchema
406
421
  ]);
407
422
  var attachUpsertLicenseProviderMarkupsOutboundSchema = import_v42.z.object({
408
423
  markup: import_v42.z.number()
@@ -428,7 +443,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = import_v42.z.object({
428
443
  import_v42.z.array(
429
444
  import_v42.z.union([
430
445
  attachCreditSchemaUpsertLicense1OutboundSchema,
431
- attachCreditSchemaUpsertLicense2OutboundSchema
446
+ attachCreditSchemaUpsertLicense2OutboundSchema,
447
+ attachCreditSchemaUpsertLicense3OutboundSchema
432
448
  ])
433
449
  ),
434
450
  import_v42.z.undefined()
@@ -574,7 +590,6 @@ var attachUpsertLicenseThresholdBillingSchema = import_v42.z.any();
574
590
  var attachUpsertLicenseResetSchema = import_v42.z.any();
575
591
  var attachUpsertLicensePriceSchema = import_v42.z.any();
576
592
  var attachUpsertLicenseProrationSchema = import_v42.z.any();
577
- var attachUpsertLicenseRolloverSchema = import_v42.z.any();
578
593
  var attachUpsertLicenseBasePriceSchema = import_v42.z.any();
579
594
  var attachBasePriceSchema = import_v42.z.any();
580
595
  var attachItemPlanItemSchema = import_v42.z.any();
@@ -589,7 +604,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = import_v42.z.any();
589
604
  var attachUpsertLicenseResetOutboundSchema = import_v42.z.any();
590
605
  var attachUpsertLicensePriceOutboundSchema = import_v42.z.any();
591
606
  var attachUpsertLicenseProrationOutboundSchema = import_v42.z.any();
592
- var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.any();
593
607
  var attachUpsertLicenseBasePriceOutboundSchema = import_v42.z.any();
594
608
  var attachBasePriceOutboundSchema = import_v42.z.any();
595
609
  var attachItemPlanItemOutboundSchema = import_v42.z.any();
@@ -599,6 +613,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = import_v42.z.any();
599
613
  var attachBillingControlsOutboundSchema = import_v42.z.any();
600
614
  var attachFeatureQuantityOutboundSchema = import_v42.z.any();
601
615
  var attachFreeTrialParamsOutboundSchema = import_v42.z.any();
616
+ var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
617
+ var attachUpsertLicenseRolloverSchema = import_v42.z.object({
618
+ max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
619
+ maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
620
+ expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
621
+ expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
622
+ });
602
623
  var attachUpsertLicenseDurationSchema = closedEnumSchema2;
603
624
  var attachUpsertLicenseExpirySchema = import_v42.z.object({
604
625
  duration: attachUpsertLicenseDurationSchema,
@@ -692,14 +713,16 @@ var attachCreditSchemaUpsertLicense1Schema = import_v42.z.object({
692
713
  });
693
714
  var attachUpsertLicenseCreditSchemaUnionSchema = import_v42.z.union([
694
715
  attachCreditSchemaUpsertLicense1Schema,
695
- attachCreditSchemaUpsertLicense2Schema
716
+ attachCreditSchemaUpsertLicense2Schema,
717
+ attachCreditSchemaUpsertLicense3Schema
696
718
  ]);
697
719
  var attachUpsertLicenseFeatureOverrideSchema = import_v42.z.object({
698
720
  creditSchema: import_v42.z.union([
699
721
  import_v42.z.array(
700
722
  import_v42.z.union([
701
723
  attachCreditSchemaUpsertLicense1Schema,
702
- attachCreditSchemaUpsertLicense2Schema
724
+ attachCreditSchemaUpsertLicense2Schema,
725
+ attachCreditSchemaUpsertLicense3Schema
703
726
  ])
704
727
  ),
705
728
  import_v42.z.undefined()
@@ -1593,6 +1616,10 @@ var listPlansItemDisplaySchema = import_v48.z.object({
1593
1616
  primaryText: import_v48.z.string(),
1594
1617
  secondaryText: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
1595
1618
  });
1619
+ var listPlansCreditSchemaItemFeatureOverride3Schema = import_v48.z.object({
1620
+ meteredFeatureId: import_v48.z.string(),
1621
+ excluded: import_v48.z.literal(true)
1622
+ });
1596
1623
  var listPlansDimensionsItem4Schema = import_v48.z.object({
1597
1624
  match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
1598
1625
  priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
@@ -1694,6 +1721,10 @@ var listPlansVariantDetailsPriceTierSchema = import_v48.z.object({
1694
1721
  import_v48.z.undefined()
1695
1722
  ]).optional()
1696
1723
  });
1724
+ var listPlansCreditSchemaVariantDetails3Schema = import_v48.z.object({
1725
+ meteredFeatureId: import_v48.z.string(),
1726
+ excluded: import_v48.z.literal(true)
1727
+ });
1697
1728
  var listPlansDimensionsVariantDetails4Schema = import_v48.z.object({
1698
1729
  match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
1699
1730
  priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
@@ -1736,9 +1767,6 @@ var listPlansVariantDetailsMarkupsSchema = import_v48.z.object({
1736
1767
  var listPlansVariantDetailsUsageLimitFilterSchema = import_v48.z.object({
1737
1768
  properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
1738
1769
  });
1739
- var listPlansVariantDetailsUsageAlertFilterSchema = import_v48.z.object({
1740
- properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
1741
- });
1742
1770
  var listPlansParamsOutboundSchema = import_v48.z.object({
1743
1771
  customer_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
1744
1772
  entity_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
@@ -1885,14 +1913,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = import_v48.z.object({
1885
1913
  });
1886
1914
  var listPlansItemCreditSchemaUnionSchema = import_v48.z.union([
1887
1915
  listPlansCreditSchemaItemFeatureOverride1Schema,
1888
- listPlansCreditSchemaItemFeatureOverride2Schema
1916
+ listPlansCreditSchemaItemFeatureOverride2Schema,
1917
+ listPlansCreditSchemaItemFeatureOverride3Schema
1889
1918
  ]);
1890
1919
  var listPlansItemFeatureOverrideSchema = import_v48.z.object({
1891
1920
  creditSchema: import_v48.z.union([
1892
1921
  import_v48.z.array(
1893
1922
  import_v48.z.union([
1894
1923
  listPlansCreditSchemaItemFeatureOverride1Schema,
1895
- listPlansCreditSchemaItemFeatureOverride2Schema
1924
+ listPlansCreditSchemaItemFeatureOverride2Schema,
1925
+ listPlansCreditSchemaItemFeatureOverride3Schema
1896
1926
  ])
1897
1927
  ),
1898
1928
  import_v48.z.undefined()
@@ -2118,14 +2148,16 @@ var listPlansCreditSchemaVariantDetails1Schema = import_v48.z.object({
2118
2148
  });
2119
2149
  var listPlansVariantDetailsCreditSchemaUnionSchema = import_v48.z.union([
2120
2150
  listPlansCreditSchemaVariantDetails1Schema,
2121
- listPlansCreditSchemaVariantDetails2Schema
2151
+ listPlansCreditSchemaVariantDetails2Schema,
2152
+ listPlansCreditSchemaVariantDetails3Schema
2122
2153
  ]);
2123
2154
  var listPlansVariantDetailsFeatureOverrideSchema = import_v48.z.object({
2124
2155
  creditSchema: import_v48.z.union([
2125
2156
  import_v48.z.array(
2126
2157
  import_v48.z.union([
2127
2158
  listPlansCreditSchemaVariantDetails1Schema,
2128
- listPlansCreditSchemaVariantDetails2Schema
2159
+ listPlansCreditSchemaVariantDetails2Schema,
2160
+ listPlansCreditSchemaVariantDetails3Schema
2129
2161
  ])
2130
2162
  ),
2131
2163
  import_v48.z.undefined()
@@ -2207,20 +2239,13 @@ var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
2207
2239
  anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
2208
2240
  filter: import_v48.z.union([listPlansVariantDetailsUsageLimitFilterSchema, import_v48.z.undefined()]).optional()
2209
2241
  });
2210
- var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
2211
- var listPlansVariantDetailsBasisSchema = openEnumSchema6;
2212
- var listPlansVariantDetailsUsageAlertSchema = import_v48.z.object({
2213
- featureId: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
2214
- enabled: import_v48.z.boolean(),
2215
- threshold: import_v48.z.number(),
2216
- thresholdType: listPlansVariantDetailsThresholdTypeSchema,
2217
- basis: listPlansVariantDetailsBasisSchema,
2218
- filter: import_v48.z.union([listPlansVariantDetailsUsageAlertFilterSchema, import_v48.z.undefined()]).optional(),
2219
- name: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
2220
- });
2221
2242
 
2222
2243
  // src/generated/listPlansSchemas.ts
2223
2244
  var import_v49 = require("zod/v4");
2245
+ var variantConfigSchema = import_v49.z.object({
2246
+ ignorePastDue: import_v49.z.boolean(),
2247
+ anchorToMonthStart: import_v49.z.boolean()
2248
+ });
2224
2249
  var variantPlanUsageLimitFilterSchema = import_v49.z.object({
2225
2250
  properties: import_v49.z.record(import_v49.z.string(), import_v49.z.string())
2226
2251
  });
@@ -2232,15 +2257,11 @@ var variantPlanOverageAllowedSchema = import_v49.z.object({
2232
2257
  enabled: import_v49.z.boolean()
2233
2258
  });
2234
2259
  var openEnumSchema7 = import_v49.z.any();
2235
- var variantPlanUsageLimitIntervalSchema = import_v49.z.any();
2236
- var variantPlanAutoTopupSchema = import_v49.z.any();
2237
- var variantPlanSpendLimitSchema = import_v49.z.any();
2238
2260
  var variantPlanPriceSchema = import_v49.z.any();
2239
2261
  var variantItemSchema = import_v49.z.any();
2240
2262
  var variantProcessorsSchema = import_v49.z.any();
2241
2263
  var variantFreeTrialSchema = import_v49.z.any();
2242
2264
  var variantEnvSchema = import_v49.z.any();
2243
- var variantConfigSchema = import_v49.z.any();
2244
2265
  var listPlansVariantCustomizeSchema = import_v49.z.any();
2245
2266
  var listPlansPriceSchema2 = import_v49.z.any();
2246
2267
  var listPlansItemSchema2 = import_v49.z.any();
@@ -2252,6 +2273,29 @@ var listPlansBillingControlsSchema2 = import_v49.z.any();
2252
2273
  var listPlansCustomerEligibilitySchema2 = import_v49.z.any();
2253
2274
  var listPlansVariantDetailsSchema = import_v49.z.any();
2254
2275
  var listPlansLicenseSchema = import_v49.z.any();
2276
+ var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
2277
+ var variantPlanPurchaseLimitSchema = import_v49.z.object({
2278
+ interval: variantPlanAutoTopupIntervalSchema,
2279
+ intervalCount: import_v49.z.number(),
2280
+ limit: import_v49.z.number()
2281
+ });
2282
+ var variantPlanAutoTopupSchema = import_v49.z.object({
2283
+ featureId: import_v49.z.string(),
2284
+ enabled: import_v49.z.boolean(),
2285
+ threshold: import_v49.z.number(),
2286
+ quantity: import_v49.z.number(),
2287
+ purchaseLimit: import_v49.z.union([variantPlanPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
2288
+ invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
2289
+ });
2290
+ var variantPlanLimitTypeSchema = openEnumSchema7;
2291
+ var variantPlanSpendLimitSchema = import_v49.z.object({
2292
+ featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
2293
+ enabled: import_v49.z.boolean(),
2294
+ limitType: import_v49.z.union([variantPlanLimitTypeSchema, import_v49.z.undefined()]).optional(),
2295
+ overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
2296
+ skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
2297
+ });
2298
+ var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
2255
2299
  var variantPlanAnchorSchema = openEnumSchema7;
2256
2300
  var variantPlanUsageLimitSchema = import_v49.z.object({
2257
2301
  featureId: import_v49.z.string(),
@@ -2375,6 +2419,10 @@ var multiAttachPriceTierSchema = import_v410.z.object({
2375
2419
  flatAmount: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
2376
2420
  additionalCurrencies: import_v410.z.union([import_v410.z.array(multiAttachTierAdditionalCurrencySchema), import_v410.z.undefined()]).optional()
2377
2421
  });
2422
+ var multiAttachCreditSchema3Schema = import_v410.z.object({
2423
+ meteredFeatureId: import_v410.z.string(),
2424
+ excluded: import_v410.z.literal(true)
2425
+ });
2378
2426
  var multiAttachDimensionsMatch4Schema = import_v410.z.union([
2379
2427
  import_v410.z.string(),
2380
2428
  import_v410.z.number(),
@@ -2553,6 +2601,10 @@ var multiAttachExpiryOutboundSchema = import_v410.z.object({
2553
2601
  duration: import_v410.z.string(),
2554
2602
  length: import_v410.z.number()
2555
2603
  });
2604
+ var multiAttachCreditSchema3OutboundSchema = import_v410.z.object({
2605
+ metered_feature_id: import_v410.z.string(),
2606
+ excluded: import_v410.z.literal(true)
2607
+ });
2556
2608
  var multiAttachDimensionsMatch4OutboundSchema = import_v410.z.union([
2557
2609
  import_v410.z.string(),
2558
2610
  import_v410.z.number(),
@@ -2688,7 +2740,8 @@ var multiAttachCreditSchema1OutboundSchema = import_v410.z.object({
2688
2740
  });
2689
2741
  var multiAttachCreditSchemaUnionOutboundSchema = import_v410.z.union([
2690
2742
  multiAttachCreditSchema1OutboundSchema,
2691
- multiAttachCreditSchema2OutboundSchema
2743
+ multiAttachCreditSchema2OutboundSchema,
2744
+ multiAttachCreditSchema3OutboundSchema
2692
2745
  ]);
2693
2746
  var multiAttachProviderMarkupsOutboundSchema = import_v410.z.object({
2694
2747
  markup: import_v410.z.number()
@@ -2714,7 +2767,8 @@ var multiAttachFeatureOverrideOutboundSchema = import_v410.z.object({
2714
2767
  import_v410.z.array(
2715
2768
  import_v410.z.union([
2716
2769
  multiAttachCreditSchema1OutboundSchema,
2717
- multiAttachCreditSchema2OutboundSchema
2770
+ multiAttachCreditSchema2OutboundSchema,
2771
+ multiAttachCreditSchema3OutboundSchema
2718
2772
  ])
2719
2773
  ),
2720
2774
  import_v410.z.undefined()
@@ -2955,14 +3009,16 @@ var multiAttachCreditSchema1Schema = import_v410.z.object({
2955
3009
  });
2956
3010
  var multiAttachCreditSchemaUnionSchema = import_v410.z.union([
2957
3011
  multiAttachCreditSchema1Schema,
2958
- multiAttachCreditSchema2Schema
3012
+ multiAttachCreditSchema2Schema,
3013
+ multiAttachCreditSchema3Schema
2959
3014
  ]);
2960
3015
  var multiAttachFeatureOverrideSchema = import_v410.z.object({
2961
3016
  creditSchema: import_v410.z.union([
2962
3017
  import_v410.z.array(
2963
3018
  import_v410.z.union([
2964
3019
  multiAttachCreditSchema1Schema,
2965
- multiAttachCreditSchema2Schema
3020
+ multiAttachCreditSchema2Schema,
3021
+ multiAttachCreditSchema3Schema
2966
3022
  ])
2967
3023
  ),
2968
3024
  import_v410.z.undefined()
@@ -3128,6 +3184,10 @@ var openCustomerPortalParamsOutboundSchema = import_v411.z.object({
3128
3184
 
3129
3185
  // src/generated/previewAttachSchemas.ts
3130
3186
  var import_v412 = require("zod/v4");
3187
+ var previewAttachCreditSchemaUpsertLicense3Schema = import_v412.z.object({
3188
+ meteredFeatureId: import_v412.z.string(),
3189
+ excluded: import_v412.z.literal(true)
3190
+ });
3131
3191
  var previewAttachDimensionsUpsertLicenseMatch4Schema = import_v412.z.union([
3132
3192
  import_v412.z.string(),
3133
3193
  import_v412.z.number(),
@@ -3324,10 +3384,20 @@ var previewAttachInvoiceCreditsSchema = import_v412.z.object({
3324
3384
  applied: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3325
3385
  currency: import_v412.z.string()
3326
3386
  });
3387
+ var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.object({
3388
+ max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3389
+ max_percentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3390
+ expiry_duration_type: import_v412.z.string(),
3391
+ expiry_duration_length: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
3392
+ });
3327
3393
  var previewAttachUpsertLicenseExpiryOutboundSchema = import_v412.z.object({
3328
3394
  duration: import_v412.z.string(),
3329
3395
  length: import_v412.z.number()
3330
3396
  });
3397
+ var previewAttachCreditSchemaUpsertLicense3OutboundSchema = import_v412.z.object({
3398
+ metered_feature_id: import_v412.z.string(),
3399
+ excluded: import_v412.z.literal(true)
3400
+ });
3331
3401
  var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = import_v412.z.union(
3332
3402
  [import_v412.z.string(), import_v412.z.number(), import_v412.z.boolean()]
3333
3403
  );
@@ -3452,7 +3522,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = import_v412.z.object
3452
3522
  });
3453
3523
  var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v412.z.union([
3454
3524
  previewAttachCreditSchemaUpsertLicense1OutboundSchema,
3455
- previewAttachCreditSchemaUpsertLicense2OutboundSchema
3525
+ previewAttachCreditSchemaUpsertLicense2OutboundSchema,
3526
+ previewAttachCreditSchemaUpsertLicense3OutboundSchema
3456
3527
  ]);
3457
3528
  var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = import_v412.z.object(
3458
3529
  {
@@ -3487,7 +3558,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = import_v412.z.obje
3487
3558
  import_v412.z.array(
3488
3559
  import_v412.z.union([
3489
3560
  previewAttachCreditSchemaUpsertLicense1OutboundSchema,
3490
- previewAttachCreditSchemaUpsertLicense2OutboundSchema
3561
+ previewAttachCreditSchemaUpsertLicense2OutboundSchema,
3562
+ previewAttachCreditSchemaUpsertLicense3OutboundSchema
3491
3563
  ])
3492
3564
  ),
3493
3565
  import_v412.z.undefined()
@@ -3641,7 +3713,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = import_v412.z.any();
3641
3713
  var previewAttachUpsertLicenseResetSchema = import_v412.z.any();
3642
3714
  var previewAttachUpsertLicensePriceSchema = import_v412.z.any();
3643
3715
  var previewAttachUpsertLicenseProrationSchema = import_v412.z.any();
3644
- var previewAttachUpsertLicenseRolloverSchema = import_v412.z.any();
3645
3716
  var previewAttachUpsertLicenseBasePriceSchema = import_v412.z.any();
3646
3717
  var previewAttachBasePriceSchema = import_v412.z.any();
3647
3718
  var previewAttachItemPlanItemSchema = import_v412.z.any();
@@ -3657,7 +3728,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = import_v412.z.any
3657
3728
  var previewAttachUpsertLicenseResetOutboundSchema = import_v412.z.any();
3658
3729
  var previewAttachUpsertLicensePriceOutboundSchema = import_v412.z.any();
3659
3730
  var previewAttachUpsertLicenseProrationOutboundSchema = import_v412.z.any();
3660
- var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.any();
3661
3731
  var previewAttachUpsertLicenseBasePriceOutboundSchema = import_v412.z.any();
3662
3732
  var previewAttachBasePriceOutboundSchema = import_v412.z.any();
3663
3733
  var previewAttachItemPlanItemOutboundSchema = import_v412.z.any();
@@ -3667,6 +3737,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = import_v412.z.any();
3667
3737
  var previewAttachBillingControlsOutboundSchema = import_v412.z.any();
3668
3738
  var previewAttachFeatureQuantityRequestBodyOutboundSchema = import_v412.z.any();
3669
3739
  var previewAttachFreeTrialParamsOutboundSchema = import_v412.z.any();
3740
+ var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
3741
+ var previewAttachUpsertLicenseRolloverSchema = import_v412.z.object({
3742
+ max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3743
+ maxPercentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3744
+ expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
3745
+ expiryDurationLength: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
3746
+ });
3670
3747
  var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
3671
3748
  var previewAttachUpsertLicenseExpirySchema = import_v412.z.object({
3672
3749
  duration: previewAttachUpsertLicenseDurationSchema,
@@ -3760,14 +3837,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = import_v412.z.object({
3760
3837
  });
3761
3838
  var previewAttachUpsertLicenseCreditSchemaUnionSchema = import_v412.z.union([
3762
3839
  previewAttachCreditSchemaUpsertLicense1Schema,
3763
- previewAttachCreditSchemaUpsertLicense2Schema
3840
+ previewAttachCreditSchemaUpsertLicense2Schema,
3841
+ previewAttachCreditSchemaUpsertLicense3Schema
3764
3842
  ]);
3765
3843
  var previewAttachUpsertLicenseFeatureOverrideSchema = import_v412.z.object({
3766
3844
  creditSchema: import_v412.z.union([
3767
3845
  import_v412.z.array(
3768
3846
  import_v412.z.union([
3769
3847
  previewAttachCreditSchemaUpsertLicense1Schema,
3770
- previewAttachCreditSchemaUpsertLicense2Schema
3848
+ previewAttachCreditSchemaUpsertLicense2Schema,
3849
+ previewAttachCreditSchemaUpsertLicense3Schema
3771
3850
  ])
3772
3851
  ),
3773
3852
  import_v412.z.undefined()
@@ -4124,6 +4203,10 @@ var previewMultiAttachPriceTierSchema = import_v413.z.object({
4124
4203
  import_v413.z.undefined()
4125
4204
  ]).optional()
4126
4205
  });
4206
+ var previewMultiAttachCreditSchema3Schema = import_v413.z.object({
4207
+ meteredFeatureId: import_v413.z.string(),
4208
+ excluded: import_v413.z.literal(true)
4209
+ });
4127
4210
  var previewMultiAttachDimensionsMatch4Schema = import_v413.z.union([
4128
4211
  import_v413.z.string(),
4129
4212
  import_v413.z.number(),
@@ -4370,6 +4453,10 @@ var previewMultiAttachExpiryOutboundSchema = import_v413.z.object({
4370
4453
  duration: import_v413.z.string(),
4371
4454
  length: import_v413.z.number()
4372
4455
  });
4456
+ var previewMultiAttachCreditSchema3OutboundSchema = import_v413.z.object({
4457
+ metered_feature_id: import_v413.z.string(),
4458
+ excluded: import_v413.z.literal(true)
4459
+ });
4373
4460
  var previewMultiAttachDimensionsMatch4OutboundSchema = import_v413.z.union([
4374
4461
  import_v413.z.string(),
4375
4462
  import_v413.z.number(),
@@ -4505,7 +4592,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = import_v413.z.object({
4505
4592
  });
4506
4593
  var previewMultiAttachCreditSchemaUnionOutboundSchema = import_v413.z.union([
4507
4594
  previewMultiAttachCreditSchema1OutboundSchema,
4508
- previewMultiAttachCreditSchema2OutboundSchema
4595
+ previewMultiAttachCreditSchema2OutboundSchema,
4596
+ previewMultiAttachCreditSchema3OutboundSchema
4509
4597
  ]);
4510
4598
  var previewMultiAttachProviderMarkupsOutboundSchema = import_v413.z.object({
4511
4599
  markup: import_v413.z.number()
@@ -4531,7 +4619,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = import_v413.z.object({
4531
4619
  import_v413.z.array(
4532
4620
  import_v413.z.union([
4533
4621
  previewMultiAttachCreditSchema1OutboundSchema,
4534
- previewMultiAttachCreditSchema2OutboundSchema
4622
+ previewMultiAttachCreditSchema2OutboundSchema,
4623
+ previewMultiAttachCreditSchema3OutboundSchema
4535
4624
  ])
4536
4625
  ),
4537
4626
  import_v413.z.undefined()
@@ -4794,14 +4883,16 @@ var previewMultiAttachCreditSchema1Schema = import_v413.z.object({
4794
4883
  });
4795
4884
  var previewMultiAttachCreditSchemaUnionSchema = import_v413.z.union([
4796
4885
  previewMultiAttachCreditSchema1Schema,
4797
- previewMultiAttachCreditSchema2Schema
4886
+ previewMultiAttachCreditSchema2Schema,
4887
+ previewMultiAttachCreditSchema3Schema
4798
4888
  ]);
4799
4889
  var previewMultiAttachFeatureOverrideSchema = import_v413.z.object({
4800
4890
  creditSchema: import_v413.z.union([
4801
4891
  import_v413.z.array(
4802
4892
  import_v413.z.union([
4803
4893
  previewMultiAttachCreditSchema1Schema,
4804
- previewMultiAttachCreditSchema2Schema
4894
+ previewMultiAttachCreditSchema2Schema,
4895
+ previewMultiAttachCreditSchema3Schema
4805
4896
  ])
4806
4897
  ),
4807
4898
  import_v413.z.undefined()
@@ -4982,6 +5073,10 @@ var previewMultiAttachParamsOutboundSchema = import_v413.z.object({
4982
5073
 
4983
5074
  // src/generated/previewUpdateSubscriptionSchemas.ts
4984
5075
  var import_v414 = require("zod/v4");
5076
+ var previewUpdateCreditSchemaUpsertLicense3Schema = import_v414.z.object({
5077
+ meteredFeatureId: import_v414.z.string(),
5078
+ excluded: import_v414.z.literal(true)
5079
+ });
4985
5080
  var previewUpdateDimensionsUpsertLicenseMatch4Schema = import_v414.z.union([
4986
5081
  import_v414.z.string(),
4987
5082
  import_v414.z.number(),
@@ -5158,10 +5253,20 @@ var previewUpdateInvoiceCreditsSchema = import_v414.z.object({
5158
5253
  applied: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5159
5254
  currency: import_v414.z.string()
5160
5255
  });
5256
+ var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.object({
5257
+ max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5258
+ max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5259
+ expiry_duration_type: import_v414.z.string(),
5260
+ expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
5261
+ });
5161
5262
  var previewUpdateUpsertLicenseExpiryOutboundSchema = import_v414.z.object({
5162
5263
  duration: import_v414.z.string(),
5163
5264
  length: import_v414.z.number()
5164
5265
  });
5266
+ var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v414.z.object({
5267
+ metered_feature_id: import_v414.z.string(),
5268
+ excluded: import_v414.z.literal(true)
5269
+ });
5165
5270
  var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v414.z.union(
5166
5271
  [import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()]
5167
5272
  );
@@ -5286,7 +5391,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v414.z.object
5286
5391
  });
5287
5392
  var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v414.z.union([
5288
5393
  previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
5289
- previewUpdateCreditSchemaUpsertLicense2OutboundSchema
5394
+ previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
5395
+ previewUpdateCreditSchemaUpsertLicense3OutboundSchema
5290
5396
  ]);
5291
5397
  var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v414.z.object(
5292
5398
  {
@@ -5321,7 +5427,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v414.z.obje
5321
5427
  import_v414.z.array(
5322
5428
  import_v414.z.union([
5323
5429
  previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
5324
- previewUpdateCreditSchemaUpsertLicense2OutboundSchema
5430
+ previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
5431
+ previewUpdateCreditSchemaUpsertLicense3OutboundSchema
5325
5432
  ])
5326
5433
  ),
5327
5434
  import_v414.z.undefined()
@@ -5447,7 +5554,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = import_v414.z.any();
5447
5554
  var previewUpdateUpsertLicenseResetSchema = import_v414.z.any();
5448
5555
  var previewUpdateUpsertLicensePriceSchema = import_v414.z.any();
5449
5556
  var previewUpdateUpsertLicenseProrationSchema = import_v414.z.any();
5450
- var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.any();
5451
5557
  var previewUpdateUpsertLicenseBasePriceSchema = import_v414.z.any();
5452
5558
  var previewUpdateBasePriceSchema = import_v414.z.any();
5453
5559
  var previewUpdateItemPlanItemSchema = import_v414.z.any();
@@ -5463,7 +5569,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v414.z.any
5463
5569
  var previewUpdateUpsertLicenseResetOutboundSchema = import_v414.z.any();
5464
5570
  var previewUpdateUpsertLicensePriceOutboundSchema = import_v414.z.any();
5465
5571
  var previewUpdateUpsertLicenseProrationOutboundSchema = import_v414.z.any();
5466
- var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.any();
5467
5572
  var previewUpdateUpsertLicenseBasePriceOutboundSchema = import_v414.z.any();
5468
5573
  var previewUpdateBasePriceOutboundSchema = import_v414.z.any();
5469
5574
  var previewUpdateItemPlanItemOutboundSchema = import_v414.z.any();
@@ -5473,6 +5578,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = import_v414.z.any();
5473
5578
  var previewUpdateBillingControlsOutboundSchema = import_v414.z.any();
5474
5579
  var previewUpdateFeatureQuantityRequestBodyOutboundSchema = import_v414.z.any();
5475
5580
  var previewUpdateFreeTrialParamsOutboundSchema = import_v414.z.any();
5581
+ var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
5582
+ var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.object({
5583
+ max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5584
+ maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5585
+ expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
5586
+ expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
5587
+ });
5476
5588
  var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
5477
5589
  var previewUpdateUpsertLicenseExpirySchema = import_v414.z.object({
5478
5590
  duration: previewUpdateUpsertLicenseDurationSchema,
@@ -5566,14 +5678,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = import_v414.z.object({
5566
5678
  });
5567
5679
  var previewUpdateUpsertLicenseCreditSchemaUnionSchema = import_v414.z.union([
5568
5680
  previewUpdateCreditSchemaUpsertLicense1Schema,
5569
- previewUpdateCreditSchemaUpsertLicense2Schema
5681
+ previewUpdateCreditSchemaUpsertLicense2Schema,
5682
+ previewUpdateCreditSchemaUpsertLicense3Schema
5570
5683
  ]);
5571
5684
  var previewUpdateUpsertLicenseFeatureOverrideSchema = import_v414.z.object({
5572
5685
  creditSchema: import_v414.z.union([
5573
5686
  import_v414.z.array(
5574
5687
  import_v414.z.union([
5575
5688
  previewUpdateCreditSchemaUpsertLicense1Schema,
5576
- previewUpdateCreditSchemaUpsertLicense2Schema
5689
+ previewUpdateCreditSchemaUpsertLicense2Schema,
5690
+ previewUpdateCreditSchemaUpsertLicense3Schema
5577
5691
  ])
5578
5692
  ),
5579
5693
  import_v414.z.undefined()
@@ -5887,6 +6001,10 @@ var redeemReferralCodeParamsOutboundSchema = import_v415.z.object({
5887
6001
 
5888
6002
  // src/generated/setupPaymentSchemas.ts
5889
6003
  var import_v416 = require("zod/v4");
6004
+ var setupPaymentCreditSchemaUpsertLicense3Schema = import_v416.z.object({
6005
+ meteredFeatureId: import_v416.z.string(),
6006
+ excluded: import_v416.z.literal(true)
6007
+ });
5890
6008
  var setupPaymentDimensionsUpsertLicenseMatch4Schema = import_v416.z.union([
5891
6009
  import_v416.z.string(),
5892
6010
  import_v416.z.number(),
@@ -6016,10 +6134,20 @@ var setupPaymentResponseSchema = import_v416.z.object({
6016
6134
  entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
6017
6135
  url: import_v416.z.string()
6018
6136
  });
6137
+ var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.object({
6138
+ max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6139
+ max_percentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6140
+ expiry_duration_type: import_v416.z.string(),
6141
+ expiry_duration_length: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
6142
+ });
6019
6143
  var setupPaymentUpsertLicenseExpiryOutboundSchema = import_v416.z.object({
6020
6144
  duration: import_v416.z.string(),
6021
6145
  length: import_v416.z.number()
6022
6146
  });
6147
+ var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = import_v416.z.object({
6148
+ metered_feature_id: import_v416.z.string(),
6149
+ excluded: import_v416.z.literal(true)
6150
+ });
6023
6151
  var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = import_v416.z.union([
6024
6152
  import_v416.z.string(),
6025
6153
  import_v416.z.number(),
@@ -6143,7 +6271,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = import_v416.z.object(
6143
6271
  var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = import_v416.z.union(
6144
6272
  [
6145
6273
  setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
6146
- setupPaymentCreditSchemaUpsertLicense2OutboundSchema
6274
+ setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
6275
+ setupPaymentCreditSchemaUpsertLicense3OutboundSchema
6147
6276
  ]
6148
6277
  );
6149
6278
  var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = import_v416.z.object({
@@ -6173,7 +6302,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = import_v416.z.objec
6173
6302
  import_v416.z.array(
6174
6303
  import_v416.z.union([
6175
6304
  setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
6176
- setupPaymentCreditSchemaUpsertLicense2OutboundSchema
6305
+ setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
6306
+ setupPaymentCreditSchemaUpsertLicense3OutboundSchema
6177
6307
  ])
6178
6308
  ),
6179
6309
  import_v416.z.undefined()
@@ -6317,7 +6447,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = import_v416.z.any();
6317
6447
  var setupPaymentUpsertLicenseResetSchema = import_v416.z.any();
6318
6448
  var setupPaymentUpsertLicensePriceSchema = import_v416.z.any();
6319
6449
  var setupPaymentUpsertLicenseProrationSchema = import_v416.z.any();
6320
- var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.any();
6321
6450
  var setupPaymentUpsertLicenseBasePriceSchema = import_v416.z.any();
6322
6451
  var setupPaymentBasePriceSchema = import_v416.z.any();
6323
6452
  var setupPaymentItemPlanItemSchema = import_v416.z.any();
@@ -6331,7 +6460,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = import_v416.z.any(
6331
6460
  var setupPaymentUpsertLicenseResetOutboundSchema = import_v416.z.any();
6332
6461
  var setupPaymentUpsertLicensePriceOutboundSchema = import_v416.z.any();
6333
6462
  var setupPaymentUpsertLicenseProrationOutboundSchema = import_v416.z.any();
6334
- var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.any();
6335
6463
  var setupPaymentUpsertLicenseBasePriceOutboundSchema = import_v416.z.any();
6336
6464
  var setupPaymentBasePriceOutboundSchema = import_v416.z.any();
6337
6465
  var setupPaymentItemPlanItemOutboundSchema = import_v416.z.any();
@@ -6341,6 +6469,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = import_v416.z.any();
6341
6469
  var setupPaymentBillingControlsOutboundSchema = import_v416.z.any();
6342
6470
  var setupPaymentFeatureQuantityOutboundSchema = import_v416.z.any();
6343
6471
  var setupPaymentFreeTrialParamsOutboundSchema = import_v416.z.any();
6472
+ var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
6473
+ var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.object({
6474
+ max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6475
+ maxPercentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6476
+ expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
6477
+ expiryDurationLength: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
6478
+ });
6344
6479
  var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
6345
6480
  var setupPaymentUpsertLicenseExpirySchema = import_v416.z.object({
6346
6481
  duration: setupPaymentUpsertLicenseDurationSchema,
@@ -6434,14 +6569,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = import_v416.z.object({
6434
6569
  });
6435
6570
  var setupPaymentUpsertLicenseCreditSchemaUnionSchema = import_v416.z.union([
6436
6571
  setupPaymentCreditSchemaUpsertLicense1Schema,
6437
- setupPaymentCreditSchemaUpsertLicense2Schema
6572
+ setupPaymentCreditSchemaUpsertLicense2Schema,
6573
+ setupPaymentCreditSchemaUpsertLicense3Schema
6438
6574
  ]);
6439
6575
  var setupPaymentUpsertLicenseFeatureOverrideSchema = import_v416.z.object({
6440
6576
  creditSchema: import_v416.z.union([
6441
6577
  import_v416.z.array(
6442
6578
  import_v416.z.union([
6443
6579
  setupPaymentCreditSchemaUpsertLicense1Schema,
6444
- setupPaymentCreditSchemaUpsertLicense2Schema
6580
+ setupPaymentCreditSchemaUpsertLicense2Schema,
6581
+ setupPaymentCreditSchemaUpsertLicense3Schema
6445
6582
  ])
6446
6583
  ),
6447
6584
  import_v416.z.undefined()
@@ -6692,6 +6829,10 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
6692
6829
 
6693
6830
  // src/generated/updateSubscriptionSchemas.ts
6694
6831
  var import_v417 = require("zod/v4");
6832
+ var billingUpdateCreditSchemaUpsertLicense3Schema = import_v417.z.object({
6833
+ meteredFeatureId: import_v417.z.string(),
6834
+ excluded: import_v417.z.literal(true)
6835
+ });
6695
6836
  var billingUpdateDimensionsUpsertLicenseMatch4Schema = import_v417.z.union([
6696
6837
  import_v417.z.string(),
6697
6838
  import_v417.z.number(),
@@ -6803,10 +6944,20 @@ var billingUpdateInvoiceSchema = import_v417.z.object({
6803
6944
  currency: import_v417.z.string(),
6804
6945
  hostedInvoiceUrl: import_v417.z.string().nullable()
6805
6946
  });
6947
+ var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.object({
6948
+ max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
6949
+ max_percentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
6950
+ expiry_duration_type: import_v417.z.string(),
6951
+ expiry_duration_length: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
6952
+ });
6806
6953
  var billingUpdateUpsertLicenseExpiryOutboundSchema = import_v417.z.object({
6807
6954
  duration: import_v417.z.string(),
6808
6955
  length: import_v417.z.number()
6809
6956
  });
6957
+ var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v417.z.object({
6958
+ metered_feature_id: import_v417.z.string(),
6959
+ excluded: import_v417.z.literal(true)
6960
+ });
6810
6961
  var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v417.z.union(
6811
6962
  [import_v417.z.string(), import_v417.z.number(), import_v417.z.boolean()]
6812
6963
  );
@@ -6931,7 +7082,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v417.z.object
6931
7082
  });
6932
7083
  var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v417.z.union([
6933
7084
  billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
6934
- billingUpdateCreditSchemaUpsertLicense2OutboundSchema
7085
+ billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
7086
+ billingUpdateCreditSchemaUpsertLicense3OutboundSchema
6935
7087
  ]);
6936
7088
  var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v417.z.object(
6937
7089
  {
@@ -6966,7 +7118,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v417.z.obje
6966
7118
  import_v417.z.array(
6967
7119
  import_v417.z.union([
6968
7120
  billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
6969
- billingUpdateCreditSchemaUpsertLicense2OutboundSchema
7121
+ billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
7122
+ billingUpdateCreditSchemaUpsertLicense3OutboundSchema
6970
7123
  ])
6971
7124
  ),
6972
7125
  import_v417.z.undefined()
@@ -7092,7 +7245,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = import_v417.z.any();
7092
7245
  var billingUpdateUpsertLicenseResetSchema = import_v417.z.any();
7093
7246
  var billingUpdateUpsertLicensePriceSchema = import_v417.z.any();
7094
7247
  var billingUpdateUpsertLicenseProrationSchema = import_v417.z.any();
7095
- var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.any();
7096
7248
  var billingUpdateUpsertLicenseBasePriceSchema = import_v417.z.any();
7097
7249
  var billingUpdateBasePriceSchema = import_v417.z.any();
7098
7250
  var billingUpdateItemPlanItemSchema = import_v417.z.any();
@@ -7107,7 +7259,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v417.z.any
7107
7259
  var billingUpdateUpsertLicenseResetOutboundSchema = import_v417.z.any();
7108
7260
  var billingUpdateUpsertLicensePriceOutboundSchema = import_v417.z.any();
7109
7261
  var billingUpdateUpsertLicenseProrationOutboundSchema = import_v417.z.any();
7110
- var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.any();
7111
7262
  var billingUpdateUpsertLicenseBasePriceOutboundSchema = import_v417.z.any();
7112
7263
  var billingUpdateBasePriceOutboundSchema = import_v417.z.any();
7113
7264
  var billingUpdateItemPlanItemOutboundSchema = import_v417.z.any();
@@ -7117,6 +7268,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = import_v417.z.any();
7117
7268
  var billingUpdateBillingControlsOutboundSchema = import_v417.z.any();
7118
7269
  var billingUpdateFeatureQuantityOutboundSchema = import_v417.z.any();
7119
7270
  var billingUpdateFreeTrialParamsOutboundSchema = import_v417.z.any();
7271
+ var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
7272
+ var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.object({
7273
+ max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
7274
+ maxPercentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
7275
+ expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
7276
+ expiryDurationLength: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
7277
+ });
7120
7278
  var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
7121
7279
  var billingUpdateUpsertLicenseExpirySchema = import_v417.z.object({
7122
7280
  duration: billingUpdateUpsertLicenseDurationSchema,
@@ -7210,14 +7368,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = import_v417.z.object({
7210
7368
  });
7211
7369
  var billingUpdateUpsertLicenseCreditSchemaUnionSchema = import_v417.z.union([
7212
7370
  billingUpdateCreditSchemaUpsertLicense1Schema,
7213
- billingUpdateCreditSchemaUpsertLicense2Schema
7371
+ billingUpdateCreditSchemaUpsertLicense2Schema,
7372
+ billingUpdateCreditSchemaUpsertLicense3Schema
7214
7373
  ]);
7215
7374
  var billingUpdateUpsertLicenseFeatureOverrideSchema = import_v417.z.object({
7216
7375
  creditSchema: import_v417.z.union([
7217
7376
  import_v417.z.array(
7218
7377
  import_v417.z.union([
7219
7378
  billingUpdateCreditSchemaUpsertLicense1Schema,
7220
- billingUpdateCreditSchemaUpsertLicense2Schema
7379
+ billingUpdateCreditSchemaUpsertLicense2Schema,
7380
+ billingUpdateCreditSchemaUpsertLicense3Schema
7221
7381
  ])
7222
7382
  ),
7223
7383
  import_v417.z.undefined()