@sixb/server 0.1.16 → 0.1.18
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 +6 -0
- package/dist/auth/experience.d.ts +5 -1
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/shared-access.d.ts.map +1 -1
- package/dist/files/content.d.ts +0 -1
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.js +603 -456
- package/dist/index.js.map +34 -33
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +56 -28
- 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 +4 -3
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +4 -1
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/file-downloads.d.ts +98 -0
- package/dist/routes/file-downloads.d.ts.map +1 -0
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/models.d.ts +1 -0
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +24 -4
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +4 -4
- package/dist/routes/project.d.ts +2 -0
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/status.d.ts +0 -4
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +6 -0
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +11 -0
- package/dist/routes/ws/logs.d.ts.map +1 -1
- package/dist/routes/ws/subscription-hub.d.ts +71 -0
- package/dist/routes/ws/subscription-hub.d.ts.map +1 -0
- package/dist/schemas/agents.d.ts +255 -123
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +234 -110
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/ai-usage.d.ts +3 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +9 -2
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +8 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +18 -3
- package/dist/schemas/datasets.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +39 -0
- package/dist/schemas/event-payloads.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +1 -1
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/models.d.ts +10 -0
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +32 -0
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +18 -18
- package/dist/schemas/project.d.ts +8 -0
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +0 -26
- package/dist/schemas/status.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +52 -0
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/package.json +6 -5
- package/src/auth/experience.ts +20 -2
- package/src/auth/public-routes.ts +10 -0
- package/src/auth/shared-access.ts +48 -6
- package/src/files/content.ts +43 -88
- package/src/registerRoutes.ts +2 -0
- package/src/routes/agents.ts +29 -9
- package/src/routes/ai-accounting.ts +1 -0
- package/src/routes/auth.ts +84 -19
- package/src/routes/datasets.ts +12 -43
- package/src/routes/file-downloads.ts +48 -0
- package/src/routes/files.ts +3 -1
- package/src/routes/models.ts +3 -0
- package/src/routes/objects.ts +25 -5
- package/src/routes/project.ts +2 -1
- package/src/routes/workflows.ts +5 -0
- package/src/routes/ws/events.ts +98 -133
- package/src/routes/ws/logs.ts +67 -5
- package/src/routes/ws/subscription-hub.ts +394 -0
- package/src/schemas/agents.ts +28 -3
- package/src/schemas/ai-accounting.ts +5 -0
- package/src/schemas/ai-usage.ts +3 -0
- package/src/schemas/auth.ts +5 -0
- package/src/schemas/common.ts +3 -0
- package/src/schemas/datasets.ts +23 -1
- package/src/schemas/event-payloads.ts +3 -1
- package/src/schemas/files.ts +7 -1
- package/src/schemas/models.ts +2 -0
- package/src/schemas/objects.ts +41 -2
- package/src/schemas/project.ts +4 -0
- package/src/schemas/status.ts +0 -6
- package/src/server.ts +7 -1
- package/dist/routes/ws/log-subscription-hub.d.ts +0 -50
- package/dist/routes/ws/log-subscription-hub.d.ts.map +0 -1
- package/src/routes/ws/log-subscription-hub.ts +0 -369
|
@@ -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;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAMhE,OAAO,EACL,KAAK,+BAA+B,EAErC,MAAM,oCAAoC,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;AAwB3C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+B5F"}
|
package/dist/routes/agents.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AgentRunView, type SixbHostView } from "@sixb/core";
|
|
1
|
+
import { type AgentRequestErrorCode, type AgentRunView, type SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
3
|
import { AgentRunSchema } from "../schemas/agents";
|
|
4
4
|
export declare function serializeAgentRun(run: AgentRunView): ReturnType<typeof AgentRunSchema.parse>;
|
|
@@ -142,6 +142,9 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
142
142
|
sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
143
143
|
lastMessageAt?: string | undefined;
|
|
144
144
|
};
|
|
145
|
+
} | {
|
|
146
|
+
readonly error: string;
|
|
147
|
+
readonly code: AgentRequestErrorCode;
|
|
145
148
|
} | {
|
|
146
149
|
error: string;
|
|
147
150
|
};
|
|
@@ -344,6 +347,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
344
347
|
objectTypeId: string;
|
|
345
348
|
primaryId: string;
|
|
346
349
|
};
|
|
350
|
+
label?: string | undefined;
|
|
347
351
|
} | {
|
|
348
352
|
id: string;
|
|
349
353
|
kind: "app-state";
|
|
@@ -397,16 +401,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
397
401
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
398
402
|
dynamic?: boolean | undefined;
|
|
399
403
|
providerExecuted?: boolean | undefined;
|
|
404
|
+
} | {
|
|
405
|
+
type: "continuation";
|
|
400
406
|
})[];
|
|
401
407
|
threadId: string;
|
|
402
408
|
createdAt: string;
|
|
403
409
|
role: "user" | "system" | "assistant";
|
|
404
410
|
seq: number;
|
|
405
411
|
annotations: {
|
|
406
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
412
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
407
413
|
message: string;
|
|
408
414
|
severity: "error" | "warning";
|
|
409
|
-
scope: "output";
|
|
415
|
+
scope: "output" | "run";
|
|
410
416
|
path?: string | undefined;
|
|
411
417
|
}[];
|
|
412
418
|
contentVersion: number;
|
|
@@ -540,7 +546,8 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
540
546
|
messages: {
|
|
541
547
|
post: {
|
|
542
548
|
body: {
|
|
543
|
-
|
|
549
|
+
locale?: string | undefined;
|
|
550
|
+
timeZone?: string | undefined;
|
|
544
551
|
context?: {
|
|
545
552
|
origin: "ambient" | "explicit";
|
|
546
553
|
context: {
|
|
@@ -549,6 +556,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
549
556
|
objectTypeId: string;
|
|
550
557
|
primaryId: string;
|
|
551
558
|
};
|
|
559
|
+
label?: string | undefined;
|
|
552
560
|
} | {
|
|
553
561
|
id: string;
|
|
554
562
|
kind: "app-state";
|
|
@@ -557,6 +565,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
557
565
|
label: string;
|
|
558
566
|
};
|
|
559
567
|
}[] | undefined;
|
|
568
|
+
text?: string | undefined;
|
|
560
569
|
model?: {
|
|
561
570
|
modelId: string;
|
|
562
571
|
provider: string;
|
|
@@ -573,6 +582,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
573
582
|
budgetTokens: number;
|
|
574
583
|
} | undefined;
|
|
575
584
|
messageId?: string | undefined;
|
|
585
|
+
continue?: true | undefined;
|
|
576
586
|
};
|
|
577
587
|
params: {
|
|
578
588
|
threadId: string;
|
|
@@ -611,6 +621,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
611
621
|
cacheWriteInputTokens?: number | undefined;
|
|
612
622
|
textOutputTokens?: number | undefined;
|
|
613
623
|
reasoningOutputTokens?: number | undefined;
|
|
624
|
+
audioDurationMs?: number | undefined;
|
|
614
625
|
} | undefined;
|
|
615
626
|
cost?: {
|
|
616
627
|
amounts: {
|
|
@@ -625,15 +636,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
625
636
|
id: string;
|
|
626
637
|
type: "user" | "serviceAccount";
|
|
627
638
|
} | undefined;
|
|
628
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
639
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
629
640
|
diagnostics?: {
|
|
630
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
641
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
631
642
|
message: string;
|
|
632
643
|
severity: "error" | "warning";
|
|
633
|
-
scope: "output";
|
|
644
|
+
scope: "output" | "run";
|
|
634
645
|
path?: string | undefined;
|
|
635
646
|
}[] | undefined;
|
|
636
647
|
};
|
|
648
|
+
} | {
|
|
649
|
+
readonly error: string;
|
|
650
|
+
readonly code: AgentRequestErrorCode;
|
|
637
651
|
} | {
|
|
638
652
|
error: string;
|
|
639
653
|
};
|
|
@@ -645,6 +659,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
645
659
|
};
|
|
646
660
|
400: {
|
|
647
661
|
error: string;
|
|
662
|
+
code?: string | undefined;
|
|
648
663
|
};
|
|
649
664
|
409: {
|
|
650
665
|
error: string;
|
|
@@ -688,6 +703,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
688
703
|
cacheWriteInputTokens?: number | undefined;
|
|
689
704
|
textOutputTokens?: number | undefined;
|
|
690
705
|
reasoningOutputTokens?: number | undefined;
|
|
706
|
+
audioDurationMs?: number | undefined;
|
|
691
707
|
} | undefined;
|
|
692
708
|
cost?: {
|
|
693
709
|
amounts: {
|
|
@@ -702,12 +718,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
702
718
|
id: string;
|
|
703
719
|
type: "user" | "serviceAccount";
|
|
704
720
|
} | undefined;
|
|
705
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
721
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
706
722
|
diagnostics?: {
|
|
707
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
723
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
708
724
|
message: string;
|
|
709
725
|
severity: "error" | "warning";
|
|
710
|
-
scope: "output";
|
|
726
|
+
scope: "output" | "run";
|
|
711
727
|
path?: string | undefined;
|
|
712
728
|
}[] | undefined;
|
|
713
729
|
};
|
|
@@ -773,6 +789,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
773
789
|
cacheWriteInputTokens?: number | undefined;
|
|
774
790
|
textOutputTokens?: number | undefined;
|
|
775
791
|
reasoningOutputTokens?: number | undefined;
|
|
792
|
+
audioDurationMs?: number | undefined;
|
|
776
793
|
} | undefined;
|
|
777
794
|
cost?: {
|
|
778
795
|
amounts: {
|
|
@@ -787,15 +804,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
787
804
|
id: string;
|
|
788
805
|
type: "user" | "serviceAccount";
|
|
789
806
|
} | undefined;
|
|
790
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
807
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
791
808
|
diagnostics?: {
|
|
792
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
809
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
793
810
|
message: string;
|
|
794
811
|
severity: "error" | "warning";
|
|
795
|
-
scope: "output";
|
|
812
|
+
scope: "output" | "run";
|
|
796
813
|
path?: string | undefined;
|
|
797
814
|
}[] | undefined;
|
|
798
815
|
};
|
|
816
|
+
} | {
|
|
817
|
+
readonly error: string;
|
|
818
|
+
readonly code: AgentRequestErrorCode;
|
|
799
819
|
} | {
|
|
800
820
|
error: string;
|
|
801
821
|
};
|
|
@@ -842,6 +862,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
842
862
|
cacheWriteInputTokens?: number | undefined;
|
|
843
863
|
textOutputTokens?: number | undefined;
|
|
844
864
|
reasoningOutputTokens?: number | undefined;
|
|
865
|
+
audioDurationMs?: number | undefined;
|
|
845
866
|
} | undefined;
|
|
846
867
|
cost?: {
|
|
847
868
|
amounts: {
|
|
@@ -856,12 +877,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
856
877
|
id: string;
|
|
857
878
|
type: "user" | "serviceAccount";
|
|
858
879
|
} | undefined;
|
|
859
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
880
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
860
881
|
diagnostics?: {
|
|
861
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
882
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
862
883
|
message: string;
|
|
863
884
|
severity: "error" | "warning";
|
|
864
|
-
scope: "output";
|
|
885
|
+
scope: "output" | "run";
|
|
865
886
|
path?: string | undefined;
|
|
866
887
|
}[] | undefined;
|
|
867
888
|
};
|
|
@@ -928,6 +949,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
928
949
|
cacheWriteInputTokens?: number | undefined;
|
|
929
950
|
textOutputTokens?: number | undefined;
|
|
930
951
|
reasoningOutputTokens?: number | undefined;
|
|
952
|
+
audioDurationMs?: number | undefined;
|
|
931
953
|
} | undefined;
|
|
932
954
|
cost?: {
|
|
933
955
|
amounts: {
|
|
@@ -942,15 +964,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
942
964
|
id: string;
|
|
943
965
|
type: "user" | "serviceAccount";
|
|
944
966
|
} | undefined;
|
|
945
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
967
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
946
968
|
diagnostics?: {
|
|
947
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
969
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
948
970
|
message: string;
|
|
949
971
|
severity: "error" | "warning";
|
|
950
|
-
scope: "output";
|
|
972
|
+
scope: "output" | "run";
|
|
951
973
|
path?: string | undefined;
|
|
952
974
|
}[] | undefined;
|
|
953
975
|
};
|
|
976
|
+
} | {
|
|
977
|
+
readonly error: string;
|
|
978
|
+
readonly code: AgentRequestErrorCode;
|
|
954
979
|
} | {
|
|
955
980
|
error: string;
|
|
956
981
|
};
|
|
@@ -1002,6 +1027,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1002
1027
|
cacheWriteInputTokens?: number | undefined;
|
|
1003
1028
|
textOutputTokens?: number | undefined;
|
|
1004
1029
|
reasoningOutputTokens?: number | undefined;
|
|
1030
|
+
audioDurationMs?: number | undefined;
|
|
1005
1031
|
} | undefined;
|
|
1006
1032
|
cost?: {
|
|
1007
1033
|
amounts: {
|
|
@@ -1016,12 +1042,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1016
1042
|
id: string;
|
|
1017
1043
|
type: "user" | "serviceAccount";
|
|
1018
1044
|
} | undefined;
|
|
1019
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
1045
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
1020
1046
|
diagnostics?: {
|
|
1021
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1047
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1022
1048
|
message: string;
|
|
1023
1049
|
severity: "error" | "warning";
|
|
1024
|
-
scope: "output";
|
|
1050
|
+
scope: "output" | "run";
|
|
1025
1051
|
path?: string | undefined;
|
|
1026
1052
|
}[] | undefined;
|
|
1027
1053
|
};
|
|
@@ -1092,6 +1118,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1092
1118
|
cacheWriteInputTokens?: number | undefined;
|
|
1093
1119
|
textOutputTokens?: number | undefined;
|
|
1094
1120
|
reasoningOutputTokens?: number | undefined;
|
|
1121
|
+
audioDurationMs?: number | undefined;
|
|
1095
1122
|
} | undefined;
|
|
1096
1123
|
cost?: {
|
|
1097
1124
|
amounts: {
|
|
@@ -1106,12 +1133,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1106
1133
|
id: string;
|
|
1107
1134
|
type: "user" | "serviceAccount";
|
|
1108
1135
|
} | undefined;
|
|
1109
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
1136
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
1110
1137
|
diagnostics?: {
|
|
1111
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1138
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1112
1139
|
message: string;
|
|
1113
1140
|
severity: "error" | "warning";
|
|
1114
|
-
scope: "output";
|
|
1141
|
+
scope: "output" | "run";
|
|
1115
1142
|
path?: string | undefined;
|
|
1116
1143
|
}[] | undefined;
|
|
1117
1144
|
}[];
|
|
@@ -1184,6 +1211,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1184
1211
|
cacheWriteInputTokens?: number | undefined;
|
|
1185
1212
|
textOutputTokens?: number | undefined;
|
|
1186
1213
|
reasoningOutputTokens?: number | undefined;
|
|
1214
|
+
audioDurationMs?: number | undefined;
|
|
1187
1215
|
} | undefined;
|
|
1188
1216
|
cost?: {
|
|
1189
1217
|
amounts: {
|
|
@@ -1198,12 +1226,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1198
1226
|
id: string;
|
|
1199
1227
|
type: "user" | "serviceAccount";
|
|
1200
1228
|
} | undefined;
|
|
1201
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
1229
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
1202
1230
|
diagnostics?: {
|
|
1203
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1231
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1204
1232
|
message: string;
|
|
1205
1233
|
severity: "error" | "warning";
|
|
1206
|
-
scope: "output";
|
|
1234
|
+
scope: "output" | "run";
|
|
1207
1235
|
path?: string | undefined;
|
|
1208
1236
|
}[] | undefined;
|
|
1209
1237
|
};
|
|
@@ -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,EAEL,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EAEjB,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAkBnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAWpC,OAAO,EAUL,cAAc,EAYf,MAAM,mBAAmB,CAAA;AAmE1B,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAsB5F;AA+JD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wDAhDlE,MAAM;uDAAiB,qBAAqB;;+CAgDgB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8oBvF"}
|
|
@@ -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;AAW9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,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;AAoMpC,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+VzE"}
|
package/dist/routes/auth.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type SixbHostView } from "@sixb/core";
|
|
2
2
|
import { type Elysia } from "elysia";
|
|
3
3
|
import { type AuthInvitationDestinationOptions, type AuthInvitationRedirectContext, type AuthInvitationRedirectInput, type ResolveAuthRedirectContext, type ResolveRequestAuthContext } from "../auth/browser-origin";
|
|
4
|
-
import { type
|
|
4
|
+
import { type ProjectAuthExperience } from "../auth/experience";
|
|
5
5
|
export interface AuthRoutesOptions {
|
|
6
6
|
readonly resolveAuthContext: ResolveRequestAuthContext;
|
|
7
7
|
readonly resolveAuthRedirectContext: ResolveAuthRedirectContext;
|
|
8
8
|
readonly getInvitationDestinationOptions: (request: Request) => AuthInvitationDestinationOptions;
|
|
9
9
|
readonly resolveAuthRequestOrigin: (request: Request) => string;
|
|
10
10
|
readonly resolveInvitationRedirectContext: (request: Request, input: AuthInvitationRedirectInput) => AuthInvitationRedirectContext;
|
|
11
|
-
readonly authExperience?:
|
|
11
|
+
readonly authExperience?: ProjectAuthExperience;
|
|
12
12
|
}
|
|
13
13
|
export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, options: AuthRoutesOptions): Elysia<"", {
|
|
14
14
|
decorator: {};
|
|
@@ -211,8 +211,8 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
211
211
|
post: {
|
|
212
212
|
body: {
|
|
213
213
|
csrfToken: string;
|
|
214
|
-
userCode: string;
|
|
215
214
|
decision: "deny" | "approve";
|
|
215
|
+
userCode: string;
|
|
216
216
|
};
|
|
217
217
|
params: {};
|
|
218
218
|
query: unknown;
|
|
@@ -244,6 +244,7 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
244
244
|
response: {
|
|
245
245
|
200: {
|
|
246
246
|
authenticated: false;
|
|
247
|
+
authEnabled: boolean;
|
|
247
248
|
} | {
|
|
248
249
|
session: {
|
|
249
250
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/rout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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAy8C7F"}
|
|
@@ -269,7 +269,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
269
269
|
limit?: string | undefined;
|
|
270
270
|
offset?: string | undefined;
|
|
271
271
|
versionId?: string | undefined;
|
|
272
|
-
columns?: string | undefined;
|
|
272
|
+
columns?: string[] | undefined;
|
|
273
273
|
};
|
|
274
274
|
headers: unknown;
|
|
275
275
|
response: {
|
|
@@ -308,6 +308,9 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
308
308
|
columns: string[];
|
|
309
309
|
rows: Record<string, unknown>[];
|
|
310
310
|
total?: number | undefined;
|
|
311
|
+
redactions?: Record<string, {
|
|
312
|
+
reason: "missing_clearance";
|
|
313
|
+
}> | undefined;
|
|
311
314
|
};
|
|
312
315
|
404: {
|
|
313
316
|
error: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/routes/datasets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,YAAY,EAAE,MAAM,YAAY,CAAA;AAOjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/routes/datasets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,YAAY,EAAE,MAAM,YAAY,CAAA;AAOjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2LpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiLpE"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
|
+
import type { Elysia } from "elysia";
|
|
3
|
+
/**
|
|
4
|
+
* Serves the URLs `blobs.createDownloadUrl()` issues. Public, because their readers — social
|
|
5
|
+
* networks fetching media to publish — cannot hold a session: the token is the credential.
|
|
6
|
+
* Hidden from OpenAPI like webhooks; clients receive these URLs, they never build them.
|
|
7
|
+
*/
|
|
8
|
+
export declare function registerFileDownloadRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
9
|
+
decorator: {};
|
|
10
|
+
store: {};
|
|
11
|
+
derive: {};
|
|
12
|
+
resolve: {};
|
|
13
|
+
}, {
|
|
14
|
+
typebox: {};
|
|
15
|
+
error: {};
|
|
16
|
+
}, {
|
|
17
|
+
schema: {};
|
|
18
|
+
standaloneSchema: {};
|
|
19
|
+
macro: {};
|
|
20
|
+
macroFn: {};
|
|
21
|
+
parser: {};
|
|
22
|
+
response: {};
|
|
23
|
+
}, {
|
|
24
|
+
api: {
|
|
25
|
+
files: {
|
|
26
|
+
downloads: {
|
|
27
|
+
":token": {
|
|
28
|
+
get: {
|
|
29
|
+
body: unknown;
|
|
30
|
+
params: {
|
|
31
|
+
token: string;
|
|
32
|
+
} & {};
|
|
33
|
+
query: unknown;
|
|
34
|
+
headers: unknown;
|
|
35
|
+
response: {
|
|
36
|
+
200: Response | {
|
|
37
|
+
readonly error: string;
|
|
38
|
+
};
|
|
39
|
+
422: {
|
|
40
|
+
type: "validation";
|
|
41
|
+
on: string;
|
|
42
|
+
summary?: string;
|
|
43
|
+
message?: string;
|
|
44
|
+
found?: unknown;
|
|
45
|
+
property?: string;
|
|
46
|
+
expected?: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
} & {
|
|
55
|
+
api: {
|
|
56
|
+
files: {
|
|
57
|
+
downloads: {
|
|
58
|
+
":token": {
|
|
59
|
+
head: {
|
|
60
|
+
body: unknown;
|
|
61
|
+
params: {
|
|
62
|
+
token: string;
|
|
63
|
+
} & {};
|
|
64
|
+
query: unknown;
|
|
65
|
+
headers: unknown;
|
|
66
|
+
response: {
|
|
67
|
+
200: Response | {
|
|
68
|
+
readonly error: string;
|
|
69
|
+
};
|
|
70
|
+
422: {
|
|
71
|
+
type: "validation";
|
|
72
|
+
on: string;
|
|
73
|
+
summary?: string;
|
|
74
|
+
message?: string;
|
|
75
|
+
found?: unknown;
|
|
76
|
+
property?: string;
|
|
77
|
+
expected?: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
derive: {};
|
|
87
|
+
resolve: {};
|
|
88
|
+
schema: {};
|
|
89
|
+
standaloneSchema: {};
|
|
90
|
+
response: {};
|
|
91
|
+
}, {
|
|
92
|
+
derive: {};
|
|
93
|
+
resolve: {};
|
|
94
|
+
schema: {};
|
|
95
|
+
standaloneSchema: {};
|
|
96
|
+
response: {};
|
|
97
|
+
}>;
|
|
98
|
+
//# sourceMappingURL=file-downloads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-downloads.d.ts","sourceRoot":"","sources":["../../src/routes/file-downloads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AASpC;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAalC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAN7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,YAAY,CAAA;AAKnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqBpC,eAAO,MAAM,qCAAqC,QAAiD,CAAA;AAEnG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAibjE"}
|
package/dist/routes/models.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export declare function registerModelRoutes(app: Elysia, host: SixbHostView): El
|
|
|
46
46
|
reasoningLevels: ("none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
|
|
47
47
|
description?: string | undefined;
|
|
48
48
|
via?: string | undefined;
|
|
49
|
+
defaultReasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
49
50
|
}[];
|
|
50
51
|
};
|
|
51
52
|
422: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/routes/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,YAAY,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/routes/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,YAAY,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiBpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuBlE"}
|
package/dist/routes/objects.d.ts
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { type SixbHostView } from "@sixb/core";
|
|
2
|
+
import type { Redactions } from "@sixb/core/storage";
|
|
2
3
|
import type { Elysia } from "elysia";
|
|
3
4
|
declare function serializeObject(row: {
|
|
4
5
|
score?: number;
|
|
5
6
|
primaryId: string;
|
|
6
7
|
objectTypeId: string;
|
|
7
8
|
properties: Record<string, unknown>;
|
|
9
|
+
redactions?: Redactions;
|
|
8
10
|
createdAt: Date;
|
|
9
11
|
updatedAt: Date;
|
|
10
12
|
}): {
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
redactions?: Readonly<Record<string, {
|
|
16
|
+
readonly reason: import("@sixb/core").RedactionReason;
|
|
17
|
+
}>> | undefined;
|
|
11
18
|
primaryId: string;
|
|
12
19
|
objectTypeId: string;
|
|
13
20
|
properties: Record<string, unknown>;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
21
|
score?: number | undefined;
|
|
17
22
|
};
|
|
18
23
|
type SerializedObject = ReturnType<typeof serializeObject>;
|
|
@@ -106,6 +111,9 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
|
|
|
106
111
|
primaryId: string;
|
|
107
112
|
createdAt: string;
|
|
108
113
|
updatedAt: string;
|
|
114
|
+
redactions?: Record<string, {
|
|
115
|
+
reason: "missing_clearance";
|
|
116
|
+
}> | undefined;
|
|
109
117
|
score?: number | undefined;
|
|
110
118
|
}[];
|
|
111
119
|
hasMore: boolean;
|
|
@@ -189,11 +197,14 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
|
|
|
189
197
|
} | {
|
|
190
198
|
nextPageToken?: string | undefined;
|
|
191
199
|
objects: {
|
|
200
|
+
createdAt: string;
|
|
201
|
+
updatedAt: string;
|
|
202
|
+
redactions?: Readonly<Record<string, {
|
|
203
|
+
readonly reason: import("@sixb/core").RedactionReason;
|
|
204
|
+
}>> | undefined;
|
|
192
205
|
primaryId: string;
|
|
193
206
|
objectTypeId: string;
|
|
194
207
|
properties: Record<string, unknown>;
|
|
195
|
-
createdAt: string;
|
|
196
|
-
updatedAt: string;
|
|
197
208
|
score?: number | undefined;
|
|
198
209
|
}[];
|
|
199
210
|
links: {
|
|
@@ -311,6 +322,7 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
|
|
|
311
322
|
error: string;
|
|
312
323
|
issues: readonly import("@sixb/core").ObjectQueryValidationIssue[] | readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
|
|
313
324
|
} | {
|
|
325
|
+
total: number;
|
|
314
326
|
facets: readonly import("@sixb/core/storage").ObjectFacetResult[];
|
|
315
327
|
plan: {
|
|
316
328
|
mode: string;
|
|
@@ -345,6 +357,7 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
|
|
|
345
357
|
query: {
|
|
346
358
|
path: string;
|
|
347
359
|
audience?: "atlas" | "app" | undefined;
|
|
360
|
+
shareGrant?: string | undefined;
|
|
348
361
|
disposition?: "inline" | "attachment" | undefined;
|
|
349
362
|
v?: string | undefined;
|
|
350
363
|
};
|
|
@@ -386,6 +399,7 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
|
|
|
386
399
|
query: {
|
|
387
400
|
path: string;
|
|
388
401
|
audience?: "atlas" | "app" | undefined;
|
|
402
|
+
shareGrant?: string | undefined;
|
|
389
403
|
disposition?: "inline" | "attachment" | undefined;
|
|
390
404
|
v?: string | undefined;
|
|
391
405
|
};
|
|
@@ -431,6 +445,9 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
|
|
|
431
445
|
primaryId: string;
|
|
432
446
|
createdAt: string;
|
|
433
447
|
updatedAt: string;
|
|
448
|
+
redactions?: Record<string, {
|
|
449
|
+
reason: "missing_clearance";
|
|
450
|
+
}> | undefined;
|
|
434
451
|
score?: number | undefined;
|
|
435
452
|
};
|
|
436
453
|
404: {
|
|
@@ -473,6 +490,9 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
|
|
|
473
490
|
primaryId: string;
|
|
474
491
|
createdAt: string;
|
|
475
492
|
updatedAt: string;
|
|
493
|
+
redactions?: Record<string, {
|
|
494
|
+
reason: "missing_clearance";
|
|
495
|
+
}> | undefined;
|
|
476
496
|
score?: number | undefined;
|
|
477
497
|
};
|
|
478
498
|
404: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/routes/objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/routes/objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAKV,UAAU,EACX,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA4CpC,iBAAS,eAAe,CAAC,GAAG,EAAE;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,EAAE,IAAI,CAAA;CAChB;;;;;;;;;;EAUA;AA4BD,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAC1D,KAAK,mBAAmB,GAAG,wBAAwB,GAAG,wBAAwB,EAAE,GAAG,IAAI,CAAA;AACvF,KAAK,wBAAwB,GAAG,gBAAgB,GAAG;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;IAC3C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACzC,CAAA;AAuND,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;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