@sixb/server 0.1.0 → 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 +21 -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/files/content.d.ts +11 -0
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.js +4164 -3541
- package/dist/index.js.map +57 -52
- 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 +90 -90
- 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 +15 -9
- 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 +62 -62
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +28 -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 +27 -30
- 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 +132 -107
- 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 +443 -440
- 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 +168 -168
- 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 +29 -23
- package/dist/schemas/datasets.d.ts.map +1 -1
- 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 +174 -174
- package/dist/schemas/pipelines.d.ts +131 -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 +88 -124
- 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 +792 -406
- 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 +8 -5
- 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 +34 -30
- package/src/auth/session-cookies.ts +3 -3
- package/src/connectors/http.ts +110 -0
- package/src/files/content.ts +11 -0
- package/src/openapi/tags.ts +9 -1
- package/src/registerRoutes.ts +34 -23
- package/src/routes/action-runs.ts +49 -42
- package/src/routes/actions.ts +7 -13
- package/src/routes/agent-api-gateway.ts +87 -42
- 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 +24 -31
- package/src/routes/links.ts +32 -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 +260 -259
- 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/datasets.ts +3 -2
- package/src/schemas/pipelines.ts +24 -40
- package/src/schemas/projections.ts +17 -3
- package/src/schemas/syncs.ts +16 -10
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +42 -25
- 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,22 +25,30 @@ 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
|
-
mode?: "telemetry" | "static" | undefined;
|
|
39
|
-
required?: boolean | undefined;
|
|
40
|
-
nullable?: boolean | undefined;
|
|
41
|
-
primary?: boolean | undefined;
|
|
42
|
-
semanticType?: string | undefined;
|
|
43
|
-
schema?: unknown;
|
|
44
52
|
query?: {
|
|
45
53
|
text?: boolean | undefined;
|
|
46
54
|
exact?: boolean | undefined;
|
|
@@ -51,34 +59,20 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
51
59
|
vector?: boolean | undefined;
|
|
52
60
|
weight?: number | undefined;
|
|
53
61
|
} | undefined;
|
|
54
|
-
}[] | undefined;
|
|
55
|
-
}[];
|
|
56
|
-
actions: {
|
|
57
|
-
name: string;
|
|
58
|
-
params: {
|
|
59
|
-
name: string;
|
|
60
|
-
id: string;
|
|
61
|
-
description?: string | undefined;
|
|
62
|
-
required?: boolean | undefined;
|
|
63
62
|
nullable?: boolean | undefined;
|
|
63
|
+
required?: boolean | undefined;
|
|
64
|
+
mode?: "telemetry" | "static" | undefined;
|
|
65
|
+
primary?: boolean | undefined;
|
|
64
66
|
semanticType?: string | undefined;
|
|
65
67
|
schema?: unknown;
|
|
66
|
-
}[];
|
|
67
|
-
|
|
68
|
-
description?: string | undefined;
|
|
68
|
+
}[] | 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
|
-
mode?: "telemetry" | "static" | undefined;
|
|
77
|
-
required?: boolean | undefined;
|
|
78
|
-
nullable?: boolean | undefined;
|
|
79
|
-
primary?: boolean | undefined;
|
|
80
|
-
semanticType?: string | undefined;
|
|
81
|
-
schema?: unknown;
|
|
82
76
|
query?: {
|
|
83
77
|
text?: boolean | undefined;
|
|
84
78
|
exact?: boolean | undefined;
|
|
@@ -89,17 +83,23 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
89
83
|
vector?: boolean | undefined;
|
|
90
84
|
weight?: number | undefined;
|
|
91
85
|
} | undefined;
|
|
86
|
+
nullable?: boolean | undefined;
|
|
87
|
+
required?: boolean | undefined;
|
|
88
|
+
mode?: "telemetry" | "static" | undefined;
|
|
89
|
+
primary?: boolean | undefined;
|
|
90
|
+
semanticType?: string | undefined;
|
|
91
|
+
schema?: unknown;
|
|
92
92
|
}[];
|
|
93
93
|
description?: string | undefined;
|
|
94
94
|
extends?: string | undefined;
|
|
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,22 +129,30 @@ 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
|
-
mode?: "telemetry" | "static" | undefined;
|
|
143
|
-
required?: boolean | undefined;
|
|
144
|
-
nullable?: boolean | undefined;
|
|
145
|
-
primary?: boolean | undefined;
|
|
146
|
-
semanticType?: string | undefined;
|
|
147
|
-
schema?: unknown;
|
|
148
156
|
query?: {
|
|
149
157
|
text?: boolean | undefined;
|
|
150
158
|
exact?: boolean | undefined;
|
|
@@ -155,34 +163,20 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
155
163
|
vector?: boolean | undefined;
|
|
156
164
|
weight?: number | undefined;
|
|
157
165
|
} | undefined;
|
|
158
|
-
}[] | undefined;
|
|
159
|
-
}[];
|
|
160
|
-
actions: {
|
|
161
|
-
name: string;
|
|
162
|
-
params: {
|
|
163
|
-
name: string;
|
|
164
|
-
id: string;
|
|
165
|
-
description?: string | undefined;
|
|
166
|
-
required?: boolean | undefined;
|
|
167
166
|
nullable?: boolean | undefined;
|
|
167
|
+
required?: boolean | undefined;
|
|
168
|
+
mode?: "telemetry" | "static" | undefined;
|
|
169
|
+
primary?: boolean | undefined;
|
|
168
170
|
semanticType?: string | undefined;
|
|
169
171
|
schema?: unknown;
|
|
170
|
-
}[];
|
|
171
|
-
|
|
172
|
-
description?: string | undefined;
|
|
172
|
+
}[] | 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
|
-
mode?: "telemetry" | "static" | undefined;
|
|
181
|
-
required?: boolean | undefined;
|
|
182
|
-
nullable?: boolean | undefined;
|
|
183
|
-
primary?: boolean | undefined;
|
|
184
|
-
semanticType?: string | undefined;
|
|
185
|
-
schema?: unknown;
|
|
186
180
|
query?: {
|
|
187
181
|
text?: boolean | undefined;
|
|
188
182
|
exact?: boolean | undefined;
|
|
@@ -193,17 +187,23 @@ export declare function registerOntologyRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
193
187
|
vector?: boolean | undefined;
|
|
194
188
|
weight?: number | undefined;
|
|
195
189
|
} | undefined;
|
|
190
|
+
nullable?: boolean | undefined;
|
|
191
|
+
required?: boolean | undefined;
|
|
192
|
+
mode?: "telemetry" | "static" | undefined;
|
|
193
|
+
primary?: boolean | undefined;
|
|
194
|
+
semanticType?: string | undefined;
|
|
195
|
+
schema?: unknown;
|
|
196
196
|
}[];
|
|
197
197
|
description?: string | undefined;
|
|
198
198
|
extends?: string | undefined;
|
|
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: {};
|
|
@@ -47,6 +47,7 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
47
47
|
}[];
|
|
48
48
|
};
|
|
49
49
|
description?: string | undefined;
|
|
50
|
+
primaryKey?: string | string[] | undefined;
|
|
50
51
|
partitionBy?: string[] | undefined;
|
|
51
52
|
};
|
|
52
53
|
inputs: {
|
|
@@ -61,6 +62,7 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
61
62
|
}[];
|
|
62
63
|
};
|
|
63
64
|
description?: string | undefined;
|
|
65
|
+
primaryKey?: string | string[] | undefined;
|
|
64
66
|
partitionBy?: string[] | undefined;
|
|
65
67
|
};
|
|
66
68
|
}[];
|
|
@@ -74,15 +76,13 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
74
76
|
}[];
|
|
75
77
|
};
|
|
76
78
|
latestRun: {
|
|
77
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
78
79
|
projectId: string;
|
|
79
80
|
id: string;
|
|
80
|
-
|
|
81
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
82
|
+
queuedAt: string;
|
|
81
83
|
pipelineId: string;
|
|
82
|
-
error?:
|
|
83
|
-
|
|
84
|
-
name?: string | undefined;
|
|
85
|
-
} | undefined;
|
|
84
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
85
|
+
startedAt?: string | undefined;
|
|
86
86
|
finishedAt?: string | undefined;
|
|
87
87
|
output?: {
|
|
88
88
|
datasetId: string;
|
|
@@ -138,6 +138,7 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
138
138
|
}[];
|
|
139
139
|
};
|
|
140
140
|
description?: string | undefined;
|
|
141
|
+
primaryKey?: string | string[] | undefined;
|
|
141
142
|
partitionBy?: string[] | undefined;
|
|
142
143
|
};
|
|
143
144
|
inputs: {
|
|
@@ -152,6 +153,7 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
152
153
|
}[];
|
|
153
154
|
};
|
|
154
155
|
description?: string | undefined;
|
|
156
|
+
primaryKey?: string | string[] | undefined;
|
|
155
157
|
partitionBy?: string[] | undefined;
|
|
156
158
|
};
|
|
157
159
|
}[];
|
|
@@ -165,15 +167,13 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
165
167
|
}[];
|
|
166
168
|
};
|
|
167
169
|
latestRun: {
|
|
168
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
169
170
|
projectId: string;
|
|
170
171
|
id: string;
|
|
171
|
-
|
|
172
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
173
|
+
queuedAt: string;
|
|
172
174
|
pipelineId: string;
|
|
173
|
-
error?:
|
|
174
|
-
|
|
175
|
-
name?: string | undefined;
|
|
176
|
-
} | undefined;
|
|
175
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
176
|
+
startedAt?: string | undefined;
|
|
177
177
|
finishedAt?: string | undefined;
|
|
178
178
|
output?: {
|
|
179
179
|
datasetId: string;
|
|
@@ -205,27 +205,25 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
205
205
|
body: unknown;
|
|
206
206
|
params: {};
|
|
207
207
|
query: {
|
|
208
|
-
status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
208
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
209
|
+
startedAfter?: string | undefined;
|
|
210
|
+
startedBefore?: string | undefined;
|
|
209
211
|
limit?: string | undefined;
|
|
210
212
|
offset?: string | undefined;
|
|
211
213
|
order?: "asc" | "desc" | undefined;
|
|
212
|
-
startedAfter?: string | undefined;
|
|
213
|
-
startedBefore?: string | undefined;
|
|
214
214
|
pipelineId?: string | undefined;
|
|
215
215
|
};
|
|
216
216
|
headers: unknown;
|
|
217
217
|
response: {
|
|
218
218
|
200: {
|
|
219
219
|
runs: {
|
|
220
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
221
220
|
projectId: string;
|
|
222
221
|
id: string;
|
|
223
|
-
|
|
222
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
223
|
+
queuedAt: string;
|
|
224
224
|
pipelineId: string;
|
|
225
|
-
error?:
|
|
226
|
-
|
|
227
|
-
name?: string | undefined;
|
|
228
|
-
} | undefined;
|
|
225
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
226
|
+
startedAt?: string | undefined;
|
|
229
227
|
finishedAt?: string | undefined;
|
|
230
228
|
output?: {
|
|
231
229
|
datasetId: string;
|
|
@@ -268,15 +266,13 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
268
266
|
response: {
|
|
269
267
|
200: {
|
|
270
268
|
run: {
|
|
271
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
272
269
|
projectId: string;
|
|
273
270
|
id: string;
|
|
274
|
-
|
|
271
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
272
|
+
queuedAt: string;
|
|
275
273
|
pipelineId: string;
|
|
276
|
-
error?:
|
|
277
|
-
|
|
278
|
-
name?: string | undefined;
|
|
279
|
-
} | undefined;
|
|
274
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
275
|
+
startedAt?: string | undefined;
|
|
280
276
|
finishedAt?: string | undefined;
|
|
281
277
|
output?: {
|
|
282
278
|
datasetId: string;
|
|
@@ -284,9 +280,9 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
284
280
|
} | undefined;
|
|
285
281
|
};
|
|
286
282
|
steps: {
|
|
287
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
288
283
|
projectId: string;
|
|
289
284
|
id: string;
|
|
285
|
+
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
290
286
|
mode: "append" | "snapshot";
|
|
291
287
|
startedAt: string;
|
|
292
288
|
datasetId: string;
|
|
@@ -297,10 +293,7 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
297
293
|
pipelineId: string;
|
|
298
294
|
stepId: string;
|
|
299
295
|
pipelineRunId: string;
|
|
300
|
-
error?:
|
|
301
|
-
message: string;
|
|
302
|
-
name?: string | undefined;
|
|
303
|
-
} | undefined;
|
|
296
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
304
297
|
finishedAt?: string | undefined;
|
|
305
298
|
output?: {
|
|
306
299
|
datasetId: string;
|
|
@@ -347,6 +340,7 @@ export declare function registerPipelineRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
347
340
|
response: {
|
|
348
341
|
200: {
|
|
349
342
|
error: string;
|
|
343
|
+
code?: import("@sixb/core").SixbErrorCode;
|
|
350
344
|
} | {
|
|
351
345
|
runId: string;
|
|
352
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"}
|