autumn-js 1.3.26 → 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.
- package/dist/backend/adapters/express.js +12 -2
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +12 -2
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +12 -2
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +12 -2
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +12 -2
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-JEDV5ITW.mjs → chunk-746ER4JF.mjs} +12 -2
- package/dist/backend/{chunk-5CZ6DM4L.mjs → chunk-BQADVXTY.mjs} +1 -1
- package/dist/backend/{chunk-UEXBEEDA.mjs → chunk-FMYC62PB.mjs} +1 -1
- package/dist/backend/{chunk-ZIV7CUX3.mjs → chunk-MZAOYQT4.mjs} +1 -1
- package/dist/backend/{chunk-OJ2W47XG.mjs → chunk-QMG7DDIG.mjs} +1 -1
- package/dist/backend/{chunk-OHWJSFDY.mjs → chunk-RPS2BYZQ.mjs} +1 -1
- package/dist/backend/{chunk-TVYQMY4Y.mjs → chunk-Y4KIFJY4.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +12 -2
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +12 -2
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +12 -2
- package/dist/backend/core/handlers/index.mjs +6 -6
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +12 -2
- package/dist/backend/core/index.mjs +8 -8
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +12 -2
- package/dist/backend/index.mjs +6 -6
- package/dist/backend/{routeTypes-DEdA0wMx.d.mts → routeTypes-CRMMAwhb.d.mts} +14 -3
- package/dist/backend/{routeTypes-DMd68zE-.d.ts → routeTypes-HV2JbO7a.d.ts} +14 -3
- package/dist/better-auth/{chunk-Z56SHXX3.mjs → chunk-EBLVOVTN.mjs} +12 -2
- package/dist/better-auth/index.js +12 -2
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +12 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +12 -2
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/sdk/index.d.mts +22 -4
- package/dist/sdk/index.d.ts +22 -4
- package/dist/sdk/index.js +30 -2
- package/dist/sdk/index.mjs +27 -3
- package/package.json +2 -2
|
@@ -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
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-Y4KIFJY4.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-MZAOYQT4.mjs";
|
|
7
|
+
import "../chunk-FMYC62PB.mjs";
|
|
8
|
+
import "../chunk-746ER4JF.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -13,8 +13,8 @@ import "../chunk-TSF4YCUO.mjs";
|
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
14
|
import "../chunk-IQQQ5P6R.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
17
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
17
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -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
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QMG7DDIG.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-MZAOYQT4.mjs";
|
|
7
|
+
import "../chunk-FMYC62PB.mjs";
|
|
8
|
+
import "../chunk-746ER4JF.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -13,8 +13,8 @@ import "../chunk-TSF4YCUO.mjs";
|
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
14
|
import "../chunk-IQQQ5P6R.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
17
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
17
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -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
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-RPS2BYZQ.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-MZAOYQT4.mjs";
|
|
7
|
+
import "../chunk-FMYC62PB.mjs";
|
|
8
|
+
import "../chunk-746ER4JF.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -13,8 +13,8 @@ import "../chunk-TSF4YCUO.mjs";
|
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
14
|
import "../chunk-IQQQ5P6R.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
17
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
17
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -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
|
|
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,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-Y4KIFJY4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-QMG7DDIG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-RPS2BYZQ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-BQADVXTY.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-MZAOYQT4.mjs";
|
|
16
|
+
import "../chunk-FMYC62PB.mjs";
|
|
17
|
+
import "../chunk-746ER4JF.mjs";
|
|
18
18
|
import "../chunk-MOHYGUMA.mjs";
|
|
19
19
|
import "../chunk-TBQ27LIK.mjs";
|
|
20
20
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -22,8 +22,8 @@ import "../chunk-TSF4YCUO.mjs";
|
|
|
22
22
|
import "../chunk-UAR3TMWI.mjs";
|
|
23
23
|
import "../chunk-IQQQ5P6R.mjs";
|
|
24
24
|
import "../chunk-OTXV5FY7.mjs";
|
|
25
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
26
25
|
import "../chunk-VZIMT7AO.mjs";
|
|
26
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
27
27
|
import "../chunk-N7NFYY54.mjs";
|
|
28
28
|
export {
|
|
29
29
|
autumnHandler as expressAutumnHandler,
|
|
@@ -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
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BQADVXTY.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-MZAOYQT4.mjs";
|
|
7
|
+
import "../chunk-FMYC62PB.mjs";
|
|
8
|
+
import "../chunk-746ER4JF.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -13,8 +13,8 @@ import "../chunk-TSF4YCUO.mjs";
|
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
14
|
import "../chunk-IQQQ5P6R.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
17
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
17
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -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
|
|
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 { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
|
|
2
2
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
3
|
-
import '../../routeTypes-
|
|
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-
|
|
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
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreHandler
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-FMYC62PB.mjs";
|
|
4
|
+
import "../../chunk-746ER4JF.mjs";
|
|
5
5
|
import "../../chunk-MOHYGUMA.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
@@ -9,8 +9,8 @@ import "../../chunk-TSF4YCUO.mjs";
|
|
|
9
9
|
import "../../chunk-UAR3TMWI.mjs";
|
|
10
10
|
import "../../chunk-IQQQ5P6R.mjs";
|
|
11
11
|
import "../../chunk-OTXV5FY7.mjs";
|
|
12
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
13
12
|
import "../../chunk-VZIMT7AO.mjs";
|
|
13
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
14
14
|
import "../../chunk-N7NFYY54.mjs";
|
|
15
15
|
export {
|
|
16
16
|
createCoreHandler
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-
|
|
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-
|
|
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';
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
import "../../chunk-TBQ27LIK.mjs";
|
|
5
5
|
import "../../chunk-J44WR3QZ.mjs";
|
|
6
6
|
import "../../chunk-OTXV5FY7.mjs";
|
|
7
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
8
7
|
import "../../chunk-VZIMT7AO.mjs";
|
|
8
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
9
9
|
import "../../chunk-N7NFYY54.mjs";
|
|
10
10
|
export {
|
|
11
11
|
executeRoute
|