@sixb/server 0.1.18 → 0.1.19
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/actions/serialize.d.ts +7 -0
- package/dist/actions/serialize.d.ts.map +1 -0
- package/dist/index.js +660 -685
- package/dist/index.js.map +14 -13
- package/dist/routes/action-runs.d.ts +11 -13
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +44 -13
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +20 -20
- package/dist/routes/connector-connection-runs.d.ts +21 -21
- package/dist/routes/connector-connections.d.ts +8 -8
- package/dist/routes/connectors.d.ts +2 -2
- package/dist/routes/datasets.d.ts +5 -5
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/files.d.ts +15 -12
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +6 -6
- package/dist/routes/pipelines.d.ts +16 -16
- package/dist/routes/projections.d.ts +49 -49
- package/dist/routes/syncs.d.ts +10 -10
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +48 -48
- package/dist/routes/ws/events.d.ts +6 -9
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +100 -84
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +20 -20
- package/dist/schemas/ai-limits.d.ts +10 -10
- package/dist/schemas/connectors.d.ts +8 -8
- package/dist/schemas/datasets.d.ts +40 -40
- package/dist/schemas/events.d.ts +24 -24
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +4 -4
- package/dist/schemas/ontology.d.ts +40 -40
- package/dist/schemas/pipelines.d.ts +92 -92
- package/dist/schemas/projections.d.ts +290 -290
- package/dist/schemas/syncs.d.ts +34 -34
- package/dist/schemas/webhook-runs.d.ts +8 -8
- package/dist/schemas/workflows.d.ts +160 -160
- package/dist/server.d.ts +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/request-body.d.ts +20 -6
- package/dist/utils/request-body.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/actions/serialize.ts +55 -0
- package/src/routes/action-runs.ts +1 -54
- package/src/routes/actions.ts +26 -8
- package/src/routes/agent-api-gateway.ts +18 -42
- package/src/routes/files.ts +15 -63
- package/src/routes/ws/events.ts +2 -12
- package/src/schemas/actions.ts +21 -18
- package/src/server.ts +21 -3
- package/src/utils/http.ts +2 -0
- package/src/utils/request-body.ts +55 -6
package/dist/routes/files.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
69
69
|
headers: unknown;
|
|
70
70
|
response: {
|
|
71
71
|
200: {
|
|
72
|
+
error: string;
|
|
73
|
+
} | {
|
|
72
74
|
url: string;
|
|
73
75
|
uploadId: string;
|
|
74
76
|
strategy: "server";
|
|
@@ -85,10 +87,8 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
85
87
|
uploadId: string;
|
|
86
88
|
strategy: "multipart";
|
|
87
89
|
expiresAt: string;
|
|
88
|
-
partReceipt: "
|
|
90
|
+
partReceipt: "none" | "etag";
|
|
89
91
|
partSizeBytes: number;
|
|
90
|
-
} | {
|
|
91
|
-
error: string;
|
|
92
92
|
};
|
|
93
93
|
400: {
|
|
94
94
|
error: string;
|
|
@@ -113,7 +113,7 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
113
113
|
uploadId: string;
|
|
114
114
|
strategy: "multipart";
|
|
115
115
|
expiresAt: string;
|
|
116
|
-
partReceipt: "
|
|
116
|
+
partReceipt: "none" | "etag";
|
|
117
117
|
partSizeBytes: number;
|
|
118
118
|
};
|
|
119
119
|
422: {
|
|
@@ -150,15 +150,18 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
150
150
|
404: {
|
|
151
151
|
error: string;
|
|
152
152
|
};
|
|
153
|
-
|
|
153
|
+
409: {
|
|
154
154
|
error: string;
|
|
155
155
|
};
|
|
156
|
-
|
|
156
|
+
400: {
|
|
157
157
|
error: string;
|
|
158
158
|
};
|
|
159
159
|
501: {
|
|
160
160
|
error: string;
|
|
161
161
|
};
|
|
162
|
+
413: {
|
|
163
|
+
error: string;
|
|
164
|
+
};
|
|
162
165
|
410: {
|
|
163
166
|
error: string;
|
|
164
167
|
};
|
|
@@ -204,10 +207,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
204
207
|
404: {
|
|
205
208
|
error: string;
|
|
206
209
|
};
|
|
207
|
-
|
|
210
|
+
409: {
|
|
208
211
|
error: string;
|
|
209
212
|
};
|
|
210
|
-
|
|
213
|
+
400: {
|
|
211
214
|
error: string;
|
|
212
215
|
};
|
|
213
216
|
501: {
|
|
@@ -265,10 +268,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
265
268
|
404: {
|
|
266
269
|
error: string;
|
|
267
270
|
};
|
|
268
|
-
|
|
271
|
+
409: {
|
|
269
272
|
error: string;
|
|
270
273
|
};
|
|
271
|
-
|
|
274
|
+
400: {
|
|
272
275
|
error: string;
|
|
273
276
|
};
|
|
274
277
|
501: {
|
|
@@ -313,10 +316,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
313
316
|
404: {
|
|
314
317
|
error: string;
|
|
315
318
|
};
|
|
316
|
-
|
|
319
|
+
409: {
|
|
317
320
|
error: string;
|
|
318
321
|
};
|
|
319
|
-
|
|
322
|
+
400: {
|
|
320
323
|
error: string;
|
|
321
324
|
};
|
|
322
325
|
501: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,YAAY,CAAA;AAKnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqBpC,eAAO,MAAM,qCAAqC,QAAiD,CAAA;AAEnG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,YAAY,CAAA;AAKnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqBpC,eAAO,MAAM,qCAAqC,QAAiD,CAAA;AAEnG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgbjE"}
|
|
@@ -49,11 +49,11 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
|
|
|
49
49
|
id: string;
|
|
50
50
|
name: string;
|
|
51
51
|
query?: {
|
|
52
|
-
text?: boolean | undefined;
|
|
53
52
|
exact?: boolean | undefined;
|
|
54
53
|
searchable?: boolean | undefined;
|
|
55
54
|
filterable?: boolean | undefined;
|
|
56
55
|
sortable?: boolean | undefined;
|
|
56
|
+
text?: boolean | undefined;
|
|
57
57
|
facet?: boolean | undefined;
|
|
58
58
|
weight?: number | undefined;
|
|
59
59
|
} | undefined;
|
|
@@ -72,17 +72,17 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
|
|
|
72
72
|
id: string;
|
|
73
73
|
name: string;
|
|
74
74
|
capabilities: {
|
|
75
|
-
text: boolean;
|
|
76
75
|
sortable: boolean;
|
|
76
|
+
text: boolean;
|
|
77
77
|
facet: boolean;
|
|
78
78
|
operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
|
|
79
79
|
};
|
|
80
80
|
query?: {
|
|
81
|
-
text?: boolean | undefined;
|
|
82
81
|
exact?: boolean | undefined;
|
|
83
82
|
searchable?: boolean | undefined;
|
|
84
83
|
filterable?: boolean | undefined;
|
|
85
84
|
sortable?: boolean | undefined;
|
|
85
|
+
text?: boolean | undefined;
|
|
86
86
|
facet?: boolean | undefined;
|
|
87
87
|
weight?: number | undefined;
|
|
88
88
|
} | undefined;
|
|
@@ -166,11 +166,11 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
|
|
|
166
166
|
id: string;
|
|
167
167
|
name: string;
|
|
168
168
|
query?: {
|
|
169
|
-
text?: boolean | undefined;
|
|
170
169
|
exact?: boolean | undefined;
|
|
171
170
|
searchable?: boolean | undefined;
|
|
172
171
|
filterable?: boolean | undefined;
|
|
173
172
|
sortable?: boolean | undefined;
|
|
173
|
+
text?: boolean | undefined;
|
|
174
174
|
facet?: boolean | undefined;
|
|
175
175
|
weight?: number | undefined;
|
|
176
176
|
} | undefined;
|
|
@@ -189,17 +189,17 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
|
|
|
189
189
|
id: string;
|
|
190
190
|
name: string;
|
|
191
191
|
capabilities: {
|
|
192
|
-
text: boolean;
|
|
193
192
|
sortable: boolean;
|
|
193
|
+
text: boolean;
|
|
194
194
|
facet: boolean;
|
|
195
195
|
operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
|
|
196
196
|
};
|
|
197
197
|
query?: {
|
|
198
|
-
text?: boolean | undefined;
|
|
199
198
|
exact?: boolean | undefined;
|
|
200
199
|
searchable?: boolean | undefined;
|
|
201
200
|
filterable?: boolean | undefined;
|
|
202
201
|
sortable?: boolean | undefined;
|
|
202
|
+
text?: boolean | undefined;
|
|
203
203
|
facet?: boolean | undefined;
|
|
204
204
|
weight?: number | undefined;
|
|
205
205
|
} | undefined;
|
|
@@ -42,7 +42,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
42
42
|
schema: {
|
|
43
43
|
columns: {
|
|
44
44
|
name: string;
|
|
45
|
-
type: "string" | "boolean" | "
|
|
45
|
+
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
46
46
|
nullable?: boolean | undefined;
|
|
47
47
|
}[];
|
|
48
48
|
};
|
|
@@ -58,7 +58,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
58
58
|
schema: {
|
|
59
59
|
columns: {
|
|
60
60
|
name: string;
|
|
61
|
-
type: "string" | "boolean" | "
|
|
61
|
+
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
62
62
|
nullable?: boolean | undefined;
|
|
63
63
|
}[];
|
|
64
64
|
};
|
|
@@ -78,11 +78,11 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
78
78
|
}[];
|
|
79
79
|
};
|
|
80
80
|
latestRun: {
|
|
81
|
-
status: "
|
|
81
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
82
82
|
projectId: string;
|
|
83
83
|
id: string;
|
|
84
|
-
queuedAt: string;
|
|
85
84
|
pipelineId: string;
|
|
85
|
+
queuedAt: string;
|
|
86
86
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
87
87
|
startedAt?: string | undefined;
|
|
88
88
|
finishedAt?: string | undefined;
|
|
@@ -135,7 +135,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
135
135
|
schema: {
|
|
136
136
|
columns: {
|
|
137
137
|
name: string;
|
|
138
|
-
type: "string" | "boolean" | "
|
|
138
|
+
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
139
139
|
nullable?: boolean | undefined;
|
|
140
140
|
}[];
|
|
141
141
|
};
|
|
@@ -151,7 +151,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
151
151
|
schema: {
|
|
152
152
|
columns: {
|
|
153
153
|
name: string;
|
|
154
|
-
type: "string" | "boolean" | "
|
|
154
|
+
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
155
155
|
nullable?: boolean | undefined;
|
|
156
156
|
}[];
|
|
157
157
|
};
|
|
@@ -171,11 +171,11 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
171
171
|
}[];
|
|
172
172
|
};
|
|
173
173
|
latestRun: {
|
|
174
|
-
status: "
|
|
174
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
175
175
|
projectId: string;
|
|
176
176
|
id: string;
|
|
177
|
-
queuedAt: string;
|
|
178
177
|
pipelineId: string;
|
|
178
|
+
queuedAt: string;
|
|
179
179
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
180
180
|
startedAt?: string | undefined;
|
|
181
181
|
finishedAt?: string | undefined;
|
|
@@ -209,7 +209,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
209
209
|
body: unknown;
|
|
210
210
|
params: {};
|
|
211
211
|
query: {
|
|
212
|
-
status?: "
|
|
212
|
+
status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
|
|
213
213
|
startedAfter?: string | undefined;
|
|
214
214
|
startedBefore?: string | undefined;
|
|
215
215
|
limit?: string | undefined;
|
|
@@ -221,11 +221,11 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
221
221
|
response: {
|
|
222
222
|
200: {
|
|
223
223
|
runs: {
|
|
224
|
-
status: "
|
|
224
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
225
225
|
projectId: string;
|
|
226
226
|
id: string;
|
|
227
|
-
queuedAt: string;
|
|
228
227
|
pipelineId: string;
|
|
228
|
+
queuedAt: string;
|
|
229
229
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
230
230
|
startedAt?: string | undefined;
|
|
231
231
|
finishedAt?: string | undefined;
|
|
@@ -270,11 +270,11 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
270
270
|
response: {
|
|
271
271
|
200: {
|
|
272
272
|
run: {
|
|
273
|
-
status: "
|
|
273
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
274
274
|
projectId: string;
|
|
275
275
|
id: string;
|
|
276
|
-
queuedAt: string;
|
|
277
276
|
pipelineId: string;
|
|
277
|
+
queuedAt: string;
|
|
278
278
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
279
279
|
startedAt?: string | undefined;
|
|
280
280
|
finishedAt?: string | undefined;
|
|
@@ -284,7 +284,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
284
284
|
} | undefined;
|
|
285
285
|
};
|
|
286
286
|
steps: {
|
|
287
|
-
status: "
|
|
287
|
+
status: "succeeded" | "failed" | "running" | "cancelled";
|
|
288
288
|
projectId: string;
|
|
289
289
|
id: string;
|
|
290
290
|
mode: "append" | "snapshot";
|
|
@@ -294,8 +294,8 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
294
294
|
datasetId: string;
|
|
295
295
|
versionId: string;
|
|
296
296
|
}[];
|
|
297
|
-
stepId: string;
|
|
298
297
|
pipelineId: string;
|
|
298
|
+
stepId: string;
|
|
299
299
|
pipelineRunId: string;
|
|
300
300
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
301
301
|
finishedAt?: string | undefined;
|
|
@@ -363,9 +363,9 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
363
363
|
};
|
|
364
364
|
202: {
|
|
365
365
|
runId: string;
|
|
366
|
-
queuedAt: string;
|
|
367
366
|
jobId: string;
|
|
368
367
|
pipelineId: string;
|
|
368
|
+
queuedAt: string;
|
|
369
369
|
};
|
|
370
370
|
422: {
|
|
371
371
|
type: "validation";
|