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
@@ -132,6 +132,10 @@ var aggregateEventsResponseSchema = import_v4.z.object({
132
132
 
133
133
  // src/generated/attachSchemas.ts
134
134
  var import_v42 = require("zod/v4");
135
+ var attachCreditSchemaUpsertLicense3Schema = import_v42.z.object({
136
+ meteredFeatureId: import_v42.z.string(),
137
+ excluded: import_v42.z.literal(true)
138
+ });
135
139
  var attachDimensionsUpsertLicenseMatch4Schema = import_v42.z.union([
136
140
  import_v42.z.string(),
137
141
  import_v42.z.number(),
@@ -260,10 +264,20 @@ var attachInvoiceSchema = import_v42.z.object({
260
264
  currency: import_v42.z.string(),
261
265
  hostedInvoiceUrl: import_v42.z.string().nullable()
262
266
  });
267
+ var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.object({
268
+ max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
269
+ max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
270
+ expiry_duration_type: import_v42.z.string(),
271
+ expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
272
+ });
263
273
  var attachUpsertLicenseExpiryOutboundSchema = import_v42.z.object({
264
274
  duration: import_v42.z.string(),
265
275
  length: import_v42.z.number()
266
276
  });
277
+ var attachCreditSchemaUpsertLicense3OutboundSchema = import_v42.z.object({
278
+ metered_feature_id: import_v42.z.string(),
279
+ excluded: import_v42.z.literal(true)
280
+ });
267
281
  var attachDimensionsUpsertLicenseMatch4OutboundSchema = import_v42.z.union([
268
282
  import_v42.z.string(),
269
283
  import_v42.z.number(),
@@ -399,7 +413,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = import_v42.z.object({
399
413
  });
400
414
  var attachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v42.z.union([
401
415
  attachCreditSchemaUpsertLicense1OutboundSchema,
402
- attachCreditSchemaUpsertLicense2OutboundSchema
416
+ attachCreditSchemaUpsertLicense2OutboundSchema,
417
+ attachCreditSchemaUpsertLicense3OutboundSchema
403
418
  ]);
404
419
  var attachUpsertLicenseProviderMarkupsOutboundSchema = import_v42.z.object({
405
420
  markup: import_v42.z.number()
@@ -425,7 +440,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = import_v42.z.object({
425
440
  import_v42.z.array(
426
441
  import_v42.z.union([
427
442
  attachCreditSchemaUpsertLicense1OutboundSchema,
428
- attachCreditSchemaUpsertLicense2OutboundSchema
443
+ attachCreditSchemaUpsertLicense2OutboundSchema,
444
+ attachCreditSchemaUpsertLicense3OutboundSchema
429
445
  ])
430
446
  ),
431
447
  import_v42.z.undefined()
@@ -571,7 +587,6 @@ var attachUpsertLicenseThresholdBillingSchema = import_v42.z.any();
571
587
  var attachUpsertLicenseResetSchema = import_v42.z.any();
572
588
  var attachUpsertLicensePriceSchema = import_v42.z.any();
573
589
  var attachUpsertLicenseProrationSchema = import_v42.z.any();
574
- var attachUpsertLicenseRolloverSchema = import_v42.z.any();
575
590
  var attachUpsertLicenseBasePriceSchema = import_v42.z.any();
576
591
  var attachBasePriceSchema = import_v42.z.any();
577
592
  var attachItemPlanItemSchema = import_v42.z.any();
@@ -586,7 +601,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = import_v42.z.any();
586
601
  var attachUpsertLicenseResetOutboundSchema = import_v42.z.any();
587
602
  var attachUpsertLicensePriceOutboundSchema = import_v42.z.any();
588
603
  var attachUpsertLicenseProrationOutboundSchema = import_v42.z.any();
589
- var attachUpsertLicenseRolloverOutboundSchema = import_v42.z.any();
590
604
  var attachUpsertLicenseBasePriceOutboundSchema = import_v42.z.any();
591
605
  var attachBasePriceOutboundSchema = import_v42.z.any();
592
606
  var attachItemPlanItemOutboundSchema = import_v42.z.any();
@@ -596,6 +610,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = import_v42.z.any();
596
610
  var attachBillingControlsOutboundSchema = import_v42.z.any();
597
611
  var attachFeatureQuantityOutboundSchema = import_v42.z.any();
598
612
  var attachFreeTrialParamsOutboundSchema = import_v42.z.any();
613
+ var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
614
+ var attachUpsertLicenseRolloverSchema = import_v42.z.object({
615
+ max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
616
+ maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
617
+ expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
618
+ expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
619
+ });
599
620
  var attachUpsertLicenseDurationSchema = closedEnumSchema2;
600
621
  var attachUpsertLicenseExpirySchema = import_v42.z.object({
601
622
  duration: attachUpsertLicenseDurationSchema,
@@ -689,14 +710,16 @@ var attachCreditSchemaUpsertLicense1Schema = import_v42.z.object({
689
710
  });
690
711
  var attachUpsertLicenseCreditSchemaUnionSchema = import_v42.z.union([
691
712
  attachCreditSchemaUpsertLicense1Schema,
692
- attachCreditSchemaUpsertLicense2Schema
713
+ attachCreditSchemaUpsertLicense2Schema,
714
+ attachCreditSchemaUpsertLicense3Schema
693
715
  ]);
694
716
  var attachUpsertLicenseFeatureOverrideSchema = import_v42.z.object({
695
717
  creditSchema: import_v42.z.union([
696
718
  import_v42.z.array(
697
719
  import_v42.z.union([
698
720
  attachCreditSchemaUpsertLicense1Schema,
699
- attachCreditSchemaUpsertLicense2Schema
721
+ attachCreditSchemaUpsertLicense2Schema,
722
+ attachCreditSchemaUpsertLicense3Schema
700
723
  ])
701
724
  ),
702
725
  import_v42.z.undefined()
@@ -1590,6 +1613,10 @@ var listPlansItemDisplaySchema = import_v48.z.object({
1590
1613
  primaryText: import_v48.z.string(),
1591
1614
  secondaryText: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
1592
1615
  });
1616
+ var listPlansCreditSchemaItemFeatureOverride3Schema = import_v48.z.object({
1617
+ meteredFeatureId: import_v48.z.string(),
1618
+ excluded: import_v48.z.literal(true)
1619
+ });
1593
1620
  var listPlansDimensionsItem4Schema = import_v48.z.object({
1594
1621
  match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
1595
1622
  priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
@@ -1691,6 +1718,10 @@ var listPlansVariantDetailsPriceTierSchema = import_v48.z.object({
1691
1718
  import_v48.z.undefined()
1692
1719
  ]).optional()
1693
1720
  });
1721
+ var listPlansCreditSchemaVariantDetails3Schema = import_v48.z.object({
1722
+ meteredFeatureId: import_v48.z.string(),
1723
+ excluded: import_v48.z.literal(true)
1724
+ });
1694
1725
  var listPlansDimensionsVariantDetails4Schema = import_v48.z.object({
1695
1726
  match: import_v48.z.record(import_v48.z.string(), import_v48.z.string()),
1696
1727
  priority: import_v48.z.union([import_v48.z.number(), import_v48.z.undefined()]).optional(),
@@ -1733,9 +1764,6 @@ var listPlansVariantDetailsMarkupsSchema = import_v48.z.object({
1733
1764
  var listPlansVariantDetailsUsageLimitFilterSchema = import_v48.z.object({
1734
1765
  properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
1735
1766
  });
1736
- var listPlansVariantDetailsUsageAlertFilterSchema = import_v48.z.object({
1737
- properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
1738
- });
1739
1767
  var listPlansParamsOutboundSchema = import_v48.z.object({
1740
1768
  customer_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
1741
1769
  entity_id: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
@@ -1882,14 +1910,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = import_v48.z.object({
1882
1910
  });
1883
1911
  var listPlansItemCreditSchemaUnionSchema = import_v48.z.union([
1884
1912
  listPlansCreditSchemaItemFeatureOverride1Schema,
1885
- listPlansCreditSchemaItemFeatureOverride2Schema
1913
+ listPlansCreditSchemaItemFeatureOverride2Schema,
1914
+ listPlansCreditSchemaItemFeatureOverride3Schema
1886
1915
  ]);
1887
1916
  var listPlansItemFeatureOverrideSchema = import_v48.z.object({
1888
1917
  creditSchema: import_v48.z.union([
1889
1918
  import_v48.z.array(
1890
1919
  import_v48.z.union([
1891
1920
  listPlansCreditSchemaItemFeatureOverride1Schema,
1892
- listPlansCreditSchemaItemFeatureOverride2Schema
1921
+ listPlansCreditSchemaItemFeatureOverride2Schema,
1922
+ listPlansCreditSchemaItemFeatureOverride3Schema
1893
1923
  ])
1894
1924
  ),
1895
1925
  import_v48.z.undefined()
@@ -2115,14 +2145,16 @@ var listPlansCreditSchemaVariantDetails1Schema = import_v48.z.object({
2115
2145
  });
2116
2146
  var listPlansVariantDetailsCreditSchemaUnionSchema = import_v48.z.union([
2117
2147
  listPlansCreditSchemaVariantDetails1Schema,
2118
- listPlansCreditSchemaVariantDetails2Schema
2148
+ listPlansCreditSchemaVariantDetails2Schema,
2149
+ listPlansCreditSchemaVariantDetails3Schema
2119
2150
  ]);
2120
2151
  var listPlansVariantDetailsFeatureOverrideSchema = import_v48.z.object({
2121
2152
  creditSchema: import_v48.z.union([
2122
2153
  import_v48.z.array(
2123
2154
  import_v48.z.union([
2124
2155
  listPlansCreditSchemaVariantDetails1Schema,
2125
- listPlansCreditSchemaVariantDetails2Schema
2156
+ listPlansCreditSchemaVariantDetails2Schema,
2157
+ listPlansCreditSchemaVariantDetails3Schema
2126
2158
  ])
2127
2159
  ),
2128
2160
  import_v48.z.undefined()
@@ -2204,20 +2236,13 @@ var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
2204
2236
  anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
2205
2237
  filter: import_v48.z.union([listPlansVariantDetailsUsageLimitFilterSchema, import_v48.z.undefined()]).optional()
2206
2238
  });
2207
- var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
2208
- var listPlansVariantDetailsBasisSchema = openEnumSchema6;
2209
- var listPlansVariantDetailsUsageAlertSchema = import_v48.z.object({
2210
- featureId: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional(),
2211
- enabled: import_v48.z.boolean(),
2212
- threshold: import_v48.z.number(),
2213
- thresholdType: listPlansVariantDetailsThresholdTypeSchema,
2214
- basis: listPlansVariantDetailsBasisSchema,
2215
- filter: import_v48.z.union([listPlansVariantDetailsUsageAlertFilterSchema, import_v48.z.undefined()]).optional(),
2216
- name: import_v48.z.union([import_v48.z.string(), import_v48.z.undefined()]).optional()
2217
- });
2218
2239
 
2219
2240
  // src/generated/listPlansSchemas.ts
2220
2241
  var import_v49 = require("zod/v4");
2242
+ var variantConfigSchema = import_v49.z.object({
2243
+ ignorePastDue: import_v49.z.boolean(),
2244
+ anchorToMonthStart: import_v49.z.boolean()
2245
+ });
2221
2246
  var variantPlanUsageLimitFilterSchema = import_v49.z.object({
2222
2247
  properties: import_v49.z.record(import_v49.z.string(), import_v49.z.string())
2223
2248
  });
@@ -2229,15 +2254,11 @@ var variantPlanOverageAllowedSchema = import_v49.z.object({
2229
2254
  enabled: import_v49.z.boolean()
2230
2255
  });
2231
2256
  var openEnumSchema7 = import_v49.z.any();
2232
- var variantPlanUsageLimitIntervalSchema = import_v49.z.any();
2233
- var variantPlanAutoTopupSchema = import_v49.z.any();
2234
- var variantPlanSpendLimitSchema = import_v49.z.any();
2235
2257
  var variantPlanPriceSchema = import_v49.z.any();
2236
2258
  var variantItemSchema = import_v49.z.any();
2237
2259
  var variantProcessorsSchema = import_v49.z.any();
2238
2260
  var variantFreeTrialSchema = import_v49.z.any();
2239
2261
  var variantEnvSchema = import_v49.z.any();
2240
- var variantConfigSchema = import_v49.z.any();
2241
2262
  var listPlansVariantCustomizeSchema = import_v49.z.any();
2242
2263
  var listPlansPriceSchema2 = import_v49.z.any();
2243
2264
  var listPlansItemSchema2 = import_v49.z.any();
@@ -2249,6 +2270,29 @@ var listPlansBillingControlsSchema2 = import_v49.z.any();
2249
2270
  var listPlansCustomerEligibilitySchema2 = import_v49.z.any();
2250
2271
  var listPlansVariantDetailsSchema = import_v49.z.any();
2251
2272
  var listPlansLicenseSchema = import_v49.z.any();
2273
+ var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
2274
+ var variantPlanPurchaseLimitSchema = import_v49.z.object({
2275
+ interval: variantPlanAutoTopupIntervalSchema,
2276
+ intervalCount: import_v49.z.number(),
2277
+ limit: import_v49.z.number()
2278
+ });
2279
+ var variantPlanAutoTopupSchema = import_v49.z.object({
2280
+ featureId: import_v49.z.string(),
2281
+ enabled: import_v49.z.boolean(),
2282
+ threshold: import_v49.z.number(),
2283
+ quantity: import_v49.z.number(),
2284
+ purchaseLimit: import_v49.z.union([variantPlanPurchaseLimitSchema, import_v49.z.undefined()]).optional(),
2285
+ invoiceMode: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
2286
+ });
2287
+ var variantPlanLimitTypeSchema = openEnumSchema7;
2288
+ var variantPlanSpendLimitSchema = import_v49.z.object({
2289
+ featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
2290
+ enabled: import_v49.z.boolean(),
2291
+ limitType: import_v49.z.union([variantPlanLimitTypeSchema, import_v49.z.undefined()]).optional(),
2292
+ overageLimit: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
2293
+ skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
2294
+ });
2295
+ var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
2252
2296
  var variantPlanAnchorSchema = openEnumSchema7;
2253
2297
  var variantPlanUsageLimitSchema = import_v49.z.object({
2254
2298
  featureId: import_v49.z.string(),
@@ -2372,6 +2416,10 @@ var multiAttachPriceTierSchema = import_v410.z.object({
2372
2416
  flatAmount: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
2373
2417
  additionalCurrencies: import_v410.z.union([import_v410.z.array(multiAttachTierAdditionalCurrencySchema), import_v410.z.undefined()]).optional()
2374
2418
  });
2419
+ var multiAttachCreditSchema3Schema = import_v410.z.object({
2420
+ meteredFeatureId: import_v410.z.string(),
2421
+ excluded: import_v410.z.literal(true)
2422
+ });
2375
2423
  var multiAttachDimensionsMatch4Schema = import_v410.z.union([
2376
2424
  import_v410.z.string(),
2377
2425
  import_v410.z.number(),
@@ -2550,6 +2598,10 @@ var multiAttachExpiryOutboundSchema = import_v410.z.object({
2550
2598
  duration: import_v410.z.string(),
2551
2599
  length: import_v410.z.number()
2552
2600
  });
2601
+ var multiAttachCreditSchema3OutboundSchema = import_v410.z.object({
2602
+ metered_feature_id: import_v410.z.string(),
2603
+ excluded: import_v410.z.literal(true)
2604
+ });
2553
2605
  var multiAttachDimensionsMatch4OutboundSchema = import_v410.z.union([
2554
2606
  import_v410.z.string(),
2555
2607
  import_v410.z.number(),
@@ -2685,7 +2737,8 @@ var multiAttachCreditSchema1OutboundSchema = import_v410.z.object({
2685
2737
  });
2686
2738
  var multiAttachCreditSchemaUnionOutboundSchema = import_v410.z.union([
2687
2739
  multiAttachCreditSchema1OutboundSchema,
2688
- multiAttachCreditSchema2OutboundSchema
2740
+ multiAttachCreditSchema2OutboundSchema,
2741
+ multiAttachCreditSchema3OutboundSchema
2689
2742
  ]);
2690
2743
  var multiAttachProviderMarkupsOutboundSchema = import_v410.z.object({
2691
2744
  markup: import_v410.z.number()
@@ -2711,7 +2764,8 @@ var multiAttachFeatureOverrideOutboundSchema = import_v410.z.object({
2711
2764
  import_v410.z.array(
2712
2765
  import_v410.z.union([
2713
2766
  multiAttachCreditSchema1OutboundSchema,
2714
- multiAttachCreditSchema2OutboundSchema
2767
+ multiAttachCreditSchema2OutboundSchema,
2768
+ multiAttachCreditSchema3OutboundSchema
2715
2769
  ])
2716
2770
  ),
2717
2771
  import_v410.z.undefined()
@@ -2952,14 +3006,16 @@ var multiAttachCreditSchema1Schema = import_v410.z.object({
2952
3006
  });
2953
3007
  var multiAttachCreditSchemaUnionSchema = import_v410.z.union([
2954
3008
  multiAttachCreditSchema1Schema,
2955
- multiAttachCreditSchema2Schema
3009
+ multiAttachCreditSchema2Schema,
3010
+ multiAttachCreditSchema3Schema
2956
3011
  ]);
2957
3012
  var multiAttachFeatureOverrideSchema = import_v410.z.object({
2958
3013
  creditSchema: import_v410.z.union([
2959
3014
  import_v410.z.array(
2960
3015
  import_v410.z.union([
2961
3016
  multiAttachCreditSchema1Schema,
2962
- multiAttachCreditSchema2Schema
3017
+ multiAttachCreditSchema2Schema,
3018
+ multiAttachCreditSchema3Schema
2963
3019
  ])
2964
3020
  ),
2965
3021
  import_v410.z.undefined()
@@ -3125,6 +3181,10 @@ var openCustomerPortalParamsOutboundSchema = import_v411.z.object({
3125
3181
 
3126
3182
  // src/generated/previewAttachSchemas.ts
3127
3183
  var import_v412 = require("zod/v4");
3184
+ var previewAttachCreditSchemaUpsertLicense3Schema = import_v412.z.object({
3185
+ meteredFeatureId: import_v412.z.string(),
3186
+ excluded: import_v412.z.literal(true)
3187
+ });
3128
3188
  var previewAttachDimensionsUpsertLicenseMatch4Schema = import_v412.z.union([
3129
3189
  import_v412.z.string(),
3130
3190
  import_v412.z.number(),
@@ -3321,10 +3381,20 @@ var previewAttachInvoiceCreditsSchema = import_v412.z.object({
3321
3381
  applied: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3322
3382
  currency: import_v412.z.string()
3323
3383
  });
3384
+ var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.object({
3385
+ max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3386
+ max_percentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3387
+ expiry_duration_type: import_v412.z.string(),
3388
+ expiry_duration_length: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
3389
+ });
3324
3390
  var previewAttachUpsertLicenseExpiryOutboundSchema = import_v412.z.object({
3325
3391
  duration: import_v412.z.string(),
3326
3392
  length: import_v412.z.number()
3327
3393
  });
3394
+ var previewAttachCreditSchemaUpsertLicense3OutboundSchema = import_v412.z.object({
3395
+ metered_feature_id: import_v412.z.string(),
3396
+ excluded: import_v412.z.literal(true)
3397
+ });
3328
3398
  var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = import_v412.z.union(
3329
3399
  [import_v412.z.string(), import_v412.z.number(), import_v412.z.boolean()]
3330
3400
  );
@@ -3449,7 +3519,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = import_v412.z.object
3449
3519
  });
3450
3520
  var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = import_v412.z.union([
3451
3521
  previewAttachCreditSchemaUpsertLicense1OutboundSchema,
3452
- previewAttachCreditSchemaUpsertLicense2OutboundSchema
3522
+ previewAttachCreditSchemaUpsertLicense2OutboundSchema,
3523
+ previewAttachCreditSchemaUpsertLicense3OutboundSchema
3453
3524
  ]);
3454
3525
  var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = import_v412.z.object(
3455
3526
  {
@@ -3484,7 +3555,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = import_v412.z.obje
3484
3555
  import_v412.z.array(
3485
3556
  import_v412.z.union([
3486
3557
  previewAttachCreditSchemaUpsertLicense1OutboundSchema,
3487
- previewAttachCreditSchemaUpsertLicense2OutboundSchema
3558
+ previewAttachCreditSchemaUpsertLicense2OutboundSchema,
3559
+ previewAttachCreditSchemaUpsertLicense3OutboundSchema
3488
3560
  ])
3489
3561
  ),
3490
3562
  import_v412.z.undefined()
@@ -3638,7 +3710,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = import_v412.z.any();
3638
3710
  var previewAttachUpsertLicenseResetSchema = import_v412.z.any();
3639
3711
  var previewAttachUpsertLicensePriceSchema = import_v412.z.any();
3640
3712
  var previewAttachUpsertLicenseProrationSchema = import_v412.z.any();
3641
- var previewAttachUpsertLicenseRolloverSchema = import_v412.z.any();
3642
3713
  var previewAttachUpsertLicenseBasePriceSchema = import_v412.z.any();
3643
3714
  var previewAttachBasePriceSchema = import_v412.z.any();
3644
3715
  var previewAttachItemPlanItemSchema = import_v412.z.any();
@@ -3654,7 +3725,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = import_v412.z.any
3654
3725
  var previewAttachUpsertLicenseResetOutboundSchema = import_v412.z.any();
3655
3726
  var previewAttachUpsertLicensePriceOutboundSchema = import_v412.z.any();
3656
3727
  var previewAttachUpsertLicenseProrationOutboundSchema = import_v412.z.any();
3657
- var previewAttachUpsertLicenseRolloverOutboundSchema = import_v412.z.any();
3658
3728
  var previewAttachUpsertLicenseBasePriceOutboundSchema = import_v412.z.any();
3659
3729
  var previewAttachBasePriceOutboundSchema = import_v412.z.any();
3660
3730
  var previewAttachItemPlanItemOutboundSchema = import_v412.z.any();
@@ -3664,6 +3734,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = import_v412.z.any();
3664
3734
  var previewAttachBillingControlsOutboundSchema = import_v412.z.any();
3665
3735
  var previewAttachFeatureQuantityRequestBodyOutboundSchema = import_v412.z.any();
3666
3736
  var previewAttachFreeTrialParamsOutboundSchema = import_v412.z.any();
3737
+ var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
3738
+ var previewAttachUpsertLicenseRolloverSchema = import_v412.z.object({
3739
+ max: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3740
+ maxPercentage: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
3741
+ expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
3742
+ expiryDurationLength: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
3743
+ });
3667
3744
  var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
3668
3745
  var previewAttachUpsertLicenseExpirySchema = import_v412.z.object({
3669
3746
  duration: previewAttachUpsertLicenseDurationSchema,
@@ -3757,14 +3834,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = import_v412.z.object({
3757
3834
  });
3758
3835
  var previewAttachUpsertLicenseCreditSchemaUnionSchema = import_v412.z.union([
3759
3836
  previewAttachCreditSchemaUpsertLicense1Schema,
3760
- previewAttachCreditSchemaUpsertLicense2Schema
3837
+ previewAttachCreditSchemaUpsertLicense2Schema,
3838
+ previewAttachCreditSchemaUpsertLicense3Schema
3761
3839
  ]);
3762
3840
  var previewAttachUpsertLicenseFeatureOverrideSchema = import_v412.z.object({
3763
3841
  creditSchema: import_v412.z.union([
3764
3842
  import_v412.z.array(
3765
3843
  import_v412.z.union([
3766
3844
  previewAttachCreditSchemaUpsertLicense1Schema,
3767
- previewAttachCreditSchemaUpsertLicense2Schema
3845
+ previewAttachCreditSchemaUpsertLicense2Schema,
3846
+ previewAttachCreditSchemaUpsertLicense3Schema
3768
3847
  ])
3769
3848
  ),
3770
3849
  import_v412.z.undefined()
@@ -4121,6 +4200,10 @@ var previewMultiAttachPriceTierSchema = import_v413.z.object({
4121
4200
  import_v413.z.undefined()
4122
4201
  ]).optional()
4123
4202
  });
4203
+ var previewMultiAttachCreditSchema3Schema = import_v413.z.object({
4204
+ meteredFeatureId: import_v413.z.string(),
4205
+ excluded: import_v413.z.literal(true)
4206
+ });
4124
4207
  var previewMultiAttachDimensionsMatch4Schema = import_v413.z.union([
4125
4208
  import_v413.z.string(),
4126
4209
  import_v413.z.number(),
@@ -4367,6 +4450,10 @@ var previewMultiAttachExpiryOutboundSchema = import_v413.z.object({
4367
4450
  duration: import_v413.z.string(),
4368
4451
  length: import_v413.z.number()
4369
4452
  });
4453
+ var previewMultiAttachCreditSchema3OutboundSchema = import_v413.z.object({
4454
+ metered_feature_id: import_v413.z.string(),
4455
+ excluded: import_v413.z.literal(true)
4456
+ });
4370
4457
  var previewMultiAttachDimensionsMatch4OutboundSchema = import_v413.z.union([
4371
4458
  import_v413.z.string(),
4372
4459
  import_v413.z.number(),
@@ -4502,7 +4589,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = import_v413.z.object({
4502
4589
  });
4503
4590
  var previewMultiAttachCreditSchemaUnionOutboundSchema = import_v413.z.union([
4504
4591
  previewMultiAttachCreditSchema1OutboundSchema,
4505
- previewMultiAttachCreditSchema2OutboundSchema
4592
+ previewMultiAttachCreditSchema2OutboundSchema,
4593
+ previewMultiAttachCreditSchema3OutboundSchema
4506
4594
  ]);
4507
4595
  var previewMultiAttachProviderMarkupsOutboundSchema = import_v413.z.object({
4508
4596
  markup: import_v413.z.number()
@@ -4528,7 +4616,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = import_v413.z.object({
4528
4616
  import_v413.z.array(
4529
4617
  import_v413.z.union([
4530
4618
  previewMultiAttachCreditSchema1OutboundSchema,
4531
- previewMultiAttachCreditSchema2OutboundSchema
4619
+ previewMultiAttachCreditSchema2OutboundSchema,
4620
+ previewMultiAttachCreditSchema3OutboundSchema
4532
4621
  ])
4533
4622
  ),
4534
4623
  import_v413.z.undefined()
@@ -4791,14 +4880,16 @@ var previewMultiAttachCreditSchema1Schema = import_v413.z.object({
4791
4880
  });
4792
4881
  var previewMultiAttachCreditSchemaUnionSchema = import_v413.z.union([
4793
4882
  previewMultiAttachCreditSchema1Schema,
4794
- previewMultiAttachCreditSchema2Schema
4883
+ previewMultiAttachCreditSchema2Schema,
4884
+ previewMultiAttachCreditSchema3Schema
4795
4885
  ]);
4796
4886
  var previewMultiAttachFeatureOverrideSchema = import_v413.z.object({
4797
4887
  creditSchema: import_v413.z.union([
4798
4888
  import_v413.z.array(
4799
4889
  import_v413.z.union([
4800
4890
  previewMultiAttachCreditSchema1Schema,
4801
- previewMultiAttachCreditSchema2Schema
4891
+ previewMultiAttachCreditSchema2Schema,
4892
+ previewMultiAttachCreditSchema3Schema
4802
4893
  ])
4803
4894
  ),
4804
4895
  import_v413.z.undefined()
@@ -4979,6 +5070,10 @@ var previewMultiAttachParamsOutboundSchema = import_v413.z.object({
4979
5070
 
4980
5071
  // src/generated/previewUpdateSubscriptionSchemas.ts
4981
5072
  var import_v414 = require("zod/v4");
5073
+ var previewUpdateCreditSchemaUpsertLicense3Schema = import_v414.z.object({
5074
+ meteredFeatureId: import_v414.z.string(),
5075
+ excluded: import_v414.z.literal(true)
5076
+ });
4982
5077
  var previewUpdateDimensionsUpsertLicenseMatch4Schema = import_v414.z.union([
4983
5078
  import_v414.z.string(),
4984
5079
  import_v414.z.number(),
@@ -5155,10 +5250,20 @@ var previewUpdateInvoiceCreditsSchema = import_v414.z.object({
5155
5250
  applied: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5156
5251
  currency: import_v414.z.string()
5157
5252
  });
5253
+ var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.object({
5254
+ max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5255
+ max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5256
+ expiry_duration_type: import_v414.z.string(),
5257
+ expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
5258
+ });
5158
5259
  var previewUpdateUpsertLicenseExpiryOutboundSchema = import_v414.z.object({
5159
5260
  duration: import_v414.z.string(),
5160
5261
  length: import_v414.z.number()
5161
5262
  });
5263
+ var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v414.z.object({
5264
+ metered_feature_id: import_v414.z.string(),
5265
+ excluded: import_v414.z.literal(true)
5266
+ });
5162
5267
  var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v414.z.union(
5163
5268
  [import_v414.z.string(), import_v414.z.number(), import_v414.z.boolean()]
5164
5269
  );
@@ -5283,7 +5388,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v414.z.object
5283
5388
  });
5284
5389
  var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v414.z.union([
5285
5390
  previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
5286
- previewUpdateCreditSchemaUpsertLicense2OutboundSchema
5391
+ previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
5392
+ previewUpdateCreditSchemaUpsertLicense3OutboundSchema
5287
5393
  ]);
5288
5394
  var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v414.z.object(
5289
5395
  {
@@ -5318,7 +5424,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v414.z.obje
5318
5424
  import_v414.z.array(
5319
5425
  import_v414.z.union([
5320
5426
  previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
5321
- previewUpdateCreditSchemaUpsertLicense2OutboundSchema
5427
+ previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
5428
+ previewUpdateCreditSchemaUpsertLicense3OutboundSchema
5322
5429
  ])
5323
5430
  ),
5324
5431
  import_v414.z.undefined()
@@ -5444,7 +5551,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = import_v414.z.any();
5444
5551
  var previewUpdateUpsertLicenseResetSchema = import_v414.z.any();
5445
5552
  var previewUpdateUpsertLicensePriceSchema = import_v414.z.any();
5446
5553
  var previewUpdateUpsertLicenseProrationSchema = import_v414.z.any();
5447
- var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.any();
5448
5554
  var previewUpdateUpsertLicenseBasePriceSchema = import_v414.z.any();
5449
5555
  var previewUpdateBasePriceSchema = import_v414.z.any();
5450
5556
  var previewUpdateItemPlanItemSchema = import_v414.z.any();
@@ -5460,7 +5566,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v414.z.any
5460
5566
  var previewUpdateUpsertLicenseResetOutboundSchema = import_v414.z.any();
5461
5567
  var previewUpdateUpsertLicensePriceOutboundSchema = import_v414.z.any();
5462
5568
  var previewUpdateUpsertLicenseProrationOutboundSchema = import_v414.z.any();
5463
- var previewUpdateUpsertLicenseRolloverOutboundSchema = import_v414.z.any();
5464
5569
  var previewUpdateUpsertLicenseBasePriceOutboundSchema = import_v414.z.any();
5465
5570
  var previewUpdateBasePriceOutboundSchema = import_v414.z.any();
5466
5571
  var previewUpdateItemPlanItemOutboundSchema = import_v414.z.any();
@@ -5470,6 +5575,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = import_v414.z.any();
5470
5575
  var previewUpdateBillingControlsOutboundSchema = import_v414.z.any();
5471
5576
  var previewUpdateFeatureQuantityRequestBodyOutboundSchema = import_v414.z.any();
5472
5577
  var previewUpdateFreeTrialParamsOutboundSchema = import_v414.z.any();
5578
+ var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
5579
+ var previewUpdateUpsertLicenseRolloverSchema = import_v414.z.object({
5580
+ max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5581
+ maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
5582
+ expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
5583
+ expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
5584
+ });
5473
5585
  var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
5474
5586
  var previewUpdateUpsertLicenseExpirySchema = import_v414.z.object({
5475
5587
  duration: previewUpdateUpsertLicenseDurationSchema,
@@ -5563,14 +5675,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = import_v414.z.object({
5563
5675
  });
5564
5676
  var previewUpdateUpsertLicenseCreditSchemaUnionSchema = import_v414.z.union([
5565
5677
  previewUpdateCreditSchemaUpsertLicense1Schema,
5566
- previewUpdateCreditSchemaUpsertLicense2Schema
5678
+ previewUpdateCreditSchemaUpsertLicense2Schema,
5679
+ previewUpdateCreditSchemaUpsertLicense3Schema
5567
5680
  ]);
5568
5681
  var previewUpdateUpsertLicenseFeatureOverrideSchema = import_v414.z.object({
5569
5682
  creditSchema: import_v414.z.union([
5570
5683
  import_v414.z.array(
5571
5684
  import_v414.z.union([
5572
5685
  previewUpdateCreditSchemaUpsertLicense1Schema,
5573
- previewUpdateCreditSchemaUpsertLicense2Schema
5686
+ previewUpdateCreditSchemaUpsertLicense2Schema,
5687
+ previewUpdateCreditSchemaUpsertLicense3Schema
5574
5688
  ])
5575
5689
  ),
5576
5690
  import_v414.z.undefined()
@@ -5884,6 +5998,10 @@ var redeemReferralCodeParamsOutboundSchema = import_v415.z.object({
5884
5998
 
5885
5999
  // src/generated/setupPaymentSchemas.ts
5886
6000
  var import_v416 = require("zod/v4");
6001
+ var setupPaymentCreditSchemaUpsertLicense3Schema = import_v416.z.object({
6002
+ meteredFeatureId: import_v416.z.string(),
6003
+ excluded: import_v416.z.literal(true)
6004
+ });
5887
6005
  var setupPaymentDimensionsUpsertLicenseMatch4Schema = import_v416.z.union([
5888
6006
  import_v416.z.string(),
5889
6007
  import_v416.z.number(),
@@ -6013,10 +6131,20 @@ var setupPaymentResponseSchema = import_v416.z.object({
6013
6131
  entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
6014
6132
  url: import_v416.z.string()
6015
6133
  });
6134
+ var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.object({
6135
+ max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6136
+ max_percentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6137
+ expiry_duration_type: import_v416.z.string(),
6138
+ expiry_duration_length: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
6139
+ });
6016
6140
  var setupPaymentUpsertLicenseExpiryOutboundSchema = import_v416.z.object({
6017
6141
  duration: import_v416.z.string(),
6018
6142
  length: import_v416.z.number()
6019
6143
  });
6144
+ var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = import_v416.z.object({
6145
+ metered_feature_id: import_v416.z.string(),
6146
+ excluded: import_v416.z.literal(true)
6147
+ });
6020
6148
  var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = import_v416.z.union([
6021
6149
  import_v416.z.string(),
6022
6150
  import_v416.z.number(),
@@ -6140,7 +6268,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = import_v416.z.object(
6140
6268
  var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = import_v416.z.union(
6141
6269
  [
6142
6270
  setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
6143
- setupPaymentCreditSchemaUpsertLicense2OutboundSchema
6271
+ setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
6272
+ setupPaymentCreditSchemaUpsertLicense3OutboundSchema
6144
6273
  ]
6145
6274
  );
6146
6275
  var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = import_v416.z.object({
@@ -6170,7 +6299,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = import_v416.z.objec
6170
6299
  import_v416.z.array(
6171
6300
  import_v416.z.union([
6172
6301
  setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
6173
- setupPaymentCreditSchemaUpsertLicense2OutboundSchema
6302
+ setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
6303
+ setupPaymentCreditSchemaUpsertLicense3OutboundSchema
6174
6304
  ])
6175
6305
  ),
6176
6306
  import_v416.z.undefined()
@@ -6314,7 +6444,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = import_v416.z.any();
6314
6444
  var setupPaymentUpsertLicenseResetSchema = import_v416.z.any();
6315
6445
  var setupPaymentUpsertLicensePriceSchema = import_v416.z.any();
6316
6446
  var setupPaymentUpsertLicenseProrationSchema = import_v416.z.any();
6317
- var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.any();
6318
6447
  var setupPaymentUpsertLicenseBasePriceSchema = import_v416.z.any();
6319
6448
  var setupPaymentBasePriceSchema = import_v416.z.any();
6320
6449
  var setupPaymentItemPlanItemSchema = import_v416.z.any();
@@ -6328,7 +6457,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = import_v416.z.any(
6328
6457
  var setupPaymentUpsertLicenseResetOutboundSchema = import_v416.z.any();
6329
6458
  var setupPaymentUpsertLicensePriceOutboundSchema = import_v416.z.any();
6330
6459
  var setupPaymentUpsertLicenseProrationOutboundSchema = import_v416.z.any();
6331
- var setupPaymentUpsertLicenseRolloverOutboundSchema = import_v416.z.any();
6332
6460
  var setupPaymentUpsertLicenseBasePriceOutboundSchema = import_v416.z.any();
6333
6461
  var setupPaymentBasePriceOutboundSchema = import_v416.z.any();
6334
6462
  var setupPaymentItemPlanItemOutboundSchema = import_v416.z.any();
@@ -6338,6 +6466,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = import_v416.z.any();
6338
6466
  var setupPaymentBillingControlsOutboundSchema = import_v416.z.any();
6339
6467
  var setupPaymentFeatureQuantityOutboundSchema = import_v416.z.any();
6340
6468
  var setupPaymentFreeTrialParamsOutboundSchema = import_v416.z.any();
6469
+ var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
6470
+ var setupPaymentUpsertLicenseRolloverSchema = import_v416.z.object({
6471
+ max: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6472
+ maxPercentage: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
6473
+ expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
6474
+ expiryDurationLength: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
6475
+ });
6341
6476
  var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
6342
6477
  var setupPaymentUpsertLicenseExpirySchema = import_v416.z.object({
6343
6478
  duration: setupPaymentUpsertLicenseDurationSchema,
@@ -6431,14 +6566,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = import_v416.z.object({
6431
6566
  });
6432
6567
  var setupPaymentUpsertLicenseCreditSchemaUnionSchema = import_v416.z.union([
6433
6568
  setupPaymentCreditSchemaUpsertLicense1Schema,
6434
- setupPaymentCreditSchemaUpsertLicense2Schema
6569
+ setupPaymentCreditSchemaUpsertLicense2Schema,
6570
+ setupPaymentCreditSchemaUpsertLicense3Schema
6435
6571
  ]);
6436
6572
  var setupPaymentUpsertLicenseFeatureOverrideSchema = import_v416.z.object({
6437
6573
  creditSchema: import_v416.z.union([
6438
6574
  import_v416.z.array(
6439
6575
  import_v416.z.union([
6440
6576
  setupPaymentCreditSchemaUpsertLicense1Schema,
6441
- setupPaymentCreditSchemaUpsertLicense2Schema
6577
+ setupPaymentCreditSchemaUpsertLicense2Schema,
6578
+ setupPaymentCreditSchemaUpsertLicense3Schema
6442
6579
  ])
6443
6580
  ),
6444
6581
  import_v416.z.undefined()
@@ -6689,6 +6826,10 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
6689
6826
 
6690
6827
  // src/generated/updateSubscriptionSchemas.ts
6691
6828
  var import_v417 = require("zod/v4");
6829
+ var billingUpdateCreditSchemaUpsertLicense3Schema = import_v417.z.object({
6830
+ meteredFeatureId: import_v417.z.string(),
6831
+ excluded: import_v417.z.literal(true)
6832
+ });
6692
6833
  var billingUpdateDimensionsUpsertLicenseMatch4Schema = import_v417.z.union([
6693
6834
  import_v417.z.string(),
6694
6835
  import_v417.z.number(),
@@ -6800,10 +6941,20 @@ var billingUpdateInvoiceSchema = import_v417.z.object({
6800
6941
  currency: import_v417.z.string(),
6801
6942
  hostedInvoiceUrl: import_v417.z.string().nullable()
6802
6943
  });
6944
+ var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.object({
6945
+ max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
6946
+ max_percentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
6947
+ expiry_duration_type: import_v417.z.string(),
6948
+ expiry_duration_length: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
6949
+ });
6803
6950
  var billingUpdateUpsertLicenseExpiryOutboundSchema = import_v417.z.object({
6804
6951
  duration: import_v417.z.string(),
6805
6952
  length: import_v417.z.number()
6806
6953
  });
6954
+ var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = import_v417.z.object({
6955
+ metered_feature_id: import_v417.z.string(),
6956
+ excluded: import_v417.z.literal(true)
6957
+ });
6807
6958
  var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = import_v417.z.union(
6808
6959
  [import_v417.z.string(), import_v417.z.number(), import_v417.z.boolean()]
6809
6960
  );
@@ -6928,7 +7079,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = import_v417.z.object
6928
7079
  });
6929
7080
  var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = import_v417.z.union([
6930
7081
  billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
6931
- billingUpdateCreditSchemaUpsertLicense2OutboundSchema
7082
+ billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
7083
+ billingUpdateCreditSchemaUpsertLicense3OutboundSchema
6932
7084
  ]);
6933
7085
  var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = import_v417.z.object(
6934
7086
  {
@@ -6963,7 +7115,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = import_v417.z.obje
6963
7115
  import_v417.z.array(
6964
7116
  import_v417.z.union([
6965
7117
  billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
6966
- billingUpdateCreditSchemaUpsertLicense2OutboundSchema
7118
+ billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
7119
+ billingUpdateCreditSchemaUpsertLicense3OutboundSchema
6967
7120
  ])
6968
7121
  ),
6969
7122
  import_v417.z.undefined()
@@ -7089,7 +7242,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = import_v417.z.any();
7089
7242
  var billingUpdateUpsertLicenseResetSchema = import_v417.z.any();
7090
7243
  var billingUpdateUpsertLicensePriceSchema = import_v417.z.any();
7091
7244
  var billingUpdateUpsertLicenseProrationSchema = import_v417.z.any();
7092
- var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.any();
7093
7245
  var billingUpdateUpsertLicenseBasePriceSchema = import_v417.z.any();
7094
7246
  var billingUpdateBasePriceSchema = import_v417.z.any();
7095
7247
  var billingUpdateItemPlanItemSchema = import_v417.z.any();
@@ -7104,7 +7256,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = import_v417.z.any
7104
7256
  var billingUpdateUpsertLicenseResetOutboundSchema = import_v417.z.any();
7105
7257
  var billingUpdateUpsertLicensePriceOutboundSchema = import_v417.z.any();
7106
7258
  var billingUpdateUpsertLicenseProrationOutboundSchema = import_v417.z.any();
7107
- var billingUpdateUpsertLicenseRolloverOutboundSchema = import_v417.z.any();
7108
7259
  var billingUpdateUpsertLicenseBasePriceOutboundSchema = import_v417.z.any();
7109
7260
  var billingUpdateBasePriceOutboundSchema = import_v417.z.any();
7110
7261
  var billingUpdateItemPlanItemOutboundSchema = import_v417.z.any();
@@ -7114,6 +7265,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = import_v417.z.any();
7114
7265
  var billingUpdateBillingControlsOutboundSchema = import_v417.z.any();
7115
7266
  var billingUpdateFeatureQuantityOutboundSchema = import_v417.z.any();
7116
7267
  var billingUpdateFreeTrialParamsOutboundSchema = import_v417.z.any();
7268
+ var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
7269
+ var billingUpdateUpsertLicenseRolloverSchema = import_v417.z.object({
7270
+ max: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
7271
+ maxPercentage: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
7272
+ expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
7273
+ expiryDurationLength: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
7274
+ });
7117
7275
  var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
7118
7276
  var billingUpdateUpsertLicenseExpirySchema = import_v417.z.object({
7119
7277
  duration: billingUpdateUpsertLicenseDurationSchema,
@@ -7207,14 +7365,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = import_v417.z.object({
7207
7365
  });
7208
7366
  var billingUpdateUpsertLicenseCreditSchemaUnionSchema = import_v417.z.union([
7209
7367
  billingUpdateCreditSchemaUpsertLicense1Schema,
7210
- billingUpdateCreditSchemaUpsertLicense2Schema
7368
+ billingUpdateCreditSchemaUpsertLicense2Schema,
7369
+ billingUpdateCreditSchemaUpsertLicense3Schema
7211
7370
  ]);
7212
7371
  var billingUpdateUpsertLicenseFeatureOverrideSchema = import_v417.z.object({
7213
7372
  creditSchema: import_v417.z.union([
7214
7373
  import_v417.z.array(
7215
7374
  import_v417.z.union([
7216
7375
  billingUpdateCreditSchemaUpsertLicense1Schema,
7217
- billingUpdateCreditSchemaUpsertLicense2Schema
7376
+ billingUpdateCreditSchemaUpsertLicense2Schema,
7377
+ billingUpdateCreditSchemaUpsertLicense3Schema
7218
7378
  ])
7219
7379
  ),
7220
7380
  import_v417.z.undefined()