autumn-js 0.0.100 → 0.0.101

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 (177) 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.d.mts +35 -0
  6. package/dist/libraries/backend/elysia.d.ts +35 -0
  7. package/dist/libraries/backend/elysia.js +1123 -0
  8. package/dist/libraries/backend/elysia.mjs +96 -0
  9. package/dist/libraries/backend/express.d.mts +1 -1
  10. package/dist/libraries/backend/express.d.ts +1 -1
  11. package/dist/libraries/backend/express.mjs +2 -2
  12. package/dist/libraries/backend/fastify.mjs +2 -2
  13. package/dist/libraries/backend/hono.mjs +2 -2
  14. package/dist/libraries/backend/next.js +94 -94
  15. package/dist/libraries/backend/next.mjs +96 -96
  16. package/dist/libraries/backend/react-router.mjs +2 -2
  17. package/dist/libraries/backend/{referralTypes-CkT8JNar.d.mts → referralTypes-Dg9pRvI7.d.mts} +27 -29
  18. package/dist/libraries/backend/{referralTypes-Dh4wyHJ1.d.ts → referralTypes-HAk2vTns.d.ts} +27 -29
  19. package/dist/libraries/backend/remix_dep.mjs +2 -2
  20. package/dist/libraries/backend/routes/backendRouter.mjs +2 -2
  21. package/dist/libraries/backend/supabase.mjs +2 -2
  22. package/dist/libraries/backend/tanstack.js +2 -2
  23. package/dist/libraries/backend/tanstack.mjs +4 -4
  24. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  25. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  26. package/dist/libraries/react/AutumnContext.d.mts +4 -4
  27. package/dist/libraries/react/AutumnContext.d.ts +4 -4
  28. package/dist/libraries/react/AutumnContext.mjs +4 -4
  29. package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
  30. package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
  31. package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
  32. package/dist/libraries/react/{ReactAutumnClient-DpexS7O5.d.ts → ReactAutumnClient-B4P_QjY1.d.ts} +3 -3
  33. package/dist/libraries/react/{ReactAutumnClient-Da2CbwmZ.d.mts → ReactAutumnClient-DCdPx-ps.d.mts} +3 -3
  34. package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
  35. package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
  36. package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
  37. package/dist/libraries/react/{chunk-DW6X6NNG.mjs → chunk-24EVX3BR.mjs} +273 -273
  38. package/dist/libraries/react/{chunk-OAWFFAKA.mjs → chunk-3CJSWXNT.mjs} +6 -6
  39. package/dist/libraries/react/{chunk-K3223VDB.mjs → chunk-5G3DYUNT.mjs} +1 -1
  40. package/dist/libraries/react/{chunk-EZAZUSYO.mjs → chunk-6CJ3FB74.mjs} +2 -2
  41. package/dist/libraries/react/{chunk-XOGMTMNM.mjs → chunk-AOJCMXVS.mjs} +3 -3
  42. package/dist/libraries/react/{chunk-KRW7ZHBV.mjs → chunk-APDR7D6A.mjs} +2 -2
  43. package/dist/libraries/react/{chunk-H2NGSCWI.mjs → chunk-CAMHARUX.mjs} +2 -2
  44. package/dist/libraries/react/{chunk-BSF3KB4R.mjs → chunk-CPITDC7S.mjs} +46 -46
  45. package/dist/libraries/react/{chunk-VRDE5C4M.mjs → chunk-DVMVIAZE.mjs} +3 -3
  46. package/dist/libraries/react/{chunk-GQ3TAHSV.mjs → chunk-G3FBFZLU.mjs} +1 -1
  47. package/dist/libraries/react/{chunk-HJ374VZF.mjs → chunk-LVDONEVF.mjs} +2 -2
  48. package/dist/libraries/react/{chunk-6SRIDR3L.mjs → chunk-MZDRIPNS.mjs} +2 -2
  49. package/dist/libraries/react/{chunk-OAPUYXBO.mjs → chunk-R46CJXF7.mjs} +6 -6
  50. package/dist/libraries/react/{chunk-TPKQIL3N.mjs → chunk-R4BYOLST.mjs} +2 -2
  51. package/dist/libraries/react/{chunk-ZVQKDPUP.mjs → chunk-RQEL7G2O.mjs} +3 -3
  52. package/dist/libraries/react/{chunk-6MNYJ3YQ.mjs → chunk-RQG36YPD.mjs} +2 -2
  53. package/dist/libraries/react/{chunk-BYXO62BF.mjs → chunk-T5PIJ4HG.mjs} +2 -2
  54. package/dist/libraries/react/{chunk-AL3VJLFU.mjs → chunk-YLZ5NFYO.mjs} +1 -1
  55. package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
  56. package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
  57. package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
  58. package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
  59. package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
  60. package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
  61. package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
  62. package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
  63. package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
  64. package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
  65. package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
  66. package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
  67. package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
  68. package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
  69. package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
  70. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +116 -111
  71. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
  72. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
  73. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +55 -55
  74. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +23 -23
  75. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
  76. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
  77. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  78. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  79. package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +50 -50
  80. package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
  81. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  82. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  83. package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +116 -111
  84. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  85. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  86. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +55 -55
  87. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +23 -23
  88. package/dist/libraries/react/components/ui/button.d.mts +1 -1
  89. package/dist/libraries/react/components/ui/button.d.ts +1 -1
  90. package/dist/libraries/react/components/ui/button.js +3 -3
  91. package/dist/libraries/react/components/ui/button.mjs +2 -2
  92. package/dist/libraries/react/components/ui/dialog.js +49 -49
  93. package/dist/libraries/react/components/ui/dialog.mjs +3 -3
  94. package/dist/libraries/react/components/ui/switch.js +12 -12
  95. package/dist/libraries/react/components/ui/switch.mjs +3 -3
  96. package/dist/libraries/react/{cusTypes-4aCCdGkc.d.ts → cusTypes-Bf1qr9iE.d.mts} +1 -3
  97. package/dist/libraries/react/{cusTypes-4aCCdGkc.d.mts → cusTypes-Bf1qr9iE.d.ts} +1 -3
  98. package/dist/libraries/react/{entTypes-Bw20cBXx.d.mts → entTypes-CscyyE1A.d.mts} +1 -1
  99. package/dist/libraries/react/{entTypes-BgAiRNBf.d.ts → entTypes-O8YXxhrA.d.ts} +1 -1
  100. package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
  101. package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
  102. package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
  103. package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
  104. package/dist/libraries/react/hooks/useAutumn.mjs +7 -7
  105. package/dist/libraries/react/hooks/useAutumnBase.d.mts +4 -4
  106. package/dist/libraries/react/hooks/useAutumnBase.d.ts +4 -4
  107. package/dist/libraries/react/hooks/useAutumnBase.mjs +6 -6
  108. package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
  109. package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
  110. package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
  111. package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
  112. package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
  113. package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
  114. package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
  115. package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
  116. package/dist/libraries/react/hooks/useEntity.mjs +8 -8
  117. package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
  118. package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
  119. package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
  120. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  121. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  122. package/dist/libraries/react/hooks/usePricingTable.mjs +6 -6
  123. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
  124. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
  125. package/dist/libraries/react/hooks/usePricingTableBase.mjs +5 -5
  126. package/dist/libraries/react/hooks/useProductsBase.mjs +4 -4
  127. package/dist/libraries/react/index.d.mts +0 -2
  128. package/dist/libraries/react/index.d.ts +0 -2
  129. package/dist/libraries/react/index.js +56 -56
  130. package/dist/libraries/react/index.mjs +56 -56
  131. package/dist/libraries/react/{response-D24DJs94.d.mts → response-B4VzjWEU.d.mts} +1 -1
  132. package/dist/libraries/react/{response-B9P0zPDQ.d.ts → response-C3S90max.d.ts} +1 -1
  133. package/dist/next/{AutumnProvider-BFEETHYT.d.mts → AutumnProvider-CCYZC_bN.d.mts} +0 -2
  134. package/dist/next/{AutumnProvider-BFEETHYT.d.ts → AutumnProvider-CCYZC_bN.d.ts} +0 -2
  135. package/dist/next/AutumnProvider.d.mts +1 -1
  136. package/dist/next/AutumnProvider.d.ts +1 -1
  137. package/dist/next/client/NextAutumnClient.d.mts +7 -7
  138. package/dist/next/client/NextAutumnClient.d.ts +7 -7
  139. package/dist/next/client/NextAutumnProvider.d.mts +1 -1
  140. package/dist/next/client/NextAutumnProvider.d.ts +1 -1
  141. package/dist/next/client/{clientGenTypes-BIYZcmWk.d.mts → clientGenTypes-9ngy1q97.d.mts} +9 -9
  142. package/dist/next/client/{clientGenTypes-xd2Egfm-.d.ts → clientGenTypes-CxB4go6q.d.ts} +9 -9
  143. package/dist/next/client/clientUtils.d.mts +2 -2
  144. package/dist/next/client/clientUtils.d.ts +2 -2
  145. package/dist/next/client/{cusTypes-u2ZoeKeF.d.mts → cusTypes-D8lhXGaX.d.mts} +2 -4
  146. package/dist/next/client/{cusTypes-u2ZoeKeF.d.ts → cusTypes-D8lhXGaX.d.ts} +2 -4
  147. package/dist/next/client/{entTypes-B54OSRIo.d.mts → entTypes-B-2_9hzP.d.mts} +1 -1
  148. package/dist/next/client/{entTypes-Cl6ES2C6.d.ts → entTypes-Dq2mbehl.d.ts} +1 -1
  149. package/dist/next/client/hooks/useAutumn.d.mts +2 -2
  150. package/dist/next/client/hooks/useAutumn.d.ts +2 -2
  151. package/dist/next/client/hooks/useCustomer.d.mts +3 -3
  152. package/dist/next/client/hooks/useCustomer.d.ts +3 -3
  153. package/dist/next/client/hooks/useEntity.d.mts +3 -3
  154. package/dist/next/client/hooks/useEntity.d.ts +3 -3
  155. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  156. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  157. package/dist/next/client/types.d.mts +2 -2
  158. package/dist/next/client/types.d.ts +2 -2
  159. package/dist/next/index.d.mts +2 -2
  160. package/dist/next/index.d.ts +2 -2
  161. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  162. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  163. package/dist/next/server/componentActions.d.mts +1 -1
  164. package/dist/next/server/componentActions.d.ts +1 -1
  165. package/dist/next/server/cusActions.d.mts +21 -21
  166. package/dist/next/server/cusActions.d.ts +21 -21
  167. package/dist/next/server/{cusTypes-JQwzkgDU.d.mts → cusTypes-DhOYtM7H.d.mts} +2 -4
  168. package/dist/next/server/{cusTypes-JQwzkgDU.d.ts → cusTypes-DhOYtM7H.d.ts} +2 -4
  169. package/dist/next/server/genActions.d.mts +1 -1
  170. package/dist/next/server/genActions.d.ts +1 -1
  171. package/dist/sdk/index.d.mts +0 -2
  172. package/dist/sdk/index.d.ts +0 -2
  173. package/dist/styles/global.css +116 -111
  174. package/package.json +28 -9
  175. package/tsup.config.ts +1 -0
  176. package/dist/libraries/backend/{chunk-DUDRVC7W.mjs → chunk-NW6B7QXB.mjs} +3 -3
  177. package/dist/libraries/react/{chunk-ALIGIMSK.mjs → chunk-ALFXUHDD.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;
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;
@@ -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;
197
198
  options?: {
198
199
  feature_id: string;
199
200
  quantity: number;
200
201
  }[] | undefined;
201
202
  metadata?: Record<string, string> | undefined;
202
203
  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;
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;
@@ -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
- product_id?: string | undefined;
261
- entity_id?: string | undefined;
262
260
  feature_id?: string | undefined;
261
+ entity_id?: string | undefined;
262
+ required_balance?: number | undefined;
263
+ product_id?: string | undefined;
263
264
  customer_data?: any;
264
265
  entity_data?: {
265
266
  feature_id: string;
266
267
  name?: string | undefined;
267
268
  } | 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
- product_id?: string | undefined;
317
- entity_id?: string | undefined;
318
316
  feature_id?: string | undefined;
317
+ entity_id?: string | undefined;
318
+ required_balance?: number | undefined;
319
+ product_id?: string | undefined;
319
320
  customer_data?: any;
320
321
  entity_data?: {
321
322
  feature_id: string;
322
323
  name?: string | undefined;
323
324
  } | undefined;
324
- required_balance?: number | undefined;
325
325
  send_event?: boolean | undefined;
326
326
  with_preview?: boolean | undefined;
327
327
  }, {
328
- product_id?: string | undefined;
329
- entity_id?: string | undefined;
330
328
  feature_id?: string | undefined;
329
+ entity_id?: string | undefined;
330
+ required_balance?: number | undefined;
331
+ product_id?: string | undefined;
331
332
  customer_data?: any;
332
333
  entity_data?: {
333
334
  feature_id: string;
334
335
  name?: string | undefined;
335
336
  } | 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
- value?: number | undefined;
372
- entity_id?: string | undefined;
373
371
  feature_id?: string | undefined;
372
+ entity_id?: string | undefined;
373
+ value?: number | 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
- value?: number | undefined;
414
- entity_id?: string | undefined;
415
413
  feature_id?: string | undefined;
414
+ entity_id?: string | undefined;
415
+ value?: number | 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
- value?: number | undefined;
422
- entity_id?: string | undefined;
423
421
  feature_id?: string | undefined;
422
+ entity_id?: string | undefined;
423
+ value?: number | 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;
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;
@@ -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;
197
198
  options?: {
198
199
  feature_id: string;
199
200
  quantity: number;
200
201
  }[] | undefined;
201
202
  metadata?: Record<string, string> | undefined;
202
203
  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;
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;
@@ -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
- product_id?: string | undefined;
261
- entity_id?: string | undefined;
262
260
  feature_id?: string | undefined;
261
+ entity_id?: string | undefined;
262
+ required_balance?: number | undefined;
263
+ product_id?: string | undefined;
263
264
  customer_data?: any;
264
265
  entity_data?: {
265
266
  feature_id: string;
266
267
  name?: string | undefined;
267
268
  } | 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
- product_id?: string | undefined;
317
- entity_id?: string | undefined;
318
316
  feature_id?: string | undefined;
317
+ entity_id?: string | undefined;
318
+ required_balance?: number | undefined;
319
+ product_id?: string | undefined;
319
320
  customer_data?: any;
320
321
  entity_data?: {
321
322
  feature_id: string;
322
323
  name?: string | undefined;
323
324
  } | undefined;
324
- required_balance?: number | undefined;
325
325
  send_event?: boolean | undefined;
326
326
  with_preview?: boolean | undefined;
327
327
  }, {
328
- product_id?: string | undefined;
329
- entity_id?: string | undefined;
330
328
  feature_id?: string | undefined;
329
+ entity_id?: string | undefined;
330
+ required_balance?: number | undefined;
331
+ product_id?: string | undefined;
331
332
  customer_data?: any;
332
333
  entity_data?: {
333
334
  feature_id: string;
334
335
  name?: string | undefined;
335
336
  } | 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
- value?: number | undefined;
372
- entity_id?: string | undefined;
373
371
  feature_id?: string | undefined;
372
+ entity_id?: string | undefined;
373
+ value?: number | 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
- value?: number | undefined;
414
- entity_id?: string | undefined;
415
413
  feature_id?: string | undefined;
414
+ entity_id?: string | undefined;
415
+ value?: number | 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
- value?: number | undefined;
422
- entity_id?: string | undefined;
423
421
  feature_id?: string | undefined;
422
+ entity_id?: string | undefined;
423
+ value?: number | undefined;
424
424
  customer_data?: any;
425
425
  entity_data?: any;
426
426
  event_name?: string | undefined;
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UNZHJTEY.mjs";
4
4
  import {
5
5
  createRouterWithOptions
6
- } from "./chunk-DUDRVC7W.mjs";
6
+ } from "./chunk-NW6B7QXB.mjs";
7
+ import "./chunk-AKV5N4WO.mjs";
7
8
  import "./chunk-33NT3WE5.mjs";
8
9
  import "./chunk-RA4AC56B.mjs";
9
10
  import "./chunk-J3L3OBSS.mjs";
10
- import "./chunk-AKV5N4WO.mjs";
11
11
  import "./chunk-CEZHD5H6.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-DUDRVC7W.mjs";
6
+ } from "./chunk-NW6B7QXB.mjs";
7
+ import "./chunk-AKV5N4WO.mjs";
7
8
  import "./chunk-33NT3WE5.mjs";
8
9
  import "./chunk-RA4AC56B.mjs";
9
10
  import "./chunk-J3L3OBSS.mjs";
10
- import "./chunk-AKV5N4WO.mjs";
11
11
  import "./chunk-CEZHD5H6.mjs";
12
12
  import {
13
13
  Autumn
@@ -0,0 +1,35 @@
1
+ import { AuthResult } from './utils/AuthFunction.mjs';
2
+ import { Context, Elysia } from 'elysia';
3
+
4
+ declare function autumnHandler<ContextType extends Context = Context>(options: {
5
+ identify: (context: ContextType) => AuthResult;
6
+ version?: string;
7
+ secretKey?: string;
8
+ url?: string;
9
+ }): (app: Elysia) => Elysia<"", {
10
+ decorator: {};
11
+ store: {};
12
+ derive: {};
13
+ resolve: {};
14
+ }, {
15
+ typebox: {};
16
+ error: {};
17
+ }, {
18
+ schema: {};
19
+ standaloneSchema: {};
20
+ macro: {};
21
+ macroFn: {};
22
+ parser: {};
23
+ }, {}, {
24
+ derive: {};
25
+ resolve: {};
26
+ schema: {};
27
+ standaloneSchema: {};
28
+ }, {
29
+ derive: {};
30
+ resolve: {};
31
+ schema: {};
32
+ standaloneSchema: {};
33
+ }>;
34
+
35
+ export { autumnHandler };
@@ -0,0 +1,35 @@
1
+ import { AuthResult } from './utils/AuthFunction.js';
2
+ import { Context, Elysia } from 'elysia';
3
+
4
+ declare function autumnHandler<ContextType extends Context = Context>(options: {
5
+ identify: (context: ContextType) => AuthResult;
6
+ version?: string;
7
+ secretKey?: string;
8
+ url?: string;
9
+ }): (app: Elysia) => Elysia<"", {
10
+ decorator: {};
11
+ store: {};
12
+ derive: {};
13
+ resolve: {};
14
+ }, {
15
+ typebox: {};
16
+ error: {};
17
+ }, {
18
+ schema: {};
19
+ standaloneSchema: {};
20
+ macro: {};
21
+ macroFn: {};
22
+ parser: {};
23
+ }, {}, {
24
+ derive: {};
25
+ resolve: {};
26
+ schema: {};
27
+ standaloneSchema: {};
28
+ }, {
29
+ derive: {};
30
+ resolve: {};
31
+ schema: {};
32
+ standaloneSchema: {};
33
+ }>;
34
+
35
+ export { autumnHandler };