@sixb/server 0.1.2 → 0.1.3
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/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1891 -1337
- package/dist/index.js.map +17 -14
- package/dist/openapi/tags.d.ts +6 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +6 -6
- package/dist/routes/actions.d.ts +3 -3
- package/dist/routes/agents.d.ts +149 -77
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts +31 -0
- package/dist/routes/ai-accounting.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +110 -53
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +56 -56
- package/dist/routes/connector-connections.d.ts +14 -14
- package/dist/routes/datasets.d.ts +12 -12
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/files.d.ts +8 -8
- package/dist/routes/links.d.ts +9 -9
- package/dist/routes/logs.d.ts +2 -2
- package/dist/routes/objects.d.ts +3 -3
- package/dist/routes/pipelines.d.ts +10 -10
- package/dist/routes/projections.d.ts +62 -50
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +6 -6
- package/dist/routes/telemetry.d.ts +7 -7
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +142 -57
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/actions.d.ts +16 -16
- package/dist/schemas/agents.d.ts +459 -142
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +2393 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +96 -96
- package/dist/schemas/connectors.d.ts +24 -24
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +18 -18
- package/dist/schemas/pipelines.d.ts +20 -20
- package/dist/schemas/projections.d.ts +400 -288
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +10 -10
- package/dist/schemas/webhook-runs.d.ts +12 -12
- package/dist/schemas/workflows.d.ts +833 -162
- 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/package.json +5 -5
- package/src/auth/experience.ts +190 -0
- package/src/auth/public-routes.ts +7 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +4 -0
- package/src/registerRoutes.ts +2 -0
- package/src/routes/agents.ts +1 -0
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +188 -32
- package/src/routes/projections.ts +18 -4
- package/src/routes/workflows.ts +16 -0
- package/src/schemas/agents.ts +4 -9
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/projections.ts +6 -0
- package/src/schemas/workflows.ts +8 -3
- package/src/server.ts +10 -0
package/dist/openapi/tags.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ export declare const OPENAPI_TAGS: {
|
|
|
7
7
|
readonly name: "Status";
|
|
8
8
|
readonly description: "Runtime status";
|
|
9
9
|
};
|
|
10
|
+
readonly aiAccounting: {
|
|
11
|
+
readonly name: "AI Accounting";
|
|
12
|
+
readonly description: "Project AI token usage, cost analytics, and model-call accounting";
|
|
13
|
+
};
|
|
10
14
|
readonly ontology: {
|
|
11
15
|
readonly name: "Ontology";
|
|
12
16
|
readonly description: "Object type definitions";
|
|
@@ -153,7 +157,7 @@ export declare const OPENAPI_TAGS: {
|
|
|
153
157
|
};
|
|
154
158
|
};
|
|
155
159
|
export declare const OPENAPI_TAG_METADATA: {
|
|
156
|
-
name: "Project" | "Status" | "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" | "Agent Threads" | "Agent Runs" | "Files" | "Links" | "Telemetry" | "Events" | "Logs" | "Auth Sessions" | "Auth Members" | "Auth Invitations" | "Auth Access Tokens" | "Auth Service Accounts";
|
|
157
|
-
description: "Current project metadata" | "Runtime status" | "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" | "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";
|
|
160
|
+
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" | "Agent Threads" | "Agent Runs" | "Files" | "Links" | "Telemetry" | "Events" | "Logs" | "Auth Sessions" | "Auth Members" | "Auth Invitations" | "Auth Access Tokens" | "Auth Service Accounts";
|
|
161
|
+
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" | "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";
|
|
158
162
|
}[];
|
|
159
163
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Jf,CAAA;AAEV,eAAO,MAAM,oBAAoB;;;GAG9B,CAAA"}
|
|
@@ -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;AAMpC,OAAO,EACL,KAAK,+BAA+B,EAErC,MAAM,oCAAoC,CAAA;AAoB3C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,oBAAoB,EAAE,+BAA+B,CAAA;CAC/D;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2B5F"}
|
|
@@ -36,9 +36,9 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
|
|
|
36
36
|
response: {
|
|
37
37
|
200: {
|
|
38
38
|
runs: {
|
|
39
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
39
40
|
projectId: string;
|
|
40
41
|
id: string;
|
|
41
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
42
42
|
actionId: string;
|
|
43
43
|
subject: {
|
|
44
44
|
kind: "none";
|
|
@@ -88,9 +88,9 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
|
|
|
88
88
|
headers: unknown;
|
|
89
89
|
response: {
|
|
90
90
|
200: {
|
|
91
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
91
92
|
projectId: string;
|
|
92
93
|
id: string;
|
|
93
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
94
94
|
params: Record<string, unknown>;
|
|
95
95
|
actionId: string;
|
|
96
96
|
subject: {
|
|
@@ -107,26 +107,26 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
|
|
|
107
107
|
completedAt: string;
|
|
108
108
|
result: import("../schemas/common").JsonValue;
|
|
109
109
|
} | {
|
|
110
|
-
status: "failed";
|
|
111
110
|
error: import("@sixb/core").ActionRunFailure<"writeback">;
|
|
111
|
+
status: "failed";
|
|
112
112
|
completedAt: string;
|
|
113
113
|
} | undefined;
|
|
114
114
|
effects?: {
|
|
115
115
|
status: "succeeded";
|
|
116
116
|
completedAt: string;
|
|
117
117
|
} | {
|
|
118
|
-
status: "failed";
|
|
119
118
|
error: import("@sixb/core").ActionRunFailure<"effects">;
|
|
119
|
+
status: "failed";
|
|
120
120
|
completedAt: string;
|
|
121
121
|
} | undefined;
|
|
122
122
|
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
123
123
|
startedAt?: string | undefined;
|
|
124
124
|
finishedAt?: string | undefined;
|
|
125
125
|
};
|
|
126
|
-
|
|
126
|
+
404: {
|
|
127
127
|
error: string;
|
|
128
128
|
};
|
|
129
|
-
|
|
129
|
+
400: {
|
|
130
130
|
error: string;
|
|
131
131
|
};
|
|
132
132
|
501: {
|
package/dist/routes/actions.d.ts
CHANGED
|
@@ -139,13 +139,13 @@ export declare function registerActionRoutes(app: Elysia, _host: SixbHostView):
|
|
|
139
139
|
error: string;
|
|
140
140
|
code?: import("@sixb/core").SixbErrorCode;
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
404: {
|
|
143
143
|
error: string;
|
|
144
144
|
};
|
|
145
|
-
|
|
145
|
+
403: {
|
|
146
146
|
error: string;
|
|
147
147
|
};
|
|
148
|
-
|
|
148
|
+
400: {
|
|
149
149
|
error: string;
|
|
150
150
|
};
|
|
151
151
|
202: {
|
package/dist/routes/agents.d.ts
CHANGED
|
@@ -113,9 +113,9 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
113
113
|
hasMore: boolean;
|
|
114
114
|
total: number;
|
|
115
115
|
threads: {
|
|
116
|
+
status: "active" | "archived";
|
|
116
117
|
projectId: string;
|
|
117
118
|
id: string;
|
|
118
|
-
status: "active" | "archived";
|
|
119
119
|
agentId: string;
|
|
120
120
|
ownerPrincipal: {
|
|
121
121
|
id: string;
|
|
@@ -163,9 +163,9 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
163
163
|
response: {
|
|
164
164
|
200: {
|
|
165
165
|
thread: {
|
|
166
|
+
status: "active" | "archived";
|
|
166
167
|
projectId: string;
|
|
167
168
|
id: string;
|
|
168
|
-
status: "active" | "archived";
|
|
169
169
|
agentId: string;
|
|
170
170
|
ownerPrincipal: {
|
|
171
171
|
id: string;
|
|
@@ -181,10 +181,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
181
181
|
} | {
|
|
182
182
|
error: string;
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
404: {
|
|
185
185
|
error: string;
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
400: {
|
|
188
188
|
error: string;
|
|
189
189
|
};
|
|
190
190
|
409: {
|
|
@@ -195,9 +195,9 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
195
195
|
};
|
|
196
196
|
201: {
|
|
197
197
|
thread: {
|
|
198
|
+
status: "active" | "archived";
|
|
198
199
|
projectId: string;
|
|
199
200
|
id: string;
|
|
200
|
-
status: "active" | "archived";
|
|
201
201
|
agentId: string;
|
|
202
202
|
ownerPrincipal: {
|
|
203
203
|
id: string;
|
|
@@ -237,9 +237,9 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
237
237
|
headers: unknown;
|
|
238
238
|
response: {
|
|
239
239
|
200: {
|
|
240
|
+
status: "active" | "archived";
|
|
240
241
|
projectId: string;
|
|
241
242
|
id: string;
|
|
242
|
-
status: "active" | "archived";
|
|
243
243
|
agentId: string;
|
|
244
244
|
ownerPrincipal: {
|
|
245
245
|
id: string;
|
|
@@ -252,10 +252,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
252
252
|
title?: string | undefined;
|
|
253
253
|
lastMessageAt?: string | undefined;
|
|
254
254
|
};
|
|
255
|
-
|
|
255
|
+
404: {
|
|
256
256
|
error: string;
|
|
257
257
|
};
|
|
258
|
-
|
|
258
|
+
400: {
|
|
259
259
|
error: string;
|
|
260
260
|
};
|
|
261
261
|
501: {
|
|
@@ -378,10 +378,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
378
378
|
metadata?: import("../schemas/common").JsonValue | undefined;
|
|
379
379
|
}[];
|
|
380
380
|
};
|
|
381
|
-
|
|
381
|
+
404: {
|
|
382
382
|
error: string;
|
|
383
383
|
};
|
|
384
|
-
|
|
384
|
+
400: {
|
|
385
385
|
error: string;
|
|
386
386
|
};
|
|
387
387
|
501: {
|
|
@@ -526,24 +526,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
526
526
|
response: {
|
|
527
527
|
200: {
|
|
528
528
|
run: {
|
|
529
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
529
530
|
projectId: string;
|
|
530
531
|
id: string;
|
|
531
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
532
532
|
agentId: string;
|
|
533
|
+
attempt: number;
|
|
533
534
|
threadId: string;
|
|
534
535
|
createdAt: string;
|
|
535
536
|
triggerMessageId: string;
|
|
536
|
-
attempt: number;
|
|
537
537
|
streamId: string;
|
|
538
538
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
539
539
|
startedAt?: string | undefined;
|
|
540
540
|
completedAt?: string | undefined;
|
|
541
541
|
modelId?: string | undefined;
|
|
542
|
-
requestedBy?: {
|
|
543
|
-
id: string;
|
|
544
|
-
type: "user" | "serviceAccount";
|
|
545
|
-
} | undefined;
|
|
546
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
547
542
|
usage?: {
|
|
548
543
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
549
544
|
inputTokens?: number | undefined;
|
|
@@ -555,6 +550,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
555
550
|
textOutputTokens?: number | undefined;
|
|
556
551
|
reasoningOutputTokens?: number | undefined;
|
|
557
552
|
} | undefined;
|
|
553
|
+
cost?: {
|
|
554
|
+
amounts: {
|
|
555
|
+
currency: string;
|
|
556
|
+
amountNanos: string;
|
|
557
|
+
}[];
|
|
558
|
+
ratedCallCount: number;
|
|
559
|
+
unpriceableCallCount: number;
|
|
560
|
+
unvaluedCallCount: number;
|
|
561
|
+
} | undefined;
|
|
562
|
+
requestedBy?: {
|
|
563
|
+
id: string;
|
|
564
|
+
type: "user" | "serviceAccount";
|
|
565
|
+
} | undefined;
|
|
566
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
558
567
|
diagnostics?: {
|
|
559
568
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
560
569
|
message: string;
|
|
@@ -566,13 +575,13 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
566
575
|
} | {
|
|
567
576
|
error: string;
|
|
568
577
|
};
|
|
569
|
-
|
|
578
|
+
404: {
|
|
570
579
|
error: string;
|
|
571
580
|
};
|
|
572
|
-
|
|
581
|
+
403: {
|
|
573
582
|
error: string;
|
|
574
583
|
};
|
|
575
|
-
|
|
584
|
+
400: {
|
|
576
585
|
error: string;
|
|
577
586
|
};
|
|
578
587
|
409: {
|
|
@@ -583,24 +592,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
583
592
|
};
|
|
584
593
|
202: {
|
|
585
594
|
run: {
|
|
595
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
586
596
|
projectId: string;
|
|
587
597
|
id: string;
|
|
588
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
589
598
|
agentId: string;
|
|
599
|
+
attempt: number;
|
|
590
600
|
threadId: string;
|
|
591
601
|
createdAt: string;
|
|
592
602
|
triggerMessageId: string;
|
|
593
|
-
attempt: number;
|
|
594
603
|
streamId: string;
|
|
595
604
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
596
605
|
startedAt?: string | undefined;
|
|
597
606
|
completedAt?: string | undefined;
|
|
598
607
|
modelId?: string | undefined;
|
|
599
|
-
requestedBy?: {
|
|
600
|
-
id: string;
|
|
601
|
-
type: "user" | "serviceAccount";
|
|
602
|
-
} | undefined;
|
|
603
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
604
608
|
usage?: {
|
|
605
609
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
606
610
|
inputTokens?: number | undefined;
|
|
@@ -612,6 +616,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
612
616
|
textOutputTokens?: number | undefined;
|
|
613
617
|
reasoningOutputTokens?: number | undefined;
|
|
614
618
|
} | undefined;
|
|
619
|
+
cost?: {
|
|
620
|
+
amounts: {
|
|
621
|
+
currency: string;
|
|
622
|
+
amountNanos: string;
|
|
623
|
+
}[];
|
|
624
|
+
ratedCallCount: number;
|
|
625
|
+
unpriceableCallCount: number;
|
|
626
|
+
unvaluedCallCount: number;
|
|
627
|
+
} | undefined;
|
|
628
|
+
requestedBy?: {
|
|
629
|
+
id: string;
|
|
630
|
+
type: "user" | "serviceAccount";
|
|
631
|
+
} | undefined;
|
|
632
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
615
633
|
diagnostics?: {
|
|
616
634
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
617
635
|
message: string;
|
|
@@ -653,24 +671,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
653
671
|
response: {
|
|
654
672
|
200: {
|
|
655
673
|
run: {
|
|
674
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
656
675
|
projectId: string;
|
|
657
676
|
id: string;
|
|
658
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
659
677
|
agentId: string;
|
|
678
|
+
attempt: number;
|
|
660
679
|
threadId: string;
|
|
661
680
|
createdAt: string;
|
|
662
681
|
triggerMessageId: string;
|
|
663
|
-
attempt: number;
|
|
664
682
|
streamId: string;
|
|
665
683
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
666
684
|
startedAt?: string | undefined;
|
|
667
685
|
completedAt?: string | undefined;
|
|
668
686
|
modelId?: string | undefined;
|
|
669
|
-
requestedBy?: {
|
|
670
|
-
id: string;
|
|
671
|
-
type: "user" | "serviceAccount";
|
|
672
|
-
} | undefined;
|
|
673
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
674
687
|
usage?: {
|
|
675
688
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
676
689
|
inputTokens?: number | undefined;
|
|
@@ -682,6 +695,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
682
695
|
textOutputTokens?: number | undefined;
|
|
683
696
|
reasoningOutputTokens?: number | undefined;
|
|
684
697
|
} | undefined;
|
|
698
|
+
cost?: {
|
|
699
|
+
amounts: {
|
|
700
|
+
currency: string;
|
|
701
|
+
amountNanos: string;
|
|
702
|
+
}[];
|
|
703
|
+
ratedCallCount: number;
|
|
704
|
+
unpriceableCallCount: number;
|
|
705
|
+
unvaluedCallCount: number;
|
|
706
|
+
} | undefined;
|
|
707
|
+
requestedBy?: {
|
|
708
|
+
id: string;
|
|
709
|
+
type: "user" | "serviceAccount";
|
|
710
|
+
} | undefined;
|
|
711
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
685
712
|
diagnostics?: {
|
|
686
713
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
687
714
|
message: string;
|
|
@@ -693,10 +720,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
693
720
|
} | {
|
|
694
721
|
error: string;
|
|
695
722
|
};
|
|
696
|
-
|
|
723
|
+
404: {
|
|
697
724
|
error: string;
|
|
698
725
|
};
|
|
699
|
-
|
|
726
|
+
400: {
|
|
700
727
|
error: string;
|
|
701
728
|
};
|
|
702
729
|
409: {
|
|
@@ -707,24 +734,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
707
734
|
};
|
|
708
735
|
202: {
|
|
709
736
|
run: {
|
|
737
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
710
738
|
projectId: string;
|
|
711
739
|
id: string;
|
|
712
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
713
740
|
agentId: string;
|
|
741
|
+
attempt: number;
|
|
714
742
|
threadId: string;
|
|
715
743
|
createdAt: string;
|
|
716
744
|
triggerMessageId: string;
|
|
717
|
-
attempt: number;
|
|
718
745
|
streamId: string;
|
|
719
746
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
720
747
|
startedAt?: string | undefined;
|
|
721
748
|
completedAt?: string | undefined;
|
|
722
749
|
modelId?: string | undefined;
|
|
723
|
-
requestedBy?: {
|
|
724
|
-
id: string;
|
|
725
|
-
type: "user" | "serviceAccount";
|
|
726
|
-
} | undefined;
|
|
727
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
728
750
|
usage?: {
|
|
729
751
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
730
752
|
inputTokens?: number | undefined;
|
|
@@ -736,6 +758,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
736
758
|
textOutputTokens?: number | undefined;
|
|
737
759
|
reasoningOutputTokens?: number | undefined;
|
|
738
760
|
} | undefined;
|
|
761
|
+
cost?: {
|
|
762
|
+
amounts: {
|
|
763
|
+
currency: string;
|
|
764
|
+
amountNanos: string;
|
|
765
|
+
}[];
|
|
766
|
+
ratedCallCount: number;
|
|
767
|
+
unpriceableCallCount: number;
|
|
768
|
+
unvaluedCallCount: number;
|
|
769
|
+
} | undefined;
|
|
770
|
+
requestedBy?: {
|
|
771
|
+
id: string;
|
|
772
|
+
type: "user" | "serviceAccount";
|
|
773
|
+
} | undefined;
|
|
774
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
739
775
|
diagnostics?: {
|
|
740
776
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
741
777
|
message: string;
|
|
@@ -778,24 +814,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
778
814
|
response: {
|
|
779
815
|
200: {
|
|
780
816
|
run: {
|
|
817
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
781
818
|
projectId: string;
|
|
782
819
|
id: string;
|
|
783
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
784
820
|
agentId: string;
|
|
821
|
+
attempt: number;
|
|
785
822
|
threadId: string;
|
|
786
823
|
createdAt: string;
|
|
787
824
|
triggerMessageId: string;
|
|
788
|
-
attempt: number;
|
|
789
825
|
streamId: string;
|
|
790
826
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
791
827
|
startedAt?: string | undefined;
|
|
792
828
|
completedAt?: string | undefined;
|
|
793
829
|
modelId?: string | undefined;
|
|
794
|
-
requestedBy?: {
|
|
795
|
-
id: string;
|
|
796
|
-
type: "user" | "serviceAccount";
|
|
797
|
-
} | undefined;
|
|
798
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
799
830
|
usage?: {
|
|
800
831
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
801
832
|
inputTokens?: number | undefined;
|
|
@@ -807,6 +838,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
807
838
|
textOutputTokens?: number | undefined;
|
|
808
839
|
reasoningOutputTokens?: number | undefined;
|
|
809
840
|
} | undefined;
|
|
841
|
+
cost?: {
|
|
842
|
+
amounts: {
|
|
843
|
+
currency: string;
|
|
844
|
+
amountNanos: string;
|
|
845
|
+
}[];
|
|
846
|
+
ratedCallCount: number;
|
|
847
|
+
unpriceableCallCount: number;
|
|
848
|
+
unvaluedCallCount: number;
|
|
849
|
+
} | undefined;
|
|
850
|
+
requestedBy?: {
|
|
851
|
+
id: string;
|
|
852
|
+
type: "user" | "serviceAccount";
|
|
853
|
+
} | undefined;
|
|
854
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
810
855
|
diagnostics?: {
|
|
811
856
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
812
857
|
message: string;
|
|
@@ -818,10 +863,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
818
863
|
} | {
|
|
819
864
|
error: string;
|
|
820
865
|
};
|
|
821
|
-
|
|
866
|
+
404: {
|
|
822
867
|
error: string;
|
|
823
868
|
};
|
|
824
|
-
|
|
869
|
+
400: {
|
|
825
870
|
error: string;
|
|
826
871
|
};
|
|
827
872
|
409: {
|
|
@@ -832,24 +877,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
832
877
|
};
|
|
833
878
|
202: {
|
|
834
879
|
run: {
|
|
880
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
835
881
|
projectId: string;
|
|
836
882
|
id: string;
|
|
837
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
838
883
|
agentId: string;
|
|
884
|
+
attempt: number;
|
|
839
885
|
threadId: string;
|
|
840
886
|
createdAt: string;
|
|
841
887
|
triggerMessageId: string;
|
|
842
|
-
attempt: number;
|
|
843
888
|
streamId: string;
|
|
844
889
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
845
890
|
startedAt?: string | undefined;
|
|
846
891
|
completedAt?: string | undefined;
|
|
847
892
|
modelId?: string | undefined;
|
|
848
|
-
requestedBy?: {
|
|
849
|
-
id: string;
|
|
850
|
-
type: "user" | "serviceAccount";
|
|
851
|
-
} | undefined;
|
|
852
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
853
893
|
usage?: {
|
|
854
894
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
855
895
|
inputTokens?: number | undefined;
|
|
@@ -861,6 +901,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
861
901
|
textOutputTokens?: number | undefined;
|
|
862
902
|
reasoningOutputTokens?: number | undefined;
|
|
863
903
|
} | undefined;
|
|
904
|
+
cost?: {
|
|
905
|
+
amounts: {
|
|
906
|
+
currency: string;
|
|
907
|
+
amountNanos: string;
|
|
908
|
+
}[];
|
|
909
|
+
ratedCallCount: number;
|
|
910
|
+
unpriceableCallCount: number;
|
|
911
|
+
unvaluedCallCount: number;
|
|
912
|
+
} | undefined;
|
|
913
|
+
requestedBy?: {
|
|
914
|
+
id: string;
|
|
915
|
+
type: "user" | "serviceAccount";
|
|
916
|
+
} | undefined;
|
|
917
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
864
918
|
diagnostics?: {
|
|
865
919
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
866
920
|
message: string;
|
|
@@ -907,24 +961,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
907
961
|
response: {
|
|
908
962
|
200: {
|
|
909
963
|
runs: {
|
|
964
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
910
965
|
projectId: string;
|
|
911
966
|
id: string;
|
|
912
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
913
967
|
agentId: string;
|
|
968
|
+
attempt: number;
|
|
914
969
|
threadId: string;
|
|
915
970
|
createdAt: string;
|
|
916
971
|
triggerMessageId: string;
|
|
917
|
-
attempt: number;
|
|
918
972
|
streamId: string;
|
|
919
973
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
920
974
|
startedAt?: string | undefined;
|
|
921
975
|
completedAt?: string | undefined;
|
|
922
976
|
modelId?: string | undefined;
|
|
923
|
-
requestedBy?: {
|
|
924
|
-
id: string;
|
|
925
|
-
type: "user" | "serviceAccount";
|
|
926
|
-
} | undefined;
|
|
927
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
928
977
|
usage?: {
|
|
929
978
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
930
979
|
inputTokens?: number | undefined;
|
|
@@ -936,6 +985,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
936
985
|
textOutputTokens?: number | undefined;
|
|
937
986
|
reasoningOutputTokens?: number | undefined;
|
|
938
987
|
} | undefined;
|
|
988
|
+
cost?: {
|
|
989
|
+
amounts: {
|
|
990
|
+
currency: string;
|
|
991
|
+
amountNanos: string;
|
|
992
|
+
}[];
|
|
993
|
+
ratedCallCount: number;
|
|
994
|
+
unpriceableCallCount: number;
|
|
995
|
+
unvaluedCallCount: number;
|
|
996
|
+
} | undefined;
|
|
997
|
+
requestedBy?: {
|
|
998
|
+
id: string;
|
|
999
|
+
type: "user" | "serviceAccount";
|
|
1000
|
+
} | undefined;
|
|
1001
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
939
1002
|
diagnostics?: {
|
|
940
1003
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
941
1004
|
message: string;
|
|
@@ -947,10 +1010,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
947
1010
|
hasMore: boolean;
|
|
948
1011
|
total: number;
|
|
949
1012
|
};
|
|
950
|
-
|
|
1013
|
+
404: {
|
|
951
1014
|
error: string;
|
|
952
1015
|
};
|
|
953
|
-
|
|
1016
|
+
400: {
|
|
954
1017
|
error: string;
|
|
955
1018
|
};
|
|
956
1019
|
501: {
|
|
@@ -984,24 +1047,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
984
1047
|
headers: unknown;
|
|
985
1048
|
response: {
|
|
986
1049
|
200: {
|
|
1050
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
987
1051
|
projectId: string;
|
|
988
1052
|
id: string;
|
|
989
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
990
1053
|
agentId: string;
|
|
1054
|
+
attempt: number;
|
|
991
1055
|
threadId: string;
|
|
992
1056
|
createdAt: string;
|
|
993
1057
|
triggerMessageId: string;
|
|
994
|
-
attempt: number;
|
|
995
1058
|
streamId: string;
|
|
996
1059
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
997
1060
|
startedAt?: string | undefined;
|
|
998
1061
|
completedAt?: string | undefined;
|
|
999
1062
|
modelId?: string | undefined;
|
|
1000
|
-
requestedBy?: {
|
|
1001
|
-
id: string;
|
|
1002
|
-
type: "user" | "serviceAccount";
|
|
1003
|
-
} | undefined;
|
|
1004
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
1005
1063
|
usage?: {
|
|
1006
1064
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1007
1065
|
inputTokens?: number | undefined;
|
|
@@ -1013,6 +1071,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1013
1071
|
textOutputTokens?: number | undefined;
|
|
1014
1072
|
reasoningOutputTokens?: number | undefined;
|
|
1015
1073
|
} | undefined;
|
|
1074
|
+
cost?: {
|
|
1075
|
+
amounts: {
|
|
1076
|
+
currency: string;
|
|
1077
|
+
amountNanos: string;
|
|
1078
|
+
}[];
|
|
1079
|
+
ratedCallCount: number;
|
|
1080
|
+
unpriceableCallCount: number;
|
|
1081
|
+
unvaluedCallCount: number;
|
|
1082
|
+
} | undefined;
|
|
1083
|
+
requestedBy?: {
|
|
1084
|
+
id: string;
|
|
1085
|
+
type: "user" | "serviceAccount";
|
|
1086
|
+
} | undefined;
|
|
1087
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
1016
1088
|
diagnostics?: {
|
|
1017
1089
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1018
1090
|
message: string;
|
|
@@ -1021,10 +1093,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1021
1093
|
path?: string | undefined;
|
|
1022
1094
|
}[] | undefined;
|
|
1023
1095
|
};
|
|
1024
|
-
|
|
1096
|
+
404: {
|
|
1025
1097
|
error: string;
|
|
1026
1098
|
};
|
|
1027
|
-
|
|
1099
|
+
400: {
|
|
1028
1100
|
error: string;
|
|
1029
1101
|
};
|
|
1030
1102
|
501: {
|