autumn-js 1.5.43 → 1.5.45

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 (96) hide show
  1. package/dist/backend/adapters/express.js +50 -6
  2. package/dist/backend/adapters/express.mjs +8 -8
  3. package/dist/backend/adapters/fetch.js +50 -6
  4. package/dist/backend/adapters/fetch.mjs +8 -8
  5. package/dist/backend/adapters/hono.js +50 -6
  6. package/dist/backend/adapters/hono.mjs +8 -8
  7. package/dist/backend/adapters/index.js +50 -6
  8. package/dist/backend/adapters/index.mjs +11 -11
  9. package/dist/backend/adapters/next.js +50 -6
  10. package/dist/backend/adapters/next.mjs +8 -8
  11. package/dist/backend/{chunk-VP4VWDUO.mjs → chunk-2TKKTUVY.mjs} +4 -4
  12. package/dist/backend/{chunk-EO5BUXOB.mjs → chunk-5RCMB7TM.mjs} +1 -1
  13. package/dist/backend/{chunk-BSMI7XZ6.mjs → chunk-HBQ3GM57.mjs} +1 -1
  14. package/dist/backend/{chunk-ZD7HEFV7.mjs → chunk-I5KYLHKQ.mjs} +6 -6
  15. package/dist/backend/{chunk-7M3SOVH2.mjs → chunk-OFDVZKAG.mjs} +50 -6
  16. package/dist/backend/{chunk-VMB55AQR.mjs → chunk-UJS72PWL.mjs} +1 -1
  17. package/dist/backend/{chunk-HIDHDZVU.mjs → chunk-UQYEDQA7.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 +50 -6
  21. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  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/executeRoute.mjs +4 -4
  25. package/dist/backend/core/handlers/handleRouteByName.js +50 -6
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +50 -6
  30. package/dist/backend/core/handlers/index.mjs +10 -10
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +50 -6
  34. package/dist/backend/core/index.mjs +9 -9
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.mjs +1 -1
  38. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  40. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  43. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  44. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  45. package/dist/backend/core/types/index.d.mts +1 -1
  46. package/dist/backend/core/types/index.d.ts +1 -1
  47. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  48. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  49. package/dist/backend/core/utils/index.mjs +3 -3
  50. package/dist/backend/index.d.mts +2 -2
  51. package/dist/backend/index.d.ts +2 -2
  52. package/dist/backend/index.js +50 -6
  53. package/dist/backend/index.mjs +9 -9
  54. package/dist/backend/{routeTypes-S1WcAcJC.d.ts → routeTypes-C6YLRNce.d.ts} +93 -11
  55. package/dist/backend/{routeTypes-BCmV80ya.d.mts → routeTypes-D-Ci4ENS.d.mts} +93 -11
  56. package/dist/better-auth/{chunk-EU2GU4MJ.mjs → chunk-ENPSYIEM.mjs} +50 -6
  57. package/dist/better-auth/index.js +50 -6
  58. package/dist/better-auth/index.mjs +1 -1
  59. package/dist/better-auth/utils/handleBetterAuthRoute.js +50 -6
  60. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  61. package/dist/better-auth/utils/index.js +50 -6
  62. package/dist/better-auth/utils/index.mjs +1 -1
  63. package/dist/react/AutumnContext.d.mts +1 -1
  64. package/dist/react/AutumnContext.d.ts +1 -1
  65. package/dist/react/client/AutumnClient.d.mts +1 -1
  66. package/dist/react/client/AutumnClient.d.ts +1 -1
  67. package/dist/react/client/IAutumnClient.d.mts +1 -1
  68. package/dist/react/client/IAutumnClient.d.ts +1 -1
  69. package/dist/react/client/index.d.mts +1 -1
  70. package/dist/react/client/index.d.ts +1 -1
  71. package/dist/react/{customer-D3Y6VwZt.d.ts → customer-CIB3x9fA.d.ts} +45 -4
  72. package/dist/react/{customer-CJOcLfov.d.mts → customer-Dk6o_I4m.d.mts} +45 -4
  73. package/dist/react/hooks/index.d.mts +1 -1
  74. package/dist/react/hooks/index.d.ts +1 -1
  75. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
  76. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
  77. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
  78. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
  79. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
  80. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
  81. package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
  82. package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
  83. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
  84. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
  85. package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
  86. package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
  87. package/dist/react/hooks/useCustomer.d.mts +1 -1
  88. package/dist/react/hooks/useCustomer.d.ts +1 -1
  89. package/dist/react/index.d.mts +1 -1
  90. package/dist/react/index.d.ts +1 -1
  91. package/dist/sdk/index.d.mts +106 -14
  92. package/dist/sdk/index.d.ts +106 -14
  93. package/dist/sdk/index.js +76 -10
  94. package/dist/sdk/index.mjs +65 -7
  95. package/package.json +2 -2
  96. package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
@@ -93936,7 +93936,7 @@ var CustomerOverageAllowedSource = {
93936
93936
  Customer: "customer",
93937
93937
  Plan: "plan"
93938
93938
  };
93939
- var CustomerStatus = {
93939
+ var CustomerSubscriptionStatus = {
93940
93940
  Active: "active",
93941
93941
  Scheduled: "scheduled"
93942
93942
  };
@@ -93971,6 +93971,11 @@ var ProcessorType = {
93971
93971
  Stripe: "stripe",
93972
93972
  Revenuecat: "revenuecat"
93973
93973
  };
93974
+ var CustomerInvoicePreviewStatus = {
93975
+ Complete: "complete",
93976
+ Incomplete: "incomplete",
93977
+ RequiresLocation: "requires_location"
93978
+ };
93974
93979
  var CustomerEntityEnv = {
93975
93980
  Sandbox: "sandbox",
93976
93981
  Live: "live"
@@ -94188,7 +94193,7 @@ var CustomerBillingControls$inboundSchema = z78.pipe(
94188
94193
  });
94189
94194
  })
94190
94195
  );
94191
- var CustomerStatus$inboundSchema = inboundSchema(CustomerStatus);
94196
+ var CustomerSubscriptionStatus$inboundSchema = inboundSchema(CustomerSubscriptionStatus);
94192
94197
  var SubscriptionScope$inboundSchema = inboundSchema(SubscriptionScope);
94193
94198
  var Subscription$inboundSchema = z78.pipe(
94194
94199
  z78.object({
@@ -94197,7 +94202,7 @@ var Subscription$inboundSchema = z78.pipe(
94197
94202
  plan_id: string5(),
94198
94203
  auto_enable: boolean2(),
94199
94204
  add_on: boolean2(),
94200
- status: CustomerStatus$inboundSchema,
94205
+ status: CustomerSubscriptionStatus$inboundSchema,
94201
94206
  past_due: boolean2(),
94202
94207
  canceled_at: nullable(number2()),
94203
94208
  expires_at: nullable(number2()),
@@ -94518,6 +94523,22 @@ var Invoice$inboundSchema = z78.pipe(
94518
94523
  });
94519
94524
  })
94520
94525
  );
94526
+ var CustomerInvoicePreviewStatus$inboundSchema = inboundSchema(CustomerInvoicePreviewStatus);
94527
+ var Tax$inboundSchema = z78.pipe(
94528
+ z78.object({
94529
+ total: number2(),
94530
+ amount_inclusive: number2(),
94531
+ amount_exclusive: number2(),
94532
+ currency: string5(),
94533
+ status: CustomerInvoicePreviewStatus$inboundSchema
94534
+ }),
94535
+ z78.transform((v) => {
94536
+ return remap(v, {
94537
+ "amount_inclusive": "amountInclusive",
94538
+ "amount_exclusive": "amountExclusive"
94539
+ });
94540
+ })
94541
+ );
94521
94542
  var InvoicePreviewDiscount$inboundSchema = z78.pipe(
94522
94543
  z78.object({
94523
94544
  amount_off: number2(),
@@ -94567,6 +94588,7 @@ var InvoicePreview$inboundSchema = z78.pipe(
94567
94588
  currency: string5(),
94568
94589
  subtotal: number2(),
94569
94590
  total: number2(),
94591
+ tax: optional3(z78.lazy(() => Tax$inboundSchema)),
94570
94592
  line_items: z78.array(z78.lazy(() => LineItem$inboundSchema))
94571
94593
  }),
94572
94594
  z78.transform((v) => {
@@ -95289,7 +95311,7 @@ var GetCustomerOverageAllowedSource = {
95289
95311
  Customer: "customer",
95290
95312
  Plan: "plan"
95291
95313
  };
95292
- var GetCustomerStatus = {
95314
+ var GetCustomerSubscriptionStatus = {
95293
95315
  Active: "active",
95294
95316
  Scheduled: "scheduled"
95295
95317
  };
@@ -95324,6 +95346,11 @@ var GetCustomerProcessorType = {
95324
95346
  Stripe: "stripe",
95325
95347
  Revenuecat: "revenuecat"
95326
95348
  };
95349
+ var GetCustomerInvoicePreviewStatus = {
95350
+ Complete: "complete",
95351
+ Incomplete: "incomplete",
95352
+ RequiresLocation: "requires_location"
95353
+ };
95327
95354
  var GetCustomerEntityEnv = {
95328
95355
  Sandbox: "sandbox",
95329
95356
  Live: "live"
@@ -95552,7 +95579,7 @@ var GetCustomerBillingControls$inboundSchema = z94.pipe(
95552
95579
  });
95553
95580
  })
95554
95581
  );
95555
- var GetCustomerStatus$inboundSchema = inboundSchema(GetCustomerStatus);
95582
+ var GetCustomerSubscriptionStatus$inboundSchema = inboundSchema(GetCustomerSubscriptionStatus);
95556
95583
  var GetCustomerSubscriptionScope$inboundSchema = inboundSchema(GetCustomerSubscriptionScope);
95557
95584
  var GetCustomerSubscription$inboundSchema = z94.pipe(
95558
95585
  z94.object({
@@ -95561,7 +95588,7 @@ var GetCustomerSubscription$inboundSchema = z94.pipe(
95561
95588
  plan_id: string5(),
95562
95589
  auto_enable: boolean2(),
95563
95590
  add_on: boolean2(),
95564
- status: GetCustomerStatus$inboundSchema,
95591
+ status: GetCustomerSubscriptionStatus$inboundSchema,
95565
95592
  past_due: boolean2(),
95566
95593
  canceled_at: nullable(number2()),
95567
95594
  expires_at: nullable(number2()),
@@ -95885,6 +95912,22 @@ var GetCustomerInvoice$inboundSchema = z94.pipe(
95885
95912
  });
95886
95913
  })
95887
95914
  );
95915
+ var GetCustomerInvoicePreviewStatus$inboundSchema = inboundSchema(GetCustomerInvoicePreviewStatus);
95916
+ var GetCustomerTax$inboundSchema = z94.pipe(
95917
+ z94.object({
95918
+ total: number2(),
95919
+ amount_inclusive: number2(),
95920
+ amount_exclusive: number2(),
95921
+ currency: string5(),
95922
+ status: GetCustomerInvoicePreviewStatus$inboundSchema
95923
+ }),
95924
+ z94.transform((v) => {
95925
+ return remap(v, {
95926
+ "amount_inclusive": "amountInclusive",
95927
+ "amount_exclusive": "amountExclusive"
95928
+ });
95929
+ })
95930
+ );
95888
95931
  var GetCustomerInvoicePreviewDiscount$inboundSchema = z94.pipe(
95889
95932
  z94.object({
95890
95933
  amount_off: number2(),
@@ -95934,6 +95977,7 @@ var GetCustomerInvoicePreview$inboundSchema = z94.pipe(
95934
95977
  currency: string5(),
95935
95978
  subtotal: number2(),
95936
95979
  total: number2(),
95980
+ tax: optional3(z94.lazy(() => GetCustomerTax$inboundSchema)),
95937
95981
  line_items: z94.array(z94.lazy(() => GetCustomerLineItem$inboundSchema))
95938
95982
  }),
95939
95983
  z94.transform((v) => {
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-EO5BUXOB.mjs";
3
+ } from "../chunk-5RCMB7TM.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-VP4VWDUO.mjs";
7
- import "../chunk-ZD7HEFV7.mjs";
8
- import "../chunk-7M3SOVH2.mjs";
9
- import "../chunk-MOHYGUMA.mjs";
10
- import "../chunk-TBQ27LIK.mjs";
11
- import "../chunk-J44WR3QZ.mjs";
6
+ import "../chunk-2TKKTUVY.mjs";
7
+ import "../chunk-I5KYLHKQ.mjs";
12
8
  import "../chunk-TSF4YCUO.mjs";
13
9
  import "../chunk-UAR3TMWI.mjs";
10
+ import "../chunk-OFDVZKAG.mjs";
14
11
  import "../chunk-V3XIDNBE.mjs";
12
+ import "../chunk-IXUCY7AU.mjs";
15
13
  import "../chunk-OTXV5FY7.mjs";
16
- import "../chunk-I7CD6EB6.mjs";
17
14
  import "../chunk-VZIMT7AO.mjs";
15
+ import "../chunk-I7CD6EB6.mjs";
16
+ import "../chunk-TBQ27LIK.mjs";
17
+ import "../chunk-J44WR3QZ.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -93936,7 +93936,7 @@ var CustomerOverageAllowedSource = {
93936
93936
  Customer: "customer",
93937
93937
  Plan: "plan"
93938
93938
  };
93939
- var CustomerStatus = {
93939
+ var CustomerSubscriptionStatus = {
93940
93940
  Active: "active",
93941
93941
  Scheduled: "scheduled"
93942
93942
  };
@@ -93971,6 +93971,11 @@ var ProcessorType = {
93971
93971
  Stripe: "stripe",
93972
93972
  Revenuecat: "revenuecat"
93973
93973
  };
93974
+ var CustomerInvoicePreviewStatus = {
93975
+ Complete: "complete",
93976
+ Incomplete: "incomplete",
93977
+ RequiresLocation: "requires_location"
93978
+ };
93974
93979
  var CustomerEntityEnv = {
93975
93980
  Sandbox: "sandbox",
93976
93981
  Live: "live"
@@ -94188,7 +94193,7 @@ var CustomerBillingControls$inboundSchema = z78.pipe(
94188
94193
  });
94189
94194
  })
94190
94195
  );
94191
- var CustomerStatus$inboundSchema = inboundSchema(CustomerStatus);
94196
+ var CustomerSubscriptionStatus$inboundSchema = inboundSchema(CustomerSubscriptionStatus);
94192
94197
  var SubscriptionScope$inboundSchema = inboundSchema(SubscriptionScope);
94193
94198
  var Subscription$inboundSchema = z78.pipe(
94194
94199
  z78.object({
@@ -94197,7 +94202,7 @@ var Subscription$inboundSchema = z78.pipe(
94197
94202
  plan_id: string5(),
94198
94203
  auto_enable: boolean2(),
94199
94204
  add_on: boolean2(),
94200
- status: CustomerStatus$inboundSchema,
94205
+ status: CustomerSubscriptionStatus$inboundSchema,
94201
94206
  past_due: boolean2(),
94202
94207
  canceled_at: nullable(number2()),
94203
94208
  expires_at: nullable(number2()),
@@ -94518,6 +94523,22 @@ var Invoice$inboundSchema = z78.pipe(
94518
94523
  });
94519
94524
  })
94520
94525
  );
94526
+ var CustomerInvoicePreviewStatus$inboundSchema = inboundSchema(CustomerInvoicePreviewStatus);
94527
+ var Tax$inboundSchema = z78.pipe(
94528
+ z78.object({
94529
+ total: number2(),
94530
+ amount_inclusive: number2(),
94531
+ amount_exclusive: number2(),
94532
+ currency: string5(),
94533
+ status: CustomerInvoicePreviewStatus$inboundSchema
94534
+ }),
94535
+ z78.transform((v) => {
94536
+ return remap(v, {
94537
+ "amount_inclusive": "amountInclusive",
94538
+ "amount_exclusive": "amountExclusive"
94539
+ });
94540
+ })
94541
+ );
94521
94542
  var InvoicePreviewDiscount$inboundSchema = z78.pipe(
94522
94543
  z78.object({
94523
94544
  amount_off: number2(),
@@ -94567,6 +94588,7 @@ var InvoicePreview$inboundSchema = z78.pipe(
94567
94588
  currency: string5(),
94568
94589
  subtotal: number2(),
94569
94590
  total: number2(),
94591
+ tax: optional3(z78.lazy(() => Tax$inboundSchema)),
94570
94592
  line_items: z78.array(z78.lazy(() => LineItem$inboundSchema))
94571
94593
  }),
94572
94594
  z78.transform((v) => {
@@ -95289,7 +95311,7 @@ var GetCustomerOverageAllowedSource = {
95289
95311
  Customer: "customer",
95290
95312
  Plan: "plan"
95291
95313
  };
95292
- var GetCustomerStatus = {
95314
+ var GetCustomerSubscriptionStatus = {
95293
95315
  Active: "active",
95294
95316
  Scheduled: "scheduled"
95295
95317
  };
@@ -95324,6 +95346,11 @@ var GetCustomerProcessorType = {
95324
95346
  Stripe: "stripe",
95325
95347
  Revenuecat: "revenuecat"
95326
95348
  };
95349
+ var GetCustomerInvoicePreviewStatus = {
95350
+ Complete: "complete",
95351
+ Incomplete: "incomplete",
95352
+ RequiresLocation: "requires_location"
95353
+ };
95327
95354
  var GetCustomerEntityEnv = {
95328
95355
  Sandbox: "sandbox",
95329
95356
  Live: "live"
@@ -95552,7 +95579,7 @@ var GetCustomerBillingControls$inboundSchema = z94.pipe(
95552
95579
  });
95553
95580
  })
95554
95581
  );
95555
- var GetCustomerStatus$inboundSchema = inboundSchema(GetCustomerStatus);
95582
+ var GetCustomerSubscriptionStatus$inboundSchema = inboundSchema(GetCustomerSubscriptionStatus);
95556
95583
  var GetCustomerSubscriptionScope$inboundSchema = inboundSchema(GetCustomerSubscriptionScope);
95557
95584
  var GetCustomerSubscription$inboundSchema = z94.pipe(
95558
95585
  z94.object({
@@ -95561,7 +95588,7 @@ var GetCustomerSubscription$inboundSchema = z94.pipe(
95561
95588
  plan_id: string5(),
95562
95589
  auto_enable: boolean2(),
95563
95590
  add_on: boolean2(),
95564
- status: GetCustomerStatus$inboundSchema,
95591
+ status: GetCustomerSubscriptionStatus$inboundSchema,
95565
95592
  past_due: boolean2(),
95566
95593
  canceled_at: nullable(number2()),
95567
95594
  expires_at: nullable(number2()),
@@ -95885,6 +95912,22 @@ var GetCustomerInvoice$inboundSchema = z94.pipe(
95885
95912
  });
95886
95913
  })
95887
95914
  );
95915
+ var GetCustomerInvoicePreviewStatus$inboundSchema = inboundSchema(GetCustomerInvoicePreviewStatus);
95916
+ var GetCustomerTax$inboundSchema = z94.pipe(
95917
+ z94.object({
95918
+ total: number2(),
95919
+ amount_inclusive: number2(),
95920
+ amount_exclusive: number2(),
95921
+ currency: string5(),
95922
+ status: GetCustomerInvoicePreviewStatus$inboundSchema
95923
+ }),
95924
+ z94.transform((v) => {
95925
+ return remap(v, {
95926
+ "amount_inclusive": "amountInclusive",
95927
+ "amount_exclusive": "amountExclusive"
95928
+ });
95929
+ })
95930
+ );
95888
95931
  var GetCustomerInvoicePreviewDiscount$inboundSchema = z94.pipe(
95889
95932
  z94.object({
95890
95933
  amount_off: number2(),
@@ -95934,6 +95977,7 @@ var GetCustomerInvoicePreview$inboundSchema = z94.pipe(
95934
95977
  currency: string5(),
95935
95978
  subtotal: number2(),
95936
95979
  total: number2(),
95980
+ tax: optional3(z94.lazy(() => GetCustomerTax$inboundSchema)),
95937
95981
  line_items: z94.array(z94.lazy(() => GetCustomerLineItem$inboundSchema))
95938
95982
  }),
95939
95983
  z94.transform((v) => {
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-VMB55AQR.mjs";
3
+ } from "../chunk-UJS72PWL.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-VP4VWDUO.mjs";
7
- import "../chunk-ZD7HEFV7.mjs";
8
- import "../chunk-7M3SOVH2.mjs";
9
- import "../chunk-MOHYGUMA.mjs";
10
- import "../chunk-TBQ27LIK.mjs";
11
- import "../chunk-J44WR3QZ.mjs";
6
+ import "../chunk-2TKKTUVY.mjs";
7
+ import "../chunk-I5KYLHKQ.mjs";
12
8
  import "../chunk-TSF4YCUO.mjs";
13
9
  import "../chunk-UAR3TMWI.mjs";
10
+ import "../chunk-OFDVZKAG.mjs";
14
11
  import "../chunk-V3XIDNBE.mjs";
12
+ import "../chunk-IXUCY7AU.mjs";
15
13
  import "../chunk-OTXV5FY7.mjs";
16
- import "../chunk-I7CD6EB6.mjs";
17
14
  import "../chunk-VZIMT7AO.mjs";
15
+ import "../chunk-I7CD6EB6.mjs";
16
+ import "../chunk-TBQ27LIK.mjs";
17
+ import "../chunk-J44WR3QZ.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -93936,7 +93936,7 @@ var CustomerOverageAllowedSource = {
93936
93936
  Customer: "customer",
93937
93937
  Plan: "plan"
93938
93938
  };
93939
- var CustomerStatus = {
93939
+ var CustomerSubscriptionStatus = {
93940
93940
  Active: "active",
93941
93941
  Scheduled: "scheduled"
93942
93942
  };
@@ -93971,6 +93971,11 @@ var ProcessorType = {
93971
93971
  Stripe: "stripe",
93972
93972
  Revenuecat: "revenuecat"
93973
93973
  };
93974
+ var CustomerInvoicePreviewStatus = {
93975
+ Complete: "complete",
93976
+ Incomplete: "incomplete",
93977
+ RequiresLocation: "requires_location"
93978
+ };
93974
93979
  var CustomerEntityEnv = {
93975
93980
  Sandbox: "sandbox",
93976
93981
  Live: "live"
@@ -94188,7 +94193,7 @@ var CustomerBillingControls$inboundSchema = z78.pipe(
94188
94193
  });
94189
94194
  })
94190
94195
  );
94191
- var CustomerStatus$inboundSchema = inboundSchema(CustomerStatus);
94196
+ var CustomerSubscriptionStatus$inboundSchema = inboundSchema(CustomerSubscriptionStatus);
94192
94197
  var SubscriptionScope$inboundSchema = inboundSchema(SubscriptionScope);
94193
94198
  var Subscription$inboundSchema = z78.pipe(
94194
94199
  z78.object({
@@ -94197,7 +94202,7 @@ var Subscription$inboundSchema = z78.pipe(
94197
94202
  plan_id: string5(),
94198
94203
  auto_enable: boolean2(),
94199
94204
  add_on: boolean2(),
94200
- status: CustomerStatus$inboundSchema,
94205
+ status: CustomerSubscriptionStatus$inboundSchema,
94201
94206
  past_due: boolean2(),
94202
94207
  canceled_at: nullable(number2()),
94203
94208
  expires_at: nullable(number2()),
@@ -94518,6 +94523,22 @@ var Invoice$inboundSchema = z78.pipe(
94518
94523
  });
94519
94524
  })
94520
94525
  );
94526
+ var CustomerInvoicePreviewStatus$inboundSchema = inboundSchema(CustomerInvoicePreviewStatus);
94527
+ var Tax$inboundSchema = z78.pipe(
94528
+ z78.object({
94529
+ total: number2(),
94530
+ amount_inclusive: number2(),
94531
+ amount_exclusive: number2(),
94532
+ currency: string5(),
94533
+ status: CustomerInvoicePreviewStatus$inboundSchema
94534
+ }),
94535
+ z78.transform((v) => {
94536
+ return remap(v, {
94537
+ "amount_inclusive": "amountInclusive",
94538
+ "amount_exclusive": "amountExclusive"
94539
+ });
94540
+ })
94541
+ );
94521
94542
  var InvoicePreviewDiscount$inboundSchema = z78.pipe(
94522
94543
  z78.object({
94523
94544
  amount_off: number2(),
@@ -94567,6 +94588,7 @@ var InvoicePreview$inboundSchema = z78.pipe(
94567
94588
  currency: string5(),
94568
94589
  subtotal: number2(),
94569
94590
  total: number2(),
94591
+ tax: optional3(z78.lazy(() => Tax$inboundSchema)),
94570
94592
  line_items: z78.array(z78.lazy(() => LineItem$inboundSchema))
94571
94593
  }),
94572
94594
  z78.transform((v) => {
@@ -95289,7 +95311,7 @@ var GetCustomerOverageAllowedSource = {
95289
95311
  Customer: "customer",
95290
95312
  Plan: "plan"
95291
95313
  };
95292
- var GetCustomerStatus = {
95314
+ var GetCustomerSubscriptionStatus = {
95293
95315
  Active: "active",
95294
95316
  Scheduled: "scheduled"
95295
95317
  };
@@ -95324,6 +95346,11 @@ var GetCustomerProcessorType = {
95324
95346
  Stripe: "stripe",
95325
95347
  Revenuecat: "revenuecat"
95326
95348
  };
95349
+ var GetCustomerInvoicePreviewStatus = {
95350
+ Complete: "complete",
95351
+ Incomplete: "incomplete",
95352
+ RequiresLocation: "requires_location"
95353
+ };
95327
95354
  var GetCustomerEntityEnv = {
95328
95355
  Sandbox: "sandbox",
95329
95356
  Live: "live"
@@ -95552,7 +95579,7 @@ var GetCustomerBillingControls$inboundSchema = z94.pipe(
95552
95579
  });
95553
95580
  })
95554
95581
  );
95555
- var GetCustomerStatus$inboundSchema = inboundSchema(GetCustomerStatus);
95582
+ var GetCustomerSubscriptionStatus$inboundSchema = inboundSchema(GetCustomerSubscriptionStatus);
95556
95583
  var GetCustomerSubscriptionScope$inboundSchema = inboundSchema(GetCustomerSubscriptionScope);
95557
95584
  var GetCustomerSubscription$inboundSchema = z94.pipe(
95558
95585
  z94.object({
@@ -95561,7 +95588,7 @@ var GetCustomerSubscription$inboundSchema = z94.pipe(
95561
95588
  plan_id: string5(),
95562
95589
  auto_enable: boolean2(),
95563
95590
  add_on: boolean2(),
95564
- status: GetCustomerStatus$inboundSchema,
95591
+ status: GetCustomerSubscriptionStatus$inboundSchema,
95565
95592
  past_due: boolean2(),
95566
95593
  canceled_at: nullable(number2()),
95567
95594
  expires_at: nullable(number2()),
@@ -95885,6 +95912,22 @@ var GetCustomerInvoice$inboundSchema = z94.pipe(
95885
95912
  });
95886
95913
  })
95887
95914
  );
95915
+ var GetCustomerInvoicePreviewStatus$inboundSchema = inboundSchema(GetCustomerInvoicePreviewStatus);
95916
+ var GetCustomerTax$inboundSchema = z94.pipe(
95917
+ z94.object({
95918
+ total: number2(),
95919
+ amount_inclusive: number2(),
95920
+ amount_exclusive: number2(),
95921
+ currency: string5(),
95922
+ status: GetCustomerInvoicePreviewStatus$inboundSchema
95923
+ }),
95924
+ z94.transform((v) => {
95925
+ return remap(v, {
95926
+ "amount_inclusive": "amountInclusive",
95927
+ "amount_exclusive": "amountExclusive"
95928
+ });
95929
+ })
95930
+ );
95888
95931
  var GetCustomerInvoicePreviewDiscount$inboundSchema = z94.pipe(
95889
95932
  z94.object({
95890
95933
  amount_off: number2(),
@@ -95934,6 +95977,7 @@ var GetCustomerInvoicePreview$inboundSchema = z94.pipe(
95934
95977
  currency: string5(),
95935
95978
  subtotal: number2(),
95936
95979
  total: number2(),
95980
+ tax: optional3(z94.lazy(() => GetCustomerTax$inboundSchema)),
95937
95981
  line_items: z94.array(z94.lazy(() => GetCustomerLineItem$inboundSchema))
95938
95982
  }),
95939
95983
  z94.transform((v) => {
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-HIDHDZVU.mjs";
3
+ } from "../chunk-UQYEDQA7.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-VP4VWDUO.mjs";
7
- import "../chunk-ZD7HEFV7.mjs";
8
- import "../chunk-7M3SOVH2.mjs";
9
- import "../chunk-MOHYGUMA.mjs";
10
- import "../chunk-TBQ27LIK.mjs";
11
- import "../chunk-J44WR3QZ.mjs";
6
+ import "../chunk-2TKKTUVY.mjs";
7
+ import "../chunk-I5KYLHKQ.mjs";
12
8
  import "../chunk-TSF4YCUO.mjs";
13
9
  import "../chunk-UAR3TMWI.mjs";
10
+ import "../chunk-OFDVZKAG.mjs";
14
11
  import "../chunk-V3XIDNBE.mjs";
12
+ import "../chunk-IXUCY7AU.mjs";
15
13
  import "../chunk-OTXV5FY7.mjs";
16
- import "../chunk-I7CD6EB6.mjs";
17
14
  import "../chunk-VZIMT7AO.mjs";
15
+ import "../chunk-I7CD6EB6.mjs";
16
+ import "../chunk-TBQ27LIK.mjs";
17
+ import "../chunk-J44WR3QZ.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -93939,7 +93939,7 @@ var CustomerOverageAllowedSource = {
93939
93939
  Customer: "customer",
93940
93940
  Plan: "plan"
93941
93941
  };
93942
- var CustomerStatus = {
93942
+ var CustomerSubscriptionStatus = {
93943
93943
  Active: "active",
93944
93944
  Scheduled: "scheduled"
93945
93945
  };
@@ -93974,6 +93974,11 @@ var ProcessorType = {
93974
93974
  Stripe: "stripe",
93975
93975
  Revenuecat: "revenuecat"
93976
93976
  };
93977
+ var CustomerInvoicePreviewStatus = {
93978
+ Complete: "complete",
93979
+ Incomplete: "incomplete",
93980
+ RequiresLocation: "requires_location"
93981
+ };
93977
93982
  var CustomerEntityEnv = {
93978
93983
  Sandbox: "sandbox",
93979
93984
  Live: "live"
@@ -94191,7 +94196,7 @@ var CustomerBillingControls$inboundSchema = z78.pipe(
94191
94196
  });
94192
94197
  })
94193
94198
  );
94194
- var CustomerStatus$inboundSchema = inboundSchema(CustomerStatus);
94199
+ var CustomerSubscriptionStatus$inboundSchema = inboundSchema(CustomerSubscriptionStatus);
94195
94200
  var SubscriptionScope$inboundSchema = inboundSchema(SubscriptionScope);
94196
94201
  var Subscription$inboundSchema = z78.pipe(
94197
94202
  z78.object({
@@ -94200,7 +94205,7 @@ var Subscription$inboundSchema = z78.pipe(
94200
94205
  plan_id: string5(),
94201
94206
  auto_enable: boolean2(),
94202
94207
  add_on: boolean2(),
94203
- status: CustomerStatus$inboundSchema,
94208
+ status: CustomerSubscriptionStatus$inboundSchema,
94204
94209
  past_due: boolean2(),
94205
94210
  canceled_at: nullable(number2()),
94206
94211
  expires_at: nullable(number2()),
@@ -94521,6 +94526,22 @@ var Invoice$inboundSchema = z78.pipe(
94521
94526
  });
94522
94527
  })
94523
94528
  );
94529
+ var CustomerInvoicePreviewStatus$inboundSchema = inboundSchema(CustomerInvoicePreviewStatus);
94530
+ var Tax$inboundSchema = z78.pipe(
94531
+ z78.object({
94532
+ total: number2(),
94533
+ amount_inclusive: number2(),
94534
+ amount_exclusive: number2(),
94535
+ currency: string5(),
94536
+ status: CustomerInvoicePreviewStatus$inboundSchema
94537
+ }),
94538
+ z78.transform((v) => {
94539
+ return remap(v, {
94540
+ "amount_inclusive": "amountInclusive",
94541
+ "amount_exclusive": "amountExclusive"
94542
+ });
94543
+ })
94544
+ );
94524
94545
  var InvoicePreviewDiscount$inboundSchema = z78.pipe(
94525
94546
  z78.object({
94526
94547
  amount_off: number2(),
@@ -94570,6 +94591,7 @@ var InvoicePreview$inboundSchema = z78.pipe(
94570
94591
  currency: string5(),
94571
94592
  subtotal: number2(),
94572
94593
  total: number2(),
94594
+ tax: optional3(z78.lazy(() => Tax$inboundSchema)),
94573
94595
  line_items: z78.array(z78.lazy(() => LineItem$inboundSchema))
94574
94596
  }),
94575
94597
  z78.transform((v) => {
@@ -95292,7 +95314,7 @@ var GetCustomerOverageAllowedSource = {
95292
95314
  Customer: "customer",
95293
95315
  Plan: "plan"
95294
95316
  };
95295
- var GetCustomerStatus = {
95317
+ var GetCustomerSubscriptionStatus = {
95296
95318
  Active: "active",
95297
95319
  Scheduled: "scheduled"
95298
95320
  };
@@ -95327,6 +95349,11 @@ var GetCustomerProcessorType = {
95327
95349
  Stripe: "stripe",
95328
95350
  Revenuecat: "revenuecat"
95329
95351
  };
95352
+ var GetCustomerInvoicePreviewStatus = {
95353
+ Complete: "complete",
95354
+ Incomplete: "incomplete",
95355
+ RequiresLocation: "requires_location"
95356
+ };
95330
95357
  var GetCustomerEntityEnv = {
95331
95358
  Sandbox: "sandbox",
95332
95359
  Live: "live"
@@ -95555,7 +95582,7 @@ var GetCustomerBillingControls$inboundSchema = z94.pipe(
95555
95582
  });
95556
95583
  })
95557
95584
  );
95558
- var GetCustomerStatus$inboundSchema = inboundSchema(GetCustomerStatus);
95585
+ var GetCustomerSubscriptionStatus$inboundSchema = inboundSchema(GetCustomerSubscriptionStatus);
95559
95586
  var GetCustomerSubscriptionScope$inboundSchema = inboundSchema(GetCustomerSubscriptionScope);
95560
95587
  var GetCustomerSubscription$inboundSchema = z94.pipe(
95561
95588
  z94.object({
@@ -95564,7 +95591,7 @@ var GetCustomerSubscription$inboundSchema = z94.pipe(
95564
95591
  plan_id: string5(),
95565
95592
  auto_enable: boolean2(),
95566
95593
  add_on: boolean2(),
95567
- status: GetCustomerStatus$inboundSchema,
95594
+ status: GetCustomerSubscriptionStatus$inboundSchema,
95568
95595
  past_due: boolean2(),
95569
95596
  canceled_at: nullable(number2()),
95570
95597
  expires_at: nullable(number2()),
@@ -95888,6 +95915,22 @@ var GetCustomerInvoice$inboundSchema = z94.pipe(
95888
95915
  });
95889
95916
  })
95890
95917
  );
95918
+ var GetCustomerInvoicePreviewStatus$inboundSchema = inboundSchema(GetCustomerInvoicePreviewStatus);
95919
+ var GetCustomerTax$inboundSchema = z94.pipe(
95920
+ z94.object({
95921
+ total: number2(),
95922
+ amount_inclusive: number2(),
95923
+ amount_exclusive: number2(),
95924
+ currency: string5(),
95925
+ status: GetCustomerInvoicePreviewStatus$inboundSchema
95926
+ }),
95927
+ z94.transform((v) => {
95928
+ return remap(v, {
95929
+ "amount_inclusive": "amountInclusive",
95930
+ "amount_exclusive": "amountExclusive"
95931
+ });
95932
+ })
95933
+ );
95891
95934
  var GetCustomerInvoicePreviewDiscount$inboundSchema = z94.pipe(
95892
95935
  z94.object({
95893
95936
  amount_off: number2(),
@@ -95937,6 +95980,7 @@ var GetCustomerInvoicePreview$inboundSchema = z94.pipe(
95937
95980
  currency: string5(),
95938
95981
  subtotal: number2(),
95939
95982
  total: number2(),
95983
+ tax: optional3(z94.lazy(() => GetCustomerTax$inboundSchema)),
95940
95984
  line_items: z94.array(z94.lazy(() => GetCustomerLineItem$inboundSchema))
95941
95985
  }),
95942
95986
  z94.transform((v) => {
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-EO5BUXOB.mjs";
3
+ } from "../chunk-5RCMB7TM.mjs";
4
4
  import {
5
5
  autumnHandler as autumnHandler2
6
- } from "../chunk-VMB55AQR.mjs";
6
+ } from "../chunk-UJS72PWL.mjs";
7
7
  import {
8
8
  autumnHandler as autumnHandler3
9
- } from "../chunk-HIDHDZVU.mjs";
9
+ } from "../chunk-UQYEDQA7.mjs";
10
10
  import {
11
11
  autumnHandler as autumnHandler4
12
- } from "../chunk-BSMI7XZ6.mjs";
12
+ } from "../chunk-HBQ3GM57.mjs";
13
13
  import "../chunk-WYDGEDEU.mjs";
14
14
  import "../chunk-VXND2UDT.mjs";
15
- import "../chunk-VP4VWDUO.mjs";
16
- import "../chunk-ZD7HEFV7.mjs";
17
- import "../chunk-7M3SOVH2.mjs";
18
- import "../chunk-MOHYGUMA.mjs";
19
- import "../chunk-TBQ27LIK.mjs";
20
- import "../chunk-J44WR3QZ.mjs";
15
+ import "../chunk-2TKKTUVY.mjs";
16
+ import "../chunk-I5KYLHKQ.mjs";
21
17
  import "../chunk-TSF4YCUO.mjs";
22
18
  import "../chunk-UAR3TMWI.mjs";
19
+ import "../chunk-OFDVZKAG.mjs";
23
20
  import "../chunk-V3XIDNBE.mjs";
21
+ import "../chunk-IXUCY7AU.mjs";
24
22
  import "../chunk-OTXV5FY7.mjs";
25
- import "../chunk-I7CD6EB6.mjs";
26
23
  import "../chunk-VZIMT7AO.mjs";
24
+ import "../chunk-I7CD6EB6.mjs";
25
+ import "../chunk-TBQ27LIK.mjs";
26
+ import "../chunk-J44WR3QZ.mjs";
27
27
  import "../chunk-N7NFYY54.mjs";
28
28
  export {
29
29
  autumnHandler as expressAutumnHandler,