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
@@ -149,6 +149,10 @@ var aggregateEventsResponseSchema = import_v4.z.object({
149
149
 
150
150
  // src/generated/attachSchemas.ts
151
151
  var import_v42 = require("zod/v4");
152
+ var attachCreditSchemaUpsertLicense3Schema = import_v42.z.object({
153
+ meteredFeatureId: import_v42.z.string(),
154
+ excluded: import_v42.z.literal(true)
155
+ });
152
156
  var attachDimensionsUpsertLicenseMatch4Schema = import_v42.z.union([
153
157
  import_v42.z.string(),
154
158
  import_v42.z.number(),
@@ -277,10 +281,20 @@ var attachInvoiceSchema = import_v42.z.object({
277
281
  currency: import_v42.z.string(),
278
282
  hostedInvoiceUrl: import_v42.z.string().nullable()
279
283
  });
284
+ var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.object({
285
+ max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
286
+ max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
287
+ expiry_duration_type: import_v42.z.string(),
288
+ expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
289
+ });
280
290
  var attachUpsertLicenseExpiryOutboundSchema = import_v42.z.object({
281
291
  duration: import_v42.z.string(),
282
292
  length: import_v42.z.number()
283
293
  });
294
+ var attachCreditSchemaUpsertLicense3OutboundSchema = import_v42.z.object({
295
+ metered_feature_id: import_v42.z.string(),
296
+ excluded: import_v42.z.literal(true)
297
+ });
284
298
  var attachDimensionsUpsertLicenseMatch4OutboundSchema = import_v42.z.union([
285
299
  import_v42.z.string(),
286
300
  import_v42.z.number(),
@@ -416,7 +430,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = import_v42.z.object({
416
430
  });
417
431
  var attachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v42.z.union([
418
432
  attachCreditSchemaUpsertLicense1OutboundSchema,
419
- attachCreditSchemaUpsertLicense2OutboundSchema
433
+ attachCreditSchemaUpsertLicense2OutboundSchema,
434
+ attachCreditSchemaUpsertLicense3OutboundSchema
420
435
  ]);
421
436
  var attachUpsertLicenseProviderMarkupsOutboundSchema = import_v42.z.object({
422
437
  markup: import_v42.z.number()
@@ -442,7 +457,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = import_v42.z.object({
442
457
  import_v42.z.array(
443
458
  import_v42.z.union([
444
459
  attachCreditSchemaUpsertLicense1OutboundSchema,
445
- attachCreditSchemaUpsertLicense2OutboundSchema
460
+ attachCreditSchemaUpsertLicense2OutboundSchema,
461
+ attachCreditSchemaUpsertLicense3OutboundSchema
446
462
  ])
447
463
  ),
448
464
  import_v42.z.undefined()
@@ -588,7 +604,6 @@ var attachUpsertLicenseThresholdBillingSchema = import_v42.z.any();
588
604
  var attachUpsertLicenseResetSchema = import_v42.z.any();
589
605
  var attachUpsertLicensePriceSchema = import_v42.z.any();
590
606
  var attachUpsertLicenseProrationSchema = import_v42.z.any();
591
- var attachUpsertLicenseRolloverSchema = import_v42.z.any();
592
607
  var attachUpsertLicenseBasePriceSchema = import_v42.z.any();
593
608
  var attachBasePriceSchema = import_v42.z.any();
594
609
  var attachItemPlanItemSchema = import_v42.z.any();
@@ -603,7 +618,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = import_v42.z.any();
603
618
  var attachUpsertLicenseResetOutboundSchema = import_v42.z.any();
604
619
  var attachUpsertLicensePriceOutboundSchema = import_v42.z.any();
605
620
  var attachUpsertLicenseProrationOutboundSchema = import_v42.z.any();
606
- var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.any();
607
621
  var attachUpsertLicenseBasePriceOutboundSchema = import_v42.z.any();
608
622
  var attachBasePriceOutboundSchema = import_v42.z.any();
609
623
  var attachItemPlanItemOutboundSchema = import_v42.z.any();
@@ -613,6 +627,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = import_v42.z.any();
613
627
  var attachBillingControlsOutboundSchema = import_v42.z.any();
614
628
  var attachFeatureQuantityOutboundSchema = import_v42.z.any();
615
629
  var attachFreeTrialParamsOutboundSchema = import_v42.z.any();
630
+ var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
631
+ var attachUpsertLicenseRolloverSchema = import_v42.z.object({
632
+ max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
633
+ maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
634
+ expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
635
+ expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
636
+ });
616
637
  var attachUpsertLicenseDurationSchema = closedEnumSchema2;
617
638
  var attachUpsertLicenseExpirySchema = import_v42.z.object({
618
639
  duration: attachUpsertLicenseDurationSchema,
@@ -706,14 +727,16 @@ var attachCreditSchemaUpsertLicense1Schema = import_v42.z.object({
706
727
  });
707
728
  var attachUpsertLicenseCreditSchemaUnionSchema = import_v42.z.union([
708
729
  attachCreditSchemaUpsertLicense1Schema,
709
- attachCreditSchemaUpsertLicense2Schema
730
+ attachCreditSchemaUpsertLicense2Schema,
731
+ attachCreditSchemaUpsertLicense3Schema
710
732
  ]);
711
733
  var attachUpsertLicenseFeatureOverrideSchema = import_v42.z.object({
712
734
  creditSchema: import_v42.z.union([
713
735
  import_v42.z.array(
714
736
  import_v42.z.union([
715
737
  attachCreditSchemaUpsertLicense1Schema,
716
- attachCreditSchemaUpsertLicense2Schema
738
+ attachCreditSchemaUpsertLicense2Schema,
739
+ attachCreditSchemaUpsertLicense3Schema
717
740
  ])
718
741
  ),
719
742
  import_v42.z.undefined()
@@ -1607,6 +1630,10 @@ var listPlansItemDisplaySchema = import_v48.z.object({
1607
1630
  primaryText: import_v48.z.string(),
1608
1631
  secondaryText: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
1609
1632
  });
1633
+ var listPlansCreditSchemaItemFeatureOverride3Schema = import_v48.z.object({
1634
+ meteredFeatureId: import_v48.z.string(),
1635
+ excluded: import_v48.z.literal(true)
1636
+ });
1610
1637
  var listPlansDimensionsItem4Schema = import_v48.z.object({
1611
1638
  match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
1612
1639
  priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
@@ -1708,6 +1735,10 @@ var listPlansVariantDetailsPriceTierSchema = import_v48.z.object({
1708
1735
  import_v48.z.undefined()
1709
1736
  ]).optional()
1710
1737
  });
1738
+ var listPlansCreditSchemaVariantDetails3Schema = import_v48.z.object({
1739
+ meteredFeatureId: import_v48.z.string(),
1740
+ excluded: import_v48.z.literal(true)
1741
+ });
1711
1742
  var listPlansDimensionsVariantDetails4Schema = import_v48.z.object({
1712
1743
  match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
1713
1744
  priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
@@ -1750,9 +1781,6 @@ var listPlansVariantDetailsMarkupsSchema = import_v48.z.object({
1750
1781
  var listPlansVariantDetailsUsageLimitFilterSchema = import_v48.z.object({
1751
1782
  properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
1752
1783
  });
1753
- var listPlansVariantDetailsUsageAlertFilterSchema = import_v48.z.object({
1754
- properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
1755
- });
1756
1784
  var listPlansParamsOutboundSchema = import_v48.z.object({
1757
1785
  customer_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
1758
1786
  entity_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
@@ -1899,14 +1927,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = import_v48.z.object({
1899
1927
  });
1900
1928
  var listPlansItemCreditSchemaUnionSchema = import_v48.z.union([
1901
1929
  listPlansCreditSchemaItemFeatureOverride1Schema,
1902
- listPlansCreditSchemaItemFeatureOverride2Schema
1930
+ listPlansCreditSchemaItemFeatureOverride2Schema,
1931
+ listPlansCreditSchemaItemFeatureOverride3Schema
1903
1932
  ]);
1904
1933
  var listPlansItemFeatureOverrideSchema = import_v48.z.object({
1905
1934
  creditSchema: import_v48.z.union([
1906
1935
  import_v48.z.array(
1907
1936
  import_v48.z.union([
1908
1937
  listPlansCreditSchemaItemFeatureOverride1Schema,
1909
- listPlansCreditSchemaItemFeatureOverride2Schema
1938
+ listPlansCreditSchemaItemFeatureOverride2Schema,
1939
+ listPlansCreditSchemaItemFeatureOverride3Schema
1910
1940
  ])
1911
1941
  ),
1912
1942
  import_v48.z.undefined()
@@ -2132,14 +2162,16 @@ var listPlansCreditSchemaVariantDetails1Schema = import_v48.z.object({
2132
2162
  });
2133
2163
  var listPlansVariantDetailsCreditSchemaUnionSchema = import_v48.z.union([
2134
2164
  listPlansCreditSchemaVariantDetails1Schema,
2135
- listPlansCreditSchemaVariantDetails2Schema
2165
+ listPlansCreditSchemaVariantDetails2Schema,
2166
+ listPlansCreditSchemaVariantDetails3Schema
2136
2167
  ]);
2137
2168
  var listPlansVariantDetailsFeatureOverrideSchema = import_v48.z.object({
2138
2169
  creditSchema: import_v48.z.union([
2139
2170
  import_v48.z.array(
2140
2171
  import_v48.z.union([
2141
2172
  listPlansCreditSchemaVariantDetails1Schema,
2142
- listPlansCreditSchemaVariantDetails2Schema
2173
+ listPlansCreditSchemaVariantDetails2Schema,
2174
+ listPlansCreditSchemaVariantDetails3Schema
2143
2175
  ])
2144
2176
  ),
2145
2177
  import_v48.z.undefined()
@@ -2221,20 +2253,13 @@ var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
2221
2253
  anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
2222
2254
  filter: import_v48.z.union([listPlansVariantDetailsUsageLimitFilterSchema, import_v48.z.undefined()]).optional()
2223
2255
  });
2224
- var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
2225
- var listPlansVariantDetailsBasisSchema = openEnumSchema6;
2226
- var listPlansVariantDetailsUsageAlertSchema = import_v48.z.object({
2227
- featureId: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
2228
- enabled: import_v48.z.boolean(),
2229
- threshold: import_v48.z.number(),
2230
- thresholdType: listPlansVariantDetailsThresholdTypeSchema,
2231
- basis: listPlansVariantDetailsBasisSchema,
2232
- filter: import_v48.z.union([listPlansVariantDetailsUsageAlertFilterSchema, import_v48.z.undefined()]).optional(),
2233
- name: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
2234
- });
2235
2256
 
2236
2257
  // src/generated/listPlansSchemas.ts
2237
2258
  var import_v49 = require("zod/v4");
2259
+ var variantConfigSchema = import_v49.z.object({
2260
+ ignorePastDue: import_v49.z.boolean(),
2261
+ anchorToMonthStart: import_v49.z.boolean()
2262
+ });
2238
2263
  var variantPlanUsageLimitFilterSchema = import_v49.z.object({
2239
2264
  properties: import_v49.z.record(import_v49.z.string(), import_v49.z.string())
2240
2265
  });
@@ -2246,15 +2271,11 @@ var variantPlanOverageAllowedSchema = import_v49.z.object({
2246
2271
  enabled: import_v49.z.boolean()
2247
2272
  });
2248
2273
  var openEnumSchema7 = import_v49.z.any();
2249
- var variantPlanUsageLimitIntervalSchema = import_v49.z.any();
2250
- var variantPlanAutoTopupSchema = import_v49.z.any();
2251
- var variantPlanSpendLimitSchema = import_v49.z.any();
2252
2274
  var variantPlanPriceSchema = import_v49.z.any();
2253
2275
  var variantItemSchema = import_v49.z.any();
2254
2276
  var variantProcessorsSchema = import_v49.z.any();
2255
2277
  var variantFreeTrialSchema = import_v49.z.any();
2256
2278
  var variantEnvSchema = import_v49.z.any();
2257
- var variantConfigSchema = import_v49.z.any();
2258
2279
  var listPlansVariantCustomizeSchema = import_v49.z.any();
2259
2280
  var listPlansPriceSchema2 = import_v49.z.any();
2260
2281
  var listPlansItemSchema2 = import_v49.z.any();
@@ -2266,6 +2287,29 @@ var listPlansBillingControlsSchema2 = import_v49.z.any();
2266
2287
  var listPlansCustomerEligibilitySchema2 = import_v49.z.any();
2267
2288
  var listPlansVariantDetailsSchema = import_v49.z.any();
2268
2289
  var listPlansLicenseSchema = import_v49.z.any();
2290
+ var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
2291
+ var variantPlanPurchaseLimitSchema = import_v49.z.object({
2292
+ interval: variantPlanAutoTopupIntervalSchema,
2293
+ intervalCount: import_v49.z.number(),
2294
+ limit: import_v49.z.number()
2295
+ });
2296
+ var variantPlanAutoTopupSchema = import_v49.z.object({
2297
+ featureId: import_v49.z.string(),
2298
+ enabled: import_v49.z.boolean(),
2299
+ threshold: import_v49.z.number(),
2300
+ quantity: import_v49.z.number(),
2301
+ purchaseLimit: import_v49.z.union([variantPlanPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
2302
+ invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
2303
+ });
2304
+ var variantPlanLimitTypeSchema = openEnumSchema7;
2305
+ var variantPlanSpendLimitSchema = import_v49.z.object({
2306
+ featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
2307
+ enabled: import_v49.z.boolean(),
2308
+ limitType: import_v49.z.union([variantPlanLimitTypeSchema, import_v49.z.undefined()]).optional(),
2309
+ overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
2310
+ skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
2311
+ });
2312
+ var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
2269
2313
  var variantPlanAnchorSchema = openEnumSchema7;
2270
2314
  var variantPlanUsageLimitSchema = import_v49.z.object({
2271
2315
  featureId: import_v49.z.string(),
@@ -2389,6 +2433,10 @@ var multiAttachPriceTierSchema = import_v410.z.object({
2389
2433
  flatAmount: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
2390
2434
  additionalCurrencies: import_v410.z.union([import_v410.z.array(multiAttachTierAdditionalCurrencySchema), import_v410.z.undefined()]).optional()
2391
2435
  });
2436
+ var multiAttachCreditSchema3Schema = import_v410.z.object({
2437
+ meteredFeatureId: import_v410.z.string(),
2438
+ excluded: import_v410.z.literal(true)
2439
+ });
2392
2440
  var multiAttachDimensionsMatch4Schema = import_v410.z.union([
2393
2441
  import_v410.z.string(),
2394
2442
  import_v410.z.number(),
@@ -2567,6 +2615,10 @@ var multiAttachExpiryOutboundSchema = import_v410.z.object({
2567
2615
  duration: import_v410.z.string(),
2568
2616
  length: import_v410.z.number()
2569
2617
  });
2618
+ var multiAttachCreditSchema3OutboundSchema = import_v410.z.object({
2619
+ metered_feature_id: import_v410.z.string(),
2620
+ excluded: import_v410.z.literal(true)
2621
+ });
2570
2622
  var multiAttachDimensionsMatch4OutboundSchema = import_v410.z.union([
2571
2623
  import_v410.z.string(),
2572
2624
  import_v410.z.number(),
@@ -2702,7 +2754,8 @@ var multiAttachCreditSchema1OutboundSchema = import_v410.z.object({
2702
2754
  });
2703
2755
  var multiAttachCreditSchemaUnionOutboundSchema = import_v410.z.union([
2704
2756
  multiAttachCreditSchema1OutboundSchema,
2705
- multiAttachCreditSchema2OutboundSchema
2757
+ multiAttachCreditSchema2OutboundSchema,
2758
+ multiAttachCreditSchema3OutboundSchema
2706
2759
  ]);
2707
2760
  var multiAttachProviderMarkupsOutboundSchema = import_v410.z.object({
2708
2761
  markup: import_v410.z.number()
@@ -2728,7 +2781,8 @@ var multiAttachFeatureOverrideOutboundSchema = import_v410.z.object({
2728
2781
  import_v410.z.array(
2729
2782
  import_v410.z.union([
2730
2783
  multiAttachCreditSchema1OutboundSchema,
2731
- multiAttachCreditSchema2OutboundSchema
2784
+ multiAttachCreditSchema2OutboundSchema,
2785
+ multiAttachCreditSchema3OutboundSchema
2732
2786
  ])
2733
2787
  ),
2734
2788
  import_v410.z.undefined()
@@ -2969,14 +3023,16 @@ var multiAttachCreditSchema1Schema = import_v410.z.object({
2969
3023
  });
2970
3024
  var multiAttachCreditSchemaUnionSchema = import_v410.z.union([
2971
3025
  multiAttachCreditSchema1Schema,
2972
- multiAttachCreditSchema2Schema
3026
+ multiAttachCreditSchema2Schema,
3027
+ multiAttachCreditSchema3Schema
2973
3028
  ]);
2974
3029
  var multiAttachFeatureOverrideSchema = import_v410.z.object({
2975
3030
  creditSchema: import_v410.z.union([
2976
3031
  import_v410.z.array(
2977
3032
  import_v410.z.union([
2978
3033
  multiAttachCreditSchema1Schema,
2979
- multiAttachCreditSchema2Schema
3034
+ multiAttachCreditSchema2Schema,
3035
+ multiAttachCreditSchema3Schema
2980
3036
  ])
2981
3037
  ),
2982
3038
  import_v410.z.undefined()
@@ -3142,6 +3198,10 @@ var openCustomerPortalParamsOutboundSchema = import_v411.z.object({
3142
3198
 
3143
3199
  // src/generated/previewAttachSchemas.ts
3144
3200
  var import_v412 = require("zod/v4");
3201
+ var previewAttachCreditSchemaUpsertLicense3Schema = import_v412.z.object({
3202
+ meteredFeatureId: import_v412.z.string(),
3203
+ excluded: import_v412.z.literal(true)
3204
+ });
3145
3205
  var previewAttachDimensionsUpsertLicenseMatch4Schema = import_v412.z.union([
3146
3206
  import_v412.z.string(),
3147
3207
  import_v412.z.number(),
@@ -3338,10 +3398,20 @@ var previewAttachInvoiceCreditsSchema = import_v412.z.object({
3338
3398
  applied: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3339
3399
  currency: import_v412.z.string()
3340
3400
  });
3401
+ var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.object({
3402
+ max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3403
+ max_percentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3404
+ expiry_duration_type: import_v412.z.string(),
3405
+ expiry_duration_length: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
3406
+ });
3341
3407
  var previewAttachUpsertLicenseExpiryOutboundSchema = import_v412.z.object({
3342
3408
  duration: import_v412.z.string(),
3343
3409
  length: import_v412.z.number()
3344
3410
  });
3411
+ var previewAttachCreditSchemaUpsertLicense3OutboundSchema = import_v412.z.object({
3412
+ metered_feature_id: import_v412.z.string(),
3413
+ excluded: import_v412.z.literal(true)
3414
+ });
3345
3415
  var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = import_v412.z.union(
3346
3416
  [import_v412.z.string(), import_v412.z.number(), import_v412.z.boolean()]
3347
3417
  );
@@ -3466,7 +3536,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = import_v412.z.object
3466
3536
  });
3467
3537
  var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v412.z.union([
3468
3538
  previewAttachCreditSchemaUpsertLicense1OutboundSchema,
3469
- previewAttachCreditSchemaUpsertLicense2OutboundSchema
3539
+ previewAttachCreditSchemaUpsertLicense2OutboundSchema,
3540
+ previewAttachCreditSchemaUpsertLicense3OutboundSchema
3470
3541
  ]);
3471
3542
  var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = import_v412.z.object(
3472
3543
  {
@@ -3501,7 +3572,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = import_v412.z.obje
3501
3572
  import_v412.z.array(
3502
3573
  import_v412.z.union([
3503
3574
  previewAttachCreditSchemaUpsertLicense1OutboundSchema,
3504
- previewAttachCreditSchemaUpsertLicense2OutboundSchema
3575
+ previewAttachCreditSchemaUpsertLicense2OutboundSchema,
3576
+ previewAttachCreditSchemaUpsertLicense3OutboundSchema
3505
3577
  ])
3506
3578
  ),
3507
3579
  import_v412.z.undefined()
@@ -3655,7 +3727,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = import_v412.z.any();
3655
3727
  var previewAttachUpsertLicenseResetSchema = import_v412.z.any();
3656
3728
  var previewAttachUpsertLicensePriceSchema = import_v412.z.any();
3657
3729
  var previewAttachUpsertLicenseProrationSchema = import_v412.z.any();
3658
- var previewAttachUpsertLicenseRolloverSchema = import_v412.z.any();
3659
3730
  var previewAttachUpsertLicenseBasePriceSchema = import_v412.z.any();
3660
3731
  var previewAttachBasePriceSchema = import_v412.z.any();
3661
3732
  var previewAttachItemPlanItemSchema = import_v412.z.any();
@@ -3671,7 +3742,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = import_v412.z.any
3671
3742
  var previewAttachUpsertLicenseResetOutboundSchema = import_v412.z.any();
3672
3743
  var previewAttachUpsertLicensePriceOutboundSchema = import_v412.z.any();
3673
3744
  var previewAttachUpsertLicenseProrationOutboundSchema = import_v412.z.any();
3674
- var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.any();
3675
3745
  var previewAttachUpsertLicenseBasePriceOutboundSchema = import_v412.z.any();
3676
3746
  var previewAttachBasePriceOutboundSchema = import_v412.z.any();
3677
3747
  var previewAttachItemPlanItemOutboundSchema = import_v412.z.any();
@@ -3681,6 +3751,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = import_v412.z.any();
3681
3751
  var previewAttachBillingControlsOutboundSchema = import_v412.z.any();
3682
3752
  var previewAttachFeatureQuantityRequestBodyOutboundSchema = import_v412.z.any();
3683
3753
  var previewAttachFreeTrialParamsOutboundSchema = import_v412.z.any();
3754
+ var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
3755
+ var previewAttachUpsertLicenseRolloverSchema = import_v412.z.object({
3756
+ max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3757
+ maxPercentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3758
+ expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
3759
+ expiryDurationLength: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
3760
+ });
3684
3761
  var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
3685
3762
  var previewAttachUpsertLicenseExpirySchema = import_v412.z.object({
3686
3763
  duration: previewAttachUpsertLicenseDurationSchema,
@@ -3774,14 +3851,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = import_v412.z.object({
3774
3851
  });
3775
3852
  var previewAttachUpsertLicenseCreditSchemaUnionSchema = import_v412.z.union([
3776
3853
  previewAttachCreditSchemaUpsertLicense1Schema,
3777
- previewAttachCreditSchemaUpsertLicense2Schema
3854
+ previewAttachCreditSchemaUpsertLicense2Schema,
3855
+ previewAttachCreditSchemaUpsertLicense3Schema
3778
3856
  ]);
3779
3857
  var previewAttachUpsertLicenseFeatureOverrideSchema = import_v412.z.object({
3780
3858
  creditSchema: import_v412.z.union([
3781
3859
  import_v412.z.array(
3782
3860
  import_v412.z.union([
3783
3861
  previewAttachCreditSchemaUpsertLicense1Schema,
3784
- previewAttachCreditSchemaUpsertLicense2Schema
3862
+ previewAttachCreditSchemaUpsertLicense2Schema,
3863
+ previewAttachCreditSchemaUpsertLicense3Schema
3785
3864
  ])
3786
3865
  ),
3787
3866
  import_v412.z.undefined()
@@ -4138,6 +4217,10 @@ var previewMultiAttachPriceTierSchema = import_v413.z.object({
4138
4217
  import_v413.z.undefined()
4139
4218
  ]).optional()
4140
4219
  });
4220
+ var previewMultiAttachCreditSchema3Schema = import_v413.z.object({
4221
+ meteredFeatureId: import_v413.z.string(),
4222
+ excluded: import_v413.z.literal(true)
4223
+ });
4141
4224
  var previewMultiAttachDimensionsMatch4Schema = import_v413.z.union([
4142
4225
  import_v413.z.string(),
4143
4226
  import_v413.z.number(),
@@ -4384,6 +4467,10 @@ var previewMultiAttachExpiryOutboundSchema = import_v413.z.object({
4384
4467
  duration: import_v413.z.string(),
4385
4468
  length: import_v413.z.number()
4386
4469
  });
4470
+ var previewMultiAttachCreditSchema3OutboundSchema = import_v413.z.object({
4471
+ metered_feature_id: import_v413.z.string(),
4472
+ excluded: import_v413.z.literal(true)
4473
+ });
4387
4474
  var previewMultiAttachDimensionsMatch4OutboundSchema = import_v413.z.union([
4388
4475
  import_v413.z.string(),
4389
4476
  import_v413.z.number(),
@@ -4519,7 +4606,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = import_v413.z.object({
4519
4606
  });
4520
4607
  var previewMultiAttachCreditSchemaUnionOutboundSchema = import_v413.z.union([
4521
4608
  previewMultiAttachCreditSchema1OutboundSchema,
4522
- previewMultiAttachCreditSchema2OutboundSchema
4609
+ previewMultiAttachCreditSchema2OutboundSchema,
4610
+ previewMultiAttachCreditSchema3OutboundSchema
4523
4611
  ]);
4524
4612
  var previewMultiAttachProviderMarkupsOutboundSchema = import_v413.z.object({
4525
4613
  markup: import_v413.z.number()
@@ -4545,7 +4633,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = import_v413.z.object({
4545
4633
  import_v413.z.array(
4546
4634
  import_v413.z.union([
4547
4635
  previewMultiAttachCreditSchema1OutboundSchema,
4548
- previewMultiAttachCreditSchema2OutboundSchema
4636
+ previewMultiAttachCreditSchema2OutboundSchema,
4637
+ previewMultiAttachCreditSchema3OutboundSchema
4549
4638
  ])
4550
4639
  ),
4551
4640
  import_v413.z.undefined()
@@ -4808,14 +4897,16 @@ var previewMultiAttachCreditSchema1Schema = import_v413.z.object({
4808
4897
  });
4809
4898
  var previewMultiAttachCreditSchemaUnionSchema = import_v413.z.union([
4810
4899
  previewMultiAttachCreditSchema1Schema,
4811
- previewMultiAttachCreditSchema2Schema
4900
+ previewMultiAttachCreditSchema2Schema,
4901
+ previewMultiAttachCreditSchema3Schema
4812
4902
  ]);
4813
4903
  var previewMultiAttachFeatureOverrideSchema = import_v413.z.object({
4814
4904
  creditSchema: import_v413.z.union([
4815
4905
  import_v413.z.array(
4816
4906
  import_v413.z.union([
4817
4907
  previewMultiAttachCreditSchema1Schema,
4818
- previewMultiAttachCreditSchema2Schema
4908
+ previewMultiAttachCreditSchema2Schema,
4909
+ previewMultiAttachCreditSchema3Schema
4819
4910
  ])
4820
4911
  ),
4821
4912
  import_v413.z.undefined()
@@ -4996,6 +5087,10 @@ var previewMultiAttachParamsOutboundSchema = import_v413.z.object({
4996
5087
 
4997
5088
  // src/generated/previewUpdateSubscriptionSchemas.ts
4998
5089
  var import_v414 = require("zod/v4");
5090
+ var previewUpdateCreditSchemaUpsertLicense3Schema = import_v414.z.object({
5091
+ meteredFeatureId: import_v414.z.string(),
5092
+ excluded: import_v414.z.literal(true)
5093
+ });
4999
5094
  var previewUpdateDimensionsUpsertLicenseMatch4Schema = import_v414.z.union([
5000
5095
  import_v414.z.string(),
5001
5096
  import_v414.z.number(),
@@ -5172,10 +5267,20 @@ var previewUpdateInvoiceCreditsSchema = import_v414.z.object({
5172
5267
  applied: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5173
5268
  currency: import_v414.z.string()
5174
5269
  });
5270
+ var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.object({
5271
+ max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5272
+ max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5273
+ expiry_duration_type: import_v414.z.string(),
5274
+ expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
5275
+ });
5175
5276
  var previewUpdateUpsertLicenseExpiryOutboundSchema = import_v414.z.object({
5176
5277
  duration: import_v414.z.string(),
5177
5278
  length: import_v414.z.number()
5178
5279
  });
5280
+ var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v414.z.object({
5281
+ metered_feature_id: import_v414.z.string(),
5282
+ excluded: import_v414.z.literal(true)
5283
+ });
5179
5284
  var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v414.z.union(
5180
5285
  [import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()]
5181
5286
  );
@@ -5300,7 +5405,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v414.z.object
5300
5405
  });
5301
5406
  var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v414.z.union([
5302
5407
  previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
5303
- previewUpdateCreditSchemaUpsertLicense2OutboundSchema
5408
+ previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
5409
+ previewUpdateCreditSchemaUpsertLicense3OutboundSchema
5304
5410
  ]);
5305
5411
  var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v414.z.object(
5306
5412
  {
@@ -5335,7 +5441,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v414.z.obje
5335
5441
  import_v414.z.array(
5336
5442
  import_v414.z.union([
5337
5443
  previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
5338
- previewUpdateCreditSchemaUpsertLicense2OutboundSchema
5444
+ previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
5445
+ previewUpdateCreditSchemaUpsertLicense3OutboundSchema
5339
5446
  ])
5340
5447
  ),
5341
5448
  import_v414.z.undefined()
@@ -5461,7 +5568,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = import_v414.z.any();
5461
5568
  var previewUpdateUpsertLicenseResetSchema = import_v414.z.any();
5462
5569
  var previewUpdateUpsertLicensePriceSchema = import_v414.z.any();
5463
5570
  var previewUpdateUpsertLicenseProrationSchema = import_v414.z.any();
5464
- var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.any();
5465
5571
  var previewUpdateUpsertLicenseBasePriceSchema = import_v414.z.any();
5466
5572
  var previewUpdateBasePriceSchema = import_v414.z.any();
5467
5573
  var previewUpdateItemPlanItemSchema = import_v414.z.any();
@@ -5477,7 +5583,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v414.z.any
5477
5583
  var previewUpdateUpsertLicenseResetOutboundSchema = import_v414.z.any();
5478
5584
  var previewUpdateUpsertLicensePriceOutboundSchema = import_v414.z.any();
5479
5585
  var previewUpdateUpsertLicenseProrationOutboundSchema = import_v414.z.any();
5480
- var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.any();
5481
5586
  var previewUpdateUpsertLicenseBasePriceOutboundSchema = import_v414.z.any();
5482
5587
  var previewUpdateBasePriceOutboundSchema = import_v414.z.any();
5483
5588
  var previewUpdateItemPlanItemOutboundSchema = import_v414.z.any();
@@ -5487,6 +5592,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = import_v414.z.any();
5487
5592
  var previewUpdateBillingControlsOutboundSchema = import_v414.z.any();
5488
5593
  var previewUpdateFeatureQuantityRequestBodyOutboundSchema = import_v414.z.any();
5489
5594
  var previewUpdateFreeTrialParamsOutboundSchema = import_v414.z.any();
5595
+ var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
5596
+ var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.object({
5597
+ max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5598
+ maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5599
+ expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
5600
+ expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
5601
+ });
5490
5602
  var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
5491
5603
  var previewUpdateUpsertLicenseExpirySchema = import_v414.z.object({
5492
5604
  duration: previewUpdateUpsertLicenseDurationSchema,
@@ -5580,14 +5692,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = import_v414.z.object({
5580
5692
  });
5581
5693
  var previewUpdateUpsertLicenseCreditSchemaUnionSchema = import_v414.z.union([
5582
5694
  previewUpdateCreditSchemaUpsertLicense1Schema,
5583
- previewUpdateCreditSchemaUpsertLicense2Schema
5695
+ previewUpdateCreditSchemaUpsertLicense2Schema,
5696
+ previewUpdateCreditSchemaUpsertLicense3Schema
5584
5697
  ]);
5585
5698
  var previewUpdateUpsertLicenseFeatureOverrideSchema = import_v414.z.object({
5586
5699
  creditSchema: import_v414.z.union([
5587
5700
  import_v414.z.array(
5588
5701
  import_v414.z.union([
5589
5702
  previewUpdateCreditSchemaUpsertLicense1Schema,
5590
- previewUpdateCreditSchemaUpsertLicense2Schema
5703
+ previewUpdateCreditSchemaUpsertLicense2Schema,
5704
+ previewUpdateCreditSchemaUpsertLicense3Schema
5591
5705
  ])
5592
5706
  ),
5593
5707
  import_v414.z.undefined()
@@ -5901,6 +6015,10 @@ var redeemReferralCodeParamsOutboundSchema = import_v415.z.object({
5901
6015
 
5902
6016
  // src/generated/setupPaymentSchemas.ts
5903
6017
  var import_v416 = require("zod/v4");
6018
+ var setupPaymentCreditSchemaUpsertLicense3Schema = import_v416.z.object({
6019
+ meteredFeatureId: import_v416.z.string(),
6020
+ excluded: import_v416.z.literal(true)
6021
+ });
5904
6022
  var setupPaymentDimensionsUpsertLicenseMatch4Schema = import_v416.z.union([
5905
6023
  import_v416.z.string(),
5906
6024
  import_v416.z.number(),
@@ -6030,10 +6148,20 @@ var setupPaymentResponseSchema = import_v416.z.object({
6030
6148
  entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
6031
6149
  url: import_v416.z.string()
6032
6150
  });
6151
+ var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.object({
6152
+ max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6153
+ max_percentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6154
+ expiry_duration_type: import_v416.z.string(),
6155
+ expiry_duration_length: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
6156
+ });
6033
6157
  var setupPaymentUpsertLicenseExpiryOutboundSchema = import_v416.z.object({
6034
6158
  duration: import_v416.z.string(),
6035
6159
  length: import_v416.z.number()
6036
6160
  });
6161
+ var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = import_v416.z.object({
6162
+ metered_feature_id: import_v416.z.string(),
6163
+ excluded: import_v416.z.literal(true)
6164
+ });
6037
6165
  var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = import_v416.z.union([
6038
6166
  import_v416.z.string(),
6039
6167
  import_v416.z.number(),
@@ -6157,7 +6285,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = import_v416.z.object(
6157
6285
  var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = import_v416.z.union(
6158
6286
  [
6159
6287
  setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
6160
- setupPaymentCreditSchemaUpsertLicense2OutboundSchema
6288
+ setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
6289
+ setupPaymentCreditSchemaUpsertLicense3OutboundSchema
6161
6290
  ]
6162
6291
  );
6163
6292
  var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = import_v416.z.object({
@@ -6187,7 +6316,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = import_v416.z.objec
6187
6316
  import_v416.z.array(
6188
6317
  import_v416.z.union([
6189
6318
  setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
6190
- setupPaymentCreditSchemaUpsertLicense2OutboundSchema
6319
+ setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
6320
+ setupPaymentCreditSchemaUpsertLicense3OutboundSchema
6191
6321
  ])
6192
6322
  ),
6193
6323
  import_v416.z.undefined()
@@ -6331,7 +6461,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = import_v416.z.any();
6331
6461
  var setupPaymentUpsertLicenseResetSchema = import_v416.z.any();
6332
6462
  var setupPaymentUpsertLicensePriceSchema = import_v416.z.any();
6333
6463
  var setupPaymentUpsertLicenseProrationSchema = import_v416.z.any();
6334
- var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.any();
6335
6464
  var setupPaymentUpsertLicenseBasePriceSchema = import_v416.z.any();
6336
6465
  var setupPaymentBasePriceSchema = import_v416.z.any();
6337
6466
  var setupPaymentItemPlanItemSchema = import_v416.z.any();
@@ -6345,7 +6474,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = import_v416.z.any(
6345
6474
  var setupPaymentUpsertLicenseResetOutboundSchema = import_v416.z.any();
6346
6475
  var setupPaymentUpsertLicensePriceOutboundSchema = import_v416.z.any();
6347
6476
  var setupPaymentUpsertLicenseProrationOutboundSchema = import_v416.z.any();
6348
- var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.any();
6349
6477
  var setupPaymentUpsertLicenseBasePriceOutboundSchema = import_v416.z.any();
6350
6478
  var setupPaymentBasePriceOutboundSchema = import_v416.z.any();
6351
6479
  var setupPaymentItemPlanItemOutboundSchema = import_v416.z.any();
@@ -6355,6 +6483,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = import_v416.z.any();
6355
6483
  var setupPaymentBillingControlsOutboundSchema = import_v416.z.any();
6356
6484
  var setupPaymentFeatureQuantityOutboundSchema = import_v416.z.any();
6357
6485
  var setupPaymentFreeTrialParamsOutboundSchema = import_v416.z.any();
6486
+ var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
6487
+ var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.object({
6488
+ max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6489
+ maxPercentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6490
+ expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
6491
+ expiryDurationLength: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
6492
+ });
6358
6493
  var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
6359
6494
  var setupPaymentUpsertLicenseExpirySchema = import_v416.z.object({
6360
6495
  duration: setupPaymentUpsertLicenseDurationSchema,
@@ -6448,14 +6583,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = import_v416.z.object({
6448
6583
  });
6449
6584
  var setupPaymentUpsertLicenseCreditSchemaUnionSchema = import_v416.z.union([
6450
6585
  setupPaymentCreditSchemaUpsertLicense1Schema,
6451
- setupPaymentCreditSchemaUpsertLicense2Schema
6586
+ setupPaymentCreditSchemaUpsertLicense2Schema,
6587
+ setupPaymentCreditSchemaUpsertLicense3Schema
6452
6588
  ]);
6453
6589
  var setupPaymentUpsertLicenseFeatureOverrideSchema = import_v416.z.object({
6454
6590
  creditSchema: import_v416.z.union([
6455
6591
  import_v416.z.array(
6456
6592
  import_v416.z.union([
6457
6593
  setupPaymentCreditSchemaUpsertLicense1Schema,
6458
- setupPaymentCreditSchemaUpsertLicense2Schema
6594
+ setupPaymentCreditSchemaUpsertLicense2Schema,
6595
+ setupPaymentCreditSchemaUpsertLicense3Schema
6459
6596
  ])
6460
6597
  ),
6461
6598
  import_v416.z.undefined()
@@ -6706,6 +6843,10 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
6706
6843
 
6707
6844
  // src/generated/updateSubscriptionSchemas.ts
6708
6845
  var import_v417 = require("zod/v4");
6846
+ var billingUpdateCreditSchemaUpsertLicense3Schema = import_v417.z.object({
6847
+ meteredFeatureId: import_v417.z.string(),
6848
+ excluded: import_v417.z.literal(true)
6849
+ });
6709
6850
  var billingUpdateDimensionsUpsertLicenseMatch4Schema = import_v417.z.union([
6710
6851
  import_v417.z.string(),
6711
6852
  import_v417.z.number(),
@@ -6817,10 +6958,20 @@ var billingUpdateInvoiceSchema = import_v417.z.object({
6817
6958
  currency: import_v417.z.string(),
6818
6959
  hostedInvoiceUrl: import_v417.z.string().nullable()
6819
6960
  });
6961
+ var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.object({
6962
+ max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
6963
+ max_percentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
6964
+ expiry_duration_type: import_v417.z.string(),
6965
+ expiry_duration_length: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
6966
+ });
6820
6967
  var billingUpdateUpsertLicenseExpiryOutboundSchema = import_v417.z.object({
6821
6968
  duration: import_v417.z.string(),
6822
6969
  length: import_v417.z.number()
6823
6970
  });
6971
+ var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v417.z.object({
6972
+ metered_feature_id: import_v417.z.string(),
6973
+ excluded: import_v417.z.literal(true)
6974
+ });
6824
6975
  var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v417.z.union(
6825
6976
  [import_v417.z.string(), import_v417.z.number(), import_v417.z.boolean()]
6826
6977
  );
@@ -6945,7 +7096,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v417.z.object
6945
7096
  });
6946
7097
  var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v417.z.union([
6947
7098
  billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
6948
- billingUpdateCreditSchemaUpsertLicense2OutboundSchema
7099
+ billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
7100
+ billingUpdateCreditSchemaUpsertLicense3OutboundSchema
6949
7101
  ]);
6950
7102
  var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v417.z.object(
6951
7103
  {
@@ -6980,7 +7132,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v417.z.obje
6980
7132
  import_v417.z.array(
6981
7133
  import_v417.z.union([
6982
7134
  billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
6983
- billingUpdateCreditSchemaUpsertLicense2OutboundSchema
7135
+ billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
7136
+ billingUpdateCreditSchemaUpsertLicense3OutboundSchema
6984
7137
  ])
6985
7138
  ),
6986
7139
  import_v417.z.undefined()
@@ -7106,7 +7259,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = import_v417.z.any();
7106
7259
  var billingUpdateUpsertLicenseResetSchema = import_v417.z.any();
7107
7260
  var billingUpdateUpsertLicensePriceSchema = import_v417.z.any();
7108
7261
  var billingUpdateUpsertLicenseProrationSchema = import_v417.z.any();
7109
- var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.any();
7110
7262
  var billingUpdateUpsertLicenseBasePriceSchema = import_v417.z.any();
7111
7263
  var billingUpdateBasePriceSchema = import_v417.z.any();
7112
7264
  var billingUpdateItemPlanItemSchema = import_v417.z.any();
@@ -7121,7 +7273,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v417.z.any
7121
7273
  var billingUpdateUpsertLicenseResetOutboundSchema = import_v417.z.any();
7122
7274
  var billingUpdateUpsertLicensePriceOutboundSchema = import_v417.z.any();
7123
7275
  var billingUpdateUpsertLicenseProrationOutboundSchema = import_v417.z.any();
7124
- var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.any();
7125
7276
  var billingUpdateUpsertLicenseBasePriceOutboundSchema = import_v417.z.any();
7126
7277
  var billingUpdateBasePriceOutboundSchema = import_v417.z.any();
7127
7278
  var billingUpdateItemPlanItemOutboundSchema = import_v417.z.any();
@@ -7131,6 +7282,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = import_v417.z.any();
7131
7282
  var billingUpdateBillingControlsOutboundSchema = import_v417.z.any();
7132
7283
  var billingUpdateFeatureQuantityOutboundSchema = import_v417.z.any();
7133
7284
  var billingUpdateFreeTrialParamsOutboundSchema = import_v417.z.any();
7285
+ var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
7286
+ var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.object({
7287
+ max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
7288
+ maxPercentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
7289
+ expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
7290
+ expiryDurationLength: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
7291
+ });
7134
7292
  var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
7135
7293
  var billingUpdateUpsertLicenseExpirySchema = import_v417.z.object({
7136
7294
  duration: billingUpdateUpsertLicenseDurationSchema,
@@ -7224,14 +7382,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = import_v417.z.object({
7224
7382
  });
7225
7383
  var billingUpdateUpsertLicenseCreditSchemaUnionSchema = import_v417.z.union([
7226
7384
  billingUpdateCreditSchemaUpsertLicense1Schema,
7227
- billingUpdateCreditSchemaUpsertLicense2Schema
7385
+ billingUpdateCreditSchemaUpsertLicense2Schema,
7386
+ billingUpdateCreditSchemaUpsertLicense3Schema
7228
7387
  ]);
7229
7388
  var billingUpdateUpsertLicenseFeatureOverrideSchema = import_v417.z.object({
7230
7389
  creditSchema: import_v417.z.union([
7231
7390
  import_v417.z.array(
7232
7391
  import_v417.z.union([
7233
7392
  billingUpdateCreditSchemaUpsertLicense1Schema,
7234
- billingUpdateCreditSchemaUpsertLicense2Schema
7393
+ billingUpdateCreditSchemaUpsertLicense2Schema,
7394
+ billingUpdateCreditSchemaUpsertLicense3Schema
7235
7395
  ])
7236
7396
  ),
7237
7397
  import_v417.z.undefined()