autumn-js 1.2.11 → 1.2.13

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 (159) hide show
  1. package/dist/backend/adapters/express.js +143 -4
  2. package/dist/backend/adapters/express.mjs +8 -8
  3. package/dist/backend/adapters/fetch.js +143 -4
  4. package/dist/backend/adapters/fetch.mjs +8 -8
  5. package/dist/backend/adapters/hono.js +143 -4
  6. package/dist/backend/adapters/hono.mjs +8 -8
  7. package/dist/backend/adapters/index.js +143 -4
  8. package/dist/backend/adapters/index.mjs +11 -11
  9. package/dist/backend/adapters/next.js +143 -4
  10. package/dist/backend/adapters/next.mjs +8 -8
  11. package/dist/backend/{chunk-WMGBAAJK.mjs → chunk-7BVATYGA.mjs} +1 -1
  12. package/dist/backend/{chunk-4RBWBJIF.mjs → chunk-DNNJOZAT.mjs} +1 -1
  13. package/dist/backend/{chunk-SKWVW2EN.mjs → chunk-EJGHP7KT.mjs} +5 -5
  14. package/dist/backend/{chunk-FPZHAFCV.mjs → chunk-MANTLPDT.mjs} +24 -0
  15. package/dist/backend/{chunk-JEVAYQ65.mjs → chunk-OUDB34Y7.mjs} +1 -1
  16. package/dist/backend/{chunk-MBL56SEJ.mjs → chunk-RPH5L44S.mjs} +1 -1
  17. package/dist/backend/{chunk-AY6OV7CM.mjs → chunk-T42RZEUZ.mjs} +119 -4
  18. package/dist/backend/{chunk-JMDETKOQ.mjs → chunk-YSQQKZBU.mjs} +7 -7
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +143 -4
  22. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  23. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  25. package/dist/backend/core/handlers/executeRoute.mjs +3 -3
  26. package/dist/backend/core/handlers/handleRouteByName.js +143 -4
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  28. package/dist/backend/core/handlers/index.d.mts +1 -1
  29. package/dist/backend/core/handlers/index.d.ts +1 -1
  30. package/dist/backend/core/handlers/index.js +143 -4
  31. package/dist/backend/core/handlers/index.mjs +10 -10
  32. package/dist/backend/core/index.d.mts +1 -1
  33. package/dist/backend/core/index.d.ts +1 -1
  34. package/dist/backend/core/index.js +143 -4
  35. package/dist/backend/core/index.mjs +7 -7
  36. package/dist/backend/core/routes/index.d.mts +1 -1
  37. package/dist/backend/core/routes/index.d.ts +1 -1
  38. package/dist/backend/core/routes/index.js +24 -0
  39. package/dist/backend/core/routes/index.mjs +1 -1
  40. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  41. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  44. package/dist/backend/core/routes/routeConfigs.js +24 -0
  45. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  46. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  47. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  48. package/dist/backend/core/types/index.d.mts +1 -1
  49. package/dist/backend/core/types/index.d.ts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  51. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  52. package/dist/backend/index.d.mts +2 -2
  53. package/dist/backend/index.d.ts +2 -2
  54. package/dist/backend/index.js +143 -4
  55. package/dist/backend/index.mjs +7 -7
  56. package/dist/backend/{routeTypes-D7ANq7kY.d.ts → routeTypes-B94_Mq2J.d.ts} +129 -0
  57. package/dist/backend/{routeTypes-CQWFgZk4.d.mts → routeTypes-DVwngaBn.d.mts} +129 -0
  58. package/dist/better-auth/{chunk-3GVPOBXE.mjs → chunk-4OWECHZC.mjs} +1 -1
  59. package/dist/better-auth/{chunk-WEDJRTA3.mjs → chunk-JIFD4TSN.mjs} +24 -0
  60. package/dist/better-auth/{chunk-XH3WDFWS.mjs → chunk-ZZGFPTHO.mjs} +120 -5
  61. package/dist/better-auth/client.d.mts +3 -7
  62. package/dist/better-auth/client.d.ts +3 -7
  63. package/dist/better-auth/createAutumnEndpoint-CvXRCg-M.d.mts +43 -0
  64. package/dist/better-auth/createAutumnEndpoint-CvXRCg-M.d.ts +43 -0
  65. package/dist/better-auth/index.d.mts +3 -7
  66. package/dist/better-auth/index.d.ts +3 -7
  67. package/dist/better-auth/index.js +143 -4
  68. package/dist/better-auth/index.mjs +3 -3
  69. package/dist/better-auth/utils/createAutumnEndpoint.d.mts +3 -7
  70. package/dist/better-auth/utils/createAutumnEndpoint.d.ts +3 -7
  71. package/dist/better-auth/utils/createAutumnEndpoint.js +24 -0
  72. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  73. package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +3 -7
  74. package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +3 -7
  75. package/dist/better-auth/utils/handleBetterAuthRoute.js +143 -4
  76. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  77. package/dist/better-auth/utils/index.d.mts +3 -8
  78. package/dist/better-auth/utils/index.d.ts +3 -8
  79. package/dist/better-auth/utils/index.js +143 -4
  80. package/dist/better-auth/utils/index.mjs +3 -3
  81. package/dist/react/AutumnContext.d.mts +3 -3
  82. package/dist/react/AutumnContext.d.ts +3 -3
  83. package/dist/react/AutumnProvider.js +15 -15
  84. package/dist/react/AutumnProvider.mjs +2 -2
  85. package/dist/react/{chunk-26CKSAPZ.mjs → chunk-7IDH4OMG.mjs} +1 -1
  86. package/dist/react/{chunk-HSQUB3BZ.mjs → chunk-BDG6JHEW.mjs} +1 -1
  87. package/dist/react/{chunk-KB72KQKN.mjs → chunk-DEZBJQEG.mjs} +1 -1
  88. package/dist/react/{chunk-XJZH5NMZ.mjs → chunk-E5ZHOMZ4.mjs} +23 -23
  89. package/dist/react/{chunk-OXQG65ZT.mjs → chunk-FWWIAOPU.mjs} +1 -1
  90. package/dist/react/{chunk-ZGPE4R6H.mjs → chunk-HVBDZARN.mjs} +2 -2
  91. package/dist/react/{chunk-MC2YYATT.mjs → chunk-J6SLKTKE.mjs} +1 -1
  92. package/dist/react/{chunk-CHU7CIWP.mjs → chunk-NSFHAUTD.mjs} +1 -1
  93. package/dist/react/{chunk-G7FTQLT7.mjs → chunk-YQFYWH7J.mjs} +1 -1
  94. package/dist/react/client/AutumnClient.d.mts +3 -3
  95. package/dist/react/client/AutumnClient.d.ts +3 -3
  96. package/dist/react/client/IAutumnClient.d.mts +16 -3
  97. package/dist/react/client/IAutumnClient.d.ts +16 -3
  98. package/dist/react/client/index.d.mts +3 -3
  99. package/dist/react/client/index.d.ts +3 -3
  100. package/dist/react/{customer-CbcVyRCQ.d.ts → customer-CaGJEN5J.d.ts} +1 -1
  101. package/dist/react/{customer-BYYt9N1h.d.mts → customer-DB8vL_m7.d.mts} +1 -1
  102. package/dist/react/hooks/index.d.mts +3 -3
  103. package/dist/react/hooks/index.d.ts +3 -3
  104. package/dist/react/hooks/index.js +16 -16
  105. package/dist/react/hooks/index.mjs +8 -8
  106. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  107. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  108. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  109. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  110. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  111. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  112. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  113. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  114. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  115. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  116. package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
  117. package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
  118. package/dist/react/hooks/internal/useCustomerActions.js +1 -1
  119. package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
  120. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  121. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  122. package/dist/react/hooks/useAggregateEvents.js +16 -16
  123. package/dist/react/hooks/useAggregateEvents.mjs +2 -2
  124. package/dist/react/hooks/useCustomer.d.mts +3 -3
  125. package/dist/react/hooks/useCustomer.d.ts +3 -3
  126. package/dist/react/hooks/useCustomer.js +16 -16
  127. package/dist/react/hooks/useCustomer.mjs +3 -3
  128. package/dist/react/hooks/useEntity.d.mts +2 -2
  129. package/dist/react/hooks/useEntity.d.ts +2 -2
  130. package/dist/react/hooks/useEntity.js +16 -16
  131. package/dist/react/hooks/useEntity.mjs +2 -2
  132. package/dist/react/hooks/useListEvents.d.mts +2 -2
  133. package/dist/react/hooks/useListEvents.d.ts +2 -2
  134. package/dist/react/hooks/useListEvents.js +16 -16
  135. package/dist/react/hooks/useListEvents.mjs +2 -2
  136. package/dist/react/hooks/useListPlans.d.mts +2 -2
  137. package/dist/react/hooks/useListPlans.d.ts +2 -2
  138. package/dist/react/hooks/useListPlans.js +16 -16
  139. package/dist/react/hooks/useListPlans.mjs +2 -2
  140. package/dist/react/hooks/useReferrals.d.mts +2 -2
  141. package/dist/react/hooks/useReferrals.d.ts +2 -2
  142. package/dist/react/hooks/useReferrals.js +16 -16
  143. package/dist/react/hooks/useReferrals.mjs +2 -2
  144. package/dist/react/index.d.mts +3 -3
  145. package/dist/react/index.d.ts +3 -3
  146. package/dist/react/index.js +22 -22
  147. package/dist/react/index.mjs +9 -9
  148. package/dist/react/{params-5jUgYeHh.d.mts → params-B5l9vHfZ.d.ts} +35 -1
  149. package/dist/react/{params-g4jEwMY7.d.ts → params-BVglT8vT.d.mts} +35 -1
  150. package/dist/react/{plan-CqxFGNk2.d.mts → plan-DSTBzzTY.d.mts} +13 -0
  151. package/dist/react/{plan-CqxFGNk2.d.ts → plan-DSTBzzTY.d.ts} +13 -0
  152. package/dist/sdk/index.d.mts +179 -1
  153. package/dist/sdk/index.d.ts +179 -1
  154. package/dist/sdk/index.js +196 -4
  155. package/dist/sdk/index.mjs +179 -5
  156. package/package.json +1 -1
  157. package/dist/better-auth/createAutumnEndpoint-D9Plymvy.d.mts +0 -309
  158. package/dist/better-auth/createAutumnEndpoint-D9Plymvy.d.ts +0 -309
  159. package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-S5HPMJ4U.mjs} +3 -3
@@ -574,6 +574,9 @@ var listPlansItemDisplaySchema = import_v46.z.object({
574
574
  primaryText: import_v46.z.string(),
575
575
  secondaryText: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional()
576
576
  });
577
+ var listPlansConfigSchema = import_v46.z.object({
578
+ ignorePastDue: import_v46.z.boolean()
579
+ });
577
580
  var listPlansParamsOutboundSchema = import_v46.z.object({
578
581
  customer_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
579
582
  entity_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
@@ -662,6 +665,7 @@ var listPlansListSchema = import_v46.z.object({
662
665
  env: listPlansEnvSchema,
663
666
  archived: import_v46.z.boolean(),
664
667
  baseVariantId: import_v46.z.string().nullable(),
668
+ config: listPlansConfigSchema,
665
669
  customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
666
670
  });
667
671
  var listPlansResponseSchema = import_v46.z.object({
@@ -1668,6 +1672,10 @@ var previewUpdateInvoiceModeSchema = import_v411.z.object({
1668
1672
  enablePlanImmediately: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
1669
1673
  finalize: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
1670
1674
  });
1675
+ var previewUpdateAttachDiscountSchema = import_v411.z.object({
1676
+ rewardId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
1677
+ promotionCode: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
1678
+ });
1671
1679
  var previewUpdateRecalculateBalancesSchema = import_v411.z.object({
1672
1680
  enabled: import_v411.z.boolean()
1673
1681
  });
@@ -1802,6 +1810,10 @@ var previewUpdateInvoiceModeOutboundSchema = import_v411.z.object({
1802
1810
  enable_plan_immediately: import_v411.z.boolean(),
1803
1811
  finalize: import_v411.z.boolean()
1804
1812
  });
1813
+ var previewUpdateAttachDiscountOutboundSchema = import_v411.z.object({
1814
+ reward_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
1815
+ promotion_code: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
1816
+ });
1805
1817
  var previewUpdateRecalculateBalancesOutboundSchema = import_v411.z.object({
1806
1818
  enabled: import_v411.z.boolean()
1807
1819
  });
@@ -1819,6 +1831,7 @@ var previewUpdateParamsOutboundSchema = import_v411.z.object({
1819
1831
  proration_behavior: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
1820
1832
  redirect_mode: import_v411.z.string(),
1821
1833
  subscription_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
1834
+ discounts: import_v411.z.union([import_v411.z.array(previewUpdateAttachDiscountOutboundSchema), import_v411.z.undefined()]).optional(),
1822
1835
  cancel_action: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
1823
1836
  billing_cycle_anchor: import_v411.z.union([import_v411.z.literal("now"), import_v411.z.undefined()]).optional(),
1824
1837
  no_billing_changes: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
@@ -1898,6 +1911,7 @@ var previewUpdateParamsSchema = import_v411.z.object({
1898
1911
  prorationBehavior: import_v411.z.union([previewUpdateProrationBehaviorSchema, import_v411.z.undefined()]).optional(),
1899
1912
  redirectMode: import_v411.z.union([previewUpdateRedirectModeSchema, import_v411.z.undefined()]).optional(),
1900
1913
  subscriptionId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
1914
+ discounts: import_v411.z.union([import_v411.z.array(previewUpdateAttachDiscountSchema), import_v411.z.undefined()]).optional(),
1901
1915
  cancelAction: import_v411.z.union([previewUpdateCancelActionSchema, import_v411.z.undefined()]).optional(),
1902
1916
  billingCycleAnchor: import_v411.z.union([import_v411.z.literal("now"), import_v411.z.undefined()]).optional(),
1903
1917
  noBillingChanges: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
@@ -2185,6 +2199,10 @@ var billingUpdateInvoiceModeSchema = import_v414.z.object({
2185
2199
  enablePlanImmediately: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
2186
2200
  finalize: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
2187
2201
  });
2202
+ var billingUpdateAttachDiscountSchema = import_v414.z.object({
2203
+ rewardId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
2204
+ promotionCode: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
2205
+ });
2188
2206
  var billingUpdateRecalculateBalancesSchema = import_v414.z.object({
2189
2207
  enabled: import_v414.z.boolean()
2190
2208
  });
@@ -2259,6 +2277,10 @@ var billingUpdateInvoiceModeOutboundSchema = import_v414.z.object({
2259
2277
  enable_plan_immediately: import_v414.z.boolean(),
2260
2278
  finalize: import_v414.z.boolean()
2261
2279
  });
2280
+ var billingUpdateAttachDiscountOutboundSchema = import_v414.z.object({
2281
+ reward_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
2282
+ promotion_code: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
2283
+ });
2262
2284
  var billingUpdateRecalculateBalancesOutboundSchema = import_v414.z.object({
2263
2285
  enabled: import_v414.z.boolean()
2264
2286
  });
@@ -2273,6 +2295,7 @@ var updateSubscriptionParamsOutboundSchema = import_v414.z.object({
2273
2295
  proration_behavior: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
2274
2296
  redirect_mode: import_v414.z.string(),
2275
2297
  subscription_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
2298
+ discounts: import_v414.z.union([import_v414.z.array(billingUpdateAttachDiscountOutboundSchema), import_v414.z.undefined()]).optional(),
2276
2299
  cancel_action: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
2277
2300
  billing_cycle_anchor: import_v414.z.union([import_v414.z.literal("now"), import_v414.z.undefined()]).optional(),
2278
2301
  no_billing_changes: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
@@ -2351,6 +2374,7 @@ var updateSubscriptionParamsSchema = import_v414.z.object({
2351
2374
  prorationBehavior: import_v414.z.union([billingUpdateProrationBehaviorSchema, import_v414.z.undefined()]).optional(),
2352
2375
  redirectMode: import_v414.z.union([billingUpdateRedirectModeSchema, import_v414.z.undefined()]).optional(),
2353
2376
  subscriptionId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
2377
+ discounts: import_v414.z.union([import_v414.z.array(billingUpdateAttachDiscountSchema), import_v414.z.undefined()]).optional(),
2354
2378
  cancelAction: import_v414.z.union([billingUpdateCancelActionSchema, import_v414.z.undefined()]).optional(),
2355
2379
  billingCycleAnchor: import_v414.z.union([import_v414.z.literal("now"), import_v414.z.undefined()]).optional(),
2356
2380
  noBillingChanges: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
@@ -4752,6 +4776,18 @@ var BillingUpdateInvoiceMode$outboundSchema = z28.pipe(
4752
4776
  );
4753
4777
  var BillingUpdateProrationBehavior$outboundSchema = z28.enum(BillingUpdateProrationBehavior);
4754
4778
  var BillingUpdateRedirectMode$outboundSchema = z28.enum(BillingUpdateRedirectMode);
4779
+ var BillingUpdateAttachDiscount$outboundSchema = z28.pipe(
4780
+ z28.object({
4781
+ rewardId: z28.optional(z28.string()),
4782
+ promotionCode: z28.optional(z28.string())
4783
+ }),
4784
+ z28.transform((v) => {
4785
+ return remap(v, {
4786
+ rewardId: "reward_id",
4787
+ promotionCode: "promotion_code"
4788
+ });
4789
+ })
4790
+ );
4755
4791
  var BillingUpdateCancelAction$outboundSchema = z28.enum(BillingUpdateCancelAction);
4756
4792
  var BillingUpdateRecalculateBalances$outboundSchema = z28.object({
4757
4793
  enabled: z28.boolean()
@@ -4777,6 +4813,9 @@ var UpdateSubscriptionParams$outboundSchema = z28.pipe(
4777
4813
  "if_required"
4778
4814
  ),
4779
4815
  subscriptionId: z28.optional(z28.string()),
4816
+ discounts: z28.optional(
4817
+ z28.array(z28.lazy(() => BillingUpdateAttachDiscount$outboundSchema))
4818
+ ),
4780
4819
  cancelAction: z28.optional(BillingUpdateCancelAction$outboundSchema),
4781
4820
  billingCycleAnchor: z28.optional(z28.literal("now")),
4782
4821
  noBillingChanges: z28.optional(z28.boolean()),
@@ -5640,6 +5679,16 @@ var FreeTrial$inboundSchema = z32.pipe(
5640
5679
  })
5641
5680
  );
5642
5681
  var PlanEnv$inboundSchema = inboundSchema(PlanEnv);
5682
+ var PlanConfig$inboundSchema = z32.pipe(
5683
+ z32.object({
5684
+ ignore_past_due: z32._default(boolean2(), false)
5685
+ }),
5686
+ z32.transform((v) => {
5687
+ return remap(v, {
5688
+ "ignore_past_due": "ignorePastDue"
5689
+ });
5690
+ })
5691
+ );
5643
5692
  var PlanStatus$inboundSchema = inboundSchema(PlanStatus);
5644
5693
  var AttachAction$inboundSchema = inboundSchema(AttachAction);
5645
5694
  var CustomerEligibility$inboundSchema = z32.pipe(
@@ -5673,6 +5722,7 @@ var Plan$inboundSchema = z32.pipe(
5673
5722
  env: PlanEnv$inboundSchema,
5674
5723
  archived: boolean2(),
5675
5724
  base_variant_id: nullable(string4()),
5725
+ config: z32.lazy(() => PlanConfig$inboundSchema),
5676
5726
  customer_eligibility: optional2(z32.lazy(
5677
5727
  () => CustomerEligibility$inboundSchema
5678
5728
  ))
@@ -6353,6 +6403,16 @@ var FreeTrialRequest$outboundSchema = z35.pipe(
6353
6403
  });
6354
6404
  })
6355
6405
  );
6406
+ var CreatePlanConfigRequest$outboundSchema = z35.pipe(
6407
+ z35.object({
6408
+ ignorePastDue: z35._default(z35.boolean(), false)
6409
+ }),
6410
+ z35.transform((v) => {
6411
+ return remap(v, {
6412
+ ignorePastDue: "ignore_past_due"
6413
+ });
6414
+ })
6415
+ );
6356
6416
  var CreatePlanParams$outboundSchema = z35.pipe(
6357
6417
  z35.object({
6358
6418
  planId: z35.string(),
@@ -6363,7 +6423,8 @@ var CreatePlanParams$outboundSchema = z35.pipe(
6363
6423
  autoEnable: z35._default(z35.boolean(), false),
6364
6424
  price: z35.optional(z35.lazy(() => CreatePlanPriceRequest$outboundSchema)),
6365
6425
  items: z35.optional(z35.array(z35.lazy(() => CreatePlanPlanItem$outboundSchema))),
6366
- freeTrial: z35.optional(z35.lazy(() => FreeTrialRequest$outboundSchema))
6426
+ freeTrial: z35.optional(z35.lazy(() => FreeTrialRequest$outboundSchema)),
6427
+ config: z35.optional(z35.lazy(() => CreatePlanConfigRequest$outboundSchema))
6367
6428
  }),
6368
6429
  z35.transform((v) => {
6369
6430
  return remap(v, {
@@ -6537,6 +6598,16 @@ var CreatePlanFreeTrialResponse$inboundSchema = z35.pipe(
6537
6598
  })
6538
6599
  );
6539
6600
  var CreatePlanEnv$inboundSchema = inboundSchema(CreatePlanEnv);
6601
+ var CreatePlanConfigResponse$inboundSchema = z35.pipe(
6602
+ z35.object({
6603
+ ignore_past_due: z35._default(boolean2(), false)
6604
+ }),
6605
+ z35.transform((v) => {
6606
+ return remap(v, {
6607
+ "ignore_past_due": "ignorePastDue"
6608
+ });
6609
+ })
6610
+ );
6540
6611
  var CreatePlanStatus$inboundSchema = inboundSchema(CreatePlanStatus);
6541
6612
  var CreatePlanAttachAction$inboundSchema = inboundSchema(CreatePlanAttachAction);
6542
6613
  var CreatePlanCustomerEligibility$inboundSchema = z35.pipe(
@@ -6572,6 +6643,7 @@ var CreatePlanResponse$inboundSchema = z35.pipe(
6572
6643
  env: CreatePlanEnv$inboundSchema,
6573
6644
  archived: boolean2(),
6574
6645
  base_variant_id: nullable(string4()),
6646
+ config: z35.lazy(() => CreatePlanConfigResponse$inboundSchema),
6575
6647
  customer_eligibility: optional2(
6576
6648
  z35.lazy(() => CreatePlanCustomerEligibility$inboundSchema)
6577
6649
  )
@@ -7824,6 +7896,16 @@ var GetPlanFreeTrial$inboundSchema = z47.pipe(
7824
7896
  })
7825
7897
  );
7826
7898
  var GetPlanEnv$inboundSchema = inboundSchema(GetPlanEnv);
7899
+ var GetPlanConfig$inboundSchema = z47.pipe(
7900
+ z47.object({
7901
+ ignore_past_due: z47._default(boolean2(), false)
7902
+ }),
7903
+ z47.transform((v) => {
7904
+ return remap(v, {
7905
+ "ignore_past_due": "ignorePastDue"
7906
+ });
7907
+ })
7908
+ );
7827
7909
  var GetPlanStatus$inboundSchema = inboundSchema(GetPlanStatus);
7828
7910
  var GetPlanAttachAction$inboundSchema = inboundSchema(GetPlanAttachAction);
7829
7911
  var GetPlanCustomerEligibility$inboundSchema = z47.pipe(
@@ -7857,6 +7939,7 @@ var GetPlanResponse$inboundSchema = z47.pipe(
7857
7939
  env: GetPlanEnv$inboundSchema,
7858
7940
  archived: boolean2(),
7859
7941
  base_variant_id: nullable(string4()),
7942
+ config: z47.lazy(() => GetPlanConfig$inboundSchema),
7860
7943
  customer_eligibility: optional2(
7861
7944
  z47.lazy(() => GetPlanCustomerEligibility$inboundSchema)
7862
7945
  )
@@ -8567,6 +8650,16 @@ var ListPlansFreeTrial$inboundSchema = z51.pipe(
8567
8650
  })
8568
8651
  );
8569
8652
  var ListPlansEnv$inboundSchema = inboundSchema(ListPlansEnv);
8653
+ var ListPlansConfig$inboundSchema = z51.pipe(
8654
+ z51.object({
8655
+ ignore_past_due: z51._default(boolean2(), false)
8656
+ }),
8657
+ z51.transform((v) => {
8658
+ return remap(v, {
8659
+ "ignore_past_due": "ignorePastDue"
8660
+ });
8661
+ })
8662
+ );
8570
8663
  var ListPlansStatus$inboundSchema = inboundSchema(ListPlansStatus);
8571
8664
  var ListPlansAttachAction$inboundSchema = inboundSchema(ListPlansAttachAction);
8572
8665
  var ListPlansCustomerEligibility$inboundSchema = z51.pipe(
@@ -8600,6 +8693,7 @@ var ListPlansList$inboundSchema = z51.pipe(
8600
8693
  env: ListPlansEnv$inboundSchema,
8601
8694
  archived: boolean2(),
8602
8695
  base_variant_id: nullable(string4()),
8696
+ config: z51.lazy(() => ListPlansConfig$inboundSchema),
8603
8697
  customer_eligibility: optional2(
8604
8698
  z51.lazy(() => ListPlansCustomerEligibility$inboundSchema)
8605
8699
  )
@@ -10488,6 +10582,18 @@ var PreviewUpdateInvoiceMode$outboundSchema = z56.pipe(
10488
10582
  );
10489
10583
  var PreviewUpdateProrationBehavior$outboundSchema = z56.enum(PreviewUpdateProrationBehavior);
10490
10584
  var PreviewUpdateRedirectMode$outboundSchema = z56.enum(PreviewUpdateRedirectMode);
10585
+ var PreviewUpdateAttachDiscount$outboundSchema = z56.pipe(
10586
+ z56.object({
10587
+ rewardId: z56.optional(z56.string()),
10588
+ promotionCode: z56.optional(z56.string())
10589
+ }),
10590
+ z56.transform((v) => {
10591
+ return remap(v, {
10592
+ rewardId: "reward_id",
10593
+ promotionCode: "promotion_code"
10594
+ });
10595
+ })
10596
+ );
10491
10597
  var PreviewUpdateCancelAction$outboundSchema = z56.enum(PreviewUpdateCancelAction);
10492
10598
  var PreviewUpdateRecalculateBalances$outboundSchema = z56.object({
10493
10599
  enabled: z56.boolean()
@@ -10513,6 +10619,9 @@ var PreviewUpdateParams$outboundSchema = z56.pipe(
10513
10619
  "if_required"
10514
10620
  ),
10515
10621
  subscriptionId: z56.optional(z56.string()),
10622
+ discounts: z56.optional(
10623
+ z56.array(z56.lazy(() => PreviewUpdateAttachDiscount$outboundSchema))
10624
+ ),
10516
10625
  cancelAction: z56.optional(PreviewUpdateCancelAction$outboundSchema),
10517
10626
  billingCycleAnchor: z56.optional(z56.literal("now")),
10518
10627
  noBillingChanges: z56.optional(z56.boolean()),
@@ -12279,6 +12388,16 @@ var UpdatePlanFreeTrialParams$outboundSchema = z64.pipe(
12279
12388
  });
12280
12389
  })
12281
12390
  );
12391
+ var UpdatePlanConfigRequest$outboundSchema = z64.pipe(
12392
+ z64.object({
12393
+ ignorePastDue: z64._default(z64.boolean(), false)
12394
+ }),
12395
+ z64.transform((v) => {
12396
+ return remap(v, {
12397
+ ignorePastDue: "ignore_past_due"
12398
+ });
12399
+ })
12400
+ );
12282
12401
  var UpdatePlanParams$outboundSchema = z64.pipe(
12283
12402
  z64.object({
12284
12403
  planId: z64.string(),
@@ -12294,6 +12413,7 @@ var UpdatePlanParams$outboundSchema = z64.pipe(
12294
12413
  freeTrial: z64.optional(
12295
12414
  z64.nullable(z64.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
12296
12415
  ),
12416
+ config: z64.optional(z64.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
12297
12417
  version: z64.optional(z64.number()),
12298
12418
  archived: z64._default(z64.boolean(), false),
12299
12419
  newPlanId: z64.optional(z64.string())
@@ -12471,6 +12591,16 @@ var UpdatePlanFreeTrial$inboundSchema = z64.pipe(
12471
12591
  })
12472
12592
  );
12473
12593
  var UpdatePlanEnv$inboundSchema = inboundSchema(UpdatePlanEnv);
12594
+ var UpdatePlanConfigResponse$inboundSchema = z64.pipe(
12595
+ z64.object({
12596
+ ignore_past_due: z64._default(boolean2(), false)
12597
+ }),
12598
+ z64.transform((v) => {
12599
+ return remap(v, {
12600
+ "ignore_past_due": "ignorePastDue"
12601
+ });
12602
+ })
12603
+ );
12474
12604
  var UpdatePlanStatus$inboundSchema = inboundSchema(UpdatePlanStatus);
12475
12605
  var UpdatePlanAttachAction$inboundSchema = inboundSchema(UpdatePlanAttachAction);
12476
12606
  var UpdatePlanCustomerEligibility$inboundSchema = z64.pipe(
@@ -12504,6 +12634,7 @@ var UpdatePlanResponse$inboundSchema = z64.pipe(
12504
12634
  env: UpdatePlanEnv$inboundSchema,
12505
12635
  archived: boolean2(),
12506
12636
  base_variant_id: nullable(string4()),
12637
+ config: z64.lazy(() => UpdatePlanConfigResponse$inboundSchema),
12507
12638
  customer_eligibility: optional2(
12508
12639
  z64.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
12509
12640
  )
@@ -12762,10 +12893,14 @@ var FailOpenHook = class {
12762
12893
  fetcher: async (input, init) => {
12763
12894
  try {
12764
12895
  return init == null ? await fetch(input) : await fetch(input, init);
12765
- } catch {
12896
+ } catch (error) {
12897
+ console.log(error);
12898
+ console.log(
12899
+ `Network failed to reach Autumn: ${error}. Returning 555 Network Error.`
12900
+ );
12766
12901
  return new Response(null, {
12767
- status: 503,
12768
- statusText: "Autumn Unreachable"
12902
+ status: 555,
12903
+ statusText: "Network Error"
12769
12904
  });
12770
12905
  }
12771
12906
  }
@@ -14489,6 +14624,7 @@ var Billing = class extends ClientSDK {
14489
14624
  * @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
14490
14625
  * @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
14491
14626
  * @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
14627
+ * @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
14492
14628
  * @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
14493
14629
  * @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now' (optional)
14494
14630
  * @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
@@ -14524,6 +14660,7 @@ var Billing = class extends ClientSDK {
14524
14660
  * @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
14525
14661
  * @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
14526
14662
  * @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
14663
+ * @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
14527
14664
  * @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
14528
14665
  * @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now' (optional)
14529
14666
  * @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
@@ -16525,6 +16662,7 @@ var Plans = class extends ClientSDK {
16525
16662
  * @param price - Base recurring price for the plan. Omit for free or usage-only plans. (optional)
16526
16663
  * @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
16527
16664
  * @param freeTrial - Free trial configuration. Customers can try this plan before being charged. (optional)
16665
+ * @param config - Miscellaneous plan-level configuration flags. (optional)
16528
16666
  *
16529
16667
  * @returns The created plan object.
16530
16668
  */
@@ -16630,6 +16768,7 @@ var Plans = class extends ClientSDK {
16630
16768
  * @param price - The price of the plan. Set to null to remove the base price. (optional)
16631
16769
  * @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
16632
16770
  * @param freeTrial - The free trial of the plan. Set to null to remove the free trial. (optional)
16771
+ * @param config - Miscellaneous plan-level configuration flags. (optional)
16633
16772
  * @param newPlanId - The new ID to use for the plan. Can only be updated if the plan has not been used by any customers. (optional)
16634
16773
  *
16635
16774
  * @returns The updated plan object.
@@ -1,14 +1,14 @@
1
1
  import "../chunk-HIWOK3G6.mjs";
2
2
  import {
3
3
  createAutumnEndpoint
4
- } from "../chunk-3GVPOBXE.mjs";
4
+ } from "../chunk-4OWECHZC.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "../chunk-XH3WDFWS.mjs";
7
+ } from "../chunk-ZZGFPTHO.mjs";
8
8
  import {
9
9
  resolveIdentityFromScope
10
10
  } from "../chunk-J2WYVGHS.mjs";
11
- import "../chunk-WEDJRTA3.mjs";
11
+ import "../chunk-JIFD4TSN.mjs";
12
12
  import {
13
13
  getActiveOrganization
14
14
  } from "../chunk-BT3EAYVW.mjs";
@@ -1,8 +1,8 @@
1
1
  import * as react from 'react';
2
2
  import { IAutumnClient } from './client/IAutumnClient.mjs';
3
- import './params-5jUgYeHh.mjs';
4
- import './plan-CqxFGNk2.mjs';
5
- import './customer-BYYt9N1h.mjs';
3
+ import './params-BVglT8vT.mjs';
4
+ import './plan-DSTBzzTY.mjs';
5
+ import './customer-DB8vL_m7.mjs';
6
6
 
7
7
  type AutumnContextValue = {
8
8
  client: IAutumnClient;
@@ -1,8 +1,8 @@
1
1
  import * as react from 'react';
2
2
  import { IAutumnClient } from './client/IAutumnClient.js';
3
- import './params-g4jEwMY7.js';
4
- import './plan-CqxFGNk2.js';
5
- import './customer-CbcVyRCQ.js';
3
+ import './params-B5l9vHfZ.js';
4
+ import './plan-DSTBzzTY.js';
5
+ import './customer-CaGJEN5J.js';
6
6
 
7
7
  type AutumnContextValue = {
8
8
  client: IAutumnClient;
@@ -36,7 +36,7 @@ __export(AutumnProvider_exports, {
36
36
  });
37
37
  module.exports = __toCommonJS(AutumnProvider_exports);
38
38
 
39
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/subscribable.js
39
+ // ../../node_modules/@tanstack/query-core/build/modern/subscribable.js
40
40
  var Subscribable = class {
41
41
  constructor() {
42
42
  this.listeners = /* @__PURE__ */ new Set();
@@ -59,7 +59,7 @@ var Subscribable = class {
59
59
  }
60
60
  };
61
61
 
62
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/utils.js
62
+ // ../../node_modules/@tanstack/query-core/build/modern/utils.js
63
63
  var isServer = typeof window === "undefined" || "Deno" in globalThis;
64
64
  function noop() {
65
65
  }
@@ -267,7 +267,7 @@ function ensureQueryFn(options, fetchOptions) {
267
267
  return options.queryFn;
268
268
  }
269
269
 
270
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/focusManager.js
270
+ // ../../node_modules/@tanstack/query-core/build/modern/focusManager.js
271
271
  var FocusManager = class extends Subscribable {
272
272
  #focused;
273
273
  #cleanup;
@@ -329,7 +329,7 @@ var FocusManager = class extends Subscribable {
329
329
  };
330
330
  var focusManager = new FocusManager();
331
331
 
332
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/onlineManager.js
332
+ // ../../node_modules/@tanstack/query-core/build/modern/onlineManager.js
333
333
  var OnlineManager = class extends Subscribable {
334
334
  #online = true;
335
335
  #cleanup;
@@ -381,7 +381,7 @@ var OnlineManager = class extends Subscribable {
381
381
  };
382
382
  var onlineManager = new OnlineManager();
383
383
 
384
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/thenable.js
384
+ // ../../node_modules/@tanstack/query-core/build/modern/thenable.js
385
385
  function pendingThenable() {
386
386
  let resolve;
387
387
  let reject;
@@ -414,7 +414,7 @@ function pendingThenable() {
414
414
  return thenable;
415
415
  }
416
416
 
417
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/retryer.js
417
+ // ../../node_modules/@tanstack/query-core/build/modern/retryer.js
418
418
  function defaultRetryDelay(failureCount) {
419
419
  return Math.min(1e3 * 2 ** failureCount, 3e4);
420
420
  }
@@ -534,7 +534,7 @@ function createRetryer(config) {
534
534
  };
535
535
  }
536
536
 
537
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/notifyManager.js
537
+ // ../../node_modules/@tanstack/query-core/build/modern/notifyManager.js
538
538
  var defaultScheduler = (cb) => setTimeout(cb, 0);
539
539
  function createNotifyManager() {
540
540
  let queue = [];
@@ -614,7 +614,7 @@ function createNotifyManager() {
614
614
  }
615
615
  var notifyManager = createNotifyManager();
616
616
 
617
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/removable.js
617
+ // ../../node_modules/@tanstack/query-core/build/modern/removable.js
618
618
  var Removable = class {
619
619
  #gcTimeout;
620
620
  destroy() {
@@ -642,7 +642,7 @@ var Removable = class {
642
642
  }
643
643
  };
644
644
 
645
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/query.js
645
+ // ../../node_modules/@tanstack/query-core/build/modern/query.js
646
646
  var Query = class extends Removable {
647
647
  #initialState;
648
648
  #revertState;
@@ -1043,7 +1043,7 @@ function getDefaultState(options) {
1043
1043
  };
1044
1044
  }
1045
1045
 
1046
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryCache.js
1046
+ // ../../node_modules/@tanstack/query-core/build/modern/queryCache.js
1047
1047
  var QueryCache = class extends Subscribable {
1048
1048
  constructor(config = {}) {
1049
1049
  super();
@@ -1133,7 +1133,7 @@ var QueryCache = class extends Subscribable {
1133
1133
  }
1134
1134
  };
1135
1135
 
1136
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/mutation.js
1136
+ // ../../node_modules/@tanstack/query-core/build/modern/mutation.js
1137
1137
  var Mutation = class extends Removable {
1138
1138
  #observers;
1139
1139
  #mutationCache;
@@ -1364,7 +1364,7 @@ function getDefaultState2() {
1364
1364
  };
1365
1365
  }
1366
1366
 
1367
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/mutationCache.js
1367
+ // ../../node_modules/@tanstack/query-core/build/modern/mutationCache.js
1368
1368
  var MutationCache = class extends Subscribable {
1369
1369
  constructor(config = {}) {
1370
1370
  super();
@@ -1480,7 +1480,7 @@ function scopeFor(mutation) {
1480
1480
  return mutation.options.scope?.id;
1481
1481
  }
1482
1482
 
1483
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
1483
+ // ../../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
1484
1484
  function infiniteQueryBehavior(pages) {
1485
1485
  return {
1486
1486
  onFetch: (context, query) => {
@@ -1589,7 +1589,7 @@ function getPreviousPageParam(options, { pages, pageParams }) {
1589
1589
  return pages.length > 0 ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) : void 0;
1590
1590
  }
1591
1591
 
1592
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryClient.js
1592
+ // ../../node_modules/@tanstack/query-core/build/modern/queryClient.js
1593
1593
  var QueryClient = class {
1594
1594
  #queryCache;
1595
1595
  #mutationCache;
@@ -1876,7 +1876,7 @@ var QueryClient = class {
1876
1876
  }
1877
1877
  };
1878
1878
 
1879
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
1879
+ // ../../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
1880
1880
  var React = __toESM(require("react"), 1);
1881
1881
  var import_jsx_runtime = require("react/jsx-runtime");
1882
1882
  var QueryClientContext = React.createContext(
@@ -2,11 +2,11 @@
2
2
  "use client";
3
3
  import {
4
4
  AutumnProvider
5
- } from "./chunk-26CKSAPZ.mjs";
5
+ } from "./chunk-7IDH4OMG.mjs";
6
6
  import "./chunk-QOFGTXEX.mjs";
7
7
  import "./chunk-SCDO26YC.mjs";
8
8
  import "./chunk-IC3QHWR6.mjs";
9
- import "./chunk-XJZH5NMZ.mjs";
9
+ import "./chunk-E5ZHOMZ4.mjs";
10
10
  import "./chunk-SOA7GEAN.mjs";
11
11
  export {
12
12
  AutumnProvider
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  QueryClient,
7
7
  QueryClientProvider
8
- } from "./chunk-XJZH5NMZ.mjs";
8
+ } from "./chunk-E5ZHOMZ4.mjs";
9
9
  import {
10
10
  AutumnContext
11
11
  } from "./chunk-SOA7GEAN.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useQuery
4
- } from "./chunk-XJZH5NMZ.mjs";
4
+ } from "./chunk-E5ZHOMZ4.mjs";
5
5
  import {
6
6
  useAutumnClient
7
7
  } from "./chunk-SOA7GEAN.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-BWKG32GC.mjs";
5
5
  import {
6
6
  useQueryClient
7
- } from "./chunk-XJZH5NMZ.mjs";
7
+ } from "./chunk-E5ZHOMZ4.mjs";
8
8
 
9
9
  // src/react/hooks/internal/useCustomerActions.ts
10
10
  import { useCallback } from "react";