autumn-js 0.0.92-beta.1 → 0.0.92

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 (131) 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/express.d.mts +1 -1
  4. package/dist/libraries/backend/express.d.ts +1 -1
  5. package/dist/libraries/backend/{referralTypes-ecz_wESO.d.mts → referralTypes-C_LRkLGP.d.mts} +18 -18
  6. package/dist/libraries/backend/{referralTypes-BAYl5TR1.d.ts → referralTypes-KJHGHDgD.d.ts} +18 -18
  7. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  8. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  9. package/dist/libraries/react/AutumnContext.d.mts +4 -4
  10. package/dist/libraries/react/AutumnContext.d.ts +4 -4
  11. package/dist/libraries/react/AutumnContext.mjs +5 -5
  12. package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
  13. package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
  14. package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
  15. package/dist/libraries/react/{ReactAutumnClient-BiipnfQn.d.mts → ReactAutumnClient-BmHGkNH1.d.mts} +5 -5
  16. package/dist/libraries/react/{ReactAutumnClient-BTNcA_3b.d.ts → ReactAutumnClient-PGnPqPkr.d.ts} +5 -5
  17. package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
  18. package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
  19. package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
  20. package/dist/libraries/react/{chunk-TINC2IR4.mjs → chunk-6SDVW33H.mjs} +2 -2
  21. package/dist/libraries/react/{chunk-G3XBGOHR.mjs → chunk-DIJJCQ2N.mjs} +3 -3
  22. package/dist/libraries/react/{chunk-ITN754AD.mjs → chunk-HL4JNKWK.mjs} +1 -1
  23. package/dist/libraries/react/{chunk-67Y4DFV2.mjs → chunk-L3IZ2O3T.mjs} +3 -3
  24. package/dist/libraries/react/{chunk-TBKIB6DH.mjs → chunk-LPJSRHPQ.mjs} +1 -1
  25. package/dist/libraries/react/{chunk-SJAAUTL2.mjs → chunk-OGFFPM5T.mjs} +2 -2
  26. package/dist/libraries/react/{chunk-GK75OJJJ.mjs → chunk-PJK6OPCU.mjs} +2 -2
  27. package/dist/libraries/react/{chunk-3WP2MI55.mjs → chunk-RZW3QO6B.mjs} +2 -2
  28. package/dist/libraries/react/{chunk-6JOSRG5Z.mjs → chunk-SDZ5NW6G.mjs} +2 -2
  29. package/dist/libraries/react/{chunk-CHQRTGXF.mjs → chunk-TCCWWPEC.mjs} +2 -2
  30. package/dist/libraries/react/{chunk-4AYEAAQU.mjs → chunk-VH4FTCAC.mjs} +2 -2
  31. package/dist/libraries/react/{chunk-LKBUMRHE.mjs → chunk-Y6RO4AM2.mjs} +279 -279
  32. package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
  33. package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
  34. package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
  35. package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
  36. package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
  37. package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
  38. package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
  39. package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
  40. package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
  41. package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
  42. package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
  43. package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
  44. package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
  45. package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
  46. package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
  47. package/dist/libraries/react/client/types/clientGenTypes.d.mts +4 -4
  48. package/dist/libraries/react/client/types/clientGenTypes.d.ts +4 -4
  49. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +1271 -0
  50. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
  51. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
  52. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +20 -20
  53. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
  54. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
  55. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  56. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  57. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  58. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  59. package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +1271 -0
  60. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  61. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  62. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +20 -20
  63. package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.ts → cusTypes-WaPJKeAb.d.mts} +3 -3
  64. package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.mts → cusTypes-WaPJKeAb.d.ts} +3 -3
  65. package/dist/libraries/react/{entTypes-O8YXxhrA.d.ts → entTypes-D01S8gFX.d.ts} +1 -1
  66. package/dist/libraries/react/{entTypes-CscyyE1A.d.mts → entTypes-aIV0QUCW.d.mts} +1 -1
  67. package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
  68. package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
  69. package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
  70. package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
  71. package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
  72. package/dist/libraries/react/hooks/useAutumnBase.d.mts +4 -4
  73. package/dist/libraries/react/hooks/useAutumnBase.d.ts +4 -4
  74. package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
  75. package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
  76. package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
  77. package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
  78. package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
  79. package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
  80. package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
  81. package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
  82. package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
  83. package/dist/libraries/react/hooks/useEntity.mjs +9 -9
  84. package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
  85. package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
  86. package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
  87. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  88. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  89. package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
  90. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
  91. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
  92. package/dist/libraries/react/hooks/usePricingTableBase.mjs +6 -6
  93. package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
  94. package/dist/libraries/react/index.js +25 -0
  95. package/dist/libraries/react/index.mjs +25 -0
  96. package/dist/libraries/react/{response-CDZ_R5pb.d.mts → response-Bt5OMm4y.d.mts} +1 -1
  97. package/dist/libraries/react/{response-BHqAAnND.d.ts → response-CvPzWrT9.d.ts} +1 -1
  98. package/dist/next/client/NextAutumnClient.d.mts +11 -11
  99. package/dist/next/client/NextAutumnClient.d.ts +11 -11
  100. package/dist/next/client/NextAutumnProvider.d.mts +1 -1
  101. package/dist/next/client/NextAutumnProvider.d.ts +1 -1
  102. package/dist/next/client/{clientGenTypes-B28imYzT.d.mts → clientGenTypes-BPjTbeG-.d.mts} +19 -19
  103. package/dist/next/client/{clientGenTypes-D46edNj5.d.ts → clientGenTypes-Bqecpl58.d.ts} +19 -19
  104. package/dist/next/client/clientUtils.d.mts +2 -2
  105. package/dist/next/client/clientUtils.d.ts +2 -2
  106. package/dist/next/client/{entTypes-CJx3GLTt.d.mts → entTypes-B-2_9hzP.d.mts} +1 -1
  107. package/dist/next/client/{entTypes-qYfQsZ9u.d.ts → entTypes-Dq2mbehl.d.ts} +1 -1
  108. package/dist/next/client/hooks/useAutumn.d.mts +2 -2
  109. package/dist/next/client/hooks/useAutumn.d.ts +2 -2
  110. package/dist/next/client/hooks/useCustomer.d.mts +3 -3
  111. package/dist/next/client/hooks/useCustomer.d.ts +3 -3
  112. package/dist/next/client/hooks/useEntity.d.mts +3 -3
  113. package/dist/next/client/hooks/useEntity.d.ts +3 -3
  114. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  115. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  116. package/dist/next/client/types.d.mts +2 -2
  117. package/dist/next/client/types.d.ts +2 -2
  118. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  119. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  120. package/dist/next/server/componentActions.d.mts +1 -1
  121. package/dist/next/server/componentActions.d.ts +1 -1
  122. package/dist/next/server/cusActions.d.mts +5 -5
  123. package/dist/next/server/cusActions.d.ts +5 -5
  124. package/dist/next/server/genActions.d.mts +1 -1
  125. package/dist/next/server/genActions.d.ts +1 -1
  126. package/package.json +1 -1
  127. package/dist/libraries/react/{chunk-QAHVMSK4.mjs → chunk-NCPXL3J2.mjs} +13 -13
  128. package/dist/next/client/{cusTypes-CGXuXu_Y.d.mts → cusTypes-D8lhXGaX.d.mts} +2 -2
  129. package/dist/next/client/{cusTypes-CGXuXu_Y.d.ts → cusTypes-D8lhXGaX.d.ts} +2 -2
  130. package/dist/next/server/{cusTypes-H4mqijcm.d.mts → cusTypes-C86FOl99.d.mts} +2 -2
  131. package/dist/next/server/{cusTypes-H4mqijcm.d.ts → cusTypes-C86FOl99.d.ts} +2 -2
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import * as better_auth from 'better-auth';
3
- import { A as Autumn } from './referralTypes-ecz_wESO.mjs';
3
+ import { A as Autumn } from './referralTypes-C_LRkLGP.mjs';
4
4
  import { z } from 'zod';
5
5
  import './response-CV6KGWH5.mjs';
6
6
 
@@ -122,20 +122,20 @@ declare const autumn: (options?: {
122
122
  attach: {
123
123
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
124
124
  body: {
125
- metadata?: Record<string, string> | undefined;
126
- checkoutSessionParams?: Record<string, any> | undefined;
127
- productId?: string | undefined;
128
- entityId?: string | undefined;
129
125
  options?: {
130
- featureId: string;
131
126
  quantity: number;
127
+ featureId: string;
132
128
  }[] | undefined;
129
+ metadata?: Record<string, string> | undefined;
130
+ reward?: string | undefined;
131
+ productId?: string | undefined;
132
+ entityId?: string | undefined;
133
133
  productIds?: string[] | undefined;
134
134
  freeTrial?: boolean | undefined;
135
135
  successUrl?: string | undefined;
136
136
  forceCheckout?: boolean | undefined;
137
137
  entityData?: any;
138
- reward?: string | undefined;
138
+ checkoutSessionParams?: Record<string, any> | undefined;
139
139
  };
140
140
  } & {
141
141
  method?: "POST" | undefined;
@@ -168,11 +168,11 @@ declare const autumn: (options?: {
168
168
  featureId: z.ZodString;
169
169
  quantity: z.ZodNumber;
170
170
  }, "strip", z.ZodTypeAny, {
171
- featureId: string;
172
171
  quantity: number;
173
- }, {
174
172
  featureId: string;
173
+ }, {
175
174
  quantity: number;
175
+ featureId: string;
176
176
  }>, "many">>;
177
177
  productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
178
178
  freeTrial: z.ZodOptional<z.ZodBoolean>;
@@ -185,35 +185,35 @@ declare const autumn: (options?: {
185
185
  reward: z.ZodOptional<z.ZodString>;
186
186
  checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
187
187
  }, "dialog" | "openInNewTab">, "strip", z.ZodTypeAny, {
188
- metadata?: Record<string, string> | undefined;
189
- checkoutSessionParams?: Record<string, any> | undefined;
190
- productId?: string | undefined;
191
- entityId?: string | undefined;
192
188
  options?: {
193
- featureId: string;
194
189
  quantity: number;
190
+ featureId: string;
195
191
  }[] | undefined;
192
+ metadata?: Record<string, string> | undefined;
193
+ reward?: string | undefined;
194
+ productId?: string | undefined;
195
+ entityId?: string | undefined;
196
196
  productIds?: string[] | undefined;
197
197
  freeTrial?: boolean | undefined;
198
198
  successUrl?: string | undefined;
199
199
  forceCheckout?: boolean | undefined;
200
200
  entityData?: any;
201
- reward?: string | undefined;
202
- }, {
203
- metadata?: Record<string, string> | undefined;
204
201
  checkoutSessionParams?: Record<string, any> | undefined;
205
- productId?: string | undefined;
206
- entityId?: string | undefined;
202
+ }, {
207
203
  options?: {
208
- featureId: string;
209
204
  quantity: number;
205
+ featureId: string;
210
206
  }[] | undefined;
207
+ metadata?: Record<string, string> | undefined;
208
+ reward?: string | undefined;
209
+ productId?: string | undefined;
210
+ entityId?: string | undefined;
211
211
  productIds?: string[] | undefined;
212
212
  freeTrial?: boolean | undefined;
213
213
  successUrl?: string | undefined;
214
214
  forceCheckout?: boolean | undefined;
215
215
  entityData?: any;
216
- reward?: string | undefined;
216
+ checkoutSessionParams?: Record<string, any> | undefined;
217
217
  }>;
218
218
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
219
219
  session: {
@@ -246,9 +246,9 @@ declare const autumn: (options?: {
246
246
  check: {
247
247
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
248
248
  body: {
249
+ featureId?: string | undefined;
249
250
  productId?: string | undefined;
250
251
  entityId?: string | undefined;
251
- featureId?: string | undefined;
252
252
  entityData?: any;
253
253
  requiredBalance?: number | undefined;
254
254
  sendEvent?: boolean | undefined;
@@ -288,17 +288,17 @@ declare const autumn: (options?: {
288
288
  dialog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodUnion<[z.ZodType<JSX.Element, z.ZodTypeDef, JSX.Element>, z.ZodType<react.ReactNode, z.ZodTypeDef, react.ReactNode>]>>>;
289
289
  entityData: z.ZodOptional<z.ZodAny>;
290
290
  }, "dialog">, "strip", z.ZodTypeAny, {
291
+ featureId?: string | undefined;
291
292
  productId?: string | undefined;
292
293
  entityId?: string | undefined;
293
- featureId?: string | undefined;
294
294
  entityData?: any;
295
295
  requiredBalance?: number | undefined;
296
296
  sendEvent?: boolean | undefined;
297
297
  withPreview?: boolean | undefined;
298
298
  }, {
299
+ featureId?: string | undefined;
299
300
  productId?: string | undefined;
300
301
  entityId?: string | undefined;
301
- featureId?: string | undefined;
302
302
  entityData?: any;
303
303
  requiredBalance?: number | undefined;
304
304
  sendEvent?: boolean | undefined;
@@ -335,9 +335,9 @@ declare const autumn: (options?: {
335
335
  track: {
336
336
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
337
337
  body: {
338
- entityId?: string | undefined;
339
- featureId?: string | undefined;
340
338
  value?: number | undefined;
339
+ featureId?: string | undefined;
340
+ entityId?: string | undefined;
341
341
  entityData?: any;
342
342
  eventName?: string | undefined;
343
343
  idempotencyKey?: string | undefined;
@@ -374,16 +374,16 @@ declare const autumn: (options?: {
374
374
  idempotencyKey: z.ZodOptional<z.ZodString>;
375
375
  entityData: z.ZodOptional<z.ZodAny>;
376
376
  }, "strip", z.ZodTypeAny, {
377
- entityId?: string | undefined;
378
- featureId?: string | undefined;
379
377
  value?: number | undefined;
378
+ featureId?: string | undefined;
379
+ entityId?: string | undefined;
380
380
  entityData?: any;
381
381
  eventName?: string | undefined;
382
382
  idempotencyKey?: string | undefined;
383
383
  }, {
384
- entityId?: string | undefined;
385
- featureId?: string | undefined;
386
384
  value?: number | undefined;
385
+ featureId?: string | undefined;
386
+ entityId?: string | undefined;
387
387
  entityData?: any;
388
388
  eventName?: string | undefined;
389
389
  idempotencyKey?: string | undefined;
@@ -619,8 +619,8 @@ declare const autumn: (options?: {
619
619
  allowed: {
620
620
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
621
621
  body: {
622
- productId?: string | undefined;
623
622
  featureId?: string | undefined;
623
+ productId?: string | undefined;
624
624
  requiredBalance?: number | undefined;
625
625
  };
626
626
  } & {
@@ -655,12 +655,12 @@ declare const autumn: (options?: {
655
655
  productId: z.ZodOptional<z.ZodString>;
656
656
  requiredBalance: z.ZodOptional<z.ZodNumber>;
657
657
  }, "strip", z.ZodTypeAny, {
658
- productId?: string | undefined;
659
658
  featureId?: string | undefined;
659
+ productId?: string | undefined;
660
660
  requiredBalance?: number | undefined;
661
661
  }, {
662
- productId?: string | undefined;
663
662
  featureId?: string | undefined;
663
+ productId?: string | undefined;
664
664
  requiredBalance?: number | undefined;
665
665
  }>;
666
666
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import * as better_auth from 'better-auth';
3
- import { A as Autumn } from './referralTypes-BAYl5TR1.js';
3
+ import { A as Autumn } from './referralTypes-KJHGHDgD.js';
4
4
  import { z } from 'zod';
5
5
  import './response-CV6KGWH5.js';
6
6
 
@@ -122,20 +122,20 @@ declare const autumn: (options?: {
122
122
  attach: {
123
123
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
124
124
  body: {
125
- metadata?: Record<string, string> | undefined;
126
- checkoutSessionParams?: Record<string, any> | undefined;
127
- productId?: string | undefined;
128
- entityId?: string | undefined;
129
125
  options?: {
130
- featureId: string;
131
126
  quantity: number;
127
+ featureId: string;
132
128
  }[] | undefined;
129
+ metadata?: Record<string, string> | undefined;
130
+ reward?: string | undefined;
131
+ productId?: string | undefined;
132
+ entityId?: string | undefined;
133
133
  productIds?: string[] | undefined;
134
134
  freeTrial?: boolean | undefined;
135
135
  successUrl?: string | undefined;
136
136
  forceCheckout?: boolean | undefined;
137
137
  entityData?: any;
138
- reward?: string | undefined;
138
+ checkoutSessionParams?: Record<string, any> | undefined;
139
139
  };
140
140
  } & {
141
141
  method?: "POST" | undefined;
@@ -168,11 +168,11 @@ declare const autumn: (options?: {
168
168
  featureId: z.ZodString;
169
169
  quantity: z.ZodNumber;
170
170
  }, "strip", z.ZodTypeAny, {
171
- featureId: string;
172
171
  quantity: number;
173
- }, {
174
172
  featureId: string;
173
+ }, {
175
174
  quantity: number;
175
+ featureId: string;
176
176
  }>, "many">>;
177
177
  productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
178
178
  freeTrial: z.ZodOptional<z.ZodBoolean>;
@@ -185,35 +185,35 @@ declare const autumn: (options?: {
185
185
  reward: z.ZodOptional<z.ZodString>;
186
186
  checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
187
187
  }, "dialog" | "openInNewTab">, "strip", z.ZodTypeAny, {
188
- metadata?: Record<string, string> | undefined;
189
- checkoutSessionParams?: Record<string, any> | undefined;
190
- productId?: string | undefined;
191
- entityId?: string | undefined;
192
188
  options?: {
193
- featureId: string;
194
189
  quantity: number;
190
+ featureId: string;
195
191
  }[] | undefined;
192
+ metadata?: Record<string, string> | undefined;
193
+ reward?: string | undefined;
194
+ productId?: string | undefined;
195
+ entityId?: string | undefined;
196
196
  productIds?: string[] | undefined;
197
197
  freeTrial?: boolean | undefined;
198
198
  successUrl?: string | undefined;
199
199
  forceCheckout?: boolean | undefined;
200
200
  entityData?: any;
201
- reward?: string | undefined;
202
- }, {
203
- metadata?: Record<string, string> | undefined;
204
201
  checkoutSessionParams?: Record<string, any> | undefined;
205
- productId?: string | undefined;
206
- entityId?: string | undefined;
202
+ }, {
207
203
  options?: {
208
- featureId: string;
209
204
  quantity: number;
205
+ featureId: string;
210
206
  }[] | undefined;
207
+ metadata?: Record<string, string> | undefined;
208
+ reward?: string | undefined;
209
+ productId?: string | undefined;
210
+ entityId?: string | undefined;
211
211
  productIds?: string[] | undefined;
212
212
  freeTrial?: boolean | undefined;
213
213
  successUrl?: string | undefined;
214
214
  forceCheckout?: boolean | undefined;
215
215
  entityData?: any;
216
- reward?: string | undefined;
216
+ checkoutSessionParams?: Record<string, any> | undefined;
217
217
  }>;
218
218
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
219
219
  session: {
@@ -246,9 +246,9 @@ declare const autumn: (options?: {
246
246
  check: {
247
247
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
248
248
  body: {
249
+ featureId?: string | undefined;
249
250
  productId?: string | undefined;
250
251
  entityId?: string | undefined;
251
- featureId?: string | undefined;
252
252
  entityData?: any;
253
253
  requiredBalance?: number | undefined;
254
254
  sendEvent?: boolean | undefined;
@@ -288,17 +288,17 @@ declare const autumn: (options?: {
288
288
  dialog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodUnion<[z.ZodType<JSX.Element, z.ZodTypeDef, JSX.Element>, z.ZodType<react.ReactNode, z.ZodTypeDef, react.ReactNode>]>>>;
289
289
  entityData: z.ZodOptional<z.ZodAny>;
290
290
  }, "dialog">, "strip", z.ZodTypeAny, {
291
+ featureId?: string | undefined;
291
292
  productId?: string | undefined;
292
293
  entityId?: string | undefined;
293
- featureId?: string | undefined;
294
294
  entityData?: any;
295
295
  requiredBalance?: number | undefined;
296
296
  sendEvent?: boolean | undefined;
297
297
  withPreview?: boolean | undefined;
298
298
  }, {
299
+ featureId?: string | undefined;
299
300
  productId?: string | undefined;
300
301
  entityId?: string | undefined;
301
- featureId?: string | undefined;
302
302
  entityData?: any;
303
303
  requiredBalance?: number | undefined;
304
304
  sendEvent?: boolean | undefined;
@@ -335,9 +335,9 @@ declare const autumn: (options?: {
335
335
  track: {
336
336
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
337
337
  body: {
338
- entityId?: string | undefined;
339
- featureId?: string | undefined;
340
338
  value?: number | undefined;
339
+ featureId?: string | undefined;
340
+ entityId?: string | undefined;
341
341
  entityData?: any;
342
342
  eventName?: string | undefined;
343
343
  idempotencyKey?: string | undefined;
@@ -374,16 +374,16 @@ declare const autumn: (options?: {
374
374
  idempotencyKey: z.ZodOptional<z.ZodString>;
375
375
  entityData: z.ZodOptional<z.ZodAny>;
376
376
  }, "strip", z.ZodTypeAny, {
377
- entityId?: string | undefined;
378
- featureId?: string | undefined;
379
377
  value?: number | undefined;
378
+ featureId?: string | undefined;
379
+ entityId?: string | undefined;
380
380
  entityData?: any;
381
381
  eventName?: string | undefined;
382
382
  idempotencyKey?: string | undefined;
383
383
  }, {
384
- entityId?: string | undefined;
385
- featureId?: string | undefined;
386
384
  value?: number | undefined;
385
+ featureId?: string | undefined;
386
+ entityId?: string | undefined;
387
387
  entityData?: any;
388
388
  eventName?: string | undefined;
389
389
  idempotencyKey?: string | undefined;
@@ -619,8 +619,8 @@ declare const autumn: (options?: {
619
619
  allowed: {
620
620
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
621
621
  body: {
622
- productId?: string | undefined;
623
622
  featureId?: string | undefined;
623
+ productId?: string | undefined;
624
624
  requiredBalance?: number | undefined;
625
625
  };
626
626
  } & {
@@ -655,12 +655,12 @@ declare const autumn: (options?: {
655
655
  productId: z.ZodOptional<z.ZodString>;
656
656
  requiredBalance: z.ZodOptional<z.ZodNumber>;
657
657
  }, "strip", z.ZodTypeAny, {
658
- productId?: string | undefined;
659
658
  featureId?: string | undefined;
659
+ productId?: string | undefined;
660
660
  requiredBalance?: number | undefined;
661
661
  }, {
662
- productId?: string | undefined;
663
662
  featureId?: string | undefined;
663
+ productId?: string | undefined;
664
664
  requiredBalance?: number | undefined;
665
665
  }>;
666
666
  use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
@@ -1,4 +1,4 @@
1
- import { A as Autumn } from './referralTypes-ecz_wESO.mjs';
1
+ import { A as Autumn } from './referralTypes-C_LRkLGP.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-BAYl5TR1.js';
1
+ import { A as Autumn } from './referralTypes-KJHGHDgD.js';
2
2
  import { AuthResult } from './utils/AuthFunction.js';
3
3
  import 'zod';
4
4
  import './response-CV6KGWH5.js';
@@ -230,19 +230,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
230
230
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
231
231
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
232
232
  }, "strip", z.ZodTypeAny, {
233
- metadata?: Record<string, any> | undefined;
234
233
  id?: string | null | undefined;
235
- name?: string | null | undefined;
236
234
  email?: string | null | undefined;
235
+ name?: string | null | undefined;
237
236
  fingerprint?: string | null | undefined;
238
- expand?: ("referrals" | "invoices" | "rewards" | "trials_used" | "entities" | "payment_method")[] | undefined;
239
- }, {
240
237
  metadata?: Record<string, any> | undefined;
238
+ expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
239
+ }, {
241
240
  id?: string | null | undefined;
242
- name?: string | null | undefined;
243
241
  email?: string | null | undefined;
242
+ name?: string | null | undefined;
244
243
  fingerprint?: string | null | undefined;
245
- expand?: ("referrals" | "invoices" | "rewards" | "trials_used" | "entities" | "payment_method")[] | undefined;
244
+ metadata?: Record<string, any> | undefined;
245
+ expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
246
246
  }>;
247
247
  type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
248
248
  interface UpdateCustomerParams {
@@ -304,11 +304,11 @@ declare const AttachParamsSchema: z.ZodObject<{
304
304
  feature_id: z.ZodString;
305
305
  quantity: z.ZodNumber;
306
306
  }, "strip", z.ZodTypeAny, {
307
- quantity: number;
308
307
  feature_id: string;
309
- }, {
310
308
  quantity: number;
309
+ }, {
311
310
  feature_id: string;
311
+ quantity: number;
312
312
  }>, "many">>;
313
313
  product_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
314
314
  free_trial: z.ZodOptional<z.ZodBoolean>;
@@ -321,38 +321,38 @@ declare const AttachParamsSchema: z.ZodObject<{
321
321
  reward: z.ZodOptional<z.ZodString>;
322
322
  }, "strip", z.ZodTypeAny, {
323
323
  customer_id: string;
324
- metadata?: Record<string, string> | undefined;
325
324
  options?: {
326
- quantity: number;
327
325
  feature_id: string;
326
+ quantity: number;
328
327
  }[] | undefined;
329
- reward?: string | undefined;
328
+ metadata?: Record<string, string> | undefined;
329
+ customer_data?: any;
330
330
  entity_id?: string | undefined;
331
331
  product_id?: string | undefined;
332
332
  product_ids?: string[] | undefined;
333
333
  free_trial?: boolean | undefined;
334
334
  success_url?: string | undefined;
335
335
  force_checkout?: boolean | undefined;
336
- customer_data?: any;
337
336
  entity_data?: any;
338
337
  checkout_session_params?: Record<string, any> | undefined;
338
+ reward?: string | undefined;
339
339
  }, {
340
340
  customer_id: string;
341
- metadata?: Record<string, string> | undefined;
342
341
  options?: {
343
- quantity: number;
344
342
  feature_id: string;
343
+ quantity: number;
345
344
  }[] | undefined;
346
- reward?: string | undefined;
345
+ metadata?: Record<string, string> | undefined;
346
+ customer_data?: any;
347
347
  entity_id?: string | undefined;
348
348
  product_id?: string | undefined;
349
349
  product_ids?: string[] | undefined;
350
350
  free_trial?: boolean | undefined;
351
351
  success_url?: string | undefined;
352
352
  force_checkout?: boolean | undefined;
353
- customer_data?: any;
354
353
  entity_data?: any;
355
354
  checkout_session_params?: Record<string, any> | undefined;
355
+ reward?: string | undefined;
356
356
  }>;
357
357
  type AttachParams = z.infer<typeof AttachParamsSchema>;
358
358
  interface CancelParams {
@@ -480,8 +480,8 @@ declare class Autumn {
480
480
  redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
481
481
  };
482
482
  static attach: (params: AttachParams) => Promise<Result<{
483
- message: string;
484
483
  code: string;
484
+ message: string;
485
485
  customer_id: string;
486
486
  product_ids: string[];
487
487
  customer_data?: any;
@@ -489,8 +489,8 @@ declare class Autumn {
489
489
  }, AutumnError>>;
490
490
  static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
491
491
  attach(params: AttachParams): Promise<Result<{
492
- message: string;
493
492
  code: string;
493
+ message: string;
494
494
  customer_id: string;
495
495
  product_ids: string[];
496
496
  customer_data?: any;
@@ -230,19 +230,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
230
230
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
231
231
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
232
232
  }, "strip", z.ZodTypeAny, {
233
- metadata?: Record<string, any> | undefined;
234
233
  id?: string | null | undefined;
235
- name?: string | null | undefined;
236
234
  email?: string | null | undefined;
235
+ name?: string | null | undefined;
237
236
  fingerprint?: string | null | undefined;
238
- expand?: ("referrals" | "invoices" | "rewards" | "trials_used" | "entities" | "payment_method")[] | undefined;
239
- }, {
240
237
  metadata?: Record<string, any> | undefined;
238
+ expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
239
+ }, {
241
240
  id?: string | null | undefined;
242
- name?: string | null | undefined;
243
241
  email?: string | null | undefined;
242
+ name?: string | null | undefined;
244
243
  fingerprint?: string | null | undefined;
245
- expand?: ("referrals" | "invoices" | "rewards" | "trials_used" | "entities" | "payment_method")[] | undefined;
244
+ metadata?: Record<string, any> | undefined;
245
+ expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
246
246
  }>;
247
247
  type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
248
248
  interface UpdateCustomerParams {
@@ -304,11 +304,11 @@ declare const AttachParamsSchema: z.ZodObject<{
304
304
  feature_id: z.ZodString;
305
305
  quantity: z.ZodNumber;
306
306
  }, "strip", z.ZodTypeAny, {
307
- quantity: number;
308
307
  feature_id: string;
309
- }, {
310
308
  quantity: number;
309
+ }, {
311
310
  feature_id: string;
311
+ quantity: number;
312
312
  }>, "many">>;
313
313
  product_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
314
314
  free_trial: z.ZodOptional<z.ZodBoolean>;
@@ -321,38 +321,38 @@ declare const AttachParamsSchema: z.ZodObject<{
321
321
  reward: z.ZodOptional<z.ZodString>;
322
322
  }, "strip", z.ZodTypeAny, {
323
323
  customer_id: string;
324
- metadata?: Record<string, string> | undefined;
325
324
  options?: {
326
- quantity: number;
327
325
  feature_id: string;
326
+ quantity: number;
328
327
  }[] | undefined;
329
- reward?: string | undefined;
328
+ metadata?: Record<string, string> | undefined;
329
+ customer_data?: any;
330
330
  entity_id?: string | undefined;
331
331
  product_id?: string | undefined;
332
332
  product_ids?: string[] | undefined;
333
333
  free_trial?: boolean | undefined;
334
334
  success_url?: string | undefined;
335
335
  force_checkout?: boolean | undefined;
336
- customer_data?: any;
337
336
  entity_data?: any;
338
337
  checkout_session_params?: Record<string, any> | undefined;
338
+ reward?: string | undefined;
339
339
  }, {
340
340
  customer_id: string;
341
- metadata?: Record<string, string> | undefined;
342
341
  options?: {
343
- quantity: number;
344
342
  feature_id: string;
343
+ quantity: number;
345
344
  }[] | undefined;
346
- reward?: string | undefined;
345
+ metadata?: Record<string, string> | undefined;
346
+ customer_data?: any;
347
347
  entity_id?: string | undefined;
348
348
  product_id?: string | undefined;
349
349
  product_ids?: string[] | undefined;
350
350
  free_trial?: boolean | undefined;
351
351
  success_url?: string | undefined;
352
352
  force_checkout?: boolean | undefined;
353
- customer_data?: any;
354
353
  entity_data?: any;
355
354
  checkout_session_params?: Record<string, any> | undefined;
355
+ reward?: string | undefined;
356
356
  }>;
357
357
  type AttachParams = z.infer<typeof AttachParamsSchema>;
358
358
  interface CancelParams {
@@ -480,8 +480,8 @@ declare class Autumn {
480
480
  redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
481
481
  };
482
482
  static attach: (params: AttachParams) => Promise<Result<{
483
- message: string;
484
483
  code: string;
484
+ message: string;
485
485
  customer_id: string;
486
486
  product_ids: string[];
487
487
  customer_data?: any;
@@ -489,8 +489,8 @@ declare class Autumn {
489
489
  }, AutumnError>>;
490
490
  static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
491
491
  attach(params: AttachParams): Promise<Result<{
492
- message: string;
493
492
  code: string;
493
+ message: string;
494
494
  customer_id: string;
495
495
  product_ids: string[];
496
496
  customer_data?: any;
@@ -1,4 +1,4 @@
1
- import { A as Autumn, C as CustomerData } from '../referralTypes-ecz_wESO.mjs';
1
+ import { A as Autumn, C as CustomerData } from '../referralTypes-C_LRkLGP.mjs';
2
2
  import { AuthResult } from './AuthFunction.mjs';
3
3
  import 'zod';
4
4
  import '../response-CV6KGWH5.mjs';
@@ -1,4 +1,4 @@
1
- import { A as Autumn, C as CustomerData } from '../referralTypes-BAYl5TR1.js';
1
+ import { A as Autumn, C as CustomerData } from '../referralTypes-KJHGHDgD.js';
2
2
  import { AuthResult } from './AuthFunction.js';
3
3
  import 'zod';
4
4
  import '../response-CV6KGWH5.js';
@@ -1,12 +1,12 @@
1
1
  import * as React$1 from 'react';
2
- import { A as AutumnClient } from './ReactAutumnClient-BiipnfQn.mjs';
2
+ import { A as AutumnClient } from './ReactAutumnClient-BmHGkNH1.mjs';
3
3
  import './client/types/clientEntTypes.mjs';
4
4
  import './client/types/clientGenTypes.mjs';
5
5
  import 'zod';
6
6
  import './error-DHbclCVh.mjs';
7
- import './response-CDZ_R5pb.mjs';
8
- import './cusTypes-Bf1qr9iE.mjs';
9
- import './entTypes-CscyyE1A.mjs';
7
+ import './response-Bt5OMm4y.mjs';
8
+ import './cusTypes-WaPJKeAb.mjs';
9
+ import './entTypes-aIV0QUCW.mjs';
10
10
 
11
11
  interface AutumnDialogContext {
12
12
  props: any;
@@ -1,12 +1,12 @@
1
1
  import * as React$1 from 'react';
2
- import { A as AutumnClient } from './ReactAutumnClient-BTNcA_3b.js';
2
+ import { A as AutumnClient } from './ReactAutumnClient-PGnPqPkr.js';
3
3
  import './client/types/clientEntTypes.js';
4
4
  import './client/types/clientGenTypes.js';
5
5
  import 'zod';
6
6
  import './error-DHbclCVh.js';
7
- import './response-BHqAAnND.js';
8
- import './cusTypes-Bf1qr9iE.js';
9
- import './entTypes-O8YXxhrA.js';
7
+ import './response-CvPzWrT9.js';
8
+ import './cusTypes-WaPJKeAb.js';
9
+ import './entTypes-D01S8gFX.js';
10
10
 
11
11
  interface AutumnDialogContext {
12
12
  props: any;
@@ -3,17 +3,17 @@
3
3
  import {
4
4
  AutumnContext,
5
5
  useAutumnContext
6
- } from "./chunk-ITN754AD.mjs";
7
- import "./chunk-QAHVMSK4.mjs";
6
+ } from "./chunk-HL4JNKWK.mjs";
7
+ import "./chunk-NCPXL3J2.mjs";
8
+ import "./chunk-V5PKOA5A.mjs";
9
+ import "./chunk-JNM4BLTM.mjs";
8
10
  import "./chunk-YUV2Y2RW.mjs";
9
11
  import "./chunk-3EYF7OI5.mjs";
12
+ import "./chunk-KQT5G3HT.mjs";
10
13
  import "./chunk-JVCOY7ZL.mjs";
11
14
  import "./chunk-CIBQ4BJU.mjs";
12
15
  import "./chunk-NZ5PEXT2.mjs";
13
16
  import "./chunk-TGX6UKKS.mjs";
14
- import "./chunk-V5PKOA5A.mjs";
15
- import "./chunk-JNM4BLTM.mjs";
16
- import "./chunk-KQT5G3HT.mjs";
17
17
  export {
18
18
  AutumnContext,
19
19
  useAutumnContext