autumn-js 0.0.96 → 0.0.100

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 (137) 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-Dg9pRvI7.d.mts → referralTypes-CkT8JNar.d.mts} +29 -27
  6. package/dist/libraries/backend/{referralTypes-HAk2vTns.d.ts → referralTypes-Dh4wyHJ1.d.ts} +29 -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 +4 -4
  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-CXaaDdjS.d.mts → ReactAutumnClient-Da2CbwmZ.d.mts} +5 -5
  16. package/dist/libraries/react/{ReactAutumnClient-iUQGnJyH.d.ts → ReactAutumnClient-DpexS7O5.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-MZDRIPNS.mjs → chunk-6SRIDR3L.mjs} +2 -2
  21. package/dist/libraries/react/{chunk-T5PIJ4HG.mjs → chunk-BYXO62BF.mjs} +2 -2
  22. package/dist/libraries/react/{chunk-IN62REVO.mjs → chunk-DW6X6NNG.mjs} +2 -2
  23. package/dist/libraries/react/{chunk-6CJ3FB74.mjs → chunk-EZAZUSYO.mjs} +2 -2
  24. package/dist/libraries/react/{chunk-G3FBFZLU.mjs → chunk-GQ3TAHSV.mjs} +1 -1
  25. package/dist/libraries/react/{chunk-CAMHARUX.mjs → chunk-H2NGSCWI.mjs} +2 -2
  26. package/dist/libraries/react/{chunk-LVDONEVF.mjs → chunk-HJ374VZF.mjs} +2 -2
  27. package/dist/libraries/react/{chunk-5G3DYUNT.mjs → chunk-K3223VDB.mjs} +1 -1
  28. package/dist/libraries/react/{chunk-APDR7D6A.mjs → chunk-KRW7ZHBV.mjs} +2 -2
  29. package/dist/libraries/react/{chunk-R4BYOLST.mjs → chunk-TPKQIL3N.mjs} +2 -2
  30. package/dist/libraries/react/{chunk-DVMVIAZE.mjs → chunk-VRDE5C4M.mjs} +3 -3
  31. package/dist/libraries/react/{chunk-AOJCMXVS.mjs → chunk-XOGMTMNM.mjs} +3 -3
  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 +3 -3
  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.d.mts +1 -1
  50. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
  51. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +16 -16
  52. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
  53. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
  54. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  55. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  56. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  57. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  58. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  59. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  60. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +16 -16
  61. package/dist/libraries/react/{cusTypes-WaPJKeAb.d.ts → cusTypes-4aCCdGkc.d.mts} +4 -2
  62. package/dist/libraries/react/{cusTypes-WaPJKeAb.d.mts → cusTypes-4aCCdGkc.d.ts} +4 -2
  63. package/dist/libraries/react/{entTypes-D01S8gFX.d.ts → entTypes-BgAiRNBf.d.ts} +1 -1
  64. package/dist/libraries/react/{entTypes-aIV0QUCW.d.mts → entTypes-Bw20cBXx.d.mts} +1 -1
  65. package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
  66. package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
  67. package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
  68. package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
  69. package/dist/libraries/react/hooks/useAutumn.mjs +7 -7
  70. package/dist/libraries/react/hooks/useAutumnBase.d.mts +4 -4
  71. package/dist/libraries/react/hooks/useAutumnBase.d.ts +4 -4
  72. package/dist/libraries/react/hooks/useAutumnBase.mjs +6 -6
  73. package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
  74. package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
  75. package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
  76. package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
  77. package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
  78. package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
  79. package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
  80. package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
  81. package/dist/libraries/react/hooks/useEntity.mjs +8 -8
  82. package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
  83. package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
  84. package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
  85. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  86. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  87. package/dist/libraries/react/hooks/usePricingTable.mjs +6 -6
  88. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
  89. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
  90. package/dist/libraries/react/hooks/usePricingTableBase.mjs +5 -5
  91. package/dist/libraries/react/hooks/useProductsBase.mjs +4 -4
  92. package/dist/libraries/react/index.d.mts +2 -0
  93. package/dist/libraries/react/index.d.ts +2 -0
  94. package/dist/libraries/react/{response-C0MTZEqT.d.ts → response-B9P0zPDQ.d.ts} +1 -1
  95. package/dist/libraries/react/{response-FC9NTmn2.d.mts → response-D24DJs94.d.mts} +1 -1
  96. package/dist/next/{AutumnProvider-CCYZC_bN.d.mts → AutumnProvider-BFEETHYT.d.mts} +2 -0
  97. package/dist/next/{AutumnProvider-CCYZC_bN.d.ts → AutumnProvider-BFEETHYT.d.ts} +2 -0
  98. package/dist/next/AutumnProvider.d.mts +1 -1
  99. package/dist/next/AutumnProvider.d.ts +1 -1
  100. package/dist/next/client/NextAutumnClient.d.mts +14 -14
  101. package/dist/next/client/NextAutumnClient.d.ts +14 -14
  102. package/dist/next/client/NextAutumnProvider.d.mts +1 -1
  103. package/dist/next/client/NextAutumnProvider.d.ts +1 -1
  104. package/dist/next/client/{clientGenTypes-BHk25QIO.d.mts → clientGenTypes-BIYZcmWk.d.mts} +25 -25
  105. package/dist/next/client/{clientGenTypes-CpX8Cvjm.d.ts → clientGenTypes-xd2Egfm-.d.ts} +25 -25
  106. package/dist/next/client/clientUtils.d.mts +2 -2
  107. package/dist/next/client/clientUtils.d.ts +2 -2
  108. package/dist/next/client/{cusTypes-D8lhXGaX.d.mts → cusTypes-u2ZoeKeF.d.mts} +4 -2
  109. package/dist/next/client/{cusTypes-D8lhXGaX.d.ts → cusTypes-u2ZoeKeF.d.ts} +4 -2
  110. package/dist/next/client/{entTypes-B-2_9hzP.d.mts → entTypes-B54OSRIo.d.mts} +1 -1
  111. package/dist/next/client/{entTypes-Dq2mbehl.d.ts → entTypes-Cl6ES2C6.d.ts} +1 -1
  112. package/dist/next/client/hooks/useAutumn.d.mts +2 -2
  113. package/dist/next/client/hooks/useAutumn.d.ts +2 -2
  114. package/dist/next/client/hooks/useCustomer.d.mts +3 -3
  115. package/dist/next/client/hooks/useCustomer.d.ts +3 -3
  116. package/dist/next/client/hooks/useEntity.d.mts +5 -5
  117. package/dist/next/client/hooks/useEntity.d.ts +5 -5
  118. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  119. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  120. package/dist/next/client/types.d.mts +2 -2
  121. package/dist/next/client/types.d.ts +2 -2
  122. package/dist/next/index.d.mts +2 -2
  123. package/dist/next/index.d.ts +2 -2
  124. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  125. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  126. package/dist/next/server/componentActions.d.mts +1 -1
  127. package/dist/next/server/componentActions.d.ts +1 -1
  128. package/dist/next/server/cusActions.d.mts +1 -1
  129. package/dist/next/server/cusActions.d.ts +1 -1
  130. package/dist/next/server/{cusTypes-Cy72qmFx.d.mts → cusTypes-JQwzkgDU.d.mts} +2 -0
  131. package/dist/next/server/{cusTypes-Cy72qmFx.d.ts → cusTypes-JQwzkgDU.d.ts} +2 -0
  132. package/dist/next/server/genActions.d.mts +1 -1
  133. package/dist/next/server/genActions.d.ts +1 -1
  134. package/dist/sdk/index.d.mts +2 -0
  135. package/dist/sdk/index.d.ts +2 -0
  136. package/package.json +1 -1
  137. package/dist/libraries/react/{chunk-ALFXUHDD.mjs → chunk-ALIGIMSK.mjs} +6 -6
@@ -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-CkT8JNar.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-Dh4wyHJ1.js';
2
2
  import { AuthResult } from './utils/AuthFunction.js';
3
3
  import 'zod';
4
4
  import './response-CV6KGWH5.js';
@@ -90,6 +90,7 @@ declare enum AppEnv {
90
90
  }
91
91
 
92
92
  interface ProductItem {
93
+ type?: "feature" | "priced_feature" | "price";
93
94
  feature_id?: string;
94
95
  included_usage?: number | typeof Infinite;
95
96
  interval?: ProductItemIntervalType;
@@ -192,6 +193,7 @@ interface CustomerProduct {
192
193
  status: ProductStatus;
193
194
  started_at: number;
194
195
  canceled_at: number | null;
196
+ version: number;
195
197
  subscription_ids?: string[] | null;
196
198
  current_period_start?: number | null;
197
199
  current_period_end?: number | null;
@@ -230,19 +232,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
230
232
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
231
233
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
232
234
  }, "strip", z.ZodTypeAny, {
233
- id?: string | null | undefined;
235
+ metadata?: Record<string, any> | undefined;
236
+ expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
234
237
  name?: string | null | undefined;
238
+ id?: string | null | undefined;
235
239
  email?: string | null | undefined;
236
240
  fingerprint?: string | null | undefined;
241
+ }, {
237
242
  metadata?: Record<string, any> | undefined;
238
243
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
239
- }, {
240
- id?: string | null | undefined;
241
244
  name?: string | null | undefined;
245
+ id?: string | null | undefined;
242
246
  email?: string | null | undefined;
243
247
  fingerprint?: string | null | undefined;
244
- metadata?: Record<string, any> | undefined;
245
- expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
246
248
  }>;
247
249
  type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
248
250
  interface UpdateCustomerParams {
@@ -294,13 +296,13 @@ declare const AttachParamsSchema: z.ZodObject<{
294
296
  reward: z.ZodOptional<z.ZodString>;
295
297
  }, "strip", z.ZodTypeAny, {
296
298
  customer_id: string;
297
- entity_id?: string | undefined;
298
299
  options?: {
299
300
  feature_id: string;
300
301
  quantity: number;
301
302
  }[] | undefined;
302
303
  metadata?: Record<string, string> | undefined;
303
304
  product_id?: string | undefined;
305
+ entity_id?: string | undefined;
304
306
  product_ids?: string[] | undefined;
305
307
  free_trial?: boolean | undefined;
306
308
  success_url?: string | undefined;
@@ -311,13 +313,13 @@ declare const AttachParamsSchema: z.ZodObject<{
311
313
  reward?: string | undefined;
312
314
  }, {
313
315
  customer_id: string;
314
- entity_id?: string | undefined;
315
316
  options?: {
316
317
  feature_id: string;
317
318
  quantity: number;
318
319
  }[] | undefined;
319
320
  metadata?: Record<string, string> | undefined;
320
321
  product_id?: string | undefined;
322
+ entity_id?: string | undefined;
321
323
  product_ids?: string[] | undefined;
322
324
  free_trial?: boolean | undefined;
323
325
  success_url?: string | undefined;
@@ -356,18 +358,18 @@ declare const TrackParamsSchema: z.ZodObject<{
356
358
  entity_data: z.ZodOptional<z.ZodAny>;
357
359
  }, "strip", z.ZodTypeAny, {
358
360
  customer_id: string;
359
- feature_id?: string | undefined;
360
- entity_id?: string | undefined;
361
361
  value?: number | undefined;
362
+ entity_id?: string | undefined;
363
+ feature_id?: string | undefined;
362
364
  customer_data?: any;
363
365
  entity_data?: any;
364
366
  event_name?: string | undefined;
365
367
  idempotency_key?: string | undefined;
366
368
  }, {
367
369
  customer_id: string;
368
- feature_id?: string | undefined;
369
- entity_id?: string | undefined;
370
370
  value?: number | undefined;
371
+ entity_id?: string | undefined;
372
+ feature_id?: string | undefined;
371
373
  customer_data?: any;
372
374
  entity_data?: any;
373
375
  event_name?: string | undefined;
@@ -395,28 +397,28 @@ declare const CheckParamsSchema: z.ZodObject<{
395
397
  }>>;
396
398
  }, "strip", z.ZodTypeAny, {
397
399
  customer_id: string;
398
- feature_id?: string | undefined;
399
- entity_id?: string | undefined;
400
- required_balance?: number | undefined;
401
400
  product_id?: string | undefined;
401
+ entity_id?: string | undefined;
402
+ feature_id?: string | undefined;
402
403
  customer_data?: any;
403
404
  entity_data?: {
404
405
  feature_id: string;
405
406
  name?: string | undefined;
406
407
  } | undefined;
408
+ required_balance?: number | undefined;
407
409
  send_event?: boolean | undefined;
408
410
  with_preview?: boolean | undefined;
409
411
  }, {
410
412
  customer_id: string;
411
- feature_id?: string | undefined;
412
- entity_id?: string | undefined;
413
- required_balance?: number | undefined;
414
413
  product_id?: string | undefined;
414
+ entity_id?: string | undefined;
415
+ feature_id?: string | undefined;
415
416
  customer_data?: any;
416
417
  entity_data?: {
417
418
  feature_id: string;
418
419
  name?: string | undefined;
419
420
  } | undefined;
421
+ required_balance?: number | undefined;
420
422
  send_event?: boolean | undefined;
421
423
  with_preview?: boolean | undefined;
422
424
  }>;
@@ -507,18 +509,18 @@ declare class Autumn {
507
509
  redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
508
510
  };
509
511
  static attach: (params: AttachParams) => Promise<Result<{
510
- customer_id: string;
511
- code: string;
512
512
  message: string;
513
+ code: string;
514
+ customer_id: string;
513
515
  product_ids: string[];
514
516
  customer_data?: any;
515
517
  checkout_url?: string | undefined;
516
518
  }, AutumnError>>;
517
519
  static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
518
520
  attach(params: AttachParams): Promise<Result<{
519
- customer_id: string;
520
- code: string;
521
521
  message: string;
522
+ code: string;
523
+ customer_id: string;
522
524
  product_ids: string[];
523
525
  customer_data?: any;
524
526
  checkout_url?: string | undefined;
@@ -552,8 +554,8 @@ declare class Autumn {
552
554
  * Please use the new track() method instead.
553
555
  */
554
556
  static event: (params: TrackParams) => Promise<Result<{
555
- customer_id: string;
556
557
  code: string;
558
+ customer_id: string;
557
559
  id: string;
558
560
  feature_id?: string | undefined;
559
561
  event_name?: string | undefined;
@@ -563,22 +565,22 @@ declare class Autumn {
563
565
  * Please use the new track() method instead.
564
566
  */
565
567
  event(params: TrackParams): Promise<Result<{
566
- customer_id: string;
567
568
  code: string;
569
+ customer_id: string;
568
570
  id: string;
569
571
  feature_id?: string | undefined;
570
572
  event_name?: string | undefined;
571
573
  }, AutumnError>>;
572
574
  static track: (params: TrackParams) => Promise<Result<{
573
- customer_id: string;
574
575
  code: string;
576
+ customer_id: string;
575
577
  id: string;
576
578
  feature_id?: string | undefined;
577
579
  event_name?: string | undefined;
578
580
  }, AutumnError>>;
579
581
  track(params: TrackParams): Promise<Result<{
580
- customer_id: string;
581
582
  code: string;
583
+ customer_id: string;
582
584
  id: string;
583
585
  feature_id?: string | undefined;
584
586
  event_name?: string | undefined;
@@ -629,11 +631,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
629
631
  code: z.ZodString;
630
632
  customer_id: z.ZodString;
631
633
  }, "strip", z.ZodTypeAny, {
632
- customer_id: string;
633
634
  code: string;
634
- }, {
635
635
  customer_id: string;
636
+ }, {
636
637
  code: string;
638
+ customer_id: string;
637
639
  }>;
638
640
  type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
639
641
 
@@ -90,6 +90,7 @@ declare enum AppEnv {
90
90
  }
91
91
 
92
92
  interface ProductItem {
93
+ type?: "feature" | "priced_feature" | "price";
93
94
  feature_id?: string;
94
95
  included_usage?: number | typeof Infinite;
95
96
  interval?: ProductItemIntervalType;
@@ -192,6 +193,7 @@ interface CustomerProduct {
192
193
  status: ProductStatus;
193
194
  started_at: number;
194
195
  canceled_at: number | null;
196
+ version: number;
195
197
  subscription_ids?: string[] | null;
196
198
  current_period_start?: number | null;
197
199
  current_period_end?: number | null;
@@ -230,19 +232,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
230
232
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
231
233
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
232
234
  }, "strip", z.ZodTypeAny, {
233
- id?: string | null | undefined;
235
+ metadata?: Record<string, any> | undefined;
236
+ expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
234
237
  name?: string | null | undefined;
238
+ id?: string | null | undefined;
235
239
  email?: string | null | undefined;
236
240
  fingerprint?: string | null | undefined;
241
+ }, {
237
242
  metadata?: Record<string, any> | undefined;
238
243
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
239
- }, {
240
- id?: string | null | undefined;
241
244
  name?: string | null | undefined;
245
+ id?: string | null | undefined;
242
246
  email?: string | null | undefined;
243
247
  fingerprint?: string | null | undefined;
244
- metadata?: Record<string, any> | undefined;
245
- expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
246
248
  }>;
247
249
  type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
248
250
  interface UpdateCustomerParams {
@@ -294,13 +296,13 @@ declare const AttachParamsSchema: z.ZodObject<{
294
296
  reward: z.ZodOptional<z.ZodString>;
295
297
  }, "strip", z.ZodTypeAny, {
296
298
  customer_id: string;
297
- entity_id?: string | undefined;
298
299
  options?: {
299
300
  feature_id: string;
300
301
  quantity: number;
301
302
  }[] | undefined;
302
303
  metadata?: Record<string, string> | undefined;
303
304
  product_id?: string | undefined;
305
+ entity_id?: string | undefined;
304
306
  product_ids?: string[] | undefined;
305
307
  free_trial?: boolean | undefined;
306
308
  success_url?: string | undefined;
@@ -311,13 +313,13 @@ declare const AttachParamsSchema: z.ZodObject<{
311
313
  reward?: string | undefined;
312
314
  }, {
313
315
  customer_id: string;
314
- entity_id?: string | undefined;
315
316
  options?: {
316
317
  feature_id: string;
317
318
  quantity: number;
318
319
  }[] | undefined;
319
320
  metadata?: Record<string, string> | undefined;
320
321
  product_id?: string | undefined;
322
+ entity_id?: string | undefined;
321
323
  product_ids?: string[] | undefined;
322
324
  free_trial?: boolean | undefined;
323
325
  success_url?: string | undefined;
@@ -356,18 +358,18 @@ declare const TrackParamsSchema: z.ZodObject<{
356
358
  entity_data: z.ZodOptional<z.ZodAny>;
357
359
  }, "strip", z.ZodTypeAny, {
358
360
  customer_id: string;
359
- feature_id?: string | undefined;
360
- entity_id?: string | undefined;
361
361
  value?: number | undefined;
362
+ entity_id?: string | undefined;
363
+ feature_id?: string | undefined;
362
364
  customer_data?: any;
363
365
  entity_data?: any;
364
366
  event_name?: string | undefined;
365
367
  idempotency_key?: string | undefined;
366
368
  }, {
367
369
  customer_id: string;
368
- feature_id?: string | undefined;
369
- entity_id?: string | undefined;
370
370
  value?: number | undefined;
371
+ entity_id?: string | undefined;
372
+ feature_id?: string | undefined;
371
373
  customer_data?: any;
372
374
  entity_data?: any;
373
375
  event_name?: string | undefined;
@@ -395,28 +397,28 @@ declare const CheckParamsSchema: z.ZodObject<{
395
397
  }>>;
396
398
  }, "strip", z.ZodTypeAny, {
397
399
  customer_id: string;
398
- feature_id?: string | undefined;
399
- entity_id?: string | undefined;
400
- required_balance?: number | undefined;
401
400
  product_id?: string | undefined;
401
+ entity_id?: string | undefined;
402
+ feature_id?: string | undefined;
402
403
  customer_data?: any;
403
404
  entity_data?: {
404
405
  feature_id: string;
405
406
  name?: string | undefined;
406
407
  } | undefined;
408
+ required_balance?: number | undefined;
407
409
  send_event?: boolean | undefined;
408
410
  with_preview?: boolean | undefined;
409
411
  }, {
410
412
  customer_id: string;
411
- feature_id?: string | undefined;
412
- entity_id?: string | undefined;
413
- required_balance?: number | undefined;
414
413
  product_id?: string | undefined;
414
+ entity_id?: string | undefined;
415
+ feature_id?: string | undefined;
415
416
  customer_data?: any;
416
417
  entity_data?: {
417
418
  feature_id: string;
418
419
  name?: string | undefined;
419
420
  } | undefined;
421
+ required_balance?: number | undefined;
420
422
  send_event?: boolean | undefined;
421
423
  with_preview?: boolean | undefined;
422
424
  }>;
@@ -507,18 +509,18 @@ declare class Autumn {
507
509
  redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
508
510
  };
509
511
  static attach: (params: AttachParams) => Promise<Result<{
510
- customer_id: string;
511
- code: string;
512
512
  message: string;
513
+ code: string;
514
+ customer_id: string;
513
515
  product_ids: string[];
514
516
  customer_data?: any;
515
517
  checkout_url?: string | undefined;
516
518
  }, AutumnError>>;
517
519
  static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
518
520
  attach(params: AttachParams): Promise<Result<{
519
- customer_id: string;
520
- code: string;
521
521
  message: string;
522
+ code: string;
523
+ customer_id: string;
522
524
  product_ids: string[];
523
525
  customer_data?: any;
524
526
  checkout_url?: string | undefined;
@@ -552,8 +554,8 @@ declare class Autumn {
552
554
  * Please use the new track() method instead.
553
555
  */
554
556
  static event: (params: TrackParams) => Promise<Result<{
555
- customer_id: string;
556
557
  code: string;
558
+ customer_id: string;
557
559
  id: string;
558
560
  feature_id?: string | undefined;
559
561
  event_name?: string | undefined;
@@ -563,22 +565,22 @@ declare class Autumn {
563
565
  * Please use the new track() method instead.
564
566
  */
565
567
  event(params: TrackParams): Promise<Result<{
566
- customer_id: string;
567
568
  code: string;
569
+ customer_id: string;
568
570
  id: string;
569
571
  feature_id?: string | undefined;
570
572
  event_name?: string | undefined;
571
573
  }, AutumnError>>;
572
574
  static track: (params: TrackParams) => Promise<Result<{
573
- customer_id: string;
574
575
  code: string;
576
+ customer_id: string;
575
577
  id: string;
576
578
  feature_id?: string | undefined;
577
579
  event_name?: string | undefined;
578
580
  }, AutumnError>>;
579
581
  track(params: TrackParams): Promise<Result<{
580
- customer_id: string;
581
582
  code: string;
583
+ customer_id: string;
582
584
  id: string;
583
585
  feature_id?: string | undefined;
584
586
  event_name?: string | undefined;
@@ -629,11 +631,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
629
631
  code: z.ZodString;
630
632
  customer_id: z.ZodString;
631
633
  }, "strip", z.ZodTypeAny, {
632
- customer_id: string;
633
634
  code: string;
634
- }, {
635
635
  customer_id: string;
636
+ }, {
636
637
  code: string;
638
+ customer_id: string;
637
639
  }>;
638
640
  type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
639
641
 
@@ -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-CkT8JNar.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-Dh4wyHJ1.js';
2
2
  import { AuthResult } from './AuthFunction.js';
3
3
  import 'zod';
4
4
  import '../response-CV6KGWH5.js';