@sixb/server 0.1.1 → 0.1.2
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 +3 -3
- package/dist/auth/application-access.d.ts +2 -2
- package/dist/auth/application-access.d.ts.map +1 -1
- package/dist/auth/connector-callback-cookie.d.ts +12 -0
- package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
- package/dist/auth/guard.d.ts +3 -3
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +13 -27
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts +2 -2
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +16 -0
- package/dist/connectors/http.d.ts.map +1 -0
- package/dist/index.js +3293 -2704
- package/dist/index.js.map +55 -50
- package/dist/openapi/tags.d.ts +11 -3
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +6 -2
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +21 -31
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +9 -8
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts +2 -2
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +130 -131
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +84 -84
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +794 -0
- package/dist/routes/connector-connection-runs.d.ts.map +1 -0
- package/dist/routes/connector-connections.d.ts +219 -0
- package/dist/routes/connector-connections.d.ts.map +1 -0
- package/dist/routes/connectors.d.ts +10 -4
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +8 -4
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +8 -8
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +11 -10
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +2 -2
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/logs.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +34 -34
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +50 -50
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +24 -34
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/project.d.ts +2 -2
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +131 -83
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +6 -6
- package/dist/routes/rules.d.ts.map +1 -1
- package/dist/routes/status.d.ts +2 -2
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +20 -25
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +2 -2
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +9 -9
- package/dist/routes/webhook-runs.d.ts.map +1 -1
- package/dist/routes/webhooks.d.ts +2 -2
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +74 -48
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +11 -5
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +8 -8
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
- package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/logs.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +97 -202
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +442 -439
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-usage.d.ts +34 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +142 -142
- package/dist/schemas/common.d.ts +37 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +713 -2
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +2 -2
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +34 -34
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +10 -10
- package/dist/schemas/ontology.d.ts +118 -118
- package/dist/schemas/pipelines.d.ts +95 -190
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +918 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +65 -108
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +41 -41
- package/dist/schemas/webhook-runs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +516 -183
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +6 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts +2 -0
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +4 -3
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/auth/access-token-boundary.ts +4 -4
- package/src/auth/application-access.ts +8 -9
- package/src/auth/connector-callback-cookie.ts +95 -0
- package/src/auth/guard.ts +11 -11
- package/src/auth/public-routes.ts +13 -0
- package/src/auth/scope.ts +26 -36
- package/src/auth/session-cookies.ts +3 -3
- package/src/connectors/http.ts +110 -0
- package/src/openapi/tags.ts +9 -1
- package/src/registerRoutes.ts +34 -23
- package/src/routes/action-runs.ts +39 -39
- package/src/routes/actions.ts +7 -13
- package/src/routes/agent-api-gateway.ts +41 -38
- package/src/routes/agents.ts +89 -200
- package/src/routes/auth.ts +87 -91
- package/src/routes/connector-connection-runs.ts +346 -0
- package/src/routes/connector-connections.ts +135 -0
- package/src/routes/connectors.ts +24 -12
- package/src/routes/datasets.ts +55 -54
- package/src/routes/events.ts +5 -5
- package/src/routes/files.ts +22 -30
- package/src/routes/links.ts +31 -35
- package/src/routes/logs.ts +6 -11
- package/src/routes/objects.ts +51 -114
- package/src/routes/ontology.ts +27 -38
- package/src/routes/pipelines.ts +28 -62
- package/src/routes/project.ts +3 -3
- package/src/routes/projections.ts +26 -38
- package/src/routes/rules.ts +11 -25
- package/src/routes/status.ts +5 -5
- package/src/routes/syncs.ts +19 -45
- package/src/routes/telemetry.ts +18 -29
- package/src/routes/webhook-runs.ts +5 -5
- package/src/routes/webhooks.ts +259 -341
- package/src/routes/workflows.ts +226 -248
- package/src/routes/ws/agents.ts +196 -66
- package/src/routes/ws/events.ts +11 -10
- package/src/routes/ws/log-subscription-hub.ts +6 -12
- package/src/routes/ws/logs.ts +13 -5
- package/src/schemas/actions.ts +58 -25
- package/src/schemas/agents.ts +19 -14
- package/src/schemas/ai-usage.ts +16 -0
- package/src/schemas/common.ts +24 -0
- package/src/schemas/connectors.ts +164 -0
- package/src/schemas/pipelines.ts +23 -15
- package/src/schemas/projections.ts +17 -3
- package/src/schemas/syncs.ts +13 -8
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +16 -6
- package/src/server.ts +65 -26
- package/src/utils/http.ts +34 -6
- package/src/utils/ws.ts +10 -5
package/dist/routes/objects.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
|
declare function serializeObject(row: {
|
|
4
4
|
primaryId: string;
|
|
@@ -19,7 +19,7 @@ type SerializedExpandedObject = SerializedObject & {
|
|
|
19
19
|
links?: Record<string, SerializedLinkValue>;
|
|
20
20
|
linkProperties?: Record<string, unknown>;
|
|
21
21
|
};
|
|
22
|
-
export declare function registerObjectRoutes(app: Elysia,
|
|
22
|
+
export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
23
23
|
decorator: {};
|
|
24
24
|
store: {};
|
|
25
25
|
derive: {};
|
|
@@ -83,10 +83,10 @@ export declare function registerObjectRoutes(app: Elysia, sixb: Sixb<readonly On
|
|
|
83
83
|
body: unknown;
|
|
84
84
|
params: {};
|
|
85
85
|
query: {
|
|
86
|
+
objectTypeId?: string | undefined;
|
|
86
87
|
limit?: number | undefined;
|
|
87
88
|
offset?: number | undefined;
|
|
88
89
|
order?: "asc" | "desc" | undefined;
|
|
89
|
-
objectTypeId?: string | undefined;
|
|
90
90
|
idPrefix?: string | undefined;
|
|
91
91
|
idSuffix?: string | undefined;
|
|
92
92
|
updatedAfter?: Date | undefined;
|
|
@@ -99,8 +99,8 @@ export declare function registerObjectRoutes(app: Elysia, sixb: Sixb<readonly On
|
|
|
99
99
|
response: {
|
|
100
100
|
200: {
|
|
101
101
|
objects: {
|
|
102
|
-
objectTypeId: string;
|
|
103
102
|
properties: Record<string, unknown>;
|
|
103
|
+
objectTypeId: string;
|
|
104
104
|
primaryId: string;
|
|
105
105
|
createdAt: string;
|
|
106
106
|
updatedAt: string;
|
|
@@ -142,20 +142,20 @@ export declare function registerObjectRoutes(app: Elysia, sixb: Sixb<readonly On
|
|
|
142
142
|
issues?: undefined;
|
|
143
143
|
} | {
|
|
144
144
|
error: string;
|
|
145
|
-
issues: readonly import("@sixb/core
|
|
145
|
+
issues: readonly import("@sixb/core").ObjectQueryValidationIssue[] | readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
|
|
146
146
|
} | {
|
|
147
147
|
total?: number | undefined;
|
|
148
148
|
objects: SerializedExpandedObject[];
|
|
149
149
|
hasMore: boolean;
|
|
150
150
|
nextPageToken: string | undefined;
|
|
151
151
|
plan: {
|
|
152
|
-
mode:
|
|
153
|
-
providerIssues: readonly
|
|
154
|
-
fallbackIssues: readonly
|
|
155
|
-
issues: readonly
|
|
152
|
+
mode: string;
|
|
153
|
+
providerIssues: readonly unknown[];
|
|
154
|
+
fallbackIssues: readonly unknown[];
|
|
155
|
+
issues: readonly unknown[];
|
|
156
156
|
fallback: {
|
|
157
|
-
maxRows: number;
|
|
158
|
-
requiresExplicitBound: boolean;
|
|
157
|
+
readonly maxRows: number;
|
|
158
|
+
readonly requiresExplicitBound: boolean;
|
|
159
159
|
} | undefined;
|
|
160
160
|
};
|
|
161
161
|
};
|
|
@@ -180,17 +180,17 @@ export declare function registerObjectRoutes(app: Elysia, sixb: Sixb<readonly On
|
|
|
180
180
|
issues?: undefined;
|
|
181
181
|
} | {
|
|
182
182
|
error: string;
|
|
183
|
-
issues: readonly import("@sixb/core
|
|
183
|
+
issues: readonly import("@sixb/core").ObjectQueryValidationIssue[] | readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
|
|
184
184
|
} | {
|
|
185
185
|
count: number;
|
|
186
186
|
plan: {
|
|
187
|
-
mode:
|
|
188
|
-
providerIssues: readonly
|
|
189
|
-
fallbackIssues: readonly
|
|
190
|
-
issues: readonly
|
|
187
|
+
mode: string;
|
|
188
|
+
providerIssues: readonly unknown[];
|
|
189
|
+
fallbackIssues: readonly unknown[];
|
|
190
|
+
issues: readonly unknown[];
|
|
191
191
|
fallback: {
|
|
192
|
-
maxRows: number;
|
|
193
|
-
requiresExplicitBound: boolean;
|
|
192
|
+
readonly maxRows: number;
|
|
193
|
+
readonly requiresExplicitBound: boolean;
|
|
194
194
|
} | undefined;
|
|
195
195
|
};
|
|
196
196
|
};
|
|
@@ -216,17 +216,17 @@ export declare function registerObjectRoutes(app: Elysia, sixb: Sixb<readonly On
|
|
|
216
216
|
issues?: undefined;
|
|
217
217
|
} | {
|
|
218
218
|
error: string;
|
|
219
|
-
issues: readonly import("@sixb/core
|
|
219
|
+
issues: readonly import("@sixb/core").ObjectQueryValidationIssue[] | readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
|
|
220
220
|
} | {
|
|
221
221
|
exists: boolean;
|
|
222
222
|
plan: {
|
|
223
|
-
mode:
|
|
224
|
-
providerIssues: readonly
|
|
225
|
-
fallbackIssues: readonly
|
|
226
|
-
issues: readonly
|
|
223
|
+
mode: string;
|
|
224
|
+
providerIssues: readonly unknown[];
|
|
225
|
+
fallbackIssues: readonly unknown[];
|
|
226
|
+
issues: readonly unknown[];
|
|
227
227
|
fallback: {
|
|
228
|
-
maxRows: number;
|
|
229
|
-
requiresExplicitBound: boolean;
|
|
228
|
+
readonly maxRows: number;
|
|
229
|
+
readonly requiresExplicitBound: boolean;
|
|
230
230
|
} | undefined;
|
|
231
231
|
};
|
|
232
232
|
};
|
|
@@ -252,17 +252,17 @@ export declare function registerObjectRoutes(app: Elysia, sixb: Sixb<readonly On
|
|
|
252
252
|
issues?: undefined;
|
|
253
253
|
} | {
|
|
254
254
|
error: string;
|
|
255
|
-
issues: readonly import("@sixb/core
|
|
255
|
+
issues: readonly import("@sixb/core").ObjectQueryValidationIssue[] | readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
|
|
256
256
|
} | {
|
|
257
257
|
facets: readonly import("@sixb/core/storage").ObjectFacetResult[];
|
|
258
258
|
plan: {
|
|
259
|
-
mode:
|
|
260
|
-
providerIssues: readonly
|
|
261
|
-
fallbackIssues: readonly
|
|
262
|
-
issues: readonly
|
|
259
|
+
mode: string;
|
|
260
|
+
providerIssues: readonly unknown[];
|
|
261
|
+
fallbackIssues: readonly unknown[];
|
|
262
|
+
issues: readonly unknown[];
|
|
263
263
|
fallback: {
|
|
264
|
-
maxRows: number;
|
|
265
|
-
requiresExplicitBound: boolean;
|
|
264
|
+
readonly maxRows: number;
|
|
265
|
+
readonly requiresExplicitBound: boolean;
|
|
266
266
|
} | undefined;
|
|
267
267
|
};
|
|
268
268
|
};
|
|
@@ -365,8 +365,8 @@ export declare function registerObjectRoutes(app: Elysia, sixb: Sixb<readonly On
|
|
|
365
365
|
headers: unknown;
|
|
366
366
|
response: {
|
|
367
367
|
200: {
|
|
368
|
-
objectTypeId: string;
|
|
369
368
|
properties: Record<string, unknown>;
|
|
369
|
+
objectTypeId: string;
|
|
370
370
|
primaryId: string;
|
|
371
371
|
createdAt: string;
|
|
372
372
|
updatedAt: string;
|
|
@@ -406,8 +406,8 @@ export declare function registerObjectRoutes(app: Elysia, sixb: Sixb<readonly On
|
|
|
406
406
|
headers: unknown;
|
|
407
407
|
response: {
|
|
408
408
|
200: {
|
|
409
|
-
objectTypeId: string;
|
|
410
409
|
properties: Record<string, unknown>;
|
|
410
|
+
objectTypeId: string;
|
|
411
411
|
primaryId: string;
|
|
412
412
|
createdAt: string;
|
|
413
413
|
updatedAt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/routes/objects.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/routes/objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAOnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkCpC,iBAAS,eAAe,CAAC,GAAG,EAAE;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,EAAE,IAAI,CAAA;CAChB;;;;;;EAQA;AAED,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;AAiND,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDA9K1B,MAAM;oEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAA/C,MAAM;wEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAA/C,MAAM;wEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAA/C,MAAM;wEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6pBxF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
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: {};
|
|
@@ -25,15 +25,29 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
25
25
|
headers: unknown;
|
|
26
26
|
response: {
|
|
27
27
|
200: {
|
|
28
|
-
|
|
28
|
+
id: string;
|
|
29
|
+
actions: {
|
|
30
|
+
id: string;
|
|
29
31
|
name: string;
|
|
32
|
+
params: {
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
nullable?: boolean | undefined;
|
|
37
|
+
required?: boolean | undefined;
|
|
38
|
+
semanticType?: string | undefined;
|
|
39
|
+
schema?: unknown;
|
|
40
|
+
}[];
|
|
41
|
+
description?: string | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
links: {
|
|
30
44
|
id: string;
|
|
45
|
+
name: string;
|
|
31
46
|
targetObjectTypeId: string | string[];
|
|
32
47
|
description?: string | undefined;
|
|
33
|
-
cardinality?: "many" | "one" | undefined;
|
|
34
48
|
properties?: {
|
|
35
|
-
name: string;
|
|
36
49
|
id: string;
|
|
50
|
+
name: string;
|
|
37
51
|
description?: string | undefined;
|
|
38
52
|
query?: {
|
|
39
53
|
text?: boolean | undefined;
|
|
@@ -45,33 +59,19 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
45
59
|
vector?: boolean | undefined;
|
|
46
60
|
weight?: number | undefined;
|
|
47
61
|
} | undefined;
|
|
48
|
-
mode?: "telemetry" | "static" | undefined;
|
|
49
|
-
required?: boolean | undefined;
|
|
50
62
|
nullable?: boolean | undefined;
|
|
63
|
+
required?: boolean | undefined;
|
|
64
|
+
mode?: "telemetry" | "static" | undefined;
|
|
51
65
|
primary?: boolean | undefined;
|
|
52
66
|
semanticType?: string | undefined;
|
|
53
67
|
schema?: unknown;
|
|
54
68
|
}[] | undefined;
|
|
55
|
-
|
|
56
|
-
actions: {
|
|
57
|
-
name: string;
|
|
58
|
-
params: {
|
|
59
|
-
name: string;
|
|
60
|
-
id: string;
|
|
61
|
-
description?: string | undefined;
|
|
62
|
-
required?: boolean | undefined;
|
|
63
|
-
nullable?: boolean | undefined;
|
|
64
|
-
semanticType?: string | undefined;
|
|
65
|
-
schema?: unknown;
|
|
66
|
-
}[];
|
|
67
|
-
id: string;
|
|
68
|
-
description?: string | undefined;
|
|
69
|
+
cardinality?: "many" | "one" | undefined;
|
|
69
70
|
}[];
|
|
70
71
|
name: string;
|
|
71
|
-
id: string;
|
|
72
72
|
properties: {
|
|
73
|
-
name: string;
|
|
74
73
|
id: string;
|
|
74
|
+
name: string;
|
|
75
75
|
description?: string | undefined;
|
|
76
76
|
query?: {
|
|
77
77
|
text?: boolean | undefined;
|
|
@@ -83,9 +83,9 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
83
83
|
vector?: boolean | undefined;
|
|
84
84
|
weight?: number | undefined;
|
|
85
85
|
} | undefined;
|
|
86
|
-
mode?: "telemetry" | "static" | undefined;
|
|
87
|
-
required?: boolean | undefined;
|
|
88
86
|
nullable?: boolean | undefined;
|
|
87
|
+
required?: boolean | undefined;
|
|
88
|
+
mode?: "telemetry" | "static" | undefined;
|
|
89
89
|
primary?: boolean | undefined;
|
|
90
90
|
semanticType?: string | undefined;
|
|
91
91
|
schema?: unknown;
|
|
@@ -95,11 +95,11 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
95
95
|
implements?: string[] | undefined;
|
|
96
96
|
search?: {
|
|
97
97
|
exact?: string[] | undefined;
|
|
98
|
+
title?: string | undefined;
|
|
98
99
|
vector?: {
|
|
99
100
|
property: string;
|
|
100
101
|
source: string[];
|
|
101
102
|
} | undefined;
|
|
102
|
-
title?: string | undefined;
|
|
103
103
|
defaultText?: string[] | undefined;
|
|
104
104
|
} | undefined;
|
|
105
105
|
}[];
|
|
@@ -129,15 +129,29 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
129
129
|
headers: unknown;
|
|
130
130
|
response: {
|
|
131
131
|
200: {
|
|
132
|
-
|
|
132
|
+
id: string;
|
|
133
|
+
actions: {
|
|
134
|
+
id: string;
|
|
133
135
|
name: string;
|
|
136
|
+
params: {
|
|
137
|
+
id: string;
|
|
138
|
+
name: string;
|
|
139
|
+
description?: string | undefined;
|
|
140
|
+
nullable?: boolean | undefined;
|
|
141
|
+
required?: boolean | undefined;
|
|
142
|
+
semanticType?: string | undefined;
|
|
143
|
+
schema?: unknown;
|
|
144
|
+
}[];
|
|
145
|
+
description?: string | undefined;
|
|
146
|
+
}[];
|
|
147
|
+
links: {
|
|
134
148
|
id: string;
|
|
149
|
+
name: string;
|
|
135
150
|
targetObjectTypeId: string | string[];
|
|
136
151
|
description?: string | undefined;
|
|
137
|
-
cardinality?: "many" | "one" | undefined;
|
|
138
152
|
properties?: {
|
|
139
|
-
name: string;
|
|
140
153
|
id: string;
|
|
154
|
+
name: string;
|
|
141
155
|
description?: string | undefined;
|
|
142
156
|
query?: {
|
|
143
157
|
text?: boolean | undefined;
|
|
@@ -149,33 +163,19 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
149
163
|
vector?: boolean | undefined;
|
|
150
164
|
weight?: number | undefined;
|
|
151
165
|
} | undefined;
|
|
152
|
-
mode?: "telemetry" | "static" | undefined;
|
|
153
|
-
required?: boolean | undefined;
|
|
154
166
|
nullable?: boolean | undefined;
|
|
167
|
+
required?: boolean | undefined;
|
|
168
|
+
mode?: "telemetry" | "static" | undefined;
|
|
155
169
|
primary?: boolean | undefined;
|
|
156
170
|
semanticType?: string | undefined;
|
|
157
171
|
schema?: unknown;
|
|
158
172
|
}[] | undefined;
|
|
159
|
-
|
|
160
|
-
actions: {
|
|
161
|
-
name: string;
|
|
162
|
-
params: {
|
|
163
|
-
name: string;
|
|
164
|
-
id: string;
|
|
165
|
-
description?: string | undefined;
|
|
166
|
-
required?: boolean | undefined;
|
|
167
|
-
nullable?: boolean | undefined;
|
|
168
|
-
semanticType?: string | undefined;
|
|
169
|
-
schema?: unknown;
|
|
170
|
-
}[];
|
|
171
|
-
id: string;
|
|
172
|
-
description?: string | undefined;
|
|
173
|
+
cardinality?: "many" | "one" | undefined;
|
|
173
174
|
}[];
|
|
174
175
|
name: string;
|
|
175
|
-
id: string;
|
|
176
176
|
properties: {
|
|
177
|
-
name: string;
|
|
178
177
|
id: string;
|
|
178
|
+
name: string;
|
|
179
179
|
description?: string | undefined;
|
|
180
180
|
query?: {
|
|
181
181
|
text?: boolean | undefined;
|
|
@@ -187,9 +187,9 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
187
187
|
vector?: boolean | undefined;
|
|
188
188
|
weight?: number | undefined;
|
|
189
189
|
} | undefined;
|
|
190
|
-
mode?: "telemetry" | "static" | undefined;
|
|
191
|
-
required?: boolean | undefined;
|
|
192
190
|
nullable?: boolean | undefined;
|
|
191
|
+
required?: boolean | undefined;
|
|
192
|
+
mode?: "telemetry" | "static" | undefined;
|
|
193
193
|
primary?: boolean | undefined;
|
|
194
194
|
semanticType?: string | undefined;
|
|
195
195
|
schema?: unknown;
|
|
@@ -199,11 +199,11 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
199
199
|
implements?: string[] | undefined;
|
|
200
200
|
search?: {
|
|
201
201
|
exact?: string[] | undefined;
|
|
202
|
+
title?: string | undefined;
|
|
202
203
|
vector?: {
|
|
203
204
|
property: string;
|
|
204
205
|
source: string[];
|
|
205
206
|
} | undefined;
|
|
206
|
-
title?: string | undefined;
|
|
207
207
|
defaultText?: string[] | undefined;
|
|
208
208
|
} | undefined;
|
|
209
209
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../src/routes/ontology.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../src/routes/ontology.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkFpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CtE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerPipelineRoutes(app: Elysia,
|
|
3
|
+
export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -76,15 +76,13 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
76
76
|
}[];
|
|
77
77
|
};
|
|
78
78
|
latestRun: {
|
|
79
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
80
79
|
projectId: string;
|
|
81
80
|
id: string;
|
|
82
|
-
|
|
81
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
82
|
+
queuedAt: string;
|
|
83
83
|
pipelineId: string;
|
|
84
|
-
error?:
|
|
85
|
-
|
|
86
|
-
name?: string | undefined;
|
|
87
|
-
} | undefined;
|
|
84
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
85
|
+
startedAt?: string | undefined;
|
|
88
86
|
finishedAt?: string | undefined;
|
|
89
87
|
output?: {
|
|
90
88
|
datasetId: string;
|
|
@@ -169,15 +167,13 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
169
167
|
}[];
|
|
170
168
|
};
|
|
171
169
|
latestRun: {
|
|
172
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
173
170
|
projectId: string;
|
|
174
171
|
id: string;
|
|
175
|
-
|
|
172
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
173
|
+
queuedAt: string;
|
|
176
174
|
pipelineId: string;
|
|
177
|
-
error?:
|
|
178
|
-
|
|
179
|
-
name?: string | undefined;
|
|
180
|
-
} | undefined;
|
|
175
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
176
|
+
startedAt?: string | undefined;
|
|
181
177
|
finishedAt?: string | undefined;
|
|
182
178
|
output?: {
|
|
183
179
|
datasetId: string;
|
|
@@ -209,27 +205,25 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
209
205
|
body: unknown;
|
|
210
206
|
params: {};
|
|
211
207
|
query: {
|
|
212
|
-
status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
208
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
209
|
+
startedAfter?: string | undefined;
|
|
210
|
+
startedBefore?: string | undefined;
|
|
213
211
|
limit?: string | undefined;
|
|
214
212
|
offset?: string | undefined;
|
|
215
213
|
order?: "asc" | "desc" | undefined;
|
|
216
|
-
startedAfter?: string | undefined;
|
|
217
|
-
startedBefore?: string | undefined;
|
|
218
214
|
pipelineId?: string | undefined;
|
|
219
215
|
};
|
|
220
216
|
headers: unknown;
|
|
221
217
|
response: {
|
|
222
218
|
200: {
|
|
223
219
|
runs: {
|
|
224
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
225
220
|
projectId: string;
|
|
226
221
|
id: string;
|
|
227
|
-
|
|
222
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
223
|
+
queuedAt: string;
|
|
228
224
|
pipelineId: string;
|
|
229
|
-
error?:
|
|
230
|
-
|
|
231
|
-
name?: string | undefined;
|
|
232
|
-
} | undefined;
|
|
225
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
226
|
+
startedAt?: string | undefined;
|
|
233
227
|
finishedAt?: string | undefined;
|
|
234
228
|
output?: {
|
|
235
229
|
datasetId: string;
|
|
@@ -272,15 +266,13 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
272
266
|
response: {
|
|
273
267
|
200: {
|
|
274
268
|
run: {
|
|
275
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
276
269
|
projectId: string;
|
|
277
270
|
id: string;
|
|
278
|
-
|
|
271
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
272
|
+
queuedAt: string;
|
|
279
273
|
pipelineId: string;
|
|
280
|
-
error?:
|
|
281
|
-
|
|
282
|
-
name?: string | undefined;
|
|
283
|
-
} | undefined;
|
|
274
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
275
|
+
startedAt?: string | undefined;
|
|
284
276
|
finishedAt?: string | undefined;
|
|
285
277
|
output?: {
|
|
286
278
|
datasetId: string;
|
|
@@ -288,9 +280,9 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
288
280
|
} | undefined;
|
|
289
281
|
};
|
|
290
282
|
steps: {
|
|
291
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
292
283
|
projectId: string;
|
|
293
284
|
id: string;
|
|
285
|
+
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
294
286
|
mode: "append" | "snapshot";
|
|
295
287
|
startedAt: string;
|
|
296
288
|
datasetId: string;
|
|
@@ -301,10 +293,7 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
301
293
|
pipelineId: string;
|
|
302
294
|
stepId: string;
|
|
303
295
|
pipelineRunId: string;
|
|
304
|
-
error?:
|
|
305
|
-
message: string;
|
|
306
|
-
name?: string | undefined;
|
|
307
|
-
} | undefined;
|
|
296
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
308
297
|
finishedAt?: string | undefined;
|
|
309
298
|
output?: {
|
|
310
299
|
datasetId: string;
|
|
@@ -351,6 +340,7 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
351
340
|
response: {
|
|
352
341
|
200: {
|
|
353
342
|
error: string;
|
|
343
|
+
code?: import("@sixb/core").SixbErrorCode;
|
|
354
344
|
} | {
|
|
355
345
|
runId: string;
|
|
356
346
|
jobId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/routes/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/routes/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA4C,YAAY,EAAE,MAAM,YAAY,CAAA;AAExF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAyHpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8KrE"}
|
package/dist/routes/project.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerProjectRoutes(app: Elysia,
|
|
3
|
+
export declare function registerProjectRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/routes/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/routes/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAIpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUpE"}
|