autumn-js 1.2.12 → 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 +91 -4
  2. package/dist/backend/adapters/express.mjs +6 -6
  3. package/dist/backend/adapters/fetch.js +91 -4
  4. package/dist/backend/adapters/fetch.mjs +6 -6
  5. package/dist/backend/adapters/hono.js +91 -4
  6. package/dist/backend/adapters/hono.mjs +6 -6
  7. package/dist/backend/adapters/index.js +91 -4
  8. package/dist/backend/adapters/index.mjs +9 -9
  9. package/dist/backend/adapters/next.js +91 -4
  10. package/dist/backend/adapters/next.mjs +6 -6
  11. package/dist/backend/{chunk-JQX5WYYY.mjs → chunk-7BVATYGA.mjs} +1 -1
  12. package/dist/backend/{chunk-7Q77N2K2.mjs → chunk-DNNJOZAT.mjs} +1 -1
  13. package/dist/backend/{chunk-N53PKNZ6.mjs → chunk-EJGHP7KT.mjs} +2 -2
  14. package/dist/backend/{chunk-X4LPDDOP.mjs → chunk-MANTLPDT.mjs} +4 -0
  15. package/dist/backend/{chunk-4Q54RXI2.mjs → chunk-OUDB34Y7.mjs} +1 -1
  16. package/dist/backend/{chunk-SE5CK5NY.mjs → chunk-RPH5L44S.mjs} +1 -1
  17. package/dist/backend/{chunk-UEYDU64U.mjs → chunk-T42RZEUZ.mjs} +87 -4
  18. package/dist/backend/{chunk-ITXMMCSD.mjs → chunk-YSQQKZBU.mjs} +2 -2
  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 +91 -4
  22. package/dist/backend/core/handlers/coreHandler.mjs +4 -4
  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 +1 -1
  26. package/dist/backend/core/handlers/handleRouteByName.js +91 -4
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +4 -4
  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 +91 -4
  31. package/dist/backend/core/handlers/index.mjs +5 -5
  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 +91 -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 +4 -0
  39. package/dist/backend/core/routes/index.mjs +2 -2
  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 +4 -0
  45. package/dist/backend/core/routes/routeConfigs.mjs +2 -2
  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/core/utils/index.mjs +3 -3
  53. package/dist/backend/index.d.mts +2 -2
  54. package/dist/backend/index.d.ts +2 -2
  55. package/dist/backend/index.js +91 -4
  56. package/dist/backend/index.mjs +7 -7
  57. package/dist/backend/{routeTypes-D0ag5-Tb.d.ts → routeTypes-B94_Mq2J.d.ts} +93 -0
  58. package/dist/backend/{routeTypes-Cu-XQy7A.d.mts → routeTypes-DVwngaBn.d.mts} +93 -0
  59. package/dist/better-auth/{chunk-TEP6CVHR.mjs → chunk-4OWECHZC.mjs} +1 -1
  60. package/dist/better-auth/{chunk-GKUK5UGW.mjs → chunk-JIFD4TSN.mjs} +4 -0
  61. package/dist/better-auth/{chunk-XFATOIZD.mjs → chunk-ZZGFPTHO.mjs} +88 -5
  62. package/dist/better-auth/client.d.mts +3 -7
  63. package/dist/better-auth/client.d.ts +3 -7
  64. package/dist/better-auth/createAutumnEndpoint-CvXRCg-M.d.mts +43 -0
  65. package/dist/better-auth/createAutumnEndpoint-CvXRCg-M.d.ts +43 -0
  66. package/dist/better-auth/index.d.mts +3 -7
  67. package/dist/better-auth/index.d.ts +3 -7
  68. package/dist/better-auth/index.js +91 -4
  69. package/dist/better-auth/index.mjs +3 -3
  70. package/dist/better-auth/utils/createAutumnEndpoint.d.mts +3 -7
  71. package/dist/better-auth/utils/createAutumnEndpoint.d.ts +3 -7
  72. package/dist/better-auth/utils/createAutumnEndpoint.js +4 -0
  73. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  74. package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +3 -7
  75. package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +3 -7
  76. package/dist/better-auth/utils/handleBetterAuthRoute.js +91 -4
  77. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  78. package/dist/better-auth/utils/index.d.mts +3 -8
  79. package/dist/better-auth/utils/index.d.ts +3 -8
  80. package/dist/better-auth/utils/index.js +91 -4
  81. package/dist/better-auth/utils/index.mjs +3 -3
  82. package/dist/react/AutumnContext.d.mts +3 -3
  83. package/dist/react/AutumnContext.d.ts +3 -3
  84. package/dist/react/AutumnProvider.js +15 -15
  85. package/dist/react/AutumnProvider.mjs +2 -2
  86. package/dist/react/{chunk-26CKSAPZ.mjs → chunk-7IDH4OMG.mjs} +1 -1
  87. package/dist/react/{chunk-HSQUB3BZ.mjs → chunk-BDG6JHEW.mjs} +1 -1
  88. package/dist/react/{chunk-KB72KQKN.mjs → chunk-DEZBJQEG.mjs} +1 -1
  89. package/dist/react/{chunk-XJZH5NMZ.mjs → chunk-E5ZHOMZ4.mjs} +23 -23
  90. package/dist/react/{chunk-OXQG65ZT.mjs → chunk-FWWIAOPU.mjs} +1 -1
  91. package/dist/react/{chunk-ZGPE4R6H.mjs → chunk-HVBDZARN.mjs} +2 -2
  92. package/dist/react/{chunk-MC2YYATT.mjs → chunk-J6SLKTKE.mjs} +1 -1
  93. package/dist/react/{chunk-CHU7CIWP.mjs → chunk-NSFHAUTD.mjs} +1 -1
  94. package/dist/react/{chunk-G7FTQLT7.mjs → chunk-YQFYWH7J.mjs} +1 -1
  95. package/dist/react/client/AutumnClient.d.mts +3 -3
  96. package/dist/react/client/AutumnClient.d.ts +3 -3
  97. package/dist/react/client/IAutumnClient.d.mts +16 -3
  98. package/dist/react/client/IAutumnClient.d.ts +16 -3
  99. package/dist/react/client/index.d.mts +3 -3
  100. package/dist/react/client/index.d.ts +3 -3
  101. package/dist/react/{customer-CbcVyRCQ.d.ts → customer-CaGJEN5J.d.ts} +1 -1
  102. package/dist/react/{customer-BYYt9N1h.d.mts → customer-DB8vL_m7.d.mts} +1 -1
  103. package/dist/react/hooks/index.d.mts +3 -3
  104. package/dist/react/hooks/index.d.ts +3 -3
  105. package/dist/react/hooks/index.js +16 -16
  106. package/dist/react/hooks/index.mjs +8 -8
  107. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  108. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  109. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  110. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  111. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  112. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  113. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  114. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  115. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  116. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  117. package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
  118. package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
  119. package/dist/react/hooks/internal/useCustomerActions.js +1 -1
  120. package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
  121. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  122. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  123. package/dist/react/hooks/useAggregateEvents.js +16 -16
  124. package/dist/react/hooks/useAggregateEvents.mjs +2 -2
  125. package/dist/react/hooks/useCustomer.d.mts +3 -3
  126. package/dist/react/hooks/useCustomer.d.ts +3 -3
  127. package/dist/react/hooks/useCustomer.js +16 -16
  128. package/dist/react/hooks/useCustomer.mjs +3 -3
  129. package/dist/react/hooks/useEntity.d.mts +2 -2
  130. package/dist/react/hooks/useEntity.d.ts +2 -2
  131. package/dist/react/hooks/useEntity.js +16 -16
  132. package/dist/react/hooks/useEntity.mjs +2 -2
  133. package/dist/react/hooks/useListEvents.d.mts +2 -2
  134. package/dist/react/hooks/useListEvents.d.ts +2 -2
  135. package/dist/react/hooks/useListEvents.js +16 -16
  136. package/dist/react/hooks/useListEvents.mjs +2 -2
  137. package/dist/react/hooks/useListPlans.d.mts +2 -2
  138. package/dist/react/hooks/useListPlans.d.ts +2 -2
  139. package/dist/react/hooks/useListPlans.js +16 -16
  140. package/dist/react/hooks/useListPlans.mjs +2 -2
  141. package/dist/react/hooks/useReferrals.d.mts +2 -2
  142. package/dist/react/hooks/useReferrals.d.ts +2 -2
  143. package/dist/react/hooks/useReferrals.js +16 -16
  144. package/dist/react/hooks/useReferrals.mjs +2 -2
  145. package/dist/react/index.d.mts +3 -3
  146. package/dist/react/index.d.ts +3 -3
  147. package/dist/react/index.js +22 -22
  148. package/dist/react/index.mjs +9 -9
  149. package/dist/react/{params-By0MIRsJ.d.ts → params-B5l9vHfZ.d.ts} +1 -1
  150. package/dist/react/{params-CUb0ZlUG.d.mts → params-BVglT8vT.d.mts} +1 -1
  151. package/dist/react/{plan-CqxFGNk2.d.mts → plan-DSTBzzTY.d.mts} +13 -0
  152. package/dist/react/{plan-CqxFGNk2.d.ts → plan-DSTBzzTY.d.ts} +13 -0
  153. package/dist/sdk/index.d.mts +125 -1
  154. package/dist/sdk/index.d.ts +125 -1
  155. package/dist/sdk/index.js +146 -4
  156. package/dist/sdk/index.mjs +133 -5
  157. package/package.json +1 -1
  158. package/dist/better-auth/createAutumnEndpoint-D9Plymvy.d.mts +0 -309
  159. package/dist/better-auth/createAutumnEndpoint-D9Plymvy.d.ts +0 -309
@@ -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({
@@ -5675,6 +5679,16 @@ var FreeTrial$inboundSchema = z32.pipe(
5675
5679
  })
5676
5680
  );
5677
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
+ );
5678
5692
  var PlanStatus$inboundSchema = inboundSchema(PlanStatus);
5679
5693
  var AttachAction$inboundSchema = inboundSchema(AttachAction);
5680
5694
  var CustomerEligibility$inboundSchema = z32.pipe(
@@ -5708,6 +5722,7 @@ var Plan$inboundSchema = z32.pipe(
5708
5722
  env: PlanEnv$inboundSchema,
5709
5723
  archived: boolean2(),
5710
5724
  base_variant_id: nullable(string4()),
5725
+ config: z32.lazy(() => PlanConfig$inboundSchema),
5711
5726
  customer_eligibility: optional2(z32.lazy(
5712
5727
  () => CustomerEligibility$inboundSchema
5713
5728
  ))
@@ -6388,6 +6403,16 @@ var FreeTrialRequest$outboundSchema = z35.pipe(
6388
6403
  });
6389
6404
  })
6390
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
+ );
6391
6416
  var CreatePlanParams$outboundSchema = z35.pipe(
6392
6417
  z35.object({
6393
6418
  planId: z35.string(),
@@ -6398,7 +6423,8 @@ var CreatePlanParams$outboundSchema = z35.pipe(
6398
6423
  autoEnable: z35._default(z35.boolean(), false),
6399
6424
  price: z35.optional(z35.lazy(() => CreatePlanPriceRequest$outboundSchema)),
6400
6425
  items: z35.optional(z35.array(z35.lazy(() => CreatePlanPlanItem$outboundSchema))),
6401
- freeTrial: z35.optional(z35.lazy(() => FreeTrialRequest$outboundSchema))
6426
+ freeTrial: z35.optional(z35.lazy(() => FreeTrialRequest$outboundSchema)),
6427
+ config: z35.optional(z35.lazy(() => CreatePlanConfigRequest$outboundSchema))
6402
6428
  }),
6403
6429
  z35.transform((v) => {
6404
6430
  return remap(v, {
@@ -6572,6 +6598,16 @@ var CreatePlanFreeTrialResponse$inboundSchema = z35.pipe(
6572
6598
  })
6573
6599
  );
6574
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
+ );
6575
6611
  var CreatePlanStatus$inboundSchema = inboundSchema(CreatePlanStatus);
6576
6612
  var CreatePlanAttachAction$inboundSchema = inboundSchema(CreatePlanAttachAction);
6577
6613
  var CreatePlanCustomerEligibility$inboundSchema = z35.pipe(
@@ -6607,6 +6643,7 @@ var CreatePlanResponse$inboundSchema = z35.pipe(
6607
6643
  env: CreatePlanEnv$inboundSchema,
6608
6644
  archived: boolean2(),
6609
6645
  base_variant_id: nullable(string4()),
6646
+ config: z35.lazy(() => CreatePlanConfigResponse$inboundSchema),
6610
6647
  customer_eligibility: optional2(
6611
6648
  z35.lazy(() => CreatePlanCustomerEligibility$inboundSchema)
6612
6649
  )
@@ -7859,6 +7896,16 @@ var GetPlanFreeTrial$inboundSchema = z47.pipe(
7859
7896
  })
7860
7897
  );
7861
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
+ );
7862
7909
  var GetPlanStatus$inboundSchema = inboundSchema(GetPlanStatus);
7863
7910
  var GetPlanAttachAction$inboundSchema = inboundSchema(GetPlanAttachAction);
7864
7911
  var GetPlanCustomerEligibility$inboundSchema = z47.pipe(
@@ -7892,6 +7939,7 @@ var GetPlanResponse$inboundSchema = z47.pipe(
7892
7939
  env: GetPlanEnv$inboundSchema,
7893
7940
  archived: boolean2(),
7894
7941
  base_variant_id: nullable(string4()),
7942
+ config: z47.lazy(() => GetPlanConfig$inboundSchema),
7895
7943
  customer_eligibility: optional2(
7896
7944
  z47.lazy(() => GetPlanCustomerEligibility$inboundSchema)
7897
7945
  )
@@ -8602,6 +8650,16 @@ var ListPlansFreeTrial$inboundSchema = z51.pipe(
8602
8650
  })
8603
8651
  );
8604
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
+ );
8605
8663
  var ListPlansStatus$inboundSchema = inboundSchema(ListPlansStatus);
8606
8664
  var ListPlansAttachAction$inboundSchema = inboundSchema(ListPlansAttachAction);
8607
8665
  var ListPlansCustomerEligibility$inboundSchema = z51.pipe(
@@ -8635,6 +8693,7 @@ var ListPlansList$inboundSchema = z51.pipe(
8635
8693
  env: ListPlansEnv$inboundSchema,
8636
8694
  archived: boolean2(),
8637
8695
  base_variant_id: nullable(string4()),
8696
+ config: z51.lazy(() => ListPlansConfig$inboundSchema),
8638
8697
  customer_eligibility: optional2(
8639
8698
  z51.lazy(() => ListPlansCustomerEligibility$inboundSchema)
8640
8699
  )
@@ -12329,6 +12388,16 @@ var UpdatePlanFreeTrialParams$outboundSchema = z64.pipe(
12329
12388
  });
12330
12389
  })
12331
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
+ );
12332
12401
  var UpdatePlanParams$outboundSchema = z64.pipe(
12333
12402
  z64.object({
12334
12403
  planId: z64.string(),
@@ -12344,6 +12413,7 @@ var UpdatePlanParams$outboundSchema = z64.pipe(
12344
12413
  freeTrial: z64.optional(
12345
12414
  z64.nullable(z64.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
12346
12415
  ),
12416
+ config: z64.optional(z64.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
12347
12417
  version: z64.optional(z64.number()),
12348
12418
  archived: z64._default(z64.boolean(), false),
12349
12419
  newPlanId: z64.optional(z64.string())
@@ -12521,6 +12591,16 @@ var UpdatePlanFreeTrial$inboundSchema = z64.pipe(
12521
12591
  })
12522
12592
  );
12523
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
+ );
12524
12604
  var UpdatePlanStatus$inboundSchema = inboundSchema(UpdatePlanStatus);
12525
12605
  var UpdatePlanAttachAction$inboundSchema = inboundSchema(UpdatePlanAttachAction);
12526
12606
  var UpdatePlanCustomerEligibility$inboundSchema = z64.pipe(
@@ -12554,6 +12634,7 @@ var UpdatePlanResponse$inboundSchema = z64.pipe(
12554
12634
  env: UpdatePlanEnv$inboundSchema,
12555
12635
  archived: boolean2(),
12556
12636
  base_variant_id: nullable(string4()),
12637
+ config: z64.lazy(() => UpdatePlanConfigResponse$inboundSchema),
12557
12638
  customer_eligibility: optional2(
12558
12639
  z64.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
12559
12640
  )
@@ -12812,10 +12893,14 @@ var FailOpenHook = class {
12812
12893
  fetcher: async (input, init) => {
12813
12894
  try {
12814
12895
  return init == null ? await fetch(input) : await fetch(input, init);
12815
- } catch {
12896
+ } catch (error) {
12897
+ console.log(error);
12898
+ console.log(
12899
+ `Network failed to reach Autumn: ${error}. Returning 555 Network Error.`
12900
+ );
12816
12901
  return new Response(null, {
12817
- status: 503,
12818
- statusText: "Autumn Unreachable"
12902
+ status: 555,
12903
+ statusText: "Network Error"
12819
12904
  });
12820
12905
  }
12821
12906
  }
@@ -16577,6 +16662,7 @@ var Plans = class extends ClientSDK {
16577
16662
  * @param price - Base recurring price for the plan. Omit for free or usage-only plans. (optional)
16578
16663
  * @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
16579
16664
  * @param freeTrial - Free trial configuration. Customers can try this plan before being charged. (optional)
16665
+ * @param config - Miscellaneous plan-level configuration flags. (optional)
16580
16666
  *
16581
16667
  * @returns The created plan object.
16582
16668
  */
@@ -16682,6 +16768,7 @@ var Plans = class extends ClientSDK {
16682
16768
  * @param price - The price of the plan. Set to null to remove the base price. (optional)
16683
16769
  * @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
16684
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)
16685
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)
16686
16773
  *
16687
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-TEP6CVHR.mjs";
4
+ } from "../chunk-4OWECHZC.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "../chunk-XFATOIZD.mjs";
7
+ } from "../chunk-ZZGFPTHO.mjs";
8
8
  import {
9
9
  resolveIdentityFromScope
10
10
  } from "../chunk-J2WYVGHS.mjs";
11
- import "../chunk-GKUK5UGW.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-CUb0ZlUG.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-By0MIRsJ.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";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/utils.js
3
+ // ../../node_modules/@tanstack/query-core/build/modern/utils.js
4
4
  var isServer = typeof window === "undefined" || "Deno" in globalThis;
5
5
  function noop() {
6
6
  }
@@ -225,7 +225,7 @@ function shouldThrowError(throwOnError, params) {
225
225
  return !!throwOnError;
226
226
  }
227
227
 
228
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/notifyManager.js
228
+ // ../../node_modules/@tanstack/query-core/build/modern/notifyManager.js
229
229
  var defaultScheduler = (cb) => setTimeout(cb, 0);
230
230
  function createNotifyManager() {
231
231
  let queue = [];
@@ -305,7 +305,7 @@ function createNotifyManager() {
305
305
  }
306
306
  var notifyManager = createNotifyManager();
307
307
 
308
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/subscribable.js
308
+ // ../../node_modules/@tanstack/query-core/build/modern/subscribable.js
309
309
  var Subscribable = class {
310
310
  constructor() {
311
311
  this.listeners = /* @__PURE__ */ new Set();
@@ -328,7 +328,7 @@ var Subscribable = class {
328
328
  }
329
329
  };
330
330
 
331
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/focusManager.js
331
+ // ../../node_modules/@tanstack/query-core/build/modern/focusManager.js
332
332
  var FocusManager = class extends Subscribable {
333
333
  #focused;
334
334
  #cleanup;
@@ -390,7 +390,7 @@ var FocusManager = class extends Subscribable {
390
390
  };
391
391
  var focusManager = new FocusManager();
392
392
 
393
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/onlineManager.js
393
+ // ../../node_modules/@tanstack/query-core/build/modern/onlineManager.js
394
394
  var OnlineManager = class extends Subscribable {
395
395
  #online = true;
396
396
  #cleanup;
@@ -442,7 +442,7 @@ var OnlineManager = class extends Subscribable {
442
442
  };
443
443
  var onlineManager = new OnlineManager();
444
444
 
445
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/thenable.js
445
+ // ../../node_modules/@tanstack/query-core/build/modern/thenable.js
446
446
  function pendingThenable() {
447
447
  let resolve;
448
448
  let reject;
@@ -475,7 +475,7 @@ function pendingThenable() {
475
475
  return thenable;
476
476
  }
477
477
 
478
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/retryer.js
478
+ // ../../node_modules/@tanstack/query-core/build/modern/retryer.js
479
479
  function defaultRetryDelay(failureCount) {
480
480
  return Math.min(1e3 * 2 ** failureCount, 3e4);
481
481
  }
@@ -595,7 +595,7 @@ function createRetryer(config) {
595
595
  };
596
596
  }
597
597
 
598
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/removable.js
598
+ // ../../node_modules/@tanstack/query-core/build/modern/removable.js
599
599
  var Removable = class {
600
600
  #gcTimeout;
601
601
  destroy() {
@@ -623,7 +623,7 @@ var Removable = class {
623
623
  }
624
624
  };
625
625
 
626
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/query.js
626
+ // ../../node_modules/@tanstack/query-core/build/modern/query.js
627
627
  var Query = class extends Removable {
628
628
  #initialState;
629
629
  #revertState;
@@ -1024,7 +1024,7 @@ function getDefaultState(options) {
1024
1024
  };
1025
1025
  }
1026
1026
 
1027
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryCache.js
1027
+ // ../../node_modules/@tanstack/query-core/build/modern/queryCache.js
1028
1028
  var QueryCache = class extends Subscribable {
1029
1029
  constructor(config = {}) {
1030
1030
  super();
@@ -1114,7 +1114,7 @@ var QueryCache = class extends Subscribable {
1114
1114
  }
1115
1115
  };
1116
1116
 
1117
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/mutation.js
1117
+ // ../../node_modules/@tanstack/query-core/build/modern/mutation.js
1118
1118
  var Mutation = class extends Removable {
1119
1119
  #observers;
1120
1120
  #mutationCache;
@@ -1345,7 +1345,7 @@ function getDefaultState2() {
1345
1345
  };
1346
1346
  }
1347
1347
 
1348
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/mutationCache.js
1348
+ // ../../node_modules/@tanstack/query-core/build/modern/mutationCache.js
1349
1349
  var MutationCache = class extends Subscribable {
1350
1350
  constructor(config = {}) {
1351
1351
  super();
@@ -1461,7 +1461,7 @@ function scopeFor(mutation) {
1461
1461
  return mutation.options.scope?.id;
1462
1462
  }
1463
1463
 
1464
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
1464
+ // ../../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
1465
1465
  function infiniteQueryBehavior(pages) {
1466
1466
  return {
1467
1467
  onFetch: (context, query) => {
@@ -1570,7 +1570,7 @@ function getPreviousPageParam(options, { pages, pageParams }) {
1570
1570
  return pages.length > 0 ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) : void 0;
1571
1571
  }
1572
1572
 
1573
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryClient.js
1573
+ // ../../node_modules/@tanstack/query-core/build/modern/queryClient.js
1574
1574
  var QueryClient = class {
1575
1575
  #queryCache;
1576
1576
  #mutationCache;
@@ -1857,7 +1857,7 @@ var QueryClient = class {
1857
1857
  }
1858
1858
  };
1859
1859
 
1860
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryObserver.js
1860
+ // ../../node_modules/@tanstack/query-core/build/modern/queryObserver.js
1861
1861
  var QueryObserver = class extends Subscribable {
1862
1862
  constructor(client, options) {
1863
1863
  super();
@@ -2305,7 +2305,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
2305
2305
  return false;
2306
2306
  }
2307
2307
 
2308
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
2308
+ // ../../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
2309
2309
  import * as React from "react";
2310
2310
  import { jsx } from "react/jsx-runtime";
2311
2311
  var QueryClientContext = React.createContext(
@@ -2334,10 +2334,10 @@ var QueryClientProvider = ({
2334
2334
  return /* @__PURE__ */ jsx(QueryClientContext.Provider, { value: client, children });
2335
2335
  };
2336
2336
 
2337
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
2337
+ // ../../node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
2338
2338
  import * as React5 from "react";
2339
2339
 
2340
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
2340
+ // ../../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
2341
2341
  import * as React2 from "react";
2342
2342
  import { jsx as jsx2 } from "react/jsx-runtime";
2343
2343
  function createValue() {
@@ -2357,7 +2357,7 @@ function createValue() {
2357
2357
  var QueryErrorResetBoundaryContext = React2.createContext(createValue());
2358
2358
  var useQueryErrorResetBoundary = () => React2.useContext(QueryErrorResetBoundaryContext);
2359
2359
 
2360
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
2360
+ // ../../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
2361
2361
  import * as React3 from "react";
2362
2362
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
2363
2363
  if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
@@ -2381,13 +2381,13 @@ var getHasError = ({
2381
2381
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
2382
2382
  };
2383
2383
 
2384
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
2384
+ // ../../node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
2385
2385
  import * as React4 from "react";
2386
2386
  var IsRestoringContext = React4.createContext(false);
2387
2387
  var useIsRestoring = () => React4.useContext(IsRestoringContext);
2388
2388
  var IsRestoringProvider = IsRestoringContext.Provider;
2389
2389
 
2390
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/suspense.js
2390
+ // ../../node_modules/@tanstack/react-query/build/modern/suspense.js
2391
2391
  var ensureSuspenseTimers = (defaultedOptions) => {
2392
2392
  if (defaultedOptions.suspense) {
2393
2393
  const clamp = (value) => value === "static" ? value : Math.max(value ?? 1e3, 1e3);
@@ -2404,7 +2404,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
2404
2404
  errorResetBoundary.clearReset();
2405
2405
  });
2406
2406
 
2407
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
2407
+ // ../../node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
2408
2408
  function useBaseQuery(options, Observer, queryClient) {
2409
2409
  if (process.env.NODE_ENV !== "production") {
2410
2410
  if (typeof options !== "object" || Array.isArray(options)) {
@@ -2487,7 +2487,7 @@ function useBaseQuery(options, Observer, queryClient) {
2487
2487
  return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
2488
2488
  }
2489
2489
 
2490
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useQuery.js
2490
+ // ../../node_modules/@tanstack/react-query/build/modern/useQuery.js
2491
2491
  function useQuery(options, queryClient) {
2492
2492
  return useBaseQuery(options, QueryObserver, queryClient);
2493
2493
  }
@@ -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";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  useCustomerActions
4
- } from "./chunk-KB72KQKN.mjs";
4
+ } from "./chunk-DEZBJQEG.mjs";
5
5
  import {
6
6
  useQuery
7
- } from "./chunk-XJZH5NMZ.mjs";
7
+ } from "./chunk-E5ZHOMZ4.mjs";
8
8
  import {
9
9
  useAutumnClient
10
10
  } from "./chunk-SOA7GEAN.mjs";