autumn-js 1.2.3 → 1.2.5

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 (151) hide show
  1. package/dist/backend/adapters/express.d.mts +1 -1
  2. package/dist/backend/adapters/express.d.ts +1 -1
  3. package/dist/backend/adapters/express.js +31 -16
  4. package/dist/backend/adapters/express.mjs +6 -6
  5. package/dist/backend/adapters/fetch.d.mts +1 -1
  6. package/dist/backend/adapters/fetch.d.ts +1 -1
  7. package/dist/backend/adapters/fetch.js +31 -16
  8. package/dist/backend/adapters/fetch.mjs +6 -6
  9. package/dist/backend/adapters/hono.d.mts +1 -1
  10. package/dist/backend/adapters/hono.d.ts +1 -1
  11. package/dist/backend/adapters/hono.js +31 -16
  12. package/dist/backend/adapters/hono.mjs +6 -6
  13. package/dist/backend/adapters/index.d.mts +1 -1
  14. package/dist/backend/adapters/index.d.ts +1 -1
  15. package/dist/backend/adapters/index.js +31 -16
  16. package/dist/backend/adapters/index.mjs +9 -9
  17. package/dist/backend/adapters/next.d.mts +1 -1
  18. package/dist/backend/adapters/next.d.ts +1 -1
  19. package/dist/backend/adapters/next.js +31 -16
  20. package/dist/backend/adapters/next.mjs +6 -6
  21. package/dist/backend/{authTypes-B5VxPaMo.d.mts → authTypes-Bdpu8A6G.d.mts} +4 -0
  22. package/dist/backend/{authTypes-B5VxPaMo.d.ts → authTypes-Bdpu8A6G.d.ts} +4 -0
  23. package/dist/backend/{chunk-N62MDT7U.mjs → chunk-3RN6TO3T.mjs} +4 -2
  24. package/dist/backend/{chunk-IUFWKMTJ.mjs → chunk-4VEVV4YT.mjs} +1 -1
  25. package/dist/backend/{chunk-ETHQSA52.mjs → chunk-CZ3GSCGC.mjs} +2 -2
  26. package/dist/backend/{chunk-OLHAIHAX.mjs → chunk-DYVMFOAC.mjs} +2 -2
  27. package/dist/backend/{chunk-2YEMC57K.mjs → chunk-J2P4XIDE.mjs} +1 -1
  28. package/dist/backend/{chunk-CCEZMERA.mjs → chunk-LKQP4KZQ.mjs} +27 -14
  29. package/dist/backend/{chunk-IFFSWLXT.mjs → chunk-ROGSCIQY.mjs} +1 -1
  30. package/dist/backend/{chunk-FRKRWJ5S.mjs → chunk-VDUNE74N.mjs} +1 -1
  31. package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
  32. package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
  33. package/dist/backend/core/handlers/coreHandler.js +31 -16
  34. package/dist/backend/core/handlers/coreHandler.mjs +4 -4
  35. package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
  36. package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
  37. package/dist/backend/core/handlers/executeRoute.mjs +1 -1
  38. package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
  39. package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
  40. package/dist/backend/core/handlers/handleRouteByName.js +31 -16
  41. package/dist/backend/core/handlers/handleRouteByName.mjs +4 -4
  42. package/dist/backend/core/handlers/index.d.mts +2 -2
  43. package/dist/backend/core/handlers/index.d.ts +2 -2
  44. package/dist/backend/core/handlers/index.js +31 -16
  45. package/dist/backend/core/handlers/index.mjs +5 -5
  46. package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
  47. package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
  48. package/dist/backend/core/index.d.mts +2 -2
  49. package/dist/backend/core/index.d.ts +2 -2
  50. package/dist/backend/core/index.js +31 -16
  51. package/dist/backend/core/index.mjs +7 -7
  52. package/dist/backend/core/routes/index.d.mts +2 -2
  53. package/dist/backend/core/routes/index.d.ts +2 -2
  54. package/dist/backend/core/routes/index.js +4 -2
  55. package/dist/backend/core/routes/index.mjs +2 -2
  56. package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
  57. package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
  58. package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
  59. package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
  60. package/dist/backend/core/routes/routeConfigs.js +4 -2
  61. package/dist/backend/core/routes/routeConfigs.mjs +2 -2
  62. package/dist/backend/core/types/authTypes.d.mts +1 -1
  63. package/dist/backend/core/types/authTypes.d.ts +1 -1
  64. package/dist/backend/core/types/handlerTypes.d.mts +2 -2
  65. package/dist/backend/core/types/handlerTypes.d.ts +2 -2
  66. package/dist/backend/core/types/index.d.mts +2 -2
  67. package/dist/backend/core/types/index.d.ts +2 -2
  68. package/dist/backend/core/types/routeTypes.d.mts +2 -2
  69. package/dist/backend/core/types/routeTypes.d.ts +2 -2
  70. package/dist/backend/core/utils/index.mjs +3 -3
  71. package/dist/backend/index.d.mts +4 -4
  72. package/dist/backend/index.d.ts +4 -4
  73. package/dist/backend/index.js +31 -16
  74. package/dist/backend/index.mjs +7 -7
  75. package/dist/backend/{routeTypes-BkSHRiCI.d.ts → routeTypes-CmW3_-dX.d.ts} +22 -1
  76. package/dist/backend/{routeTypes-C1hUtfD8.d.mts → routeTypes-ODZ6pr_U.d.mts} +22 -1
  77. package/dist/better-auth/{chunk-6J74ZVNY.mjs → chunk-3GJ25EX7.mjs} +28 -15
  78. package/dist/better-auth/{chunk-2PRVJULJ.mjs → chunk-CG3LL2TQ.mjs} +4 -2
  79. package/dist/better-auth/{chunk-IY7FPOWF.mjs → chunk-UCMJFTKD.mjs} +1 -1
  80. package/dist/better-auth/index.js +31 -16
  81. package/dist/better-auth/index.mjs +3 -3
  82. package/dist/better-auth/types.d.mts +4 -0
  83. package/dist/better-auth/types.d.ts +4 -0
  84. package/dist/better-auth/utils/createAutumnEndpoint.js +4 -2
  85. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  86. package/dist/better-auth/utils/handleBetterAuthRoute.js +31 -16
  87. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  88. package/dist/better-auth/utils/index.js +31 -16
  89. package/dist/better-auth/utils/index.mjs +3 -3
  90. package/dist/react/AutumnContext.d.mts +2 -2
  91. package/dist/react/AutumnContext.d.ts +2 -2
  92. package/dist/react/AutumnProvider.d.mts +2 -1
  93. package/dist/react/AutumnProvider.d.ts +2 -1
  94. package/dist/react/AutumnProvider.js +18 -8
  95. package/dist/react/AutumnProvider.mjs +3 -3
  96. package/dist/react/{chunk-R7I3UPL4.mjs → chunk-26CKSAPZ.mjs} +6 -4
  97. package/dist/react/{chunk-QEJLIFBC.mjs → chunk-QOFGTXEX.mjs} +3 -2
  98. package/dist/react/{chunk-M34U5F2H.mjs → chunk-SCDO26YC.mjs} +11 -4
  99. package/dist/react/client/AutumnClient.d.mts +3 -2
  100. package/dist/react/client/AutumnClient.d.ts +3 -2
  101. package/dist/react/client/AutumnClient.js +13 -5
  102. package/dist/react/client/AutumnClient.mjs +2 -2
  103. package/dist/react/client/IAutumnClient.d.mts +2 -2
  104. package/dist/react/client/IAutumnClient.d.ts +2 -2
  105. package/dist/react/client/index.d.mts +2 -2
  106. package/dist/react/client/index.d.ts +2 -2
  107. package/dist/react/client/index.js +13 -5
  108. package/dist/react/client/index.mjs +2 -2
  109. package/dist/react/client/internal/httpClient.d.mts +1 -0
  110. package/dist/react/client/internal/httpClient.d.ts +1 -0
  111. package/dist/react/client/internal/httpClient.js +11 -4
  112. package/dist/react/client/internal/httpClient.mjs +1 -1
  113. package/dist/react/{customer-CJSDgQMF.d.ts → customer-BPHnUS4N.d.ts} +4 -0
  114. package/dist/react/{customer-Bb7J-_p_.d.mts → customer-DDRi84Zq.d.mts} +4 -0
  115. package/dist/react/hooks/index.d.mts +2 -2
  116. package/dist/react/hooks/index.d.ts +2 -2
  117. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
  118. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
  119. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
  120. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
  121. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
  122. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
  123. package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
  124. package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
  125. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
  126. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
  127. package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
  128. package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
  129. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  130. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  131. package/dist/react/hooks/useCustomer.d.mts +2 -2
  132. package/dist/react/hooks/useCustomer.d.ts +2 -2
  133. package/dist/react/hooks/useEntity.d.mts +1 -1
  134. package/dist/react/hooks/useEntity.d.ts +1 -1
  135. package/dist/react/hooks/useListEvents.d.mts +1 -1
  136. package/dist/react/hooks/useListEvents.d.ts +1 -1
  137. package/dist/react/hooks/useListPlans.d.mts +1 -1
  138. package/dist/react/hooks/useListPlans.d.ts +1 -1
  139. package/dist/react/hooks/useReferrals.d.mts +1 -1
  140. package/dist/react/hooks/useReferrals.d.ts +1 -1
  141. package/dist/react/index.d.mts +2 -2
  142. package/dist/react/index.d.ts +2 -2
  143. package/dist/react/index.js +18 -8
  144. package/dist/react/index.mjs +3 -3
  145. package/dist/react/{params-CheyAQ0-.d.mts → params-BUYYymIy.d.mts} +5 -0
  146. package/dist/react/{params-yCtJ7lOA.d.ts → params-Dpki_MJA.d.ts} +5 -0
  147. package/dist/sdk/index.d.mts +30 -2
  148. package/dist/sdk/index.d.ts +30 -2
  149. package/dist/sdk/index.js +27 -14
  150. package/dist/sdk/index.mjs +27 -14
  151. package/package.json +1 -1
@@ -81,8 +81,8 @@ var SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "2.2.0",
83
83
  sdkVersion: "0.10.17",
84
- genVersion: "2.879.1",
85
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
84
+ genVersion: "2.879.6",
85
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
86
86
  };
87
87
 
88
88
  // ../sdk/src/lib/http.ts
@@ -2334,6 +2334,7 @@ var ProductScenario = {
2334
2334
  New: "new",
2335
2335
  Renew: "renew",
2336
2336
  Upgrade: "upgrade",
2337
+ UpdatePrepaidQuantity: "update_prepaid_quantity",
2337
2338
  Downgrade: "downgrade",
2338
2339
  Cancel: "cancel",
2339
2340
  Expired: "expired",
@@ -2699,12 +2700,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
2699
2700
  quantity: z15.number(),
2700
2701
  purchaseLimit: z15.optional(
2701
2702
  z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
2702
- )
2703
+ ),
2704
+ invoiceMode: z15.optional(z15.boolean())
2703
2705
  }),
2704
2706
  z15.transform((v) => {
2705
2707
  return remap(v, {
2706
2708
  featureId: "feature_id",
2707
- purchaseLimit: "purchase_limit"
2709
+ purchaseLimit: "purchase_limit",
2710
+ invoiceMode: "invoice_mode"
2708
2711
  });
2709
2712
  })
2710
2713
  );
@@ -4058,12 +4061,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
4058
4061
  quantity: number2(),
4059
4062
  purchase_limit: optional2(
4060
4063
  z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
4061
- )
4064
+ ),
4065
+ invoice_mode: optional2(boolean2())
4062
4066
  }),
4063
4067
  z21.transform((v) => {
4064
4068
  return remap(v, {
4065
4069
  "feature_id": "featureId",
4066
- "purchase_limit": "purchaseLimit"
4070
+ "purchase_limit": "purchaseLimit",
4071
+ "invoice_mode": "invoiceMode"
4067
4072
  });
4068
4073
  })
4069
4074
  );
@@ -4833,12 +4838,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
4833
4838
  quantity: z30.number(),
4834
4839
  purchaseLimit: z30.optional(
4835
4840
  z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
4836
- )
4841
+ ),
4842
+ invoiceMode: z30.optional(z30.boolean())
4837
4843
  }),
4838
4844
  z30.transform((v) => {
4839
4845
  return remap(v, {
4840
4846
  featureId: "feature_id",
4841
- purchaseLimit: "purchase_limit"
4847
+ purchaseLimit: "purchase_limit",
4848
+ invoiceMode: "invoice_mode"
4842
4849
  });
4843
4850
  })
4844
4851
  );
@@ -5323,12 +5330,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
5323
5330
  quantity: number2(),
5324
5331
  purchase_limit: optional2(
5325
5332
  z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
5326
- )
5333
+ ),
5334
+ invoice_mode: optional2(boolean2())
5327
5335
  }),
5328
5336
  z32.transform((v) => {
5329
5337
  return remap(v, {
5330
5338
  "feature_id": "featureId",
5331
- "purchase_limit": "purchaseLimit"
5339
+ "purchase_limit": "purchaseLimit",
5340
+ "invoice_mode": "invoiceMode"
5332
5341
  });
5333
5342
  })
5334
5343
  );
@@ -8563,12 +8572,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
8563
8572
  quantity: z45.number(),
8564
8573
  purchaseLimit: z45.optional(
8565
8574
  z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
8566
- )
8575
+ ),
8576
+ invoiceMode: z45.optional(z45.boolean())
8567
8577
  }),
8568
8578
  z45.transform((v) => {
8569
8579
  return remap(v, {
8570
8580
  featureId: "feature_id",
8571
- purchaseLimit: "purchase_limit"
8581
+ purchaseLimit: "purchase_limit",
8582
+ invoiceMode: "invoice_mode"
8572
8583
  });
8573
8584
  })
8574
8585
  );
@@ -8684,12 +8695,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
8684
8695
  quantity: number2(),
8685
8696
  purchase_limit: optional2(
8686
8697
  z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
8687
- )
8698
+ ),
8699
+ invoice_mode: optional2(boolean2())
8688
8700
  }),
8689
8701
  z45.transform((v) => {
8690
8702
  return remap(v, {
8691
8703
  "feature_id": "featureId",
8692
- "purchase_limit": "purchaseLimit"
8704
+ "purchase_limit": "purchaseLimit",
8705
+ "invoice_mode": "invoiceMode"
8693
8706
  });
8694
8707
  })
8695
8708
  );
@@ -14602,7 +14615,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
14602
14615
  enabled: import_v44.z.boolean(),
14603
14616
  threshold: import_v44.z.number(),
14604
14617
  quantity: import_v44.z.number(),
14605
- purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
14618
+ purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
14619
+ invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14606
14620
  });
14607
14621
  var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
14608
14622
  feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
@@ -14660,7 +14674,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
14660
14674
  enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
14661
14675
  threshold: import_v44.z.number(),
14662
14676
  quantity: import_v44.z.number(),
14663
- purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
14677
+ purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
14678
+ invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14664
14679
  });
14665
14680
  var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
14666
14681
  var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-IUFWKMTJ.mjs";
3
+ } from "../chunk-4VEVV4YT.mjs";
4
4
  import {
5
5
  autumnHandler as autumnHandler2
6
- } from "../chunk-IFFSWLXT.mjs";
6
+ } from "../chunk-ROGSCIQY.mjs";
7
7
  import {
8
8
  autumnHandler as autumnHandler3
9
- } from "../chunk-2YEMC57K.mjs";
9
+ } from "../chunk-J2P4XIDE.mjs";
10
10
  import {
11
11
  autumnHandler as autumnHandler4
12
- } from "../chunk-FRKRWJ5S.mjs";
12
+ } from "../chunk-VDUNE74N.mjs";
13
13
  import "../chunk-WYDGEDEU.mjs";
14
14
  import "../chunk-VXND2UDT.mjs";
15
- import "../chunk-OLHAIHAX.mjs";
16
- import "../chunk-ETHQSA52.mjs";
15
+ import "../chunk-DYVMFOAC.mjs";
16
+ import "../chunk-CZ3GSCGC.mjs";
17
17
  import "../chunk-TSF4YCUO.mjs";
18
18
  import "../chunk-UAR3TMWI.mjs";
19
- import "../chunk-CCEZMERA.mjs";
20
- import "../chunk-N62MDT7U.mjs";
19
+ import "../chunk-LKQP4KZQ.mjs";
20
+ import "../chunk-3RN6TO3T.mjs";
21
21
  import "../chunk-S5HPMJ4U.mjs";
22
22
  import "../chunk-OTXV5FY7.mjs";
23
- import "../chunk-Z6QP3YEA.mjs";
24
23
  import "../chunk-VZIMT7AO.mjs";
24
+ import "../chunk-Z6QP3YEA.mjs";
25
25
  import "../chunk-TBQ27LIK.mjs";
26
26
  import "../chunk-J44WR3QZ.mjs";
27
27
  import "../chunk-N7NFYY54.mjs";
@@ -1,5 +1,5 @@
1
1
  import { NextResponse } from 'next/server';
2
- import { A as AuthResult } from '../authTypes-B5VxPaMo.mjs';
2
+ import { A as AuthResult } from '../authTypes-Bdpu8A6G.mjs';
3
3
 
4
4
  type NextAutumnHandlerOptions = {
5
5
  /** Function to identify the customer from the request */
@@ -1,5 +1,5 @@
1
1
  import { NextResponse } from 'next/server';
2
- import { A as AuthResult } from '../authTypes-B5VxPaMo.js';
2
+ import { A as AuthResult } from '../authTypes-Bdpu8A6G.js';
3
3
 
4
4
  type NextAutumnHandlerOptions = {
5
5
  /** Function to identify the customer from the request */
@@ -79,8 +79,8 @@ var SDK_METADATA = {
79
79
  language: "typescript",
80
80
  openapiDocVersion: "2.2.0",
81
81
  sdkVersion: "0.10.17",
82
- genVersion: "2.879.1",
83
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
82
+ genVersion: "2.879.6",
83
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
84
84
  };
85
85
 
86
86
  // ../sdk/src/lib/http.ts
@@ -2332,6 +2332,7 @@ var ProductScenario = {
2332
2332
  New: "new",
2333
2333
  Renew: "renew",
2334
2334
  Upgrade: "upgrade",
2335
+ UpdatePrepaidQuantity: "update_prepaid_quantity",
2335
2336
  Downgrade: "downgrade",
2336
2337
  Cancel: "cancel",
2337
2338
  Expired: "expired",
@@ -2697,12 +2698,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
2697
2698
  quantity: z15.number(),
2698
2699
  purchaseLimit: z15.optional(
2699
2700
  z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
2700
- )
2701
+ ),
2702
+ invoiceMode: z15.optional(z15.boolean())
2701
2703
  }),
2702
2704
  z15.transform((v) => {
2703
2705
  return remap(v, {
2704
2706
  featureId: "feature_id",
2705
- purchaseLimit: "purchase_limit"
2707
+ purchaseLimit: "purchase_limit",
2708
+ invoiceMode: "invoice_mode"
2706
2709
  });
2707
2710
  })
2708
2711
  );
@@ -4056,12 +4059,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
4056
4059
  quantity: number2(),
4057
4060
  purchase_limit: optional2(
4058
4061
  z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
4059
- )
4062
+ ),
4063
+ invoice_mode: optional2(boolean2())
4060
4064
  }),
4061
4065
  z21.transform((v) => {
4062
4066
  return remap(v, {
4063
4067
  "feature_id": "featureId",
4064
- "purchase_limit": "purchaseLimit"
4068
+ "purchase_limit": "purchaseLimit",
4069
+ "invoice_mode": "invoiceMode"
4065
4070
  });
4066
4071
  })
4067
4072
  );
@@ -4831,12 +4836,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
4831
4836
  quantity: z30.number(),
4832
4837
  purchaseLimit: z30.optional(
4833
4838
  z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
4834
- )
4839
+ ),
4840
+ invoiceMode: z30.optional(z30.boolean())
4835
4841
  }),
4836
4842
  z30.transform((v) => {
4837
4843
  return remap(v, {
4838
4844
  featureId: "feature_id",
4839
- purchaseLimit: "purchase_limit"
4845
+ purchaseLimit: "purchase_limit",
4846
+ invoiceMode: "invoice_mode"
4840
4847
  });
4841
4848
  })
4842
4849
  );
@@ -5321,12 +5328,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
5321
5328
  quantity: number2(),
5322
5329
  purchase_limit: optional2(
5323
5330
  z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
5324
- )
5331
+ ),
5332
+ invoice_mode: optional2(boolean2())
5325
5333
  }),
5326
5334
  z32.transform((v) => {
5327
5335
  return remap(v, {
5328
5336
  "feature_id": "featureId",
5329
- "purchase_limit": "purchaseLimit"
5337
+ "purchase_limit": "purchaseLimit",
5338
+ "invoice_mode": "invoiceMode"
5330
5339
  });
5331
5340
  })
5332
5341
  );
@@ -8561,12 +8570,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
8561
8570
  quantity: z45.number(),
8562
8571
  purchaseLimit: z45.optional(
8563
8572
  z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
8564
- )
8573
+ ),
8574
+ invoiceMode: z45.optional(z45.boolean())
8565
8575
  }),
8566
8576
  z45.transform((v) => {
8567
8577
  return remap(v, {
8568
8578
  featureId: "feature_id",
8569
- purchaseLimit: "purchase_limit"
8579
+ purchaseLimit: "purchase_limit",
8580
+ invoiceMode: "invoice_mode"
8570
8581
  });
8571
8582
  })
8572
8583
  );
@@ -8682,12 +8693,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
8682
8693
  quantity: number2(),
8683
8694
  purchase_limit: optional2(
8684
8695
  z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
8685
- )
8696
+ ),
8697
+ invoice_mode: optional2(boolean2())
8686
8698
  }),
8687
8699
  z45.transform((v) => {
8688
8700
  return remap(v, {
8689
8701
  "feature_id": "featureId",
8690
- "purchase_limit": "purchaseLimit"
8702
+ "purchase_limit": "purchaseLimit",
8703
+ "invoice_mode": "invoiceMode"
8691
8704
  });
8692
8705
  })
8693
8706
  );
@@ -14600,7 +14613,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
14600
14613
  enabled: import_v44.z.boolean(),
14601
14614
  threshold: import_v44.z.number(),
14602
14615
  quantity: import_v44.z.number(),
14603
- purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
14616
+ purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
14617
+ invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14604
14618
  });
14605
14619
  var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
14606
14620
  feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
@@ -14658,7 +14672,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
14658
14672
  enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
14659
14673
  threshold: import_v44.z.number(),
14660
14674
  quantity: import_v44.z.number(),
14661
- purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
14675
+ purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
14676
+ invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14662
14677
  });
14663
14678
  var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
14664
14679
  var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-FRKRWJ5S.mjs";
3
+ } from "../chunk-VDUNE74N.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-OLHAIHAX.mjs";
7
- import "../chunk-ETHQSA52.mjs";
6
+ import "../chunk-DYVMFOAC.mjs";
7
+ import "../chunk-CZ3GSCGC.mjs";
8
8
  import "../chunk-TSF4YCUO.mjs";
9
9
  import "../chunk-UAR3TMWI.mjs";
10
- import "../chunk-CCEZMERA.mjs";
11
- import "../chunk-N62MDT7U.mjs";
10
+ import "../chunk-LKQP4KZQ.mjs";
11
+ import "../chunk-3RN6TO3T.mjs";
12
12
  import "../chunk-S5HPMJ4U.mjs";
13
13
  import "../chunk-OTXV5FY7.mjs";
14
- import "../chunk-Z6QP3YEA.mjs";
15
14
  import "../chunk-VZIMT7AO.mjs";
15
+ import "../chunk-Z6QP3YEA.mjs";
16
16
  import "../chunk-TBQ27LIK.mjs";
17
17
  import "../chunk-J44WR3QZ.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
@@ -57,6 +57,10 @@ type GetOrCreateCustomerAutoTopup = {
57
57
  * Optional rate limit to cap how often auto top-ups occur.
58
58
  */
59
59
  purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
60
+ /**
61
+ * When true, auto top-up creates a send_invoice invoice instead of auto-charging.
62
+ */
63
+ invoiceMode?: boolean | undefined;
60
64
  };
61
65
  type GetOrCreateCustomerSpendLimit = {
62
66
  /**
@@ -57,6 +57,10 @@ type GetOrCreateCustomerAutoTopup = {
57
57
  * Optional rate limit to cap how often auto top-ups occur.
58
58
  */
59
59
  purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
60
+ /**
61
+ * When true, auto top-up creates a send_invoice invoice instead of auto-charging.
62
+ */
63
+ invoiceMode?: boolean | undefined;
60
64
  };
61
65
  type GetOrCreateCustomerSpendLimit = {
62
66
  /**
@@ -358,7 +358,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = z4.object({
358
358
  enabled: z4.boolean(),
359
359
  threshold: z4.number(),
360
360
  quantity: z4.number(),
361
- purchase_limit: z4.union([getOrCreateCustomerPurchaseLimitOutboundSchema, z4.undefined()]).optional()
361
+ purchase_limit: z4.union([getOrCreateCustomerPurchaseLimitOutboundSchema, z4.undefined()]).optional(),
362
+ invoice_mode: z4.union([z4.boolean(), z4.undefined()]).optional()
362
363
  });
363
364
  var getOrCreateCustomerSpendLimitOutboundSchema = z4.object({
364
365
  feature_id: z4.union([z4.string(), z4.undefined()]).optional(),
@@ -416,7 +417,8 @@ var getOrCreateCustomerAutoTopupSchema = z4.object({
416
417
  enabled: z4.union([z4.boolean(), z4.undefined()]).optional(),
417
418
  threshold: z4.number(),
418
419
  quantity: z4.number(),
419
- purchaseLimit: z4.union([getOrCreateCustomerPurchaseLimitSchema, z4.undefined()]).optional()
420
+ purchaseLimit: z4.union([getOrCreateCustomerPurchaseLimitSchema, z4.undefined()]).optional(),
421
+ invoiceMode: z4.union([z4.boolean(), z4.undefined()]).optional()
420
422
  });
421
423
  var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
422
424
  var getOrCreateCustomerUsageAlertSchema = z4.object({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-ETHQSA52.mjs";
3
+ } from "./chunk-CZ3GSCGC.mjs";
4
4
 
5
5
  // src/backend/adapters/express.ts
6
6
  function autumnHandler(options) {
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-UAR3TMWI.mjs";
4
4
  import {
5
5
  Autumn
6
- } from "./chunk-CCEZMERA.mjs";
6
+ } from "./chunk-LKQP4KZQ.mjs";
7
7
  import {
8
8
  routeConfigs
9
- } from "./chunk-N62MDT7U.mjs";
9
+ } from "./chunk-3RN6TO3T.mjs";
10
10
  import {
11
11
  executeRoute
12
12
  } from "./chunk-S5HPMJ4U.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-CCEZMERA.mjs";
3
+ } from "./chunk-LKQP4KZQ.mjs";
4
4
  import {
5
5
  routeConfigs
6
- } from "./chunk-N62MDT7U.mjs";
6
+ } from "./chunk-3RN6TO3T.mjs";
7
7
  import {
8
8
  executeRoute
9
9
  } from "./chunk-S5HPMJ4U.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-ETHQSA52.mjs";
3
+ } from "./chunk-CZ3GSCGC.mjs";
4
4
 
5
5
  // src/backend/adapters/hono.ts
6
6
  function autumnHandler(options) {
@@ -2248,6 +2248,7 @@ var ProductScenario = {
2248
2248
  New: "new",
2249
2249
  Renew: "renew",
2250
2250
  Upgrade: "upgrade",
2251
+ UpdatePrepaidQuantity: "update_prepaid_quantity",
2251
2252
  Downgrade: "downgrade",
2252
2253
  Cancel: "cancel",
2253
2254
  Expired: "expired",
@@ -2613,12 +2614,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
2613
2614
  quantity: z15.number(),
2614
2615
  purchaseLimit: z15.optional(
2615
2616
  z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
2616
- )
2617
+ ),
2618
+ invoiceMode: z15.optional(z15.boolean())
2617
2619
  }),
2618
2620
  z15.transform((v) => {
2619
2621
  return remap(v, {
2620
2622
  featureId: "feature_id",
2621
- purchaseLimit: "purchase_limit"
2623
+ purchaseLimit: "purchase_limit",
2624
+ invoiceMode: "invoice_mode"
2622
2625
  });
2623
2626
  })
2624
2627
  );
@@ -3972,12 +3975,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
3972
3975
  quantity: number2(),
3973
3976
  purchase_limit: optional2(
3974
3977
  z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
3975
- )
3978
+ ),
3979
+ invoice_mode: optional2(boolean2())
3976
3980
  }),
3977
3981
  z21.transform((v) => {
3978
3982
  return remap(v, {
3979
3983
  "feature_id": "featureId",
3980
- "purchase_limit": "purchaseLimit"
3984
+ "purchase_limit": "purchaseLimit",
3985
+ "invoice_mode": "invoiceMode"
3981
3986
  });
3982
3987
  })
3983
3988
  );
@@ -4747,12 +4752,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
4747
4752
  quantity: z30.number(),
4748
4753
  purchaseLimit: z30.optional(
4749
4754
  z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
4750
- )
4755
+ ),
4756
+ invoiceMode: z30.optional(z30.boolean())
4751
4757
  }),
4752
4758
  z30.transform((v) => {
4753
4759
  return remap(v, {
4754
4760
  featureId: "feature_id",
4755
- purchaseLimit: "purchase_limit"
4761
+ purchaseLimit: "purchase_limit",
4762
+ invoiceMode: "invoice_mode"
4756
4763
  });
4757
4764
  })
4758
4765
  );
@@ -5237,12 +5244,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
5237
5244
  quantity: number2(),
5238
5245
  purchase_limit: optional2(
5239
5246
  z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
5240
- )
5247
+ ),
5248
+ invoice_mode: optional2(boolean2())
5241
5249
  }),
5242
5250
  z32.transform((v) => {
5243
5251
  return remap(v, {
5244
5252
  "feature_id": "featureId",
5245
- "purchase_limit": "purchaseLimit"
5253
+ "purchase_limit": "purchaseLimit",
5254
+ "invoice_mode": "invoiceMode"
5246
5255
  });
5247
5256
  })
5248
5257
  );
@@ -8477,12 +8486,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
8477
8486
  quantity: z45.number(),
8478
8487
  purchaseLimit: z45.optional(
8479
8488
  z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
8480
- )
8489
+ ),
8490
+ invoiceMode: z45.optional(z45.boolean())
8481
8491
  }),
8482
8492
  z45.transform((v) => {
8483
8493
  return remap(v, {
8484
8494
  featureId: "feature_id",
8485
- purchaseLimit: "purchase_limit"
8495
+ purchaseLimit: "purchase_limit",
8496
+ invoiceMode: "invoice_mode"
8486
8497
  });
8487
8498
  })
8488
8499
  );
@@ -8598,12 +8609,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
8598
8609
  quantity: number2(),
8599
8610
  purchase_limit: optional2(
8600
8611
  z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
8601
- )
8612
+ ),
8613
+ invoice_mode: optional2(boolean2())
8602
8614
  }),
8603
8615
  z45.transform((v) => {
8604
8616
  return remap(v, {
8605
8617
  "feature_id": "featureId",
8606
- "purchase_limit": "purchaseLimit"
8618
+ "purchase_limit": "purchaseLimit",
8619
+ "invoice_mode": "invoiceMode"
8607
8620
  });
8608
8621
  })
8609
8622
  );
@@ -10115,8 +10128,8 @@ var SDK_METADATA = {
10115
10128
  language: "typescript",
10116
10129
  openapiDocVersion: "2.2.0",
10117
10130
  sdkVersion: "0.10.17",
10118
- genVersion: "2.879.1",
10119
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
10131
+ genVersion: "2.879.6",
10132
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
10120
10133
  };
10121
10134
 
10122
10135
  // ../sdk/src/lib/retries.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-ETHQSA52.mjs";
3
+ } from "./chunk-CZ3GSCGC.mjs";
4
4
 
5
5
  // src/backend/adapters/fetch.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-ETHQSA52.mjs";
3
+ } from "./chunk-CZ3GSCGC.mjs";
4
4
 
5
5
  // src/backend/adapters/next.ts
6
6
  import { NextResponse } from "next/server";
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
2
- import '../../authTypes-B5VxPaMo.mjs';
3
- import '../../routeTypes-C1hUtfD8.mjs';
2
+ import '../../authTypes-Bdpu8A6G.mjs';
3
+ import '../../routeTypes-ODZ6pr_U.mjs';
4
4
  import 'zod/v4';
5
5
  import '../types/responseTypes.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
2
- import '../../authTypes-B5VxPaMo.js';
3
- import '../../routeTypes-BkSHRiCI.js';
2
+ import '../../authTypes-Bdpu8A6G.js';
3
+ import '../../routeTypes-CmW3_-dX.js';
4
4
  import 'zod/v4';
5
5
  import '../types/responseTypes.js';
6
6