@sixb/server 0.1.2 → 0.1.4
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/README.md +1 -1
- 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 +2122 -1391
- package/dist/index.js.map +24 -19
- package/dist/openapi/tags.d.ts +10 -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 +164 -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 +6 -57
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +3 -3
- package/dist/routes/models.d.ts +60 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/objects.d.ts +51 -3
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +10 -10
- package/dist/routes/projections.d.ts +150 -136
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +38 -38
- 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 +586 -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 +35 -25
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/links.d.ts +0 -41
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/models.d.ts +50 -0
- package/dist/schemas/models.d.ts.map +1 -0
- package/dist/schemas/objects.d.ts +22 -0
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +20 -20
- package/dist/schemas/projections.d.ts +947 -806
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +33 -33
- 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 +8 -0
- package/src/registerRoutes.ts +4 -0
- package/src/routes/agents.ts +22 -3
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +188 -32
- package/src/routes/links.ts +2 -53
- package/src/routes/models.ts +31 -0
- package/src/routes/objects.ts +103 -0
- package/src/routes/projections.ts +18 -4
- package/src/routes/workflows.ts +16 -0
- package/src/schemas/agents.ts +19 -9
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/connectors.ts +13 -3
- package/src/schemas/links.ts +0 -17
- package/src/schemas/models.ts +15 -0
- package/src/schemas/objects.ts +104 -0
- package/src/schemas/projections.ts +12 -3
- package/src/schemas/workflows.ts +8 -3
- package/src/server.ts +10 -0
package/dist/routes/agents.d.ts
CHANGED
|
@@ -34,6 +34,11 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
34
34
|
modelId?: string | undefined;
|
|
35
35
|
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
36
36
|
loop?: {
|
|
37
|
+
context?: {
|
|
38
|
+
windowTokens?: number | undefined;
|
|
39
|
+
reserveTokens?: number | undefined;
|
|
40
|
+
keepRecentTokens?: number | undefined;
|
|
41
|
+
} | undefined;
|
|
37
42
|
stopWhen?: {
|
|
38
43
|
maxSteps?: number | undefined;
|
|
39
44
|
} | undefined;
|
|
@@ -72,6 +77,11 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
72
77
|
modelId?: string | undefined;
|
|
73
78
|
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
74
79
|
loop?: {
|
|
80
|
+
context?: {
|
|
81
|
+
windowTokens?: number | undefined;
|
|
82
|
+
reserveTokens?: number | undefined;
|
|
83
|
+
keepRecentTokens?: number | undefined;
|
|
84
|
+
} | undefined;
|
|
75
85
|
stopWhen?: {
|
|
76
86
|
maxSteps?: number | undefined;
|
|
77
87
|
} | undefined;
|
|
@@ -113,9 +123,9 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
113
123
|
hasMore: boolean;
|
|
114
124
|
total: number;
|
|
115
125
|
threads: {
|
|
126
|
+
status: "active" | "archived";
|
|
116
127
|
projectId: string;
|
|
117
128
|
id: string;
|
|
118
|
-
status: "active" | "archived";
|
|
119
129
|
agentId: string;
|
|
120
130
|
ownerPrincipal: {
|
|
121
131
|
id: string;
|
|
@@ -163,9 +173,9 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
163
173
|
response: {
|
|
164
174
|
200: {
|
|
165
175
|
thread: {
|
|
176
|
+
status: "active" | "archived";
|
|
166
177
|
projectId: string;
|
|
167
178
|
id: string;
|
|
168
|
-
status: "active" | "archived";
|
|
169
179
|
agentId: string;
|
|
170
180
|
ownerPrincipal: {
|
|
171
181
|
id: string;
|
|
@@ -181,10 +191,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
181
191
|
} | {
|
|
182
192
|
error: string;
|
|
183
193
|
};
|
|
184
|
-
|
|
194
|
+
404: {
|
|
185
195
|
error: string;
|
|
186
196
|
};
|
|
187
|
-
|
|
197
|
+
400: {
|
|
188
198
|
error: string;
|
|
189
199
|
};
|
|
190
200
|
409: {
|
|
@@ -195,9 +205,9 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
195
205
|
};
|
|
196
206
|
201: {
|
|
197
207
|
thread: {
|
|
208
|
+
status: "active" | "archived";
|
|
198
209
|
projectId: string;
|
|
199
210
|
id: string;
|
|
200
|
-
status: "active" | "archived";
|
|
201
211
|
agentId: string;
|
|
202
212
|
ownerPrincipal: {
|
|
203
213
|
id: string;
|
|
@@ -237,9 +247,9 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
237
247
|
headers: unknown;
|
|
238
248
|
response: {
|
|
239
249
|
200: {
|
|
250
|
+
status: "active" | "archived";
|
|
240
251
|
projectId: string;
|
|
241
252
|
id: string;
|
|
242
|
-
status: "active" | "archived";
|
|
243
253
|
agentId: string;
|
|
244
254
|
ownerPrincipal: {
|
|
245
255
|
id: string;
|
|
@@ -252,10 +262,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
252
262
|
title?: string | undefined;
|
|
253
263
|
lastMessageAt?: string | undefined;
|
|
254
264
|
};
|
|
255
|
-
|
|
265
|
+
404: {
|
|
256
266
|
error: string;
|
|
257
267
|
};
|
|
258
|
-
|
|
268
|
+
400: {
|
|
259
269
|
error: string;
|
|
260
270
|
};
|
|
261
271
|
501: {
|
|
@@ -375,13 +385,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
375
385
|
id: string;
|
|
376
386
|
type: "user" | "serviceAccount" | "system";
|
|
377
387
|
} | undefined;
|
|
388
|
+
compaction?: {
|
|
389
|
+
summary: string;
|
|
390
|
+
createdAt: string;
|
|
391
|
+
checkpointId: string;
|
|
392
|
+
} | undefined;
|
|
378
393
|
metadata?: import("../schemas/common").JsonValue | undefined;
|
|
379
394
|
}[];
|
|
380
395
|
};
|
|
381
|
-
|
|
396
|
+
404: {
|
|
382
397
|
error: string;
|
|
383
398
|
};
|
|
384
|
-
|
|
399
|
+
400: {
|
|
385
400
|
error: string;
|
|
386
401
|
};
|
|
387
402
|
501: {
|
|
@@ -526,24 +541,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
526
541
|
response: {
|
|
527
542
|
200: {
|
|
528
543
|
run: {
|
|
544
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
529
545
|
projectId: string;
|
|
530
546
|
id: string;
|
|
531
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
532
547
|
agentId: string;
|
|
548
|
+
attempt: number;
|
|
533
549
|
threadId: string;
|
|
534
550
|
createdAt: string;
|
|
535
551
|
triggerMessageId: string;
|
|
536
|
-
attempt: number;
|
|
537
552
|
streamId: string;
|
|
538
553
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
539
554
|
startedAt?: string | undefined;
|
|
540
555
|
completedAt?: string | undefined;
|
|
541
556
|
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
557
|
usage?: {
|
|
548
558
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
549
559
|
inputTokens?: number | undefined;
|
|
@@ -555,6 +565,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
555
565
|
textOutputTokens?: number | undefined;
|
|
556
566
|
reasoningOutputTokens?: number | undefined;
|
|
557
567
|
} | undefined;
|
|
568
|
+
cost?: {
|
|
569
|
+
amounts: {
|
|
570
|
+
currency: string;
|
|
571
|
+
amountNanos: string;
|
|
572
|
+
}[];
|
|
573
|
+
ratedCallCount: number;
|
|
574
|
+
unpriceableCallCount: number;
|
|
575
|
+
unvaluedCallCount: number;
|
|
576
|
+
} | undefined;
|
|
577
|
+
requestedBy?: {
|
|
578
|
+
id: string;
|
|
579
|
+
type: "user" | "serviceAccount";
|
|
580
|
+
} | undefined;
|
|
581
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
558
582
|
diagnostics?: {
|
|
559
583
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
560
584
|
message: string;
|
|
@@ -566,13 +590,13 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
566
590
|
} | {
|
|
567
591
|
error: string;
|
|
568
592
|
};
|
|
569
|
-
|
|
593
|
+
404: {
|
|
570
594
|
error: string;
|
|
571
595
|
};
|
|
572
|
-
|
|
596
|
+
403: {
|
|
573
597
|
error: string;
|
|
574
598
|
};
|
|
575
|
-
|
|
599
|
+
400: {
|
|
576
600
|
error: string;
|
|
577
601
|
};
|
|
578
602
|
409: {
|
|
@@ -583,24 +607,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
583
607
|
};
|
|
584
608
|
202: {
|
|
585
609
|
run: {
|
|
610
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
586
611
|
projectId: string;
|
|
587
612
|
id: string;
|
|
588
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
589
613
|
agentId: string;
|
|
614
|
+
attempt: number;
|
|
590
615
|
threadId: string;
|
|
591
616
|
createdAt: string;
|
|
592
617
|
triggerMessageId: string;
|
|
593
|
-
attempt: number;
|
|
594
618
|
streamId: string;
|
|
595
619
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
596
620
|
startedAt?: string | undefined;
|
|
597
621
|
completedAt?: string | undefined;
|
|
598
622
|
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
623
|
usage?: {
|
|
605
624
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
606
625
|
inputTokens?: number | undefined;
|
|
@@ -612,6 +631,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
612
631
|
textOutputTokens?: number | undefined;
|
|
613
632
|
reasoningOutputTokens?: number | undefined;
|
|
614
633
|
} | undefined;
|
|
634
|
+
cost?: {
|
|
635
|
+
amounts: {
|
|
636
|
+
currency: string;
|
|
637
|
+
amountNanos: string;
|
|
638
|
+
}[];
|
|
639
|
+
ratedCallCount: number;
|
|
640
|
+
unpriceableCallCount: number;
|
|
641
|
+
unvaluedCallCount: number;
|
|
642
|
+
} | undefined;
|
|
643
|
+
requestedBy?: {
|
|
644
|
+
id: string;
|
|
645
|
+
type: "user" | "serviceAccount";
|
|
646
|
+
} | undefined;
|
|
647
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
615
648
|
diagnostics?: {
|
|
616
649
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
617
650
|
message: string;
|
|
@@ -653,24 +686,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
653
686
|
response: {
|
|
654
687
|
200: {
|
|
655
688
|
run: {
|
|
689
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
656
690
|
projectId: string;
|
|
657
691
|
id: string;
|
|
658
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
659
692
|
agentId: string;
|
|
693
|
+
attempt: number;
|
|
660
694
|
threadId: string;
|
|
661
695
|
createdAt: string;
|
|
662
696
|
triggerMessageId: string;
|
|
663
|
-
attempt: number;
|
|
664
697
|
streamId: string;
|
|
665
698
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
666
699
|
startedAt?: string | undefined;
|
|
667
700
|
completedAt?: string | undefined;
|
|
668
701
|
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
702
|
usage?: {
|
|
675
703
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
676
704
|
inputTokens?: number | undefined;
|
|
@@ -682,6 +710,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
682
710
|
textOutputTokens?: number | undefined;
|
|
683
711
|
reasoningOutputTokens?: number | undefined;
|
|
684
712
|
} | undefined;
|
|
713
|
+
cost?: {
|
|
714
|
+
amounts: {
|
|
715
|
+
currency: string;
|
|
716
|
+
amountNanos: string;
|
|
717
|
+
}[];
|
|
718
|
+
ratedCallCount: number;
|
|
719
|
+
unpriceableCallCount: number;
|
|
720
|
+
unvaluedCallCount: number;
|
|
721
|
+
} | undefined;
|
|
722
|
+
requestedBy?: {
|
|
723
|
+
id: string;
|
|
724
|
+
type: "user" | "serviceAccount";
|
|
725
|
+
} | undefined;
|
|
726
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
685
727
|
diagnostics?: {
|
|
686
728
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
687
729
|
message: string;
|
|
@@ -693,10 +735,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
693
735
|
} | {
|
|
694
736
|
error: string;
|
|
695
737
|
};
|
|
696
|
-
|
|
738
|
+
404: {
|
|
697
739
|
error: string;
|
|
698
740
|
};
|
|
699
|
-
|
|
741
|
+
400: {
|
|
700
742
|
error: string;
|
|
701
743
|
};
|
|
702
744
|
409: {
|
|
@@ -707,24 +749,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
707
749
|
};
|
|
708
750
|
202: {
|
|
709
751
|
run: {
|
|
752
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
710
753
|
projectId: string;
|
|
711
754
|
id: string;
|
|
712
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
713
755
|
agentId: string;
|
|
756
|
+
attempt: number;
|
|
714
757
|
threadId: string;
|
|
715
758
|
createdAt: string;
|
|
716
759
|
triggerMessageId: string;
|
|
717
|
-
attempt: number;
|
|
718
760
|
streamId: string;
|
|
719
761
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
720
762
|
startedAt?: string | undefined;
|
|
721
763
|
completedAt?: string | undefined;
|
|
722
764
|
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
765
|
usage?: {
|
|
729
766
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
730
767
|
inputTokens?: number | undefined;
|
|
@@ -736,6 +773,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
736
773
|
textOutputTokens?: number | undefined;
|
|
737
774
|
reasoningOutputTokens?: number | undefined;
|
|
738
775
|
} | undefined;
|
|
776
|
+
cost?: {
|
|
777
|
+
amounts: {
|
|
778
|
+
currency: string;
|
|
779
|
+
amountNanos: string;
|
|
780
|
+
}[];
|
|
781
|
+
ratedCallCount: number;
|
|
782
|
+
unpriceableCallCount: number;
|
|
783
|
+
unvaluedCallCount: number;
|
|
784
|
+
} | undefined;
|
|
785
|
+
requestedBy?: {
|
|
786
|
+
id: string;
|
|
787
|
+
type: "user" | "serviceAccount";
|
|
788
|
+
} | undefined;
|
|
789
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
739
790
|
diagnostics?: {
|
|
740
791
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
741
792
|
message: string;
|
|
@@ -778,24 +829,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
778
829
|
response: {
|
|
779
830
|
200: {
|
|
780
831
|
run: {
|
|
832
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
781
833
|
projectId: string;
|
|
782
834
|
id: string;
|
|
783
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
784
835
|
agentId: string;
|
|
836
|
+
attempt: number;
|
|
785
837
|
threadId: string;
|
|
786
838
|
createdAt: string;
|
|
787
839
|
triggerMessageId: string;
|
|
788
|
-
attempt: number;
|
|
789
840
|
streamId: string;
|
|
790
841
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
791
842
|
startedAt?: string | undefined;
|
|
792
843
|
completedAt?: string | undefined;
|
|
793
844
|
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
845
|
usage?: {
|
|
800
846
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
801
847
|
inputTokens?: number | undefined;
|
|
@@ -807,6 +853,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
807
853
|
textOutputTokens?: number | undefined;
|
|
808
854
|
reasoningOutputTokens?: number | undefined;
|
|
809
855
|
} | undefined;
|
|
856
|
+
cost?: {
|
|
857
|
+
amounts: {
|
|
858
|
+
currency: string;
|
|
859
|
+
amountNanos: string;
|
|
860
|
+
}[];
|
|
861
|
+
ratedCallCount: number;
|
|
862
|
+
unpriceableCallCount: number;
|
|
863
|
+
unvaluedCallCount: number;
|
|
864
|
+
} | undefined;
|
|
865
|
+
requestedBy?: {
|
|
866
|
+
id: string;
|
|
867
|
+
type: "user" | "serviceAccount";
|
|
868
|
+
} | undefined;
|
|
869
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
810
870
|
diagnostics?: {
|
|
811
871
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
812
872
|
message: string;
|
|
@@ -818,10 +878,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
818
878
|
} | {
|
|
819
879
|
error: string;
|
|
820
880
|
};
|
|
821
|
-
|
|
881
|
+
404: {
|
|
822
882
|
error: string;
|
|
823
883
|
};
|
|
824
|
-
|
|
884
|
+
400: {
|
|
825
885
|
error: string;
|
|
826
886
|
};
|
|
827
887
|
409: {
|
|
@@ -832,24 +892,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
832
892
|
};
|
|
833
893
|
202: {
|
|
834
894
|
run: {
|
|
895
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
835
896
|
projectId: string;
|
|
836
897
|
id: string;
|
|
837
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
838
898
|
agentId: string;
|
|
899
|
+
attempt: number;
|
|
839
900
|
threadId: string;
|
|
840
901
|
createdAt: string;
|
|
841
902
|
triggerMessageId: string;
|
|
842
|
-
attempt: number;
|
|
843
903
|
streamId: string;
|
|
844
904
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
845
905
|
startedAt?: string | undefined;
|
|
846
906
|
completedAt?: string | undefined;
|
|
847
907
|
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
908
|
usage?: {
|
|
854
909
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
855
910
|
inputTokens?: number | undefined;
|
|
@@ -861,6 +916,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
861
916
|
textOutputTokens?: number | undefined;
|
|
862
917
|
reasoningOutputTokens?: number | undefined;
|
|
863
918
|
} | undefined;
|
|
919
|
+
cost?: {
|
|
920
|
+
amounts: {
|
|
921
|
+
currency: string;
|
|
922
|
+
amountNanos: string;
|
|
923
|
+
}[];
|
|
924
|
+
ratedCallCount: number;
|
|
925
|
+
unpriceableCallCount: number;
|
|
926
|
+
unvaluedCallCount: number;
|
|
927
|
+
} | undefined;
|
|
928
|
+
requestedBy?: {
|
|
929
|
+
id: string;
|
|
930
|
+
type: "user" | "serviceAccount";
|
|
931
|
+
} | undefined;
|
|
932
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
864
933
|
diagnostics?: {
|
|
865
934
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
866
935
|
message: string;
|
|
@@ -907,24 +976,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
907
976
|
response: {
|
|
908
977
|
200: {
|
|
909
978
|
runs: {
|
|
979
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
910
980
|
projectId: string;
|
|
911
981
|
id: string;
|
|
912
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
913
982
|
agentId: string;
|
|
983
|
+
attempt: number;
|
|
914
984
|
threadId: string;
|
|
915
985
|
createdAt: string;
|
|
916
986
|
triggerMessageId: string;
|
|
917
|
-
attempt: number;
|
|
918
987
|
streamId: string;
|
|
919
988
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
920
989
|
startedAt?: string | undefined;
|
|
921
990
|
completedAt?: string | undefined;
|
|
922
991
|
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
992
|
usage?: {
|
|
929
993
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
930
994
|
inputTokens?: number | undefined;
|
|
@@ -936,6 +1000,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
936
1000
|
textOutputTokens?: number | undefined;
|
|
937
1001
|
reasoningOutputTokens?: number | undefined;
|
|
938
1002
|
} | undefined;
|
|
1003
|
+
cost?: {
|
|
1004
|
+
amounts: {
|
|
1005
|
+
currency: string;
|
|
1006
|
+
amountNanos: string;
|
|
1007
|
+
}[];
|
|
1008
|
+
ratedCallCount: number;
|
|
1009
|
+
unpriceableCallCount: number;
|
|
1010
|
+
unvaluedCallCount: number;
|
|
1011
|
+
} | undefined;
|
|
1012
|
+
requestedBy?: {
|
|
1013
|
+
id: string;
|
|
1014
|
+
type: "user" | "serviceAccount";
|
|
1015
|
+
} | undefined;
|
|
1016
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
939
1017
|
diagnostics?: {
|
|
940
1018
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
941
1019
|
message: string;
|
|
@@ -947,10 +1025,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
947
1025
|
hasMore: boolean;
|
|
948
1026
|
total: number;
|
|
949
1027
|
};
|
|
950
|
-
|
|
1028
|
+
404: {
|
|
951
1029
|
error: string;
|
|
952
1030
|
};
|
|
953
|
-
|
|
1031
|
+
400: {
|
|
954
1032
|
error: string;
|
|
955
1033
|
};
|
|
956
1034
|
501: {
|
|
@@ -984,24 +1062,19 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
984
1062
|
headers: unknown;
|
|
985
1063
|
response: {
|
|
986
1064
|
200: {
|
|
1065
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
987
1066
|
projectId: string;
|
|
988
1067
|
id: string;
|
|
989
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
990
1068
|
agentId: string;
|
|
1069
|
+
attempt: number;
|
|
991
1070
|
threadId: string;
|
|
992
1071
|
createdAt: string;
|
|
993
1072
|
triggerMessageId: string;
|
|
994
|
-
attempt: number;
|
|
995
1073
|
streamId: string;
|
|
996
1074
|
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
997
1075
|
startedAt?: string | undefined;
|
|
998
1076
|
completedAt?: string | undefined;
|
|
999
1077
|
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
1078
|
usage?: {
|
|
1006
1079
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1007
1080
|
inputTokens?: number | undefined;
|
|
@@ -1013,6 +1086,20 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1013
1086
|
textOutputTokens?: number | undefined;
|
|
1014
1087
|
reasoningOutputTokens?: number | undefined;
|
|
1015
1088
|
} | undefined;
|
|
1089
|
+
cost?: {
|
|
1090
|
+
amounts: {
|
|
1091
|
+
currency: string;
|
|
1092
|
+
amountNanos: string;
|
|
1093
|
+
}[];
|
|
1094
|
+
ratedCallCount: number;
|
|
1095
|
+
unpriceableCallCount: number;
|
|
1096
|
+
unvaluedCallCount: number;
|
|
1097
|
+
} | undefined;
|
|
1098
|
+
requestedBy?: {
|
|
1099
|
+
id: string;
|
|
1100
|
+
type: "user" | "serviceAccount";
|
|
1101
|
+
} | undefined;
|
|
1102
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
1016
1103
|
diagnostics?: {
|
|
1017
1104
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1018
1105
|
message: string;
|
|
@@ -1021,10 +1108,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1021
1108
|
path?: string | undefined;
|
|
1022
1109
|
}[] | undefined;
|
|
1023
1110
|
};
|
|
1024
|
-
|
|
1111
|
+
404: {
|
|
1025
1112
|
error: string;
|
|
1026
1113
|
};
|
|
1027
|
-
|
|
1114
|
+
400: {
|
|
1028
1115
|
error: string;
|
|
1029
1116
|
};
|
|
1030
1117
|
501: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAEjB,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAEjB,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAYnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAYpC,OAAO,EAUL,cAAc,EAYf,MAAM,mBAAmB,CAAA;AA0E1B,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAqB5F;AAgJD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA3GvD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAmCgE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAnC5E,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0pBjB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
|
+
import type { Elysia } from "elysia";
|
|
3
|
+
export declare function registerAiAccountingRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
|
+
decorator: {};
|
|
5
|
+
store: {};
|
|
6
|
+
derive: {};
|
|
7
|
+
resolve: {};
|
|
8
|
+
}, {
|
|
9
|
+
typebox: {};
|
|
10
|
+
error: {};
|
|
11
|
+
}, {
|
|
12
|
+
schema: {};
|
|
13
|
+
standaloneSchema: {};
|
|
14
|
+
macro: {};
|
|
15
|
+
macroFn: {};
|
|
16
|
+
parser: {};
|
|
17
|
+
response: {};
|
|
18
|
+
}, {}, {
|
|
19
|
+
derive: {};
|
|
20
|
+
resolve: {};
|
|
21
|
+
schema: {};
|
|
22
|
+
standaloneSchema: {};
|
|
23
|
+
response: {};
|
|
24
|
+
}, {
|
|
25
|
+
derive: {};
|
|
26
|
+
resolve: {};
|
|
27
|
+
schema: {};
|
|
28
|
+
standaloneSchema: {};
|
|
29
|
+
response: {};
|
|
30
|
+
}>;
|
|
31
|
+
//# sourceMappingURL=ai-accounting.d.ts.map
|
|
@@ -0,0 +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;AAM9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA+EpC,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFzE"}
|