autumn-js 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) 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/{referralTypes-BOsjdpOb.d.mts → referralTypes-DSv2hpmP.d.mts} +4 -40
  8. package/dist/libraries/backend/{referralTypes-DcfU8B6R.d.ts → referralTypes-DdKvvqSK.d.ts} +4 -40
  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 +6 -6
  12. package/dist/libraries/react/AutumnContext.d.ts +6 -6
  13. package/dist/libraries/react/AutumnContext.js +4 -2
  14. package/dist/libraries/react/AutumnContext.mjs +4 -4
  15. package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
  16. package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
  17. package/dist/libraries/react/BaseAutumnProvider.js +4 -2
  18. package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
  19. package/dist/libraries/react/{ReactAutumnClient-CIAkiqwV.d.ts → ReactAutumnClient-CfDtucnL.d.ts} +5 -5
  20. package/dist/libraries/react/{ReactAutumnClient-zBxnpPLM.d.mts → ReactAutumnClient-IFdMWiu5.d.mts} +5 -5
  21. package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
  22. package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
  23. package/dist/libraries/react/ReactAutumnProvider.js +4 -2
  24. package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
  25. package/dist/libraries/react/{attachTypes-Cuxn1ThG.d.mts → attachTypes-C5gcbNrS.d.mts} +1 -1
  26. package/dist/libraries/react/{attachTypes-BQaZHr5e.d.ts → attachTypes-CLK4jfuj.d.ts} +1 -1
  27. package/dist/libraries/react/{chunk-RK4NRHHQ.mjs → chunk-52HVA7E4.mjs} +1 -1
  28. package/dist/libraries/react/{chunk-7A2PZDUO.mjs → chunk-5YM6QT7V.mjs} +19 -19
  29. package/dist/libraries/react/{chunk-CMUWZZWV.mjs → chunk-643J45JV.mjs} +2 -2
  30. package/dist/libraries/react/{chunk-VGNA76RG.mjs → chunk-7JU3XHKL.mjs} +1 -1
  31. package/dist/libraries/react/{chunk-6X76WFOV.mjs → chunk-BT5OY2CA.mjs} +1 -1
  32. package/dist/libraries/react/{chunk-26K62U62.mjs → chunk-M3SON3SH.mjs} +2 -2
  33. package/dist/libraries/react/{chunk-HNIU2WNT.mjs → chunk-OSYZMMQC.mjs} +1 -1
  34. package/dist/libraries/react/{chunk-ROKCGZ77.mjs → chunk-RP56DI4O.mjs} +1 -1
  35. package/dist/libraries/react/{chunk-TE2MOBO7.mjs → chunk-SWVRRNIW.mjs} +1 -1
  36. package/dist/libraries/react/{chunk-JTYEHM27.mjs → chunk-TOAZUTY6.mjs} +10 -8
  37. package/dist/libraries/react/{chunk-5RTUQSYZ.mjs → chunk-WBBWID5F.mjs} +1 -1
  38. package/dist/libraries/react/{chunk-QNMB7QR6.mjs → chunk-Z7REFVM4.mjs} +3 -3
  39. package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -6
  40. package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -6
  41. package/dist/libraries/react/client/ReactAutumnClient.js +4 -2
  42. package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
  43. package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
  44. package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
  45. package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
  46. package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
  47. package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
  48. package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
  49. package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
  50. package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
  51. package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
  52. package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
  53. package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
  54. package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
  55. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.css +3 -0
  56. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +2 -2
  57. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +2 -2
  58. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +9 -7
  59. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +17 -17
  60. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +2 -2
  61. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +2 -2
  62. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +1 -1
  63. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.ts +1 -1
  64. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.css +3 -0
  65. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +4 -2
  66. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +17 -17
  67. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
  68. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
  69. package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +3 -0
  70. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  71. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  72. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +9 -7
  73. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +17 -17
  74. package/dist/libraries/react/{cusTypes-B2m4-oz4.d.mts → cusTypes-CBapqjzm.d.mts} +1 -1
  75. package/dist/libraries/react/{cusTypes-lMnznWYJ.d.ts → cusTypes-D13MXEN7.d.ts} +1 -1
  76. package/dist/libraries/react/{entTypes-D-gn1jj2.d.mts → entTypes-C1bM1Zpv.d.mts} +1 -1
  77. package/dist/libraries/react/{entTypes-WMQRyYAv.d.ts → entTypes-DbIrfEpl.d.ts} +1 -1
  78. package/dist/libraries/react/{genTypes-DdYlVEah.d.mts → genTypes-C_ilxndU.d.mts} +1 -1
  79. package/dist/libraries/react/{genTypes-aPPwPimh.d.ts → genTypes-DjcQWIOM.d.ts} +1 -1
  80. package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
  81. package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
  82. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +6 -6
  83. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +6 -6
  84. package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
  85. package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
  86. package/dist/libraries/react/hooks/useAnalytics.js +4 -2
  87. package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
  88. package/dist/libraries/react/hooks/useCustomer.d.mts +6 -6
  89. package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
  90. package/dist/libraries/react/hooks/useCustomer.js +4 -2
  91. package/dist/libraries/react/hooks/useCustomer.mjs +6 -6
  92. package/dist/libraries/react/hooks/useCustomerBase.d.mts +6 -6
  93. package/dist/libraries/react/hooks/useCustomerBase.d.ts +6 -6
  94. package/dist/libraries/react/hooks/useCustomerBase.js +4 -2
  95. package/dist/libraries/react/hooks/useCustomerBase.mjs +5 -5
  96. package/dist/libraries/react/hooks/useEntity.d.mts +4 -4
  97. package/dist/libraries/react/hooks/useEntity.d.ts +4 -4
  98. package/dist/libraries/react/hooks/useEntity.js +4 -2
  99. package/dist/libraries/react/hooks/useEntity.mjs +6 -6
  100. package/dist/libraries/react/hooks/useEntityBase.d.mts +6 -6
  101. package/dist/libraries/react/hooks/useEntityBase.d.ts +6 -6
  102. package/dist/libraries/react/hooks/useEntityBase.js +4 -2
  103. package/dist/libraries/react/hooks/useEntityBase.mjs +5 -5
  104. package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
  105. package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
  106. package/dist/libraries/react/hooks/usePaywall.js +4 -2
  107. package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
  108. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  109. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  110. package/dist/libraries/react/hooks/usePricingTable.js +4 -2
  111. package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
  112. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
  113. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
  114. package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -6
  115. package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
  116. package/dist/libraries/react/index.js +10 -8
  117. package/dist/libraries/react/index.mjs +10 -8
  118. package/dist/libraries/react/{prodTypes-C8xRoBP7.d.ts → prodTypes-B8NdKyKo.d.mts} +1 -1
  119. package/dist/libraries/react/{prodTypes-C8xRoBP7.d.mts → prodTypes-B8NdKyKo.d.ts} +1 -1
  120. package/dist/next/server/cusActions.d.mts +4 -40
  121. package/dist/next/server/cusActions.d.ts +4 -40
  122. package/dist/sdk/index.d.mts +4 -40
  123. package/dist/sdk/index.d.ts +4 -40
  124. package/dist/styles/global.css +3 -0
  125. package/package.json +1 -1
@@ -92,14 +92,13 @@ 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;
95
96
  options?: {
96
97
  feature_id: string;
97
98
  quantity: number;
98
99
  }[] | undefined;
99
- entity_id?: string | undefined;
100
- force_checkout?: boolean | undefined;
101
- invoice?: boolean | undefined;
102
100
  success_url?: string | undefined;
101
+ force_checkout?: boolean | undefined;
103
102
  customer_data?: {
104
103
  name?: string | null | undefined;
105
104
  email?: string | null | undefined;
@@ -108,6 +107,7 @@ declare const autumn: (options?: {
108
107
  entity_data?: any;
109
108
  checkout_session_params?: Record<string, any> | undefined;
110
109
  reward?: string | undefined;
110
+ invoice?: boolean | undefined;
111
111
  };
112
112
  } & {
113
113
  method?: "POST" | undefined;
@@ -134,15 +134,14 @@ declare const autumn: (options?: {
134
134
  options: {
135
135
  method: "POST";
136
136
  body: z.ZodObject<{
137
+ entity_id: z.ZodOptional<z.ZodString>;
138
+ product_id: z.ZodString;
137
139
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
140
  feature_id: z.ZodString;
139
141
  quantity: z.ZodNumber;
140
142
  }, z.core.$strip>>>;
141
- product_id: z.ZodString;
142
- entity_id: z.ZodOptional<z.ZodString>;
143
- force_checkout: z.ZodOptional<z.ZodBoolean>;
144
- invoice: z.ZodOptional<z.ZodBoolean>;
145
143
  success_url: z.ZodOptional<z.ZodString>;
144
+ force_checkout: z.ZodOptional<z.ZodBoolean>;
146
145
  customer_data: z.ZodOptional<z.ZodObject<{
147
146
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
147
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -151,6 +150,7 @@ declare const autumn: (options?: {
151
150
  entity_data: z.ZodOptional<z.ZodAny>;
152
151
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
153
152
  reward: z.ZodOptional<z.ZodString>;
153
+ invoice: z.ZodOptional<z.ZodBoolean>;
154
154
  }, z.core.$strip>;
155
155
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
156
156
  session: {
@@ -183,16 +183,17 @@ declare const autumn: (options?: {
183
183
  attach: {
184
184
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
185
185
  body: {
186
+ entity_id?: string | undefined;
187
+ metadata?: Record<string, string> | undefined;
188
+ product_id?: string | undefined;
186
189
  options?: {
187
190
  feature_id: string;
188
191
  quantity: number;
189
192
  }[] | undefined;
190
- metadata?: Record<string, string> | undefined;
191
- product_id?: string | undefined;
192
- entity_id?: string | undefined;
193
- force_checkout?: boolean | undefined;
194
- invoice?: boolean | undefined;
193
+ product_ids?: string[] | undefined;
194
+ free_trial?: boolean | undefined;
195
195
  success_url?: string | undefined;
196
+ force_checkout?: boolean | undefined;
196
197
  customer_data?: {
197
198
  name?: string | null | undefined;
198
199
  email?: string | null | undefined;
@@ -201,8 +202,7 @@ declare const autumn: (options?: {
201
202
  entity_data?: any;
202
203
  checkout_session_params?: Record<string, any> | undefined;
203
204
  reward?: string | undefined;
204
- product_ids?: string[] | undefined;
205
- free_trial?: boolean | undefined;
205
+ invoice?: boolean | undefined;
206
206
  };
207
207
  } & {
208
208
  method?: "POST" | undefined;
@@ -229,16 +229,17 @@ declare const autumn: (options?: {
229
229
  options: {
230
230
  method: "POST";
231
231
  body: z.ZodObject<{
232
+ entity_id: z.ZodOptional<z.ZodString>;
233
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
234
+ product_id: z.ZodOptional<z.ZodString>;
232
235
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
233
236
  feature_id: z.ZodString;
234
237
  quantity: z.ZodNumber;
235
238
  }, z.core.$strip>>>;
236
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
237
- product_id: z.ZodOptional<z.ZodString>;
238
- entity_id: z.ZodOptional<z.ZodString>;
239
- force_checkout: z.ZodOptional<z.ZodBoolean>;
240
- invoice: z.ZodOptional<z.ZodBoolean>;
239
+ product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
240
+ free_trial: z.ZodOptional<z.ZodBoolean>;
241
241
  success_url: z.ZodOptional<z.ZodString>;
242
+ force_checkout: z.ZodOptional<z.ZodBoolean>;
242
243
  customer_data: z.ZodOptional<z.ZodObject<{
243
244
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
245
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -247,8 +248,7 @@ declare const autumn: (options?: {
247
248
  entity_data: z.ZodOptional<z.ZodAny>;
248
249
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
249
250
  reward: z.ZodOptional<z.ZodString>;
250
- product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
251
- free_trial: z.ZodOptional<z.ZodBoolean>;
251
+ invoice: z.ZodOptional<z.ZodBoolean>;
252
252
  }, z.core.$strip>;
253
253
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
254
254
  session: {
@@ -281,15 +281,15 @@ declare const autumn: (options?: {
281
281
  check: {
282
282
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
283
283
  body: {
284
- product_id?: string | undefined;
285
- entity_id?: string | undefined;
286
284
  feature_id?: string | undefined;
285
+ entity_id?: string | undefined;
286
+ required_balance?: number | undefined;
287
+ product_id?: string | undefined;
287
288
  customer_data?: any;
288
289
  entity_data?: {
289
290
  feature_id: string;
290
291
  name?: string | undefined;
291
292
  } | undefined;
292
- required_balance?: number | undefined;
293
293
  send_event?: boolean | undefined;
294
294
  with_preview?: boolean | undefined;
295
295
  };
@@ -318,15 +318,15 @@ declare const autumn: (options?: {
318
318
  options: {
319
319
  method: "POST";
320
320
  body: z.ZodObject<{
321
- product_id: z.ZodOptional<z.ZodString>;
322
- entity_id: z.ZodOptional<z.ZodString>;
323
321
  feature_id: z.ZodOptional<z.ZodString>;
322
+ entity_id: z.ZodOptional<z.ZodString>;
323
+ required_balance: z.ZodOptional<z.ZodNumber>;
324
+ product_id: z.ZodOptional<z.ZodString>;
324
325
  customer_data: z.ZodOptional<z.ZodAny>;
325
326
  entity_data: z.ZodOptional<z.ZodObject<{
326
327
  name: z.ZodOptional<z.ZodString>;
327
328
  feature_id: z.ZodString;
328
329
  }, z.core.$strip>>;
329
- required_balance: z.ZodOptional<z.ZodNumber>;
330
330
  send_event: z.ZodOptional<z.ZodBoolean>;
331
331
  with_preview: z.ZodOptional<z.ZodBoolean>;
332
332
  }, z.core.$strip>;
@@ -361,8 +361,8 @@ declare const autumn: (options?: {
361
361
  track: {
362
362
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
363
363
  body: {
364
- entity_id?: string | undefined;
365
364
  feature_id?: string | undefined;
365
+ entity_id?: string | undefined;
366
366
  customer_data?: any;
367
367
  entity_data?: any;
368
368
  value?: number | undefined;
@@ -394,8 +394,8 @@ declare const autumn: (options?: {
394
394
  options: {
395
395
  method: "POST";
396
396
  body: z.ZodObject<{
397
- entity_id: z.ZodOptional<z.ZodString>;
398
397
  feature_id: z.ZodOptional<z.ZodString>;
398
+ entity_id: z.ZodOptional<z.ZodString>;
399
399
  customer_data: z.ZodOptional<z.ZodAny>;
400
400
  entity_data: z.ZodOptional<z.ZodAny>;
401
401
  value: z.ZodOptional<z.ZodNumber>;
@@ -462,8 +462,8 @@ declare const autumn: (options?: {
462
462
  options: {
463
463
  method: "POST";
464
464
  body: z.ZodObject<{
465
- product_id: z.ZodString;
466
465
  entity_id: z.ZodOptional<z.ZodString>;
466
+ product_id: z.ZodString;
467
467
  cancel_immediately: z.ZodOptional<z.ZodBoolean>;
468
468
  }, z.core.$strip>;
469
469
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
@@ -92,14 +92,13 @@ 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;
95
96
  options?: {
96
97
  feature_id: string;
97
98
  quantity: number;
98
99
  }[] | undefined;
99
- entity_id?: string | undefined;
100
- force_checkout?: boolean | undefined;
101
- invoice?: boolean | undefined;
102
100
  success_url?: string | undefined;
101
+ force_checkout?: boolean | undefined;
103
102
  customer_data?: {
104
103
  name?: string | null | undefined;
105
104
  email?: string | null | undefined;
@@ -108,6 +107,7 @@ declare const autumn: (options?: {
108
107
  entity_data?: any;
109
108
  checkout_session_params?: Record<string, any> | undefined;
110
109
  reward?: string | undefined;
110
+ invoice?: boolean | undefined;
111
111
  };
112
112
  } & {
113
113
  method?: "POST" | undefined;
@@ -134,15 +134,14 @@ declare const autumn: (options?: {
134
134
  options: {
135
135
  method: "POST";
136
136
  body: z.ZodObject<{
137
+ entity_id: z.ZodOptional<z.ZodString>;
138
+ product_id: z.ZodString;
137
139
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
140
  feature_id: z.ZodString;
139
141
  quantity: z.ZodNumber;
140
142
  }, z.core.$strip>>>;
141
- product_id: z.ZodString;
142
- entity_id: z.ZodOptional<z.ZodString>;
143
- force_checkout: z.ZodOptional<z.ZodBoolean>;
144
- invoice: z.ZodOptional<z.ZodBoolean>;
145
143
  success_url: z.ZodOptional<z.ZodString>;
144
+ force_checkout: z.ZodOptional<z.ZodBoolean>;
146
145
  customer_data: z.ZodOptional<z.ZodObject<{
147
146
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
147
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -151,6 +150,7 @@ declare const autumn: (options?: {
151
150
  entity_data: z.ZodOptional<z.ZodAny>;
152
151
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
153
152
  reward: z.ZodOptional<z.ZodString>;
153
+ invoice: z.ZodOptional<z.ZodBoolean>;
154
154
  }, z.core.$strip>;
155
155
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
156
156
  session: {
@@ -183,16 +183,17 @@ declare const autumn: (options?: {
183
183
  attach: {
184
184
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
185
185
  body: {
186
+ entity_id?: string | undefined;
187
+ metadata?: Record<string, string> | undefined;
188
+ product_id?: string | undefined;
186
189
  options?: {
187
190
  feature_id: string;
188
191
  quantity: number;
189
192
  }[] | undefined;
190
- metadata?: Record<string, string> | undefined;
191
- product_id?: string | undefined;
192
- entity_id?: string | undefined;
193
- force_checkout?: boolean | undefined;
194
- invoice?: boolean | undefined;
193
+ product_ids?: string[] | undefined;
194
+ free_trial?: boolean | undefined;
195
195
  success_url?: string | undefined;
196
+ force_checkout?: boolean | undefined;
196
197
  customer_data?: {
197
198
  name?: string | null | undefined;
198
199
  email?: string | null | undefined;
@@ -201,8 +202,7 @@ declare const autumn: (options?: {
201
202
  entity_data?: any;
202
203
  checkout_session_params?: Record<string, any> | undefined;
203
204
  reward?: string | undefined;
204
- product_ids?: string[] | undefined;
205
- free_trial?: boolean | undefined;
205
+ invoice?: boolean | undefined;
206
206
  };
207
207
  } & {
208
208
  method?: "POST" | undefined;
@@ -229,16 +229,17 @@ declare const autumn: (options?: {
229
229
  options: {
230
230
  method: "POST";
231
231
  body: z.ZodObject<{
232
+ entity_id: z.ZodOptional<z.ZodString>;
233
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
234
+ product_id: z.ZodOptional<z.ZodString>;
232
235
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
233
236
  feature_id: z.ZodString;
234
237
  quantity: z.ZodNumber;
235
238
  }, z.core.$strip>>>;
236
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
237
- product_id: z.ZodOptional<z.ZodString>;
238
- entity_id: z.ZodOptional<z.ZodString>;
239
- force_checkout: z.ZodOptional<z.ZodBoolean>;
240
- invoice: z.ZodOptional<z.ZodBoolean>;
239
+ product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
240
+ free_trial: z.ZodOptional<z.ZodBoolean>;
241
241
  success_url: z.ZodOptional<z.ZodString>;
242
+ force_checkout: z.ZodOptional<z.ZodBoolean>;
242
243
  customer_data: z.ZodOptional<z.ZodObject<{
243
244
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
245
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -247,8 +248,7 @@ declare const autumn: (options?: {
247
248
  entity_data: z.ZodOptional<z.ZodAny>;
248
249
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
249
250
  reward: z.ZodOptional<z.ZodString>;
250
- product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
251
- free_trial: z.ZodOptional<z.ZodBoolean>;
251
+ invoice: z.ZodOptional<z.ZodBoolean>;
252
252
  }, z.core.$strip>;
253
253
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
254
254
  session: {
@@ -281,15 +281,15 @@ declare const autumn: (options?: {
281
281
  check: {
282
282
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
283
283
  body: {
284
- product_id?: string | undefined;
285
- entity_id?: string | undefined;
286
284
  feature_id?: string | undefined;
285
+ entity_id?: string | undefined;
286
+ required_balance?: number | undefined;
287
+ product_id?: string | undefined;
287
288
  customer_data?: any;
288
289
  entity_data?: {
289
290
  feature_id: string;
290
291
  name?: string | undefined;
291
292
  } | undefined;
292
- required_balance?: number | undefined;
293
293
  send_event?: boolean | undefined;
294
294
  with_preview?: boolean | undefined;
295
295
  };
@@ -318,15 +318,15 @@ declare const autumn: (options?: {
318
318
  options: {
319
319
  method: "POST";
320
320
  body: z.ZodObject<{
321
- product_id: z.ZodOptional<z.ZodString>;
322
- entity_id: z.ZodOptional<z.ZodString>;
323
321
  feature_id: z.ZodOptional<z.ZodString>;
322
+ entity_id: z.ZodOptional<z.ZodString>;
323
+ required_balance: z.ZodOptional<z.ZodNumber>;
324
+ product_id: z.ZodOptional<z.ZodString>;
324
325
  customer_data: z.ZodOptional<z.ZodAny>;
325
326
  entity_data: z.ZodOptional<z.ZodObject<{
326
327
  name: z.ZodOptional<z.ZodString>;
327
328
  feature_id: z.ZodString;
328
329
  }, z.core.$strip>>;
329
- required_balance: z.ZodOptional<z.ZodNumber>;
330
330
  send_event: z.ZodOptional<z.ZodBoolean>;
331
331
  with_preview: z.ZodOptional<z.ZodBoolean>;
332
332
  }, z.core.$strip>;
@@ -361,8 +361,8 @@ declare const autumn: (options?: {
361
361
  track: {
362
362
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
363
363
  body: {
364
- entity_id?: string | undefined;
365
364
  feature_id?: string | undefined;
365
+ entity_id?: string | undefined;
366
366
  customer_data?: any;
367
367
  entity_data?: any;
368
368
  value?: number | undefined;
@@ -394,8 +394,8 @@ declare const autumn: (options?: {
394
394
  options: {
395
395
  method: "POST";
396
396
  body: z.ZodObject<{
397
- entity_id: z.ZodOptional<z.ZodString>;
398
397
  feature_id: z.ZodOptional<z.ZodString>;
398
+ entity_id: z.ZodOptional<z.ZodString>;
399
399
  customer_data: z.ZodOptional<z.ZodAny>;
400
400
  entity_data: z.ZodOptional<z.ZodAny>;
401
401
  value: z.ZodOptional<z.ZodNumber>;
@@ -462,8 +462,8 @@ declare const autumn: (options?: {
462
462
  options: {
463
463
  method: "POST";
464
464
  body: z.ZodObject<{
465
- product_id: z.ZodString;
466
465
  entity_id: z.ZodOptional<z.ZodString>;
466
+ product_id: z.ZodString;
467
467
  cancel_immediately: z.ZodOptional<z.ZodBoolean>;
468
468
  }, z.core.$strip>;
469
469
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
@@ -1,4 +1,4 @@
1
- import { A as Autumn } from './referralTypes-BOsjdpOb.mjs';
1
+ import { A as Autumn } from './referralTypes-DSv2hpmP.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-DcfU8B6R.js';
1
+ import { A as Autumn } from './referralTypes-DdKvvqSK.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-BOsjdpOb.mjs';
1
+ export { A as Autumn } from './referralTypes-DSv2hpmP.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-DcfU8B6R.js';
1
+ export { A as Autumn } from './referralTypes-DdKvvqSK.js';
2
2
  import 'zod/v4';
3
3
  import 'zod';
4
4
  import './response-CV6KGWH5.js';
@@ -456,52 +456,16 @@ declare enum FeatureType {
456
456
  declare const FeatureSchema: z$1.ZodObject<{
457
457
  id: z$1.ZodString;
458
458
  name: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
459
- type: z$1.ZodNativeEnum<typeof FeatureType>;
459
+ type: z$1.ZodEnum<typeof FeatureType>;
460
460
  display: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
461
461
  singular: z$1.ZodString;
462
462
  plural: z$1.ZodString;
463
- }, "strip", z$1.ZodTypeAny, {
464
- singular: string;
465
- plural: string;
466
- }, {
467
- singular: string;
468
- plural: string;
469
- }>>>;
463
+ }, z$1.core.$strip>>>;
470
464
  credit_schema: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
471
465
  metered_feature_id: z$1.ZodString;
472
466
  credit_cost: z$1.ZodNumber;
473
- }, "strip", z$1.ZodTypeAny, {
474
- metered_feature_id: string;
475
- credit_cost: number;
476
- }, {
477
- metered_feature_id: string;
478
- credit_cost: number;
479
- }>, "many">>>;
480
- }, "strip", z$1.ZodTypeAny, {
481
- id: string;
482
- type: FeatureType;
483
- name?: string | null | undefined;
484
- credit_schema?: {
485
- metered_feature_id: string;
486
- credit_cost: number;
487
- }[] | null | undefined;
488
- display?: {
489
- singular: string;
490
- plural: string;
491
- } | null | undefined;
492
- }, {
493
- id: string;
494
- type: FeatureType;
495
- name?: string | null | undefined;
496
- credit_schema?: {
497
- metered_feature_id: string;
498
- credit_cost: number;
499
- }[] | null | undefined;
500
- display?: {
501
- singular: string;
502
- plural: string;
503
- } | null | undefined;
504
- }>;
467
+ }, z$1.core.$strip>>>>;
468
+ }, z$1.core.$strip>;
505
469
  type Feature = z$1.infer<typeof FeatureSchema>;
506
470
 
507
471
  declare class Autumn {
@@ -456,52 +456,16 @@ declare enum FeatureType {
456
456
  declare const FeatureSchema: z$1.ZodObject<{
457
457
  id: z$1.ZodString;
458
458
  name: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
459
- type: z$1.ZodNativeEnum<typeof FeatureType>;
459
+ type: z$1.ZodEnum<typeof FeatureType>;
460
460
  display: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
461
461
  singular: z$1.ZodString;
462
462
  plural: z$1.ZodString;
463
- }, "strip", z$1.ZodTypeAny, {
464
- singular: string;
465
- plural: string;
466
- }, {
467
- singular: string;
468
- plural: string;
469
- }>>>;
463
+ }, z$1.core.$strip>>>;
470
464
  credit_schema: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
471
465
  metered_feature_id: z$1.ZodString;
472
466
  credit_cost: z$1.ZodNumber;
473
- }, "strip", z$1.ZodTypeAny, {
474
- metered_feature_id: string;
475
- credit_cost: number;
476
- }, {
477
- metered_feature_id: string;
478
- credit_cost: number;
479
- }>, "many">>>;
480
- }, "strip", z$1.ZodTypeAny, {
481
- id: string;
482
- type: FeatureType;
483
- name?: string | null | undefined;
484
- credit_schema?: {
485
- metered_feature_id: string;
486
- credit_cost: number;
487
- }[] | null | undefined;
488
- display?: {
489
- singular: string;
490
- plural: string;
491
- } | null | undefined;
492
- }, {
493
- id: string;
494
- type: FeatureType;
495
- name?: string | null | undefined;
496
- credit_schema?: {
497
- metered_feature_id: string;
498
- credit_cost: number;
499
- }[] | null | undefined;
500
- display?: {
501
- singular: string;
502
- plural: string;
503
- } | null | undefined;
504
- }>;
467
+ }, z$1.core.$strip>>>>;
468
+ }, z$1.core.$strip>;
505
469
  type Feature = z$1.infer<typeof FeatureSchema>;
506
470
 
507
471
  declare class Autumn {
@@ -1,4 +1,4 @@
1
- import { A as Autumn, C as CustomerData } from '../referralTypes-BOsjdpOb.mjs';
1
+ import { A as Autumn, C as CustomerData } from '../referralTypes-DSv2hpmP.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-DcfU8B6R.js';
1
+ import { A as Autumn, C as CustomerData } from '../referralTypes-DdKvvqSK.js';
2
2
  import { AuthResult } from './AuthFunction.js';
3
3
  import 'zod/v4';
4
4
  import 'zod';
@@ -1,14 +1,14 @@
1
1
  import * as React$1 from 'react';
2
- import { A as AutumnClient } from './ReactAutumnClient-zBxnpPLM.mjs';
2
+ import { A as AutumnClient } from './ReactAutumnClient-IFdMWiu5.mjs';
3
3
  import './client/types/clientEntTypes.mjs';
4
4
  import './client/types/clientGenTypes.mjs';
5
5
  import 'zod/v4';
6
6
  import './error-DHbclCVh.mjs';
7
- import './genTypes-DdYlVEah.mjs';
8
- import './prodTypes-C8xRoBP7.mjs';
9
- import './attachTypes-Cuxn1ThG.mjs';
10
- import './entTypes-D-gn1jj2.mjs';
11
- import './cusTypes-B2m4-oz4.mjs';
7
+ import './genTypes-C_ilxndU.mjs';
8
+ import './prodTypes-B8NdKyKo.mjs';
9
+ import './attachTypes-C5gcbNrS.mjs';
10
+ import './entTypes-C1bM1Zpv.mjs';
11
+ import './cusTypes-CBapqjzm.mjs';
12
12
 
13
13
  interface AutumnDialogContext {
14
14
  props: any;
@@ -1,14 +1,14 @@
1
1
  import * as React$1 from 'react';
2
- import { A as AutumnClient } from './ReactAutumnClient-CIAkiqwV.js';
2
+ import { A as AutumnClient } from './ReactAutumnClient-CfDtucnL.js';
3
3
  import './client/types/clientEntTypes.js';
4
4
  import './client/types/clientGenTypes.js';
5
5
  import 'zod/v4';
6
6
  import './error-DHbclCVh.js';
7
- import './genTypes-aPPwPimh.js';
8
- import './prodTypes-C8xRoBP7.js';
9
- import './attachTypes-BQaZHr5e.js';
10
- import './entTypes-WMQRyYAv.js';
11
- import './cusTypes-lMnznWYJ.js';
7
+ import './genTypes-DjcQWIOM.js';
8
+ import './prodTypes-B8NdKyKo.js';
9
+ import './attachTypes-CLK4jfuj.js';
10
+ import './entTypes-DbIrfEpl.js';
11
+ import './cusTypes-D13MXEN7.js';
12
12
 
13
13
  interface AutumnDialogContext {
14
14
  props: any;
@@ -1107,7 +1107,8 @@ var AutumnClient = class {
1107
1107
  await fetch(testEndpoint, {
1108
1108
  method: "POST",
1109
1109
  credentials: "include",
1110
- headers: { "Content-Type": "application/json" }
1110
+ headers: { "Content-Type": "application/json" },
1111
+ body: JSON.stringify({})
1111
1112
  });
1112
1113
  return { valid: true, includeCredentials: true };
1113
1114
  } catch (error) {
@@ -1115,7 +1116,8 @@ var AutumnClient = class {
1115
1116
  await fetch(testEndpoint, {
1116
1117
  method: "POST",
1117
1118
  credentials: "omit",
1118
- headers: { "Content-Type": "application/json" }
1119
+ headers: { "Content-Type": "application/json" },
1120
+ body: JSON.stringify({})
1119
1121
  });
1120
1122
  return { valid: true, includeCredentials: false };
1121
1123
  } catch (error2) {
@@ -3,13 +3,13 @@
3
3
  import {
4
4
  AutumnContext,
5
5
  useAutumnContext
6
- } from "./chunk-TE2MOBO7.mjs";
7
- import "./chunk-JTYEHM27.mjs";
6
+ } from "./chunk-SWVRRNIW.mjs";
7
+ import "./chunk-TOAZUTY6.mjs";
8
8
  import "./chunk-5O3IHYFF.mjs";
9
- import "./chunk-V575SGOW.mjs";
10
- import "./chunk-ZV4RPZTM.mjs";
11
9
  import "./chunk-JVCOY7ZL.mjs";
12
10
  import "./chunk-CIBQ4BJU.mjs";
11
+ import "./chunk-V575SGOW.mjs";
12
+ import "./chunk-ZV4RPZTM.mjs";
13
13
  import "./chunk-VTGR7VVK.mjs";
14
14
  import "./chunk-WFFVOEUG.mjs";
15
15
  import "./chunk-ZF2HUCN6.mjs";
@@ -1,15 +1,15 @@
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-zBxnpPLM.mjs';
3
+ import { A as AutumnClient } from './ReactAutumnClient-IFdMWiu5.mjs';
4
4
  import './client/types/clientEntTypes.mjs';
5
5
  import './client/types/clientGenTypes.mjs';
6
6
  import 'zod/v4';
7
7
  import './error-DHbclCVh.mjs';
8
- import './genTypes-DdYlVEah.mjs';
9
- import './prodTypes-C8xRoBP7.mjs';
10
- import './attachTypes-Cuxn1ThG.mjs';
11
- import './entTypes-D-gn1jj2.mjs';
12
- import './cusTypes-B2m4-oz4.mjs';
8
+ import './genTypes-C_ilxndU.mjs';
9
+ import './prodTypes-B8NdKyKo.mjs';
10
+ import './attachTypes-C5gcbNrS.mjs';
11
+ import './entTypes-C1bM1Zpv.mjs';
12
+ import './cusTypes-CBapqjzm.mjs';
13
13
 
14
14
  declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
15
15
  client: AutumnClient;
@@ -1,15 +1,15 @@
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-CIAkiqwV.js';
3
+ import { A as AutumnClient } from './ReactAutumnClient-CfDtucnL.js';
4
4
  import './client/types/clientEntTypes.js';
5
5
  import './client/types/clientGenTypes.js';
6
6
  import 'zod/v4';
7
7
  import './error-DHbclCVh.js';
8
- import './genTypes-aPPwPimh.js';
9
- import './prodTypes-C8xRoBP7.js';
10
- import './attachTypes-BQaZHr5e.js';
11
- import './entTypes-WMQRyYAv.js';
12
- import './cusTypes-lMnznWYJ.js';
8
+ import './genTypes-DjcQWIOM.js';
9
+ import './prodTypes-B8NdKyKo.js';
10
+ import './attachTypes-CLK4jfuj.js';
11
+ import './entTypes-DbIrfEpl.js';
12
+ import './cusTypes-D13MXEN7.js';
13
13
 
14
14
  declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
15
15
  client: AutumnClient;