autumn-js 1.3.27 → 1.3.28

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 (69) hide show
  1. package/dist/backend/adapters/express.js +12 -2
  2. package/dist/backend/adapters/express.mjs +9 -9
  3. package/dist/backend/adapters/fetch.js +12 -2
  4. package/dist/backend/adapters/fetch.mjs +9 -9
  5. package/dist/backend/adapters/hono.js +12 -2
  6. package/dist/backend/adapters/hono.mjs +9 -9
  7. package/dist/backend/adapters/index.js +12 -2
  8. package/dist/backend/adapters/index.mjs +12 -12
  9. package/dist/backend/adapters/next.js +12 -2
  10. package/dist/backend/adapters/next.mjs +9 -9
  11. package/dist/backend/{chunk-JEDV5ITW.mjs → chunk-746ER4JF.mjs} +12 -2
  12. package/dist/backend/{chunk-RV6S5BLJ.mjs → chunk-BQADVXTY.mjs} +1 -1
  13. package/dist/backend/{chunk-EARUIF5Q.mjs → chunk-FMYC62PB.mjs} +7 -7
  14. package/dist/backend/{chunk-GQ5KLVRT.mjs → chunk-MZAOYQT4.mjs} +5 -5
  15. package/dist/backend/{chunk-BMOQW4NQ.mjs → chunk-QMG7DDIG.mjs} +1 -1
  16. package/dist/backend/{chunk-SLKIMK3F.mjs → chunk-RPS2BYZQ.mjs} +1 -1
  17. package/dist/backend/{chunk-OGY6VQFQ.mjs → chunk-Y4KIFJY4.mjs} +1 -1
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +12 -2
  21. package/dist/backend/core/handlers/coreHandler.mjs +7 -7
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.mjs +2 -2
  25. package/dist/backend/core/handlers/handleRouteByName.js +12 -2
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +5 -5
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +12 -2
  30. package/dist/backend/core/handlers/index.mjs +8 -8
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +12 -2
  34. package/dist/backend/core/index.mjs +10 -10
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.mjs +2 -2
  38. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  40. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.mjs +2 -2
  43. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  44. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  45. package/dist/backend/core/types/index.d.mts +1 -1
  46. package/dist/backend/core/types/index.d.ts +1 -1
  47. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  48. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  49. package/dist/backend/core/utils/index.mjs +5 -5
  50. package/dist/backend/index.d.mts +2 -2
  51. package/dist/backend/index.d.ts +2 -2
  52. package/dist/backend/index.js +12 -2
  53. package/dist/backend/index.mjs +10 -10
  54. package/dist/backend/{routeTypes-DEdA0wMx.d.mts → routeTypes-CRMMAwhb.d.mts} +14 -3
  55. package/dist/backend/{routeTypes-DMd68zE-.d.ts → routeTypes-HV2JbO7a.d.ts} +14 -3
  56. package/dist/better-auth/{chunk-Z56SHXX3.mjs → chunk-EBLVOVTN.mjs} +12 -2
  57. package/dist/better-auth/index.js +12 -2
  58. package/dist/better-auth/index.mjs +1 -1
  59. package/dist/better-auth/utils/handleBetterAuthRoute.js +12 -2
  60. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  61. package/dist/better-auth/utils/index.js +12 -2
  62. package/dist/better-auth/utils/index.mjs +1 -1
  63. package/dist/sdk/index.d.mts +22 -4
  64. package/dist/sdk/index.d.ts +22 -4
  65. package/dist/sdk/index.js +30 -2
  66. package/dist/sdk/index.mjs +27 -3
  67. package/package.json +2 -2
  68. package/dist/backend/{chunk-G3VGTFCP.mjs → chunk-IQQQ5P6R.mjs} +4 -4
  69. package/dist/backend/{chunk-OVAKKRI6.mjs → chunk-MOHYGUMA.mjs} +3 -3
@@ -4134,6 +4134,7 @@ var RequestBody$outboundSchema = z16.pipe(
4134
4134
  eventName: z16.optional(z16.string()),
4135
4135
  value: z16.optional(z16.number()),
4136
4136
  properties: z16.optional(z16.record(z16.string(), z16.any())),
4137
+ idempotencyKey: z16.optional(z16.string()),
4137
4138
  timestamp: z16.optional(z16.int()),
4138
4139
  overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema),
4139
4140
  async: z16.optional(z16.boolean()),
@@ -4145,13 +4146,21 @@ var RequestBody$outboundSchema = z16.pipe(
4145
4146
  featureId: "feature_id",
4146
4147
  entityId: "entity_id",
4147
4148
  eventName: "event_name",
4149
+ idempotencyKey: "idempotency_key",
4148
4150
  overageBehavior: "overage_behavior"
4149
4151
  });
4150
4152
  })
4151
4153
  );
4152
- var BatchTrackResponse$inboundSchema = z16.object({
4154
+ var BatchTrackResponseBody2$inboundSchema = z16.object({
4153
4155
  success: literal3(true)
4154
4156
  });
4157
+ var BatchTrackResponseBody1$inboundSchema = z16.object({
4158
+ success: literal3(true)
4159
+ });
4160
+ var BatchTrackResponse$inboundSchema = smartUnion([
4161
+ z16.lazy(() => BatchTrackResponseBody1$inboundSchema),
4162
+ z16.lazy(() => BatchTrackResponseBody2$inboundSchema)
4163
+ ]);
4155
4164
 
4156
4165
  // ../sdk/src/models/billing-update-response.ts
4157
4166
  var z18 = __toESM(require("zod/v4-mini"), 1);
@@ -53328,6 +53337,7 @@ async function $do(client, request, options) {
53328
53337
  }
53329
53338
  const response = doResult.value;
53330
53339
  const [result] = await match(
53340
+ json(200, BatchTrackResponse$inboundSchema),
53331
53341
  json(202, BatchTrackResponse$inboundSchema),
53332
53342
  fail("4XX"),
53333
53343
  fail("5XX")
@@ -62164,7 +62174,7 @@ var Autumn = class extends ClientSDK {
62164
62174
  ));
62165
62175
  }
62166
62176
  /**
62167
- * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 202 immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 202 and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62177
+ * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 200 (or 202) immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 200 (or 202) and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62168
62178
  */
62169
62179
  async batchTrack(request, options) {
62170
62180
  return unwrapAsync(batchTrack(
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-OGY6VQFQ.mjs";
3
+ } from "../chunk-Y4KIFJY4.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-GQ5KLVRT.mjs";
7
- import "../chunk-EARUIF5Q.mjs";
8
- import "../chunk-TSF4YCUO.mjs";
9
- import "../chunk-UAR3TMWI.mjs";
10
- import "../chunk-JEDV5ITW.mjs";
11
- import "../chunk-G3VGTFCP.mjs";
12
- import "../chunk-OVAKKRI6.mjs";
6
+ import "../chunk-MZAOYQT4.mjs";
7
+ import "../chunk-FMYC62PB.mjs";
8
+ import "../chunk-746ER4JF.mjs";
9
+ import "../chunk-MOHYGUMA.mjs";
13
10
  import "../chunk-TBQ27LIK.mjs";
14
11
  import "../chunk-J44WR3QZ.mjs";
12
+ import "../chunk-TSF4YCUO.mjs";
13
+ import "../chunk-UAR3TMWI.mjs";
14
+ import "../chunk-IQQQ5P6R.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
16
  import "../chunk-VZIMT7AO.mjs";
17
- import "../chunk-N7NFYY54.mjs";
18
17
  import "../chunk-I7CD6EB6.mjs";
18
+ import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
21
21
  };
@@ -4134,6 +4134,7 @@ var RequestBody$outboundSchema = z16.pipe(
4134
4134
  eventName: z16.optional(z16.string()),
4135
4135
  value: z16.optional(z16.number()),
4136
4136
  properties: z16.optional(z16.record(z16.string(), z16.any())),
4137
+ idempotencyKey: z16.optional(z16.string()),
4137
4138
  timestamp: z16.optional(z16.int()),
4138
4139
  overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema),
4139
4140
  async: z16.optional(z16.boolean()),
@@ -4145,13 +4146,21 @@ var RequestBody$outboundSchema = z16.pipe(
4145
4146
  featureId: "feature_id",
4146
4147
  entityId: "entity_id",
4147
4148
  eventName: "event_name",
4149
+ idempotencyKey: "idempotency_key",
4148
4150
  overageBehavior: "overage_behavior"
4149
4151
  });
4150
4152
  })
4151
4153
  );
4152
- var BatchTrackResponse$inboundSchema = z16.object({
4154
+ var BatchTrackResponseBody2$inboundSchema = z16.object({
4153
4155
  success: literal3(true)
4154
4156
  });
4157
+ var BatchTrackResponseBody1$inboundSchema = z16.object({
4158
+ success: literal3(true)
4159
+ });
4160
+ var BatchTrackResponse$inboundSchema = smartUnion([
4161
+ z16.lazy(() => BatchTrackResponseBody1$inboundSchema),
4162
+ z16.lazy(() => BatchTrackResponseBody2$inboundSchema)
4163
+ ]);
4155
4164
 
4156
4165
  // ../sdk/src/models/billing-update-response.ts
4157
4166
  var z18 = __toESM(require("zod/v4-mini"), 1);
@@ -53328,6 +53337,7 @@ async function $do(client, request, options) {
53328
53337
  }
53329
53338
  const response = doResult.value;
53330
53339
  const [result] = await match(
53340
+ json(200, BatchTrackResponse$inboundSchema),
53331
53341
  json(202, BatchTrackResponse$inboundSchema),
53332
53342
  fail("4XX"),
53333
53343
  fail("5XX")
@@ -62164,7 +62174,7 @@ var Autumn = class extends ClientSDK {
62164
62174
  ));
62165
62175
  }
62166
62176
  /**
62167
- * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 202 immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 202 and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62177
+ * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 200 (or 202) immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 200 (or 202) and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62168
62178
  */
62169
62179
  async batchTrack(request, options) {
62170
62180
  return unwrapAsync(batchTrack(
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-BMOQW4NQ.mjs";
3
+ } from "../chunk-QMG7DDIG.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-GQ5KLVRT.mjs";
7
- import "../chunk-EARUIF5Q.mjs";
8
- import "../chunk-TSF4YCUO.mjs";
9
- import "../chunk-UAR3TMWI.mjs";
10
- import "../chunk-JEDV5ITW.mjs";
11
- import "../chunk-G3VGTFCP.mjs";
12
- import "../chunk-OVAKKRI6.mjs";
6
+ import "../chunk-MZAOYQT4.mjs";
7
+ import "../chunk-FMYC62PB.mjs";
8
+ import "../chunk-746ER4JF.mjs";
9
+ import "../chunk-MOHYGUMA.mjs";
13
10
  import "../chunk-TBQ27LIK.mjs";
14
11
  import "../chunk-J44WR3QZ.mjs";
12
+ import "../chunk-TSF4YCUO.mjs";
13
+ import "../chunk-UAR3TMWI.mjs";
14
+ import "../chunk-IQQQ5P6R.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
16
  import "../chunk-VZIMT7AO.mjs";
17
- import "../chunk-N7NFYY54.mjs";
18
17
  import "../chunk-I7CD6EB6.mjs";
18
+ import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
21
21
  };
@@ -4134,6 +4134,7 @@ var RequestBody$outboundSchema = z16.pipe(
4134
4134
  eventName: z16.optional(z16.string()),
4135
4135
  value: z16.optional(z16.number()),
4136
4136
  properties: z16.optional(z16.record(z16.string(), z16.any())),
4137
+ idempotencyKey: z16.optional(z16.string()),
4137
4138
  timestamp: z16.optional(z16.int()),
4138
4139
  overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema),
4139
4140
  async: z16.optional(z16.boolean()),
@@ -4145,13 +4146,21 @@ var RequestBody$outboundSchema = z16.pipe(
4145
4146
  featureId: "feature_id",
4146
4147
  entityId: "entity_id",
4147
4148
  eventName: "event_name",
4149
+ idempotencyKey: "idempotency_key",
4148
4150
  overageBehavior: "overage_behavior"
4149
4151
  });
4150
4152
  })
4151
4153
  );
4152
- var BatchTrackResponse$inboundSchema = z16.object({
4154
+ var BatchTrackResponseBody2$inboundSchema = z16.object({
4153
4155
  success: literal3(true)
4154
4156
  });
4157
+ var BatchTrackResponseBody1$inboundSchema = z16.object({
4158
+ success: literal3(true)
4159
+ });
4160
+ var BatchTrackResponse$inboundSchema = smartUnion([
4161
+ z16.lazy(() => BatchTrackResponseBody1$inboundSchema),
4162
+ z16.lazy(() => BatchTrackResponseBody2$inboundSchema)
4163
+ ]);
4155
4164
 
4156
4165
  // ../sdk/src/models/billing-update-response.ts
4157
4166
  var z18 = __toESM(require("zod/v4-mini"), 1);
@@ -53328,6 +53337,7 @@ async function $do(client, request, options) {
53328
53337
  }
53329
53338
  const response = doResult.value;
53330
53339
  const [result] = await match(
53340
+ json(200, BatchTrackResponse$inboundSchema),
53331
53341
  json(202, BatchTrackResponse$inboundSchema),
53332
53342
  fail("4XX"),
53333
53343
  fail("5XX")
@@ -62164,7 +62174,7 @@ var Autumn = class extends ClientSDK {
62164
62174
  ));
62165
62175
  }
62166
62176
  /**
62167
- * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 202 immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 202 and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62177
+ * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 200 (or 202) immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 200 (or 202) and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62168
62178
  */
62169
62179
  async batchTrack(request, options) {
62170
62180
  return unwrapAsync(batchTrack(
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-SLKIMK3F.mjs";
3
+ } from "../chunk-RPS2BYZQ.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-GQ5KLVRT.mjs";
7
- import "../chunk-EARUIF5Q.mjs";
8
- import "../chunk-TSF4YCUO.mjs";
9
- import "../chunk-UAR3TMWI.mjs";
10
- import "../chunk-JEDV5ITW.mjs";
11
- import "../chunk-G3VGTFCP.mjs";
12
- import "../chunk-OVAKKRI6.mjs";
6
+ import "../chunk-MZAOYQT4.mjs";
7
+ import "../chunk-FMYC62PB.mjs";
8
+ import "../chunk-746ER4JF.mjs";
9
+ import "../chunk-MOHYGUMA.mjs";
13
10
  import "../chunk-TBQ27LIK.mjs";
14
11
  import "../chunk-J44WR3QZ.mjs";
12
+ import "../chunk-TSF4YCUO.mjs";
13
+ import "../chunk-UAR3TMWI.mjs";
14
+ import "../chunk-IQQQ5P6R.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
16
  import "../chunk-VZIMT7AO.mjs";
17
- import "../chunk-N7NFYY54.mjs";
18
17
  import "../chunk-I7CD6EB6.mjs";
18
+ import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
21
21
  };
@@ -4137,6 +4137,7 @@ var RequestBody$outboundSchema = z16.pipe(
4137
4137
  eventName: z16.optional(z16.string()),
4138
4138
  value: z16.optional(z16.number()),
4139
4139
  properties: z16.optional(z16.record(z16.string(), z16.any())),
4140
+ idempotencyKey: z16.optional(z16.string()),
4140
4141
  timestamp: z16.optional(z16.int()),
4141
4142
  overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema),
4142
4143
  async: z16.optional(z16.boolean()),
@@ -4148,13 +4149,21 @@ var RequestBody$outboundSchema = z16.pipe(
4148
4149
  featureId: "feature_id",
4149
4150
  entityId: "entity_id",
4150
4151
  eventName: "event_name",
4152
+ idempotencyKey: "idempotency_key",
4151
4153
  overageBehavior: "overage_behavior"
4152
4154
  });
4153
4155
  })
4154
4156
  );
4155
- var BatchTrackResponse$inboundSchema = z16.object({
4157
+ var BatchTrackResponseBody2$inboundSchema = z16.object({
4156
4158
  success: literal3(true)
4157
4159
  });
4160
+ var BatchTrackResponseBody1$inboundSchema = z16.object({
4161
+ success: literal3(true)
4162
+ });
4163
+ var BatchTrackResponse$inboundSchema = smartUnion([
4164
+ z16.lazy(() => BatchTrackResponseBody1$inboundSchema),
4165
+ z16.lazy(() => BatchTrackResponseBody2$inboundSchema)
4166
+ ]);
4158
4167
 
4159
4168
  // ../sdk/src/models/billing-update-response.ts
4160
4169
  var z18 = __toESM(require("zod/v4-mini"), 1);
@@ -53331,6 +53340,7 @@ async function $do(client, request, options) {
53331
53340
  }
53332
53341
  const response = doResult.value;
53333
53342
  const [result] = await match(
53343
+ json(200, BatchTrackResponse$inboundSchema),
53334
53344
  json(202, BatchTrackResponse$inboundSchema),
53335
53345
  fail("4XX"),
53336
53346
  fail("5XX")
@@ -62167,7 +62177,7 @@ var Autumn = class extends ClientSDK {
62167
62177
  ));
62168
62178
  }
62169
62179
  /**
62170
- * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 202 immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 202 and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62180
+ * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 200 (or 202) immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 200 (or 202) and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62171
62181
  */
62172
62182
  async batchTrack(request, options) {
62173
62183
  return unwrapAsync(batchTrack(
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-OGY6VQFQ.mjs";
3
+ } from "../chunk-Y4KIFJY4.mjs";
4
4
  import {
5
5
  autumnHandler as autumnHandler2
6
- } from "../chunk-BMOQW4NQ.mjs";
6
+ } from "../chunk-QMG7DDIG.mjs";
7
7
  import {
8
8
  autumnHandler as autumnHandler3
9
- } from "../chunk-SLKIMK3F.mjs";
9
+ } from "../chunk-RPS2BYZQ.mjs";
10
10
  import {
11
11
  autumnHandler as autumnHandler4
12
- } from "../chunk-RV6S5BLJ.mjs";
12
+ } from "../chunk-BQADVXTY.mjs";
13
13
  import "../chunk-WYDGEDEU.mjs";
14
14
  import "../chunk-VXND2UDT.mjs";
15
- import "../chunk-GQ5KLVRT.mjs";
16
- import "../chunk-EARUIF5Q.mjs";
17
- import "../chunk-TSF4YCUO.mjs";
18
- import "../chunk-UAR3TMWI.mjs";
19
- import "../chunk-JEDV5ITW.mjs";
20
- import "../chunk-G3VGTFCP.mjs";
21
- import "../chunk-OVAKKRI6.mjs";
15
+ import "../chunk-MZAOYQT4.mjs";
16
+ import "../chunk-FMYC62PB.mjs";
17
+ import "../chunk-746ER4JF.mjs";
18
+ import "../chunk-MOHYGUMA.mjs";
22
19
  import "../chunk-TBQ27LIK.mjs";
23
20
  import "../chunk-J44WR3QZ.mjs";
21
+ import "../chunk-TSF4YCUO.mjs";
22
+ import "../chunk-UAR3TMWI.mjs";
23
+ import "../chunk-IQQQ5P6R.mjs";
24
24
  import "../chunk-OTXV5FY7.mjs";
25
25
  import "../chunk-VZIMT7AO.mjs";
26
- import "../chunk-N7NFYY54.mjs";
27
26
  import "../chunk-I7CD6EB6.mjs";
27
+ import "../chunk-N7NFYY54.mjs";
28
28
  export {
29
29
  autumnHandler as expressAutumnHandler,
30
30
  autumnHandler2 as fetchAutumnHandler,
@@ -4135,6 +4135,7 @@ var RequestBody$outboundSchema = z16.pipe(
4135
4135
  eventName: z16.optional(z16.string()),
4136
4136
  value: z16.optional(z16.number()),
4137
4137
  properties: z16.optional(z16.record(z16.string(), z16.any())),
4138
+ idempotencyKey: z16.optional(z16.string()),
4138
4139
  timestamp: z16.optional(z16.int()),
4139
4140
  overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema),
4140
4141
  async: z16.optional(z16.boolean()),
@@ -4146,13 +4147,21 @@ var RequestBody$outboundSchema = z16.pipe(
4146
4147
  featureId: "feature_id",
4147
4148
  entityId: "entity_id",
4148
4149
  eventName: "event_name",
4150
+ idempotencyKey: "idempotency_key",
4149
4151
  overageBehavior: "overage_behavior"
4150
4152
  });
4151
4153
  })
4152
4154
  );
4153
- var BatchTrackResponse$inboundSchema = z16.object({
4155
+ var BatchTrackResponseBody2$inboundSchema = z16.object({
4154
4156
  success: literal3(true)
4155
4157
  });
4158
+ var BatchTrackResponseBody1$inboundSchema = z16.object({
4159
+ success: literal3(true)
4160
+ });
4161
+ var BatchTrackResponse$inboundSchema = smartUnion([
4162
+ z16.lazy(() => BatchTrackResponseBody1$inboundSchema),
4163
+ z16.lazy(() => BatchTrackResponseBody2$inboundSchema)
4164
+ ]);
4156
4165
 
4157
4166
  // ../sdk/src/models/billing-update-response.ts
4158
4167
  var z18 = __toESM(require("zod/v4-mini"), 1);
@@ -53329,6 +53338,7 @@ async function $do(client, request, options) {
53329
53338
  }
53330
53339
  const response = doResult.value;
53331
53340
  const [result] = await match(
53341
+ json(200, BatchTrackResponse$inboundSchema),
53332
53342
  json(202, BatchTrackResponse$inboundSchema),
53333
53343
  fail("4XX"),
53334
53344
  fail("5XX")
@@ -62165,7 +62175,7 @@ var Autumn = class extends ClientSDK {
62165
62175
  ));
62166
62176
  }
62167
62177
  /**
62168
- * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 202 immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 202 and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62178
+ * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 200 (or 202) immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 200 (or 202) and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62169
62179
  */
62170
62180
  async batchTrack(request, options) {
62171
62181
  return unwrapAsync(batchTrack(
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-RV6S5BLJ.mjs";
3
+ } from "../chunk-BQADVXTY.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-GQ5KLVRT.mjs";
7
- import "../chunk-EARUIF5Q.mjs";
8
- import "../chunk-TSF4YCUO.mjs";
9
- import "../chunk-UAR3TMWI.mjs";
10
- import "../chunk-JEDV5ITW.mjs";
11
- import "../chunk-G3VGTFCP.mjs";
12
- import "../chunk-OVAKKRI6.mjs";
6
+ import "../chunk-MZAOYQT4.mjs";
7
+ import "../chunk-FMYC62PB.mjs";
8
+ import "../chunk-746ER4JF.mjs";
9
+ import "../chunk-MOHYGUMA.mjs";
13
10
  import "../chunk-TBQ27LIK.mjs";
14
11
  import "../chunk-J44WR3QZ.mjs";
12
+ import "../chunk-TSF4YCUO.mjs";
13
+ import "../chunk-UAR3TMWI.mjs";
14
+ import "../chunk-IQQQ5P6R.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
16
  import "../chunk-VZIMT7AO.mjs";
17
- import "../chunk-N7NFYY54.mjs";
18
17
  import "../chunk-I7CD6EB6.mjs";
18
+ import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
21
21
  };
@@ -4051,6 +4051,7 @@ var RequestBody$outboundSchema = z16.pipe(
4051
4051
  eventName: z16.optional(z16.string()),
4052
4052
  value: z16.optional(z16.number()),
4053
4053
  properties: z16.optional(z16.record(z16.string(), z16.any())),
4054
+ idempotencyKey: z16.optional(z16.string()),
4054
4055
  timestamp: z16.optional(z16.int()),
4055
4056
  overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema),
4056
4057
  async: z16.optional(z16.boolean()),
@@ -4062,13 +4063,21 @@ var RequestBody$outboundSchema = z16.pipe(
4062
4063
  featureId: "feature_id",
4063
4064
  entityId: "entity_id",
4064
4065
  eventName: "event_name",
4066
+ idempotencyKey: "idempotency_key",
4065
4067
  overageBehavior: "overage_behavior"
4066
4068
  });
4067
4069
  })
4068
4070
  );
4069
- var BatchTrackResponse$inboundSchema = z16.object({
4071
+ var BatchTrackResponseBody2$inboundSchema = z16.object({
4070
4072
  success: literal3(true)
4071
4073
  });
4074
+ var BatchTrackResponseBody1$inboundSchema = z16.object({
4075
+ success: literal3(true)
4076
+ });
4077
+ var BatchTrackResponse$inboundSchema = smartUnion([
4078
+ z16.lazy(() => BatchTrackResponseBody1$inboundSchema),
4079
+ z16.lazy(() => BatchTrackResponseBody2$inboundSchema)
4080
+ ]);
4072
4081
 
4073
4082
  // ../sdk/src/models/billing-update-response.ts
4074
4083
  import * as z18 from "zod/v4-mini";
@@ -53245,6 +53254,7 @@ async function $do(client, request, options) {
53245
53254
  }
53246
53255
  const response = doResult.value;
53247
53256
  const [result] = await match(
53257
+ json(200, BatchTrackResponse$inboundSchema),
53248
53258
  json(202, BatchTrackResponse$inboundSchema),
53249
53259
  fail("4XX"),
53250
53260
  fail("5XX")
@@ -62109,7 +62119,7 @@ var Autumn = class extends ClientSDK {
62109
62119
  ));
62110
62120
  }
62111
62121
  /**
62112
- * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 202 immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 202 and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62122
+ * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 200 (or 202) immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 200 (or 202) and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62113
62123
  */
62114
62124
  async batchTrack(request, options) {
62115
62125
  return unwrapAsync(batchTrack(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-EARUIF5Q.mjs";
3
+ } from "./chunk-FMYC62PB.mjs";
4
4
 
5
5
  // src/backend/adapters/next.ts
6
6
  import { NextResponse } from "next/server";
@@ -1,15 +1,15 @@
1
+ import {
2
+ Autumn
3
+ } from "./chunk-746ER4JF.mjs";
4
+ import {
5
+ executeRoute
6
+ } from "./chunk-MOHYGUMA.mjs";
1
7
  import {
2
8
  buildRouter
3
9
  } from "./chunk-UAR3TMWI.mjs";
4
- import {
5
- Autumn
6
- } from "./chunk-JEDV5ITW.mjs";
7
10
  import {
8
11
  routeConfigs
9
- } from "./chunk-G3VGTFCP.mjs";
10
- import {
11
- executeRoute
12
- } from "./chunk-OVAKKRI6.mjs";
12
+ } from "./chunk-IQQQ5P6R.mjs";
13
13
  import {
14
14
  secretKeyCheck
15
15
  } from "./chunk-VZIMT7AO.mjs";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-JEDV5ITW.mjs";
4
- import {
5
- routeConfigs
6
- } from "./chunk-G3VGTFCP.mjs";
3
+ } from "./chunk-746ER4JF.mjs";
7
4
  import {
8
5
  executeRoute
9
- } from "./chunk-OVAKKRI6.mjs";
6
+ } from "./chunk-MOHYGUMA.mjs";
7
+ import {
8
+ routeConfigs
9
+ } from "./chunk-IQQQ5P6R.mjs";
10
10
  import {
11
11
  secretKeyCheck
12
12
  } from "./chunk-VZIMT7AO.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-EARUIF5Q.mjs";
3
+ } from "./chunk-FMYC62PB.mjs";
4
4
 
5
5
  // src/backend/adapters/fetch.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-EARUIF5Q.mjs";
3
+ } from "./chunk-FMYC62PB.mjs";
4
4
 
5
5
  // src/backend/adapters/hono.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-EARUIF5Q.mjs";
3
+ } from "./chunk-FMYC62PB.mjs";
4
4
 
5
5
  // src/backend/adapters/express.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
2
2
  import '../../authTypes-TPWTIfcM.mjs';
3
- import '../../routeTypes-DEdA0wMx.mjs';
3
+ import '../../routeTypes-CRMMAwhb.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
6
6
  import '../types/responseTypes.mjs';
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
2
2
  import '../../authTypes-TPWTIfcM.js';
3
- import '../../routeTypes-DMd68zE-.js';
3
+ import '../../routeTypes-HV2JbO7a.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
6
6
  import '../types/responseTypes.js';
@@ -4134,6 +4134,7 @@ var RequestBody$outboundSchema = z16.pipe(
4134
4134
  eventName: z16.optional(z16.string()),
4135
4135
  value: z16.optional(z16.number()),
4136
4136
  properties: z16.optional(z16.record(z16.string(), z16.any())),
4137
+ idempotencyKey: z16.optional(z16.string()),
4137
4138
  timestamp: z16.optional(z16.int()),
4138
4139
  overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema),
4139
4140
  async: z16.optional(z16.boolean()),
@@ -4145,13 +4146,21 @@ var RequestBody$outboundSchema = z16.pipe(
4145
4146
  featureId: "feature_id",
4146
4147
  entityId: "entity_id",
4147
4148
  eventName: "event_name",
4149
+ idempotencyKey: "idempotency_key",
4148
4150
  overageBehavior: "overage_behavior"
4149
4151
  });
4150
4152
  })
4151
4153
  );
4152
- var BatchTrackResponse$inboundSchema = z16.object({
4154
+ var BatchTrackResponseBody2$inboundSchema = z16.object({
4153
4155
  success: literal3(true)
4154
4156
  });
4157
+ var BatchTrackResponseBody1$inboundSchema = z16.object({
4158
+ success: literal3(true)
4159
+ });
4160
+ var BatchTrackResponse$inboundSchema = smartUnion([
4161
+ z16.lazy(() => BatchTrackResponseBody1$inboundSchema),
4162
+ z16.lazy(() => BatchTrackResponseBody2$inboundSchema)
4163
+ ]);
4155
4164
 
4156
4165
  // ../sdk/src/models/billing-update-response.ts
4157
4166
  var z18 = __toESM(require("zod/v4-mini"), 1);
@@ -53328,6 +53337,7 @@ async function $do(client, request, options) {
53328
53337
  }
53329
53338
  const response = doResult.value;
53330
53339
  const [result] = await match(
53340
+ json(200, BatchTrackResponse$inboundSchema),
53331
53341
  json(202, BatchTrackResponse$inboundSchema),
53332
53342
  fail("4XX"),
53333
53343
  fail("5XX")
@@ -62164,7 +62174,7 @@ var Autumn = class extends ClientSDK {
62164
62174
  ));
62165
62175
  }
62166
62176
  /**
62167
- * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 202 immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 202 and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62177
+ * Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 200 (or 202) immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 200 (or 202) and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
62168
62178
  */
62169
62179
  async batchTrack(request, options) {
62170
62180
  return unwrapAsync(batchTrack(
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "../../chunk-EARUIF5Q.mjs";
4
- import "../../chunk-TSF4YCUO.mjs";
5
- import "../../chunk-UAR3TMWI.mjs";
6
- import "../../chunk-JEDV5ITW.mjs";
7
- import "../../chunk-G3VGTFCP.mjs";
8
- import "../../chunk-OVAKKRI6.mjs";
3
+ } from "../../chunk-FMYC62PB.mjs";
4
+ import "../../chunk-746ER4JF.mjs";
5
+ import "../../chunk-MOHYGUMA.mjs";
9
6
  import "../../chunk-TBQ27LIK.mjs";
10
7
  import "../../chunk-J44WR3QZ.mjs";
8
+ import "../../chunk-TSF4YCUO.mjs";
9
+ import "../../chunk-UAR3TMWI.mjs";
10
+ import "../../chunk-IQQQ5P6R.mjs";
11
11
  import "../../chunk-OTXV5FY7.mjs";
12
12
  import "../../chunk-VZIMT7AO.mjs";
13
- import "../../chunk-N7NFYY54.mjs";
14
13
  import "../../chunk-I7CD6EB6.mjs";
14
+ import "../../chunk-N7NFYY54.mjs";
15
15
  export {
16
16
  createCoreHandler
17
17
  };
@@ -1,4 +1,4 @@
1
- import { A as Autumn, R as RouteDefinition } from '../../routeTypes-DEdA0wMx.mjs';
1
+ import { A as Autumn, R as RouteDefinition } from '../../routeTypes-CRMMAwhb.mjs';
2
2
  import { A as AuthResult } from '../../authTypes-TPWTIfcM.mjs';
3
3
  import { BackendResult } from '../types/responseTypes.mjs';
4
4
  import 'zod/v4';
@@ -1,4 +1,4 @@
1
- import { A as Autumn, R as RouteDefinition } from '../../routeTypes-DMd68zE-.js';
1
+ import { A as Autumn, R as RouteDefinition } from '../../routeTypes-HV2JbO7a.js';
2
2
  import { A as AuthResult } from '../../authTypes-TPWTIfcM.js';
3
3
  import { BackendResult } from '../types/responseTypes.js';
4
4
  import 'zod/v4';