autumn-js 1.4.47 → 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 (116) hide show
  1. package/dist/backend/adapters/express.js +1780 -792
  2. package/dist/backend/adapters/express.mjs +5 -5
  3. package/dist/backend/adapters/fetch.js +1780 -792
  4. package/dist/backend/adapters/fetch.mjs +5 -5
  5. package/dist/backend/adapters/hono.js +1780 -792
  6. package/dist/backend/adapters/hono.mjs +5 -5
  7. package/dist/backend/adapters/index.js +1780 -792
  8. package/dist/backend/adapters/index.mjs +8 -8
  9. package/dist/backend/adapters/next.js +1780 -792
  10. package/dist/backend/adapters/next.mjs +5 -5
  11. package/dist/backend/{chunk-6LQFPGW7.mjs → chunk-4J2TOGWE.mjs} +220 -60
  12. package/dist/backend/{chunk-XSFLWMJO.mjs → chunk-6X4JZECX.mjs} +1 -1
  13. package/dist/backend/{chunk-BRCDWBVZ.mjs → chunk-EUR3CZTF.mjs} +1 -1
  14. package/dist/backend/{chunk-LPQJUWEP.mjs → chunk-EVPPOVX5.mjs} +2 -2
  15. package/dist/{better-auth/chunk-U4Z36UKV.mjs → backend/chunk-L4HKBZCC.mjs} +1773 -1168
  16. package/dist/backend/{chunk-QXN5PMM3.mjs → chunk-N2SCUJPL.mjs} +2 -2
  17. package/dist/backend/{chunk-P5IBHZVY.mjs → chunk-QPDWSMZ5.mjs} +1 -1
  18. package/dist/backend/{chunk-BAMETKFC.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 +1780 -792
  22. package/dist/backend/core/handlers/coreHandler.mjs +3 -3
  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/handleRouteByName.js +1780 -792
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +1780 -792
  30. package/dist/backend/core/handlers/index.mjs +4 -4
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +1780 -792
  34. package/dist/backend/core/index.mjs +4 -4
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.js +220 -60
  38. package/dist/backend/core/routes/index.mjs +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  40. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.js +220 -60
  44. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  45. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  46. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  47. package/dist/backend/core/types/index.d.mts +1 -1
  48. package/dist/backend/core/types/index.d.ts +1 -1
  49. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  51. package/dist/backend/index.d.mts +2 -2
  52. package/dist/backend/index.d.ts +2 -2
  53. package/dist/backend/index.js +1780 -792
  54. package/dist/backend/index.mjs +4 -4
  55. package/dist/backend/{routeTypes-4Nvx_kS7.d.mts → routeTypes-C_10hxA-.d.mts} +916 -130
  56. package/dist/backend/{routeTypes-5NBu7O27.d.ts → routeTypes-CqaUPWtn.d.ts} +916 -130
  57. package/dist/{backend/chunk-QPCIJMW3.mjs → better-auth/chunk-44MLRR2L.mjs} +1996 -945
  58. package/dist/better-auth/{chunk-XMGJ2JOK.mjs → chunk-TX2WZUZT.mjs} +1 -1
  59. package/dist/better-auth/{chunk-7UPP5FN5.mjs → chunk-ZHYDDOAE.mjs} +220 -60
  60. package/dist/better-auth/index.js +1780 -792
  61. package/dist/better-auth/index.mjs +3 -3
  62. package/dist/better-auth/utils/createAutumnEndpoint.js +220 -60
  63. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  64. package/dist/better-auth/utils/handleBetterAuthRoute.js +1780 -792
  65. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  66. package/dist/better-auth/utils/index.js +1780 -792
  67. package/dist/better-auth/utils/index.mjs +3 -3
  68. package/dist/react/AutumnContext.d.mts +4 -4
  69. package/dist/react/AutumnContext.d.ts +4 -4
  70. package/dist/react/client/AutumnClient.d.mts +4 -4
  71. package/dist/react/client/AutumnClient.d.ts +4 -4
  72. package/dist/react/client/IAutumnClient.d.mts +4 -4
  73. package/dist/react/client/IAutumnClient.d.ts +4 -4
  74. package/dist/react/client/index.d.mts +4 -4
  75. package/dist/react/client/index.d.ts +4 -4
  76. package/dist/react/{customer-Bf5yt0Mo.d.mts → customer-BK_WEJ0J.d.mts} +17 -1
  77. package/dist/react/{customer-BQxqzdSE.d.ts → customer-CGLAquo9.d.ts} +17 -1
  78. package/dist/react/hooks/index.d.mts +4 -4
  79. package/dist/react/hooks/index.d.ts +4 -4
  80. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  81. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  82. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  83. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  84. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  85. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  86. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  87. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  88. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  89. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  90. package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
  91. package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
  92. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  93. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  94. package/dist/react/hooks/useCustomer.d.mts +3 -3
  95. package/dist/react/hooks/useCustomer.d.ts +3 -3
  96. package/dist/react/hooks/useEntity.d.mts +2 -2
  97. package/dist/react/hooks/useEntity.d.ts +2 -2
  98. package/dist/react/hooks/useListEvents.d.mts +2 -2
  99. package/dist/react/hooks/useListEvents.d.ts +2 -2
  100. package/dist/react/hooks/useListPlans.d.mts +3 -3
  101. package/dist/react/hooks/useListPlans.d.ts +3 -3
  102. package/dist/react/hooks/useReferrals.d.mts +2 -2
  103. package/dist/react/hooks/useReferrals.d.ts +2 -2
  104. package/dist/react/index.d.mts +4 -4
  105. package/dist/react/index.d.ts +4 -4
  106. package/dist/react/{list-plans-response-CgqelDUJ.d.mts → list-plans-response-BMWMbzkK.d.ts} +89 -20
  107. package/dist/react/{list-plans-response-jYoBA-Ci.d.ts → list-plans-response-kbT4GwSh.d.mts} +89 -20
  108. package/dist/react/{params-B3qR55v_.d.ts → params-D_8sPp60.d.ts} +258 -40
  109. package/dist/react/{params-DWlWVt04.d.mts → params-eTM9nRBb.d.mts} +258 -40
  110. package/dist/react/{plan-BoEfV7t8.d.mts → plan-Dji-zdws.d.mts} +53 -7
  111. package/dist/react/{plan-BoEfV7t8.d.ts → plan-Dji-zdws.d.ts} +53 -7
  112. package/dist/sdk/index.d.mts +2323 -1205
  113. package/dist/sdk/index.d.ts +2323 -1205
  114. package/dist/sdk/index.js +21373 -20046
  115. package/dist/sdk/index.mjs +21237 -20046
  116. package/package.json +2 -2
@@ -108,6 +108,10 @@ var aggregateEventsResponseSchema = z.object({
108
108
 
109
109
  // src/generated/attachSchemas.ts
110
110
  import { z as z2 } from "zod/v4";
111
+ var attachCreditSchemaUpsertLicense3Schema = z2.object({
112
+ meteredFeatureId: z2.string(),
113
+ excluded: z2.literal(true)
114
+ });
111
115
  var attachDimensionsUpsertLicenseMatch4Schema = z2.union([
112
116
  z2.string(),
113
117
  z2.number(),
@@ -236,10 +240,20 @@ var attachInvoiceSchema = z2.object({
236
240
  currency: z2.string(),
237
241
  hostedInvoiceUrl: z2.string().nullable()
238
242
  });
243
+ var attachUpsertLicenseRolloverOutboundSchema = z2.object({
244
+ max: z2.union([z2.number(), z2.undefined()]).optional(),
245
+ max_percentage: z2.union([z2.number(), z2.undefined()]).optional(),
246
+ expiry_duration_type: z2.string(),
247
+ expiry_duration_length: z2.union([z2.number(), z2.undefined()]).optional()
248
+ });
239
249
  var attachUpsertLicenseExpiryOutboundSchema = z2.object({
240
250
  duration: z2.string(),
241
251
  length: z2.number()
242
252
  });
253
+ var attachCreditSchemaUpsertLicense3OutboundSchema = z2.object({
254
+ metered_feature_id: z2.string(),
255
+ excluded: z2.literal(true)
256
+ });
243
257
  var attachDimensionsUpsertLicenseMatch4OutboundSchema = z2.union([
244
258
  z2.string(),
245
259
  z2.number(),
@@ -375,7 +389,8 @@ var attachCreditSchemaUpsertLicense1OutboundSchema = z2.object({
375
389
  });
376
390
  var attachUpsertLicenseCreditSchemaUnionOutboundSchema = z2.union([
377
391
  attachCreditSchemaUpsertLicense1OutboundSchema,
378
- attachCreditSchemaUpsertLicense2OutboundSchema
392
+ attachCreditSchemaUpsertLicense2OutboundSchema,
393
+ attachCreditSchemaUpsertLicense3OutboundSchema
379
394
  ]);
380
395
  var attachUpsertLicenseProviderMarkupsOutboundSchema = z2.object({
381
396
  markup: z2.number()
@@ -401,7 +416,8 @@ var attachUpsertLicenseFeatureOverrideOutboundSchema = z2.object({
401
416
  z2.array(
402
417
  z2.union([
403
418
  attachCreditSchemaUpsertLicense1OutboundSchema,
404
- attachCreditSchemaUpsertLicense2OutboundSchema
419
+ attachCreditSchemaUpsertLicense2OutboundSchema,
420
+ attachCreditSchemaUpsertLicense3OutboundSchema
405
421
  ])
406
422
  ),
407
423
  z2.undefined()
@@ -547,7 +563,6 @@ var attachUpsertLicenseThresholdBillingSchema = z2.any();
547
563
  var attachUpsertLicenseResetSchema = z2.any();
548
564
  var attachUpsertLicensePriceSchema = z2.any();
549
565
  var attachUpsertLicenseProrationSchema = z2.any();
550
- var attachUpsertLicenseRolloverSchema = z2.any();
551
566
  var attachUpsertLicenseBasePriceSchema = z2.any();
552
567
  var attachBasePriceSchema = z2.any();
553
568
  var attachItemPlanItemSchema = z2.any();
@@ -562,7 +577,6 @@ var attachUpsertLicenseThresholdBillingOutboundSchema = z2.any();
562
577
  var attachUpsertLicenseResetOutboundSchema = z2.any();
563
578
  var attachUpsertLicensePriceOutboundSchema = z2.any();
564
579
  var attachUpsertLicenseProrationOutboundSchema = z2.any();
565
- var attachUpsertLicenseRolloverOutboundSchema = z2.any();
566
580
  var attachUpsertLicenseBasePriceOutboundSchema = z2.any();
567
581
  var attachBasePriceOutboundSchema = z2.any();
568
582
  var attachItemPlanItemOutboundSchema = z2.any();
@@ -572,6 +586,13 @@ var attachCustomizeFreeTrialParamsOutboundSchema = z2.any();
572
586
  var attachBillingControlsOutboundSchema = z2.any();
573
587
  var attachFeatureQuantityOutboundSchema = z2.any();
574
588
  var attachFreeTrialParamsOutboundSchema = z2.any();
589
+ var attachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema2;
590
+ var attachUpsertLicenseRolloverSchema = z2.object({
591
+ max: z2.union([z2.number(), z2.undefined()]).optional(),
592
+ maxPercentage: z2.union([z2.number(), z2.undefined()]).optional(),
593
+ expiryDurationType: attachUpsertLicenseExpiryDurationTypeSchema,
594
+ expiryDurationLength: z2.union([z2.number(), z2.undefined()]).optional()
595
+ });
575
596
  var attachUpsertLicenseDurationSchema = closedEnumSchema2;
576
597
  var attachUpsertLicenseExpirySchema = z2.object({
577
598
  duration: attachUpsertLicenseDurationSchema,
@@ -665,14 +686,16 @@ var attachCreditSchemaUpsertLicense1Schema = z2.object({
665
686
  });
666
687
  var attachUpsertLicenseCreditSchemaUnionSchema = z2.union([
667
688
  attachCreditSchemaUpsertLicense1Schema,
668
- attachCreditSchemaUpsertLicense2Schema
689
+ attachCreditSchemaUpsertLicense2Schema,
690
+ attachCreditSchemaUpsertLicense3Schema
669
691
  ]);
670
692
  var attachUpsertLicenseFeatureOverrideSchema = z2.object({
671
693
  creditSchema: z2.union([
672
694
  z2.array(
673
695
  z2.union([
674
696
  attachCreditSchemaUpsertLicense1Schema,
675
- attachCreditSchemaUpsertLicense2Schema
697
+ attachCreditSchemaUpsertLicense2Schema,
698
+ attachCreditSchemaUpsertLicense3Schema
676
699
  ])
677
700
  ),
678
701
  z2.undefined()
@@ -1566,6 +1589,10 @@ var listPlansItemDisplaySchema = z8.object({
1566
1589
  primaryText: z8.string(),
1567
1590
  secondaryText: z8.union([z8.string(), z8.undefined()]).optional()
1568
1591
  });
1592
+ var listPlansCreditSchemaItemFeatureOverride3Schema = z8.object({
1593
+ meteredFeatureId: z8.string(),
1594
+ excluded: z8.literal(true)
1595
+ });
1569
1596
  var listPlansDimensionsItem4Schema = z8.object({
1570
1597
  match: z8.record(z8.string(), z8.string()),
1571
1598
  priority: z8.union([z8.number(), z8.undefined()]).optional(),
@@ -1667,6 +1694,10 @@ var listPlansVariantDetailsPriceTierSchema = z8.object({
1667
1694
  z8.undefined()
1668
1695
  ]).optional()
1669
1696
  });
1697
+ var listPlansCreditSchemaVariantDetails3Schema = z8.object({
1698
+ meteredFeatureId: z8.string(),
1699
+ excluded: z8.literal(true)
1700
+ });
1670
1701
  var listPlansDimensionsVariantDetails4Schema = z8.object({
1671
1702
  match: z8.record(z8.string(), z8.string()),
1672
1703
  priority: z8.union([z8.number(), z8.undefined()]).optional(),
@@ -1709,9 +1740,6 @@ var listPlansVariantDetailsMarkupsSchema = z8.object({
1709
1740
  var listPlansVariantDetailsUsageLimitFilterSchema = z8.object({
1710
1741
  properties: z8.record(z8.string(), z8.string())
1711
1742
  });
1712
- var listPlansVariantDetailsUsageAlertFilterSchema = z8.object({
1713
- properties: z8.record(z8.string(), z8.string())
1714
- });
1715
1743
  var listPlansParamsOutboundSchema = z8.object({
1716
1744
  customer_id: z8.union([z8.string(), z8.undefined()]).optional(),
1717
1745
  entity_id: z8.union([z8.string(), z8.undefined()]).optional(),
@@ -1858,14 +1886,16 @@ var listPlansCreditSchemaItemFeatureOverride1Schema = z8.object({
1858
1886
  });
1859
1887
  var listPlansItemCreditSchemaUnionSchema = z8.union([
1860
1888
  listPlansCreditSchemaItemFeatureOverride1Schema,
1861
- listPlansCreditSchemaItemFeatureOverride2Schema
1889
+ listPlansCreditSchemaItemFeatureOverride2Schema,
1890
+ listPlansCreditSchemaItemFeatureOverride3Schema
1862
1891
  ]);
1863
1892
  var listPlansItemFeatureOverrideSchema = z8.object({
1864
1893
  creditSchema: z8.union([
1865
1894
  z8.array(
1866
1895
  z8.union([
1867
1896
  listPlansCreditSchemaItemFeatureOverride1Schema,
1868
- listPlansCreditSchemaItemFeatureOverride2Schema
1897
+ listPlansCreditSchemaItemFeatureOverride2Schema,
1898
+ listPlansCreditSchemaItemFeatureOverride3Schema
1869
1899
  ])
1870
1900
  ),
1871
1901
  z8.undefined()
@@ -2091,14 +2121,16 @@ var listPlansCreditSchemaVariantDetails1Schema = z8.object({
2091
2121
  });
2092
2122
  var listPlansVariantDetailsCreditSchemaUnionSchema = z8.union([
2093
2123
  listPlansCreditSchemaVariantDetails1Schema,
2094
- listPlansCreditSchemaVariantDetails2Schema
2124
+ listPlansCreditSchemaVariantDetails2Schema,
2125
+ listPlansCreditSchemaVariantDetails3Schema
2095
2126
  ]);
2096
2127
  var listPlansVariantDetailsFeatureOverrideSchema = z8.object({
2097
2128
  creditSchema: z8.union([
2098
2129
  z8.array(
2099
2130
  z8.union([
2100
2131
  listPlansCreditSchemaVariantDetails1Schema,
2101
- listPlansCreditSchemaVariantDetails2Schema
2132
+ listPlansCreditSchemaVariantDetails2Schema,
2133
+ listPlansCreditSchemaVariantDetails3Schema
2102
2134
  ])
2103
2135
  ),
2104
2136
  z8.undefined()
@@ -2180,20 +2212,13 @@ var listPlansVariantDetailsUsageLimitSchema = z8.object({
2180
2212
  anchor: z8.union([listPlansVariantDetailsAnchorSchema, z8.undefined()]).optional(),
2181
2213
  filter: z8.union([listPlansVariantDetailsUsageLimitFilterSchema, z8.undefined()]).optional()
2182
2214
  });
2183
- var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
2184
- var listPlansVariantDetailsBasisSchema = openEnumSchema6;
2185
- var listPlansVariantDetailsUsageAlertSchema = z8.object({
2186
- featureId: z8.union([z8.string(), z8.undefined()]).optional(),
2187
- enabled: z8.boolean(),
2188
- threshold: z8.number(),
2189
- thresholdType: listPlansVariantDetailsThresholdTypeSchema,
2190
- basis: listPlansVariantDetailsBasisSchema,
2191
- filter: z8.union([listPlansVariantDetailsUsageAlertFilterSchema, z8.undefined()]).optional(),
2192
- name: z8.union([z8.string(), z8.undefined()]).optional()
2193
- });
2194
2215
 
2195
2216
  // src/generated/listPlansSchemas.ts
2196
2217
  import { z as z9 } from "zod/v4";
2218
+ var variantConfigSchema = z9.object({
2219
+ ignorePastDue: z9.boolean(),
2220
+ anchorToMonthStart: z9.boolean()
2221
+ });
2197
2222
  var variantPlanUsageLimitFilterSchema = z9.object({
2198
2223
  properties: z9.record(z9.string(), z9.string())
2199
2224
  });
@@ -2205,15 +2230,11 @@ var variantPlanOverageAllowedSchema = z9.object({
2205
2230
  enabled: z9.boolean()
2206
2231
  });
2207
2232
  var openEnumSchema7 = z9.any();
2208
- var variantPlanUsageLimitIntervalSchema = z9.any();
2209
- var variantPlanAutoTopupSchema = z9.any();
2210
- var variantPlanSpendLimitSchema = z9.any();
2211
2233
  var variantPlanPriceSchema = z9.any();
2212
2234
  var variantItemSchema = z9.any();
2213
2235
  var variantProcessorsSchema = z9.any();
2214
2236
  var variantFreeTrialSchema = z9.any();
2215
2237
  var variantEnvSchema = z9.any();
2216
- var variantConfigSchema = z9.any();
2217
2238
  var listPlansVariantCustomizeSchema = z9.any();
2218
2239
  var listPlansPriceSchema2 = z9.any();
2219
2240
  var listPlansItemSchema2 = z9.any();
@@ -2225,6 +2246,29 @@ var listPlansBillingControlsSchema2 = z9.any();
2225
2246
  var listPlansCustomerEligibilitySchema2 = z9.any();
2226
2247
  var listPlansVariantDetailsSchema = z9.any();
2227
2248
  var listPlansLicenseSchema = z9.any();
2249
+ var variantPlanAutoTopupIntervalSchema = openEnumSchema7;
2250
+ var variantPlanPurchaseLimitSchema = z9.object({
2251
+ interval: variantPlanAutoTopupIntervalSchema,
2252
+ intervalCount: z9.number(),
2253
+ limit: z9.number()
2254
+ });
2255
+ var variantPlanAutoTopupSchema = z9.object({
2256
+ featureId: z9.string(),
2257
+ enabled: z9.boolean(),
2258
+ threshold: z9.number(),
2259
+ quantity: z9.number(),
2260
+ purchaseLimit: z9.union([variantPlanPurchaseLimitSchema, z9.undefined()]).optional(),
2261
+ invoiceMode: z9.union([z9.boolean(), z9.undefined()]).optional()
2262
+ });
2263
+ var variantPlanLimitTypeSchema = openEnumSchema7;
2264
+ var variantPlanSpendLimitSchema = z9.object({
2265
+ featureId: z9.union([z9.string(), z9.undefined()]).optional(),
2266
+ enabled: z9.boolean(),
2267
+ limitType: z9.union([variantPlanLimitTypeSchema, z9.undefined()]).optional(),
2268
+ overageLimit: z9.union([z9.number(), z9.undefined()]).optional(),
2269
+ skipOverageBilling: z9.union([z9.boolean(), z9.undefined()]).optional()
2270
+ });
2271
+ var variantPlanUsageLimitIntervalSchema = openEnumSchema7;
2228
2272
  var variantPlanAnchorSchema = openEnumSchema7;
2229
2273
  var variantPlanUsageLimitSchema = z9.object({
2230
2274
  featureId: z9.string(),
@@ -2348,6 +2392,10 @@ var multiAttachPriceTierSchema = z10.object({
2348
2392
  flatAmount: z10.union([z10.number(), z10.undefined()]).optional(),
2349
2393
  additionalCurrencies: z10.union([z10.array(multiAttachTierAdditionalCurrencySchema), z10.undefined()]).optional()
2350
2394
  });
2395
+ var multiAttachCreditSchema3Schema = z10.object({
2396
+ meteredFeatureId: z10.string(),
2397
+ excluded: z10.literal(true)
2398
+ });
2351
2399
  var multiAttachDimensionsMatch4Schema = z10.union([
2352
2400
  z10.string(),
2353
2401
  z10.number(),
@@ -2526,6 +2574,10 @@ var multiAttachExpiryOutboundSchema = z10.object({
2526
2574
  duration: z10.string(),
2527
2575
  length: z10.number()
2528
2576
  });
2577
+ var multiAttachCreditSchema3OutboundSchema = z10.object({
2578
+ metered_feature_id: z10.string(),
2579
+ excluded: z10.literal(true)
2580
+ });
2529
2581
  var multiAttachDimensionsMatch4OutboundSchema = z10.union([
2530
2582
  z10.string(),
2531
2583
  z10.number(),
@@ -2661,7 +2713,8 @@ var multiAttachCreditSchema1OutboundSchema = z10.object({
2661
2713
  });
2662
2714
  var multiAttachCreditSchemaUnionOutboundSchema = z10.union([
2663
2715
  multiAttachCreditSchema1OutboundSchema,
2664
- multiAttachCreditSchema2OutboundSchema
2716
+ multiAttachCreditSchema2OutboundSchema,
2717
+ multiAttachCreditSchema3OutboundSchema
2665
2718
  ]);
2666
2719
  var multiAttachProviderMarkupsOutboundSchema = z10.object({
2667
2720
  markup: z10.number()
@@ -2687,7 +2740,8 @@ var multiAttachFeatureOverrideOutboundSchema = z10.object({
2687
2740
  z10.array(
2688
2741
  z10.union([
2689
2742
  multiAttachCreditSchema1OutboundSchema,
2690
- multiAttachCreditSchema2OutboundSchema
2743
+ multiAttachCreditSchema2OutboundSchema,
2744
+ multiAttachCreditSchema3OutboundSchema
2691
2745
  ])
2692
2746
  ),
2693
2747
  z10.undefined()
@@ -2928,14 +2982,16 @@ var multiAttachCreditSchema1Schema = z10.object({
2928
2982
  });
2929
2983
  var multiAttachCreditSchemaUnionSchema = z10.union([
2930
2984
  multiAttachCreditSchema1Schema,
2931
- multiAttachCreditSchema2Schema
2985
+ multiAttachCreditSchema2Schema,
2986
+ multiAttachCreditSchema3Schema
2932
2987
  ]);
2933
2988
  var multiAttachFeatureOverrideSchema = z10.object({
2934
2989
  creditSchema: z10.union([
2935
2990
  z10.array(
2936
2991
  z10.union([
2937
2992
  multiAttachCreditSchema1Schema,
2938
- multiAttachCreditSchema2Schema
2993
+ multiAttachCreditSchema2Schema,
2994
+ multiAttachCreditSchema3Schema
2939
2995
  ])
2940
2996
  ),
2941
2997
  z10.undefined()
@@ -3101,6 +3157,10 @@ var openCustomerPortalParamsOutboundSchema = z11.object({
3101
3157
 
3102
3158
  // src/generated/previewAttachSchemas.ts
3103
3159
  import { z as z12 } from "zod/v4";
3160
+ var previewAttachCreditSchemaUpsertLicense3Schema = z12.object({
3161
+ meteredFeatureId: z12.string(),
3162
+ excluded: z12.literal(true)
3163
+ });
3104
3164
  var previewAttachDimensionsUpsertLicenseMatch4Schema = z12.union([
3105
3165
  z12.string(),
3106
3166
  z12.number(),
@@ -3297,10 +3357,20 @@ var previewAttachInvoiceCreditsSchema = z12.object({
3297
3357
  applied: z12.union([z12.number(), z12.undefined()]).optional(),
3298
3358
  currency: z12.string()
3299
3359
  });
3360
+ var previewAttachUpsertLicenseRolloverOutboundSchema = z12.object({
3361
+ max: z12.union([z12.number(), z12.undefined()]).optional(),
3362
+ max_percentage: z12.union([z12.number(), z12.undefined()]).optional(),
3363
+ expiry_duration_type: z12.string(),
3364
+ expiry_duration_length: z12.union([z12.number(), z12.undefined()]).optional()
3365
+ });
3300
3366
  var previewAttachUpsertLicenseExpiryOutboundSchema = z12.object({
3301
3367
  duration: z12.string(),
3302
3368
  length: z12.number()
3303
3369
  });
3370
+ var previewAttachCreditSchemaUpsertLicense3OutboundSchema = z12.object({
3371
+ metered_feature_id: z12.string(),
3372
+ excluded: z12.literal(true)
3373
+ });
3304
3374
  var previewAttachDimensionsUpsertLicenseMatch4OutboundSchema = z12.union(
3305
3375
  [z12.string(), z12.number(), z12.boolean()]
3306
3376
  );
@@ -3425,7 +3495,8 @@ var previewAttachCreditSchemaUpsertLicense1OutboundSchema = z12.object({
3425
3495
  });
3426
3496
  var previewAttachUpsertLicenseCreditSchemaUnionOutboundSchema = z12.union([
3427
3497
  previewAttachCreditSchemaUpsertLicense1OutboundSchema,
3428
- previewAttachCreditSchemaUpsertLicense2OutboundSchema
3498
+ previewAttachCreditSchemaUpsertLicense2OutboundSchema,
3499
+ previewAttachCreditSchemaUpsertLicense3OutboundSchema
3429
3500
  ]);
3430
3501
  var previewAttachUpsertLicenseProviderMarkupsOutboundSchema = z12.object(
3431
3502
  {
@@ -3460,7 +3531,8 @@ var previewAttachUpsertLicenseFeatureOverrideOutboundSchema = z12.object(
3460
3531
  z12.array(
3461
3532
  z12.union([
3462
3533
  previewAttachCreditSchemaUpsertLicense1OutboundSchema,
3463
- previewAttachCreditSchemaUpsertLicense2OutboundSchema
3534
+ previewAttachCreditSchemaUpsertLicense2OutboundSchema,
3535
+ previewAttachCreditSchemaUpsertLicense3OutboundSchema
3464
3536
  ])
3465
3537
  ),
3466
3538
  z12.undefined()
@@ -3614,7 +3686,6 @@ var previewAttachUpsertLicenseThresholdBillingSchema = z12.any();
3614
3686
  var previewAttachUpsertLicenseResetSchema = z12.any();
3615
3687
  var previewAttachUpsertLicensePriceSchema = z12.any();
3616
3688
  var previewAttachUpsertLicenseProrationSchema = z12.any();
3617
- var previewAttachUpsertLicenseRolloverSchema = z12.any();
3618
3689
  var previewAttachUpsertLicenseBasePriceSchema = z12.any();
3619
3690
  var previewAttachBasePriceSchema = z12.any();
3620
3691
  var previewAttachItemPlanItemSchema = z12.any();
@@ -3630,7 +3701,6 @@ var previewAttachUpsertLicenseThresholdBillingOutboundSchema = z12.any();
3630
3701
  var previewAttachUpsertLicenseResetOutboundSchema = z12.any();
3631
3702
  var previewAttachUpsertLicensePriceOutboundSchema = z12.any();
3632
3703
  var previewAttachUpsertLicenseProrationOutboundSchema = z12.any();
3633
- var previewAttachUpsertLicenseRolloverOutboundSchema = z12.any();
3634
3704
  var previewAttachUpsertLicenseBasePriceOutboundSchema = z12.any();
3635
3705
  var previewAttachBasePriceOutboundSchema = z12.any();
3636
3706
  var previewAttachItemPlanItemOutboundSchema = z12.any();
@@ -3640,6 +3710,13 @@ var previewAttachCustomizeFreeTrialParamsOutboundSchema = z12.any();
3640
3710
  var previewAttachBillingControlsOutboundSchema = z12.any();
3641
3711
  var previewAttachFeatureQuantityRequestBodyOutboundSchema = z12.any();
3642
3712
  var previewAttachFreeTrialParamsOutboundSchema = z12.any();
3713
+ var previewAttachUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema9;
3714
+ var previewAttachUpsertLicenseRolloverSchema = z12.object({
3715
+ max: z12.union([z12.number(), z12.undefined()]).optional(),
3716
+ maxPercentage: z12.union([z12.number(), z12.undefined()]).optional(),
3717
+ expiryDurationType: previewAttachUpsertLicenseExpiryDurationTypeSchema,
3718
+ expiryDurationLength: z12.union([z12.number(), z12.undefined()]).optional()
3719
+ });
3643
3720
  var previewAttachUpsertLicenseDurationSchema = closedEnumSchema9;
3644
3721
  var previewAttachUpsertLicenseExpirySchema = z12.object({
3645
3722
  duration: previewAttachUpsertLicenseDurationSchema,
@@ -3733,14 +3810,16 @@ var previewAttachCreditSchemaUpsertLicense1Schema = z12.object({
3733
3810
  });
3734
3811
  var previewAttachUpsertLicenseCreditSchemaUnionSchema = z12.union([
3735
3812
  previewAttachCreditSchemaUpsertLicense1Schema,
3736
- previewAttachCreditSchemaUpsertLicense2Schema
3813
+ previewAttachCreditSchemaUpsertLicense2Schema,
3814
+ previewAttachCreditSchemaUpsertLicense3Schema
3737
3815
  ]);
3738
3816
  var previewAttachUpsertLicenseFeatureOverrideSchema = z12.object({
3739
3817
  creditSchema: z12.union([
3740
3818
  z12.array(
3741
3819
  z12.union([
3742
3820
  previewAttachCreditSchemaUpsertLicense1Schema,
3743
- previewAttachCreditSchemaUpsertLicense2Schema
3821
+ previewAttachCreditSchemaUpsertLicense2Schema,
3822
+ previewAttachCreditSchemaUpsertLicense3Schema
3744
3823
  ])
3745
3824
  ),
3746
3825
  z12.undefined()
@@ -4097,6 +4176,10 @@ var previewMultiAttachPriceTierSchema = z13.object({
4097
4176
  z13.undefined()
4098
4177
  ]).optional()
4099
4178
  });
4179
+ var previewMultiAttachCreditSchema3Schema = z13.object({
4180
+ meteredFeatureId: z13.string(),
4181
+ excluded: z13.literal(true)
4182
+ });
4100
4183
  var previewMultiAttachDimensionsMatch4Schema = z13.union([
4101
4184
  z13.string(),
4102
4185
  z13.number(),
@@ -4343,6 +4426,10 @@ var previewMultiAttachExpiryOutboundSchema = z13.object({
4343
4426
  duration: z13.string(),
4344
4427
  length: z13.number()
4345
4428
  });
4429
+ var previewMultiAttachCreditSchema3OutboundSchema = z13.object({
4430
+ metered_feature_id: z13.string(),
4431
+ excluded: z13.literal(true)
4432
+ });
4346
4433
  var previewMultiAttachDimensionsMatch4OutboundSchema = z13.union([
4347
4434
  z13.string(),
4348
4435
  z13.number(),
@@ -4478,7 +4565,8 @@ var previewMultiAttachCreditSchema1OutboundSchema = z13.object({
4478
4565
  });
4479
4566
  var previewMultiAttachCreditSchemaUnionOutboundSchema = z13.union([
4480
4567
  previewMultiAttachCreditSchema1OutboundSchema,
4481
- previewMultiAttachCreditSchema2OutboundSchema
4568
+ previewMultiAttachCreditSchema2OutboundSchema,
4569
+ previewMultiAttachCreditSchema3OutboundSchema
4482
4570
  ]);
4483
4571
  var previewMultiAttachProviderMarkupsOutboundSchema = z13.object({
4484
4572
  markup: z13.number()
@@ -4504,7 +4592,8 @@ var previewMultiAttachFeatureOverrideOutboundSchema = z13.object({
4504
4592
  z13.array(
4505
4593
  z13.union([
4506
4594
  previewMultiAttachCreditSchema1OutboundSchema,
4507
- previewMultiAttachCreditSchema2OutboundSchema
4595
+ previewMultiAttachCreditSchema2OutboundSchema,
4596
+ previewMultiAttachCreditSchema3OutboundSchema
4508
4597
  ])
4509
4598
  ),
4510
4599
  z13.undefined()
@@ -4767,14 +4856,16 @@ var previewMultiAttachCreditSchema1Schema = z13.object({
4767
4856
  });
4768
4857
  var previewMultiAttachCreditSchemaUnionSchema = z13.union([
4769
4858
  previewMultiAttachCreditSchema1Schema,
4770
- previewMultiAttachCreditSchema2Schema
4859
+ previewMultiAttachCreditSchema2Schema,
4860
+ previewMultiAttachCreditSchema3Schema
4771
4861
  ]);
4772
4862
  var previewMultiAttachFeatureOverrideSchema = z13.object({
4773
4863
  creditSchema: z13.union([
4774
4864
  z13.array(
4775
4865
  z13.union([
4776
4866
  previewMultiAttachCreditSchema1Schema,
4777
- previewMultiAttachCreditSchema2Schema
4867
+ previewMultiAttachCreditSchema2Schema,
4868
+ previewMultiAttachCreditSchema3Schema
4778
4869
  ])
4779
4870
  ),
4780
4871
  z13.undefined()
@@ -4955,6 +5046,10 @@ var previewMultiAttachParamsOutboundSchema = z13.object({
4955
5046
 
4956
5047
  // src/generated/previewUpdateSubscriptionSchemas.ts
4957
5048
  import { z as z14 } from "zod/v4";
5049
+ var previewUpdateCreditSchemaUpsertLicense3Schema = z14.object({
5050
+ meteredFeatureId: z14.string(),
5051
+ excluded: z14.literal(true)
5052
+ });
4958
5053
  var previewUpdateDimensionsUpsertLicenseMatch4Schema = z14.union([
4959
5054
  z14.string(),
4960
5055
  z14.number(),
@@ -5131,10 +5226,20 @@ var previewUpdateInvoiceCreditsSchema = z14.object({
5131
5226
  applied: z14.union([z14.number(), z14.undefined()]).optional(),
5132
5227
  currency: z14.string()
5133
5228
  });
5229
+ var previewUpdateUpsertLicenseRolloverOutboundSchema = z14.object({
5230
+ max: z14.union([z14.number(), z14.undefined()]).optional(),
5231
+ max_percentage: z14.union([z14.number(), z14.undefined()]).optional(),
5232
+ expiry_duration_type: z14.string(),
5233
+ expiry_duration_length: z14.union([z14.number(), z14.undefined()]).optional()
5234
+ });
5134
5235
  var previewUpdateUpsertLicenseExpiryOutboundSchema = z14.object({
5135
5236
  duration: z14.string(),
5136
5237
  length: z14.number()
5137
5238
  });
5239
+ var previewUpdateCreditSchemaUpsertLicense3OutboundSchema = z14.object({
5240
+ metered_feature_id: z14.string(),
5241
+ excluded: z14.literal(true)
5242
+ });
5138
5243
  var previewUpdateDimensionsUpsertLicenseMatch4OutboundSchema = z14.union(
5139
5244
  [z14.string(), z14.number(), z14.boolean()]
5140
5245
  );
@@ -5259,7 +5364,8 @@ var previewUpdateCreditSchemaUpsertLicense1OutboundSchema = z14.object({
5259
5364
  });
5260
5365
  var previewUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z14.union([
5261
5366
  previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
5262
- previewUpdateCreditSchemaUpsertLicense2OutboundSchema
5367
+ previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
5368
+ previewUpdateCreditSchemaUpsertLicense3OutboundSchema
5263
5369
  ]);
5264
5370
  var previewUpdateUpsertLicenseProviderMarkupsOutboundSchema = z14.object(
5265
5371
  {
@@ -5294,7 +5400,8 @@ var previewUpdateUpsertLicenseFeatureOverrideOutboundSchema = z14.object(
5294
5400
  z14.array(
5295
5401
  z14.union([
5296
5402
  previewUpdateCreditSchemaUpsertLicense1OutboundSchema,
5297
- previewUpdateCreditSchemaUpsertLicense2OutboundSchema
5403
+ previewUpdateCreditSchemaUpsertLicense2OutboundSchema,
5404
+ previewUpdateCreditSchemaUpsertLicense3OutboundSchema
5298
5405
  ])
5299
5406
  ),
5300
5407
  z14.undefined()
@@ -5420,7 +5527,6 @@ var previewUpdateUpsertLicenseThresholdBillingSchema = z14.any();
5420
5527
  var previewUpdateUpsertLicenseResetSchema = z14.any();
5421
5528
  var previewUpdateUpsertLicensePriceSchema = z14.any();
5422
5529
  var previewUpdateUpsertLicenseProrationSchema = z14.any();
5423
- var previewUpdateUpsertLicenseRolloverSchema = z14.any();
5424
5530
  var previewUpdateUpsertLicenseBasePriceSchema = z14.any();
5425
5531
  var previewUpdateBasePriceSchema = z14.any();
5426
5532
  var previewUpdateItemPlanItemSchema = z14.any();
@@ -5436,7 +5542,6 @@ var previewUpdateUpsertLicenseThresholdBillingOutboundSchema = z14.any();
5436
5542
  var previewUpdateUpsertLicenseResetOutboundSchema = z14.any();
5437
5543
  var previewUpdateUpsertLicensePriceOutboundSchema = z14.any();
5438
5544
  var previewUpdateUpsertLicenseProrationOutboundSchema = z14.any();
5439
- var previewUpdateUpsertLicenseRolloverOutboundSchema = z14.any();
5440
5545
  var previewUpdateUpsertLicenseBasePriceOutboundSchema = z14.any();
5441
5546
  var previewUpdateBasePriceOutboundSchema = z14.any();
5442
5547
  var previewUpdateItemPlanItemOutboundSchema = z14.any();
@@ -5446,6 +5551,13 @@ var previewUpdateCustomizeFreeTrialParamsOutboundSchema = z14.any();
5446
5551
  var previewUpdateBillingControlsOutboundSchema = z14.any();
5447
5552
  var previewUpdateFeatureQuantityRequestBodyOutboundSchema = z14.any();
5448
5553
  var previewUpdateFreeTrialParamsOutboundSchema = z14.any();
5554
+ var previewUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema11;
5555
+ var previewUpdateUpsertLicenseRolloverSchema = z14.object({
5556
+ max: z14.union([z14.number(), z14.undefined()]).optional(),
5557
+ maxPercentage: z14.union([z14.number(), z14.undefined()]).optional(),
5558
+ expiryDurationType: previewUpdateUpsertLicenseExpiryDurationTypeSchema,
5559
+ expiryDurationLength: z14.union([z14.number(), z14.undefined()]).optional()
5560
+ });
5449
5561
  var previewUpdateUpsertLicenseDurationSchema = closedEnumSchema11;
5450
5562
  var previewUpdateUpsertLicenseExpirySchema = z14.object({
5451
5563
  duration: previewUpdateUpsertLicenseDurationSchema,
@@ -5539,14 +5651,16 @@ var previewUpdateCreditSchemaUpsertLicense1Schema = z14.object({
5539
5651
  });
5540
5652
  var previewUpdateUpsertLicenseCreditSchemaUnionSchema = z14.union([
5541
5653
  previewUpdateCreditSchemaUpsertLicense1Schema,
5542
- previewUpdateCreditSchemaUpsertLicense2Schema
5654
+ previewUpdateCreditSchemaUpsertLicense2Schema,
5655
+ previewUpdateCreditSchemaUpsertLicense3Schema
5543
5656
  ]);
5544
5657
  var previewUpdateUpsertLicenseFeatureOverrideSchema = z14.object({
5545
5658
  creditSchema: z14.union([
5546
5659
  z14.array(
5547
5660
  z14.union([
5548
5661
  previewUpdateCreditSchemaUpsertLicense1Schema,
5549
- previewUpdateCreditSchemaUpsertLicense2Schema
5662
+ previewUpdateCreditSchemaUpsertLicense2Schema,
5663
+ previewUpdateCreditSchemaUpsertLicense3Schema
5550
5664
  ])
5551
5665
  ),
5552
5666
  z14.undefined()
@@ -5860,6 +5974,10 @@ var redeemReferralCodeParamsOutboundSchema = z15.object({
5860
5974
 
5861
5975
  // src/generated/setupPaymentSchemas.ts
5862
5976
  import { z as z16 } from "zod/v4";
5977
+ var setupPaymentCreditSchemaUpsertLicense3Schema = z16.object({
5978
+ meteredFeatureId: z16.string(),
5979
+ excluded: z16.literal(true)
5980
+ });
5863
5981
  var setupPaymentDimensionsUpsertLicenseMatch4Schema = z16.union([
5864
5982
  z16.string(),
5865
5983
  z16.number(),
@@ -5989,10 +6107,20 @@ var setupPaymentResponseSchema = z16.object({
5989
6107
  entityId: z16.union([z16.string(), z16.undefined()]).optional(),
5990
6108
  url: z16.string()
5991
6109
  });
6110
+ var setupPaymentUpsertLicenseRolloverOutboundSchema = z16.object({
6111
+ max: z16.union([z16.number(), z16.undefined()]).optional(),
6112
+ max_percentage: z16.union([z16.number(), z16.undefined()]).optional(),
6113
+ expiry_duration_type: z16.string(),
6114
+ expiry_duration_length: z16.union([z16.number(), z16.undefined()]).optional()
6115
+ });
5992
6116
  var setupPaymentUpsertLicenseExpiryOutboundSchema = z16.object({
5993
6117
  duration: z16.string(),
5994
6118
  length: z16.number()
5995
6119
  });
6120
+ var setupPaymentCreditSchemaUpsertLicense3OutboundSchema = z16.object({
6121
+ metered_feature_id: z16.string(),
6122
+ excluded: z16.literal(true)
6123
+ });
5996
6124
  var setupPaymentDimensionsUpsertLicenseMatch4OutboundSchema = z16.union([
5997
6125
  z16.string(),
5998
6126
  z16.number(),
@@ -6116,7 +6244,8 @@ var setupPaymentCreditSchemaUpsertLicense1OutboundSchema = z16.object({
6116
6244
  var setupPaymentUpsertLicenseCreditSchemaUnionOutboundSchema = z16.union(
6117
6245
  [
6118
6246
  setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
6119
- setupPaymentCreditSchemaUpsertLicense2OutboundSchema
6247
+ setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
6248
+ setupPaymentCreditSchemaUpsertLicense3OutboundSchema
6120
6249
  ]
6121
6250
  );
6122
6251
  var setupPaymentUpsertLicenseProviderMarkupsOutboundSchema = z16.object({
@@ -6146,7 +6275,8 @@ var setupPaymentUpsertLicenseFeatureOverrideOutboundSchema = z16.object({
6146
6275
  z16.array(
6147
6276
  z16.union([
6148
6277
  setupPaymentCreditSchemaUpsertLicense1OutboundSchema,
6149
- setupPaymentCreditSchemaUpsertLicense2OutboundSchema
6278
+ setupPaymentCreditSchemaUpsertLicense2OutboundSchema,
6279
+ setupPaymentCreditSchemaUpsertLicense3OutboundSchema
6150
6280
  ])
6151
6281
  ),
6152
6282
  z16.undefined()
@@ -6290,7 +6420,6 @@ var setupPaymentUpsertLicenseThresholdBillingSchema = z16.any();
6290
6420
  var setupPaymentUpsertLicenseResetSchema = z16.any();
6291
6421
  var setupPaymentUpsertLicensePriceSchema = z16.any();
6292
6422
  var setupPaymentUpsertLicenseProrationSchema = z16.any();
6293
- var setupPaymentUpsertLicenseRolloverSchema = z16.any();
6294
6423
  var setupPaymentUpsertLicenseBasePriceSchema = z16.any();
6295
6424
  var setupPaymentBasePriceSchema = z16.any();
6296
6425
  var setupPaymentItemPlanItemSchema = z16.any();
@@ -6304,7 +6433,6 @@ var setupPaymentUpsertLicenseThresholdBillingOutboundSchema = z16.any();
6304
6433
  var setupPaymentUpsertLicenseResetOutboundSchema = z16.any();
6305
6434
  var setupPaymentUpsertLicensePriceOutboundSchema = z16.any();
6306
6435
  var setupPaymentUpsertLicenseProrationOutboundSchema = z16.any();
6307
- var setupPaymentUpsertLicenseRolloverOutboundSchema = z16.any();
6308
6436
  var setupPaymentUpsertLicenseBasePriceOutboundSchema = z16.any();
6309
6437
  var setupPaymentBasePriceOutboundSchema = z16.any();
6310
6438
  var setupPaymentItemPlanItemOutboundSchema = z16.any();
@@ -6314,6 +6442,13 @@ var setupPaymentCustomizeFreeTrialParamsOutboundSchema = z16.any();
6314
6442
  var setupPaymentBillingControlsOutboundSchema = z16.any();
6315
6443
  var setupPaymentFeatureQuantityOutboundSchema = z16.any();
6316
6444
  var setupPaymentFreeTrialParamsOutboundSchema = z16.any();
6445
+ var setupPaymentUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema12;
6446
+ var setupPaymentUpsertLicenseRolloverSchema = z16.object({
6447
+ max: z16.union([z16.number(), z16.undefined()]).optional(),
6448
+ maxPercentage: z16.union([z16.number(), z16.undefined()]).optional(),
6449
+ expiryDurationType: setupPaymentUpsertLicenseExpiryDurationTypeSchema,
6450
+ expiryDurationLength: z16.union([z16.number(), z16.undefined()]).optional()
6451
+ });
6317
6452
  var setupPaymentUpsertLicenseDurationSchema = closedEnumSchema12;
6318
6453
  var setupPaymentUpsertLicenseExpirySchema = z16.object({
6319
6454
  duration: setupPaymentUpsertLicenseDurationSchema,
@@ -6407,14 +6542,16 @@ var setupPaymentCreditSchemaUpsertLicense1Schema = z16.object({
6407
6542
  });
6408
6543
  var setupPaymentUpsertLicenseCreditSchemaUnionSchema = z16.union([
6409
6544
  setupPaymentCreditSchemaUpsertLicense1Schema,
6410
- setupPaymentCreditSchemaUpsertLicense2Schema
6545
+ setupPaymentCreditSchemaUpsertLicense2Schema,
6546
+ setupPaymentCreditSchemaUpsertLicense3Schema
6411
6547
  ]);
6412
6548
  var setupPaymentUpsertLicenseFeatureOverrideSchema = z16.object({
6413
6549
  creditSchema: z16.union([
6414
6550
  z16.array(
6415
6551
  z16.union([
6416
6552
  setupPaymentCreditSchemaUpsertLicense1Schema,
6417
- setupPaymentCreditSchemaUpsertLicense2Schema
6553
+ setupPaymentCreditSchemaUpsertLicense2Schema,
6554
+ setupPaymentCreditSchemaUpsertLicense3Schema
6418
6555
  ])
6419
6556
  ),
6420
6557
  z16.undefined()
@@ -6665,6 +6802,10 @@ var setupPaymentParamsOutboundSchema = z16.object({
6665
6802
 
6666
6803
  // src/generated/updateSubscriptionSchemas.ts
6667
6804
  import { z as z17 } from "zod/v4";
6805
+ var billingUpdateCreditSchemaUpsertLicense3Schema = z17.object({
6806
+ meteredFeatureId: z17.string(),
6807
+ excluded: z17.literal(true)
6808
+ });
6668
6809
  var billingUpdateDimensionsUpsertLicenseMatch4Schema = z17.union([
6669
6810
  z17.string(),
6670
6811
  z17.number(),
@@ -6776,10 +6917,20 @@ var billingUpdateInvoiceSchema = z17.object({
6776
6917
  currency: z17.string(),
6777
6918
  hostedInvoiceUrl: z17.string().nullable()
6778
6919
  });
6920
+ var billingUpdateUpsertLicenseRolloverOutboundSchema = z17.object({
6921
+ max: z17.union([z17.number(), z17.undefined()]).optional(),
6922
+ max_percentage: z17.union([z17.number(), z17.undefined()]).optional(),
6923
+ expiry_duration_type: z17.string(),
6924
+ expiry_duration_length: z17.union([z17.number(), z17.undefined()]).optional()
6925
+ });
6779
6926
  var billingUpdateUpsertLicenseExpiryOutboundSchema = z17.object({
6780
6927
  duration: z17.string(),
6781
6928
  length: z17.number()
6782
6929
  });
6930
+ var billingUpdateCreditSchemaUpsertLicense3OutboundSchema = z17.object({
6931
+ metered_feature_id: z17.string(),
6932
+ excluded: z17.literal(true)
6933
+ });
6783
6934
  var billingUpdateDimensionsUpsertLicenseMatch4OutboundSchema = z17.union(
6784
6935
  [z17.string(), z17.number(), z17.boolean()]
6785
6936
  );
@@ -6904,7 +7055,8 @@ var billingUpdateCreditSchemaUpsertLicense1OutboundSchema = z17.object({
6904
7055
  });
6905
7056
  var billingUpdateUpsertLicenseCreditSchemaUnionOutboundSchema = z17.union([
6906
7057
  billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
6907
- billingUpdateCreditSchemaUpsertLicense2OutboundSchema
7058
+ billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
7059
+ billingUpdateCreditSchemaUpsertLicense3OutboundSchema
6908
7060
  ]);
6909
7061
  var billingUpdateUpsertLicenseProviderMarkupsOutboundSchema = z17.object(
6910
7062
  {
@@ -6939,7 +7091,8 @@ var billingUpdateUpsertLicenseFeatureOverrideOutboundSchema = z17.object(
6939
7091
  z17.array(
6940
7092
  z17.union([
6941
7093
  billingUpdateCreditSchemaUpsertLicense1OutboundSchema,
6942
- billingUpdateCreditSchemaUpsertLicense2OutboundSchema
7094
+ billingUpdateCreditSchemaUpsertLicense2OutboundSchema,
7095
+ billingUpdateCreditSchemaUpsertLicense3OutboundSchema
6943
7096
  ])
6944
7097
  ),
6945
7098
  z17.undefined()
@@ -7065,7 +7218,6 @@ var billingUpdateUpsertLicenseThresholdBillingSchema = z17.any();
7065
7218
  var billingUpdateUpsertLicenseResetSchema = z17.any();
7066
7219
  var billingUpdateUpsertLicensePriceSchema = z17.any();
7067
7220
  var billingUpdateUpsertLicenseProrationSchema = z17.any();
7068
- var billingUpdateUpsertLicenseRolloverSchema = z17.any();
7069
7221
  var billingUpdateUpsertLicenseBasePriceSchema = z17.any();
7070
7222
  var billingUpdateBasePriceSchema = z17.any();
7071
7223
  var billingUpdateItemPlanItemSchema = z17.any();
@@ -7080,7 +7232,6 @@ var billingUpdateUpsertLicenseThresholdBillingOutboundSchema = z17.any();
7080
7232
  var billingUpdateUpsertLicenseResetOutboundSchema = z17.any();
7081
7233
  var billingUpdateUpsertLicensePriceOutboundSchema = z17.any();
7082
7234
  var billingUpdateUpsertLicenseProrationOutboundSchema = z17.any();
7083
- var billingUpdateUpsertLicenseRolloverOutboundSchema = z17.any();
7084
7235
  var billingUpdateUpsertLicenseBasePriceOutboundSchema = z17.any();
7085
7236
  var billingUpdateBasePriceOutboundSchema = z17.any();
7086
7237
  var billingUpdateItemPlanItemOutboundSchema = z17.any();
@@ -7090,6 +7241,13 @@ var billingUpdateCustomizeFreeTrialParamsOutboundSchema = z17.any();
7090
7241
  var billingUpdateBillingControlsOutboundSchema = z17.any();
7091
7242
  var billingUpdateFeatureQuantityOutboundSchema = z17.any();
7092
7243
  var billingUpdateFreeTrialParamsOutboundSchema = z17.any();
7244
+ var billingUpdateUpsertLicenseExpiryDurationTypeSchema = closedEnumSchema13;
7245
+ var billingUpdateUpsertLicenseRolloverSchema = z17.object({
7246
+ max: z17.union([z17.number(), z17.undefined()]).optional(),
7247
+ maxPercentage: z17.union([z17.number(), z17.undefined()]).optional(),
7248
+ expiryDurationType: billingUpdateUpsertLicenseExpiryDurationTypeSchema,
7249
+ expiryDurationLength: z17.union([z17.number(), z17.undefined()]).optional()
7250
+ });
7093
7251
  var billingUpdateUpsertLicenseDurationSchema = closedEnumSchema13;
7094
7252
  var billingUpdateUpsertLicenseExpirySchema = z17.object({
7095
7253
  duration: billingUpdateUpsertLicenseDurationSchema,
@@ -7183,14 +7341,16 @@ var billingUpdateCreditSchemaUpsertLicense1Schema = z17.object({
7183
7341
  });
7184
7342
  var billingUpdateUpsertLicenseCreditSchemaUnionSchema = z17.union([
7185
7343
  billingUpdateCreditSchemaUpsertLicense1Schema,
7186
- billingUpdateCreditSchemaUpsertLicense2Schema
7344
+ billingUpdateCreditSchemaUpsertLicense2Schema,
7345
+ billingUpdateCreditSchemaUpsertLicense3Schema
7187
7346
  ]);
7188
7347
  var billingUpdateUpsertLicenseFeatureOverrideSchema = z17.object({
7189
7348
  creditSchema: z17.union([
7190
7349
  z17.array(
7191
7350
  z17.union([
7192
7351
  billingUpdateCreditSchemaUpsertLicense1Schema,
7193
- billingUpdateCreditSchemaUpsertLicense2Schema
7352
+ billingUpdateCreditSchemaUpsertLicense2Schema,
7353
+ billingUpdateCreditSchemaUpsertLicense3Schema
7194
7354
  ])
7195
7355
  ),
7196
7356
  z17.undefined()