autumn-js 1.5.77 → 1.5.79

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 (107) hide show
  1. package/dist/backend/adapters/express.js +40 -2
  2. package/dist/backend/adapters/express.mjs +4 -4
  3. package/dist/backend/adapters/fetch.js +40 -2
  4. package/dist/backend/adapters/fetch.mjs +4 -4
  5. package/dist/backend/adapters/hono.js +40 -2
  6. package/dist/backend/adapters/hono.mjs +4 -4
  7. package/dist/backend/adapters/index.js +40 -2
  8. package/dist/backend/adapters/index.mjs +7 -7
  9. package/dist/backend/adapters/next.js +40 -2
  10. package/dist/backend/adapters/next.mjs +4 -4
  11. package/dist/backend/{chunk-5RVG4WCI.mjs → chunk-4GADIYSN.mjs} +1 -1
  12. package/dist/backend/{chunk-JTJOX2VG.mjs → chunk-4PQ7DAD6.mjs} +1 -1
  13. package/dist/backend/{chunk-NIVJ64FU.mjs → chunk-62IBLQFX.mjs} +1 -1
  14. package/dist/backend/{chunk-6JGCK7VE.mjs → chunk-AQQETLOO.mjs} +1 -1
  15. package/dist/backend/{chunk-BYXGFSWL.mjs → chunk-D5XQY6V4.mjs} +1 -1
  16. package/dist/backend/{chunk-RWTVQOX5.mjs → chunk-P3Y7E5HN.mjs} +40 -2
  17. package/dist/backend/{chunk-FSO7BN7P.mjs → chunk-UTOMXTVD.mjs} +1 -1
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +40 -2
  21. package/dist/backend/core/handlers/coreHandler.mjs +2 -2
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/handleRouteByName.js +40 -2
  25. package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
  26. package/dist/backend/core/handlers/index.d.mts +1 -1
  27. package/dist/backend/core/handlers/index.d.ts +1 -1
  28. package/dist/backend/core/handlers/index.js +40 -2
  29. package/dist/backend/core/handlers/index.mjs +3 -3
  30. package/dist/backend/core/index.d.mts +1 -1
  31. package/dist/backend/core/index.d.ts +1 -1
  32. package/dist/backend/core/index.js +40 -2
  33. package/dist/backend/core/index.mjs +3 -3
  34. package/dist/backend/core/routes/index.d.mts +1 -1
  35. package/dist/backend/core/routes/index.d.ts +1 -1
  36. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  37. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  38. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  39. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  40. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  41. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  42. package/dist/backend/core/types/index.d.mts +1 -1
  43. package/dist/backend/core/types/index.d.ts +1 -1
  44. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  45. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  46. package/dist/backend/index.d.mts +2 -2
  47. package/dist/backend/index.d.ts +2 -2
  48. package/dist/backend/index.js +40 -2
  49. package/dist/backend/index.mjs +3 -3
  50. package/dist/backend/{routeTypes-PWIPf5Pt.d.ts → routeTypes-BOqpeJ9o.d.ts} +71 -1
  51. package/dist/backend/{routeTypes-DxaGKVb4.d.mts → routeTypes-DLGuH3Ql.d.mts} +71 -1
  52. package/dist/better-auth/{chunk-YWYWWGFV.mjs → chunk-U2K6OIQ5.mjs} +40 -2
  53. package/dist/better-auth/index.js +40 -2
  54. package/dist/better-auth/index.mjs +1 -1
  55. package/dist/better-auth/utils/handleBetterAuthRoute.js +40 -2
  56. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  57. package/dist/better-auth/utils/index.js +40 -2
  58. package/dist/better-auth/utils/index.mjs +1 -1
  59. package/dist/react/AutumnContext.d.mts +4 -4
  60. package/dist/react/AutumnContext.d.ts +4 -4
  61. package/dist/react/client/AutumnClient.d.mts +4 -4
  62. package/dist/react/client/AutumnClient.d.ts +4 -4
  63. package/dist/react/client/IAutumnClient.d.mts +4 -4
  64. package/dist/react/client/IAutumnClient.d.ts +4 -4
  65. package/dist/react/client/index.d.mts +4 -4
  66. package/dist/react/client/index.d.ts +4 -4
  67. package/dist/react/{customer-DXIylcA2.d.ts → customer-Bbzqqp31.d.ts} +1 -1
  68. package/dist/react/{customer-CvvxFXe1.d.mts → customer-G7pUzyod.d.mts} +1 -1
  69. package/dist/react/hooks/index.d.mts +4 -4
  70. package/dist/react/hooks/index.d.ts +4 -4
  71. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  72. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  73. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  74. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  75. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  76. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  77. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  78. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  79. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  80. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  81. package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
  82. package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
  83. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  84. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  85. package/dist/react/hooks/useCustomer.d.mts +3 -3
  86. package/dist/react/hooks/useCustomer.d.ts +3 -3
  87. package/dist/react/hooks/useEntity.d.mts +2 -2
  88. package/dist/react/hooks/useEntity.d.ts +2 -2
  89. package/dist/react/hooks/useListEvents.d.mts +2 -2
  90. package/dist/react/hooks/useListEvents.d.ts +2 -2
  91. package/dist/react/hooks/useListPlans.d.mts +3 -3
  92. package/dist/react/hooks/useListPlans.d.ts +3 -3
  93. package/dist/react/hooks/useReferrals.d.mts +2 -2
  94. package/dist/react/hooks/useReferrals.d.ts +2 -2
  95. package/dist/react/index.d.mts +4 -4
  96. package/dist/react/index.d.ts +4 -4
  97. package/dist/react/{list-plans-response-D2hGtcnZ.d.ts → list-plans-response-BgUKygvt.d.ts} +1 -1
  98. package/dist/react/{list-plans-response-Cysh-Nl7.d.mts → list-plans-response-CP1yoELX.d.mts} +1 -1
  99. package/dist/react/{params-C_nNJhdD.d.mts → params-DgPo8Z9o.d.mts} +1 -1
  100. package/dist/react/{params-DlX6Au4q.d.ts → params-k3xjhEMz.d.ts} +1 -1
  101. package/dist/react/{plan-2ztwsPTP.d.mts → plan-cML7I3gL.d.mts} +4 -0
  102. package/dist/react/{plan-2ztwsPTP.d.ts → plan-cML7I3gL.d.ts} +4 -0
  103. package/dist/sdk/index.d.mts +96 -2
  104. package/dist/sdk/index.d.ts +96 -2
  105. package/dist/sdk/index.js +56 -2
  106. package/dist/sdk/index.mjs +51 -3
  107. package/package.json +2 -2
@@ -78809,6 +78809,7 @@ var Breakdown$inboundSchema = z54.pipe(
78809
78809
  );
78810
78810
  var BalanceRollover$inboundSchema = z54.pipe(
78811
78811
  z54.object({
78812
+ id: string5(),
78812
78813
  granted: number2(),
78813
78814
  balance: number2(),
78814
78815
  expires_at: number2()
@@ -90610,6 +90611,11 @@ var ColorRequest = {
90610
90611
  Red: "red",
90611
90612
  Pink: "pink"
90612
90613
  };
90614
+ var TaxBehavior = {
90615
+ Exclusive: "exclusive",
90616
+ Inclusive: "inclusive",
90617
+ InferredByCurrency: "inferred_by_currency"
90618
+ };
90613
90619
  var CreateSandboxColorResponse = {
90614
90620
  Gray: "gray",
90615
90621
  Blue: "blue",
@@ -90619,10 +90625,41 @@ var CreateSandboxColorResponse = {
90619
90625
  Pink: "pink"
90620
90626
  };
90621
90627
  var ColorRequest$outboundSchema = z73.enum(ColorRequest);
90628
+ var SandboxHeadOffice$outboundSchema = z73.pipe(
90629
+ z73.object({
90630
+ line1: z73.string(),
90631
+ line2: z73.optional(z73.string()),
90632
+ city: z73.string(),
90633
+ state: z73.optional(z73.string()),
90634
+ postalCode: z73.string(),
90635
+ country: z73.string()
90636
+ }),
90637
+ z73.transform((v) => {
90638
+ return remap(v, {
90639
+ postalCode: "postal_code"
90640
+ });
90641
+ })
90642
+ );
90643
+ var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
90644
+ var CreateSandboxStripe$outboundSchema = z73.pipe(
90645
+ z73.object({
90646
+ headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
90647
+ taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
90648
+ taxCode: z73._default(z73.string(), "txcd_10000000")
90649
+ }),
90650
+ z73.transform((v) => {
90651
+ return remap(v, {
90652
+ headOffice: "head_office",
90653
+ taxBehavior: "tax_behavior",
90654
+ taxCode: "tax_code"
90655
+ });
90656
+ })
90657
+ );
90622
90658
  var CreateSandboxParams$outboundSchema = z73.object({
90623
90659
  name: z73.string(),
90624
90660
  color: z73.optional(ColorRequest$outboundSchema),
90625
- icon: z73.optional(z73.string())
90661
+ icon: z73.optional(z73.string()),
90662
+ stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
90626
90663
  });
90627
90664
  var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
90628
90665
  var CreateSandboxResponse$inboundSchema = z73.pipe(
@@ -101487,6 +101524,7 @@ var ListBalancesAllocation$inboundSchema = z113.object({
101487
101524
  var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
101488
101525
  var ListBalancesRollover$inboundSchema = z113.pipe(
101489
101526
  z113.object({
101527
+ id: string5(),
101490
101528
  granted: number2(),
101491
101529
  balance: number2(),
101492
101530
  expires_at: number2()
@@ -138157,7 +138195,7 @@ async function $do101(client, _request, options) {
138157
138195
  // ../sdk/src/sdk/sandboxes.ts
138158
138196
  var Sandboxes = class extends ClientSDK {
138159
138197
  /**
138160
- * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
138198
+ * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
138161
138199
  */
138162
138200
  async create(request, options) {
138163
138201
  return unwrapAsync(sandboxesCreate(
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-5RVG4WCI.mjs";
3
+ } from "../chunk-4GADIYSN.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-FSO7BN7P.mjs";
7
- import "../chunk-BYXGFSWL.mjs";
8
- import "../chunk-RWTVQOX5.mjs";
6
+ import "../chunk-UTOMXTVD.mjs";
7
+ import "../chunk-D5XQY6V4.mjs";
8
+ import "../chunk-P3Y7E5HN.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -78809,6 +78809,7 @@ var Breakdown$inboundSchema = z54.pipe(
78809
78809
  );
78810
78810
  var BalanceRollover$inboundSchema = z54.pipe(
78811
78811
  z54.object({
78812
+ id: string5(),
78812
78813
  granted: number2(),
78813
78814
  balance: number2(),
78814
78815
  expires_at: number2()
@@ -90610,6 +90611,11 @@ var ColorRequest = {
90610
90611
  Red: "red",
90611
90612
  Pink: "pink"
90612
90613
  };
90614
+ var TaxBehavior = {
90615
+ Exclusive: "exclusive",
90616
+ Inclusive: "inclusive",
90617
+ InferredByCurrency: "inferred_by_currency"
90618
+ };
90613
90619
  var CreateSandboxColorResponse = {
90614
90620
  Gray: "gray",
90615
90621
  Blue: "blue",
@@ -90619,10 +90625,41 @@ var CreateSandboxColorResponse = {
90619
90625
  Pink: "pink"
90620
90626
  };
90621
90627
  var ColorRequest$outboundSchema = z73.enum(ColorRequest);
90628
+ var SandboxHeadOffice$outboundSchema = z73.pipe(
90629
+ z73.object({
90630
+ line1: z73.string(),
90631
+ line2: z73.optional(z73.string()),
90632
+ city: z73.string(),
90633
+ state: z73.optional(z73.string()),
90634
+ postalCode: z73.string(),
90635
+ country: z73.string()
90636
+ }),
90637
+ z73.transform((v) => {
90638
+ return remap(v, {
90639
+ postalCode: "postal_code"
90640
+ });
90641
+ })
90642
+ );
90643
+ var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
90644
+ var CreateSandboxStripe$outboundSchema = z73.pipe(
90645
+ z73.object({
90646
+ headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
90647
+ taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
90648
+ taxCode: z73._default(z73.string(), "txcd_10000000")
90649
+ }),
90650
+ z73.transform((v) => {
90651
+ return remap(v, {
90652
+ headOffice: "head_office",
90653
+ taxBehavior: "tax_behavior",
90654
+ taxCode: "tax_code"
90655
+ });
90656
+ })
90657
+ );
90622
90658
  var CreateSandboxParams$outboundSchema = z73.object({
90623
90659
  name: z73.string(),
90624
90660
  color: z73.optional(ColorRequest$outboundSchema),
90625
- icon: z73.optional(z73.string())
90661
+ icon: z73.optional(z73.string()),
90662
+ stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
90626
90663
  });
90627
90664
  var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
90628
90665
  var CreateSandboxResponse$inboundSchema = z73.pipe(
@@ -101487,6 +101524,7 @@ var ListBalancesAllocation$inboundSchema = z113.object({
101487
101524
  var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
101488
101525
  var ListBalancesRollover$inboundSchema = z113.pipe(
101489
101526
  z113.object({
101527
+ id: string5(),
101490
101528
  granted: number2(),
101491
101529
  balance: number2(),
101492
101530
  expires_at: number2()
@@ -138157,7 +138195,7 @@ async function $do101(client, _request, options) {
138157
138195
  // ../sdk/src/sdk/sandboxes.ts
138158
138196
  var Sandboxes = class extends ClientSDK {
138159
138197
  /**
138160
- * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
138198
+ * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
138161
138199
  */
138162
138200
  async create(request, options) {
138163
138201
  return unwrapAsync(sandboxesCreate(
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-JTJOX2VG.mjs";
3
+ } from "../chunk-4PQ7DAD6.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-FSO7BN7P.mjs";
7
- import "../chunk-BYXGFSWL.mjs";
8
- import "../chunk-RWTVQOX5.mjs";
6
+ import "../chunk-UTOMXTVD.mjs";
7
+ import "../chunk-D5XQY6V4.mjs";
8
+ import "../chunk-P3Y7E5HN.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -78809,6 +78809,7 @@ var Breakdown$inboundSchema = z54.pipe(
78809
78809
  );
78810
78810
  var BalanceRollover$inboundSchema = z54.pipe(
78811
78811
  z54.object({
78812
+ id: string5(),
78812
78813
  granted: number2(),
78813
78814
  balance: number2(),
78814
78815
  expires_at: number2()
@@ -90610,6 +90611,11 @@ var ColorRequest = {
90610
90611
  Red: "red",
90611
90612
  Pink: "pink"
90612
90613
  };
90614
+ var TaxBehavior = {
90615
+ Exclusive: "exclusive",
90616
+ Inclusive: "inclusive",
90617
+ InferredByCurrency: "inferred_by_currency"
90618
+ };
90613
90619
  var CreateSandboxColorResponse = {
90614
90620
  Gray: "gray",
90615
90621
  Blue: "blue",
@@ -90619,10 +90625,41 @@ var CreateSandboxColorResponse = {
90619
90625
  Pink: "pink"
90620
90626
  };
90621
90627
  var ColorRequest$outboundSchema = z73.enum(ColorRequest);
90628
+ var SandboxHeadOffice$outboundSchema = z73.pipe(
90629
+ z73.object({
90630
+ line1: z73.string(),
90631
+ line2: z73.optional(z73.string()),
90632
+ city: z73.string(),
90633
+ state: z73.optional(z73.string()),
90634
+ postalCode: z73.string(),
90635
+ country: z73.string()
90636
+ }),
90637
+ z73.transform((v) => {
90638
+ return remap(v, {
90639
+ postalCode: "postal_code"
90640
+ });
90641
+ })
90642
+ );
90643
+ var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
90644
+ var CreateSandboxStripe$outboundSchema = z73.pipe(
90645
+ z73.object({
90646
+ headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
90647
+ taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
90648
+ taxCode: z73._default(z73.string(), "txcd_10000000")
90649
+ }),
90650
+ z73.transform((v) => {
90651
+ return remap(v, {
90652
+ headOffice: "head_office",
90653
+ taxBehavior: "tax_behavior",
90654
+ taxCode: "tax_code"
90655
+ });
90656
+ })
90657
+ );
90622
90658
  var CreateSandboxParams$outboundSchema = z73.object({
90623
90659
  name: z73.string(),
90624
90660
  color: z73.optional(ColorRequest$outboundSchema),
90625
- icon: z73.optional(z73.string())
90661
+ icon: z73.optional(z73.string()),
90662
+ stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
90626
90663
  });
90627
90664
  var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
90628
90665
  var CreateSandboxResponse$inboundSchema = z73.pipe(
@@ -101487,6 +101524,7 @@ var ListBalancesAllocation$inboundSchema = z113.object({
101487
101524
  var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
101488
101525
  var ListBalancesRollover$inboundSchema = z113.pipe(
101489
101526
  z113.object({
101527
+ id: string5(),
101490
101528
  granted: number2(),
101491
101529
  balance: number2(),
101492
101530
  expires_at: number2()
@@ -138157,7 +138195,7 @@ async function $do101(client, _request, options) {
138157
138195
  // ../sdk/src/sdk/sandboxes.ts
138158
138196
  var Sandboxes = class extends ClientSDK {
138159
138197
  /**
138160
- * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
138198
+ * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
138161
138199
  */
138162
138200
  async create(request, options) {
138163
138201
  return unwrapAsync(sandboxesCreate(
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-NIVJ64FU.mjs";
3
+ } from "../chunk-62IBLQFX.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-FSO7BN7P.mjs";
7
- import "../chunk-BYXGFSWL.mjs";
8
- import "../chunk-RWTVQOX5.mjs";
6
+ import "../chunk-UTOMXTVD.mjs";
7
+ import "../chunk-D5XQY6V4.mjs";
8
+ import "../chunk-P3Y7E5HN.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -78812,6 +78812,7 @@ var Breakdown$inboundSchema = z54.pipe(
78812
78812
  );
78813
78813
  var BalanceRollover$inboundSchema = z54.pipe(
78814
78814
  z54.object({
78815
+ id: string5(),
78815
78816
  granted: number2(),
78816
78817
  balance: number2(),
78817
78818
  expires_at: number2()
@@ -90613,6 +90614,11 @@ var ColorRequest = {
90613
90614
  Red: "red",
90614
90615
  Pink: "pink"
90615
90616
  };
90617
+ var TaxBehavior = {
90618
+ Exclusive: "exclusive",
90619
+ Inclusive: "inclusive",
90620
+ InferredByCurrency: "inferred_by_currency"
90621
+ };
90616
90622
  var CreateSandboxColorResponse = {
90617
90623
  Gray: "gray",
90618
90624
  Blue: "blue",
@@ -90622,10 +90628,41 @@ var CreateSandboxColorResponse = {
90622
90628
  Pink: "pink"
90623
90629
  };
90624
90630
  var ColorRequest$outboundSchema = z73.enum(ColorRequest);
90631
+ var SandboxHeadOffice$outboundSchema = z73.pipe(
90632
+ z73.object({
90633
+ line1: z73.string(),
90634
+ line2: z73.optional(z73.string()),
90635
+ city: z73.string(),
90636
+ state: z73.optional(z73.string()),
90637
+ postalCode: z73.string(),
90638
+ country: z73.string()
90639
+ }),
90640
+ z73.transform((v) => {
90641
+ return remap(v, {
90642
+ postalCode: "postal_code"
90643
+ });
90644
+ })
90645
+ );
90646
+ var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
90647
+ var CreateSandboxStripe$outboundSchema = z73.pipe(
90648
+ z73.object({
90649
+ headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
90650
+ taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
90651
+ taxCode: z73._default(z73.string(), "txcd_10000000")
90652
+ }),
90653
+ z73.transform((v) => {
90654
+ return remap(v, {
90655
+ headOffice: "head_office",
90656
+ taxBehavior: "tax_behavior",
90657
+ taxCode: "tax_code"
90658
+ });
90659
+ })
90660
+ );
90625
90661
  var CreateSandboxParams$outboundSchema = z73.object({
90626
90662
  name: z73.string(),
90627
90663
  color: z73.optional(ColorRequest$outboundSchema),
90628
- icon: z73.optional(z73.string())
90664
+ icon: z73.optional(z73.string()),
90665
+ stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
90629
90666
  });
90630
90667
  var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
90631
90668
  var CreateSandboxResponse$inboundSchema = z73.pipe(
@@ -101490,6 +101527,7 @@ var ListBalancesAllocation$inboundSchema = z113.object({
101490
101527
  var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
101491
101528
  var ListBalancesRollover$inboundSchema = z113.pipe(
101492
101529
  z113.object({
101530
+ id: string5(),
101493
101531
  granted: number2(),
101494
101532
  balance: number2(),
101495
101533
  expires_at: number2()
@@ -138160,7 +138198,7 @@ async function $do101(client, _request, options) {
138160
138198
  // ../sdk/src/sdk/sandboxes.ts
138161
138199
  var Sandboxes = class extends ClientSDK {
138162
138200
  /**
138163
- * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
138201
+ * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
138164
138202
  */
138165
138203
  async create(request, options) {
138166
138204
  return unwrapAsync(sandboxesCreate(
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-5RVG4WCI.mjs";
3
+ } from "../chunk-4GADIYSN.mjs";
4
4
  import {
5
5
  autumnHandler as autumnHandler2
6
- } from "../chunk-JTJOX2VG.mjs";
6
+ } from "../chunk-4PQ7DAD6.mjs";
7
7
  import {
8
8
  autumnHandler as autumnHandler3
9
- } from "../chunk-NIVJ64FU.mjs";
9
+ } from "../chunk-62IBLQFX.mjs";
10
10
  import {
11
11
  autumnHandler as autumnHandler4
12
- } from "../chunk-6JGCK7VE.mjs";
12
+ } from "../chunk-AQQETLOO.mjs";
13
13
  import "../chunk-WYDGEDEU.mjs";
14
14
  import "../chunk-VXND2UDT.mjs";
15
- import "../chunk-FSO7BN7P.mjs";
16
- import "../chunk-BYXGFSWL.mjs";
17
- import "../chunk-RWTVQOX5.mjs";
15
+ import "../chunk-UTOMXTVD.mjs";
16
+ import "../chunk-D5XQY6V4.mjs";
17
+ import "../chunk-P3Y7E5HN.mjs";
18
18
  import "../chunk-MOHYGUMA.mjs";
19
19
  import "../chunk-TBQ27LIK.mjs";
20
20
  import "../chunk-J44WR3QZ.mjs";
@@ -78810,6 +78810,7 @@ var Breakdown$inboundSchema = z54.pipe(
78810
78810
  );
78811
78811
  var BalanceRollover$inboundSchema = z54.pipe(
78812
78812
  z54.object({
78813
+ id: string5(),
78813
78814
  granted: number2(),
78814
78815
  balance: number2(),
78815
78816
  expires_at: number2()
@@ -90611,6 +90612,11 @@ var ColorRequest = {
90611
90612
  Red: "red",
90612
90613
  Pink: "pink"
90613
90614
  };
90615
+ var TaxBehavior = {
90616
+ Exclusive: "exclusive",
90617
+ Inclusive: "inclusive",
90618
+ InferredByCurrency: "inferred_by_currency"
90619
+ };
90614
90620
  var CreateSandboxColorResponse = {
90615
90621
  Gray: "gray",
90616
90622
  Blue: "blue",
@@ -90620,10 +90626,41 @@ var CreateSandboxColorResponse = {
90620
90626
  Pink: "pink"
90621
90627
  };
90622
90628
  var ColorRequest$outboundSchema = z73.enum(ColorRequest);
90629
+ var SandboxHeadOffice$outboundSchema = z73.pipe(
90630
+ z73.object({
90631
+ line1: z73.string(),
90632
+ line2: z73.optional(z73.string()),
90633
+ city: z73.string(),
90634
+ state: z73.optional(z73.string()),
90635
+ postalCode: z73.string(),
90636
+ country: z73.string()
90637
+ }),
90638
+ z73.transform((v) => {
90639
+ return remap(v, {
90640
+ postalCode: "postal_code"
90641
+ });
90642
+ })
90643
+ );
90644
+ var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
90645
+ var CreateSandboxStripe$outboundSchema = z73.pipe(
90646
+ z73.object({
90647
+ headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
90648
+ taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
90649
+ taxCode: z73._default(z73.string(), "txcd_10000000")
90650
+ }),
90651
+ z73.transform((v) => {
90652
+ return remap(v, {
90653
+ headOffice: "head_office",
90654
+ taxBehavior: "tax_behavior",
90655
+ taxCode: "tax_code"
90656
+ });
90657
+ })
90658
+ );
90623
90659
  var CreateSandboxParams$outboundSchema = z73.object({
90624
90660
  name: z73.string(),
90625
90661
  color: z73.optional(ColorRequest$outboundSchema),
90626
- icon: z73.optional(z73.string())
90662
+ icon: z73.optional(z73.string()),
90663
+ stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
90627
90664
  });
90628
90665
  var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
90629
90666
  var CreateSandboxResponse$inboundSchema = z73.pipe(
@@ -101488,6 +101525,7 @@ var ListBalancesAllocation$inboundSchema = z113.object({
101488
101525
  var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
101489
101526
  var ListBalancesRollover$inboundSchema = z113.pipe(
101490
101527
  z113.object({
101528
+ id: string5(),
101491
101529
  granted: number2(),
101492
101530
  balance: number2(),
101493
101531
  expires_at: number2()
@@ -138158,7 +138196,7 @@ async function $do101(client, _request, options) {
138158
138196
  // ../sdk/src/sdk/sandboxes.ts
138159
138197
  var Sandboxes = class extends ClientSDK {
138160
138198
  /**
138161
- * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
138199
+ * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
138162
138200
  */
138163
138201
  async create(request, options) {
138164
138202
  return unwrapAsync(sandboxesCreate(
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-6JGCK7VE.mjs";
3
+ } from "../chunk-AQQETLOO.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-FSO7BN7P.mjs";
7
- import "../chunk-BYXGFSWL.mjs";
8
- import "../chunk-RWTVQOX5.mjs";
6
+ import "../chunk-UTOMXTVD.mjs";
7
+ import "../chunk-D5XQY6V4.mjs";
8
+ import "../chunk-P3Y7E5HN.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-BYXGFSWL.mjs";
3
+ } from "./chunk-D5XQY6V4.mjs";
4
4
 
5
5
  // src/backend/adapters/express.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-BYXGFSWL.mjs";
3
+ } from "./chunk-D5XQY6V4.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-BYXGFSWL.mjs";
3
+ } from "./chunk-D5XQY6V4.mjs";
4
4
 
5
5
  // src/backend/adapters/hono.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-BYXGFSWL.mjs";
3
+ } from "./chunk-D5XQY6V4.mjs";
4
4
 
5
5
  // src/backend/adapters/next.ts
6
6
  import { NextResponse } from "next/server";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-RWTVQOX5.mjs";
3
+ } from "./chunk-P3Y7E5HN.mjs";
4
4
  import {
5
5
  executeRoute
6
6
  } from "./chunk-MOHYGUMA.mjs";
@@ -78726,6 +78726,7 @@ var Breakdown$inboundSchema = z54.pipe(
78726
78726
  );
78727
78727
  var BalanceRollover$inboundSchema = z54.pipe(
78728
78728
  z54.object({
78729
+ id: string5(),
78729
78730
  granted: number2(),
78730
78731
  balance: number2(),
78731
78732
  expires_at: number2()
@@ -90527,6 +90528,11 @@ var ColorRequest = {
90527
90528
  Red: "red",
90528
90529
  Pink: "pink"
90529
90530
  };
90531
+ var TaxBehavior = {
90532
+ Exclusive: "exclusive",
90533
+ Inclusive: "inclusive",
90534
+ InferredByCurrency: "inferred_by_currency"
90535
+ };
90530
90536
  var CreateSandboxColorResponse = {
90531
90537
  Gray: "gray",
90532
90538
  Blue: "blue",
@@ -90536,10 +90542,41 @@ var CreateSandboxColorResponse = {
90536
90542
  Pink: "pink"
90537
90543
  };
90538
90544
  var ColorRequest$outboundSchema = z73.enum(ColorRequest);
90545
+ var SandboxHeadOffice$outboundSchema = z73.pipe(
90546
+ z73.object({
90547
+ line1: z73.string(),
90548
+ line2: z73.optional(z73.string()),
90549
+ city: z73.string(),
90550
+ state: z73.optional(z73.string()),
90551
+ postalCode: z73.string(),
90552
+ country: z73.string()
90553
+ }),
90554
+ z73.transform((v) => {
90555
+ return remap(v, {
90556
+ postalCode: "postal_code"
90557
+ });
90558
+ })
90559
+ );
90560
+ var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
90561
+ var CreateSandboxStripe$outboundSchema = z73.pipe(
90562
+ z73.object({
90563
+ headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
90564
+ taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
90565
+ taxCode: z73._default(z73.string(), "txcd_10000000")
90566
+ }),
90567
+ z73.transform((v) => {
90568
+ return remap(v, {
90569
+ headOffice: "head_office",
90570
+ taxBehavior: "tax_behavior",
90571
+ taxCode: "tax_code"
90572
+ });
90573
+ })
90574
+ );
90539
90575
  var CreateSandboxParams$outboundSchema = z73.object({
90540
90576
  name: z73.string(),
90541
90577
  color: z73.optional(ColorRequest$outboundSchema),
90542
- icon: z73.optional(z73.string())
90578
+ icon: z73.optional(z73.string()),
90579
+ stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
90543
90580
  });
90544
90581
  var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
90545
90582
  var CreateSandboxResponse$inboundSchema = z73.pipe(
@@ -101404,6 +101441,7 @@ var ListBalancesAllocation$inboundSchema = z113.object({
101404
101441
  var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
101405
101442
  var ListBalancesRollover$inboundSchema = z113.pipe(
101406
101443
  z113.object({
101444
+ id: string5(),
101407
101445
  granted: number2(),
101408
101446
  balance: number2(),
101409
101447
  expires_at: number2()
@@ -138102,7 +138140,7 @@ async function $do101(client, _request, options) {
138102
138140
  // ../sdk/src/sdk/sandboxes.ts
138103
138141
  var Sandboxes = class extends ClientSDK {
138104
138142
  /**
138105
- * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
138143
+ * Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
138106
138144
  */
138107
138145
  async create(request, options) {
138108
138146
  return unwrapAsync(sandboxesCreate(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-RWTVQOX5.mjs";
3
+ } from "./chunk-P3Y7E5HN.mjs";
4
4
  import {
5
5
  executeRoute
6
6
  } from "./chunk-MOHYGUMA.mjs";
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
2
2
  import '../../authTypes-gdVF6IHz.mjs';
3
- import '../../routeTypes-DxaGKVb4.mjs';
3
+ import '../../routeTypes-DLGuH3Ql.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
6
6
  import '../types/responseTypes.mjs';
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
2
2
  import '../../authTypes-gdVF6IHz.js';
3
- import '../../routeTypes-PWIPf5Pt.js';
3
+ import '../../routeTypes-BOqpeJ9o.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
6
6
  import '../types/responseTypes.js';