autumn-js 1.5.78 → 1.5.80

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 (65) hide show
  1. package/dist/backend/adapters/express.js +38 -2
  2. package/dist/backend/adapters/express.mjs +4 -4
  3. package/dist/backend/adapters/fetch.js +38 -2
  4. package/dist/backend/adapters/fetch.mjs +4 -4
  5. package/dist/backend/adapters/hono.js +38 -2
  6. package/dist/backend/adapters/hono.mjs +4 -4
  7. package/dist/backend/adapters/index.js +38 -2
  8. package/dist/backend/adapters/index.mjs +7 -7
  9. package/dist/backend/adapters/next.js +38 -2
  10. package/dist/backend/adapters/next.mjs +4 -4
  11. package/dist/backend/{chunk-W6SCXAZO.mjs → chunk-4GADIYSN.mjs} +1 -1
  12. package/dist/backend/{chunk-YZ3DNHYS.mjs → chunk-4PQ7DAD6.mjs} +1 -1
  13. package/dist/backend/{chunk-OZRVVG2G.mjs → chunk-62IBLQFX.mjs} +1 -1
  14. package/dist/backend/{chunk-PNK2VRBE.mjs → chunk-AQQETLOO.mjs} +1 -1
  15. package/dist/backend/{chunk-O6HQFQF4.mjs → chunk-D5XQY6V4.mjs} +1 -1
  16. package/dist/backend/{chunk-BLV2SYP6.mjs → chunk-P3Y7E5HN.mjs} +38 -2
  17. package/dist/backend/{chunk-W4JBLNUW.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 +38 -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 +38 -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 +38 -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 +38 -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 +38 -2
  49. package/dist/backend/index.mjs +3 -3
  50. package/dist/backend/{routeTypes-CSjhFsCE.d.ts → routeTypes-BOqpeJ9o.d.ts} +63 -1
  51. package/dist/backend/{routeTypes-CLdikyjM.d.mts → routeTypes-DLGuH3Ql.d.mts} +63 -1
  52. package/dist/better-auth/{chunk-LBJJ4YWT.mjs → chunk-U2K6OIQ5.mjs} +38 -2
  53. package/dist/better-auth/index.js +38 -2
  54. package/dist/better-auth/index.mjs +1 -1
  55. package/dist/better-auth/utils/handleBetterAuthRoute.js +38 -2
  56. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  57. package/dist/better-auth/utils/index.js +38 -2
  58. package/dist/better-auth/utils/index.mjs +1 -1
  59. package/dist/react/hooks/index.mjs +5 -5
  60. package/dist/react/index.mjs +5 -5
  61. package/dist/sdk/index.d.mts +88 -2
  62. package/dist/sdk/index.d.ts +88 -2
  63. package/dist/sdk/index.js +54 -2
  64. package/dist/sdk/index.mjs +49 -3
  65. package/package.json +3 -2
@@ -90611,6 +90611,11 @@ var ColorRequest = {
90611
90611
  Red: "red",
90612
90612
  Pink: "pink"
90613
90613
  };
90614
+ var TaxBehavior = {
90615
+ Exclusive: "exclusive",
90616
+ Inclusive: "inclusive",
90617
+ InferredByCurrency: "inferred_by_currency"
90618
+ };
90614
90619
  var CreateSandboxColorResponse = {
90615
90620
  Gray: "gray",
90616
90621
  Blue: "blue",
@@ -90620,10 +90625,41 @@ var CreateSandboxColorResponse = {
90620
90625
  Pink: "pink"
90621
90626
  };
90622
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
+ );
90623
90658
  var CreateSandboxParams$outboundSchema = z73.object({
90624
90659
  name: z73.string(),
90625
90660
  color: z73.optional(ColorRequest$outboundSchema),
90626
- icon: z73.optional(z73.string())
90661
+ icon: z73.optional(z73.string()),
90662
+ stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
90627
90663
  });
90628
90664
  var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
90629
90665
  var CreateSandboxResponse$inboundSchema = z73.pipe(
@@ -138159,7 +138195,7 @@ async function $do101(client, _request, options) {
138159
138195
  // ../sdk/src/sdk/sandboxes.ts
138160
138196
  var Sandboxes = class extends ClientSDK {
138161
138197
  /**
138162
- * 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.
138163
138199
  */
138164
138200
  async create(request, options) {
138165
138201
  return unwrapAsync(sandboxesCreate(
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  handleRouteByName
3
- } from "../../chunk-W4JBLNUW.mjs";
4
- import "../../chunk-BLV2SYP6.mjs";
3
+ } from "../../chunk-UTOMXTVD.mjs";
4
+ import "../../chunk-P3Y7E5HN.mjs";
5
5
  import "../../chunk-MOHYGUMA.mjs";
6
6
  import "../../chunk-TBQ27LIK.mjs";
7
7
  import "../../chunk-J44WR3QZ.mjs";
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.mjs';
5
5
  export { resolveIdentity } from './resolveIdentity.mjs';
6
6
  import '../types/handlerTypes.mjs';
7
7
  import '../../authTypes-gdVF6IHz.mjs';
8
- import '../../routeTypes-CLdikyjM.mjs';
8
+ import '../../routeTypes-DLGuH3Ql.mjs';
9
9
  import 'zod/v4';
10
10
  import '../utils/sanitizeBody.mjs';
11
11
  import '../types/responseTypes.mjs';
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.js';
5
5
  export { resolveIdentity } from './resolveIdentity.js';
6
6
  import '../types/handlerTypes.js';
7
7
  import '../../authTypes-gdVF6IHz.js';
8
- import '../../routeTypes-CSjhFsCE.js';
8
+ import '../../routeTypes-BOqpeJ9o.js';
9
9
  import 'zod/v4';
10
10
  import '../utils/sanitizeBody.js';
11
11
  import '../types/responseTypes.js';
@@ -90615,6 +90615,11 @@ var ColorRequest = {
90615
90615
  Red: "red",
90616
90616
  Pink: "pink"
90617
90617
  };
90618
+ var TaxBehavior = {
90619
+ Exclusive: "exclusive",
90620
+ Inclusive: "inclusive",
90621
+ InferredByCurrency: "inferred_by_currency"
90622
+ };
90618
90623
  var CreateSandboxColorResponse = {
90619
90624
  Gray: "gray",
90620
90625
  Blue: "blue",
@@ -90624,10 +90629,41 @@ var CreateSandboxColorResponse = {
90624
90629
  Pink: "pink"
90625
90630
  };
90626
90631
  var ColorRequest$outboundSchema = z73.enum(ColorRequest);
90632
+ var SandboxHeadOffice$outboundSchema = z73.pipe(
90633
+ z73.object({
90634
+ line1: z73.string(),
90635
+ line2: z73.optional(z73.string()),
90636
+ city: z73.string(),
90637
+ state: z73.optional(z73.string()),
90638
+ postalCode: z73.string(),
90639
+ country: z73.string()
90640
+ }),
90641
+ z73.transform((v) => {
90642
+ return remap(v, {
90643
+ postalCode: "postal_code"
90644
+ });
90645
+ })
90646
+ );
90647
+ var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
90648
+ var CreateSandboxStripe$outboundSchema = z73.pipe(
90649
+ z73.object({
90650
+ headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
90651
+ taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
90652
+ taxCode: z73._default(z73.string(), "txcd_10000000")
90653
+ }),
90654
+ z73.transform((v) => {
90655
+ return remap(v, {
90656
+ headOffice: "head_office",
90657
+ taxBehavior: "tax_behavior",
90658
+ taxCode: "tax_code"
90659
+ });
90660
+ })
90661
+ );
90627
90662
  var CreateSandboxParams$outboundSchema = z73.object({
90628
90663
  name: z73.string(),
90629
90664
  color: z73.optional(ColorRequest$outboundSchema),
90630
- icon: z73.optional(z73.string())
90665
+ icon: z73.optional(z73.string()),
90666
+ stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
90631
90667
  });
90632
90668
  var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
90633
90669
  var CreateSandboxResponse$inboundSchema = z73.pipe(
@@ -138163,7 +138199,7 @@ async function $do101(client, _request, options) {
138163
138199
  // ../sdk/src/sdk/sandboxes.ts
138164
138200
  var Sandboxes = class extends ClientSDK {
138165
138201
  /**
138166
- * 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).
138202
+ * 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.
138167
138203
  */
138168
138204
  async create(request, options) {
138169
138205
  return unwrapAsync(sandboxesCreate(
@@ -1,11 +1,11 @@
1
1
  import "../../chunk-VXND2UDT.mjs";
2
2
  import {
3
3
  handleRouteByName
4
- } from "../../chunk-W4JBLNUW.mjs";
4
+ } from "../../chunk-UTOMXTVD.mjs";
5
5
  import {
6
6
  createCoreHandler
7
- } from "../../chunk-O6HQFQF4.mjs";
8
- import "../../chunk-BLV2SYP6.mjs";
7
+ } from "../../chunk-D5XQY6V4.mjs";
8
+ import "../../chunk-P3Y7E5HN.mjs";
9
9
  import {
10
10
  executeRoute
11
11
  } from "../../chunk-MOHYGUMA.mjs";
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.mjs';
2
2
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-gdVF6IHz.mjs';
3
3
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.mjs';
4
4
  export { BackendErrorBody, BackendResult } from './types/responseTypes.mjs';
5
- export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-CLdikyjM.mjs';
5
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-DLGuH3Ql.mjs';
6
6
  export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.mjs';
7
7
  export { buildRouter } from './routes/routeBuilder.mjs';
8
8
  export { routeConfigs } from './routes/routeConfigs.mjs';
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.js';
2
2
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-gdVF6IHz.js';
3
3
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.js';
4
4
  export { BackendErrorBody, BackendResult } from './types/responseTypes.js';
5
- export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-CSjhFsCE.js';
5
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-BOqpeJ9o.js';
6
6
  export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.js';
7
7
  export { buildRouter } from './routes/routeBuilder.js';
8
8
  export { routeConfigs } from './routes/routeConfigs.js';
@@ -90619,6 +90619,11 @@ var ColorRequest = {
90619
90619
  Red: "red",
90620
90620
  Pink: "pink"
90621
90621
  };
90622
+ var TaxBehavior = {
90623
+ Exclusive: "exclusive",
90624
+ Inclusive: "inclusive",
90625
+ InferredByCurrency: "inferred_by_currency"
90626
+ };
90622
90627
  var CreateSandboxColorResponse = {
90623
90628
  Gray: "gray",
90624
90629
  Blue: "blue",
@@ -90628,10 +90633,41 @@ var CreateSandboxColorResponse = {
90628
90633
  Pink: "pink"
90629
90634
  };
90630
90635
  var ColorRequest$outboundSchema = z73.enum(ColorRequest);
90636
+ var SandboxHeadOffice$outboundSchema = z73.pipe(
90637
+ z73.object({
90638
+ line1: z73.string(),
90639
+ line2: z73.optional(z73.string()),
90640
+ city: z73.string(),
90641
+ state: z73.optional(z73.string()),
90642
+ postalCode: z73.string(),
90643
+ country: z73.string()
90644
+ }),
90645
+ z73.transform((v) => {
90646
+ return remap(v, {
90647
+ postalCode: "postal_code"
90648
+ });
90649
+ })
90650
+ );
90651
+ var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
90652
+ var CreateSandboxStripe$outboundSchema = z73.pipe(
90653
+ z73.object({
90654
+ headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
90655
+ taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
90656
+ taxCode: z73._default(z73.string(), "txcd_10000000")
90657
+ }),
90658
+ z73.transform((v) => {
90659
+ return remap(v, {
90660
+ headOffice: "head_office",
90661
+ taxBehavior: "tax_behavior",
90662
+ taxCode: "tax_code"
90663
+ });
90664
+ })
90665
+ );
90631
90666
  var CreateSandboxParams$outboundSchema = z73.object({
90632
90667
  name: z73.string(),
90633
90668
  color: z73.optional(ColorRequest$outboundSchema),
90634
- icon: z73.optional(z73.string())
90669
+ icon: z73.optional(z73.string()),
90670
+ stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
90635
90671
  });
90636
90672
  var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
90637
90673
  var CreateSandboxResponse$inboundSchema = z73.pipe(
@@ -138167,7 +138203,7 @@ async function $do101(client, _request, options) {
138167
138203
  // ../sdk/src/sdk/sandboxes.ts
138168
138204
  var Sandboxes = class extends ClientSDK {
138169
138205
  /**
138170
- * 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).
138206
+ * 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.
138171
138207
  */
138172
138208
  async create(request, options) {
138173
138209
  return unwrapAsync(sandboxesCreate(
@@ -2,11 +2,11 @@ import "../chunk-WYDGEDEU.mjs";
2
2
  import "../chunk-VXND2UDT.mjs";
3
3
  import {
4
4
  handleRouteByName
5
- } from "../chunk-W4JBLNUW.mjs";
5
+ } from "../chunk-UTOMXTVD.mjs";
6
6
  import {
7
7
  createCoreHandler
8
- } from "../chunk-O6HQFQF4.mjs";
9
- import "../chunk-BLV2SYP6.mjs";
8
+ } from "../chunk-D5XQY6V4.mjs";
9
+ import "../chunk-P3Y7E5HN.mjs";
10
10
  import "../chunk-MOHYGUMA.mjs";
11
11
  import "../chunk-TBQ27LIK.mjs";
12
12
  import "../chunk-J44WR3QZ.mjs";
@@ -1,7 +1,7 @@
1
1
  export { RouteMatch, buildRouter } from './routeBuilder.mjs';
2
2
  export { routeConfigs } from './routeConfigs.mjs';
3
3
  import 'rou3';
4
- import '../../routeTypes-CLdikyjM.mjs';
4
+ import '../../routeTypes-DLGuH3Ql.mjs';
5
5
  import '../../authTypes-gdVF6IHz.mjs';
6
6
  import 'zod/v4';
7
7
  import '../utils/sanitizeBody.mjs';
@@ -1,7 +1,7 @@
1
1
  export { RouteMatch, buildRouter } from './routeBuilder.js';
2
2
  export { routeConfigs } from './routeConfigs.js';
3
3
  import 'rou3';
4
- import '../../routeTypes-CSjhFsCE.js';
4
+ import '../../routeTypes-BOqpeJ9o.js';
5
5
  import '../../authTypes-gdVF6IHz.js';
6
6
  import 'zod/v4';
7
7
  import '../utils/sanitizeBody.js';
@@ -1,5 +1,5 @@
1
1
  import { RouterContext } from 'rou3';
2
- import { R as RouteDefinition } from '../../routeTypes-CLdikyjM.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-DLGuH3Ql.mjs';
3
3
  import '../../authTypes-gdVF6IHz.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
@@ -1,5 +1,5 @@
1
1
  import { RouterContext } from 'rou3';
2
- import { R as RouteDefinition } from '../../routeTypes-CSjhFsCE.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-BOqpeJ9o.js';
3
3
  import '../../authTypes-gdVF6IHz.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-CLdikyjM.mjs';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-DLGuH3Ql.mjs';
2
2
  import '../../authTypes-gdVF6IHz.mjs';
3
3
  import 'zod/v4';
4
4
  import '../utils/sanitizeBody.mjs';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-CSjhFsCE.js';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-BOqpeJ9o.js';
2
2
  import '../../authTypes-gdVF6IHz.js';
3
3
  import 'zod/v4';
4
4
  import '../utils/sanitizeBody.js';
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-gdVF6IHz.mjs';
2
- import { R as RouteDefinition } from '../../routeTypes-CLdikyjM.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-DLGuH3Ql.mjs';
3
3
  import './responseTypes.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-gdVF6IHz.js';
2
- import { R as RouteDefinition } from '../../routeTypes-CSjhFsCE.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-BOqpeJ9o.js';
3
3
  import './responseTypes.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
@@ -1,6 +1,6 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-gdVF6IHz.mjs';
2
2
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.mjs';
3
3
  export { BackendErrorBody, BackendResult } from './responseTypes.mjs';
4
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CLdikyjM.mjs';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DLGuH3Ql.mjs';
5
5
  import 'zod/v4';
6
6
  import '../utils/sanitizeBody.mjs';
@@ -1,6 +1,6 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-gdVF6IHz.js';
2
2
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.js';
3
3
  export { BackendErrorBody, BackendResult } from './responseTypes.js';
4
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CSjhFsCE.js';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-BOqpeJ9o.js';
5
5
  import 'zod/v4';
6
6
  import '../utils/sanitizeBody.js';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CLdikyjM.mjs';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DLGuH3Ql.mjs';
2
2
  import 'zod/v4';
3
3
  import '../utils/sanitizeBody.mjs';
4
4
  import '../../authTypes-gdVF6IHz.mjs';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-CSjhFsCE.js';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-BOqpeJ9o.js';
2
2
  import 'zod/v4';
3
3
  import '../utils/sanitizeBody.js';
4
4
  import '../../authTypes-gdVF6IHz.js';
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-gdVF6IHz.mjs';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-gdVF6IHz.mjs';
4
4
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.mjs';
5
5
  export { BackendErrorBody, BackendResult } from './core/types/responseTypes.mjs';
6
- import { R as RouteDefinition } from './routeTypes-CLdikyjM.mjs';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-CLdikyjM.mjs';
6
+ import { R as RouteDefinition } from './routeTypes-DLGuH3Ql.mjs';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-DLGuH3Ql.mjs';
8
8
  export { buildRouter } from './core/routes/routeBuilder.mjs';
9
9
  export { routeConfigs } from './core/routes/routeConfigs.mjs';
10
10
  export { secretKeyCheck } from './core/utils/secretKeyCheck.mjs';
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-gdVF6IHz.js';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-gdVF6IHz.js';
4
4
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.js';
5
5
  export { BackendErrorBody, BackendResult } from './core/types/responseTypes.js';
6
- import { R as RouteDefinition } from './routeTypes-CSjhFsCE.js';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-CSjhFsCE.js';
6
+ import { R as RouteDefinition } from './routeTypes-BOqpeJ9o.js';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-BOqpeJ9o.js';
8
8
  export { buildRouter } from './core/routes/routeBuilder.js';
9
9
  export { routeConfigs } from './core/routes/routeConfigs.js';
10
10
  export { secretKeyCheck } from './core/utils/secretKeyCheck.js';
@@ -90619,6 +90619,11 @@ var ColorRequest = {
90619
90619
  Red: "red",
90620
90620
  Pink: "pink"
90621
90621
  };
90622
+ var TaxBehavior = {
90623
+ Exclusive: "exclusive",
90624
+ Inclusive: "inclusive",
90625
+ InferredByCurrency: "inferred_by_currency"
90626
+ };
90622
90627
  var CreateSandboxColorResponse = {
90623
90628
  Gray: "gray",
90624
90629
  Blue: "blue",
@@ -90628,10 +90633,41 @@ var CreateSandboxColorResponse = {
90628
90633
  Pink: "pink"
90629
90634
  };
90630
90635
  var ColorRequest$outboundSchema = z73.enum(ColorRequest);
90636
+ var SandboxHeadOffice$outboundSchema = z73.pipe(
90637
+ z73.object({
90638
+ line1: z73.string(),
90639
+ line2: z73.optional(z73.string()),
90640
+ city: z73.string(),
90641
+ state: z73.optional(z73.string()),
90642
+ postalCode: z73.string(),
90643
+ country: z73.string()
90644
+ }),
90645
+ z73.transform((v) => {
90646
+ return remap(v, {
90647
+ postalCode: "postal_code"
90648
+ });
90649
+ })
90650
+ );
90651
+ var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
90652
+ var CreateSandboxStripe$outboundSchema = z73.pipe(
90653
+ z73.object({
90654
+ headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
90655
+ taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
90656
+ taxCode: z73._default(z73.string(), "txcd_10000000")
90657
+ }),
90658
+ z73.transform((v) => {
90659
+ return remap(v, {
90660
+ headOffice: "head_office",
90661
+ taxBehavior: "tax_behavior",
90662
+ taxCode: "tax_code"
90663
+ });
90664
+ })
90665
+ );
90631
90666
  var CreateSandboxParams$outboundSchema = z73.object({
90632
90667
  name: z73.string(),
90633
90668
  color: z73.optional(ColorRequest$outboundSchema),
90634
- icon: z73.optional(z73.string())
90669
+ icon: z73.optional(z73.string()),
90670
+ stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
90635
90671
  });
90636
90672
  var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
90637
90673
  var CreateSandboxResponse$inboundSchema = z73.pipe(
@@ -138167,7 +138203,7 @@ async function $do101(client, _request, options) {
138167
138203
  // ../sdk/src/sdk/sandboxes.ts
138168
138204
  var Sandboxes = class extends ClientSDK {
138169
138205
  /**
138170
- * 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).
138206
+ * 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.
138171
138207
  */
138172
138208
  async create(request, options) {
138173
138209
  return unwrapAsync(sandboxesCreate(
@@ -1,10 +1,10 @@
1
1
  import "./chunk-WYDGEDEU.mjs";
2
2
  import "./chunk-VXND2UDT.mjs";
3
- import "./chunk-W4JBLNUW.mjs";
3
+ import "./chunk-UTOMXTVD.mjs";
4
4
  import {
5
5
  createCoreHandler
6
- } from "./chunk-O6HQFQF4.mjs";
7
- import "./chunk-BLV2SYP6.mjs";
6
+ } from "./chunk-D5XQY6V4.mjs";
7
+ import "./chunk-P3Y7E5HN.mjs";
8
8
  import "./chunk-MOHYGUMA.mjs";
9
9
  import "./chunk-TBQ27LIK.mjs";
10
10
  import "./chunk-J44WR3QZ.mjs";
@@ -45430,6 +45430,64 @@ declare const ColorRequest: {
45430
45430
  * Colour the dashboard uses to label the sandbox. Defaults to `gray`.
45431
45431
  */
45432
45432
  type ColorRequest = ClosedEnum<typeof ColorRequest>;
45433
+ /**
45434
+ * Head office address for the sandbox's Stripe account. Stripe needs one before it calculates tax, so pass it when your organization has automatic tax on.
45435
+ */
45436
+ type SandboxHeadOffice = {
45437
+ /**
45438
+ * Street address.
45439
+ */
45440
+ line1: string;
45441
+ /**
45442
+ * Apartment, suite or building.
45443
+ */
45444
+ line2?: string | undefined;
45445
+ /**
45446
+ * City or town.
45447
+ */
45448
+ city: string;
45449
+ /**
45450
+ * State, county, province or region.
45451
+ */
45452
+ state?: string | undefined;
45453
+ /**
45454
+ * Postal or ZIP code.
45455
+ */
45456
+ postalCode: string;
45457
+ /**
45458
+ * Two-letter ISO country code, like `US` or `NZ`.
45459
+ */
45460
+ country: string;
45461
+ };
45462
+ /**
45463
+ * Whether Stripe adds tax on top of your prices (`exclusive`), treats it as already included (`inclusive`), or decides by currency (`inferred_by_currency`). Defaults to `exclusive`.
45464
+ */
45465
+ declare const TaxBehavior: {
45466
+ readonly Exclusive: "exclusive";
45467
+ readonly Inclusive: "inclusive";
45468
+ readonly InferredByCurrency: "inferred_by_currency";
45469
+ };
45470
+ /**
45471
+ * Whether Stripe adds tax on top of your prices (`exclusive`), treats it as already included (`inclusive`), or decides by currency (`inferred_by_currency`). Defaults to `exclusive`.
45472
+ */
45473
+ type TaxBehavior = ClosedEnum<typeof TaxBehavior>;
45474
+ /**
45475
+ * Tax settings for the Stripe test account Autumn creates for the sandbox. Omit to leave that account as Stripe creates it.
45476
+ */
45477
+ type CreateSandboxStripe = {
45478
+ /**
45479
+ * Head office address for the sandbox's Stripe account. Stripe needs one before it calculates tax, so pass it when your organization has automatic tax on.
45480
+ */
45481
+ headOffice: SandboxHeadOffice;
45482
+ /**
45483
+ * Whether Stripe adds tax on top of your prices (`exclusive`), treats it as already included (`inclusive`), or decides by currency (`inferred_by_currency`). Defaults to `exclusive`.
45484
+ */
45485
+ taxBehavior?: TaxBehavior | undefined;
45486
+ /**
45487
+ * Default Stripe tax code for the sandbox's prices, like `txcd_10000000` (electronically supplied services). Defaults to `txcd_10000000`.
45488
+ */
45489
+ taxCode?: string | undefined;
45490
+ };
45433
45491
  type CreateSandboxParams = {
45434
45492
  /**
45435
45493
  * A name for the sandbox, unique within your organization. No spaces, and it can't be `live` or `sandbox`.
@@ -45443,6 +45501,10 @@ type CreateSandboxParams = {
45443
45501
  * Icon the dashboard uses to label the sandbox. Defaults to `Flask`.
45444
45502
  */
45445
45503
  icon?: string | undefined;
45504
+ /**
45505
+ * Tax settings for the Stripe test account Autumn creates for the sandbox. Omit to leave that account as Stripe creates it.
45506
+ */
45507
+ stripe?: CreateSandboxStripe | undefined;
45446
45508
  };
45447
45509
  /**
45448
45510
  * Colour the dashboard uses to label the sandbox.
@@ -94305,7 +94367,7 @@ declare class Rewards extends ClientSDK {
94305
94367
 
94306
94368
  declare class Sandboxes extends ClientSDK {
94307
94369
  /**
94308
- * 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).
94370
+ * 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.
94309
94371
  */
94310
94372
  create(request: CreateSandboxParams, options?: RequestOptions): Promise<CreateSandboxResponse>;
94311
94373
  /**