autumn-js 0.1.28 → 0.1.30

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 (89) hide show
  1. package/dist/libraries/backend/better-auth.d.mts +28 -28
  2. package/dist/libraries/backend/better-auth.d.ts +28 -28
  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/{referralTypes-CEksOH8G.d.ts → referralTypes-BKYFqrby.d.ts} +19 -4
  8. package/dist/libraries/backend/{referralTypes-ByxmnQC7.d.mts → referralTypes-DFnfRlx5.d.mts} +19 -4
  9. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  10. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  11. package/dist/libraries/react/AutumnContext.d.mts +1 -1
  12. package/dist/libraries/react/AutumnContext.d.ts +1 -1
  13. package/dist/libraries/react/AutumnContext.mjs +4 -4
  14. package/dist/libraries/react/BaseAutumnProvider.d.mts +1 -1
  15. package/dist/libraries/react/BaseAutumnProvider.d.ts +1 -1
  16. package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
  17. package/dist/libraries/react/{ReactAutumnClient-pSbiEzVv.d.mts → ReactAutumnClient-REGLnA2_.d.mts} +5 -0
  18. package/dist/libraries/react/{ReactAutumnClient-DkACsMN6.d.ts → ReactAutumnClient-c5E5lFNY.d.ts} +5 -0
  19. package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
  20. package/dist/libraries/react/{chunk-UNCW2GSR.mjs → chunk-6YVUPTRM.mjs} +3 -3
  21. package/dist/libraries/react/{chunk-5H5GRS2A.mjs → chunk-7EGNBV4Y.mjs} +1 -1
  22. package/dist/libraries/react/{chunk-CQM7GZ7W.mjs → chunk-AORLHO26.mjs} +1 -1
  23. package/dist/libraries/react/{chunk-U6K76N56.mjs → chunk-FG7UBEFL.mjs} +2 -2
  24. package/dist/libraries/react/{chunk-IHM53O5V.mjs → chunk-GOJRWUAJ.mjs} +1 -1
  25. package/dist/libraries/react/{chunk-YSPIIK66.mjs → chunk-J7QG6LOC.mjs} +1 -1
  26. package/dist/libraries/react/{chunk-XB7NBI37.mjs → chunk-NZQZKVW5.mjs} +2 -2
  27. package/dist/libraries/react/{chunk-LXG4SVBP.mjs → chunk-SMECPAWF.mjs} +24 -24
  28. package/dist/libraries/react/{chunk-OZKZTANZ.mjs → chunk-XBV5QVQK.mjs} +1 -1
  29. package/dist/libraries/react/{chunk-URJXELCF.mjs → chunk-ZRTUO76C.mjs} +1 -1
  30. package/dist/libraries/react/{chunk-YKVHS3GV.mjs → chunk-ZTOBCYYA.mjs} +1 -1
  31. package/dist/libraries/react/client/ConvexAutumnClient.d.mts +1 -1
  32. package/dist/libraries/react/client/ConvexAutumnClient.d.ts +1 -1
  33. package/dist/libraries/react/client/ReactAutumnClient.d.mts +1 -1
  34. package/dist/libraries/react/client/ReactAutumnClient.d.ts +1 -1
  35. package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
  36. package/dist/libraries/react/client/clientCompMethods.d.mts +1 -1
  37. package/dist/libraries/react/client/clientCompMethods.d.ts +1 -1
  38. package/dist/libraries/react/client/clientCusMethods.d.mts +1 -1
  39. package/dist/libraries/react/client/clientCusMethods.d.ts +1 -1
  40. package/dist/libraries/react/client/clientEntityMethods.d.mts +1 -1
  41. package/dist/libraries/react/client/clientEntityMethods.d.ts +1 -1
  42. package/dist/libraries/react/client/clientGenMethods.d.mts +1 -1
  43. package/dist/libraries/react/client/clientGenMethods.d.ts +1 -1
  44. package/dist/libraries/react/client/clientProdMethods.d.mts +1 -1
  45. package/dist/libraries/react/client/clientProdMethods.d.ts +1 -1
  46. package/dist/libraries/react/client/clientReferralMethods.d.mts +1 -1
  47. package/dist/libraries/react/client/clientReferralMethods.d.ts +1 -1
  48. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +22 -22
  49. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +22 -22
  50. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +22 -22
  51. package/dist/libraries/react/components/ui/dialog.mjs +2 -2
  52. package/dist/libraries/react/components/ui/popover.mjs +2 -2
  53. package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +1 -1
  54. package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +1 -1
  55. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +1 -1
  56. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +1 -1
  57. package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
  58. package/dist/libraries/react/hooks/useCustomer.d.mts +1 -1
  59. package/dist/libraries/react/hooks/useCustomer.d.ts +1 -1
  60. package/dist/libraries/react/hooks/useCustomer.mjs +6 -6
  61. package/dist/libraries/react/hooks/useCustomerBase.d.mts +1 -1
  62. package/dist/libraries/react/hooks/useCustomerBase.d.ts +1 -1
  63. package/dist/libraries/react/hooks/useCustomerBase.mjs +5 -5
  64. package/dist/libraries/react/hooks/useEntity.mjs +6 -6
  65. package/dist/libraries/react/hooks/useEntityBase.d.mts +1 -1
  66. package/dist/libraries/react/hooks/useEntityBase.d.ts +1 -1
  67. package/dist/libraries/react/hooks/useEntityBase.mjs +5 -5
  68. package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
  69. package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
  70. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +1 -1
  71. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +1 -1
  72. package/dist/libraries/react/hooks/useProductsBase.d.mts +1 -1
  73. package/dist/libraries/react/hooks/useProductsBase.d.ts +1 -1
  74. package/dist/libraries/react/index.d.mts +5 -0
  75. package/dist/libraries/react/index.d.ts +5 -0
  76. package/dist/next/client/NextAutumnClient.d.mts +1 -1
  77. package/dist/next/client/NextAutumnClient.d.ts +1 -1
  78. package/dist/next/client/{clientEntTypes-DmhBcFyI.d.ts → clientEntTypes-BhQWlwSW.d.ts} +5 -0
  79. package/dist/next/client/{clientEntTypes-BNVsUSBp.d.mts → clientEntTypes-CnQkrPEG.d.mts} +5 -0
  80. package/dist/next/client/hooks/useCustomer.d.mts +1 -1
  81. package/dist/next/client/hooks/useCustomer.d.ts +1 -1
  82. package/dist/next/server/cusActions.d.mts +19 -4
  83. package/dist/next/server/cusActions.d.ts +19 -4
  84. package/dist/sdk/index.d.mts +9 -4
  85. package/dist/sdk/index.d.ts +9 -4
  86. package/package.json +1 -1
  87. package/dist/libraries/react/{chunk-YCHPTRJA.mjs → chunk-C3G5RW3Q.mjs} +3 -3
  88. package/dist/libraries/react/{chunk-JNMZHVHP.mjs → chunk-MDN4L5DT.mjs} +6 -6
  89. package/dist/libraries/react/{chunk-47KEC6LH.mjs → chunk-MHAXHLX4.mjs} +3 -3
@@ -92,14 +92,15 @@ declare const autumn: (options?: {
92
92
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
93
93
  body: {
94
94
  product_id: string;
95
- entity_id?: string | undefined;
96
95
  options?: {
97
96
  feature_id: string;
98
97
  quantity: number;
99
98
  }[] | undefined;
100
99
  product_ids?: string[] | undefined;
101
- success_url?: string | undefined;
100
+ entity_id?: string | undefined;
102
101
  force_checkout?: boolean | undefined;
102
+ invoice?: boolean | undefined;
103
+ success_url?: string | undefined;
103
104
  customer_data?: {
104
105
  name?: string | null | undefined;
105
106
  email?: string | null | undefined;
@@ -108,7 +109,6 @@ declare const autumn: (options?: {
108
109
  entity_data?: any;
109
110
  checkout_session_params?: Record<string, any> | undefined;
110
111
  reward?: string | undefined;
111
- invoice?: boolean | undefined;
112
112
  };
113
113
  } & {
114
114
  method?: "POST" | undefined;
@@ -135,15 +135,16 @@ declare const autumn: (options?: {
135
135
  options: {
136
136
  method: "POST";
137
137
  body: z.ZodObject<{
138
- entity_id: z.ZodOptional<z.ZodString>;
139
- product_id: z.ZodString;
140
138
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
141
139
  feature_id: z.ZodString;
142
140
  quantity: z.ZodNumber;
143
141
  }, z.core.$strip>>>;
142
+ product_id: z.ZodString;
144
143
  product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
- success_url: z.ZodOptional<z.ZodString>;
144
+ entity_id: z.ZodOptional<z.ZodString>;
146
145
  force_checkout: z.ZodOptional<z.ZodBoolean>;
146
+ invoice: z.ZodOptional<z.ZodBoolean>;
147
+ success_url: z.ZodOptional<z.ZodString>;
147
148
  customer_data: z.ZodOptional<z.ZodObject<{
148
149
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
150
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -152,7 +153,6 @@ declare const autumn: (options?: {
152
153
  entity_data: z.ZodOptional<z.ZodAny>;
153
154
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
154
155
  reward: z.ZodOptional<z.ZodString>;
155
- invoice: z.ZodOptional<z.ZodBoolean>;
156
156
  }, z.core.$strip>;
157
157
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
158
158
  session: {
@@ -185,17 +185,17 @@ declare const autumn: (options?: {
185
185
  attach: {
186
186
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
187
187
  body: {
188
- entity_id?: string | undefined;
189
- metadata?: Record<string, string> | undefined;
190
- product_id?: string | undefined;
191
188
  options?: {
192
189
  feature_id: string;
193
190
  quantity: number;
194
191
  }[] | undefined;
192
+ metadata?: Record<string, string> | undefined;
193
+ product_id?: string | undefined;
195
194
  product_ids?: string[] | undefined;
196
- free_trial?: boolean | undefined;
197
- success_url?: string | undefined;
195
+ entity_id?: string | undefined;
198
196
  force_checkout?: boolean | undefined;
197
+ invoice?: boolean | undefined;
198
+ success_url?: string | undefined;
199
199
  customer_data?: {
200
200
  name?: string | null | undefined;
201
201
  email?: string | null | undefined;
@@ -204,7 +204,7 @@ declare const autumn: (options?: {
204
204
  entity_data?: any;
205
205
  checkout_session_params?: Record<string, any> | undefined;
206
206
  reward?: string | undefined;
207
- invoice?: boolean | undefined;
207
+ free_trial?: boolean | undefined;
208
208
  };
209
209
  } & {
210
210
  method?: "POST" | undefined;
@@ -231,17 +231,17 @@ declare const autumn: (options?: {
231
231
  options: {
232
232
  method: "POST";
233
233
  body: z.ZodObject<{
234
- entity_id: z.ZodOptional<z.ZodString>;
235
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
236
- product_id: z.ZodOptional<z.ZodString>;
237
234
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
238
235
  feature_id: z.ZodString;
239
236
  quantity: z.ZodNumber;
240
237
  }, z.core.$strip>>>;
238
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
239
+ product_id: z.ZodOptional<z.ZodString>;
241
240
  product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
242
- free_trial: z.ZodOptional<z.ZodBoolean>;
243
- success_url: z.ZodOptional<z.ZodString>;
241
+ entity_id: z.ZodOptional<z.ZodString>;
244
242
  force_checkout: z.ZodOptional<z.ZodBoolean>;
243
+ invoice: z.ZodOptional<z.ZodBoolean>;
244
+ success_url: z.ZodOptional<z.ZodString>;
245
245
  customer_data: z.ZodOptional<z.ZodObject<{
246
246
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
247
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -250,7 +250,7 @@ declare const autumn: (options?: {
250
250
  entity_data: z.ZodOptional<z.ZodAny>;
251
251
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
252
252
  reward: z.ZodOptional<z.ZodString>;
253
- invoice: z.ZodOptional<z.ZodBoolean>;
253
+ free_trial: z.ZodOptional<z.ZodBoolean>;
254
254
  }, z.core.$strip>;
255
255
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
256
256
  session: {
@@ -283,15 +283,15 @@ declare const autumn: (options?: {
283
283
  check: {
284
284
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
285
285
  body: {
286
- feature_id?: string | undefined;
287
- entity_id?: string | undefined;
288
- required_balance?: number | undefined;
289
286
  product_id?: string | undefined;
287
+ entity_id?: string | undefined;
288
+ feature_id?: string | undefined;
290
289
  customer_data?: any;
291
290
  entity_data?: {
292
291
  feature_id: string;
293
292
  name?: string | undefined;
294
293
  } | undefined;
294
+ required_balance?: number | undefined;
295
295
  send_event?: boolean | undefined;
296
296
  with_preview?: boolean | undefined;
297
297
  };
@@ -320,15 +320,15 @@ declare const autumn: (options?: {
320
320
  options: {
321
321
  method: "POST";
322
322
  body: z.ZodObject<{
323
- feature_id: z.ZodOptional<z.ZodString>;
324
- entity_id: z.ZodOptional<z.ZodString>;
325
- required_balance: z.ZodOptional<z.ZodNumber>;
326
323
  product_id: z.ZodOptional<z.ZodString>;
324
+ entity_id: z.ZodOptional<z.ZodString>;
325
+ feature_id: z.ZodOptional<z.ZodString>;
327
326
  customer_data: z.ZodOptional<z.ZodAny>;
328
327
  entity_data: z.ZodOptional<z.ZodObject<{
329
328
  name: z.ZodOptional<z.ZodString>;
330
329
  feature_id: z.ZodString;
331
330
  }, z.core.$strip>>;
331
+ required_balance: z.ZodOptional<z.ZodNumber>;
332
332
  send_event: z.ZodOptional<z.ZodBoolean>;
333
333
  with_preview: z.ZodOptional<z.ZodBoolean>;
334
334
  }, z.core.$strip>;
@@ -363,8 +363,8 @@ declare const autumn: (options?: {
363
363
  track: {
364
364
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
365
365
  body: {
366
- feature_id?: string | undefined;
367
366
  entity_id?: string | undefined;
367
+ feature_id?: string | undefined;
368
368
  customer_data?: any;
369
369
  entity_data?: any;
370
370
  value?: number | undefined;
@@ -397,8 +397,8 @@ declare const autumn: (options?: {
397
397
  options: {
398
398
  method: "POST";
399
399
  body: z.ZodObject<{
400
- feature_id: z.ZodOptional<z.ZodString>;
401
400
  entity_id: z.ZodOptional<z.ZodString>;
401
+ feature_id: z.ZodOptional<z.ZodString>;
402
402
  customer_data: z.ZodOptional<z.ZodAny>;
403
403
  entity_data: z.ZodOptional<z.ZodAny>;
404
404
  value: z.ZodOptional<z.ZodNumber>;
@@ -466,8 +466,8 @@ declare const autumn: (options?: {
466
466
  options: {
467
467
  method: "POST";
468
468
  body: z.ZodObject<{
469
- entity_id: z.ZodOptional<z.ZodString>;
470
469
  product_id: z.ZodString;
470
+ entity_id: z.ZodOptional<z.ZodString>;
471
471
  cancel_immediately: z.ZodOptional<z.ZodBoolean>;
472
472
  }, z.core.$strip>;
473
473
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
@@ -92,14 +92,15 @@ declare const autumn: (options?: {
92
92
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
93
93
  body: {
94
94
  product_id: string;
95
- entity_id?: string | undefined;
96
95
  options?: {
97
96
  feature_id: string;
98
97
  quantity: number;
99
98
  }[] | undefined;
100
99
  product_ids?: string[] | undefined;
101
- success_url?: string | undefined;
100
+ entity_id?: string | undefined;
102
101
  force_checkout?: boolean | undefined;
102
+ invoice?: boolean | undefined;
103
+ success_url?: string | undefined;
103
104
  customer_data?: {
104
105
  name?: string | null | undefined;
105
106
  email?: string | null | undefined;
@@ -108,7 +109,6 @@ declare const autumn: (options?: {
108
109
  entity_data?: any;
109
110
  checkout_session_params?: Record<string, any> | undefined;
110
111
  reward?: string | undefined;
111
- invoice?: boolean | undefined;
112
112
  };
113
113
  } & {
114
114
  method?: "POST" | undefined;
@@ -135,15 +135,16 @@ declare const autumn: (options?: {
135
135
  options: {
136
136
  method: "POST";
137
137
  body: z.ZodObject<{
138
- entity_id: z.ZodOptional<z.ZodString>;
139
- product_id: z.ZodString;
140
138
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
141
139
  feature_id: z.ZodString;
142
140
  quantity: z.ZodNumber;
143
141
  }, z.core.$strip>>>;
142
+ product_id: z.ZodString;
144
143
  product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
- success_url: z.ZodOptional<z.ZodString>;
144
+ entity_id: z.ZodOptional<z.ZodString>;
146
145
  force_checkout: z.ZodOptional<z.ZodBoolean>;
146
+ invoice: z.ZodOptional<z.ZodBoolean>;
147
+ success_url: z.ZodOptional<z.ZodString>;
147
148
  customer_data: z.ZodOptional<z.ZodObject<{
148
149
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
150
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -152,7 +153,6 @@ declare const autumn: (options?: {
152
153
  entity_data: z.ZodOptional<z.ZodAny>;
153
154
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
154
155
  reward: z.ZodOptional<z.ZodString>;
155
- invoice: z.ZodOptional<z.ZodBoolean>;
156
156
  }, z.core.$strip>;
157
157
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
158
158
  session: {
@@ -185,17 +185,17 @@ declare const autumn: (options?: {
185
185
  attach: {
186
186
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
187
187
  body: {
188
- entity_id?: string | undefined;
189
- metadata?: Record<string, string> | undefined;
190
- product_id?: string | undefined;
191
188
  options?: {
192
189
  feature_id: string;
193
190
  quantity: number;
194
191
  }[] | undefined;
192
+ metadata?: Record<string, string> | undefined;
193
+ product_id?: string | undefined;
195
194
  product_ids?: string[] | undefined;
196
- free_trial?: boolean | undefined;
197
- success_url?: string | undefined;
195
+ entity_id?: string | undefined;
198
196
  force_checkout?: boolean | undefined;
197
+ invoice?: boolean | undefined;
198
+ success_url?: string | undefined;
199
199
  customer_data?: {
200
200
  name?: string | null | undefined;
201
201
  email?: string | null | undefined;
@@ -204,7 +204,7 @@ declare const autumn: (options?: {
204
204
  entity_data?: any;
205
205
  checkout_session_params?: Record<string, any> | undefined;
206
206
  reward?: string | undefined;
207
- invoice?: boolean | undefined;
207
+ free_trial?: boolean | undefined;
208
208
  };
209
209
  } & {
210
210
  method?: "POST" | undefined;
@@ -231,17 +231,17 @@ declare const autumn: (options?: {
231
231
  options: {
232
232
  method: "POST";
233
233
  body: z.ZodObject<{
234
- entity_id: z.ZodOptional<z.ZodString>;
235
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
236
- product_id: z.ZodOptional<z.ZodString>;
237
234
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
238
235
  feature_id: z.ZodString;
239
236
  quantity: z.ZodNumber;
240
237
  }, z.core.$strip>>>;
238
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
239
+ product_id: z.ZodOptional<z.ZodString>;
241
240
  product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
242
- free_trial: z.ZodOptional<z.ZodBoolean>;
243
- success_url: z.ZodOptional<z.ZodString>;
241
+ entity_id: z.ZodOptional<z.ZodString>;
244
242
  force_checkout: z.ZodOptional<z.ZodBoolean>;
243
+ invoice: z.ZodOptional<z.ZodBoolean>;
244
+ success_url: z.ZodOptional<z.ZodString>;
245
245
  customer_data: z.ZodOptional<z.ZodObject<{
246
246
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
247
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -250,7 +250,7 @@ declare const autumn: (options?: {
250
250
  entity_data: z.ZodOptional<z.ZodAny>;
251
251
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
252
252
  reward: z.ZodOptional<z.ZodString>;
253
- invoice: z.ZodOptional<z.ZodBoolean>;
253
+ free_trial: z.ZodOptional<z.ZodBoolean>;
254
254
  }, z.core.$strip>;
255
255
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
256
256
  session: {
@@ -283,15 +283,15 @@ declare const autumn: (options?: {
283
283
  check: {
284
284
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
285
285
  body: {
286
- feature_id?: string | undefined;
287
- entity_id?: string | undefined;
288
- required_balance?: number | undefined;
289
286
  product_id?: string | undefined;
287
+ entity_id?: string | undefined;
288
+ feature_id?: string | undefined;
290
289
  customer_data?: any;
291
290
  entity_data?: {
292
291
  feature_id: string;
293
292
  name?: string | undefined;
294
293
  } | undefined;
294
+ required_balance?: number | undefined;
295
295
  send_event?: boolean | undefined;
296
296
  with_preview?: boolean | undefined;
297
297
  };
@@ -320,15 +320,15 @@ declare const autumn: (options?: {
320
320
  options: {
321
321
  method: "POST";
322
322
  body: z.ZodObject<{
323
- feature_id: z.ZodOptional<z.ZodString>;
324
- entity_id: z.ZodOptional<z.ZodString>;
325
- required_balance: z.ZodOptional<z.ZodNumber>;
326
323
  product_id: z.ZodOptional<z.ZodString>;
324
+ entity_id: z.ZodOptional<z.ZodString>;
325
+ feature_id: z.ZodOptional<z.ZodString>;
327
326
  customer_data: z.ZodOptional<z.ZodAny>;
328
327
  entity_data: z.ZodOptional<z.ZodObject<{
329
328
  name: z.ZodOptional<z.ZodString>;
330
329
  feature_id: z.ZodString;
331
330
  }, z.core.$strip>>;
331
+ required_balance: z.ZodOptional<z.ZodNumber>;
332
332
  send_event: z.ZodOptional<z.ZodBoolean>;
333
333
  with_preview: z.ZodOptional<z.ZodBoolean>;
334
334
  }, z.core.$strip>;
@@ -363,8 +363,8 @@ declare const autumn: (options?: {
363
363
  track: {
364
364
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
365
365
  body: {
366
- feature_id?: string | undefined;
367
366
  entity_id?: string | undefined;
367
+ feature_id?: string | undefined;
368
368
  customer_data?: any;
369
369
  entity_data?: any;
370
370
  value?: number | undefined;
@@ -397,8 +397,8 @@ declare const autumn: (options?: {
397
397
  options: {
398
398
  method: "POST";
399
399
  body: z.ZodObject<{
400
- feature_id: z.ZodOptional<z.ZodString>;
401
400
  entity_id: z.ZodOptional<z.ZodString>;
401
+ feature_id: z.ZodOptional<z.ZodString>;
402
402
  customer_data: z.ZodOptional<z.ZodAny>;
403
403
  entity_data: z.ZodOptional<z.ZodAny>;
404
404
  value: z.ZodOptional<z.ZodNumber>;
@@ -466,8 +466,8 @@ declare const autumn: (options?: {
466
466
  options: {
467
467
  method: "POST";
468
468
  body: z.ZodObject<{
469
- entity_id: z.ZodOptional<z.ZodString>;
470
469
  product_id: z.ZodString;
470
+ entity_id: z.ZodOptional<z.ZodString>;
471
471
  cancel_immediately: z.ZodOptional<z.ZodBoolean>;
472
472
  }, z.core.$strip>;
473
473
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
@@ -1,4 +1,4 @@
1
- import { A as Autumn } from './referralTypes-ByxmnQC7.mjs';
1
+ import { A as Autumn } from './referralTypes-DFnfRlx5.mjs';
2
2
  import { AuthResult } from './utils/AuthFunction.mjs';
3
3
  import 'zod/v4';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { A as Autumn } from './referralTypes-CEksOH8G.js';
1
+ import { A as Autumn } from './referralTypes-BKYFqrby.js';
2
2
  import { AuthResult } from './utils/AuthFunction.js';
3
3
  import 'zod/v4';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { A as Autumn } from './referralTypes-ByxmnQC7.mjs';
1
+ export { A as Autumn } from './referralTypes-DFnfRlx5.mjs';
2
2
  import 'zod/v4';
3
3
  import 'zod';
4
4
  import './response-CV6KGWH5.mjs';
@@ -1,4 +1,4 @@
1
- export { A as Autumn } from './referralTypes-CEksOH8G.js';
1
+ export { A as Autumn } from './referralTypes-BKYFqrby.js';
2
2
  import 'zod/v4';
3
3
  import 'zod';
4
4
  import './response-CV6KGWH5.js';
@@ -539,8 +539,8 @@ declare class Autumn {
539
539
  delete: (customer_id: string, entity_id: string) => Promise<Result<DeleteEntityResult, AutumnError>>;
540
540
  };
541
541
  static referrals: {
542
- createCode: (params: CreateReferralCodeParams) => Promise<Result<any, AutumnError>>;
543
- redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
542
+ createCode: (params: CreateReferralCodeParams) => Promise<Result<CreateReferralCodeResult, AutumnError>>;
543
+ redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<RedeemReferralCodeResult, AutumnError>>;
544
544
  };
545
545
  static features: {
546
546
  list: () => Promise<Result<{
@@ -575,8 +575,8 @@ declare class Autumn {
575
575
  delete: (customer_id: string, entity_id: string) => Promise<Result<DeleteEntityResult, AutumnError>>;
576
576
  };
577
577
  referrals: {
578
- createCode: (params: CreateReferralCodeParams) => Promise<Result<any, AutumnError>>;
579
- redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
578
+ createCode: (params: CreateReferralCodeParams) => Promise<Result<CreateReferralCodeResult, AutumnError>>;
579
+ redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<RedeemReferralCodeResult, AutumnError>>;
580
580
  };
581
581
  features: {
582
582
  list: () => Promise<Result<{
@@ -859,10 +859,25 @@ declare const CreateReferralCodeParamsSchema: z.ZodObject<{
859
859
  program_id: z.ZodString;
860
860
  }, z.core.$strip>;
861
861
  type CreateReferralCodeParams = z.infer<typeof CreateReferralCodeParamsSchema>;
862
+ interface CreateReferralCodeResult {
863
+ code: string;
864
+ customer_id: string;
865
+ created_at: number;
866
+ }
862
867
  declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
863
868
  code: z.ZodString;
864
869
  customer_id: z.ZodString;
865
870
  }, z.core.$strip>;
866
871
  type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
872
+ interface RedeemReferralCodeResult {
873
+ id: string;
874
+ customer_id: string;
875
+ reward_id: string;
876
+ referrer: {
877
+ id: string;
878
+ name: string | null;
879
+ email: string | null;
880
+ };
881
+ }
867
882
 
868
883
  export { Autumn as A, type CustomerData as C };
@@ -539,8 +539,8 @@ declare class Autumn {
539
539
  delete: (customer_id: string, entity_id: string) => Promise<Result<DeleteEntityResult, AutumnError>>;
540
540
  };
541
541
  static referrals: {
542
- createCode: (params: CreateReferralCodeParams) => Promise<Result<any, AutumnError>>;
543
- redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
542
+ createCode: (params: CreateReferralCodeParams) => Promise<Result<CreateReferralCodeResult, AutumnError>>;
543
+ redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<RedeemReferralCodeResult, AutumnError>>;
544
544
  };
545
545
  static features: {
546
546
  list: () => Promise<Result<{
@@ -575,8 +575,8 @@ declare class Autumn {
575
575
  delete: (customer_id: string, entity_id: string) => Promise<Result<DeleteEntityResult, AutumnError>>;
576
576
  };
577
577
  referrals: {
578
- createCode: (params: CreateReferralCodeParams) => Promise<Result<any, AutumnError>>;
579
- redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
578
+ createCode: (params: CreateReferralCodeParams) => Promise<Result<CreateReferralCodeResult, AutumnError>>;
579
+ redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<RedeemReferralCodeResult, AutumnError>>;
580
580
  };
581
581
  features: {
582
582
  list: () => Promise<Result<{
@@ -859,10 +859,25 @@ declare const CreateReferralCodeParamsSchema: z.ZodObject<{
859
859
  program_id: z.ZodString;
860
860
  }, z.core.$strip>;
861
861
  type CreateReferralCodeParams = z.infer<typeof CreateReferralCodeParamsSchema>;
862
+ interface CreateReferralCodeResult {
863
+ code: string;
864
+ customer_id: string;
865
+ created_at: number;
866
+ }
862
867
  declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
863
868
  code: z.ZodString;
864
869
  customer_id: z.ZodString;
865
870
  }, z.core.$strip>;
866
871
  type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
872
+ interface RedeemReferralCodeResult {
873
+ id: string;
874
+ customer_id: string;
875
+ reward_id: string;
876
+ referrer: {
877
+ id: string;
878
+ name: string | null;
879
+ email: string | null;
880
+ };
881
+ }
867
882
 
868
883
  export { Autumn as A, type CustomerData as C };
@@ -1,4 +1,4 @@
1
- import { A as Autumn, C as CustomerData } from '../referralTypes-ByxmnQC7.mjs';
1
+ import { A as Autumn, C as CustomerData } from '../referralTypes-DFnfRlx5.mjs';
2
2
  import { AuthResult } from './AuthFunction.mjs';
3
3
  import 'zod/v4';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { A as Autumn, C as CustomerData } from '../referralTypes-CEksOH8G.js';
1
+ import { A as Autumn, C as CustomerData } from '../referralTypes-BKYFqrby.js';
2
2
  import { AuthResult } from './AuthFunction.js';
3
3
  import 'zod/v4';
4
4
  import 'zod';
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import { A as AutumnClient } from './ReactAutumnClient-pSbiEzVv.mjs';
2
+ import { A as AutumnClient } from './ReactAutumnClient-REGLnA2_.mjs';
3
3
  import './client/types/clientEntTypes.mjs';
4
4
  import './client/types/clientGenTypes.mjs';
5
5
  import 'zod/v4';
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import { A as AutumnClient } from './ReactAutumnClient-DkACsMN6.js';
2
+ import { A as AutumnClient } from './ReactAutumnClient-c5E5lFNY.js';
3
3
  import './client/types/clientEntTypes.js';
4
4
  import './client/types/clientGenTypes.js';
5
5
  import 'zod/v4';
@@ -3,13 +3,13 @@
3
3
  import {
4
4
  AutumnContext,
5
5
  useAutumnContext
6
- } from "./chunk-CQM7GZ7W.mjs";
7
- import "./chunk-JNMZHVHP.mjs";
8
- import "./chunk-JVCOY7ZL.mjs";
9
- import "./chunk-CIBQ4BJU.mjs";
6
+ } from "./chunk-AORLHO26.mjs";
7
+ import "./chunk-MDN4L5DT.mjs";
10
8
  import "./chunk-XNYDR6KC.mjs";
11
9
  import "./chunk-V575SGOW.mjs";
12
10
  import "./chunk-ZV4RPZTM.mjs";
11
+ import "./chunk-JVCOY7ZL.mjs";
12
+ import "./chunk-CIBQ4BJU.mjs";
13
13
  import "./chunk-QRCWNK2T.mjs";
14
14
  import "./chunk-VTGR7VVK.mjs";
15
15
  import "./chunk-WFFVOEUG.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 { I as IAutumnClient } from './ReactAutumnClient-pSbiEzVv.mjs';
3
+ import { I as IAutumnClient } from './ReactAutumnClient-REGLnA2_.mjs';
4
4
  import './client/types/clientEntTypes.mjs';
5
5
  import './client/types/clientGenTypes.mjs';
6
6
  import 'zod/v4';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default from 'react';
3
- import { I as IAutumnClient } from './ReactAutumnClient-DkACsMN6.js';
3
+ import { I as IAutumnClient } from './ReactAutumnClient-c5E5lFNY.js';
4
4
  import './client/types/clientEntTypes.js';
5
5
  import './client/types/clientGenTypes.js';
6
6
  import 'zod/v4';
@@ -3,19 +3,19 @@
3
3
  "use client";
4
4
  import {
5
5
  BaseAutumnProvider
6
- } from "./chunk-5H5GRS2A.mjs";
6
+ } from "./chunk-7EGNBV4Y.mjs";
7
7
  import "./chunk-RFSQBGLO.mjs";
8
- import "./chunk-IHM53O5V.mjs";
8
+ import "./chunk-GOJRWUAJ.mjs";
9
9
  import "./chunk-LC75KITX.mjs";
10
10
  import "./chunk-TL3Q72GK.mjs";
11
11
  import "./chunk-NRR6GSHG.mjs";
12
- import "./chunk-CQM7GZ7W.mjs";
13
- import "./chunk-JNMZHVHP.mjs";
14
- import "./chunk-JVCOY7ZL.mjs";
15
- import "./chunk-CIBQ4BJU.mjs";
12
+ import "./chunk-AORLHO26.mjs";
13
+ import "./chunk-MDN4L5DT.mjs";
16
14
  import "./chunk-XNYDR6KC.mjs";
17
15
  import "./chunk-V575SGOW.mjs";
18
16
  import "./chunk-ZV4RPZTM.mjs";
17
+ import "./chunk-JVCOY7ZL.mjs";
18
+ import "./chunk-CIBQ4BJU.mjs";
19
19
  import "./chunk-QRCWNK2T.mjs";
20
20
  import "./chunk-VTGR7VVK.mjs";
21
21
  import "./chunk-WFFVOEUG.mjs";
@@ -34,6 +34,11 @@ interface RedeemReferralCodeResult {
34
34
  id: string;
35
35
  customer_id: string;
36
36
  reward_id: string;
37
+ referrer: {
38
+ id: string;
39
+ name: string | null;
40
+ email: string | null;
41
+ };
37
42
  }
38
43
 
39
44
  interface ErrorResponse {
@@ -34,6 +34,11 @@ interface RedeemReferralCodeResult {
34
34
  id: string;
35
35
  customer_id: string;
36
36
  reward_id: string;
37
+ referrer: {
38
+ id: string;
39
+ name: string | null;
40
+ email: string | null;
41
+ };
37
42
  }
38
43
 
39
44
  interface ErrorResponse {
@@ -2,21 +2,21 @@
2
2
 
3
3
  import {
4
4
  ReactAutumnProvider
5
- } from "./chunk-UNCW2GSR.mjs";
6
- import "./chunk-5H5GRS2A.mjs";
5
+ } from "./chunk-6YVUPTRM.mjs";
6
+ import "./chunk-7EGNBV4Y.mjs";
7
7
  import "./chunk-RFSQBGLO.mjs";
8
- import "./chunk-IHM53O5V.mjs";
8
+ import "./chunk-GOJRWUAJ.mjs";
9
9
  import "./chunk-LC75KITX.mjs";
10
10
  import "./chunk-TL3Q72GK.mjs";
11
11
  import "./chunk-NRR6GSHG.mjs";
12
- import "./chunk-CQM7GZ7W.mjs";
12
+ import "./chunk-AORLHO26.mjs";
13
13
  import "./chunk-XIBQRZXG.mjs";
14
- import "./chunk-JNMZHVHP.mjs";
15
- import "./chunk-JVCOY7ZL.mjs";
16
- import "./chunk-CIBQ4BJU.mjs";
14
+ import "./chunk-MDN4L5DT.mjs";
17
15
  import "./chunk-XNYDR6KC.mjs";
18
16
  import "./chunk-V575SGOW.mjs";
19
17
  import "./chunk-ZV4RPZTM.mjs";
18
+ import "./chunk-JVCOY7ZL.mjs";
19
+ import "./chunk-CIBQ4BJU.mjs";
20
20
  import "./chunk-QRCWNK2T.mjs";
21
21
  import "./chunk-VTGR7VVK.mjs";
22
22
  import "./chunk-WFFVOEUG.mjs";