@sixb/server 0.1.12 → 0.1.14
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 +5 -4
- package/dist/auth/access-token-boundary.d.ts +13 -9
- package/dist/auth/access-token-boundary.d.ts.map +1 -1
- package/dist/auth/client-address.d.ts +12 -0
- package/dist/auth/client-address.d.ts.map +1 -0
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts +5 -0
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/rate-limit.d.ts +15 -0
- package/dist/auth/rate-limit.d.ts.map +1 -0
- package/dist/auth/scope.d.ts +8 -3
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/shared-access.d.ts.map +1 -1
- package/dist/index.js +608 -465
- package/dist/index.js.map +40 -38
- package/dist/openapi/security.d.ts +34 -10
- package/dist/openapi/security.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +68 -17
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/events.d.ts +0 -4
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +15 -2
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/models.d.ts +7 -7
- package/dist/routes/ontology.d.ts +13 -1
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/shared-access.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +30 -30
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +2 -3
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +273 -85
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +11 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/events.d.ts +74 -44
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/models.d.ts +38 -38
- package/dist/schemas/ontology.d.ts +160 -0
- package/dist/schemas/ontology.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +180 -190
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +6 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +1 -2
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/auth/access-token-boundary.ts +31 -30
- package/src/auth/client-address.ts +67 -0
- package/src/auth/guard.ts +13 -4
- package/src/auth/public-routes.ts +9 -2
- package/src/auth/rate-limit.ts +43 -0
- package/src/auth/scope.ts +13 -3
- package/src/auth/shared-access.ts +0 -3
- package/src/openapi/security.ts +37 -17
- package/src/routes/action-runs.ts +5 -5
- package/src/routes/actions.ts +4 -4
- package/src/routes/agents.ts +9 -9
- package/src/routes/ai-accounting.ts +10 -10
- package/src/routes/auth.ts +370 -443
- package/src/routes/connector-connection-runs.ts +5 -5
- package/src/routes/connector-connections.ts +3 -3
- package/src/routes/connectors.ts +2 -2
- package/src/routes/events.ts +2 -2
- package/src/routes/files.ts +30 -15
- package/src/routes/links.ts +3 -3
- package/src/routes/logs.ts +2 -2
- package/src/routes/objects.ts +12 -12
- package/src/routes/ontology.ts +27 -9
- package/src/routes/pipelines.ts +2 -2
- package/src/routes/project.ts +2 -2
- package/src/routes/share-grants.ts +4 -4
- package/src/routes/shared-access.ts +3 -2
- package/src/routes/syncs.ts +2 -2
- package/src/routes/telemetry.ts +5 -5
- package/src/routes/workflows.ts +18 -19
- package/src/routes/ws/agents.ts +4 -5
- package/src/schemas/auth.ts +29 -8
- package/src/schemas/common.ts +6 -0
- package/src/schemas/events.ts +35 -7
- package/src/schemas/ontology.ts +16 -1
- package/src/schemas/workflows.ts +4 -9
- package/src/server.ts +35 -5
- package/src/utils/ws.ts +2 -3
|
@@ -1,16 +1,34 @@
|
|
|
1
1
|
export declare const SIXB_CSRF_SECURITY_SCHEME_ID = "sixbCsrf";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const SIXB_SESSION_SECURITY_SCHEME_ID = "sixbSession";
|
|
3
|
+
export declare const SIXB_ACCESS_TOKEN_SECURITY_SCHEME_ID = "sixbAccessToken";
|
|
3
4
|
export declare const SIXB_SHARED_GRANT_SECURITY_SCHEME_ID = "sixbSharedGrant";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const SIXB_BEARER_SECURITY_REQUIREMENT: {
|
|
8
|
-
sixbBearer: string[];
|
|
5
|
+
/** The default for every operation: any session. Public operations override it with `[]`. */
|
|
6
|
+
export declare const SIXB_SESSION_SECURITY_REQUIREMENT: {
|
|
7
|
+
sixbSession: string[];
|
|
9
8
|
}[];
|
|
10
|
-
|
|
9
|
+
/** A mutation taking a session: a browser's with its CSRF token, or a native client's. */
|
|
10
|
+
export declare const SIXB_SESSION_MUTATION_SECURITY_REQUIREMENT: ({
|
|
11
11
|
sixbCsrf: string[];
|
|
12
12
|
} | {
|
|
13
|
-
|
|
13
|
+
sixbSession: string[];
|
|
14
|
+
})[];
|
|
15
|
+
/** Who-am-I: answers anyone, and describes the session when one is sent. */
|
|
16
|
+
export declare const SIXB_OPTIONAL_SESSION_SECURITY_REQUIREMENT: {}[];
|
|
17
|
+
/** Sign-out: succeeds for anyone, and ends the session when one is sent. */
|
|
18
|
+
export declare const SIXB_OPTIONAL_SESSION_MUTATION_SECURITY_REQUIREMENT: {}[];
|
|
19
|
+
/** A read that also accepts a personal or service-account access token. */
|
|
20
|
+
export declare const SIXB_ACCESS_TOKEN_READ_SECURITY_REQUIREMENT: ({
|
|
21
|
+
sixbSession: string[];
|
|
22
|
+
} | {
|
|
23
|
+
sixbAccessToken: string[];
|
|
24
|
+
})[];
|
|
25
|
+
/** A mutation that also accepts a personal or service-account access token. */
|
|
26
|
+
export declare const SIXB_ACCESS_TOKEN_MUTATION_SECURITY_REQUIREMENT: ({
|
|
27
|
+
sixbCsrf: string[];
|
|
28
|
+
} | {
|
|
29
|
+
sixbSession: string[];
|
|
30
|
+
} | {
|
|
31
|
+
sixbAccessToken: string[];
|
|
14
32
|
})[];
|
|
15
33
|
export declare const SIXB_SHARED_READ_SECURITY_REQUIREMENT: {
|
|
16
34
|
sixbSharedGrant: string[];
|
|
@@ -25,11 +43,17 @@ export declare const SIXB_CSRF_SECURITY_SCHEME: {
|
|
|
25
43
|
readonly name: "x-sixb-csrf";
|
|
26
44
|
readonly description: "Required for cookie-authenticated mutating requests. Use the csrfToken returned by the corresponding session endpoint.";
|
|
27
45
|
};
|
|
28
|
-
export declare const
|
|
46
|
+
export declare const SIXB_SESSION_SECURITY_SCHEME: {
|
|
47
|
+
readonly type: "http";
|
|
48
|
+
readonly scheme: "bearer";
|
|
49
|
+
readonly bearerFormat: "Sixb session access token";
|
|
50
|
+
readonly description: "A signed-in native client's session access token, from device login and renewed through /api/auth/refresh. Accepted wherever a browser session is; browsers authenticate with the session cookie instead.";
|
|
51
|
+
};
|
|
52
|
+
export declare const SIXB_ACCESS_TOKEN_SECURITY_SCHEME: {
|
|
29
53
|
readonly type: "http";
|
|
30
54
|
readonly scheme: "bearer";
|
|
31
55
|
readonly bearerFormat: "Sixb access token";
|
|
32
|
-
readonly description: "
|
|
56
|
+
readonly description: "A personal access token or service-account token, for scripts and services. Accepted only on routes that document this scheme. A native client's session token uses sixbSession instead.";
|
|
33
57
|
};
|
|
34
58
|
export declare const SIXB_SHARED_GRANT_SECURITY_SCHEME: {
|
|
35
59
|
readonly type: "apiKey";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/openapi/security.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B,aAAa,CAAA;AACtD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/openapi/security.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B,aAAa,CAAA;AACtD,eAAO,MAAM,+BAA+B,gBAAgB,CAAA;AAC5D,eAAO,MAAM,oCAAoC,oBAAoB,CAAA;AACrE,eAAO,MAAM,oCAAoC,oBAAoB,CAAA;AASrE,6FAA6F;AAC7F,eAAO,MAAM,iCAAiC;iBAPa,MAAM,EAAE;GAOT,CAAA;AAE1D,0FAA0F;AAC1F,eAAO,MAAM,0CAA0C;cAXF,MAAM,EAAE;;iBACF,MAAM,EAAE;IAUM,CAAA;AAKzE,4EAA4E;AAC5E,eAAO,MAAM,0CAA0C,MAAgB,CAAA;AAEvE,4EAA4E;AAC5E,eAAO,MAAM,mDAAmD,MAAsB,CAAA;AAEtF,2EAA2E;AAC3E,eAAO,MAAM,2CAA2C;iBAtBG,MAAM,EAAE;;qBACC,MAAM,EAAE;IAqBK,CAAA;AAEjF,+EAA+E;AAC/E,eAAO,MAAM,+CAA+C;cA1BP,MAAM,EAAE;;iBACF,MAAM,EAAE;;qBACC,MAAM,EAAE;IAwBe,CAAA;AAE3F,eAAO,MAAM,qCAAqC;qBACF,MAAM,EAAE;CACvD,CAAA;AAED,eAAO,MAAM,yCAAyC;qBACN,MAAM,EAAE;cAChB,MAAM,EAAE;CAC/C,CAAA;AAED,eAAO,MAAM,yBAAyB;;;;;CAM5B,CAAA;AAEV,eAAO,MAAM,4BAA4B;;;;;CAM/B,CAAA;AAEV,eAAO,MAAM,iCAAiC;;;;;CAMpC,CAAA;AAEV,eAAO,MAAM,iCAAiC;;;;;CAMpC,CAAA"}
|
package/dist/routes/auth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
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
4
|
import { type SixbAuthExperienceOptions } from "../auth/experience";
|
|
@@ -86,8 +86,6 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
86
86
|
post: {
|
|
87
87
|
body: {
|
|
88
88
|
clientName: string;
|
|
89
|
-
tokenName: string;
|
|
90
|
-
expiresIn?: "90d" | undefined;
|
|
91
89
|
};
|
|
92
90
|
params: {};
|
|
93
91
|
query: unknown;
|
|
@@ -141,6 +139,8 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
141
139
|
} | {
|
|
142
140
|
status: "approved";
|
|
143
141
|
accessToken: string;
|
|
142
|
+
refreshToken: string;
|
|
143
|
+
expiresIn: number;
|
|
144
144
|
};
|
|
145
145
|
422: {
|
|
146
146
|
type: "validation";
|
|
@@ -157,6 +157,40 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
|
+
} & {
|
|
161
|
+
api: {
|
|
162
|
+
auth: {
|
|
163
|
+
refresh: {
|
|
164
|
+
post: {
|
|
165
|
+
body: {
|
|
166
|
+
refreshToken: string;
|
|
167
|
+
};
|
|
168
|
+
params: {};
|
|
169
|
+
query: unknown;
|
|
170
|
+
headers: unknown;
|
|
171
|
+
response: {
|
|
172
|
+
200: {
|
|
173
|
+
accessToken: string;
|
|
174
|
+
refreshToken: string;
|
|
175
|
+
expiresIn: number;
|
|
176
|
+
};
|
|
177
|
+
401: {
|
|
178
|
+
error: string;
|
|
179
|
+
};
|
|
180
|
+
422: {
|
|
181
|
+
type: "validation";
|
|
182
|
+
on: string;
|
|
183
|
+
summary?: string;
|
|
184
|
+
message?: string;
|
|
185
|
+
found?: unknown;
|
|
186
|
+
property?: string;
|
|
187
|
+
expected?: string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
160
194
|
} & {
|
|
161
195
|
auth: {
|
|
162
196
|
device: {
|
|
@@ -215,7 +249,6 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
215
249
|
id: string;
|
|
216
250
|
expiresAt: string;
|
|
217
251
|
};
|
|
218
|
-
csrfToken: string;
|
|
219
252
|
user: {
|
|
220
253
|
id: string;
|
|
221
254
|
email: string;
|
|
@@ -228,6 +261,7 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
228
261
|
audience: "atlas" | "app";
|
|
229
262
|
allowed: boolean;
|
|
230
263
|
};
|
|
264
|
+
csrfToken?: string | undefined;
|
|
231
265
|
};
|
|
232
266
|
422: {
|
|
233
267
|
type: "validation";
|
|
@@ -285,11 +319,12 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
285
319
|
response: {
|
|
286
320
|
200: {
|
|
287
321
|
sessions: {
|
|
288
|
-
audience: "atlas" | "app";
|
|
289
322
|
id: string;
|
|
290
323
|
expiresAt: string;
|
|
291
324
|
createdAt: string;
|
|
292
325
|
current: boolean;
|
|
326
|
+
audience?: "atlas" | "app" | undefined;
|
|
327
|
+
clientName?: string | undefined;
|
|
293
328
|
lastSeenAt?: string | undefined;
|
|
294
329
|
userAgent?: string | undefined;
|
|
295
330
|
ipAddress?: string | undefined;
|
|
@@ -441,10 +476,12 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
441
476
|
id: string;
|
|
442
477
|
kind: "serviceAccount" | "personal";
|
|
443
478
|
name: string;
|
|
479
|
+
subject: {
|
|
480
|
+
id: string;
|
|
481
|
+
type: "user" | "serviceAccount";
|
|
482
|
+
};
|
|
444
483
|
expiresAt: string;
|
|
445
484
|
createdAt: string;
|
|
446
|
-
subjectType: "user" | "serviceAccount";
|
|
447
|
-
subjectId: string;
|
|
448
485
|
revokedAt?: string | undefined;
|
|
449
486
|
groupIds?: string[] | undefined;
|
|
450
487
|
subjectLabel?: string | undefined;
|
|
@@ -506,10 +543,12 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
506
543
|
id: string;
|
|
507
544
|
kind: "serviceAccount" | "personal";
|
|
508
545
|
name: string;
|
|
546
|
+
subject: {
|
|
547
|
+
id: string;
|
|
548
|
+
type: "user" | "serviceAccount";
|
|
549
|
+
};
|
|
509
550
|
expiresAt: string;
|
|
510
551
|
createdAt: string;
|
|
511
|
-
subjectType: "user" | "serviceAccount";
|
|
512
|
-
subjectId: string;
|
|
513
552
|
revokedAt?: string | undefined;
|
|
514
553
|
groupIds?: string[] | undefined;
|
|
515
554
|
subjectLabel?: string | undefined;
|
|
@@ -553,10 +592,12 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
553
592
|
id: string;
|
|
554
593
|
kind: "serviceAccount" | "personal";
|
|
555
594
|
name: string;
|
|
595
|
+
subject: {
|
|
596
|
+
id: string;
|
|
597
|
+
type: "user" | "serviceAccount";
|
|
598
|
+
};
|
|
556
599
|
expiresAt: string;
|
|
557
600
|
createdAt: string;
|
|
558
|
-
subjectType: "user" | "serviceAccount";
|
|
559
|
-
subjectId: string;
|
|
560
601
|
revokedAt?: string | undefined;
|
|
561
602
|
groupIds?: string[] | undefined;
|
|
562
603
|
subjectLabel?: string | undefined;
|
|
@@ -763,10 +804,12 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
763
804
|
id: string;
|
|
764
805
|
kind: "serviceAccount" | "personal";
|
|
765
806
|
name: string;
|
|
807
|
+
subject: {
|
|
808
|
+
id: string;
|
|
809
|
+
type: "user" | "serviceAccount";
|
|
810
|
+
};
|
|
766
811
|
expiresAt: string;
|
|
767
812
|
createdAt: string;
|
|
768
|
-
subjectType: "user" | "serviceAccount";
|
|
769
|
-
subjectId: string;
|
|
770
813
|
revokedAt?: string | undefined;
|
|
771
814
|
groupIds?: string[] | undefined;
|
|
772
815
|
subjectLabel?: string | undefined;
|
|
@@ -843,10 +886,12 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
843
886
|
id: string;
|
|
844
887
|
kind: "serviceAccount" | "personal";
|
|
845
888
|
name: string;
|
|
889
|
+
subject: {
|
|
890
|
+
id: string;
|
|
891
|
+
type: "user" | "serviceAccount";
|
|
892
|
+
};
|
|
846
893
|
expiresAt: string;
|
|
847
894
|
createdAt: string;
|
|
848
|
-
subjectType: "user" | "serviceAccount";
|
|
849
|
-
subjectId: string;
|
|
850
895
|
revokedAt?: string | undefined;
|
|
851
896
|
groupIds?: string[] | undefined;
|
|
852
897
|
subjectLabel?: string | undefined;
|
|
@@ -895,10 +940,12 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
895
940
|
id: string;
|
|
896
941
|
kind: "serviceAccount" | "personal";
|
|
897
942
|
name: string;
|
|
943
|
+
subject: {
|
|
944
|
+
id: string;
|
|
945
|
+
type: "user" | "serviceAccount";
|
|
946
|
+
};
|
|
898
947
|
expiresAt: string;
|
|
899
948
|
createdAt: string;
|
|
900
|
-
subjectType: "user" | "serviceAccount";
|
|
901
|
-
subjectId: string;
|
|
902
949
|
revokedAt?: string | undefined;
|
|
903
950
|
groupIds?: string[] | undefined;
|
|
904
951
|
subjectLabel?: string | undefined;
|
|
@@ -1251,6 +1298,7 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
1251
1298
|
reactivate: boolean;
|
|
1252
1299
|
};
|
|
1253
1300
|
groupIds: string[];
|
|
1301
|
+
managedGroupIds: string[];
|
|
1254
1302
|
}[];
|
|
1255
1303
|
};
|
|
1256
1304
|
401: {
|
|
@@ -1304,6 +1352,7 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
1304
1352
|
avatarUrl?: string | undefined;
|
|
1305
1353
|
};
|
|
1306
1354
|
groupIds: string[];
|
|
1355
|
+
managedGroupIds: string[];
|
|
1307
1356
|
};
|
|
1308
1357
|
};
|
|
1309
1358
|
404: {
|
|
@@ -1363,6 +1412,7 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
1363
1412
|
avatarUrl?: string | undefined;
|
|
1364
1413
|
};
|
|
1365
1414
|
groupIds: string[];
|
|
1415
|
+
managedGroupIds: string[];
|
|
1366
1416
|
};
|
|
1367
1417
|
};
|
|
1368
1418
|
404: {
|
|
@@ -1419,6 +1469,7 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
|
|
|
1419
1469
|
avatarUrl?: string | undefined;
|
|
1420
1470
|
};
|
|
1421
1471
|
groupIds: string[];
|
|
1472
|
+
managedGroupIds: string[];
|
|
1422
1473
|
};
|
|
1423
1474
|
};
|
|
1424
1475
|
404: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AA+BnB,OAAO,EAAE,KAAK,MAAM,EAAK,MAAM,QAAQ,CAAA;AAGvC,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAGhC,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,oBAAoB,CAAA;AAiF3B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,kBAAkB,EAAE,yBAAyB,CAAA;IACtD,QAAQ,CAAC,0BAA0B,EAAE,0BAA0B,CAAA;IAC/D,QAAQ,CAAC,+BAA+B,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,gCAAgC,CAAA;IAChG,QAAQ,CAAC,wBAAwB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;IAC/D,QAAQ,CAAC,gCAAgC,EAAE,CACzC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,2BAA2B,KAC/B,6BAA6B,CAAA;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,yBAAyB,CAAA;CACpD;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAm7C7F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/routes/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/routes/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmCpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CtE"}
|
package/dist/routes/events.d.ts
CHANGED
|
@@ -74,10 +74,6 @@ export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): E
|
|
|
74
74
|
correlationId?: string | undefined;
|
|
75
75
|
causationId?: string | undefined;
|
|
76
76
|
idempotencyKey?: string | undefined;
|
|
77
|
-
actor?: {
|
|
78
|
-
id: string;
|
|
79
|
-
type: "user" | "serviceAccount" | "system";
|
|
80
|
-
} | undefined;
|
|
81
77
|
})[];
|
|
82
78
|
count: number;
|
|
83
79
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/routes/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/routes/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CnE"}
|
package/dist/routes/files.d.ts
CHANGED
|
@@ -89,12 +89,13 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
89
89
|
partSizeBytes: number;
|
|
90
90
|
} | {
|
|
91
91
|
error: string;
|
|
92
|
-
code?: import("@sixb/core").SixbErrorCode;
|
|
93
|
-
details?: import("@sixb/core").ReadonlyJsonValue;
|
|
94
92
|
};
|
|
95
93
|
400: {
|
|
96
94
|
error: string;
|
|
97
95
|
};
|
|
96
|
+
501: {
|
|
97
|
+
error: string;
|
|
98
|
+
};
|
|
98
99
|
201: {
|
|
99
100
|
url: string;
|
|
100
101
|
uploadId: string;
|
|
@@ -155,6 +156,9 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
155
156
|
409: {
|
|
156
157
|
error: string;
|
|
157
158
|
};
|
|
159
|
+
501: {
|
|
160
|
+
error: string;
|
|
161
|
+
};
|
|
158
162
|
410: {
|
|
159
163
|
error: string;
|
|
160
164
|
};
|
|
@@ -206,6 +210,9 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
206
210
|
409: {
|
|
207
211
|
error: string;
|
|
208
212
|
};
|
|
213
|
+
501: {
|
|
214
|
+
error: string;
|
|
215
|
+
};
|
|
209
216
|
410: {
|
|
210
217
|
error: string;
|
|
211
218
|
};
|
|
@@ -264,6 +271,9 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
264
271
|
409: {
|
|
265
272
|
error: string;
|
|
266
273
|
};
|
|
274
|
+
501: {
|
|
275
|
+
error: string;
|
|
276
|
+
};
|
|
267
277
|
410: {
|
|
268
278
|
error: string;
|
|
269
279
|
};
|
|
@@ -309,6 +319,9 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
309
319
|
409: {
|
|
310
320
|
error: string;
|
|
311
321
|
};
|
|
322
|
+
501: {
|
|
323
|
+
error: string;
|
|
324
|
+
};
|
|
312
325
|
410: {
|
|
313
326
|
error: string;
|
|
314
327
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,YAAY,CAAA;AAInB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgbjE"}
|
package/dist/routes/models.d.ts
CHANGED
|
@@ -27,13 +27,6 @@ export declare function registerModelRoutes(app: Elysia, host: SixbHostView): El
|
|
|
27
27
|
200: {
|
|
28
28
|
language: {
|
|
29
29
|
name: string;
|
|
30
|
-
modelId: string;
|
|
31
|
-
provider: string;
|
|
32
|
-
isDefault: boolean;
|
|
33
|
-
publisher: {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
};
|
|
37
30
|
capabilities: {
|
|
38
31
|
output: ("text" | "image" | "audio" | "video" | "pdf")[];
|
|
39
32
|
input: ("text" | "image" | "audio" | "video" | "pdf")[];
|
|
@@ -43,6 +36,13 @@ export declare function registerModelRoutes(app: Elysia, host: SixbHostView): El
|
|
|
43
36
|
structuredOutput?: boolean | undefined;
|
|
44
37
|
contextWindowTokens?: number | undefined;
|
|
45
38
|
};
|
|
39
|
+
modelId: string;
|
|
40
|
+
provider: string;
|
|
41
|
+
isDefault: boolean;
|
|
42
|
+
publisher: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
};
|
|
46
46
|
reasoningLevels: ("none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
|
|
47
47
|
description?: string | undefined;
|
|
48
48
|
via?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerOntologyRoutes(app: Elysia,
|
|
3
|
+
export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -71,6 +71,12 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
|
|
|
71
71
|
properties: {
|
|
72
72
|
id: string;
|
|
73
73
|
name: string;
|
|
74
|
+
capabilities: {
|
|
75
|
+
text: boolean;
|
|
76
|
+
sortable: boolean;
|
|
77
|
+
facet: boolean;
|
|
78
|
+
operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
|
|
79
|
+
};
|
|
74
80
|
description?: string | undefined;
|
|
75
81
|
query?: {
|
|
76
82
|
text?: boolean | undefined;
|
|
@@ -181,6 +187,12 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
|
|
|
181
187
|
properties: {
|
|
182
188
|
id: string;
|
|
183
189
|
name: string;
|
|
190
|
+
capabilities: {
|
|
191
|
+
text: boolean;
|
|
192
|
+
sortable: boolean;
|
|
193
|
+
facet: boolean;
|
|
194
|
+
operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
|
|
195
|
+
};
|
|
184
196
|
description?: string | undefined;
|
|
185
197
|
query?: {
|
|
186
198
|
text?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../src/routes/ontology.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../src/routes/ontology.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,YAAY,EAAa,MAAM,YAAY,CAAA;AAGnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA0GpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-access.d.ts","sourceRoot":"","sources":["../../src/routes/shared-access.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,EACL,KAAK,oBAAoB,EAK1B,MAAM,uBAAuB,CAAA;AAW9B,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"shared-access.d.ts","sourceRoot":"","sources":["../../src/routes/shared-access.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,EACL,KAAK,oBAAoB,EAK1B,MAAM,uBAAuB,CAAA;AAW9B,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGrF"}
|
|
@@ -64,8 +64,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
64
64
|
startedAt: string;
|
|
65
65
|
workflowId: string;
|
|
66
66
|
requestedBy: {
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
id: string;
|
|
68
|
+
type: "user" | "serviceAccount" | "system";
|
|
69
69
|
};
|
|
70
70
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
71
71
|
queuedAt?: string | undefined;
|
|
@@ -137,8 +137,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
137
137
|
startedAt: string;
|
|
138
138
|
workflowId: string;
|
|
139
139
|
requestedBy: {
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
id: string;
|
|
141
|
+
type: "user" | "serviceAccount" | "system";
|
|
142
142
|
};
|
|
143
143
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
144
144
|
queuedAt?: string | undefined;
|
|
@@ -205,13 +205,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
205
205
|
expiresAt?: string | undefined;
|
|
206
206
|
submittedAt?: string | undefined;
|
|
207
207
|
submittedBy?: {
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
id: string;
|
|
209
|
+
type: "user" | "serviceAccount" | "system";
|
|
210
210
|
} | undefined;
|
|
211
211
|
cancelledAt?: string | undefined;
|
|
212
212
|
cancelledBy?: {
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
id: string;
|
|
214
|
+
type: "user" | "serviceAccount" | "system";
|
|
215
215
|
} | undefined;
|
|
216
216
|
expiredAt?: string | undefined;
|
|
217
217
|
}[];
|
|
@@ -265,13 +265,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
265
265
|
expiresAt?: string | undefined;
|
|
266
266
|
submittedAt?: string | undefined;
|
|
267
267
|
submittedBy?: {
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
id: string;
|
|
269
|
+
type: "user" | "serviceAccount" | "system";
|
|
270
270
|
} | undefined;
|
|
271
271
|
cancelledAt?: string | undefined;
|
|
272
272
|
cancelledBy?: {
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
id: string;
|
|
274
|
+
type: "user" | "serviceAccount" | "system";
|
|
275
275
|
} | undefined;
|
|
276
276
|
expiredAt?: string | undefined;
|
|
277
277
|
};
|
|
@@ -335,13 +335,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
335
335
|
expiresAt?: string | undefined;
|
|
336
336
|
submittedAt?: string | undefined;
|
|
337
337
|
submittedBy?: {
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
id: string;
|
|
339
|
+
type: "user" | "serviceAccount" | "system";
|
|
340
340
|
} | undefined;
|
|
341
341
|
cancelledAt?: string | undefined;
|
|
342
342
|
cancelledBy?: {
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
id: string;
|
|
344
|
+
type: "user" | "serviceAccount" | "system";
|
|
345
345
|
} | undefined;
|
|
346
346
|
expiredAt?: string | undefined;
|
|
347
347
|
};
|
|
@@ -375,13 +375,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
375
375
|
expiresAt?: string | undefined;
|
|
376
376
|
submittedAt?: string | undefined;
|
|
377
377
|
submittedBy?: {
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
id: string;
|
|
379
|
+
type: "user" | "serviceAccount" | "system";
|
|
380
380
|
} | undefined;
|
|
381
381
|
cancelledAt?: string | undefined;
|
|
382
382
|
cancelledBy?: {
|
|
383
|
-
|
|
384
|
-
|
|
383
|
+
id: string;
|
|
384
|
+
type: "user" | "serviceAccount" | "system";
|
|
385
385
|
} | undefined;
|
|
386
386
|
expiredAt?: string | undefined;
|
|
387
387
|
};
|
|
@@ -433,13 +433,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
433
433
|
expiresAt?: string | undefined;
|
|
434
434
|
submittedAt?: string | undefined;
|
|
435
435
|
submittedBy?: {
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
id: string;
|
|
437
|
+
type: "user" | "serviceAccount" | "system";
|
|
438
438
|
} | undefined;
|
|
439
439
|
cancelledAt?: string | undefined;
|
|
440
440
|
cancelledBy?: {
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
id: string;
|
|
442
|
+
type: "user" | "serviceAccount" | "system";
|
|
443
443
|
} | undefined;
|
|
444
444
|
expiredAt?: string | undefined;
|
|
445
445
|
};
|
|
@@ -493,8 +493,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
493
493
|
startedAt: string;
|
|
494
494
|
workflowId: string;
|
|
495
495
|
requestedBy: {
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
id: string;
|
|
497
|
+
type: "user" | "serviceAccount" | "system";
|
|
498
498
|
};
|
|
499
499
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
500
500
|
queuedAt?: string | undefined;
|
|
@@ -543,8 +543,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
543
543
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
544
544
|
workflowId: string;
|
|
545
545
|
requestedBy: {
|
|
546
|
-
|
|
547
|
-
|
|
546
|
+
id: string;
|
|
547
|
+
type: "user" | "serviceAccount" | "system";
|
|
548
548
|
};
|
|
549
549
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
550
550
|
queuedAt?: string | undefined;
|
|
@@ -779,8 +779,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
779
779
|
input: Record<string, import("../schemas/common").JsonValue>;
|
|
780
780
|
workflowId: string;
|
|
781
781
|
requestedBy: {
|
|
782
|
-
|
|
783
|
-
|
|
782
|
+
id: string;
|
|
783
|
+
type: "user" | "serviceAccount" | "system";
|
|
784
784
|
};
|
|
785
785
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
786
786
|
queuedAt?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAcnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2hBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkxBrE"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { OntologySource } from "@sixb/core";
|
|
2
1
|
import { type AgentRunActivityEvent } from "@sixb/core/agents/streams";
|
|
3
2
|
import type { Sixb } from "@sixb/core/internal/request-execution";
|
|
4
3
|
import type { Elysia } from "elysia";
|
|
@@ -54,13 +53,13 @@ export declare function parseAgentStreamMessage(payload: unknown): {
|
|
|
54
53
|
ok: false;
|
|
55
54
|
error: string;
|
|
56
55
|
};
|
|
57
|
-
export declare function canAccessAgentRunStream(sixb: Sixb
|
|
56
|
+
export declare function canAccessAgentRunStream(sixb: Sixb, runId: string): Promise<{
|
|
58
57
|
ok: true;
|
|
59
58
|
} | {
|
|
60
59
|
ok: false;
|
|
61
60
|
message: string;
|
|
62
61
|
}>;
|
|
63
|
-
export declare function canAccessAgentThreadActivity(sixb: Sixb
|
|
62
|
+
export declare function canAccessAgentThreadActivity(sixb: Sixb, event: AgentRunActivityEvent): Promise<boolean>;
|
|
64
63
|
export declare function registerAgentStreamRoutes(app: Elysia, server: SixbServer): Elysia<"", {
|
|
65
64
|
decorator: {};
|
|
66
65
|
store: {};
|