autumn-js 1.3.73 → 1.4.0
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 +9 -10
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +9 -10
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +9 -10
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +9 -10
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +9 -10
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-QD5VNLGH.mjs → chunk-2JZN2A5Z.mjs} +1 -1
- package/dist/backend/{chunk-MIDKK6HE.mjs → chunk-572QTWBN.mjs} +1 -1
- package/dist/backend/{chunk-P46GFHFB.mjs → chunk-ETP3OECB.mjs} +1 -1
- package/dist/backend/{chunk-CFBX64LG.mjs → chunk-FJYYK3KF.mjs} +1 -1
- package/dist/backend/{chunk-5NZXLCLY.mjs → chunk-HKLICPAL.mjs} +9 -10
- package/dist/backend/{chunk-I75WCVDU.mjs → chunk-MSWCEKV6.mjs} +1 -1
- package/dist/backend/{chunk-4D2MGLMK.mjs → chunk-QQFPLVJO.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 +9 -10
- 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 +9 -10
- 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 +9 -10
- 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 +9 -10
- 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 +9 -10
- package/dist/backend/index.mjs +6 -6
- package/dist/backend/{routeTypes-Bq2o3T9X.d.mts → routeTypes-C0SK3Woi.d.mts} +9 -13
- package/dist/backend/{routeTypes-B9shWqn_.d.ts → routeTypes-eswiz8Fx.d.ts} +9 -13
- package/dist/better-auth/{chunk-TOUOQM4M.mjs → chunk-HJ7J37RU.mjs} +9 -10
- package/dist/better-auth/index.js +9 -10
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +9 -10
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +9 -10
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/sdk/index.d.mts +11 -16
- package/dist/sdk/index.d.ts +11 -16
- package/dist/sdk/index.js +9 -10
- package/dist/sdk/index.mjs +9 -10
- package/package.json +2 -2
|
@@ -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-C0SK3Woi.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-eswiz8Fx.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
6
6
|
import '../types/responseTypes.js';
|
|
@@ -76,10 +76,10 @@ function serverURLFromOptions(options) {
|
|
|
76
76
|
}
|
|
77
77
|
var SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
|
-
openapiDocVersion: "2.
|
|
79
|
+
openapiDocVersion: "2.5.0",
|
|
80
80
|
sdkVersion: "0.10.18",
|
|
81
81
|
genVersion: "2.884.13",
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.5.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -849,7 +849,7 @@ function dlv(obj, key, def, p, undef) {
|
|
|
849
849
|
// ../sdk/src/lib/env.ts
|
|
850
850
|
var envSchema = z5.object({
|
|
851
851
|
AUTUMN_SECRET_KEY: z5.optional(z5.string()),
|
|
852
|
-
AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.
|
|
852
|
+
AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.5.0"),
|
|
853
853
|
AUTUMN_FAIL_OPEN: z5.pipe(
|
|
854
854
|
z5._default(z5.enum(["true", "false"]), "true"),
|
|
855
855
|
z5.transform((v) => v === "true")
|
|
@@ -4198,8 +4198,7 @@ var RequestBody$outboundSchema = z16.pipe(
|
|
|
4198
4198
|
properties: z16.optional(z16.record(z16.string(), z16.any())),
|
|
4199
4199
|
idempotencyKey: z16.optional(z16.string()),
|
|
4200
4200
|
timestamp: z16.optional(z16.int()),
|
|
4201
|
-
overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema)
|
|
4202
|
-
async: z16.optional(z16.boolean())
|
|
4201
|
+
overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema)
|
|
4203
4202
|
}),
|
|
4204
4203
|
z16.transform((v) => {
|
|
4205
4204
|
return remap(v, {
|
|
@@ -66165,7 +66164,7 @@ var Autumn = class extends ClientSDK {
|
|
|
66165
66164
|
));
|
|
66166
66165
|
}
|
|
66167
66166
|
/**
|
|
66168
|
-
* Records usage for a customer feature
|
|
66167
|
+
* Records usage for a customer feature. Queued by default; pass async: false to apply it before responding with updated balances.
|
|
66169
66168
|
*
|
|
66170
66169
|
* Use this after an action happens to decrement usage, or send a negative value to credit balance back.
|
|
66171
66170
|
*
|
|
@@ -66189,9 +66188,9 @@ var Autumn = class extends ClientSDK {
|
|
|
66189
66188
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
66190
66189
|
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
66191
66190
|
* @param overageBehavior - How to handle usage that exceeds the available balance. "cap" (default) deducts only what fits, stopping at zero. "overflow" deducts the full value: the balance can go negative and usage limits do not clamp the deduction, though spend limits still apply. (optional)
|
|
66192
|
-
* @param async -
|
|
66191
|
+
* @param async - Defaults to true: the event is queued and the response is a 202 with balance: null. Set to false to apply the usage before responding with a 200 and the updated balance. (optional)
|
|
66193
66192
|
*
|
|
66194
|
-
* @returns The usage value recorded
|
|
66193
|
+
* @returns The usage value recorded. By default the event is queued and the API returns 202 with balance: null. With async: false it returns 200 with either a single updated balance or a map of updated balances, or 202 if Autumn is experiencing degraded service and accepted the event for replay.
|
|
66195
66194
|
*/
|
|
66196
66195
|
async track(request, options) {
|
|
66197
66196
|
return unwrapAsync(track(
|
|
@@ -66232,9 +66231,9 @@ var Autumn = class extends ClientSDK {
|
|
|
66232
66231
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
66233
66232
|
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
66234
66233
|
* @param overageBehavior - How to handle usage that exceeds the available balance. "cap" (default) deducts only what fits, stopping at zero. "overflow" deducts the full value: the balance can go negative and usage limits do not clamp the deduction, though spend limits still apply. (optional)
|
|
66235
|
-
* @param async -
|
|
66234
|
+
* @param async - Defaults to true: the event is queued and the response is a 202 with balance: null. Set to false to apply the usage before responding with a 200 and the updated balance. (optional)
|
|
66236
66235
|
*
|
|
66237
|
-
* @returns The dollar value recorded
|
|
66236
|
+
* @returns The dollar value recorded. By default the event is queued and the API returns 202 with balance: null. With async: false it returns 200 with the updated AI credit system balance, or 202 if Autumn is experiencing degraded service and accepted the event for replay.
|
|
66238
66237
|
*/
|
|
66239
66238
|
async trackTokens(request, options) {
|
|
66240
66239
|
return unwrapAsync(trackTokens(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreHandler
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-FJYYK3KF.mjs";
|
|
4
|
+
import "../../chunk-HKLICPAL.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-WSWENEK2.mjs";
|
|
11
11
|
import "../../chunk-OTXV5FY7.mjs";
|
|
12
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
13
12
|
import "../../chunk-I7CD6EB6.mjs";
|
|
13
|
+
import "../../chunk-VZIMT7AO.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-C0SK3Woi.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-eswiz8Fx.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-VZIMT7AO.mjs";
|
|
8
7
|
import "../../chunk-I7CD6EB6.mjs";
|
|
8
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
9
9
|
import "../../chunk-N7NFYY54.mjs";
|
|
10
10
|
export {
|
|
11
11
|
executeRoute
|
|
@@ -76,10 +76,10 @@ function serverURLFromOptions(options) {
|
|
|
76
76
|
}
|
|
77
77
|
var SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
|
-
openapiDocVersion: "2.
|
|
79
|
+
openapiDocVersion: "2.5.0",
|
|
80
80
|
sdkVersion: "0.10.18",
|
|
81
81
|
genVersion: "2.884.13",
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.5.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -849,7 +849,7 @@ function dlv(obj, key, def, p, undef) {
|
|
|
849
849
|
// ../sdk/src/lib/env.ts
|
|
850
850
|
var envSchema = z5.object({
|
|
851
851
|
AUTUMN_SECRET_KEY: z5.optional(z5.string()),
|
|
852
|
-
AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.
|
|
852
|
+
AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.5.0"),
|
|
853
853
|
AUTUMN_FAIL_OPEN: z5.pipe(
|
|
854
854
|
z5._default(z5.enum(["true", "false"]), "true"),
|
|
855
855
|
z5.transform((v) => v === "true")
|
|
@@ -4198,8 +4198,7 @@ var RequestBody$outboundSchema = z16.pipe(
|
|
|
4198
4198
|
properties: z16.optional(z16.record(z16.string(), z16.any())),
|
|
4199
4199
|
idempotencyKey: z16.optional(z16.string()),
|
|
4200
4200
|
timestamp: z16.optional(z16.int()),
|
|
4201
|
-
overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema)
|
|
4202
|
-
async: z16.optional(z16.boolean())
|
|
4201
|
+
overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema)
|
|
4203
4202
|
}),
|
|
4204
4203
|
z16.transform((v) => {
|
|
4205
4204
|
return remap(v, {
|
|
@@ -66165,7 +66164,7 @@ var Autumn = class extends ClientSDK {
|
|
|
66165
66164
|
));
|
|
66166
66165
|
}
|
|
66167
66166
|
/**
|
|
66168
|
-
* Records usage for a customer feature
|
|
66167
|
+
* Records usage for a customer feature. Queued by default; pass async: false to apply it before responding with updated balances.
|
|
66169
66168
|
*
|
|
66170
66169
|
* Use this after an action happens to decrement usage, or send a negative value to credit balance back.
|
|
66171
66170
|
*
|
|
@@ -66189,9 +66188,9 @@ var Autumn = class extends ClientSDK {
|
|
|
66189
66188
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
66190
66189
|
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
66191
66190
|
* @param overageBehavior - How to handle usage that exceeds the available balance. "cap" (default) deducts only what fits, stopping at zero. "overflow" deducts the full value: the balance can go negative and usage limits do not clamp the deduction, though spend limits still apply. (optional)
|
|
66192
|
-
* @param async -
|
|
66191
|
+
* @param async - Defaults to true: the event is queued and the response is a 202 with balance: null. Set to false to apply the usage before responding with a 200 and the updated balance. (optional)
|
|
66193
66192
|
*
|
|
66194
|
-
* @returns The usage value recorded
|
|
66193
|
+
* @returns The usage value recorded. By default the event is queued and the API returns 202 with balance: null. With async: false it returns 200 with either a single updated balance or a map of updated balances, or 202 if Autumn is experiencing degraded service and accepted the event for replay.
|
|
66195
66194
|
*/
|
|
66196
66195
|
async track(request, options) {
|
|
66197
66196
|
return unwrapAsync(track(
|
|
@@ -66232,9 +66231,9 @@ var Autumn = class extends ClientSDK {
|
|
|
66232
66231
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
66233
66232
|
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
66234
66233
|
* @param overageBehavior - How to handle usage that exceeds the available balance. "cap" (default) deducts only what fits, stopping at zero. "overflow" deducts the full value: the balance can go negative and usage limits do not clamp the deduction, though spend limits still apply. (optional)
|
|
66235
|
-
* @param async -
|
|
66234
|
+
* @param async - Defaults to true: the event is queued and the response is a 202 with balance: null. Set to false to apply the usage before responding with a 200 and the updated balance. (optional)
|
|
66236
66235
|
*
|
|
66237
|
-
* @returns The dollar value recorded
|
|
66236
|
+
* @returns The dollar value recorded. By default the event is queued and the API returns 202 with balance: null. With async: false it returns 200 with the updated AI credit system balance, or 202 if Autumn is experiencing degraded service and accepted the event for replay.
|
|
66238
66237
|
*/
|
|
66239
66238
|
async trackTokens(request, options) {
|
|
66240
66239
|
return unwrapAsync(trackTokens(
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleRouteByName
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-ETP3OECB.mjs";
|
|
4
|
+
import "../../chunk-HKLICPAL.mjs";
|
|
5
5
|
import "../../chunk-MOHYGUMA.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
8
8
|
import "../../chunk-WSWENEK2.mjs";
|
|
9
9
|
import "../../chunk-OTXV5FY7.mjs";
|
|
10
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
11
10
|
import "../../chunk-I7CD6EB6.mjs";
|
|
11
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
12
12
|
import "../../chunk-N7NFYY54.mjs";
|
|
13
13
|
export {
|
|
14
14
|
handleRouteByName
|
|
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.mjs';
|
|
|
5
5
|
export { resolveIdentity } from './resolveIdentity.mjs';
|
|
6
6
|
import '../types/handlerTypes.mjs';
|
|
7
7
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
8
|
-
import '../../routeTypes-
|
|
8
|
+
import '../../routeTypes-C0SK3Woi.mjs';
|
|
9
9
|
import 'zod/v4';
|
|
10
10
|
import '../utils/sanitizeBody.mjs';
|
|
11
11
|
import '../types/responseTypes.mjs';
|
|
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.js';
|
|
|
5
5
|
export { resolveIdentity } from './resolveIdentity.js';
|
|
6
6
|
import '../types/handlerTypes.js';
|
|
7
7
|
import '../../authTypes-TPWTIfcM.js';
|
|
8
|
-
import '../../routeTypes-
|
|
8
|
+
import '../../routeTypes-eswiz8Fx.js';
|
|
9
9
|
import 'zod/v4';
|
|
10
10
|
import '../utils/sanitizeBody.js';
|
|
11
11
|
import '../types/responseTypes.js';
|
|
@@ -80,10 +80,10 @@ function serverURLFromOptions(options) {
|
|
|
80
80
|
}
|
|
81
81
|
var SDK_METADATA = {
|
|
82
82
|
language: "typescript",
|
|
83
|
-
openapiDocVersion: "2.
|
|
83
|
+
openapiDocVersion: "2.5.0",
|
|
84
84
|
sdkVersion: "0.10.18",
|
|
85
85
|
genVersion: "2.884.13",
|
|
86
|
-
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.
|
|
86
|
+
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.5.0 @useautumn/sdk"
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
// ../sdk/src/lib/http.ts
|
|
@@ -853,7 +853,7 @@ function dlv(obj, key, def, p, undef) {
|
|
|
853
853
|
// ../sdk/src/lib/env.ts
|
|
854
854
|
var envSchema = z5.object({
|
|
855
855
|
AUTUMN_SECRET_KEY: z5.optional(z5.string()),
|
|
856
|
-
AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.
|
|
856
|
+
AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.5.0"),
|
|
857
857
|
AUTUMN_FAIL_OPEN: z5.pipe(
|
|
858
858
|
z5._default(z5.enum(["true", "false"]), "true"),
|
|
859
859
|
z5.transform((v) => v === "true")
|
|
@@ -4202,8 +4202,7 @@ var RequestBody$outboundSchema = z16.pipe(
|
|
|
4202
4202
|
properties: z16.optional(z16.record(z16.string(), z16.any())),
|
|
4203
4203
|
idempotencyKey: z16.optional(z16.string()),
|
|
4204
4204
|
timestamp: z16.optional(z16.int()),
|
|
4205
|
-
overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema)
|
|
4206
|
-
async: z16.optional(z16.boolean())
|
|
4205
|
+
overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema)
|
|
4207
4206
|
}),
|
|
4208
4207
|
z16.transform((v) => {
|
|
4209
4208
|
return remap(v, {
|
|
@@ -66169,7 +66168,7 @@ var Autumn = class extends ClientSDK {
|
|
|
66169
66168
|
));
|
|
66170
66169
|
}
|
|
66171
66170
|
/**
|
|
66172
|
-
* Records usage for a customer feature
|
|
66171
|
+
* Records usage for a customer feature. Queued by default; pass async: false to apply it before responding with updated balances.
|
|
66173
66172
|
*
|
|
66174
66173
|
* Use this after an action happens to decrement usage, or send a negative value to credit balance back.
|
|
66175
66174
|
*
|
|
@@ -66193,9 +66192,9 @@ var Autumn = class extends ClientSDK {
|
|
|
66193
66192
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
66194
66193
|
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
66195
66194
|
* @param overageBehavior - How to handle usage that exceeds the available balance. "cap" (default) deducts only what fits, stopping at zero. "overflow" deducts the full value: the balance can go negative and usage limits do not clamp the deduction, though spend limits still apply. (optional)
|
|
66196
|
-
* @param async -
|
|
66195
|
+
* @param async - Defaults to true: the event is queued and the response is a 202 with balance: null. Set to false to apply the usage before responding with a 200 and the updated balance. (optional)
|
|
66197
66196
|
*
|
|
66198
|
-
* @returns The usage value recorded
|
|
66197
|
+
* @returns The usage value recorded. By default the event is queued and the API returns 202 with balance: null. With async: false it returns 200 with either a single updated balance or a map of updated balances, or 202 if Autumn is experiencing degraded service and accepted the event for replay.
|
|
66199
66198
|
*/
|
|
66200
66199
|
async track(request, options) {
|
|
66201
66200
|
return unwrapAsync(track(
|
|
@@ -66236,9 +66235,9 @@ var Autumn = class extends ClientSDK {
|
|
|
66236
66235
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
66237
66236
|
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
66238
66237
|
* @param overageBehavior - How to handle usage that exceeds the available balance. "cap" (default) deducts only what fits, stopping at zero. "overflow" deducts the full value: the balance can go negative and usage limits do not clamp the deduction, though spend limits still apply. (optional)
|
|
66239
|
-
* @param async -
|
|
66238
|
+
* @param async - Defaults to true: the event is queued and the response is a 202 with balance: null. Set to false to apply the usage before responding with a 200 and the updated balance. (optional)
|
|
66240
66239
|
*
|
|
66241
|
-
* @returns The dollar value recorded
|
|
66240
|
+
* @returns The dollar value recorded. By default the event is queued and the API returns 202 with balance: null. With async: false it returns 200 with the updated AI credit system balance, or 202 if Autumn is experiencing degraded service and accepted the event for replay.
|
|
66242
66241
|
*/
|
|
66243
66242
|
async trackTokens(request, options) {
|
|
66244
66243
|
return unwrapAsync(trackTokens(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../chunk-VXND2UDT.mjs";
|
|
2
|
-
import {
|
|
3
|
-
handleRouteByName
|
|
4
|
-
} from "../../chunk-P46GFHFB.mjs";
|
|
5
2
|
import {
|
|
6
3
|
createCoreHandler
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import
|
|
4
|
+
} from "../../chunk-FJYYK3KF.mjs";
|
|
5
|
+
import {
|
|
6
|
+
handleRouteByName
|
|
7
|
+
} from "../../chunk-ETP3OECB.mjs";
|
|
8
|
+
import "../../chunk-HKLICPAL.mjs";
|
|
9
9
|
import {
|
|
10
10
|
executeRoute
|
|
11
11
|
} from "../../chunk-MOHYGUMA.mjs";
|
|
@@ -19,8 +19,8 @@ import "../../chunk-TSF4YCUO.mjs";
|
|
|
19
19
|
import "../../chunk-UAR3TMWI.mjs";
|
|
20
20
|
import "../../chunk-WSWENEK2.mjs";
|
|
21
21
|
import "../../chunk-OTXV5FY7.mjs";
|
|
22
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
23
22
|
import "../../chunk-I7CD6EB6.mjs";
|
|
23
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
24
24
|
import "../../chunk-N7NFYY54.mjs";
|
|
25
25
|
export {
|
|
26
26
|
createCoreHandler,
|
|
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.mjs';
|
|
|
2
2
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-TPWTIfcM.mjs';
|
|
3
3
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.mjs';
|
|
4
4
|
export { BackendErrorBody, BackendResult } from './types/responseTypes.mjs';
|
|
5
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-C0SK3Woi.mjs';
|
|
6
6
|
export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.mjs';
|
|
7
7
|
export { buildRouter } from './routes/routeBuilder.mjs';
|
|
8
8
|
export { routeConfigs } from './routes/routeConfigs.mjs';
|
|
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.js';
|
|
|
2
2
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-TPWTIfcM.js';
|
|
3
3
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.js';
|
|
4
4
|
export { BackendErrorBody, BackendResult } from './types/responseTypes.js';
|
|
5
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-eswiz8Fx.js';
|
|
6
6
|
export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.js';
|
|
7
7
|
export { buildRouter } from './routes/routeBuilder.js';
|
|
8
8
|
export { routeConfigs } from './routes/routeConfigs.js';
|
|
@@ -84,10 +84,10 @@ function serverURLFromOptions(options) {
|
|
|
84
84
|
}
|
|
85
85
|
var SDK_METADATA = {
|
|
86
86
|
language: "typescript",
|
|
87
|
-
openapiDocVersion: "2.
|
|
87
|
+
openapiDocVersion: "2.5.0",
|
|
88
88
|
sdkVersion: "0.10.18",
|
|
89
89
|
genVersion: "2.884.13",
|
|
90
|
-
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.
|
|
90
|
+
userAgent: "speakeasy-sdk/typescript 0.10.18 2.884.13 2.5.0 @useautumn/sdk"
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
// ../sdk/src/lib/http.ts
|
|
@@ -857,7 +857,7 @@ function dlv(obj, key, def, p, undef) {
|
|
|
857
857
|
// ../sdk/src/lib/env.ts
|
|
858
858
|
var envSchema = z5.object({
|
|
859
859
|
AUTUMN_SECRET_KEY: z5.optional(z5.string()),
|
|
860
|
-
AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.
|
|
860
|
+
AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.5.0"),
|
|
861
861
|
AUTUMN_FAIL_OPEN: z5.pipe(
|
|
862
862
|
z5._default(z5.enum(["true", "false"]), "true"),
|
|
863
863
|
z5.transform((v) => v === "true")
|
|
@@ -4206,8 +4206,7 @@ var RequestBody$outboundSchema = z16.pipe(
|
|
|
4206
4206
|
properties: z16.optional(z16.record(z16.string(), z16.any())),
|
|
4207
4207
|
idempotencyKey: z16.optional(z16.string()),
|
|
4208
4208
|
timestamp: z16.optional(z16.int()),
|
|
4209
|
-
overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema)
|
|
4210
|
-
async: z16.optional(z16.boolean())
|
|
4209
|
+
overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema)
|
|
4211
4210
|
}),
|
|
4212
4211
|
z16.transform((v) => {
|
|
4213
4212
|
return remap(v, {
|
|
@@ -66173,7 +66172,7 @@ var Autumn = class extends ClientSDK {
|
|
|
66173
66172
|
));
|
|
66174
66173
|
}
|
|
66175
66174
|
/**
|
|
66176
|
-
* Records usage for a customer feature
|
|
66175
|
+
* Records usage for a customer feature. Queued by default; pass async: false to apply it before responding with updated balances.
|
|
66177
66176
|
*
|
|
66178
66177
|
* Use this after an action happens to decrement usage, or send a negative value to credit balance back.
|
|
66179
66178
|
*
|
|
@@ -66197,9 +66196,9 @@ var Autumn = class extends ClientSDK {
|
|
|
66197
66196
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
66198
66197
|
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
66199
66198
|
* @param overageBehavior - How to handle usage that exceeds the available balance. "cap" (default) deducts only what fits, stopping at zero. "overflow" deducts the full value: the balance can go negative and usage limits do not clamp the deduction, though spend limits still apply. (optional)
|
|
66200
|
-
* @param async -
|
|
66199
|
+
* @param async - Defaults to true: the event is queued and the response is a 202 with balance: null. Set to false to apply the usage before responding with a 200 and the updated balance. (optional)
|
|
66201
66200
|
*
|
|
66202
|
-
* @returns The usage value recorded
|
|
66201
|
+
* @returns The usage value recorded. By default the event is queued and the API returns 202 with balance: null. With async: false it returns 200 with either a single updated balance or a map of updated balances, or 202 if Autumn is experiencing degraded service and accepted the event for replay.
|
|
66203
66202
|
*/
|
|
66204
66203
|
async track(request, options) {
|
|
66205
66204
|
return unwrapAsync(track(
|
|
@@ -66240,9 +66239,9 @@ var Autumn = class extends ClientSDK {
|
|
|
66240
66239
|
* @param properties - Additional properties to attach to this usage event. (optional)
|
|
66241
66240
|
* @param timestamp - Unix timestamp in milliseconds to use for the usage event. Defaults to the current time. (optional)
|
|
66242
66241
|
* @param overageBehavior - How to handle usage that exceeds the available balance. "cap" (default) deducts only what fits, stopping at zero. "overflow" deducts the full value: the balance can go negative and usage limits do not clamp the deduction, though spend limits still apply. (optional)
|
|
66243
|
-
* @param async -
|
|
66242
|
+
* @param async - Defaults to true: the event is queued and the response is a 202 with balance: null. Set to false to apply the usage before responding with a 200 and the updated balance. (optional)
|
|
66244
66243
|
*
|
|
66245
|
-
* @returns The dollar value recorded
|
|
66244
|
+
* @returns The dollar value recorded. By default the event is queued and the API returns 202 with balance: null. With async: false it returns 200 with the updated AI credit system balance, or 202 if Autumn is experiencing degraded service and accepted the event for replay.
|
|
66246
66245
|
*/
|
|
66247
66246
|
async trackTokens(request, options) {
|
|
66248
66247
|
return unwrapAsync(trackTokens(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-WYDGEDEU.mjs";
|
|
2
2
|
import "../chunk-VXND2UDT.mjs";
|
|
3
|
-
import {
|
|
4
|
-
handleRouteByName
|
|
5
|
-
} from "../chunk-P46GFHFB.mjs";
|
|
6
3
|
import {
|
|
7
4
|
createCoreHandler
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import
|
|
5
|
+
} from "../chunk-FJYYK3KF.mjs";
|
|
6
|
+
import {
|
|
7
|
+
handleRouteByName
|
|
8
|
+
} from "../chunk-ETP3OECB.mjs";
|
|
9
|
+
import "../chunk-HKLICPAL.mjs";
|
|
10
10
|
import "../chunk-MOHYGUMA.mjs";
|
|
11
11
|
import "../chunk-TBQ27LIK.mjs";
|
|
12
12
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
routeConfigs
|
|
19
19
|
} from "../chunk-WSWENEK2.mjs";
|
|
20
20
|
import "../chunk-OTXV5FY7.mjs";
|
|
21
|
-
import {
|
|
22
|
-
secretKeyCheck
|
|
23
|
-
} from "../chunk-VZIMT7AO.mjs";
|
|
24
21
|
import {
|
|
25
22
|
sanitizeBody
|
|
26
23
|
} from "../chunk-I7CD6EB6.mjs";
|
|
24
|
+
import {
|
|
25
|
+
secretKeyCheck
|
|
26
|
+
} from "../chunk-VZIMT7AO.mjs";
|
|
27
27
|
import {
|
|
28
28
|
backendError,
|
|
29
29
|
backendSuccess,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { RouteMatch, buildRouter } from './routeBuilder.mjs';
|
|
2
2
|
export { routeConfigs } from './routeConfigs.mjs';
|
|
3
3
|
import 'rou3';
|
|
4
|
-
import '../../routeTypes-
|
|
4
|
+
import '../../routeTypes-C0SK3Woi.mjs';
|
|
5
5
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { RouteMatch, buildRouter } from './routeBuilder.js';
|
|
2
2
|
export { routeConfigs } from './routeConfigs.js';
|
|
3
3
|
import 'rou3';
|
|
4
|
-
import '../../routeTypes-
|
|
4
|
+
import '../../routeTypes-eswiz8Fx.js';
|
|
5
5
|
import '../../authTypes-TPWTIfcM.js';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../utils/sanitizeBody.js';
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
routeConfigs
|
|
7
7
|
} from "../../chunk-WSWENEK2.mjs";
|
|
8
8
|
import "../../chunk-OTXV5FY7.mjs";
|
|
9
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
10
9
|
import "../../chunk-I7CD6EB6.mjs";
|
|
10
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
11
11
|
import "../../chunk-N7NFYY54.mjs";
|
|
12
12
|
export {
|
|
13
13
|
buildRouter,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouterContext } from 'rou3';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-C0SK3Woi.mjs';
|
|
3
3
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouterContext } from 'rou3';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-eswiz8Fx.js';
|
|
3
3
|
import '../../authTypes-TPWTIfcM.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
routeConfigs
|
|
3
3
|
} from "../../chunk-WSWENEK2.mjs";
|
|
4
4
|
import "../../chunk-OTXV5FY7.mjs";
|
|
5
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
6
5
|
import "../../chunk-I7CD6EB6.mjs";
|
|
6
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
7
7
|
import "../../chunk-N7NFYY54.mjs";
|
|
8
8
|
export {
|
|
9
9
|
routeConfigs
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthResult } from '../../authTypes-TPWTIfcM.mjs';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-C0SK3Woi.mjs';
|
|
3
3
|
import './responseTypes.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthResult } from '../../authTypes-TPWTIfcM.js';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-eswiz8Fx.js';
|
|
3
3
|
import './responseTypes.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-TPWTIfcM.mjs';
|
|
2
2
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.mjs';
|
|
3
3
|
export { BackendErrorBody, BackendResult } from './responseTypes.mjs';
|
|
4
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
4
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-C0SK3Woi.mjs';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../utils/sanitizeBody.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-TPWTIfcM.js';
|
|
2
2
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.js';
|
|
3
3
|
export { BackendErrorBody, BackendResult } from './responseTypes.js';
|
|
4
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
4
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-eswiz8Fx.js';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../utils/sanitizeBody.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
1
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-C0SK3Woi.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../utils/sanitizeBody.mjs';
|
|
4
4
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-
|
|
1
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-eswiz8Fx.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../utils/sanitizeBody.js';
|
|
4
4
|
import '../../authTypes-TPWTIfcM.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../chunk-OTXV5FY7.mjs";
|
|
2
|
-
import {
|
|
3
|
-
secretKeyCheck
|
|
4
|
-
} from "../../chunk-VZIMT7AO.mjs";
|
|
5
2
|
import {
|
|
6
3
|
CUSTOMER_PROTECTED_BODY_FIELDS,
|
|
7
4
|
DEFAULT_PROTECTED_BODY_FIELDS,
|
|
8
5
|
sanitizeBody
|
|
9
6
|
} from "../../chunk-I7CD6EB6.mjs";
|
|
7
|
+
import {
|
|
8
|
+
secretKeyCheck
|
|
9
|
+
} from "../../chunk-VZIMT7AO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
backendError,
|
|
12
12
|
backendSuccess,
|