@sixb/server 0.1.20 → 0.1.21
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/artifacts/frame.d.ts +13 -0
- package/dist/artifacts/frame.d.ts.map +1 -0
- package/dist/auth/browser-origin.d.ts +5 -0
- package/dist/auth/browser-origin.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/files/content.d.ts +2 -3
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.js +3427 -2402
- package/dist/index.js.map +23 -17
- package/dist/openapi/tags.d.ts +10 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +3 -0
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/activity.d.ts +35 -0
- package/dist/routes/activity.d.ts.map +1 -0
- package/dist/routes/agents.d.ts +18 -27
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/artifact-frames.d.ts +98 -0
- package/dist/routes/artifact-frames.d.ts.map +1 -0
- package/dist/routes/artifacts.d.ts +852 -0
- package/dist/routes/artifacts.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +1 -1
- package/dist/routes/connector-connection-runs.d.ts +59 -59
- package/dist/routes/connector-connections.d.ts +2 -2
- package/dist/routes/datasets.d.ts +7 -7
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/pipelines.d.ts +31 -31
- package/dist/routes/projections.d.ts +10 -10
- package/dist/routes/share-grants.d.ts +5 -5
- package/dist/routes/syncs.d.ts +38 -38
- package/dist/routes/workflows.d.ts +30 -30
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/subscription-hub.d.ts +8 -3
- package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
- package/dist/schemas/activity.d.ts +1278 -0
- package/dist/schemas/activity.d.ts.map +1 -0
- package/dist/schemas/agents.d.ts +96 -144
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +24 -24
- package/dist/schemas/ai-limits.d.ts +26 -26
- package/dist/schemas/artifacts.d.ts +1305 -0
- package/dist/schemas/artifacts.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +6 -6
- package/dist/schemas/connectors.d.ts +30 -30
- package/dist/schemas/datasets.d.ts +10 -10
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/pipelines.d.ts +35 -35
- package/dist/schemas/projections.d.ts +40 -40
- package/dist/schemas/share-grants.d.ts +16 -16
- package/dist/schemas/syncs.d.ts +36 -36
- package/dist/schemas/workflows.d.ts +84 -84
- package/dist/server.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/artifacts/frame.ts +46 -0
- package/src/auth/browser-origin.ts +12 -2
- package/src/auth/public-routes.ts +10 -0
- package/src/files/content.ts +9 -13
- package/src/openapi/tags.ts +8 -0
- package/src/registerRoutes.ts +9 -0
- package/src/routes/activity.ts +327 -0
- package/src/routes/agents.ts +1 -1
- package/src/routes/artifact-frames.ts +138 -0
- package/src/routes/artifacts.ts +442 -0
- package/src/routes/file-downloads.ts +1 -3
- package/src/routes/ws/events.ts +3 -2
- package/src/routes/ws/subscription-hub.ts +53 -20
- package/src/schemas/activity.ts +285 -0
- package/src/schemas/agents.ts +1 -2
- package/src/schemas/artifacts.ts +158 -0
- package/src/server.ts +25 -9
package/dist/openapi/tags.d.ts
CHANGED
|
@@ -123,6 +123,10 @@ export declare const OPENAPI_TAGS: {
|
|
|
123
123
|
readonly name: "Files";
|
|
124
124
|
readonly description: "File uploads and file references";
|
|
125
125
|
};
|
|
126
|
+
readonly artifacts: {
|
|
127
|
+
readonly name: "Artifacts";
|
|
128
|
+
readonly description: "Versioned documents, sheets, slides, pages, and files";
|
|
129
|
+
};
|
|
126
130
|
readonly links: {
|
|
127
131
|
readonly name: "Links";
|
|
128
132
|
readonly description: "Object relationship links";
|
|
@@ -139,6 +143,10 @@ export declare const OPENAPI_TAGS: {
|
|
|
139
143
|
readonly name: "Logs";
|
|
140
144
|
readonly description: "Run log stream";
|
|
141
145
|
};
|
|
146
|
+
readonly activity: {
|
|
147
|
+
readonly name: "Activity";
|
|
148
|
+
readonly description: "Visits and page views in the project's app and its shared links";
|
|
149
|
+
};
|
|
142
150
|
readonly authSessions: {
|
|
143
151
|
readonly name: "Auth Sessions";
|
|
144
152
|
readonly description: "Authentication sessions and sign-out";
|
|
@@ -165,7 +173,7 @@ export declare const OPENAPI_TAGS: {
|
|
|
165
173
|
};
|
|
166
174
|
};
|
|
167
175
|
export declare const OPENAPI_TAG_METADATA: {
|
|
168
|
-
name: "Project" | "Status" | "AI Accounting" | "Ontology" | "Connectors" | "Connector Connections" | "Connector Connection Runs" | "Webhooks" | "Datasets" | "Dataset Versions" | "Dataset Rows" | "Syncs" | "Sync Runs" | "Pipelines" | "Pipeline Runs" | "Workflows" | "Workflow Runs" | "Workflow Interventions" | "Rules" | "Rule States" | "Projections" | "Projection Runs" | "Objects" | "Object Files" | "Actions" | "Action Runs" | "Agents" | "Models" | "Agent Threads" | "Agent Runs" | "Files" | "Links" | "Telemetry" | "Events" | "Logs" | "Auth Sessions" | "Auth Members" | "Auth Invitations" | "Auth Access Tokens" | "Auth Service Accounts" | "Shared Access";
|
|
169
|
-
description: "Current project metadata" | "Runtime status" | "Project AI token usage, cost analytics, and model-call accounting" | "Object type definitions" | "Connector metadata" | "Connected external accounts" | "Interactive OAuth connection runs" | "Webhook run history" | "Dataset definitions" | "Dataset version history" | "Dataset row previews" | "Sync metadata" | "Sync run history and requests" | "Pipeline metadata" | "Pipeline run history and requests" | "Workflow metadata" | "Workflow run history and requests" | "Workflow intervention tasks" | "Rule definitions" | "Active rule states" | "Projection definitions" | "Projection run history" | "Twin objects and state" | "Object-backed file content" | "Action metadata and requests" | "Action run history" | "Agent catalog" | "Project model catalog" | "Agent conversation threads and messages" | "Agent run state and cancellation" | "File uploads and file references" | "Object relationship links" | "Telemetry history and appends" | "Domain event stream" | "Run log stream" | "Authentication sessions and sign-out" | "User membership administration" | "User invitations" | "Personal access-token management" | "Service accounts and service-account access tokens" | "Scoped shared-access grant lifecycle";
|
|
176
|
+
name: "Project" | "Status" | "AI Accounting" | "Ontology" | "Connectors" | "Connector Connections" | "Connector Connection Runs" | "Webhooks" | "Datasets" | "Dataset Versions" | "Dataset Rows" | "Syncs" | "Sync Runs" | "Pipelines" | "Pipeline Runs" | "Workflows" | "Workflow Runs" | "Workflow Interventions" | "Rules" | "Rule States" | "Projections" | "Projection Runs" | "Objects" | "Object Files" | "Actions" | "Action Runs" | "Agents" | "Models" | "Agent Threads" | "Agent Runs" | "Files" | "Artifacts" | "Links" | "Telemetry" | "Events" | "Logs" | "Activity" | "Auth Sessions" | "Auth Members" | "Auth Invitations" | "Auth Access Tokens" | "Auth Service Accounts" | "Shared Access";
|
|
177
|
+
description: "Current project metadata" | "Runtime status" | "Project AI token usage, cost analytics, and model-call accounting" | "Object type definitions" | "Connector metadata" | "Connected external accounts" | "Interactive OAuth connection runs" | "Webhook run history" | "Dataset definitions" | "Dataset version history" | "Dataset row previews" | "Sync metadata" | "Sync run history and requests" | "Pipeline metadata" | "Pipeline run history and requests" | "Workflow metadata" | "Workflow run history and requests" | "Workflow intervention tasks" | "Rule definitions" | "Active rule states" | "Projection definitions" | "Projection run history" | "Twin objects and state" | "Object-backed file content" | "Action metadata and requests" | "Action run history" | "Agent catalog" | "Project model catalog" | "Agent conversation threads and messages" | "Agent run state and cancellation" | "File uploads and file references" | "Versioned documents, sheets, slides, pages, and files" | "Object relationship links" | "Telemetry history and appends" | "Domain event stream" | "Run log stream" | "Visits and page views in the project's app and its shared links" | "Authentication sessions and sign-out" | "User membership administration" | "User invitations" | "Personal access-token management" | "Service accounts and service-account access tokens" | "Scoped shared-access grant lifecycle";
|
|
170
178
|
}[];
|
|
171
179
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Kf,CAAA;AAEV,eAAO,MAAM,oBAAoB;;;GAG9B,CAAA"}
|
package/dist/registerRoutes.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
+
import type { ResolvedSixbApiBrowserPolicy } from "./auth/browser-origin";
|
|
3
4
|
import type { SharedAccessBoundary } from "./auth/shared-access";
|
|
4
5
|
import { type ConnectorConnectionRouteOptions } from "./routes/connector-connection-runs";
|
|
5
6
|
export interface HttpRouteOptions {
|
|
6
7
|
readonly connectorConnections: ConnectorConnectionRouteOptions;
|
|
7
8
|
readonly sharedAccess: SharedAccessBoundary;
|
|
9
|
+
/** Where frames are served from and which app origins may show them. */
|
|
10
|
+
readonly browserPolicy: ResolvedSixbApiBrowserPolicy;
|
|
8
11
|
}
|
|
9
12
|
export declare function registerHttpRoutes(app: Elysia, host: SixbHostView, options: HttpRouteOptions): Elysia<"", {
|
|
10
13
|
decorator: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRoutes.d.ts","sourceRoot":"","sources":["../src/registerRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,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,4BAA4B,EAAE,MAAM,uBAAuB,CAAA;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAShE,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;IAC3C,wEAAwE;IACxE,QAAQ,CAAC,aAAa,EAAE,4BAA4B,CAAA;CACrD;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkC5F"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type SixbHostView } from "@sixb/core";
|
|
2
|
+
import type { Elysia } from "elysia";
|
|
3
|
+
/**
|
|
4
|
+
* Recording and reading take different authority: a browser session records only its own visits,
|
|
5
|
+
* and reading needs `can.observe(project.activity)`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function registerActivityRoutes(app: Elysia, _host: SixbHostView): Elysia<"", {
|
|
8
|
+
decorator: {};
|
|
9
|
+
store: {};
|
|
10
|
+
derive: {};
|
|
11
|
+
resolve: {};
|
|
12
|
+
}, {
|
|
13
|
+
typebox: {};
|
|
14
|
+
error: {};
|
|
15
|
+
}, {
|
|
16
|
+
schema: {};
|
|
17
|
+
standaloneSchema: {};
|
|
18
|
+
macro: {};
|
|
19
|
+
macroFn: {};
|
|
20
|
+
parser: {};
|
|
21
|
+
response: {};
|
|
22
|
+
}, {}, {
|
|
23
|
+
derive: {};
|
|
24
|
+
resolve: {};
|
|
25
|
+
schema: {};
|
|
26
|
+
standaloneSchema: {};
|
|
27
|
+
response: {};
|
|
28
|
+
}, {
|
|
29
|
+
derive: {};
|
|
30
|
+
resolve: {};
|
|
31
|
+
schema: {};
|
|
32
|
+
standaloneSchema: {};
|
|
33
|
+
response: {};
|
|
34
|
+
}>;
|
|
35
|
+
//# sourceMappingURL=activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../src/routes/activity.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA+BpC;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkNtE"}
|
package/dist/routes/agents.d.ts
CHANGED
|
@@ -409,11 +409,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
409
409
|
role: "user" | "system" | "assistant";
|
|
410
410
|
seq: number;
|
|
411
411
|
annotations: {
|
|
412
|
-
code: "
|
|
412
|
+
code: "step_limit_reached";
|
|
413
413
|
message: string;
|
|
414
414
|
severity: "error" | "warning";
|
|
415
|
-
scope: "
|
|
416
|
-
path?: string | undefined;
|
|
415
|
+
scope: "run";
|
|
417
416
|
}[];
|
|
418
417
|
contentVersion: number;
|
|
419
418
|
completedAt?: string | undefined;
|
|
@@ -636,11 +635,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
636
635
|
} | undefined;
|
|
637
636
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
638
637
|
diagnostics?: {
|
|
639
|
-
code: "
|
|
638
|
+
code: "step_limit_reached";
|
|
640
639
|
message: string;
|
|
641
640
|
severity: "error" | "warning";
|
|
642
|
-
scope: "
|
|
643
|
-
path?: string | undefined;
|
|
641
|
+
scope: "run";
|
|
644
642
|
}[] | undefined;
|
|
645
643
|
};
|
|
646
644
|
} | {
|
|
@@ -718,11 +716,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
718
716
|
} | undefined;
|
|
719
717
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
720
718
|
diagnostics?: {
|
|
721
|
-
code: "
|
|
719
|
+
code: "step_limit_reached";
|
|
722
720
|
message: string;
|
|
723
721
|
severity: "error" | "warning";
|
|
724
|
-
scope: "
|
|
725
|
-
path?: string | undefined;
|
|
722
|
+
scope: "run";
|
|
726
723
|
}[] | undefined;
|
|
727
724
|
};
|
|
728
725
|
};
|
|
@@ -804,11 +801,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
804
801
|
} | undefined;
|
|
805
802
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
806
803
|
diagnostics?: {
|
|
807
|
-
code: "
|
|
804
|
+
code: "step_limit_reached";
|
|
808
805
|
message: string;
|
|
809
806
|
severity: "error" | "warning";
|
|
810
|
-
scope: "
|
|
811
|
-
path?: string | undefined;
|
|
807
|
+
scope: "run";
|
|
812
808
|
}[] | undefined;
|
|
813
809
|
};
|
|
814
810
|
} | {
|
|
@@ -877,11 +873,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
877
873
|
} | undefined;
|
|
878
874
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
879
875
|
diagnostics?: {
|
|
880
|
-
code: "
|
|
876
|
+
code: "step_limit_reached";
|
|
881
877
|
message: string;
|
|
882
878
|
severity: "error" | "warning";
|
|
883
|
-
scope: "
|
|
884
|
-
path?: string | undefined;
|
|
879
|
+
scope: "run";
|
|
885
880
|
}[] | undefined;
|
|
886
881
|
};
|
|
887
882
|
};
|
|
@@ -964,11 +959,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
964
959
|
} | undefined;
|
|
965
960
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
966
961
|
diagnostics?: {
|
|
967
|
-
code: "
|
|
962
|
+
code: "step_limit_reached";
|
|
968
963
|
message: string;
|
|
969
964
|
severity: "error" | "warning";
|
|
970
|
-
scope: "
|
|
971
|
-
path?: string | undefined;
|
|
965
|
+
scope: "run";
|
|
972
966
|
}[] | undefined;
|
|
973
967
|
};
|
|
974
968
|
} | {
|
|
@@ -1042,11 +1036,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1042
1036
|
} | undefined;
|
|
1043
1037
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
1044
1038
|
diagnostics?: {
|
|
1045
|
-
code: "
|
|
1039
|
+
code: "step_limit_reached";
|
|
1046
1040
|
message: string;
|
|
1047
1041
|
severity: "error" | "warning";
|
|
1048
|
-
scope: "
|
|
1049
|
-
path?: string | undefined;
|
|
1042
|
+
scope: "run";
|
|
1050
1043
|
}[] | undefined;
|
|
1051
1044
|
};
|
|
1052
1045
|
};
|
|
@@ -1133,11 +1126,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1133
1126
|
} | undefined;
|
|
1134
1127
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
1135
1128
|
diagnostics?: {
|
|
1136
|
-
code: "
|
|
1129
|
+
code: "step_limit_reached";
|
|
1137
1130
|
message: string;
|
|
1138
1131
|
severity: "error" | "warning";
|
|
1139
|
-
scope: "
|
|
1140
|
-
path?: string | undefined;
|
|
1132
|
+
scope: "run";
|
|
1141
1133
|
}[] | undefined;
|
|
1142
1134
|
}[];
|
|
1143
1135
|
hasMore: boolean;
|
|
@@ -1226,11 +1218,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1226
1218
|
} | undefined;
|
|
1227
1219
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
1228
1220
|
diagnostics?: {
|
|
1229
|
-
code: "
|
|
1221
|
+
code: "step_limit_reached";
|
|
1230
1222
|
message: string;
|
|
1231
1223
|
severity: "error" | "warning";
|
|
1232
|
-
scope: "
|
|
1233
|
-
path?: string | undefined;
|
|
1224
|
+
scope: "run";
|
|
1234
1225
|
}[] | undefined;
|
|
1235
1226
|
};
|
|
1236
1227
|
404: {
|
|
@@ -1 +1 @@
|
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAxH7C,MAAM;uCAAiB,qBAAqB;;+BAgDgB,MAAM
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAxH7C,MAAM;uCAAiB,qBAAqB;;+BAgDgB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAhDlE,MAAM;+CAAiB,qBAAqB;;uCAgDgB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAhDlE,MAAM;+CAAiB,qBAAqB;;uCAgDgB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wDAhDlE,MAAM;uDAAiB,qBAAqB;;+CAgDgB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8oBvF"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
|
+
import type { Elysia } from "elysia";
|
|
3
|
+
import type { ResolvedSixbApiBrowserPolicy } from "../auth/browser-origin";
|
|
4
|
+
/**
|
|
5
|
+
* Serves a deck's files to its sandboxed frame, under the token a frame link carries: the token
|
|
6
|
+
* is the credential, so the route is public. The entry gets the kit and the runtime, and the kit
|
|
7
|
+
* and runtime are served beside the files. Hidden from OpenAPI: clients receive frame links, they
|
|
8
|
+
* never build them.
|
|
9
|
+
*/
|
|
10
|
+
export declare function registerArtifactFrameRoutes(app: Elysia, host: SixbHostView, policy: ResolvedSixbApiBrowserPolicy): Elysia<"", {
|
|
11
|
+
decorator: {};
|
|
12
|
+
store: {};
|
|
13
|
+
derive: {};
|
|
14
|
+
resolve: {};
|
|
15
|
+
}, {
|
|
16
|
+
typebox: {};
|
|
17
|
+
error: {};
|
|
18
|
+
}, {
|
|
19
|
+
schema: {};
|
|
20
|
+
standaloneSchema: {};
|
|
21
|
+
macro: {};
|
|
22
|
+
macroFn: {};
|
|
23
|
+
parser: {};
|
|
24
|
+
response: {};
|
|
25
|
+
}, {
|
|
26
|
+
api: {
|
|
27
|
+
"artifact-frames": {
|
|
28
|
+
":token": {
|
|
29
|
+
"*": {
|
|
30
|
+
get: {
|
|
31
|
+
body: unknown;
|
|
32
|
+
params: {
|
|
33
|
+
"*": string;
|
|
34
|
+
token: string;
|
|
35
|
+
} & {};
|
|
36
|
+
query: unknown;
|
|
37
|
+
headers: unknown;
|
|
38
|
+
response: {
|
|
39
|
+
200: Response;
|
|
40
|
+
422: {
|
|
41
|
+
type: "validation";
|
|
42
|
+
on: string;
|
|
43
|
+
summary?: string;
|
|
44
|
+
message?: string;
|
|
45
|
+
found?: unknown;
|
|
46
|
+
property?: string;
|
|
47
|
+
expected?: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
} & {
|
|
56
|
+
api: {
|
|
57
|
+
"artifact-frames": {
|
|
58
|
+
":token": {
|
|
59
|
+
"*": {
|
|
60
|
+
head: {
|
|
61
|
+
body: unknown;
|
|
62
|
+
params: {
|
|
63
|
+
"*": string;
|
|
64
|
+
token: string;
|
|
65
|
+
} & {};
|
|
66
|
+
query: unknown;
|
|
67
|
+
headers: unknown;
|
|
68
|
+
response: {
|
|
69
|
+
200: Response;
|
|
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=artifact-frames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-frames.d.ts","sourceRoot":"","sources":["../../src/routes/artifact-frames.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAW9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAA;AAQ1E;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQrC"}
|