autumn-js 0.1.7 → 0.1.8

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 +33 -33
  2. package/dist/libraries/backend/better-auth.d.ts +33 -33
  3. package/dist/libraries/backend/better-auth.mjs +3 -3
  4. package/dist/libraries/backend/convex.mjs +3 -3
  5. package/dist/libraries/backend/elysia.mjs +3 -3
  6. package/dist/libraries/backend/express.d.mts +1 -1
  7. package/dist/libraries/backend/express.d.ts +1 -1
  8. package/dist/libraries/backend/express.mjs +3 -3
  9. package/dist/libraries/backend/fastify.mjs +3 -3
  10. package/dist/libraries/backend/hono.mjs +3 -3
  11. package/dist/libraries/backend/index.d.mts +1 -1
  12. package/dist/libraries/backend/index.d.ts +1 -1
  13. package/dist/libraries/backend/index.mjs +3 -3
  14. package/dist/libraries/backend/next.mjs +3 -3
  15. package/dist/libraries/backend/react-router.mjs +3 -3
  16. package/dist/libraries/backend/remix_dep.mjs +3 -3
  17. package/dist/libraries/backend/routes/backendRouter.mjs +3 -3
  18. package/dist/libraries/backend/supabase.mjs +3 -3
  19. package/dist/libraries/backend/tanstack.mjs +3 -3
  20. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  21. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  22. package/dist/libraries/react/AutumnContext.mjs +4 -4
  23. package/dist/libraries/react/BaseAutumnProvider.js +5 -1
  24. package/dist/libraries/react/BaseAutumnProvider.mjs +7 -7
  25. package/dist/libraries/react/ReactAutumnProvider.js +5 -1
  26. package/dist/libraries/react/ReactAutumnProvider.mjs +8 -8
  27. package/dist/libraries/react/{chunk-OTZ65PCT.mjs → chunk-2TQBFCWM.mjs} +4 -4
  28. package/dist/libraries/react/{chunk-FEISQQNM.mjs → chunk-5K2M3CQZ.mjs} +1 -1
  29. package/dist/libraries/react/{chunk-ZJBEC254.mjs → chunk-5OJIHAX7.mjs} +5 -1
  30. package/dist/libraries/react/{chunk-FMRBH4CP.mjs → chunk-6I7KWRND.mjs} +1 -1
  31. package/dist/libraries/react/{chunk-ULIUD6YP.mjs → chunk-A5YPS4K4.mjs} +2 -2
  32. package/dist/libraries/react/{chunk-FJWZPMWU.mjs → chunk-BXMZYHE7.mjs} +3 -3
  33. package/dist/libraries/react/{chunk-QQKJE2ND.mjs → chunk-HUKIJ7DB.mjs} +2 -2
  34. package/dist/libraries/react/{chunk-SZJOMZTC.mjs → chunk-I6BTXKGK.mjs} +1 -1
  35. package/dist/libraries/react/{chunk-SFGXTDMX.mjs → chunk-JK2TFCOG.mjs} +2 -2
  36. package/dist/libraries/react/{chunk-KUS3X33V.mjs → chunk-M7SUFZ42.mjs} +1 -1
  37. package/dist/libraries/react/{chunk-YWQTQ72B.mjs → chunk-NHDZWWMZ.mjs} +2 -2
  38. package/dist/libraries/react/{chunk-KYZ3DYMI.mjs → chunk-OUWRRLOI.mjs} +443 -440
  39. package/dist/libraries/react/{chunk-JFTZRU2U.mjs → chunk-T3B4TVD4.mjs} +1 -1
  40. package/dist/libraries/react/{chunk-ECOBNPRU.mjs → chunk-TM6QWQLU.mjs} +3 -3
  41. package/dist/libraries/react/{chunk-GWVZB5GK.mjs → chunk-UOJ6NIVD.mjs} +2 -2
  42. package/dist/libraries/react/{chunk-HMZZIUCF.mjs → chunk-WEKDMT3Y.mjs} +1 -1
  43. package/dist/libraries/react/{chunk-56PEGK2Z.mjs → chunk-WH5MYLSM.mjs} +1 -1
  44. package/dist/libraries/react/{chunk-I2A7PK2L.mjs → chunk-WT5K3J2K.mjs} +17 -17
  45. package/dist/libraries/react/{chunk-JGDTNJTR.mjs → chunk-YCDNQZT5.mjs} +2 -2
  46. package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
  47. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +8 -3
  48. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +26 -26
  49. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +26 -26
  50. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +8 -3
  51. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +26 -26
  52. package/dist/libraries/react/components/ui/accordion.mjs +3 -3
  53. package/dist/libraries/react/components/ui/button.d.mts +1 -1
  54. package/dist/libraries/react/components/ui/button.d.ts +1 -1
  55. package/dist/libraries/react/components/ui/dialog.mjs +4 -4
  56. package/dist/libraries/react/components/ui/popover.mjs +5 -5
  57. package/dist/libraries/react/components/ui/switch.mjs +3 -3
  58. package/dist/libraries/react/hooks/helpers/useAutumnBase.js +5 -1
  59. package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +1 -1
  60. package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
  61. package/dist/libraries/react/hooks/useCustomer.js +5 -1
  62. package/dist/libraries/react/hooks/useCustomer.mjs +7 -7
  63. package/dist/libraries/react/hooks/useCustomerBase.js +5 -1
  64. package/dist/libraries/react/hooks/useCustomerBase.mjs +6 -6
  65. package/dist/libraries/react/hooks/useEntity.d.mts +2 -2
  66. package/dist/libraries/react/hooks/useEntity.d.ts +2 -2
  67. package/dist/libraries/react/hooks/useEntity.js +5 -1
  68. package/dist/libraries/react/hooks/useEntity.mjs +7 -7
  69. package/dist/libraries/react/hooks/useEntityBase.d.mts +2 -2
  70. package/dist/libraries/react/hooks/useEntityBase.d.ts +2 -2
  71. package/dist/libraries/react/hooks/useEntityBase.js +5 -1
  72. package/dist/libraries/react/hooks/useEntityBase.mjs +6 -6
  73. package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
  74. package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
  75. package/dist/libraries/react/index.js +8 -3
  76. package/dist/libraries/react/index.mjs +8 -3
  77. package/dist/next/client/NextAutumnClient.d.mts +20 -20
  78. package/dist/next/client/NextAutumnClient.d.ts +20 -20
  79. package/dist/next/client/NextAutumnProvider.d.mts +2 -2
  80. package/dist/next/client/NextAutumnProvider.d.ts +2 -2
  81. package/dist/next/client/{attachTypes-EvdK0fPK.d.mts → attachTypes-DZFtFEmv.d.mts} +7 -7
  82. package/dist/next/client/{attachTypes-DKlQexnQ.d.ts → attachTypes-DxJ0LCjT.d.ts} +7 -7
  83. package/dist/next/client/{clientAttachTypes-CGPjsdPk.d.ts → clientAttachTypes-BXtfXB4v.d.ts} +29 -29
  84. package/dist/next/client/{clientAttachTypes-CZFjz8Rq.d.mts → clientAttachTypes-qsdoMt_B.d.mts} +29 -29
  85. package/dist/next/client/clientUtils.d.mts +3 -3
  86. package/dist/next/client/clientUtils.d.ts +3 -3
  87. package/dist/next/client/{cusTypes-DEURYNg4.d.ts → cusTypes-BHYpk8bK.d.ts} +7 -7
  88. package/dist/next/client/{cusTypes-y5wEmx07.d.mts → cusTypes-Q54uLNO5.d.mts} +7 -7
  89. package/dist/next/client/{entTypes-KRxjcMFv.d.mts → entTypes-CHHBdhBK.d.mts} +1 -1
  90. package/dist/next/client/{entTypes-CRFgWhOr.d.ts → entTypes-vjIG3B1G.d.ts} +1 -1
  91. package/dist/next/client/hooks/useAutumn.d.mts +5 -5
  92. package/dist/next/client/hooks/useAutumn.d.ts +5 -5
  93. package/dist/next/client/hooks/useCustomer.d.mts +5 -5
  94. package/dist/next/client/hooks/useCustomer.d.ts +5 -5
  95. package/dist/next/client/hooks/useEntity.d.mts +6 -6
  96. package/dist/next/client/hooks/useEntity.d.ts +6 -6
  97. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  98. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  99. package/dist/next/client/types.d.mts +3 -3
  100. package/dist/next/client/types.d.ts +3 -3
  101. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  102. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  103. package/dist/next/server/componentActions.d.mts +1 -1
  104. package/dist/next/server/componentActions.d.ts +1 -1
  105. package/dist/next/server/cusActions.d.mts +17 -17
  106. package/dist/next/server/cusActions.d.ts +17 -17
  107. package/dist/next/server/genActions.d.mts +1 -1
  108. package/dist/next/server/genActions.d.ts +1 -1
  109. package/package.json +1 -1
  110. package/dist/libraries/backend/{chunk-3OVRYTZX.mjs → chunk-BRZHNRU5.mjs} +6 -6
  111. package/dist/libraries/backend/{referralTypes-B50JL4PY.d.mts → referralTypes-DyuV6oJo.d.mts} +43 -43
  112. package/dist/libraries/backend/{referralTypes-dW2HaxKV.d.ts → referralTypes-zcdPSX-p.d.ts} +43 -43
  113. package/dist/libraries/react/{chunk-HIC6P67K.mjs → chunk-IDSAD3KF.mjs} +6 -6
  114. package/dist/libraries/react/{chunk-7TYAAD2T.mjs → chunk-KWNH6C27.mjs} +11 -11
  115. package/dist/next/client/{prodTypes-DzTLP57C.d.mts → prodTypes-CxvB1YY3.d.mts} +8 -8
  116. package/dist/next/client/{prodTypes-DzTLP57C.d.ts → prodTypes-CxvB1YY3.d.ts} +8 -8
  117. package/dist/next/server/{cusTypes-CwopPHB0.d.ts → cusTypes-DgoOZMIt.d.mts} +8 -8
  118. package/dist/next/server/{cusTypes-CwopPHB0.d.mts → cusTypes-DgoOZMIt.d.ts} +8 -8
@@ -10,8 +10,8 @@ declare const autumn: (options?: {
10
10
  createCustomer: {
11
11
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
12
12
  body: {
13
- errorOnNotFound?: boolean | undefined;
14
13
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
14
+ errorOnNotFound?: boolean | undefined;
15
15
  };
16
16
  } & {
17
17
  method?: "POST" | undefined;
@@ -42,11 +42,11 @@ declare const autumn: (options?: {
42
42
  errorOnNotFound: z.ZodOptional<z.ZodBoolean>;
43
43
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
44
44
  }, "strip", z.ZodTypeAny, {
45
- errorOnNotFound?: boolean | undefined;
46
45
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
47
- }, {
48
46
  errorOnNotFound?: boolean | undefined;
47
+ }, {
49
48
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
49
+ errorOnNotFound?: boolean | undefined;
50
50
  }>;
51
51
  metadata: {
52
52
  isAction: boolean;
@@ -91,11 +91,11 @@ declare const autumn: (options?: {
91
91
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
92
92
  body: {
93
93
  product_id: string;
94
+ entity_id?: string | undefined;
94
95
  options?: {
95
96
  feature_id: string;
96
97
  quantity: number;
97
98
  }[] | undefined;
98
- entity_id?: string | undefined;
99
99
  success_url?: string | undefined;
100
100
  customer_data?: {
101
101
  name?: string | null | undefined;
@@ -163,11 +163,11 @@ declare const autumn: (options?: {
163
163
  reward: z.ZodOptional<z.ZodString>;
164
164
  }, "customer_id">, "strip", z.ZodTypeAny, {
165
165
  product_id: string;
166
+ entity_id?: string | undefined;
166
167
  options?: {
167
168
  feature_id: string;
168
169
  quantity: number;
169
170
  }[] | undefined;
170
- entity_id?: string | undefined;
171
171
  success_url?: string | undefined;
172
172
  customer_data?: {
173
173
  name?: string | null | undefined;
@@ -179,11 +179,11 @@ declare const autumn: (options?: {
179
179
  reward?: string | undefined;
180
180
  }, {
181
181
  product_id: string;
182
+ entity_id?: string | undefined;
182
183
  options?: {
183
184
  feature_id: string;
184
185
  quantity: number;
185
186
  }[] | undefined;
186
- entity_id?: string | undefined;
187
187
  success_url?: string | undefined;
188
188
  customer_data?: {
189
189
  name?: string | null | undefined;
@@ -225,14 +225,17 @@ declare const autumn: (options?: {
225
225
  attach: {
226
226
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
227
227
  body: {
228
+ entity_id?: string | undefined;
228
229
  options?: {
229
230
  feature_id: string;
230
231
  quantity: number;
231
232
  }[] | undefined;
232
233
  metadata?: Record<string, string> | undefined;
233
234
  product_id?: string | undefined;
234
- entity_id?: string | undefined;
235
+ product_ids?: string[] | undefined;
236
+ free_trial?: boolean | undefined;
235
237
  success_url?: string | undefined;
238
+ force_checkout?: boolean | undefined;
236
239
  customer_data?: {
237
240
  name?: string | null | undefined;
238
241
  email?: string | null | undefined;
@@ -241,9 +244,6 @@ declare const autumn: (options?: {
241
244
  entity_data?: any;
242
245
  checkout_session_params?: Record<string, any> | undefined;
243
246
  reward?: string | undefined;
244
- product_ids?: string[] | undefined;
245
- free_trial?: boolean | undefined;
246
- force_checkout?: boolean | undefined;
247
247
  };
248
248
  } & {
249
249
  method?: "POST" | undefined;
@@ -305,14 +305,17 @@ declare const autumn: (options?: {
305
305
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
306
306
  reward: z.ZodOptional<z.ZodString>;
307
307
  }, "customer_id">, "strip", z.ZodTypeAny, {
308
+ entity_id?: string | undefined;
308
309
  options?: {
309
310
  feature_id: string;
310
311
  quantity: number;
311
312
  }[] | undefined;
312
313
  metadata?: Record<string, string> | undefined;
313
314
  product_id?: string | undefined;
314
- entity_id?: string | undefined;
315
+ product_ids?: string[] | undefined;
316
+ free_trial?: boolean | undefined;
315
317
  success_url?: string | undefined;
318
+ force_checkout?: boolean | undefined;
316
319
  customer_data?: {
317
320
  name?: string | null | undefined;
318
321
  email?: string | null | undefined;
@@ -321,18 +324,18 @@ declare const autumn: (options?: {
321
324
  entity_data?: any;
322
325
  checkout_session_params?: Record<string, any> | undefined;
323
326
  reward?: string | undefined;
324
- product_ids?: string[] | undefined;
325
- free_trial?: boolean | undefined;
326
- force_checkout?: boolean | undefined;
327
327
  }, {
328
+ entity_id?: string | undefined;
328
329
  options?: {
329
330
  feature_id: string;
330
331
  quantity: number;
331
332
  }[] | undefined;
332
333
  metadata?: Record<string, string> | undefined;
333
334
  product_id?: string | undefined;
334
- entity_id?: string | undefined;
335
+ product_ids?: string[] | undefined;
336
+ free_trial?: boolean | undefined;
335
337
  success_url?: string | undefined;
338
+ force_checkout?: boolean | undefined;
336
339
  customer_data?: {
337
340
  name?: string | null | undefined;
338
341
  email?: string | null | undefined;
@@ -341,9 +344,6 @@ declare const autumn: (options?: {
341
344
  entity_data?: any;
342
345
  checkout_session_params?: Record<string, any> | undefined;
343
346
  reward?: string | undefined;
344
- product_ids?: string[] | undefined;
345
- free_trial?: boolean | undefined;
346
- force_checkout?: boolean | undefined;
347
347
  }>;
348
348
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
349
349
  session: {
@@ -376,15 +376,15 @@ declare const autumn: (options?: {
376
376
  check: {
377
377
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
378
378
  body: {
379
- product_id?: string | undefined;
380
- entity_id?: string | undefined;
381
379
  feature_id?: string | undefined;
380
+ entity_id?: string | undefined;
381
+ required_balance?: number | undefined;
382
+ product_id?: string | undefined;
382
383
  customer_data?: any;
383
384
  entity_data?: {
384
385
  feature_id: string;
385
386
  name?: string | undefined;
386
387
  } | undefined;
387
- required_balance?: number | undefined;
388
388
  send_event?: boolean | undefined;
389
389
  with_preview?: boolean | undefined;
390
390
  };
@@ -432,27 +432,27 @@ declare const autumn: (options?: {
432
432
  name?: string | undefined;
433
433
  }>>;
434
434
  }, "customer_id">, "strip", z.ZodTypeAny, {
435
- product_id?: string | undefined;
436
- entity_id?: string | undefined;
437
435
  feature_id?: string | undefined;
436
+ entity_id?: string | undefined;
437
+ required_balance?: number | undefined;
438
+ product_id?: string | undefined;
438
439
  customer_data?: any;
439
440
  entity_data?: {
440
441
  feature_id: string;
441
442
  name?: string | undefined;
442
443
  } | undefined;
443
- required_balance?: number | undefined;
444
444
  send_event?: boolean | undefined;
445
445
  with_preview?: boolean | undefined;
446
446
  }, {
447
- product_id?: string | undefined;
448
- entity_id?: string | undefined;
449
447
  feature_id?: string | undefined;
448
+ entity_id?: string | undefined;
449
+ required_balance?: number | undefined;
450
+ product_id?: string | undefined;
450
451
  customer_data?: any;
451
452
  entity_data?: {
452
453
  feature_id: string;
453
454
  name?: string | undefined;
454
455
  } | undefined;
455
- required_balance?: number | undefined;
456
456
  send_event?: boolean | undefined;
457
457
  with_preview?: boolean | undefined;
458
458
  }>;
@@ -487,9 +487,9 @@ declare const autumn: (options?: {
487
487
  track: {
488
488
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
489
489
  body: {
490
- value?: number | undefined;
491
- entity_id?: string | undefined;
492
490
  feature_id?: string | undefined;
491
+ entity_id?: string | undefined;
492
+ value?: number | undefined;
493
493
  customer_data?: any;
494
494
  entity_data?: any;
495
495
  event_name?: string | undefined;
@@ -529,17 +529,17 @@ declare const autumn: (options?: {
529
529
  idempotency_key: z.ZodOptional<z.ZodString>;
530
530
  entity_data: z.ZodOptional<z.ZodAny>;
531
531
  }, "customer_id">, "strip", z.ZodTypeAny, {
532
- value?: number | undefined;
533
- entity_id?: string | undefined;
534
532
  feature_id?: string | undefined;
533
+ entity_id?: string | undefined;
534
+ value?: number | undefined;
535
535
  customer_data?: any;
536
536
  entity_data?: any;
537
537
  event_name?: string | undefined;
538
538
  idempotency_key?: string | undefined;
539
539
  }, {
540
- value?: number | undefined;
541
- entity_id?: string | undefined;
542
540
  feature_id?: string | undefined;
541
+ entity_id?: string | undefined;
542
+ value?: number | undefined;
543
543
  customer_data?: any;
544
544
  entity_data?: any;
545
545
  event_name?: string | undefined;
@@ -10,8 +10,8 @@ declare const autumn: (options?: {
10
10
  createCustomer: {
11
11
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
12
12
  body: {
13
- errorOnNotFound?: boolean | undefined;
14
13
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
14
+ errorOnNotFound?: boolean | undefined;
15
15
  };
16
16
  } & {
17
17
  method?: "POST" | undefined;
@@ -42,11 +42,11 @@ declare const autumn: (options?: {
42
42
  errorOnNotFound: z.ZodOptional<z.ZodBoolean>;
43
43
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
44
44
  }, "strip", z.ZodTypeAny, {
45
- errorOnNotFound?: boolean | undefined;
46
45
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
47
- }, {
48
46
  errorOnNotFound?: boolean | undefined;
47
+ }, {
49
48
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
49
+ errorOnNotFound?: boolean | undefined;
50
50
  }>;
51
51
  metadata: {
52
52
  isAction: boolean;
@@ -91,11 +91,11 @@ declare const autumn: (options?: {
91
91
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
92
92
  body: {
93
93
  product_id: string;
94
+ entity_id?: string | undefined;
94
95
  options?: {
95
96
  feature_id: string;
96
97
  quantity: number;
97
98
  }[] | undefined;
98
- entity_id?: string | undefined;
99
99
  success_url?: string | undefined;
100
100
  customer_data?: {
101
101
  name?: string | null | undefined;
@@ -163,11 +163,11 @@ declare const autumn: (options?: {
163
163
  reward: z.ZodOptional<z.ZodString>;
164
164
  }, "customer_id">, "strip", z.ZodTypeAny, {
165
165
  product_id: string;
166
+ entity_id?: string | undefined;
166
167
  options?: {
167
168
  feature_id: string;
168
169
  quantity: number;
169
170
  }[] | undefined;
170
- entity_id?: string | undefined;
171
171
  success_url?: string | undefined;
172
172
  customer_data?: {
173
173
  name?: string | null | undefined;
@@ -179,11 +179,11 @@ declare const autumn: (options?: {
179
179
  reward?: string | undefined;
180
180
  }, {
181
181
  product_id: string;
182
+ entity_id?: string | undefined;
182
183
  options?: {
183
184
  feature_id: string;
184
185
  quantity: number;
185
186
  }[] | undefined;
186
- entity_id?: string | undefined;
187
187
  success_url?: string | undefined;
188
188
  customer_data?: {
189
189
  name?: string | null | undefined;
@@ -225,14 +225,17 @@ declare const autumn: (options?: {
225
225
  attach: {
226
226
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
227
227
  body: {
228
+ entity_id?: string | undefined;
228
229
  options?: {
229
230
  feature_id: string;
230
231
  quantity: number;
231
232
  }[] | undefined;
232
233
  metadata?: Record<string, string> | undefined;
233
234
  product_id?: string | undefined;
234
- entity_id?: string | undefined;
235
+ product_ids?: string[] | undefined;
236
+ free_trial?: boolean | undefined;
235
237
  success_url?: string | undefined;
238
+ force_checkout?: boolean | undefined;
236
239
  customer_data?: {
237
240
  name?: string | null | undefined;
238
241
  email?: string | null | undefined;
@@ -241,9 +244,6 @@ declare const autumn: (options?: {
241
244
  entity_data?: any;
242
245
  checkout_session_params?: Record<string, any> | undefined;
243
246
  reward?: string | undefined;
244
- product_ids?: string[] | undefined;
245
- free_trial?: boolean | undefined;
246
- force_checkout?: boolean | undefined;
247
247
  };
248
248
  } & {
249
249
  method?: "POST" | undefined;
@@ -305,14 +305,17 @@ declare const autumn: (options?: {
305
305
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
306
306
  reward: z.ZodOptional<z.ZodString>;
307
307
  }, "customer_id">, "strip", z.ZodTypeAny, {
308
+ entity_id?: string | undefined;
308
309
  options?: {
309
310
  feature_id: string;
310
311
  quantity: number;
311
312
  }[] | undefined;
312
313
  metadata?: Record<string, string> | undefined;
313
314
  product_id?: string | undefined;
314
- entity_id?: string | undefined;
315
+ product_ids?: string[] | undefined;
316
+ free_trial?: boolean | undefined;
315
317
  success_url?: string | undefined;
318
+ force_checkout?: boolean | undefined;
316
319
  customer_data?: {
317
320
  name?: string | null | undefined;
318
321
  email?: string | null | undefined;
@@ -321,18 +324,18 @@ declare const autumn: (options?: {
321
324
  entity_data?: any;
322
325
  checkout_session_params?: Record<string, any> | undefined;
323
326
  reward?: string | undefined;
324
- product_ids?: string[] | undefined;
325
- free_trial?: boolean | undefined;
326
- force_checkout?: boolean | undefined;
327
327
  }, {
328
+ entity_id?: string | undefined;
328
329
  options?: {
329
330
  feature_id: string;
330
331
  quantity: number;
331
332
  }[] | undefined;
332
333
  metadata?: Record<string, string> | undefined;
333
334
  product_id?: string | undefined;
334
- entity_id?: string | undefined;
335
+ product_ids?: string[] | undefined;
336
+ free_trial?: boolean | undefined;
335
337
  success_url?: string | undefined;
338
+ force_checkout?: boolean | undefined;
336
339
  customer_data?: {
337
340
  name?: string | null | undefined;
338
341
  email?: string | null | undefined;
@@ -341,9 +344,6 @@ declare const autumn: (options?: {
341
344
  entity_data?: any;
342
345
  checkout_session_params?: Record<string, any> | undefined;
343
346
  reward?: string | undefined;
344
- product_ids?: string[] | undefined;
345
- free_trial?: boolean | undefined;
346
- force_checkout?: boolean | undefined;
347
347
  }>;
348
348
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
349
349
  session: {
@@ -376,15 +376,15 @@ declare const autumn: (options?: {
376
376
  check: {
377
377
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
378
378
  body: {
379
- product_id?: string | undefined;
380
- entity_id?: string | undefined;
381
379
  feature_id?: string | undefined;
380
+ entity_id?: string | undefined;
381
+ required_balance?: number | undefined;
382
+ product_id?: string | undefined;
382
383
  customer_data?: any;
383
384
  entity_data?: {
384
385
  feature_id: string;
385
386
  name?: string | undefined;
386
387
  } | undefined;
387
- required_balance?: number | undefined;
388
388
  send_event?: boolean | undefined;
389
389
  with_preview?: boolean | undefined;
390
390
  };
@@ -432,27 +432,27 @@ declare const autumn: (options?: {
432
432
  name?: string | undefined;
433
433
  }>>;
434
434
  }, "customer_id">, "strip", z.ZodTypeAny, {
435
- product_id?: string | undefined;
436
- entity_id?: string | undefined;
437
435
  feature_id?: string | undefined;
436
+ entity_id?: string | undefined;
437
+ required_balance?: number | undefined;
438
+ product_id?: string | undefined;
438
439
  customer_data?: any;
439
440
  entity_data?: {
440
441
  feature_id: string;
441
442
  name?: string | undefined;
442
443
  } | undefined;
443
- required_balance?: number | undefined;
444
444
  send_event?: boolean | undefined;
445
445
  with_preview?: boolean | undefined;
446
446
  }, {
447
- product_id?: string | undefined;
448
- entity_id?: string | undefined;
449
447
  feature_id?: string | undefined;
448
+ entity_id?: string | undefined;
449
+ required_balance?: number | undefined;
450
+ product_id?: string | undefined;
450
451
  customer_data?: any;
451
452
  entity_data?: {
452
453
  feature_id: string;
453
454
  name?: string | undefined;
454
455
  } | undefined;
455
- required_balance?: number | undefined;
456
456
  send_event?: boolean | undefined;
457
457
  with_preview?: boolean | undefined;
458
458
  }>;
@@ -487,9 +487,9 @@ declare const autumn: (options?: {
487
487
  track: {
488
488
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
489
489
  body: {
490
- value?: number | undefined;
491
- entity_id?: string | undefined;
492
490
  feature_id?: string | undefined;
491
+ entity_id?: string | undefined;
492
+ value?: number | undefined;
493
493
  customer_data?: any;
494
494
  entity_data?: any;
495
495
  event_name?: string | undefined;
@@ -529,17 +529,17 @@ declare const autumn: (options?: {
529
529
  idempotency_key: z.ZodOptional<z.ZodString>;
530
530
  entity_data: z.ZodOptional<z.ZodAny>;
531
531
  }, "customer_id">, "strip", z.ZodTypeAny, {
532
- value?: number | undefined;
533
- entity_id?: string | undefined;
534
532
  feature_id?: string | undefined;
533
+ entity_id?: string | undefined;
534
+ value?: number | undefined;
535
535
  customer_data?: any;
536
536
  entity_data?: any;
537
537
  event_name?: string | undefined;
538
538
  idempotency_key?: string | undefined;
539
539
  }, {
540
- value?: number | undefined;
541
- entity_id?: string | undefined;
542
540
  feature_id?: string | undefined;
541
+ entity_id?: string | undefined;
542
+ value?: number | undefined;
543
543
  customer_data?: any;
544
544
  entity_data?: any;
545
545
  event_name?: string | undefined;
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-3OVRYTZX.mjs";
7
- import "./chunk-VBHBF3GP.mjs";
8
- import "./chunk-GO7TVFSN.mjs";
6
+ } from "./chunk-BRZHNRU5.mjs";
9
7
  import "./chunk-TFYLV3GN.mjs";
10
8
  import "./chunk-LL53FE2Z.mjs";
9
+ import "./chunk-VBHBF3GP.mjs";
10
+ import "./chunk-GO7TVFSN.mjs";
11
11
  import "./chunk-33ET4N4V.mjs";
12
12
  import {
13
13
  AttachParamsSchema,
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-3OVRYTZX.mjs";
7
- import "./chunk-VBHBF3GP.mjs";
8
- import "./chunk-GO7TVFSN.mjs";
6
+ } from "./chunk-BRZHNRU5.mjs";
9
7
  import "./chunk-TFYLV3GN.mjs";
10
8
  import "./chunk-LL53FE2Z.mjs";
9
+ import "./chunk-VBHBF3GP.mjs";
10
+ import "./chunk-GO7TVFSN.mjs";
11
11
  import "./chunk-33ET4N4V.mjs";
12
12
  import {
13
13
  Autumn
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-3OVRYTZX.mjs";
7
- import "./chunk-VBHBF3GP.mjs";
8
- import "./chunk-GO7TVFSN.mjs";
6
+ } from "./chunk-BRZHNRU5.mjs";
9
7
  import "./chunk-TFYLV3GN.mjs";
10
8
  import "./chunk-LL53FE2Z.mjs";
9
+ import "./chunk-VBHBF3GP.mjs";
10
+ import "./chunk-GO7TVFSN.mjs";
11
11
  import "./chunk-33ET4N4V.mjs";
12
12
  import {
13
13
  Autumn
@@ -1,4 +1,4 @@
1
- import { A as Autumn } from './referralTypes-B50JL4PY.mjs';
1
+ import { A as Autumn } from './referralTypes-DyuV6oJo.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-dW2HaxKV.js';
1
+ import { A as Autumn } from './referralTypes-zcdPSX-p.js';
2
2
  import { AuthResult } from './utils/AuthFunction.js';
3
3
  import 'zod';
4
4
  import './response-CV6KGWH5.js';
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-3OVRYTZX.mjs";
7
- import "./chunk-VBHBF3GP.mjs";
8
- import "./chunk-GO7TVFSN.mjs";
6
+ } from "./chunk-BRZHNRU5.mjs";
9
7
  import "./chunk-TFYLV3GN.mjs";
10
8
  import "./chunk-LL53FE2Z.mjs";
9
+ import "./chunk-VBHBF3GP.mjs";
10
+ import "./chunk-GO7TVFSN.mjs";
11
11
  import "./chunk-33ET4N4V.mjs";
12
12
  import {
13
13
  Autumn
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-3OVRYTZX.mjs";
7
- import "./chunk-VBHBF3GP.mjs";
8
- import "./chunk-GO7TVFSN.mjs";
6
+ } from "./chunk-BRZHNRU5.mjs";
9
7
  import "./chunk-TFYLV3GN.mjs";
10
8
  import "./chunk-LL53FE2Z.mjs";
9
+ import "./chunk-VBHBF3GP.mjs";
10
+ import "./chunk-GO7TVFSN.mjs";
11
11
  import "./chunk-33ET4N4V.mjs";
12
12
  import {
13
13
  Autumn
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-3OVRYTZX.mjs";
7
- import "./chunk-VBHBF3GP.mjs";
8
- import "./chunk-GO7TVFSN.mjs";
6
+ } from "./chunk-BRZHNRU5.mjs";
9
7
  import "./chunk-TFYLV3GN.mjs";
10
8
  import "./chunk-LL53FE2Z.mjs";
9
+ import "./chunk-VBHBF3GP.mjs";
10
+ import "./chunk-GO7TVFSN.mjs";
11
11
  import "./chunk-33ET4N4V.mjs";
12
12
  import {
13
13
  Autumn
@@ -1,4 +1,4 @@
1
- export { A as Autumn } from './referralTypes-B50JL4PY.mjs';
1
+ export { A as Autumn } from './referralTypes-DyuV6oJo.mjs';
2
2
  import 'zod';
3
3
  import './response-CV6KGWH5.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- export { A as Autumn } from './referralTypes-dW2HaxKV.js';
1
+ export { A as Autumn } from './referralTypes-zcdPSX-p.js';
2
2
  import 'zod';
3
3
  import './response-CV6KGWH5.js';
4
4
 
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-3OVRYTZX.mjs";
7
- import "./chunk-VBHBF3GP.mjs";
8
- import "./chunk-GO7TVFSN.mjs";
6
+ } from "./chunk-BRZHNRU5.mjs";
9
7
  import "./chunk-TFYLV3GN.mjs";
10
8
  import "./chunk-LL53FE2Z.mjs";
9
+ import "./chunk-VBHBF3GP.mjs";
10
+ import "./chunk-GO7TVFSN.mjs";
11
11
  import "./chunk-33ET4N4V.mjs";
12
12
  import {
13
13
  Autumn
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-3OVRYTZX.mjs";
7
- import "./chunk-VBHBF3GP.mjs";
8
- import "./chunk-GO7TVFSN.mjs";
6
+ } from "./chunk-BRZHNRU5.mjs";
9
7
  import "./chunk-TFYLV3GN.mjs";
10
8
  import "./chunk-LL53FE2Z.mjs";
9
+ import "./chunk-VBHBF3GP.mjs";
10
+ import "./chunk-GO7TVFSN.mjs";
11
11
  import "./chunk-33ET4N4V.mjs";
12
12
  import {
13
13
  Autumn
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-3OVRYTZX.mjs";
7
- import "./chunk-VBHBF3GP.mjs";
8
- import "./chunk-GO7TVFSN.mjs";
6
+ } from "./chunk-BRZHNRU5.mjs";
9
7
  import "./chunk-TFYLV3GN.mjs";
10
8
  import "./chunk-LL53FE2Z.mjs";
9
+ import "./chunk-VBHBF3GP.mjs";
10
+ import "./chunk-GO7TVFSN.mjs";
11
11
  import "./chunk-33ET4N4V.mjs";
12
12
  import {
13
13
  Autumn
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createRouterWithOptions
3
- } from "./chunk-3OVRYTZX.mjs";
4
- import "./chunk-VBHBF3GP.mjs";
5
- import "./chunk-GO7TVFSN.mjs";
3
+ } from "./chunk-BRZHNRU5.mjs";
6
4
  import "./chunk-TFYLV3GN.mjs";
7
5
  import "./chunk-LL53FE2Z.mjs";
6
+ import "./chunk-VBHBF3GP.mjs";
7
+ import "./chunk-GO7TVFSN.mjs";
8
8
  import "./chunk-33ET4N4V.mjs";
9
9
  import {
10
10
  Autumn
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createRouterWithOptions
3
- } from "../chunk-3OVRYTZX.mjs";
4
- import "../chunk-VBHBF3GP.mjs";
5
- import "../chunk-GO7TVFSN.mjs";
3
+ } from "../chunk-BRZHNRU5.mjs";
6
4
  import "../chunk-TFYLV3GN.mjs";
7
5
  import "../chunk-LL53FE2Z.mjs";
6
+ import "../chunk-VBHBF3GP.mjs";
7
+ import "../chunk-GO7TVFSN.mjs";
8
8
  import "../chunk-33ET4N4V.mjs";
9
9
  import "../chunk-AREWK25J.mjs";
10
10
  import "../chunk-2TEL6LR5.mjs";