autumn-js 0.0.96 → 0.0.98

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 (135) hide show
  1. package/dist/libraries/backend/better-auth.d.mts +18 -18
  2. package/dist/libraries/backend/better-auth.d.ts +18 -18
  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-HAk2vTns.d.ts → referralTypes-D1Q2i3mG.d.ts} +28 -27
  6. package/dist/libraries/backend/{referralTypes-Dg9pRvI7.d.mts → referralTypes-Dfg6if8j.d.mts} +28 -27
  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 +7 -7
  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 +12 -12
  15. package/dist/libraries/react/{ReactAutumnClient-iUQGnJyH.d.ts → ReactAutumnClient-ByV3ry6X.d.ts} +3 -3
  16. package/dist/libraries/react/{ReactAutumnClient-CXaaDdjS.d.mts → ReactAutumnClient-Ce34XSNp.d.mts} +3 -3
  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 +13 -13
  20. package/dist/libraries/react/{chunk-6CJ3FB74.mjs → chunk-7J5WGHDK.mjs} +2 -2
  21. package/dist/libraries/react/{chunk-DVMVIAZE.mjs → chunk-AISYLQU5.mjs} +1 -1
  22. package/dist/libraries/react/{chunk-T5PIJ4HG.mjs → chunk-BJRHW2WP.mjs} +2 -2
  23. package/dist/libraries/react/{chunk-MZDRIPNS.mjs → chunk-BQUVIPG4.mjs} +2 -2
  24. package/dist/libraries/react/{chunk-CAMHARUX.mjs → chunk-FGNNWWBD.mjs} +2 -2
  25. package/dist/libraries/react/{chunk-G3FBFZLU.mjs → chunk-IJFGEGR2.mjs} +1 -1
  26. package/dist/libraries/react/{chunk-5G3DYUNT.mjs → chunk-RURBN53D.mjs} +1 -1
  27. package/dist/libraries/react/{chunk-LVDONEVF.mjs → chunk-SA4NOOHV.mjs} +2 -2
  28. package/dist/libraries/react/{chunk-AOJCMXVS.mjs → chunk-TKHPR5VW.mjs} +3 -3
  29. package/dist/libraries/react/{chunk-APDR7D6A.mjs → chunk-XSJQQSUT.mjs} +2 -2
  30. package/dist/libraries/react/{chunk-R4BYOLST.mjs → chunk-ZFOSCZKA.mjs} +2 -2
  31. package/dist/libraries/react/{chunk-IN62REVO.mjs → chunk-ZQ5HNM6O.mjs} +278 -278
  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 +6 -6
  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/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
  48. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
  49. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +21 -21
  50. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
  51. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
  52. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  53. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  54. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  55. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  56. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  57. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  58. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +21 -21
  59. package/dist/libraries/react/{cusTypes-WaPJKeAb.d.ts → cusTypes-cFcAuKk6.d.mts} +2 -1
  60. package/dist/libraries/react/{cusTypes-WaPJKeAb.d.mts → cusTypes-cFcAuKk6.d.ts} +2 -1
  61. package/dist/libraries/react/{entTypes-D01S8gFX.d.ts → entTypes-DPu6Efi2.d.ts} +1 -1
  62. package/dist/libraries/react/{entTypes-aIV0QUCW.d.mts → entTypes-S-Yuznzg.d.mts} +1 -1
  63. package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
  64. package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
  65. package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
  66. package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
  67. package/dist/libraries/react/hooks/useAutumn.mjs +10 -10
  68. package/dist/libraries/react/hooks/useAutumnBase.d.mts +4 -4
  69. package/dist/libraries/react/hooks/useAutumnBase.d.ts +4 -4
  70. package/dist/libraries/react/hooks/useAutumnBase.mjs +9 -9
  71. package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
  72. package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
  73. package/dist/libraries/react/hooks/useCustomer.mjs +11 -11
  74. package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
  75. package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
  76. package/dist/libraries/react/hooks/useCustomerBase.mjs +10 -10
  77. package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
  78. package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
  79. package/dist/libraries/react/hooks/useEntity.mjs +11 -11
  80. package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
  81. package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
  82. package/dist/libraries/react/hooks/useEntityBase.mjs +10 -10
  83. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  84. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  85. package/dist/libraries/react/hooks/usePricingTable.mjs +9 -9
  86. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
  87. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
  88. package/dist/libraries/react/hooks/usePricingTableBase.mjs +8 -8
  89. package/dist/libraries/react/hooks/useProductsBase.mjs +7 -7
  90. package/dist/libraries/react/index.d.mts +1 -0
  91. package/dist/libraries/react/index.d.ts +1 -0
  92. package/dist/libraries/react/{response-C0MTZEqT.d.ts → response-BDOGqtuI.d.ts} +2 -2
  93. package/dist/libraries/react/{response-FC9NTmn2.d.mts → response-R1MWYZiA.d.mts} +2 -2
  94. package/dist/next/{AutumnProvider-CCYZC_bN.d.mts → AutumnProvider-Xl1mqxls.d.mts} +1 -0
  95. package/dist/next/{AutumnProvider-CCYZC_bN.d.ts → AutumnProvider-Xl1mqxls.d.ts} +1 -0
  96. package/dist/next/AutumnProvider.d.mts +1 -1
  97. package/dist/next/AutumnProvider.d.ts +1 -1
  98. package/dist/next/client/NextAutumnClient.d.mts +10 -10
  99. package/dist/next/client/NextAutumnClient.d.ts +10 -10
  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-CpX8Cvjm.d.ts → clientGenTypes-B_LCNkd5.d.ts} +17 -17
  103. package/dist/next/client/{clientGenTypes-BHk25QIO.d.mts → clientGenTypes-BwevGhcx.d.mts} +17 -17
  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/{cusTypes-D8lhXGaX.d.mts → cusTypes-Gh2wfcmj.d.mts} +1 -0
  107. package/dist/next/client/{cusTypes-D8lhXGaX.d.ts → cusTypes-Gh2wfcmj.d.ts} +1 -0
  108. package/dist/next/client/{entTypes-Dq2mbehl.d.ts → entTypes-B_w6I3y-.d.ts} +1 -1
  109. package/dist/next/client/{entTypes-B-2_9hzP.d.mts → entTypes-C_xS1VPE.d.mts} +1 -1
  110. package/dist/next/client/hooks/useAutumn.d.mts +2 -2
  111. package/dist/next/client/hooks/useAutumn.d.ts +2 -2
  112. package/dist/next/client/hooks/useCustomer.d.mts +3 -3
  113. package/dist/next/client/hooks/useCustomer.d.ts +3 -3
  114. package/dist/next/client/hooks/useEntity.d.mts +3 -3
  115. package/dist/next/client/hooks/useEntity.d.ts +3 -3
  116. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  117. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  118. package/dist/next/client/types.d.mts +2 -2
  119. package/dist/next/client/types.d.ts +2 -2
  120. package/dist/next/index.d.mts +2 -2
  121. package/dist/next/index.d.ts +2 -2
  122. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  123. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  124. package/dist/next/server/componentActions.d.mts +1 -1
  125. package/dist/next/server/componentActions.d.ts +1 -1
  126. package/dist/next/server/cusActions.d.mts +21 -21
  127. package/dist/next/server/cusActions.d.ts +21 -21
  128. package/dist/next/server/{cusTypes-Cy72qmFx.d.mts → cusTypes-B8u88Vfq.d.mts} +3 -2
  129. package/dist/next/server/{cusTypes-Cy72qmFx.d.ts → cusTypes-B8u88Vfq.d.ts} +3 -2
  130. package/dist/next/server/genActions.d.mts +1 -1
  131. package/dist/next/server/genActions.d.ts +1 -1
  132. package/dist/sdk/index.d.mts +1 -0
  133. package/dist/sdk/index.d.ts +1 -0
  134. package/package.json +1 -1
  135. package/dist/libraries/react/{chunk-ALFXUHDD.mjs → chunk-QRI2TNR7.mjs} +15 -15
@@ -130,13 +130,13 @@ declare const autumn: (options?: {
130
130
  attach: {
131
131
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
132
132
  body: {
133
- entity_id?: string | undefined;
134
133
  options?: {
135
134
  feature_id: string;
136
135
  quantity: number;
137
136
  }[] | undefined;
138
137
  metadata?: Record<string, string> | undefined;
139
138
  product_id?: string | undefined;
139
+ entity_id?: string | undefined;
140
140
  product_ids?: string[] | undefined;
141
141
  free_trial?: boolean | undefined;
142
142
  success_url?: string | undefined;
@@ -194,13 +194,13 @@ declare const autumn: (options?: {
194
194
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
195
195
  reward: z.ZodOptional<z.ZodString>;
196
196
  }, "customer_id">, "strip", z.ZodTypeAny, {
197
- entity_id?: string | undefined;
198
197
  options?: {
199
198
  feature_id: string;
200
199
  quantity: number;
201
200
  }[] | undefined;
202
201
  metadata?: Record<string, string> | undefined;
203
202
  product_id?: string | undefined;
203
+ entity_id?: string | undefined;
204
204
  product_ids?: string[] | undefined;
205
205
  free_trial?: boolean | undefined;
206
206
  success_url?: string | undefined;
@@ -210,13 +210,13 @@ declare const autumn: (options?: {
210
210
  checkout_session_params?: Record<string, any> | undefined;
211
211
  reward?: string | undefined;
212
212
  }, {
213
- entity_id?: string | undefined;
214
213
  options?: {
215
214
  feature_id: string;
216
215
  quantity: number;
217
216
  }[] | undefined;
218
217
  metadata?: Record<string, string> | undefined;
219
218
  product_id?: string | undefined;
219
+ entity_id?: string | undefined;
220
220
  product_ids?: string[] | undefined;
221
221
  free_trial?: boolean | undefined;
222
222
  success_url?: string | undefined;
@@ -257,15 +257,15 @@ declare const autumn: (options?: {
257
257
  check: {
258
258
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
259
259
  body: {
260
- feature_id?: string | undefined;
261
- entity_id?: string | undefined;
262
- required_balance?: number | undefined;
263
260
  product_id?: string | undefined;
261
+ entity_id?: string | undefined;
262
+ feature_id?: string | undefined;
264
263
  customer_data?: any;
265
264
  entity_data?: {
266
265
  feature_id: string;
267
266
  name?: string | undefined;
268
267
  } | undefined;
268
+ required_balance?: number | undefined;
269
269
  send_event?: boolean | undefined;
270
270
  with_preview?: boolean | undefined;
271
271
  };
@@ -313,27 +313,27 @@ declare const autumn: (options?: {
313
313
  name?: string | undefined;
314
314
  }>>;
315
315
  }, "customer_id">, "strip", z.ZodTypeAny, {
316
- feature_id?: string | undefined;
317
- entity_id?: string | undefined;
318
- required_balance?: number | undefined;
319
316
  product_id?: string | undefined;
317
+ entity_id?: string | undefined;
318
+ feature_id?: string | undefined;
320
319
  customer_data?: any;
321
320
  entity_data?: {
322
321
  feature_id: string;
323
322
  name?: string | undefined;
324
323
  } | undefined;
324
+ required_balance?: number | undefined;
325
325
  send_event?: boolean | undefined;
326
326
  with_preview?: boolean | undefined;
327
327
  }, {
328
- feature_id?: string | undefined;
329
- entity_id?: string | undefined;
330
- required_balance?: number | undefined;
331
328
  product_id?: string | undefined;
329
+ entity_id?: string | undefined;
330
+ feature_id?: string | undefined;
332
331
  customer_data?: any;
333
332
  entity_data?: {
334
333
  feature_id: string;
335
334
  name?: string | undefined;
336
335
  } | undefined;
336
+ required_balance?: number | undefined;
337
337
  send_event?: boolean | undefined;
338
338
  with_preview?: boolean | undefined;
339
339
  }>;
@@ -368,9 +368,9 @@ declare const autumn: (options?: {
368
368
  track: {
369
369
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
370
370
  body: {
371
- feature_id?: string | undefined;
372
- entity_id?: string | undefined;
373
371
  value?: number | undefined;
372
+ entity_id?: string | undefined;
373
+ feature_id?: string | undefined;
374
374
  customer_data?: any;
375
375
  entity_data?: any;
376
376
  event_name?: string | undefined;
@@ -410,17 +410,17 @@ declare const autumn: (options?: {
410
410
  idempotency_key: z.ZodOptional<z.ZodString>;
411
411
  entity_data: z.ZodOptional<z.ZodAny>;
412
412
  }, "customer_id">, "strip", z.ZodTypeAny, {
413
- feature_id?: string | undefined;
414
- entity_id?: string | undefined;
415
413
  value?: number | undefined;
414
+ entity_id?: string | undefined;
415
+ feature_id?: string | undefined;
416
416
  customer_data?: any;
417
417
  entity_data?: any;
418
418
  event_name?: string | undefined;
419
419
  idempotency_key?: string | undefined;
420
420
  }, {
421
- feature_id?: string | undefined;
422
- entity_id?: string | undefined;
423
421
  value?: number | undefined;
422
+ entity_id?: string | undefined;
423
+ feature_id?: string | undefined;
424
424
  customer_data?: any;
425
425
  entity_data?: any;
426
426
  event_name?: string | undefined;
@@ -130,13 +130,13 @@ declare const autumn: (options?: {
130
130
  attach: {
131
131
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
132
132
  body: {
133
- entity_id?: string | undefined;
134
133
  options?: {
135
134
  feature_id: string;
136
135
  quantity: number;
137
136
  }[] | undefined;
138
137
  metadata?: Record<string, string> | undefined;
139
138
  product_id?: string | undefined;
139
+ entity_id?: string | undefined;
140
140
  product_ids?: string[] | undefined;
141
141
  free_trial?: boolean | undefined;
142
142
  success_url?: string | undefined;
@@ -194,13 +194,13 @@ declare const autumn: (options?: {
194
194
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
195
195
  reward: z.ZodOptional<z.ZodString>;
196
196
  }, "customer_id">, "strip", z.ZodTypeAny, {
197
- entity_id?: string | undefined;
198
197
  options?: {
199
198
  feature_id: string;
200
199
  quantity: number;
201
200
  }[] | undefined;
202
201
  metadata?: Record<string, string> | undefined;
203
202
  product_id?: string | undefined;
203
+ entity_id?: string | undefined;
204
204
  product_ids?: string[] | undefined;
205
205
  free_trial?: boolean | undefined;
206
206
  success_url?: string | undefined;
@@ -210,13 +210,13 @@ declare const autumn: (options?: {
210
210
  checkout_session_params?: Record<string, any> | undefined;
211
211
  reward?: string | undefined;
212
212
  }, {
213
- entity_id?: string | undefined;
214
213
  options?: {
215
214
  feature_id: string;
216
215
  quantity: number;
217
216
  }[] | undefined;
218
217
  metadata?: Record<string, string> | undefined;
219
218
  product_id?: string | undefined;
219
+ entity_id?: string | undefined;
220
220
  product_ids?: string[] | undefined;
221
221
  free_trial?: boolean | undefined;
222
222
  success_url?: string | undefined;
@@ -257,15 +257,15 @@ declare const autumn: (options?: {
257
257
  check: {
258
258
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
259
259
  body: {
260
- feature_id?: string | undefined;
261
- entity_id?: string | undefined;
262
- required_balance?: number | undefined;
263
260
  product_id?: string | undefined;
261
+ entity_id?: string | undefined;
262
+ feature_id?: string | undefined;
264
263
  customer_data?: any;
265
264
  entity_data?: {
266
265
  feature_id: string;
267
266
  name?: string | undefined;
268
267
  } | undefined;
268
+ required_balance?: number | undefined;
269
269
  send_event?: boolean | undefined;
270
270
  with_preview?: boolean | undefined;
271
271
  };
@@ -313,27 +313,27 @@ declare const autumn: (options?: {
313
313
  name?: string | undefined;
314
314
  }>>;
315
315
  }, "customer_id">, "strip", z.ZodTypeAny, {
316
- feature_id?: string | undefined;
317
- entity_id?: string | undefined;
318
- required_balance?: number | undefined;
319
316
  product_id?: string | undefined;
317
+ entity_id?: string | undefined;
318
+ feature_id?: string | undefined;
320
319
  customer_data?: any;
321
320
  entity_data?: {
322
321
  feature_id: string;
323
322
  name?: string | undefined;
324
323
  } | undefined;
324
+ required_balance?: number | undefined;
325
325
  send_event?: boolean | undefined;
326
326
  with_preview?: boolean | undefined;
327
327
  }, {
328
- feature_id?: string | undefined;
329
- entity_id?: string | undefined;
330
- required_balance?: number | undefined;
331
328
  product_id?: string | undefined;
329
+ entity_id?: string | undefined;
330
+ feature_id?: string | undefined;
332
331
  customer_data?: any;
333
332
  entity_data?: {
334
333
  feature_id: string;
335
334
  name?: string | undefined;
336
335
  } | undefined;
336
+ required_balance?: number | undefined;
337
337
  send_event?: boolean | undefined;
338
338
  with_preview?: boolean | undefined;
339
339
  }>;
@@ -368,9 +368,9 @@ declare const autumn: (options?: {
368
368
  track: {
369
369
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
370
370
  body: {
371
- feature_id?: string | undefined;
372
- entity_id?: string | undefined;
373
371
  value?: number | undefined;
372
+ entity_id?: string | undefined;
373
+ feature_id?: string | undefined;
374
374
  customer_data?: any;
375
375
  entity_data?: any;
376
376
  event_name?: string | undefined;
@@ -410,17 +410,17 @@ declare const autumn: (options?: {
410
410
  idempotency_key: z.ZodOptional<z.ZodString>;
411
411
  entity_data: z.ZodOptional<z.ZodAny>;
412
412
  }, "customer_id">, "strip", z.ZodTypeAny, {
413
- feature_id?: string | undefined;
414
- entity_id?: string | undefined;
415
413
  value?: number | undefined;
414
+ entity_id?: string | undefined;
415
+ feature_id?: string | undefined;
416
416
  customer_data?: any;
417
417
  entity_data?: any;
418
418
  event_name?: string | undefined;
419
419
  idempotency_key?: string | undefined;
420
420
  }, {
421
- feature_id?: string | undefined;
422
- entity_id?: string | undefined;
423
421
  value?: number | undefined;
422
+ entity_id?: string | undefined;
423
+ feature_id?: string | undefined;
424
424
  customer_data?: any;
425
425
  entity_data?: any;
426
426
  event_name?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { A as Autumn } from './referralTypes-Dg9pRvI7.mjs';
1
+ import { A as Autumn } from './referralTypes-Dfg6if8j.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-HAk2vTns.js';
1
+ import { A as Autumn } from './referralTypes-D1Q2i3mG.js';
2
2
  import { AuthResult } from './utils/AuthFunction.js';
3
3
  import 'zod';
4
4
  import './response-CV6KGWH5.js';
@@ -192,6 +192,7 @@ interface CustomerProduct {
192
192
  status: ProductStatus;
193
193
  started_at: number;
194
194
  canceled_at: number | null;
195
+ version: number;
195
196
  subscription_ids?: string[] | null;
196
197
  current_period_start?: number | null;
197
198
  current_period_end?: number | null;
@@ -230,19 +231,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
230
231
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
231
232
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
232
233
  }, "strip", z.ZodTypeAny, {
233
- id?: string | null | undefined;
234
+ metadata?: Record<string, any> | undefined;
235
+ expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
234
236
  name?: string | null | undefined;
237
+ id?: string | null | undefined;
235
238
  email?: string | null | undefined;
236
239
  fingerprint?: string | null | undefined;
240
+ }, {
237
241
  metadata?: Record<string, any> | undefined;
238
242
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
239
- }, {
240
- id?: string | null | undefined;
241
243
  name?: string | null | undefined;
244
+ id?: string | null | undefined;
242
245
  email?: string | null | undefined;
243
246
  fingerprint?: string | null | undefined;
244
- metadata?: Record<string, any> | undefined;
245
- expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
246
247
  }>;
247
248
  type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
248
249
  interface UpdateCustomerParams {
@@ -294,13 +295,13 @@ declare const AttachParamsSchema: z.ZodObject<{
294
295
  reward: z.ZodOptional<z.ZodString>;
295
296
  }, "strip", z.ZodTypeAny, {
296
297
  customer_id: string;
297
- entity_id?: string | undefined;
298
298
  options?: {
299
299
  feature_id: string;
300
300
  quantity: number;
301
301
  }[] | undefined;
302
302
  metadata?: Record<string, string> | undefined;
303
303
  product_id?: string | undefined;
304
+ entity_id?: string | undefined;
304
305
  product_ids?: string[] | undefined;
305
306
  free_trial?: boolean | undefined;
306
307
  success_url?: string | undefined;
@@ -311,13 +312,13 @@ declare const AttachParamsSchema: z.ZodObject<{
311
312
  reward?: string | undefined;
312
313
  }, {
313
314
  customer_id: string;
314
- entity_id?: string | undefined;
315
315
  options?: {
316
316
  feature_id: string;
317
317
  quantity: number;
318
318
  }[] | undefined;
319
319
  metadata?: Record<string, string> | undefined;
320
320
  product_id?: string | undefined;
321
+ entity_id?: string | undefined;
321
322
  product_ids?: string[] | undefined;
322
323
  free_trial?: boolean | undefined;
323
324
  success_url?: string | undefined;
@@ -356,18 +357,18 @@ declare const TrackParamsSchema: z.ZodObject<{
356
357
  entity_data: z.ZodOptional<z.ZodAny>;
357
358
  }, "strip", z.ZodTypeAny, {
358
359
  customer_id: string;
359
- feature_id?: string | undefined;
360
- entity_id?: string | undefined;
361
360
  value?: number | undefined;
361
+ entity_id?: string | undefined;
362
+ feature_id?: string | undefined;
362
363
  customer_data?: any;
363
364
  entity_data?: any;
364
365
  event_name?: string | undefined;
365
366
  idempotency_key?: string | undefined;
366
367
  }, {
367
368
  customer_id: string;
368
- feature_id?: string | undefined;
369
- entity_id?: string | undefined;
370
369
  value?: number | undefined;
370
+ entity_id?: string | undefined;
371
+ feature_id?: string | undefined;
371
372
  customer_data?: any;
372
373
  entity_data?: any;
373
374
  event_name?: string | undefined;
@@ -395,28 +396,28 @@ declare const CheckParamsSchema: z.ZodObject<{
395
396
  }>>;
396
397
  }, "strip", z.ZodTypeAny, {
397
398
  customer_id: string;
398
- feature_id?: string | undefined;
399
- entity_id?: string | undefined;
400
- required_balance?: number | undefined;
401
399
  product_id?: string | undefined;
400
+ entity_id?: string | undefined;
401
+ feature_id?: string | undefined;
402
402
  customer_data?: any;
403
403
  entity_data?: {
404
404
  feature_id: string;
405
405
  name?: string | undefined;
406
406
  } | undefined;
407
+ required_balance?: number | undefined;
407
408
  send_event?: boolean | undefined;
408
409
  with_preview?: boolean | undefined;
409
410
  }, {
410
411
  customer_id: string;
411
- feature_id?: string | undefined;
412
- entity_id?: string | undefined;
413
- required_balance?: number | undefined;
414
412
  product_id?: string | undefined;
413
+ entity_id?: string | undefined;
414
+ feature_id?: string | undefined;
415
415
  customer_data?: any;
416
416
  entity_data?: {
417
417
  feature_id: string;
418
418
  name?: string | undefined;
419
419
  } | undefined;
420
+ required_balance?: number | undefined;
420
421
  send_event?: boolean | undefined;
421
422
  with_preview?: boolean | undefined;
422
423
  }>;
@@ -507,18 +508,18 @@ declare class Autumn {
507
508
  redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
508
509
  };
509
510
  static attach: (params: AttachParams) => Promise<Result<{
510
- customer_id: string;
511
- code: string;
512
511
  message: string;
512
+ code: string;
513
+ customer_id: string;
513
514
  product_ids: string[];
514
515
  customer_data?: any;
515
516
  checkout_url?: string | undefined;
516
517
  }, AutumnError>>;
517
518
  static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
518
519
  attach(params: AttachParams): Promise<Result<{
519
- customer_id: string;
520
- code: string;
521
520
  message: string;
521
+ code: string;
522
+ customer_id: string;
522
523
  product_ids: string[];
523
524
  customer_data?: any;
524
525
  checkout_url?: string | undefined;
@@ -552,8 +553,8 @@ declare class Autumn {
552
553
  * Please use the new track() method instead.
553
554
  */
554
555
  static event: (params: TrackParams) => Promise<Result<{
555
- customer_id: string;
556
556
  code: string;
557
+ customer_id: string;
557
558
  id: string;
558
559
  feature_id?: string | undefined;
559
560
  event_name?: string | undefined;
@@ -563,22 +564,22 @@ declare class Autumn {
563
564
  * Please use the new track() method instead.
564
565
  */
565
566
  event(params: TrackParams): Promise<Result<{
566
- customer_id: string;
567
567
  code: string;
568
+ customer_id: string;
568
569
  id: string;
569
570
  feature_id?: string | undefined;
570
571
  event_name?: string | undefined;
571
572
  }, AutumnError>>;
572
573
  static track: (params: TrackParams) => Promise<Result<{
573
- customer_id: string;
574
574
  code: string;
575
+ customer_id: string;
575
576
  id: string;
576
577
  feature_id?: string | undefined;
577
578
  event_name?: string | undefined;
578
579
  }, AutumnError>>;
579
580
  track(params: TrackParams): Promise<Result<{
580
- customer_id: string;
581
581
  code: string;
582
+ customer_id: string;
582
583
  id: string;
583
584
  feature_id?: string | undefined;
584
585
  event_name?: string | undefined;
@@ -629,11 +630,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
629
630
  code: z.ZodString;
630
631
  customer_id: z.ZodString;
631
632
  }, "strip", z.ZodTypeAny, {
632
- customer_id: string;
633
633
  code: string;
634
- }, {
635
634
  customer_id: string;
635
+ }, {
636
636
  code: string;
637
+ customer_id: string;
637
638
  }>;
638
639
  type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
639
640
 
@@ -192,6 +192,7 @@ interface CustomerProduct {
192
192
  status: ProductStatus;
193
193
  started_at: number;
194
194
  canceled_at: number | null;
195
+ version: number;
195
196
  subscription_ids?: string[] | null;
196
197
  current_period_start?: number | null;
197
198
  current_period_end?: number | null;
@@ -230,19 +231,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
230
231
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
231
232
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
232
233
  }, "strip", z.ZodTypeAny, {
233
- id?: string | null | undefined;
234
+ metadata?: Record<string, any> | undefined;
235
+ expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
234
236
  name?: string | null | undefined;
237
+ id?: string | null | undefined;
235
238
  email?: string | null | undefined;
236
239
  fingerprint?: string | null | undefined;
240
+ }, {
237
241
  metadata?: Record<string, any> | undefined;
238
242
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
239
- }, {
240
- id?: string | null | undefined;
241
243
  name?: string | null | undefined;
244
+ id?: string | null | undefined;
242
245
  email?: string | null | undefined;
243
246
  fingerprint?: string | null | undefined;
244
- metadata?: Record<string, any> | undefined;
245
- expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
246
247
  }>;
247
248
  type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
248
249
  interface UpdateCustomerParams {
@@ -294,13 +295,13 @@ declare const AttachParamsSchema: z.ZodObject<{
294
295
  reward: z.ZodOptional<z.ZodString>;
295
296
  }, "strip", z.ZodTypeAny, {
296
297
  customer_id: string;
297
- entity_id?: string | undefined;
298
298
  options?: {
299
299
  feature_id: string;
300
300
  quantity: number;
301
301
  }[] | undefined;
302
302
  metadata?: Record<string, string> | undefined;
303
303
  product_id?: string | undefined;
304
+ entity_id?: string | undefined;
304
305
  product_ids?: string[] | undefined;
305
306
  free_trial?: boolean | undefined;
306
307
  success_url?: string | undefined;
@@ -311,13 +312,13 @@ declare const AttachParamsSchema: z.ZodObject<{
311
312
  reward?: string | undefined;
312
313
  }, {
313
314
  customer_id: string;
314
- entity_id?: string | undefined;
315
315
  options?: {
316
316
  feature_id: string;
317
317
  quantity: number;
318
318
  }[] | undefined;
319
319
  metadata?: Record<string, string> | undefined;
320
320
  product_id?: string | undefined;
321
+ entity_id?: string | undefined;
321
322
  product_ids?: string[] | undefined;
322
323
  free_trial?: boolean | undefined;
323
324
  success_url?: string | undefined;
@@ -356,18 +357,18 @@ declare const TrackParamsSchema: z.ZodObject<{
356
357
  entity_data: z.ZodOptional<z.ZodAny>;
357
358
  }, "strip", z.ZodTypeAny, {
358
359
  customer_id: string;
359
- feature_id?: string | undefined;
360
- entity_id?: string | undefined;
361
360
  value?: number | undefined;
361
+ entity_id?: string | undefined;
362
+ feature_id?: string | undefined;
362
363
  customer_data?: any;
363
364
  entity_data?: any;
364
365
  event_name?: string | undefined;
365
366
  idempotency_key?: string | undefined;
366
367
  }, {
367
368
  customer_id: string;
368
- feature_id?: string | undefined;
369
- entity_id?: string | undefined;
370
369
  value?: number | undefined;
370
+ entity_id?: string | undefined;
371
+ feature_id?: string | undefined;
371
372
  customer_data?: any;
372
373
  entity_data?: any;
373
374
  event_name?: string | undefined;
@@ -395,28 +396,28 @@ declare const CheckParamsSchema: z.ZodObject<{
395
396
  }>>;
396
397
  }, "strip", z.ZodTypeAny, {
397
398
  customer_id: string;
398
- feature_id?: string | undefined;
399
- entity_id?: string | undefined;
400
- required_balance?: number | undefined;
401
399
  product_id?: string | undefined;
400
+ entity_id?: string | undefined;
401
+ feature_id?: string | undefined;
402
402
  customer_data?: any;
403
403
  entity_data?: {
404
404
  feature_id: string;
405
405
  name?: string | undefined;
406
406
  } | undefined;
407
+ required_balance?: number | undefined;
407
408
  send_event?: boolean | undefined;
408
409
  with_preview?: boolean | undefined;
409
410
  }, {
410
411
  customer_id: string;
411
- feature_id?: string | undefined;
412
- entity_id?: string | undefined;
413
- required_balance?: number | undefined;
414
412
  product_id?: string | undefined;
413
+ entity_id?: string | undefined;
414
+ feature_id?: string | undefined;
415
415
  customer_data?: any;
416
416
  entity_data?: {
417
417
  feature_id: string;
418
418
  name?: string | undefined;
419
419
  } | undefined;
420
+ required_balance?: number | undefined;
420
421
  send_event?: boolean | undefined;
421
422
  with_preview?: boolean | undefined;
422
423
  }>;
@@ -507,18 +508,18 @@ declare class Autumn {
507
508
  redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
508
509
  };
509
510
  static attach: (params: AttachParams) => Promise<Result<{
510
- customer_id: string;
511
- code: string;
512
511
  message: string;
512
+ code: string;
513
+ customer_id: string;
513
514
  product_ids: string[];
514
515
  customer_data?: any;
515
516
  checkout_url?: string | undefined;
516
517
  }, AutumnError>>;
517
518
  static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
518
519
  attach(params: AttachParams): Promise<Result<{
519
- customer_id: string;
520
- code: string;
521
520
  message: string;
521
+ code: string;
522
+ customer_id: string;
522
523
  product_ids: string[];
523
524
  customer_data?: any;
524
525
  checkout_url?: string | undefined;
@@ -552,8 +553,8 @@ declare class Autumn {
552
553
  * Please use the new track() method instead.
553
554
  */
554
555
  static event: (params: TrackParams) => Promise<Result<{
555
- customer_id: string;
556
556
  code: string;
557
+ customer_id: string;
557
558
  id: string;
558
559
  feature_id?: string | undefined;
559
560
  event_name?: string | undefined;
@@ -563,22 +564,22 @@ declare class Autumn {
563
564
  * Please use the new track() method instead.
564
565
  */
565
566
  event(params: TrackParams): Promise<Result<{
566
- customer_id: string;
567
567
  code: string;
568
+ customer_id: string;
568
569
  id: string;
569
570
  feature_id?: string | undefined;
570
571
  event_name?: string | undefined;
571
572
  }, AutumnError>>;
572
573
  static track: (params: TrackParams) => Promise<Result<{
573
- customer_id: string;
574
574
  code: string;
575
+ customer_id: string;
575
576
  id: string;
576
577
  feature_id?: string | undefined;
577
578
  event_name?: string | undefined;
578
579
  }, AutumnError>>;
579
580
  track(params: TrackParams): Promise<Result<{
580
- customer_id: string;
581
581
  code: string;
582
+ customer_id: string;
582
583
  id: string;
583
584
  feature_id?: string | undefined;
584
585
  event_name?: string | undefined;
@@ -629,11 +630,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
629
630
  code: z.ZodString;
630
631
  customer_id: z.ZodString;
631
632
  }, "strip", z.ZodTypeAny, {
632
- customer_id: string;
633
633
  code: string;
634
- }, {
635
634
  customer_id: string;
635
+ }, {
636
636
  code: string;
637
+ customer_id: string;
637
638
  }>;
638
639
  type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
639
640
 
@@ -1,4 +1,4 @@
1
- import { A as Autumn, C as CustomerData } from '../referralTypes-Dg9pRvI7.mjs';
1
+ import { A as Autumn, C as CustomerData } from '../referralTypes-Dfg6if8j.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-HAk2vTns.js';
1
+ import { A as Autumn, C as CustomerData } from '../referralTypes-D1Q2i3mG.js';
2
2
  import { AuthResult } from './AuthFunction.js';
3
3
  import 'zod';
4
4
  import '../response-CV6KGWH5.js';