@sixb/server 0.1.6 → 0.1.8
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/auth/access-token-boundary.d.ts +3 -0
- package/dist/auth/access-token-boundary.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +6 -2
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/shared-access.d.ts +66 -0
- package/dist/auth/shared-access.d.ts.map +1 -0
- package/dist/files/content.d.ts +8 -0
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3402 -1693
- package/dist/index.js.map +35 -28
- package/dist/models/display.d.ts +22 -0
- package/dist/models/display.d.ts.map +1 -0
- package/dist/openapi/security.d.ts +15 -1
- package/dist/openapi/security.d.ts.map +1 -1
- package/dist/openapi/tags.d.ts +6 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +2 -0
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +2 -0
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +1 -0
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +100 -90
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +143 -24
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +8 -8
- package/dist/routes/connector-connections.d.ts +4 -4
- package/dist/routes/datasets.d.ts +5 -3
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +3 -3
- package/dist/routes/files.d.ts +1 -0
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +1 -1
- package/dist/routes/models.d.ts +18 -1
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +3 -1
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +6 -1
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +1 -1
- package/dist/routes/share-grants.d.ts +264 -0
- package/dist/routes/share-grants.d.ts.map +1 -0
- package/dist/routes/shared-access.d.ts +155 -0
- package/dist/routes/shared-access.d.ts.map +1 -0
- package/dist/routes/syncs.d.ts +3 -0
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +58 -55
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +4 -4
- package/dist/schemas/agents.d.ts +385 -230
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1847 -295
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/ai-limits.d.ts +2210 -0
- package/dist/schemas/ai-limits.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +195 -112
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +28 -22
- package/dist/schemas/datasets.d.ts.map +1 -1
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/files.d.ts +3 -0
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +6 -6
- package/dist/schemas/models.d.ts +214 -14
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +4 -4
- package/dist/schemas/pipelines.d.ts +42 -6
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/share-grants.d.ts +518 -0
- package/dist/schemas/share-grants.d.ts.map +1 -0
- package/dist/schemas/shared-access.d.ts +42 -0
- package/dist/schemas/shared-access.d.ts.map +1 -0
- package/dist/schemas/syncs.d.ts +7 -0
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +200 -210
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts +8 -4
- package/dist/utils/http.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/auth/access-token-boundary.ts +17 -2
- package/src/auth/public-routes.ts +23 -0
- package/src/auth/scope.ts +3 -2
- package/src/auth/shared-access.ts +376 -0
- package/src/files/content.ts +39 -6
- package/src/index.ts +1 -0
- package/src/models/display.ts +91 -0
- package/src/openapi/security.ts +20 -1
- package/src/openapi/tags.ts +4 -0
- package/src/registerRoutes.ts +6 -0
- package/src/routes/actions.ts +5 -10
- package/src/routes/agent-api-gateway.ts +137 -38
- package/src/routes/agents.ts +58 -83
- package/src/routes/ai-accounting.ts +414 -23
- package/src/routes/auth.ts +280 -1
- package/src/routes/models.ts +12 -4
- package/src/routes/share-grants.ts +238 -0
- package/src/routes/shared-access.ts +165 -0
- package/src/routes/workflows.ts +3 -5
- package/src/routes/ws/agents.ts +17 -6
- package/src/schemas/agents.ts +38 -50
- package/src/schemas/ai-accounting.ts +88 -19
- package/src/schemas/ai-limits.ts +116 -0
- package/src/schemas/auth.ts +32 -0
- package/src/schemas/datasets.ts +2 -1
- package/src/schemas/files.ts +1 -0
- package/src/schemas/models.ts +33 -5
- package/src/schemas/share-grants.ts +109 -0
- package/src/schemas/shared-access.ts +31 -0
- package/src/schemas/workflows.ts +0 -2
- package/src/server.ts +91 -1
- package/src/utils/http.ts +33 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LanguageModelEntry } from "@sixb/core";
|
|
2
|
+
/** Presentation only; the configured provider remains the source of model capabilities. */
|
|
3
|
+
export declare function languageModelDisplay(entry: LanguageModelEntry): Promise<{
|
|
4
|
+
capabilities: {
|
|
5
|
+
contextWindowTokens?: number | undefined;
|
|
6
|
+
structuredOutput?: boolean | undefined;
|
|
7
|
+
tools?: boolean | undefined;
|
|
8
|
+
reasoning?: boolean | undefined;
|
|
9
|
+
attachments?: boolean | undefined;
|
|
10
|
+
input: string[];
|
|
11
|
+
output: string[];
|
|
12
|
+
};
|
|
13
|
+
reasoningLevels: readonly ("none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
|
|
14
|
+
via?: string | undefined;
|
|
15
|
+
publisher: {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
name: string;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/models/display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAQpD,2FAA2F;AAC3F,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;GAuDnE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const SIXB_CSRF_SECURITY_SCHEME_ID = "sixbCsrf";
|
|
2
2
|
export declare const SIXB_BEARER_SECURITY_SCHEME_ID = "sixbBearer";
|
|
3
|
+
export declare const SIXB_SHARED_GRANT_SECURITY_SCHEME_ID = "sixbSharedGrant";
|
|
3
4
|
export declare const SIXB_CSRF_SECURITY_REQUIREMENT: {
|
|
4
5
|
sixbCsrf: string[];
|
|
5
6
|
}[];
|
|
@@ -11,11 +12,18 @@ export declare const SIXB_CSRF_OR_BEARER_SECURITY_REQUIREMENT: ({
|
|
|
11
12
|
} | {
|
|
12
13
|
sixbBearer: string[];
|
|
13
14
|
})[];
|
|
15
|
+
export declare const SIXB_SHARED_READ_SECURITY_REQUIREMENT: {
|
|
16
|
+
sixbSharedGrant: string[];
|
|
17
|
+
};
|
|
18
|
+
export declare const SIXB_SHARED_MUTATION_SECURITY_REQUIREMENT: {
|
|
19
|
+
sixbSharedGrant: string[];
|
|
20
|
+
sixbCsrf: string[];
|
|
21
|
+
};
|
|
14
22
|
export declare const SIXB_CSRF_SECURITY_SCHEME: {
|
|
15
23
|
readonly type: "apiKey";
|
|
16
24
|
readonly in: "header";
|
|
17
25
|
readonly name: "x-sixb-csrf";
|
|
18
|
-
readonly description: "Required for authenticated mutating requests. Use the csrfToken returned by
|
|
26
|
+
readonly description: "Required for cookie-authenticated mutating requests. Use the csrfToken returned by the corresponding session endpoint.";
|
|
19
27
|
};
|
|
20
28
|
export declare const SIXB_BEARER_SECURITY_SCHEME: {
|
|
21
29
|
readonly type: "http";
|
|
@@ -23,4 +31,10 @@ export declare const SIXB_BEARER_SECURITY_SCHEME: {
|
|
|
23
31
|
readonly bearerFormat: "Sixb access token";
|
|
24
32
|
readonly description: "Use a Sixb personal access token or service-account token. Bearer tokens are accepted only on routes that explicitly document this scheme.";
|
|
25
33
|
};
|
|
34
|
+
export declare const SIXB_SHARED_GRANT_SECURITY_SCHEME: {
|
|
35
|
+
readonly type: "apiKey";
|
|
36
|
+
readonly in: "header";
|
|
37
|
+
readonly name: "x-sixb-share-grant";
|
|
38
|
+
readonly description: "Selects the shared grant whose grant-specific HttpOnly session cookie must authenticate the request.";
|
|
39
|
+
};
|
|
26
40
|
//# sourceMappingURL=security.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/openapi/security.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/openapi/security.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B,aAAa,CAAA;AACtD,eAAO,MAAM,8BAA8B,eAAe,CAAA;AAC1D,eAAO,MAAM,oCAAoC,oBAAoB,CAAA;AAErE,eAAO,MAAM,8BAA8B;cAED,MAAM,EAAE;GAEjD,CAAA;AAED,eAAO,MAAM,gCAAgC;gBAED,MAAM,EAAE;GAEnD,CAAA;AAED,eAAO,MAAM,wCAAwC;cAVX,MAAM,EAAE;;gBAMN,MAAM,EAAE;IAOnD,CAAA;AAED,eAAO,MAAM,qCAAqC;qBACF,MAAM,EAAE;CACvD,CAAA;AAED,eAAO,MAAM,yCAAyC;qBACN,MAAM,EAAE;cAChB,MAAM,EAAE;CAC/C,CAAA;AAED,eAAO,MAAM,yBAAyB;;;;;CAM5B,CAAA;AAEV,eAAO,MAAM,2BAA2B;;;;;CAM9B,CAAA;AAEV,eAAO,MAAM,iCAAiC;;;;;CAMpC,CAAA"}
|
package/dist/openapi/tags.d.ts
CHANGED
|
@@ -159,9 +159,13 @@ export declare const OPENAPI_TAGS: {
|
|
|
159
159
|
readonly name: "Auth Service Accounts";
|
|
160
160
|
readonly description: "Service accounts and service-account access tokens";
|
|
161
161
|
};
|
|
162
|
+
readonly sharedAccess: {
|
|
163
|
+
readonly name: "Shared Access";
|
|
164
|
+
readonly description: "Scoped shared-access grant lifecycle";
|
|
165
|
+
};
|
|
162
166
|
};
|
|
163
167
|
export declare const OPENAPI_TAG_METADATA: {
|
|
164
|
-
name: "Project" | "Status" | "AI Accounting" | "Ontology" | "Connectors" | "Connector Connections" | "Connector Connection Runs" | "Webhooks" | "Datasets" | "Dataset Versions" | "Dataset Rows" | "Syncs" | "Sync Runs" | "Pipelines" | "Pipeline Runs" | "Workflows" | "Workflow Runs" | "Workflow Interventions" | "Rules" | "Rule States" | "Projections" | "Projection Runs" | "Objects" | "Object Files" | "Actions" | "Action Runs" | "Agents" | "Models" | "Agent Threads" | "Agent Runs" | "Files" | "Links" | "Telemetry" | "Events" | "Logs" | "Auth Sessions" | "Auth Members" | "Auth Invitations" | "Auth Access Tokens" | "Auth Service Accounts";
|
|
165
|
-
description: "Current project metadata" | "Runtime status" | "Project AI token usage, cost analytics, and model-call accounting" | "Object type definitions" | "Connector metadata" | "Connected external accounts" | "Interactive OAuth connection runs" | "Webhook run history" | "Dataset definitions" | "Dataset version history" | "Dataset row previews" | "Sync metadata" | "Sync run history and requests" | "Pipeline metadata" | "Pipeline run history and requests" | "Workflow metadata" | "Workflow run history and requests" | "Workflow intervention tasks" | "Rule definitions" | "Active rule states" | "Projection definitions" | "Projection run history" | "Twin objects and state" | "Object-backed file content" | "Action metadata and requests" | "Action run history" | "Agent catalog" | "Project model catalog" | "Agent conversation threads and messages" | "Agent run state and cancellation" | "File uploads and file references" | "Object relationship links" | "Telemetry history and appends" | "Domain event stream" | "Run log stream" | "Authentication sessions and sign-out" | "User membership administration" | "User invitations" | "Personal access-token management" | "Service accounts and service-account access tokens";
|
|
168
|
+
name: "Project" | "Status" | "AI Accounting" | "Ontology" | "Connectors" | "Connector Connections" | "Connector Connection Runs" | "Webhooks" | "Datasets" | "Dataset Versions" | "Dataset Rows" | "Syncs" | "Sync Runs" | "Pipelines" | "Pipeline Runs" | "Workflows" | "Workflow Runs" | "Workflow Interventions" | "Rules" | "Rule States" | "Projections" | "Projection Runs" | "Objects" | "Object Files" | "Actions" | "Action Runs" | "Agents" | "Models" | "Agent Threads" | "Agent Runs" | "Files" | "Links" | "Telemetry" | "Events" | "Logs" | "Auth Sessions" | "Auth Members" | "Auth Invitations" | "Auth Access Tokens" | "Auth Service Accounts" | "Shared Access";
|
|
169
|
+
description: "Current project metadata" | "Runtime status" | "Project AI token usage, cost analytics, and model-call accounting" | "Object type definitions" | "Connector metadata" | "Connected external accounts" | "Interactive OAuth connection runs" | "Webhook run history" | "Dataset definitions" | "Dataset version history" | "Dataset row previews" | "Sync metadata" | "Sync run history and requests" | "Pipeline metadata" | "Pipeline run history and requests" | "Workflow metadata" | "Workflow run history and requests" | "Workflow intervention tasks" | "Rule definitions" | "Active rule states" | "Projection definitions" | "Projection run history" | "Twin objects and state" | "Object-backed file content" | "Action metadata and requests" | "Action run history" | "Agent catalog" | "Project model catalog" | "Agent conversation threads and messages" | "Agent run state and cancellation" | "File uploads and file references" | "Object relationship links" | "Telemetry history and appends" | "Domain event stream" | "Run log stream" | "Authentication sessions and sign-out" | "User membership administration" | "User invitations" | "Personal access-token management" | "Service accounts and service-account access tokens" | "Scoped shared-access grant lifecycle";
|
|
166
170
|
}[];
|
|
167
171
|
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../src/openapi/tags.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../src/openapi/tags.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqKf,CAAA;AAEV,eAAO,MAAM,oBAAoB;;;GAG9B,CAAA"}
|
package/dist/registerRoutes.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
+
import type { SharedAccessBoundary } from "./auth/shared-access";
|
|
3
4
|
import { type ConnectorConnectionRouteOptions } from "./routes/connector-connection-runs";
|
|
4
5
|
export interface HttpRouteOptions {
|
|
5
6
|
readonly connectorConnections: ConnectorConnectionRouteOptions;
|
|
7
|
+
readonly sharedAccess: SharedAccessBoundary;
|
|
6
8
|
}
|
|
7
9
|
export declare function registerHttpRoutes(app: Elysia, host: SixbHostView, options: HttpRouteOptions): Elysia<"", {
|
|
8
10
|
decorator: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRoutes.d.ts","sourceRoot":"","sources":["../src/registerRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"registerRoutes.d.ts","sourceRoot":"","sources":["../src/registerRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAMhE,OAAO,EACL,KAAK,+BAA+B,EAErC,MAAM,oCAAoC,CAAA;AAuB3C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,oBAAoB,EAAE,+BAA+B,CAAA;IAC9D,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAA;CAC5C;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8B5F"}
|
|
@@ -160,6 +160,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
|
|
|
160
160
|
query: {
|
|
161
161
|
path: string;
|
|
162
162
|
disposition?: "inline" | "attachment" | undefined;
|
|
163
|
+
v?: string | undefined;
|
|
163
164
|
};
|
|
164
165
|
headers: unknown;
|
|
165
166
|
response: {
|
|
@@ -196,6 +197,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
|
|
|
196
197
|
query: {
|
|
197
198
|
path: string;
|
|
198
199
|
disposition?: "inline" | "attachment" | undefined;
|
|
200
|
+
v?: string | undefined;
|
|
199
201
|
};
|
|
200
202
|
headers: unknown;
|
|
201
203
|
response: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwHpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwHpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HtE"}
|
package/dist/routes/actions.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/routes/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/routes/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgDpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-api-gateway.d.ts","sourceRoot":"","sources":["../../src/routes/agent-api-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"agent-api-gateway.d.ts","sourceRoot":"","sources":["../../src/routes/agent-api-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAoB9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgBpC,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,QAuB5E"}
|
package/dist/routes/agents.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
19
19
|
response: {};
|
|
20
20
|
}, {
|
|
21
21
|
api: {
|
|
22
|
-
|
|
22
|
+
agent: {
|
|
23
23
|
get: {
|
|
24
24
|
body: unknown;
|
|
25
25
|
params: {};
|
|
@@ -27,23 +27,15 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
27
27
|
headers: unknown;
|
|
28
28
|
response: {
|
|
29
29
|
200: {
|
|
30
|
-
id: string;
|
|
31
30
|
name: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
keepRecentTokens?: number | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
stopWhen?: {
|
|
43
|
-
maxSteps?: number | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
}[];
|
|
31
|
+
model: {
|
|
32
|
+
provider: string;
|
|
33
|
+
modelId: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
404: {
|
|
37
|
+
error: string;
|
|
38
|
+
};
|
|
47
39
|
422: {
|
|
48
40
|
type: "validation";
|
|
49
41
|
on: string;
|
|
@@ -57,53 +49,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
57
49
|
};
|
|
58
50
|
};
|
|
59
51
|
};
|
|
60
|
-
} & {
|
|
61
|
-
api: {
|
|
62
|
-
agents: {
|
|
63
|
-
":agentId": {
|
|
64
|
-
get: {
|
|
65
|
-
body: unknown;
|
|
66
|
-
params: {
|
|
67
|
-
agentId: string;
|
|
68
|
-
};
|
|
69
|
-
query: unknown;
|
|
70
|
-
headers: unknown;
|
|
71
|
-
response: {
|
|
72
|
-
200: {
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
groupIds: string[];
|
|
76
|
-
description?: string | undefined;
|
|
77
|
-
modelId?: string | undefined;
|
|
78
|
-
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
79
|
-
loop?: {
|
|
80
|
-
context?: {
|
|
81
|
-
windowTokens?: number | undefined;
|
|
82
|
-
reserveTokens?: number | undefined;
|
|
83
|
-
keepRecentTokens?: number | undefined;
|
|
84
|
-
} | undefined;
|
|
85
|
-
stopWhen?: {
|
|
86
|
-
maxSteps?: number | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
} | undefined;
|
|
89
|
-
};
|
|
90
|
-
404: {
|
|
91
|
-
error: string;
|
|
92
|
-
};
|
|
93
|
-
422: {
|
|
94
|
-
type: "validation";
|
|
95
|
-
on: string;
|
|
96
|
-
summary?: string;
|
|
97
|
-
message?: string;
|
|
98
|
-
found?: unknown;
|
|
99
|
-
property?: string;
|
|
100
|
-
expected?: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
52
|
} & {
|
|
108
53
|
api: {
|
|
109
54
|
"agent-threads": {
|
|
@@ -115,7 +60,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
115
60
|
limit?: string | undefined;
|
|
116
61
|
offset?: string | undefined;
|
|
117
62
|
order?: "asc" | "desc" | undefined;
|
|
118
|
-
agentId?: string | undefined;
|
|
119
63
|
};
|
|
120
64
|
headers: unknown;
|
|
121
65
|
response: {
|
|
@@ -126,7 +70,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
126
70
|
status: "active" | "archived";
|
|
127
71
|
projectId: string;
|
|
128
72
|
id: string;
|
|
129
|
-
agentId: string;
|
|
130
73
|
ownerPrincipal: {
|
|
131
74
|
id: string;
|
|
132
75
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -163,7 +106,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
163
106
|
"agent-threads": {
|
|
164
107
|
post: {
|
|
165
108
|
body: {
|
|
166
|
-
agentId: string;
|
|
167
109
|
title?: string | undefined;
|
|
168
110
|
threadId?: string | undefined;
|
|
169
111
|
};
|
|
@@ -176,7 +118,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
176
118
|
status: "active" | "archived";
|
|
177
119
|
projectId: string;
|
|
178
120
|
id: string;
|
|
179
|
-
agentId: string;
|
|
180
121
|
ownerPrincipal: {
|
|
181
122
|
id: string;
|
|
182
123
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -208,7 +149,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
208
149
|
status: "active" | "archived";
|
|
209
150
|
projectId: string;
|
|
210
151
|
id: string;
|
|
211
|
-
agentId: string;
|
|
212
152
|
ownerPrincipal: {
|
|
213
153
|
id: string;
|
|
214
154
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -250,7 +190,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
250
190
|
status: "active" | "archived";
|
|
251
191
|
projectId: string;
|
|
252
192
|
id: string;
|
|
253
|
-
agentId: string;
|
|
254
193
|
ownerPrincipal: {
|
|
255
194
|
id: string;
|
|
256
195
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -312,7 +251,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
312
251
|
runId: string | null;
|
|
313
252
|
parts: ({
|
|
314
253
|
origin: "ambient" | "explicit";
|
|
315
|
-
type: "context";
|
|
316
254
|
context: {
|
|
317
255
|
kind: "object";
|
|
318
256
|
ref: {
|
|
@@ -326,6 +264,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
326
264
|
value: import("../schemas/common").JsonValue;
|
|
327
265
|
label: string;
|
|
328
266
|
};
|
|
267
|
+
type: "context";
|
|
329
268
|
} | {
|
|
330
269
|
type: "text";
|
|
331
270
|
text: string;
|
|
@@ -347,21 +286,25 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
347
286
|
logicalPath?: string | undefined;
|
|
348
287
|
};
|
|
349
288
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
289
|
+
} | {
|
|
290
|
+
type: "provider-state";
|
|
291
|
+
providerId: string;
|
|
292
|
+
data: import("../schemas/common").JsonValue;
|
|
350
293
|
} | {
|
|
351
294
|
type: "tool-call";
|
|
352
295
|
output: import("../schemas/common").JsonValue;
|
|
296
|
+
input: import("../schemas/common").JsonValue;
|
|
353
297
|
toolCallId: string;
|
|
354
298
|
toolName: string;
|
|
355
|
-
input: import("../schemas/common").JsonValue;
|
|
356
299
|
state: "output-available";
|
|
357
300
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
358
301
|
dynamic?: boolean | undefined;
|
|
359
302
|
providerExecuted?: boolean | undefined;
|
|
360
303
|
} | {
|
|
361
304
|
type: "tool-call";
|
|
305
|
+
input: import("../schemas/common").JsonValue;
|
|
362
306
|
toolCallId: string;
|
|
363
307
|
toolName: string;
|
|
364
|
-
input: import("../schemas/common").JsonValue;
|
|
365
308
|
state: "output-error";
|
|
366
309
|
errorText: string;
|
|
367
310
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
@@ -434,6 +377,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
434
377
|
query: {
|
|
435
378
|
path: string;
|
|
436
379
|
disposition?: "inline" | "attachment" | undefined;
|
|
380
|
+
v?: string | undefined;
|
|
437
381
|
};
|
|
438
382
|
headers: unknown;
|
|
439
383
|
response: {
|
|
@@ -475,6 +419,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
475
419
|
query: {
|
|
476
420
|
path: string;
|
|
477
421
|
disposition?: "inline" | "attachment" | undefined;
|
|
422
|
+
v?: string | undefined;
|
|
478
423
|
};
|
|
479
424
|
headers: unknown;
|
|
480
425
|
response: {
|
|
@@ -523,7 +468,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
523
468
|
label: string;
|
|
524
469
|
};
|
|
525
470
|
}[] | undefined;
|
|
526
|
-
|
|
471
|
+
model?: {
|
|
472
|
+
provider: string;
|
|
473
|
+
modelId: string;
|
|
474
|
+
} | undefined;
|
|
527
475
|
attachments?: {
|
|
528
476
|
blobId: string;
|
|
529
477
|
digest: string;
|
|
@@ -532,6 +480,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
532
480
|
mediaType?: string | undefined;
|
|
533
481
|
logicalPath?: string | undefined;
|
|
534
482
|
}[] | undefined;
|
|
483
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
484
|
+
budgetTokens: number;
|
|
485
|
+
} | undefined;
|
|
486
|
+
messageId?: string | undefined;
|
|
535
487
|
};
|
|
536
488
|
params: {
|
|
537
489
|
threadId: string;
|
|
@@ -544,16 +496,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
544
496
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
545
497
|
projectId: string;
|
|
546
498
|
id: string;
|
|
547
|
-
agentId: string;
|
|
548
499
|
attempt: number;
|
|
549
500
|
threadId: string;
|
|
550
501
|
createdAt: string;
|
|
551
502
|
triggerMessageId: string;
|
|
552
503
|
streamId: string;
|
|
553
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
504
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
554
505
|
startedAt?: string | undefined;
|
|
555
506
|
completedAt?: string | undefined;
|
|
507
|
+
model?: {
|
|
508
|
+
provider: string;
|
|
509
|
+
modelId: string;
|
|
510
|
+
} | undefined;
|
|
556
511
|
modelId?: string | undefined;
|
|
512
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
513
|
+
budgetTokens: number;
|
|
514
|
+
} | undefined;
|
|
557
515
|
usage?: {
|
|
558
516
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
559
517
|
inputTokens?: number | undefined;
|
|
@@ -602,6 +560,11 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
602
560
|
409: {
|
|
603
561
|
error: string;
|
|
604
562
|
};
|
|
563
|
+
429: {
|
|
564
|
+
error: string;
|
|
565
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
566
|
+
details?: import("../schemas/common").JsonValue | undefined;
|
|
567
|
+
};
|
|
605
568
|
501: {
|
|
606
569
|
error: string;
|
|
607
570
|
};
|
|
@@ -610,16 +573,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
610
573
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
611
574
|
projectId: string;
|
|
612
575
|
id: string;
|
|
613
|
-
agentId: string;
|
|
614
576
|
attempt: number;
|
|
615
577
|
threadId: string;
|
|
616
578
|
createdAt: string;
|
|
617
579
|
triggerMessageId: string;
|
|
618
580
|
streamId: string;
|
|
619
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
581
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
620
582
|
startedAt?: string | undefined;
|
|
621
583
|
completedAt?: string | undefined;
|
|
584
|
+
model?: {
|
|
585
|
+
provider: string;
|
|
586
|
+
modelId: string;
|
|
587
|
+
} | undefined;
|
|
622
588
|
modelId?: string | undefined;
|
|
589
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
590
|
+
budgetTokens: number;
|
|
591
|
+
} | undefined;
|
|
623
592
|
usage?: {
|
|
624
593
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
625
594
|
inputTokens?: number | undefined;
|
|
@@ -689,16 +658,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
689
658
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
690
659
|
projectId: string;
|
|
691
660
|
id: string;
|
|
692
|
-
agentId: string;
|
|
693
661
|
attempt: number;
|
|
694
662
|
threadId: string;
|
|
695
663
|
createdAt: string;
|
|
696
664
|
triggerMessageId: string;
|
|
697
665
|
streamId: string;
|
|
698
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
666
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
699
667
|
startedAt?: string | undefined;
|
|
700
668
|
completedAt?: string | undefined;
|
|
669
|
+
model?: {
|
|
670
|
+
provider: string;
|
|
671
|
+
modelId: string;
|
|
672
|
+
} | undefined;
|
|
701
673
|
modelId?: string | undefined;
|
|
674
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
675
|
+
budgetTokens: number;
|
|
676
|
+
} | undefined;
|
|
702
677
|
usage?: {
|
|
703
678
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
704
679
|
inputTokens?: number | undefined;
|
|
@@ -752,16 +727,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
752
727
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
753
728
|
projectId: string;
|
|
754
729
|
id: string;
|
|
755
|
-
agentId: string;
|
|
756
730
|
attempt: number;
|
|
757
731
|
threadId: string;
|
|
758
732
|
createdAt: string;
|
|
759
733
|
triggerMessageId: string;
|
|
760
734
|
streamId: string;
|
|
761
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
735
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
762
736
|
startedAt?: string | undefined;
|
|
763
737
|
completedAt?: string | undefined;
|
|
738
|
+
model?: {
|
|
739
|
+
provider: string;
|
|
740
|
+
modelId: string;
|
|
741
|
+
} | undefined;
|
|
764
742
|
modelId?: string | undefined;
|
|
743
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
744
|
+
budgetTokens: number;
|
|
745
|
+
} | undefined;
|
|
765
746
|
usage?: {
|
|
766
747
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
767
748
|
inputTokens?: number | undefined;
|
|
@@ -832,16 +813,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
832
813
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
833
814
|
projectId: string;
|
|
834
815
|
id: string;
|
|
835
|
-
agentId: string;
|
|
836
816
|
attempt: number;
|
|
837
817
|
threadId: string;
|
|
838
818
|
createdAt: string;
|
|
839
819
|
triggerMessageId: string;
|
|
840
820
|
streamId: string;
|
|
841
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
821
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
842
822
|
startedAt?: string | undefined;
|
|
843
823
|
completedAt?: string | undefined;
|
|
824
|
+
model?: {
|
|
825
|
+
provider: string;
|
|
826
|
+
modelId: string;
|
|
827
|
+
} | undefined;
|
|
844
828
|
modelId?: string | undefined;
|
|
829
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
830
|
+
budgetTokens: number;
|
|
831
|
+
} | undefined;
|
|
845
832
|
usage?: {
|
|
846
833
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
847
834
|
inputTokens?: number | undefined;
|
|
@@ -887,6 +874,11 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
887
874
|
409: {
|
|
888
875
|
error: string;
|
|
889
876
|
};
|
|
877
|
+
429: {
|
|
878
|
+
error: string;
|
|
879
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
880
|
+
details?: import("../schemas/common").JsonValue | undefined;
|
|
881
|
+
};
|
|
890
882
|
501: {
|
|
891
883
|
error: string;
|
|
892
884
|
};
|
|
@@ -895,16 +887,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
895
887
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
896
888
|
projectId: string;
|
|
897
889
|
id: string;
|
|
898
|
-
agentId: string;
|
|
899
890
|
attempt: number;
|
|
900
891
|
threadId: string;
|
|
901
892
|
createdAt: string;
|
|
902
893
|
triggerMessageId: string;
|
|
903
894
|
streamId: string;
|
|
904
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
895
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
905
896
|
startedAt?: string | undefined;
|
|
906
897
|
completedAt?: string | undefined;
|
|
898
|
+
model?: {
|
|
899
|
+
provider: string;
|
|
900
|
+
modelId: string;
|
|
901
|
+
} | undefined;
|
|
907
902
|
modelId?: string | undefined;
|
|
903
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
904
|
+
budgetTokens: number;
|
|
905
|
+
} | undefined;
|
|
908
906
|
usage?: {
|
|
909
907
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
910
908
|
inputTokens?: number | undefined;
|
|
@@ -979,16 +977,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
979
977
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
980
978
|
projectId: string;
|
|
981
979
|
id: string;
|
|
982
|
-
agentId: string;
|
|
983
980
|
attempt: number;
|
|
984
981
|
threadId: string;
|
|
985
982
|
createdAt: string;
|
|
986
983
|
triggerMessageId: string;
|
|
987
984
|
streamId: string;
|
|
988
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
985
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
989
986
|
startedAt?: string | undefined;
|
|
990
987
|
completedAt?: string | undefined;
|
|
988
|
+
model?: {
|
|
989
|
+
provider: string;
|
|
990
|
+
modelId: string;
|
|
991
|
+
} | undefined;
|
|
991
992
|
modelId?: string | undefined;
|
|
993
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
994
|
+
budgetTokens: number;
|
|
995
|
+
} | undefined;
|
|
992
996
|
usage?: {
|
|
993
997
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
994
998
|
inputTokens?: number | undefined;
|
|
@@ -1065,16 +1069,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1065
1069
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1066
1070
|
projectId: string;
|
|
1067
1071
|
id: string;
|
|
1068
|
-
agentId: string;
|
|
1069
1072
|
attempt: number;
|
|
1070
1073
|
threadId: string;
|
|
1071
1074
|
createdAt: string;
|
|
1072
1075
|
triggerMessageId: string;
|
|
1073
1076
|
streamId: string;
|
|
1074
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1077
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1075
1078
|
startedAt?: string | undefined;
|
|
1076
1079
|
completedAt?: string | undefined;
|
|
1080
|
+
model?: {
|
|
1081
|
+
provider: string;
|
|
1082
|
+
modelId: string;
|
|
1083
|
+
} | undefined;
|
|
1077
1084
|
modelId?: string | undefined;
|
|
1085
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
1086
|
+
budgetTokens: number;
|
|
1087
|
+
} | undefined;
|
|
1078
1088
|
usage?: {
|
|
1079
1089
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1080
1090
|
inputTokens?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,YAAY,EAAgB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAalG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAYpC,OAAO,EASL,cAAc,EAYf,MAAM,mBAAmB,CAAA;AAkE1B,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAsB5F;AAqJD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAxEe,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsmBvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-accounting.d.ts","sourceRoot":"","sources":["../../src/routes/ai-accounting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"ai-accounting.d.ts","sourceRoot":"","sources":["../../src/routes/ai-accounting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAW9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkMpC,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+VzE"}
|