autumn-js 0.0.106 → 0.0.107

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 (166) 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/better-auth.mjs +2 -2
  4. package/dist/libraries/backend/convex.mjs +2 -2
  5. package/dist/libraries/backend/elysia.mjs +2 -2
  6. package/dist/libraries/backend/express.d.mts +1 -1
  7. package/dist/libraries/backend/express.d.ts +1 -1
  8. package/dist/libraries/backend/express.mjs +2 -2
  9. package/dist/libraries/backend/fastify.mjs +2 -2
  10. package/dist/libraries/backend/hono.mjs +2 -2
  11. package/dist/libraries/backend/next.mjs +2 -2
  12. package/dist/libraries/backend/react-router.mjs +2 -2
  13. package/dist/libraries/backend/{referralTypes-CnYanpMd.d.ts → referralTypes-BpOamxCs.d.ts} +28 -28
  14. package/dist/libraries/backend/{referralTypes-jA7MQ1y5.d.mts → referralTypes-CL2y5hbv.d.mts} +28 -28
  15. package/dist/libraries/backend/remix_dep.mjs +2 -2
  16. package/dist/libraries/backend/routes/backendRouter.mjs +2 -2
  17. package/dist/libraries/backend/supabase.mjs +2 -2
  18. package/dist/libraries/backend/tanstack.mjs +2 -2
  19. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  20. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  21. package/dist/libraries/react/AutumnContext.d.mts +5 -5
  22. package/dist/libraries/react/AutumnContext.d.ts +5 -5
  23. package/dist/libraries/react/AutumnContext.mjs +6 -6
  24. package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -5
  25. package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -5
  26. package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
  27. package/dist/libraries/react/{ReactAutumnClient-BuQHr-be.d.mts → ReactAutumnClient-BpXo7k9S.d.mts} +4 -4
  28. package/dist/libraries/react/{ReactAutumnClient-BICsMJ-m.d.ts → ReactAutumnClient-Cr0JiREm.d.ts} +4 -4
  29. package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
  30. package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
  31. package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
  32. package/dist/libraries/react/{attachTypes-CsFmlhk3.d.mts → attachTypes-CRCMAcZg.d.mts} +1 -1
  33. package/dist/{next/client/attachTypes-BL6x9Zbx.d.ts → libraries/react/attachTypes-DfACqtlD.d.ts} +7 -7
  34. package/dist/libraries/react/{chunk-4CHWEUKX.mjs → chunk-2LCMYER5.mjs} +2 -2
  35. package/dist/libraries/react/{chunk-LXD6AEZW.mjs → chunk-4K7ZXCEU.mjs} +1 -1
  36. package/dist/libraries/react/{chunk-DRAIZ3UZ.mjs → chunk-5YEDOCUG.mjs} +3 -3
  37. package/dist/libraries/react/{chunk-KJLHVBV4.mjs → chunk-A4HGGTVT.mjs} +2 -2
  38. package/dist/libraries/react/{chunk-6RNG47NV.mjs → chunk-FB6W5XQX.mjs} +1 -1
  39. package/dist/libraries/react/{chunk-7DINVACK.mjs → chunk-HQTQYHKS.mjs} +2 -2
  40. package/dist/libraries/react/{chunk-OM3ROIZO.mjs → chunk-HRE3F4SD.mjs} +2 -2
  41. package/dist/libraries/react/{chunk-KDD5RMQ3.mjs → chunk-IZSSJHYG.mjs} +2 -2
  42. package/dist/libraries/react/{chunk-OEIUKLFH.mjs → chunk-NPEXC3I5.mjs} +2 -2
  43. package/dist/libraries/react/{chunk-RCTILKK3.mjs → chunk-O6TAJHK3.mjs} +3 -3
  44. package/dist/libraries/react/{chunk-XXGKLOAK.mjs → chunk-QKNW5ACT.mjs} +3 -3
  45. package/dist/libraries/react/{chunk-CBPZVSMZ.mjs → chunk-URQMBRFZ.mjs} +2 -2
  46. package/dist/libraries/react/{chunk-677B44JM.mjs → chunk-VWVC5X2R.mjs} +12 -12
  47. package/dist/libraries/react/{chunk-OTYSAMRH.mjs → chunk-X2ZMWBM7.mjs} +2 -2
  48. package/dist/libraries/react/client/ReactAutumnClient.d.mts +5 -5
  49. package/dist/libraries/react/client/ReactAutumnClient.d.ts +5 -5
  50. package/dist/libraries/react/client/ReactAutumnClient.mjs +5 -5
  51. package/dist/libraries/react/client/clientCompMethods.d.mts +5 -5
  52. package/dist/libraries/react/client/clientCompMethods.d.ts +5 -5
  53. package/dist/libraries/react/client/clientCusMethods.d.mts +5 -5
  54. package/dist/libraries/react/client/clientCusMethods.d.ts +5 -5
  55. package/dist/libraries/react/client/clientEntityMethods.d.mts +5 -5
  56. package/dist/libraries/react/client/clientEntityMethods.d.ts +5 -5
  57. package/dist/libraries/react/client/clientGenMethods.d.mts +5 -5
  58. package/dist/libraries/react/client/clientGenMethods.d.ts +5 -5
  59. package/dist/libraries/react/client/clientProdMethods.d.mts +5 -5
  60. package/dist/libraries/react/client/clientProdMethods.d.ts +5 -5
  61. package/dist/libraries/react/client/clientReferralMethods.d.mts +5 -5
  62. package/dist/libraries/react/client/clientReferralMethods.d.ts +5 -5
  63. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +2 -2
  64. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +2 -2
  65. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +4 -4
  66. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +21 -21
  67. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +2 -2
  68. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +2 -2
  69. package/dist/libraries/react/components/attach-dialog/lib/attach-content.js +3 -3
  70. package/dist/libraries/react/components/attach-dialog/lib/attach-content.mjs +1 -1
  71. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  72. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  73. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  74. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  75. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
  76. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
  77. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.js +2 -2
  78. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.mjs +1 -1
  79. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  80. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  81. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +7 -7
  82. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +21 -21
  83. package/dist/libraries/react/components/ui/button.d.mts +1 -1
  84. package/dist/libraries/react/components/ui/button.d.ts +1 -1
  85. package/dist/libraries/react/{cusTypes-l9ZWuqVq.d.ts → cusTypes-B9PUlh3i.d.mts} +4 -4
  86. package/dist/libraries/react/{cusTypes-l9ZWuqVq.d.mts → cusTypes-B9PUlh3i.d.ts} +4 -4
  87. package/dist/libraries/react/{entTypes-Diy1Q4vW.d.mts → entTypes-DgHZw9Eg.d.mts} +1 -1
  88. package/dist/libraries/react/{entTypes-CFDcayTF.d.ts → entTypes-GuU6bc8U.d.ts} +1 -1
  89. package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
  90. package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
  91. package/dist/libraries/react/hooks/useAutumn.d.mts +3 -3
  92. package/dist/libraries/react/hooks/useAutumn.d.ts +3 -3
  93. package/dist/libraries/react/hooks/useAutumn.mjs +9 -9
  94. package/dist/libraries/react/hooks/useAutumnBase.d.mts +5 -5
  95. package/dist/libraries/react/hooks/useAutumnBase.d.ts +5 -5
  96. package/dist/libraries/react/hooks/useAutumnBase.mjs +8 -8
  97. package/dist/libraries/react/hooks/useCustomer.d.mts +5 -5
  98. package/dist/libraries/react/hooks/useCustomer.d.ts +5 -5
  99. package/dist/libraries/react/hooks/useCustomer.mjs +10 -10
  100. package/dist/libraries/react/hooks/useCustomerBase.d.mts +5 -5
  101. package/dist/libraries/react/hooks/useCustomerBase.d.ts +5 -5
  102. package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
  103. package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
  104. package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
  105. package/dist/libraries/react/hooks/useEntity.mjs +10 -10
  106. package/dist/libraries/react/hooks/useEntityBase.d.mts +5 -5
  107. package/dist/libraries/react/hooks/useEntityBase.d.ts +5 -5
  108. package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
  109. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  110. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  111. package/dist/libraries/react/hooks/usePricingTable.mjs +8 -8
  112. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +5 -5
  113. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +5 -5
  114. package/dist/libraries/react/hooks/usePricingTableBase.mjs +7 -7
  115. package/dist/libraries/react/hooks/useProductsBase.mjs +6 -6
  116. package/dist/libraries/react/index.d.mts +1 -1
  117. package/dist/libraries/react/index.d.ts +1 -1
  118. package/dist/libraries/react/index.js +7 -7
  119. package/dist/libraries/react/index.mjs +7 -7
  120. package/dist/libraries/react/{response-BFBmXYPK.d.ts → response-BCyzYfES.d.ts} +2 -2
  121. package/dist/libraries/react/{response-D3QhcRLa.d.mts → response-pYjgZr_V.d.mts} +2 -2
  122. package/dist/next/{AutumnProvider-CHFySjFm.d.mts → AutumnProvider-BKgOhoik.d.mts} +1 -1
  123. package/dist/next/{AutumnProvider-CHFySjFm.d.ts → AutumnProvider-BKgOhoik.d.ts} +1 -1
  124. package/dist/next/AutumnProvider.d.mts +1 -1
  125. package/dist/next/AutumnProvider.d.ts +1 -1
  126. package/dist/next/client/NextAutumnClient.d.mts +15 -15
  127. package/dist/next/client/NextAutumnClient.d.ts +15 -15
  128. package/dist/next/client/NextAutumnProvider.d.mts +1 -1
  129. package/dist/next/client/NextAutumnProvider.d.ts +1 -1
  130. package/dist/next/client/{attachTypes-BPYeJ6E4.d.mts → attachTypes-BE_gD21A.d.mts} +5 -5
  131. package/dist/{libraries/react/attachTypes-Cb7EQun_.d.ts → next/client/attachTypes-c0nmQ7FA.d.ts} +3 -3
  132. package/dist/next/client/{clientAttachTypes-Dj6U8D7o.d.ts → clientAttachTypes-BBDJRxyt.d.ts} +25 -25
  133. package/dist/next/client/{clientAttachTypes-fN66J754.d.mts → clientAttachTypes-C-bSiO35.d.mts} +25 -25
  134. package/dist/next/client/clientUtils.d.mts +2 -2
  135. package/dist/next/client/clientUtils.d.ts +2 -2
  136. package/dist/next/client/{cusTypes-BoVZ2omf.d.mts → cusTypes-DT2ujoSl.d.mts} +1 -1
  137. package/dist/next/client/{cusTypes-BoVZ2omf.d.ts → cusTypes-DT2ujoSl.d.ts} +1 -1
  138. package/dist/next/client/{entTypes-BrHkjvC9.d.ts → entTypes-C-7Uoct9.d.ts} +1 -1
  139. package/dist/next/client/{entTypes-Li6ZrG0C.d.mts → entTypes-CXGgMuHO.d.mts} +1 -1
  140. package/dist/next/client/hooks/useAutumn.d.mts +3 -3
  141. package/dist/next/client/hooks/useAutumn.d.ts +3 -3
  142. package/dist/next/client/hooks/useCustomer.d.mts +4 -4
  143. package/dist/next/client/hooks/useCustomer.d.ts +4 -4
  144. package/dist/next/client/hooks/useEntity.d.mts +3 -3
  145. package/dist/next/client/hooks/useEntity.d.ts +3 -3
  146. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  147. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  148. package/dist/next/client/types.d.mts +2 -2
  149. package/dist/next/client/types.d.ts +2 -2
  150. package/dist/next/index.d.mts +2 -2
  151. package/dist/next/index.d.ts +2 -2
  152. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  153. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  154. package/dist/next/server/componentActions.d.mts +1 -1
  155. package/dist/next/server/componentActions.d.ts +1 -1
  156. package/dist/next/server/cusActions.d.mts +1 -1
  157. package/dist/next/server/cusActions.d.ts +1 -1
  158. package/dist/next/server/{cusTypes-Bh_pVAJp.d.mts → cusTypes-_GDUnrai.d.mts} +1 -1
  159. package/dist/next/server/{cusTypes-Bh_pVAJp.d.ts → cusTypes-_GDUnrai.d.ts} +1 -1
  160. package/dist/next/server/genActions.d.mts +1 -1
  161. package/dist/next/server/genActions.d.ts +1 -1
  162. package/dist/sdk/index.d.mts +1 -1
  163. package/dist/sdk/index.d.ts +1 -1
  164. package/package.json +1 -1
  165. package/dist/libraries/backend/{chunk-2RZ2FZX2.mjs → chunk-ICPSX5WQ.mjs} +3 -3
  166. package/dist/libraries/react/{chunk-2PVRCDDK.mjs → chunk-5ZJQVPJY.mjs} +13 -13
@@ -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;
133
134
  options?: {
134
135
  feature_id: string;
135
136
  quantity: number;
136
137
  }[] | undefined;
137
138
  metadata?: Record<string, string> | undefined;
138
139
  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;
@@ -210,13 +210,13 @@ declare const autumn: (options?: {
210
210
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
211
211
  reward: z.ZodOptional<z.ZodString>;
212
212
  }, "customer_id">, "strip", z.ZodTypeAny, {
213
+ entity_id?: string | undefined;
213
214
  options?: {
214
215
  feature_id: string;
215
216
  quantity: number;
216
217
  }[] | undefined;
217
218
  metadata?: Record<string, string> | undefined;
218
219
  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;
@@ -230,13 +230,13 @@ declare const autumn: (options?: {
230
230
  checkout_session_params?: Record<string, any> | undefined;
231
231
  reward?: string | undefined;
232
232
  }, {
233
+ entity_id?: string | undefined;
233
234
  options?: {
234
235
  feature_id: string;
235
236
  quantity: number;
236
237
  }[] | undefined;
237
238
  metadata?: Record<string, string> | undefined;
238
239
  product_id?: string | undefined;
239
- entity_id?: string | undefined;
240
240
  product_ids?: string[] | undefined;
241
241
  free_trial?: boolean | undefined;
242
242
  success_url?: string | undefined;
@@ -281,15 +281,15 @@ declare const autumn: (options?: {
281
281
  check: {
282
282
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
283
283
  body: {
284
- product_id?: string | undefined;
285
- entity_id?: string | undefined;
286
284
  feature_id?: string | undefined;
285
+ entity_id?: string | undefined;
286
+ required_balance?: number | undefined;
287
+ product_id?: string | undefined;
287
288
  customer_data?: any;
288
289
  entity_data?: {
289
290
  feature_id: string;
290
291
  name?: string | undefined;
291
292
  } | undefined;
292
- required_balance?: number | undefined;
293
293
  send_event?: boolean | undefined;
294
294
  with_preview?: boolean | undefined;
295
295
  };
@@ -337,27 +337,27 @@ declare const autumn: (options?: {
337
337
  name?: string | undefined;
338
338
  }>>;
339
339
  }, "customer_id">, "strip", z.ZodTypeAny, {
340
- product_id?: string | undefined;
341
- entity_id?: string | undefined;
342
340
  feature_id?: string | undefined;
341
+ entity_id?: string | undefined;
342
+ required_balance?: number | undefined;
343
+ product_id?: string | undefined;
343
344
  customer_data?: any;
344
345
  entity_data?: {
345
346
  feature_id: string;
346
347
  name?: string | undefined;
347
348
  } | undefined;
348
- required_balance?: number | undefined;
349
349
  send_event?: boolean | undefined;
350
350
  with_preview?: boolean | undefined;
351
351
  }, {
352
- product_id?: string | undefined;
353
- entity_id?: string | undefined;
354
352
  feature_id?: string | undefined;
353
+ entity_id?: string | undefined;
354
+ required_balance?: number | undefined;
355
+ product_id?: string | undefined;
355
356
  customer_data?: any;
356
357
  entity_data?: {
357
358
  feature_id: string;
358
359
  name?: string | undefined;
359
360
  } | undefined;
360
- required_balance?: number | undefined;
361
361
  send_event?: boolean | undefined;
362
362
  with_preview?: boolean | undefined;
363
363
  }>;
@@ -392,9 +392,9 @@ declare const autumn: (options?: {
392
392
  track: {
393
393
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
394
394
  body: {
395
- value?: number | undefined;
396
- entity_id?: string | undefined;
397
395
  feature_id?: string | undefined;
396
+ entity_id?: string | undefined;
397
+ value?: number | undefined;
398
398
  customer_data?: any;
399
399
  entity_data?: any;
400
400
  event_name?: string | undefined;
@@ -434,17 +434,17 @@ declare const autumn: (options?: {
434
434
  idempotency_key: z.ZodOptional<z.ZodString>;
435
435
  entity_data: z.ZodOptional<z.ZodAny>;
436
436
  }, "customer_id">, "strip", z.ZodTypeAny, {
437
- value?: number | undefined;
438
- entity_id?: string | undefined;
439
437
  feature_id?: string | undefined;
438
+ entity_id?: string | undefined;
439
+ value?: number | undefined;
440
440
  customer_data?: any;
441
441
  entity_data?: any;
442
442
  event_name?: string | undefined;
443
443
  idempotency_key?: string | undefined;
444
444
  }, {
445
- value?: number | undefined;
446
- entity_id?: string | undefined;
447
445
  feature_id?: string | undefined;
446
+ entity_id?: string | undefined;
447
+ value?: number | undefined;
448
448
  customer_data?: any;
449
449
  entity_data?: any;
450
450
  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;
133
134
  options?: {
134
135
  feature_id: string;
135
136
  quantity: number;
136
137
  }[] | undefined;
137
138
  metadata?: Record<string, string> | undefined;
138
139
  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;
@@ -210,13 +210,13 @@ declare const autumn: (options?: {
210
210
  checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
211
211
  reward: z.ZodOptional<z.ZodString>;
212
212
  }, "customer_id">, "strip", z.ZodTypeAny, {
213
+ entity_id?: string | undefined;
213
214
  options?: {
214
215
  feature_id: string;
215
216
  quantity: number;
216
217
  }[] | undefined;
217
218
  metadata?: Record<string, string> | undefined;
218
219
  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;
@@ -230,13 +230,13 @@ declare const autumn: (options?: {
230
230
  checkout_session_params?: Record<string, any> | undefined;
231
231
  reward?: string | undefined;
232
232
  }, {
233
+ entity_id?: string | undefined;
233
234
  options?: {
234
235
  feature_id: string;
235
236
  quantity: number;
236
237
  }[] | undefined;
237
238
  metadata?: Record<string, string> | undefined;
238
239
  product_id?: string | undefined;
239
- entity_id?: string | undefined;
240
240
  product_ids?: string[] | undefined;
241
241
  free_trial?: boolean | undefined;
242
242
  success_url?: string | undefined;
@@ -281,15 +281,15 @@ declare const autumn: (options?: {
281
281
  check: {
282
282
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
283
283
  body: {
284
- product_id?: string | undefined;
285
- entity_id?: string | undefined;
286
284
  feature_id?: string | undefined;
285
+ entity_id?: string | undefined;
286
+ required_balance?: number | undefined;
287
+ product_id?: string | undefined;
287
288
  customer_data?: any;
288
289
  entity_data?: {
289
290
  feature_id: string;
290
291
  name?: string | undefined;
291
292
  } | undefined;
292
- required_balance?: number | undefined;
293
293
  send_event?: boolean | undefined;
294
294
  with_preview?: boolean | undefined;
295
295
  };
@@ -337,27 +337,27 @@ declare const autumn: (options?: {
337
337
  name?: string | undefined;
338
338
  }>>;
339
339
  }, "customer_id">, "strip", z.ZodTypeAny, {
340
- product_id?: string | undefined;
341
- entity_id?: string | undefined;
342
340
  feature_id?: string | undefined;
341
+ entity_id?: string | undefined;
342
+ required_balance?: number | undefined;
343
+ product_id?: string | undefined;
343
344
  customer_data?: any;
344
345
  entity_data?: {
345
346
  feature_id: string;
346
347
  name?: string | undefined;
347
348
  } | undefined;
348
- required_balance?: number | undefined;
349
349
  send_event?: boolean | undefined;
350
350
  with_preview?: boolean | undefined;
351
351
  }, {
352
- product_id?: string | undefined;
353
- entity_id?: string | undefined;
354
352
  feature_id?: string | undefined;
353
+ entity_id?: string | undefined;
354
+ required_balance?: number | undefined;
355
+ product_id?: string | undefined;
355
356
  customer_data?: any;
356
357
  entity_data?: {
357
358
  feature_id: string;
358
359
  name?: string | undefined;
359
360
  } | undefined;
360
- required_balance?: number | undefined;
361
361
  send_event?: boolean | undefined;
362
362
  with_preview?: boolean | undefined;
363
363
  }>;
@@ -392,9 +392,9 @@ declare const autumn: (options?: {
392
392
  track: {
393
393
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
394
394
  body: {
395
- value?: number | undefined;
396
- entity_id?: string | undefined;
397
395
  feature_id?: string | undefined;
396
+ entity_id?: string | undefined;
397
+ value?: number | undefined;
398
398
  customer_data?: any;
399
399
  entity_data?: any;
400
400
  event_name?: string | undefined;
@@ -434,17 +434,17 @@ declare const autumn: (options?: {
434
434
  idempotency_key: z.ZodOptional<z.ZodString>;
435
435
  entity_data: z.ZodOptional<z.ZodAny>;
436
436
  }, "customer_id">, "strip", z.ZodTypeAny, {
437
- value?: number | undefined;
438
- entity_id?: string | undefined;
439
437
  feature_id?: string | undefined;
438
+ entity_id?: string | undefined;
439
+ value?: number | undefined;
440
440
  customer_data?: any;
441
441
  entity_data?: any;
442
442
  event_name?: string | undefined;
443
443
  idempotency_key?: string | undefined;
444
444
  }, {
445
- value?: number | undefined;
446
- entity_id?: string | undefined;
447
445
  feature_id?: string | undefined;
446
+ entity_id?: string | undefined;
447
+ value?: number | undefined;
448
448
  customer_data?: any;
449
449
  entity_data?: any;
450
450
  event_name?: string | undefined;
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-2RZ2FZX2.mjs";
6
+ } from "./chunk-ICPSX5WQ.mjs";
7
+ import "./chunk-HHMIVOXX.mjs";
7
8
  import "./chunk-5EKNB4IJ.mjs";
8
9
  import "./chunk-3OLXYDCU.mjs";
9
10
  import "./chunk-K7JGEYUX.mjs";
10
- import "./chunk-HHMIVOXX.mjs";
11
11
  import "./chunk-5H6HVCOP.mjs";
12
12
  import {
13
13
  AttachParamsSchema,
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-2RZ2FZX2.mjs";
6
+ } from "./chunk-ICPSX5WQ.mjs";
7
+ import "./chunk-HHMIVOXX.mjs";
7
8
  import "./chunk-5EKNB4IJ.mjs";
8
9
  import "./chunk-3OLXYDCU.mjs";
9
10
  import "./chunk-K7JGEYUX.mjs";
10
- import "./chunk-HHMIVOXX.mjs";
11
11
  import "./chunk-5H6HVCOP.mjs";
12
12
  import {
13
13
  Autumn
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-2RZ2FZX2.mjs";
6
+ } from "./chunk-ICPSX5WQ.mjs";
7
+ import "./chunk-HHMIVOXX.mjs";
7
8
  import "./chunk-5EKNB4IJ.mjs";
8
9
  import "./chunk-3OLXYDCU.mjs";
9
10
  import "./chunk-K7JGEYUX.mjs";
10
- import "./chunk-HHMIVOXX.mjs";
11
11
  import "./chunk-5H6HVCOP.mjs";
12
12
  import {
13
13
  Autumn
@@ -1,4 +1,4 @@
1
- import { A as Autumn } from './referralTypes-jA7MQ1y5.mjs';
1
+ import { A as Autumn } from './referralTypes-CL2y5hbv.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-CnYanpMd.js';
1
+ import { A as Autumn } from './referralTypes-BpOamxCs.js';
2
2
  import { AuthResult } from './utils/AuthFunction.js';
3
3
  import 'zod';
4
4
  import './response-CV6KGWH5.js';
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-2RZ2FZX2.mjs";
6
+ } from "./chunk-ICPSX5WQ.mjs";
7
+ import "./chunk-HHMIVOXX.mjs";
7
8
  import "./chunk-5EKNB4IJ.mjs";
8
9
  import "./chunk-3OLXYDCU.mjs";
9
10
  import "./chunk-K7JGEYUX.mjs";
10
- import "./chunk-HHMIVOXX.mjs";
11
11
  import "./chunk-5H6HVCOP.mjs";
12
12
  import {
13
13
  Autumn
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-2RZ2FZX2.mjs";
6
+ } from "./chunk-ICPSX5WQ.mjs";
7
+ import "./chunk-HHMIVOXX.mjs";
7
8
  import "./chunk-5EKNB4IJ.mjs";
8
9
  import "./chunk-3OLXYDCU.mjs";
9
10
  import "./chunk-K7JGEYUX.mjs";
10
- import "./chunk-HHMIVOXX.mjs";
11
11
  import "./chunk-5H6HVCOP.mjs";
12
12
  import {
13
13
  Autumn
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-2RZ2FZX2.mjs";
6
+ } from "./chunk-ICPSX5WQ.mjs";
7
+ import "./chunk-HHMIVOXX.mjs";
7
8
  import "./chunk-5EKNB4IJ.mjs";
8
9
  import "./chunk-3OLXYDCU.mjs";
9
10
  import "./chunk-K7JGEYUX.mjs";
10
- import "./chunk-HHMIVOXX.mjs";
11
11
  import "./chunk-5H6HVCOP.mjs";
12
12
  import {
13
13
  Autumn
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-2RZ2FZX2.mjs";
6
+ } from "./chunk-ICPSX5WQ.mjs";
7
+ import "./chunk-HHMIVOXX.mjs";
7
8
  import "./chunk-5EKNB4IJ.mjs";
8
9
  import "./chunk-3OLXYDCU.mjs";
9
10
  import "./chunk-K7JGEYUX.mjs";
10
- import "./chunk-HHMIVOXX.mjs";
11
11
  import "./chunk-5H6HVCOP.mjs";
12
12
  import {
13
13
  Autumn
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-2RZ2FZX2.mjs";
6
+ } from "./chunk-ICPSX5WQ.mjs";
7
+ import "./chunk-HHMIVOXX.mjs";
7
8
  import "./chunk-5EKNB4IJ.mjs";
8
9
  import "./chunk-3OLXYDCU.mjs";
9
10
  import "./chunk-K7JGEYUX.mjs";
10
- import "./chunk-HHMIVOXX.mjs";
11
11
  import "./chunk-5H6HVCOP.mjs";
12
12
  import {
13
13
  Autumn
@@ -136,7 +136,7 @@ interface Product {
136
136
  is_one_off: boolean;
137
137
  interval_group: string;
138
138
  has_trial: boolean;
139
- has_prepaid: boolean;
139
+ updateable: boolean;
140
140
  };
141
141
  display?: {
142
142
  name?: string;
@@ -249,19 +249,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
249
249
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
250
250
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
251
251
  }, "strip", z.ZodTypeAny, {
252
- metadata?: Record<string, any> | undefined;
253
- expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
252
+ id?: string | null | undefined;
254
253
  name?: string | null | undefined;
255
254
  email?: string | null | undefined;
256
255
  fingerprint?: string | null | undefined;
257
- id?: string | null | undefined;
258
- }, {
259
256
  metadata?: Record<string, any> | undefined;
260
257
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
258
+ }, {
259
+ id?: string | null | undefined;
261
260
  name?: string | null | undefined;
262
261
  email?: string | null | undefined;
263
262
  fingerprint?: string | null | undefined;
264
- id?: string | null | undefined;
263
+ metadata?: Record<string, any> | undefined;
264
+ expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
265
265
  }>;
266
266
  type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
267
267
  interface UpdateCustomerParams {
@@ -320,18 +320,18 @@ declare const TrackParamsSchema: z.ZodObject<{
320
320
  entity_data: z.ZodOptional<z.ZodAny>;
321
321
  }, "strip", z.ZodTypeAny, {
322
322
  customer_id: string;
323
- value?: number | undefined;
324
- entity_id?: string | undefined;
325
323
  feature_id?: string | undefined;
324
+ entity_id?: string | undefined;
325
+ value?: number | undefined;
326
326
  customer_data?: any;
327
327
  entity_data?: any;
328
328
  event_name?: string | undefined;
329
329
  idempotency_key?: string | undefined;
330
330
  }, {
331
331
  customer_id: string;
332
- value?: number | undefined;
333
- entity_id?: string | undefined;
334
332
  feature_id?: string | undefined;
333
+ entity_id?: string | undefined;
334
+ value?: number | undefined;
335
335
  customer_data?: any;
336
336
  entity_data?: any;
337
337
  event_name?: string | undefined;
@@ -359,28 +359,28 @@ declare const CheckParamsSchema: z.ZodObject<{
359
359
  }>>;
360
360
  }, "strip", z.ZodTypeAny, {
361
361
  customer_id: string;
362
- product_id?: string | undefined;
363
- entity_id?: string | undefined;
364
362
  feature_id?: string | undefined;
363
+ entity_id?: string | undefined;
364
+ required_balance?: number | undefined;
365
+ product_id?: string | undefined;
365
366
  customer_data?: any;
366
367
  entity_data?: {
367
368
  feature_id: string;
368
369
  name?: string | undefined;
369
370
  } | undefined;
370
- required_balance?: number | undefined;
371
371
  send_event?: boolean | undefined;
372
372
  with_preview?: boolean | undefined;
373
373
  }, {
374
374
  customer_id: string;
375
- product_id?: string | undefined;
376
- entity_id?: string | undefined;
377
375
  feature_id?: string | undefined;
376
+ entity_id?: string | undefined;
377
+ required_balance?: number | undefined;
378
+ product_id?: string | undefined;
378
379
  customer_data?: any;
379
380
  entity_data?: {
380
381
  feature_id: string;
381
382
  name?: string | undefined;
382
383
  } | undefined;
383
- required_balance?: number | undefined;
384
384
  send_event?: boolean | undefined;
385
385
  with_preview?: boolean | undefined;
386
386
  }>;
@@ -455,13 +455,13 @@ declare const AttachParamsSchema: z.ZodObject<{
455
455
  reward: z.ZodOptional<z.ZodString>;
456
456
  }, "strip", z.ZodTypeAny, {
457
457
  customer_id: string;
458
+ entity_id?: string | undefined;
458
459
  options?: {
459
460
  feature_id: string;
460
461
  quantity: number;
461
462
  }[] | undefined;
462
463
  metadata?: Record<string, string> | undefined;
463
464
  product_id?: string | undefined;
464
- entity_id?: string | undefined;
465
465
  product_ids?: string[] | undefined;
466
466
  free_trial?: boolean | undefined;
467
467
  success_url?: string | undefined;
@@ -476,13 +476,13 @@ declare const AttachParamsSchema: z.ZodObject<{
476
476
  reward?: string | undefined;
477
477
  }, {
478
478
  customer_id: string;
479
+ entity_id?: string | undefined;
479
480
  options?: {
480
481
  feature_id: string;
481
482
  quantity: number;
482
483
  }[] | undefined;
483
484
  metadata?: Record<string, string> | undefined;
484
485
  product_id?: string | undefined;
485
- entity_id?: string | undefined;
486
486
  product_ids?: string[] | undefined;
487
487
  free_trial?: boolean | undefined;
488
488
  success_url?: string | undefined;
@@ -528,11 +528,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
528
528
  }, "strip", z.ZodTypeAny, {
529
529
  customer_id: string;
530
530
  product_id: string;
531
+ entity_id?: string | undefined;
531
532
  options?: {
532
533
  feature_id: string;
533
534
  quantity: number;
534
535
  }[] | undefined;
535
- entity_id?: string | undefined;
536
536
  success_url?: string | undefined;
537
537
  customer_data?: {
538
538
  name?: string | null | undefined;
@@ -542,11 +542,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
542
542
  }, {
543
543
  customer_id: string;
544
544
  product_id: string;
545
+ entity_id?: string | undefined;
545
546
  options?: {
546
547
  feature_id: string;
547
548
  quantity: number;
548
549
  }[] | undefined;
549
- entity_id?: string | undefined;
550
550
  success_url?: string | undefined;
551
551
  customer_data?: {
552
552
  name?: string | null | undefined;
@@ -641,18 +641,18 @@ declare class Autumn {
641
641
  static checkout: (params: CheckoutParams) => Promise<Result<CheckoutResult, AutumnError>>;
642
642
  checkout(params: CheckoutParams): Promise<Result<CheckoutResult, AutumnError>>;
643
643
  static attach: (params: AttachParams) => Promise<Result<{
644
- message: string;
645
- code: string;
646
644
  customer_id: string;
645
+ code: string;
646
+ message: string;
647
647
  product_ids: string[];
648
648
  customer_data?: any;
649
649
  checkout_url?: string | undefined;
650
650
  }, AutumnError>>;
651
651
  static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
652
652
  attach(params: AttachParams): Promise<Result<{
653
- message: string;
654
- code: string;
655
653
  customer_id: string;
654
+ code: string;
655
+ message: string;
656
656
  product_ids: string[];
657
657
  customer_data?: any;
658
658
  checkout_url?: string | undefined;
@@ -672,15 +672,15 @@ declare class Autumn {
672
672
  static check: (params: CheckParams) => Promise<Result<CheckResult, AutumnError>>;
673
673
  check(params: CheckParams): Promise<Result<CheckResult, AutumnError>>;
674
674
  static track: (params: TrackParams) => Promise<Result<{
675
- code: string;
676
675
  customer_id: string;
676
+ code: string;
677
677
  id: string;
678
678
  feature_id?: string | undefined;
679
679
  event_name?: string | undefined;
680
680
  }, AutumnError>>;
681
681
  track(params: TrackParams): Promise<Result<{
682
- code: string;
683
682
  customer_id: string;
683
+ code: string;
684
684
  id: string;
685
685
  feature_id?: string | undefined;
686
686
  event_name?: string | undefined;
@@ -731,11 +731,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
731
731
  code: z.ZodString;
732
732
  customer_id: z.ZodString;
733
733
  }, "strip", z.ZodTypeAny, {
734
- code: string;
735
734
  customer_id: string;
736
- }, {
737
735
  code: string;
736
+ }, {
738
737
  customer_id: string;
738
+ code: string;
739
739
  }>;
740
740
  type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
741
741