autumn-js 0.1.3 → 0.1.4

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 (118) hide show
  1. package/dist/libraries/backend/better-auth.d.mts +30 -30
  2. package/dist/libraries/backend/better-auth.d.ts +30 -30
  3. package/dist/libraries/backend/express.d.mts +1 -1
  4. package/dist/libraries/backend/express.d.ts +1 -1
  5. package/dist/libraries/backend/index.d.mts +1 -1
  6. package/dist/libraries/backend/index.d.ts +1 -1
  7. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  8. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  9. package/dist/libraries/react/AutumnContext.d.mts +3 -3
  10. package/dist/libraries/react/AutumnContext.d.ts +3 -3
  11. package/dist/libraries/react/AutumnContext.mjs +4 -4
  12. package/dist/libraries/react/BaseAutumnProvider.d.mts +3 -3
  13. package/dist/libraries/react/BaseAutumnProvider.d.ts +3 -3
  14. package/dist/libraries/react/BaseAutumnProvider.js +1 -1
  15. package/dist/libraries/react/BaseAutumnProvider.mjs +8 -8
  16. package/dist/libraries/react/{ReactAutumnClient-1LBbQRfF.d.ts → ReactAutumnClient-Dk1xLBOC.d.ts} +2 -2
  17. package/dist/libraries/react/{ReactAutumnClient-MbC7QLTg.d.mts → ReactAutumnClient-b59cM6db.d.mts} +2 -2
  18. package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
  19. package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
  20. package/dist/libraries/react/ReactAutumnProvider.js +1 -1
  21. package/dist/libraries/react/ReactAutumnProvider.mjs +9 -9
  22. package/dist/libraries/react/{chunk-V3S3AWOQ.mjs → chunk-5X73Q4YJ.mjs} +2 -2
  23. package/dist/libraries/react/{chunk-VF6ARZ6T.mjs → chunk-6TQS3YV6.mjs} +2 -2
  24. package/dist/libraries/react/{chunk-S6UKPOYV.mjs → chunk-7AJBRRXV.mjs} +1 -1
  25. package/dist/libraries/react/{chunk-3LPB3X5R.mjs → chunk-ADKXC74U.mjs} +11 -11
  26. package/dist/libraries/react/{chunk-FEVS5X3L.mjs → chunk-AXQT5O4P.mjs} +2 -2
  27. package/dist/libraries/react/{chunk-BNG6GVPA.mjs → chunk-IUYVVTGM.mjs} +2 -2
  28. package/dist/libraries/react/{chunk-PGU4IXT7.mjs → chunk-K55IHYAQ.mjs} +1 -1
  29. package/dist/libraries/react/{chunk-KZVVSY52.mjs → chunk-KZQPLQR5.mjs} +1 -1
  30. package/dist/libraries/react/{chunk-3VVUDAFB.mjs → chunk-NV52XFEQ.mjs} +3 -3
  31. package/dist/libraries/react/{chunk-TJMYXANS.mjs → chunk-PLEVZHHH.mjs} +1 -1
  32. package/dist/libraries/react/{chunk-AIOLZ3SJ.mjs → chunk-QNIJJHAD.mjs} +2 -2
  33. package/dist/libraries/react/{chunk-J3JS4DDB.mjs → chunk-SFDHYUHA.mjs} +1 -1
  34. package/dist/libraries/react/{chunk-CSTUBIO7.mjs → chunk-XFNHMA6J.mjs} +1 -1
  35. package/dist/libraries/react/client/ReactAutumnClient.d.mts +3 -3
  36. package/dist/libraries/react/client/ReactAutumnClient.d.ts +3 -3
  37. package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
  38. package/dist/libraries/react/client/clientCompMethods.d.mts +3 -3
  39. package/dist/libraries/react/client/clientCompMethods.d.ts +3 -3
  40. package/dist/libraries/react/client/clientCusMethods.d.mts +3 -3
  41. package/dist/libraries/react/client/clientCusMethods.d.ts +3 -3
  42. package/dist/libraries/react/client/clientEntityMethods.d.mts +3 -3
  43. package/dist/libraries/react/client/clientEntityMethods.d.ts +3 -3
  44. package/dist/libraries/react/client/clientGenMethods.d.mts +3 -3
  45. package/dist/libraries/react/client/clientGenMethods.d.ts +3 -3
  46. package/dist/libraries/react/client/clientProdMethods.d.mts +3 -3
  47. package/dist/libraries/react/client/clientProdMethods.d.ts +3 -3
  48. package/dist/libraries/react/client/clientReferralMethods.d.mts +3 -3
  49. package/dist/libraries/react/client/clientReferralMethods.d.ts +3 -3
  50. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +1 -1
  51. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +18 -18
  52. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +18 -18
  53. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +1 -1
  54. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +18 -18
  55. package/dist/libraries/react/{entTypes-0CBBecul.d.ts → entTypes-CoF9enrR.d.ts} +1 -1
  56. package/dist/libraries/react/{entTypes-kVUQcah5.d.mts → entTypes-S4hkh1RG.d.mts} +1 -1
  57. package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +3 -3
  58. package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +3 -3
  59. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +3 -3
  60. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +3 -3
  61. package/dist/libraries/react/hooks/helpers/useAutumnBase.js +1 -1
  62. package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +2 -2
  63. package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
  64. package/dist/libraries/react/hooks/useCustomer.d.mts +3 -3
  65. package/dist/libraries/react/hooks/useCustomer.d.ts +3 -3
  66. package/dist/libraries/react/hooks/useCustomer.js +1 -1
  67. package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
  68. package/dist/libraries/react/hooks/useCustomerBase.d.mts +3 -3
  69. package/dist/libraries/react/hooks/useCustomerBase.d.ts +3 -3
  70. package/dist/libraries/react/hooks/useCustomerBase.js +1 -1
  71. package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
  72. package/dist/libraries/react/hooks/useEntity.d.mts +2 -2
  73. package/dist/libraries/react/hooks/useEntity.d.ts +2 -2
  74. package/dist/libraries/react/hooks/useEntity.js +1 -1
  75. package/dist/libraries/react/hooks/useEntity.mjs +8 -8
  76. package/dist/libraries/react/hooks/useEntityBase.d.mts +3 -3
  77. package/dist/libraries/react/hooks/useEntityBase.d.ts +3 -3
  78. package/dist/libraries/react/hooks/useEntityBase.js +1 -1
  79. package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
  80. package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
  81. package/dist/libraries/react/hooks/usePricingTable.js +1 -1
  82. package/dist/libraries/react/hooks/usePricingTable.mjs +6 -6
  83. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +3 -3
  84. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +3 -3
  85. package/dist/libraries/react/hooks/usePricingTableBase.js +1 -1
  86. package/dist/libraries/react/hooks/usePricingTableBase.mjs +1 -1
  87. package/dist/libraries/react/hooks/useProductsBase.d.mts +3 -3
  88. package/dist/libraries/react/hooks/useProductsBase.d.ts +3 -3
  89. package/dist/libraries/react/index.js +1 -1
  90. package/dist/libraries/react/index.mjs +1 -1
  91. package/dist/next/client/NextAutumnClient.d.mts +6 -6
  92. package/dist/next/client/NextAutumnClient.d.ts +6 -6
  93. package/dist/next/client/NextAutumnProvider.d.mts +1 -1
  94. package/dist/next/client/NextAutumnProvider.d.ts +1 -1
  95. package/dist/next/client/clientUtils.d.mts +2 -2
  96. package/dist/next/client/clientUtils.d.ts +2 -2
  97. package/dist/next/client/{entTypes-vjIG3B1G.d.ts → entTypes-BAD1NMvb.d.ts} +1 -1
  98. package/dist/next/client/{entTypes-CHHBdhBK.d.mts → entTypes-mOI7WnPZ.d.mts} +1 -1
  99. package/dist/next/client/hooks/useAutumn.d.mts +3 -3
  100. package/dist/next/client/hooks/useAutumn.d.ts +3 -3
  101. package/dist/next/client/hooks/useCustomer.d.mts +4 -4
  102. package/dist/next/client/hooks/useCustomer.d.ts +4 -4
  103. package/dist/next/client/hooks/useEntity.d.mts +3 -3
  104. package/dist/next/client/hooks/useEntity.d.ts +3 -3
  105. package/dist/next/client/types.d.mts +2 -2
  106. package/dist/next/client/types.d.ts +2 -2
  107. package/package.json +1 -1
  108. package/dist/libraries/backend/{referralTypes-Djyi4iGt.d.ts → referralTypes-B0_fYSI3.d.ts} +41 -41
  109. package/dist/libraries/backend/{referralTypes-BfrNJ62q.d.mts → referralTypes-CYvuZZeF.d.mts} +41 -41
  110. package/dist/libraries/react/{chunk-QV6Q2XXO.mjs → chunk-EFRTEIEY.mjs} +6 -6
  111. package/dist/libraries/react/{cusTypes-DbCQV8Sj.d.mts → cusTypes-CSmAk5io.d.mts} +2 -2
  112. package/dist/libraries/react/{cusTypes-BeSXIQ6P.d.ts → cusTypes-DHjT-9rV.d.ts} +2 -2
  113. package/dist/next/client/{attachTypes-DZFtFEmv.d.mts → attachTypes-9VCTaz0m.d.mts} +2 -2
  114. package/dist/next/client/{attachTypes-DxJ0LCjT.d.ts → attachTypes-DLxEa_Wj.d.ts} +2 -2
  115. package/dist/next/client/{clientAttachTypes-qsdoMt_B.d.mts → clientAttachTypes-BzsPgggN.d.mts} +2 -2
  116. package/dist/next/client/{clientAttachTypes-BXtfXB4v.d.ts → clientAttachTypes-umadXlvp.d.ts} +2 -2
  117. package/dist/next/client/{cusTypes-Q54uLNO5.d.mts → cusTypes-CIGvysWL.d.mts} +2 -2
  118. package/dist/next/client/{cusTypes-BHYpk8bK.d.ts → cusTypes-CYojUJSJ.d.ts} +2 -2
@@ -131,11 +131,11 @@ declare const autumn: (options?: {
131
131
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
132
132
  body: {
133
133
  product_id: string;
134
+ entity_id?: string | undefined;
134
135
  options?: {
135
136
  feature_id: string;
136
137
  quantity: number;
137
138
  }[] | undefined;
138
- entity_id?: string | undefined;
139
139
  success_url?: string | undefined;
140
140
  customer_data?: {
141
141
  name?: string | null | undefined;
@@ -203,11 +203,11 @@ declare const autumn: (options?: {
203
203
  reward: z.ZodOptional<z.ZodString>;
204
204
  }, "customer_id">, "strip", z.ZodTypeAny, {
205
205
  product_id: string;
206
+ entity_id?: string | undefined;
206
207
  options?: {
207
208
  feature_id: string;
208
209
  quantity: number;
209
210
  }[] | undefined;
210
- entity_id?: string | undefined;
211
211
  success_url?: string | undefined;
212
212
  customer_data?: {
213
213
  name?: string | null | undefined;
@@ -219,11 +219,11 @@ declare const autumn: (options?: {
219
219
  reward?: string | undefined;
220
220
  }, {
221
221
  product_id: string;
222
+ entity_id?: string | undefined;
222
223
  options?: {
223
224
  feature_id: string;
224
225
  quantity: number;
225
226
  }[] | undefined;
226
- entity_id?: string | undefined;
227
227
  success_url?: string | undefined;
228
228
  customer_data?: {
229
229
  name?: string | null | undefined;
@@ -265,14 +265,17 @@ declare const autumn: (options?: {
265
265
  attach: {
266
266
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
267
267
  body: {
268
+ entity_id?: string | undefined;
268
269
  options?: {
269
270
  feature_id: string;
270
271
  quantity: number;
271
272
  }[] | undefined;
272
273
  metadata?: Record<string, string> | undefined;
273
274
  product_id?: string | undefined;
274
- entity_id?: string | undefined;
275
+ product_ids?: string[] | undefined;
276
+ free_trial?: boolean | undefined;
275
277
  success_url?: string | undefined;
278
+ force_checkout?: boolean | undefined;
276
279
  customer_data?: {
277
280
  name?: string | null | undefined;
278
281
  email?: string | null | undefined;
@@ -281,9 +284,6 @@ declare const autumn: (options?: {
281
284
  entity_data?: any;
282
285
  checkout_session_params?: Record<string, any> | undefined;
283
286
  reward?: string | undefined;
284
- product_ids?: string[] | undefined;
285
- free_trial?: boolean | undefined;
286
- force_checkout?: boolean | undefined;
287
287
  };
288
288
  } & {
289
289
  method?: "POST" | undefined;
@@ -345,14 +345,17 @@ declare const autumn: (options?: {
345
345
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
346
346
  reward: z.ZodOptional<z.ZodString>;
347
347
  }, "customer_id">, "strip", z.ZodTypeAny, {
348
+ entity_id?: string | undefined;
348
349
  options?: {
349
350
  feature_id: string;
350
351
  quantity: number;
351
352
  }[] | undefined;
352
353
  metadata?: Record<string, string> | undefined;
353
354
  product_id?: string | undefined;
354
- entity_id?: string | undefined;
355
+ product_ids?: string[] | undefined;
356
+ free_trial?: boolean | undefined;
355
357
  success_url?: string | undefined;
358
+ force_checkout?: boolean | undefined;
356
359
  customer_data?: {
357
360
  name?: string | null | undefined;
358
361
  email?: string | null | undefined;
@@ -361,18 +364,18 @@ declare const autumn: (options?: {
361
364
  entity_data?: any;
362
365
  checkout_session_params?: Record<string, any> | undefined;
363
366
  reward?: string | undefined;
364
- product_ids?: string[] | undefined;
365
- free_trial?: boolean | undefined;
366
- force_checkout?: boolean | undefined;
367
367
  }, {
368
+ entity_id?: string | undefined;
368
369
  options?: {
369
370
  feature_id: string;
370
371
  quantity: number;
371
372
  }[] | undefined;
372
373
  metadata?: Record<string, string> | undefined;
373
374
  product_id?: string | undefined;
374
- entity_id?: string | undefined;
375
+ product_ids?: string[] | undefined;
376
+ free_trial?: boolean | undefined;
375
377
  success_url?: string | undefined;
378
+ force_checkout?: boolean | undefined;
376
379
  customer_data?: {
377
380
  name?: string | null | undefined;
378
381
  email?: string | null | undefined;
@@ -381,9 +384,6 @@ declare const autumn: (options?: {
381
384
  entity_data?: any;
382
385
  checkout_session_params?: Record<string, any> | undefined;
383
386
  reward?: string | undefined;
384
- product_ids?: string[] | undefined;
385
- free_trial?: boolean | undefined;
386
- force_checkout?: boolean | undefined;
387
387
  }>;
388
388
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
389
389
  session: {
@@ -416,15 +416,15 @@ declare const autumn: (options?: {
416
416
  check: {
417
417
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
418
418
  body: {
419
- product_id?: string | undefined;
420
- entity_id?: string | undefined;
421
419
  feature_id?: string | undefined;
420
+ entity_id?: string | undefined;
421
+ required_balance?: number | undefined;
422
+ product_id?: string | undefined;
422
423
  customer_data?: any;
423
424
  entity_data?: {
424
425
  feature_id: string;
425
426
  name?: string | undefined;
426
427
  } | undefined;
427
- required_balance?: number | undefined;
428
428
  send_event?: boolean | undefined;
429
429
  with_preview?: boolean | undefined;
430
430
  };
@@ -472,27 +472,27 @@ declare const autumn: (options?: {
472
472
  name?: string | undefined;
473
473
  }>>;
474
474
  }, "customer_id">, "strip", z.ZodTypeAny, {
475
- product_id?: string | undefined;
476
- entity_id?: string | undefined;
477
475
  feature_id?: string | undefined;
476
+ entity_id?: string | undefined;
477
+ required_balance?: number | undefined;
478
+ product_id?: string | undefined;
478
479
  customer_data?: any;
479
480
  entity_data?: {
480
481
  feature_id: string;
481
482
  name?: string | undefined;
482
483
  } | undefined;
483
- required_balance?: number | undefined;
484
484
  send_event?: boolean | undefined;
485
485
  with_preview?: boolean | undefined;
486
486
  }, {
487
- product_id?: string | undefined;
488
- entity_id?: string | undefined;
489
487
  feature_id?: string | undefined;
488
+ entity_id?: string | undefined;
489
+ required_balance?: number | undefined;
490
+ product_id?: string | undefined;
490
491
  customer_data?: any;
491
492
  entity_data?: {
492
493
  feature_id: string;
493
494
  name?: string | undefined;
494
495
  } | undefined;
495
- required_balance?: number | undefined;
496
496
  send_event?: boolean | undefined;
497
497
  with_preview?: boolean | undefined;
498
498
  }>;
@@ -527,9 +527,9 @@ declare const autumn: (options?: {
527
527
  track: {
528
528
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
529
529
  body: {
530
- value?: number | undefined;
531
- entity_id?: string | undefined;
532
530
  feature_id?: string | undefined;
531
+ entity_id?: string | undefined;
532
+ value?: number | undefined;
533
533
  customer_data?: any;
534
534
  entity_data?: any;
535
535
  event_name?: string | undefined;
@@ -569,17 +569,17 @@ declare const autumn: (options?: {
569
569
  idempotency_key: z.ZodOptional<z.ZodString>;
570
570
  entity_data: z.ZodOptional<z.ZodAny>;
571
571
  }, "customer_id">, "strip", z.ZodTypeAny, {
572
- value?: number | undefined;
573
- entity_id?: string | undefined;
574
572
  feature_id?: string | undefined;
573
+ entity_id?: string | undefined;
574
+ value?: number | undefined;
575
575
  customer_data?: any;
576
576
  entity_data?: any;
577
577
  event_name?: string | undefined;
578
578
  idempotency_key?: string | undefined;
579
579
  }, {
580
- value?: number | undefined;
581
- entity_id?: string | undefined;
582
580
  feature_id?: string | undefined;
581
+ entity_id?: string | undefined;
582
+ value?: number | undefined;
583
583
  customer_data?: any;
584
584
  entity_data?: any;
585
585
  event_name?: string | undefined;
@@ -131,11 +131,11 @@ declare const autumn: (options?: {
131
131
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
132
132
  body: {
133
133
  product_id: string;
134
+ entity_id?: string | undefined;
134
135
  options?: {
135
136
  feature_id: string;
136
137
  quantity: number;
137
138
  }[] | undefined;
138
- entity_id?: string | undefined;
139
139
  success_url?: string | undefined;
140
140
  customer_data?: {
141
141
  name?: string | null | undefined;
@@ -203,11 +203,11 @@ declare const autumn: (options?: {
203
203
  reward: z.ZodOptional<z.ZodString>;
204
204
  }, "customer_id">, "strip", z.ZodTypeAny, {
205
205
  product_id: string;
206
+ entity_id?: string | undefined;
206
207
  options?: {
207
208
  feature_id: string;
208
209
  quantity: number;
209
210
  }[] | undefined;
210
- entity_id?: string | undefined;
211
211
  success_url?: string | undefined;
212
212
  customer_data?: {
213
213
  name?: string | null | undefined;
@@ -219,11 +219,11 @@ declare const autumn: (options?: {
219
219
  reward?: string | undefined;
220
220
  }, {
221
221
  product_id: string;
222
+ entity_id?: string | undefined;
222
223
  options?: {
223
224
  feature_id: string;
224
225
  quantity: number;
225
226
  }[] | undefined;
226
- entity_id?: string | undefined;
227
227
  success_url?: string | undefined;
228
228
  customer_data?: {
229
229
  name?: string | null | undefined;
@@ -265,14 +265,17 @@ declare const autumn: (options?: {
265
265
  attach: {
266
266
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
267
267
  body: {
268
+ entity_id?: string | undefined;
268
269
  options?: {
269
270
  feature_id: string;
270
271
  quantity: number;
271
272
  }[] | undefined;
272
273
  metadata?: Record<string, string> | undefined;
273
274
  product_id?: string | undefined;
274
- entity_id?: string | undefined;
275
+ product_ids?: string[] | undefined;
276
+ free_trial?: boolean | undefined;
275
277
  success_url?: string | undefined;
278
+ force_checkout?: boolean | undefined;
276
279
  customer_data?: {
277
280
  name?: string | null | undefined;
278
281
  email?: string | null | undefined;
@@ -281,9 +284,6 @@ declare const autumn: (options?: {
281
284
  entity_data?: any;
282
285
  checkout_session_params?: Record<string, any> | undefined;
283
286
  reward?: string | undefined;
284
- product_ids?: string[] | undefined;
285
- free_trial?: boolean | undefined;
286
- force_checkout?: boolean | undefined;
287
287
  };
288
288
  } & {
289
289
  method?: "POST" | undefined;
@@ -345,14 +345,17 @@ declare const autumn: (options?: {
345
345
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
346
346
  reward: z.ZodOptional<z.ZodString>;
347
347
  }, "customer_id">, "strip", z.ZodTypeAny, {
348
+ entity_id?: string | undefined;
348
349
  options?: {
349
350
  feature_id: string;
350
351
  quantity: number;
351
352
  }[] | undefined;
352
353
  metadata?: Record<string, string> | undefined;
353
354
  product_id?: string | undefined;
354
- entity_id?: string | undefined;
355
+ product_ids?: string[] | undefined;
356
+ free_trial?: boolean | undefined;
355
357
  success_url?: string | undefined;
358
+ force_checkout?: boolean | undefined;
356
359
  customer_data?: {
357
360
  name?: string | null | undefined;
358
361
  email?: string | null | undefined;
@@ -361,18 +364,18 @@ declare const autumn: (options?: {
361
364
  entity_data?: any;
362
365
  checkout_session_params?: Record<string, any> | undefined;
363
366
  reward?: string | undefined;
364
- product_ids?: string[] | undefined;
365
- free_trial?: boolean | undefined;
366
- force_checkout?: boolean | undefined;
367
367
  }, {
368
+ entity_id?: string | undefined;
368
369
  options?: {
369
370
  feature_id: string;
370
371
  quantity: number;
371
372
  }[] | undefined;
372
373
  metadata?: Record<string, string> | undefined;
373
374
  product_id?: string | undefined;
374
- entity_id?: string | undefined;
375
+ product_ids?: string[] | undefined;
376
+ free_trial?: boolean | undefined;
375
377
  success_url?: string | undefined;
378
+ force_checkout?: boolean | undefined;
376
379
  customer_data?: {
377
380
  name?: string | null | undefined;
378
381
  email?: string | null | undefined;
@@ -381,9 +384,6 @@ declare const autumn: (options?: {
381
384
  entity_data?: any;
382
385
  checkout_session_params?: Record<string, any> | undefined;
383
386
  reward?: string | undefined;
384
- product_ids?: string[] | undefined;
385
- free_trial?: boolean | undefined;
386
- force_checkout?: boolean | undefined;
387
387
  }>;
388
388
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
389
389
  session: {
@@ -416,15 +416,15 @@ declare const autumn: (options?: {
416
416
  check: {
417
417
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
418
418
  body: {
419
- product_id?: string | undefined;
420
- entity_id?: string | undefined;
421
419
  feature_id?: string | undefined;
420
+ entity_id?: string | undefined;
421
+ required_balance?: number | undefined;
422
+ product_id?: string | undefined;
422
423
  customer_data?: any;
423
424
  entity_data?: {
424
425
  feature_id: string;
425
426
  name?: string | undefined;
426
427
  } | undefined;
427
- required_balance?: number | undefined;
428
428
  send_event?: boolean | undefined;
429
429
  with_preview?: boolean | undefined;
430
430
  };
@@ -472,27 +472,27 @@ declare const autumn: (options?: {
472
472
  name?: string | undefined;
473
473
  }>>;
474
474
  }, "customer_id">, "strip", z.ZodTypeAny, {
475
- product_id?: string | undefined;
476
- entity_id?: string | undefined;
477
475
  feature_id?: string | undefined;
476
+ entity_id?: string | undefined;
477
+ required_balance?: number | undefined;
478
+ product_id?: string | undefined;
478
479
  customer_data?: any;
479
480
  entity_data?: {
480
481
  feature_id: string;
481
482
  name?: string | undefined;
482
483
  } | undefined;
483
- required_balance?: number | undefined;
484
484
  send_event?: boolean | undefined;
485
485
  with_preview?: boolean | undefined;
486
486
  }, {
487
- product_id?: string | undefined;
488
- entity_id?: string | undefined;
489
487
  feature_id?: string | undefined;
488
+ entity_id?: string | undefined;
489
+ required_balance?: number | undefined;
490
+ product_id?: string | undefined;
490
491
  customer_data?: any;
491
492
  entity_data?: {
492
493
  feature_id: string;
493
494
  name?: string | undefined;
494
495
  } | undefined;
495
- required_balance?: number | undefined;
496
496
  send_event?: boolean | undefined;
497
497
  with_preview?: boolean | undefined;
498
498
  }>;
@@ -527,9 +527,9 @@ declare const autumn: (options?: {
527
527
  track: {
528
528
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
529
529
  body: {
530
- value?: number | undefined;
531
- entity_id?: string | undefined;
532
530
  feature_id?: string | undefined;
531
+ entity_id?: string | undefined;
532
+ value?: number | undefined;
533
533
  customer_data?: any;
534
534
  entity_data?: any;
535
535
  event_name?: string | undefined;
@@ -569,17 +569,17 @@ declare const autumn: (options?: {
569
569
  idempotency_key: z.ZodOptional<z.ZodString>;
570
570
  entity_data: z.ZodOptional<z.ZodAny>;
571
571
  }, "customer_id">, "strip", z.ZodTypeAny, {
572
- value?: number | undefined;
573
- entity_id?: string | undefined;
574
572
  feature_id?: string | undefined;
573
+ entity_id?: string | undefined;
574
+ value?: number | undefined;
575
575
  customer_data?: any;
576
576
  entity_data?: any;
577
577
  event_name?: string | undefined;
578
578
  idempotency_key?: string | undefined;
579
579
  }, {
580
- value?: number | undefined;
581
- entity_id?: string | undefined;
582
580
  feature_id?: string | undefined;
581
+ entity_id?: string | undefined;
582
+ value?: number | undefined;
583
583
  customer_data?: any;
584
584
  entity_data?: any;
585
585
  event_name?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { A as Autumn } from './referralTypes-BfrNJ62q.mjs';
1
+ import { A as Autumn } from './referralTypes-CYvuZZeF.mjs';
2
2
  import { AuthResult } from './utils/AuthFunction.mjs';
3
3
  import 'zod';
4
4
  import './response-CV6KGWH5.mjs';
@@ -1,4 +1,4 @@
1
- import { A as Autumn } from './referralTypes-Djyi4iGt.js';
1
+ import { A as Autumn } from './referralTypes-B0_fYSI3.js';
2
2
  import { AuthResult } from './utils/AuthFunction.js';
3
3
  import 'zod';
4
4
  import './response-CV6KGWH5.js';
@@ -1,4 +1,4 @@
1
- export { A as Autumn } from './referralTypes-BfrNJ62q.mjs';
1
+ export { A as Autumn } from './referralTypes-CYvuZZeF.mjs';
2
2
  import 'zod';
3
3
  import './response-CV6KGWH5.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- export { A as Autumn } from './referralTypes-Djyi4iGt.js';
1
+ export { A as Autumn } from './referralTypes-B0_fYSI3.js';
2
2
  import 'zod';
3
3
  import './response-CV6KGWH5.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { A as Autumn, C as CustomerData } from '../referralTypes-BfrNJ62q.mjs';
1
+ import { A as Autumn, C as CustomerData } from '../referralTypes-CYvuZZeF.mjs';
2
2
  import { AuthResult } from './AuthFunction.mjs';
3
3
  import 'zod';
4
4
  import '../response-CV6KGWH5.mjs';
@@ -1,4 +1,4 @@
1
- import { A as Autumn, C as CustomerData } from '../referralTypes-Djyi4iGt.js';
1
+ import { A as Autumn, C as CustomerData } from '../referralTypes-B0_fYSI3.js';
2
2
  import { AuthResult } from './AuthFunction.js';
3
3
  import 'zod';
4
4
  import '../response-CV6KGWH5.js';
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import { A as AutumnClient } from './ReactAutumnClient-MbC7QLTg.mjs';
2
+ import { A as AutumnClient } from './ReactAutumnClient-b59cM6db.mjs';
3
3
  import './client/types/clientEntTypes.mjs';
4
4
  import './client/types/clientGenTypes.mjs';
5
5
  import 'zod';
@@ -7,8 +7,8 @@ import './error-DHbclCVh.mjs';
7
7
  import './genTypes-fEH_nqSm.mjs';
8
8
  import './prodTypes--VvnyGlN.mjs';
9
9
  import './attachTypes-DqUN3q8s.mjs';
10
- import './entTypes-kVUQcah5.mjs';
11
- import './cusTypes-DbCQV8Sj.mjs';
10
+ import './entTypes-S4hkh1RG.mjs';
11
+ import './cusTypes-CSmAk5io.mjs';
12
12
 
13
13
  interface AutumnDialogContext {
14
14
  props: any;
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import { A as AutumnClient } from './ReactAutumnClient-1LBbQRfF.js';
2
+ import { A as AutumnClient } from './ReactAutumnClient-Dk1xLBOC.js';
3
3
  import './client/types/clientEntTypes.js';
4
4
  import './client/types/clientGenTypes.js';
5
5
  import 'zod';
@@ -7,8 +7,8 @@ import './error-DHbclCVh.js';
7
7
  import './genTypes-DsiuvyWS.js';
8
8
  import './prodTypes--VvnyGlN.js';
9
9
  import './attachTypes-CcB6xjSF.js';
10
- import './entTypes-0CBBecul.js';
11
- import './cusTypes-BeSXIQ6P.js';
10
+ import './entTypes-CoF9enrR.js';
11
+ import './cusTypes-DHjT-9rV.js';
12
12
 
13
13
  interface AutumnDialogContext {
14
14
  props: any;
@@ -3,13 +3,13 @@
3
3
  import {
4
4
  AutumnContext,
5
5
  useAutumnContext
6
- } from "./chunk-TJMYXANS.mjs";
7
- import "./chunk-QV6Q2XXO.mjs";
6
+ } from "./chunk-PLEVZHHH.mjs";
7
+ import "./chunk-EFRTEIEY.mjs";
8
+ import "./chunk-JVCOY7ZL.mjs";
9
+ import "./chunk-CIBQ4BJU.mjs";
8
10
  import "./chunk-EK2RMWXP.mjs";
9
11
  import "./chunk-V575SGOW.mjs";
10
12
  import "./chunk-ZV4RPZTM.mjs";
11
- import "./chunk-JVCOY7ZL.mjs";
12
- import "./chunk-CIBQ4BJU.mjs";
13
13
  import "./chunk-VTGR7VVK.mjs";
14
14
  import "./chunk-WFFVOEUG.mjs";
15
15
  import "./chunk-ZF2HUCN6.mjs";
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default from 'react';
3
- import { A as AutumnClient } from './ReactAutumnClient-MbC7QLTg.mjs';
3
+ import { A as AutumnClient } from './ReactAutumnClient-b59cM6db.mjs';
4
4
  import './client/types/clientEntTypes.mjs';
5
5
  import './client/types/clientGenTypes.mjs';
6
6
  import 'zod';
@@ -8,8 +8,8 @@ import './error-DHbclCVh.mjs';
8
8
  import './genTypes-fEH_nqSm.mjs';
9
9
  import './prodTypes--VvnyGlN.mjs';
10
10
  import './attachTypes-DqUN3q8s.mjs';
11
- import './entTypes-kVUQcah5.mjs';
12
- import './cusTypes-DbCQV8Sj.mjs';
11
+ import './entTypes-S4hkh1RG.mjs';
12
+ import './cusTypes-CSmAk5io.mjs';
13
13
 
14
14
  declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
15
15
  client: AutumnClient;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default from 'react';
3
- import { A as AutumnClient } from './ReactAutumnClient-1LBbQRfF.js';
3
+ import { A as AutumnClient } from './ReactAutumnClient-Dk1xLBOC.js';
4
4
  import './client/types/clientEntTypes.js';
5
5
  import './client/types/clientGenTypes.js';
6
6
  import 'zod';
@@ -8,8 +8,8 @@ import './error-DHbclCVh.js';
8
8
  import './genTypes-DsiuvyWS.js';
9
9
  import './prodTypes--VvnyGlN.js';
10
10
  import './attachTypes-CcB6xjSF.js';
11
- import './entTypes-0CBBecul.js';
12
- import './cusTypes-BeSXIQ6P.js';
11
+ import './entTypes-CoF9enrR.js';
12
+ import './cusTypes-DHjT-9rV.js';
13
13
 
14
14
  declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
15
15
  client: AutumnClient;
@@ -1289,7 +1289,7 @@ var usePricingTableBase = ({
1289
1289
  }
1290
1290
  };
1291
1291
  const { data, error, mutate } = (0, import_swr.default)(
1292
- "pricing-table",
1292
+ ["pricing-table", client.backendUrl],
1293
1293
  fetcher,
1294
1294
  { ...defaultSWRConfig }
1295
1295
  );
@@ -3,19 +3,19 @@
3
3
  "use client";
4
4
  import {
5
5
  BaseAutumnProvider
6
- } from "./chunk-CSTUBIO7.mjs";
6
+ } from "./chunk-XFNHMA6J.mjs";
7
7
  import "./chunk-RFSQBGLO.mjs";
8
- import "./chunk-BNG6GVPA.mjs";
8
+ import "./chunk-IUYVVTGM.mjs";
9
9
  import "./chunk-W5XUD2S6.mjs";
10
- import "./chunk-J3JS4DDB.mjs";
11
- import "./chunk-S6UKPOYV.mjs";
12
- import "./chunk-TJMYXANS.mjs";
13
- import "./chunk-QV6Q2XXO.mjs";
10
+ import "./chunk-SFDHYUHA.mjs";
11
+ import "./chunk-7AJBRRXV.mjs";
12
+ import "./chunk-PLEVZHHH.mjs";
13
+ import "./chunk-EFRTEIEY.mjs";
14
+ import "./chunk-JVCOY7ZL.mjs";
15
+ import "./chunk-CIBQ4BJU.mjs";
14
16
  import "./chunk-EK2RMWXP.mjs";
15
17
  import "./chunk-V575SGOW.mjs";
16
18
  import "./chunk-ZV4RPZTM.mjs";
17
- import "./chunk-JVCOY7ZL.mjs";
18
- import "./chunk-CIBQ4BJU.mjs";
19
19
  import "./chunk-VTGR7VVK.mjs";
20
20
  import "./chunk-WFFVOEUG.mjs";
21
21
  import "./chunk-ZF2HUCN6.mjs";
@@ -3,9 +3,9 @@ import { OpenBillingPortalParams, SetupPaymentParams } from './client/types/clie
3
3
  import { A as AutumnError } from './error-DHbclCVh.js';
4
4
  import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-DsiuvyWS.js';
5
5
  import { C as CheckoutResult } from './attachTypes-CcB6xjSF.js';
6
- import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-0CBBecul.js';
6
+ import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-CoF9enrR.js';
7
7
  import { a as ProductItem, e as ProductScenario, P as Product } from './prodTypes--VvnyGlN.js';
8
- import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-BeSXIQ6P.js';
8
+ import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-DHjT-9rV.js';
9
9
 
10
10
  interface PricingTableProduct {
11
11
  id: string;
@@ -3,9 +3,9 @@ import { OpenBillingPortalParams, SetupPaymentParams } from './client/types/clie
3
3
  import { A as AutumnError } from './error-DHbclCVh.mjs';
4
4
  import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-fEH_nqSm.mjs';
5
5
  import { C as CheckoutResult } from './attachTypes-DqUN3q8s.mjs';
6
- import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-kVUQcah5.mjs';
6
+ import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-S4hkh1RG.mjs';
7
7
  import { a as ProductItem, e as ProductScenario, P as Product } from './prodTypes--VvnyGlN.mjs';
8
- import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-DbCQV8Sj.mjs';
8
+ import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-CSmAk5io.mjs';
9
9
 
10
10
  interface PricingTableProduct {
11
11
  id: string;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-DbCQV8Sj.mjs';
2
+ import { C as CustomerData } from './cusTypes-CSmAk5io.mjs';
3
3
  import './prodTypes--VvnyGlN.mjs';
4
4
  import 'zod';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-BeSXIQ6P.js';
2
+ import { C as CustomerData } from './cusTypes-DHjT-9rV.js';
3
3
  import './prodTypes--VvnyGlN.js';
4
4
  import 'zod';
5
5
 
@@ -1290,7 +1290,7 @@ var usePricingTableBase = ({
1290
1290
  }
1291
1291
  };
1292
1292
  const { data, error, mutate } = (0, import_swr.default)(
1293
- "pricing-table",
1293
+ ["pricing-table", client.backendUrl],
1294
1294
  fetcher,
1295
1295
  { ...defaultSWRConfig }
1296
1296
  );