@sixb/server 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/frame.d.ts +5 -0
- package/dist/artifacts/frame.d.ts.map +1 -1
- package/dist/auth/browser-origin.d.ts +5 -1
- package/dist/auth/browser-origin.d.ts.map +1 -1
- package/dist/auth/experience.d.ts +1 -0
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/responses.d.ts +1 -1
- package/dist/auth/responses.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +19 -3
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/index.js +10093 -7553
- package/dist/index.js.map +51 -39
- package/dist/models/display.d.ts +27 -0
- package/dist/models/display.d.ts.map +1 -1
- package/dist/openapi/components.d.ts +14 -0
- package/dist/openapi/components.d.ts.map +1 -0
- package/dist/openapi/tags.d.ts +14 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +5 -5
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agent-approval-gate.d.ts +27 -0
- package/dist/routes/agent-approval-gate.d.ts.map +1 -0
- package/dist/routes/agent-approvals.d.ts +599 -0
- package/dist/routes/agent-approvals.d.ts.map +1 -0
- package/dist/routes/agent-children.d.ts +318 -0
- package/dist/routes/agent-children.d.ts.map +1 -0
- package/dist/routes/agent-memory.d.ts +267 -0
- package/dist/routes/agent-memory.d.ts.map +1 -0
- package/dist/routes/agents.d.ts +999 -80
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/artifact-frames.d.ts +3 -3
- package/dist/routes/artifact-frames.d.ts.map +1 -1
- package/dist/routes/artifacts.d.ts +790 -134
- package/dist/routes/artifacts.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +116 -10
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +50 -50
- package/dist/routes/connectors.d.ts +2 -2
- package/dist/routes/datasets.d.ts +20 -20
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/files.d.ts +14 -14
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +2 -2
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/model-calls.d.ts +155 -0
- package/dist/routes/model-calls.d.ts.map +1 -0
- package/dist/routes/model-generations.d.ts +400 -0
- package/dist/routes/model-generations.d.ts.map +1 -0
- package/dist/routes/models.d.ts +434 -1
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +71 -40
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +682 -0
- package/dist/routes/observed-agent-threads.d.ts.map +1 -0
- package/dist/routes/ontology.d.ts +66 -62
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +24 -24
- package/dist/routes/projections.d.ts +55 -55
- package/dist/routes/rules.d.ts +2 -2
- package/dist/routes/share-grants.d.ts +9 -9
- package/dist/routes/syncs.d.ts +46 -46
- package/dist/routes/users.d.ts +117 -0
- package/dist/routes/users.d.ts.map +1 -0
- package/dist/routes/webhook-runs.d.ts +1 -1
- package/dist/routes/workflows.d.ts +118 -52
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +7 -2
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +6 -6
- package/dist/routes/ws/logs.d.ts +14 -14
- package/dist/schemas/actions.d.ts +15 -15
- package/dist/schemas/activity.d.ts +48 -28
- package/dist/schemas/activity.d.ts.map +1 -1
- package/dist/schemas/agent-approvals.d.ts +1091 -0
- package/dist/schemas/agent-approvals.d.ts.map +1 -0
- package/dist/schemas/agent-memory.d.ts +250 -0
- package/dist/schemas/agent-memory.d.ts.map +1 -0
- package/dist/schemas/agents.d.ts +5442 -369
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1290 -411
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/ai-limits.d.ts +10 -10
- package/dist/schemas/ai-usage.d.ts +12 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -1
- package/dist/schemas/artifacts.d.ts +650 -98
- package/dist/schemas/artifacts.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +119 -46
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +22 -22
- package/dist/schemas/datasets.d.ts +98 -98
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +26 -26
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +24 -24
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +32 -32
- package/dist/schemas/models.d.ts +8889 -10
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +48 -12
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +127 -104
- package/dist/schemas/ontology.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +132 -132
- package/dist/schemas/projections.d.ts +314 -314
- package/dist/schemas/rules.d.ts +4 -4
- package/dist/schemas/share-grants.d.ts +30 -30
- package/dist/schemas/syncs.d.ts +49 -49
- package/dist/schemas/users.d.ts +72 -0
- package/dist/schemas/users.d.ts.map +1 -0
- package/dist/schemas/webhook-runs.d.ts +6 -6
- package/dist/schemas/workflows.d.ts +701 -186
- package/dist/schemas/workflows.d.ts.map +1 -1
- 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/package.json +7 -7
- package/src/artifacts/frame.ts +6 -1
- package/src/auth/browser-origin.ts +8 -3
- package/src/auth/experience.ts +1 -1
- package/src/auth/guard.ts +2 -2
- package/src/auth/public-routes.ts +6 -0
- package/src/auth/responses.ts +7 -6
- package/src/auth/scope.ts +32 -3
- package/src/models/display.ts +61 -16
- package/src/openapi/components.ts +54 -0
- package/src/openapi/tags.ts +12 -0
- package/src/registerRoutes.ts +14 -0
- package/src/routes/agent-api-gateway.ts +115 -91
- package/src/routes/agent-approval-gate.ts +213 -0
- package/src/routes/agent-approvals.ts +299 -0
- package/src/routes/agent-children.ts +209 -0
- package/src/routes/agent-memory.ts +210 -0
- package/src/routes/agents.ts +363 -142
- package/src/routes/ai-accounting.ts +4 -0
- package/src/routes/artifact-frames.ts +14 -8
- package/src/routes/artifacts.ts +297 -22
- package/src/routes/auth.ts +306 -13
- package/src/routes/files.ts +6 -7
- package/src/routes/model-calls.ts +120 -0
- package/src/routes/model-generations.ts +245 -0
- package/src/routes/models.ts +116 -9
- package/src/routes/objects.ts +55 -61
- package/src/routes/observed-agent-threads.ts +253 -0
- package/src/routes/ontology.ts +1 -0
- package/src/routes/users.ts +73 -0
- package/src/routes/workflows.ts +6 -9
- package/src/routes/ws/agents.ts +10 -5
- package/src/schemas/activity.ts +2 -0
- package/src/schemas/agent-approvals.ts +129 -0
- package/src/schemas/agent-memory.ts +96 -0
- package/src/schemas/agents.ts +239 -0
- package/src/schemas/ai-accounting.ts +40 -4
- package/src/schemas/ai-usage.ts +10 -0
- package/src/schemas/artifacts.ts +91 -3
- package/src/schemas/auth.ts +25 -0
- package/src/schemas/models.ts +197 -1
- package/src/schemas/objects.ts +181 -0
- package/src/schemas/ontology.ts +1 -0
- package/src/schemas/users.ts +24 -0
- package/src/schemas/workflows.ts +2 -0
- package/src/server.ts +9 -10
- package/src/utils/http.ts +2 -0
|
@@ -26,6 +26,7 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
|
|
|
26
26
|
response: {
|
|
27
27
|
200: {
|
|
28
28
|
id: string;
|
|
29
|
+
type: string;
|
|
29
30
|
webhooks: {
|
|
30
31
|
id: string;
|
|
31
32
|
method: "POST";
|
|
@@ -34,7 +35,6 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
|
|
|
34
35
|
hasVerify: boolean;
|
|
35
36
|
hasIdempotency: boolean;
|
|
36
37
|
}[];
|
|
37
|
-
type: string;
|
|
38
38
|
connection: {
|
|
39
39
|
authentication: "oauth2";
|
|
40
40
|
} | null;
|
|
@@ -67,6 +67,7 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
|
|
|
67
67
|
response: {
|
|
68
68
|
200: {
|
|
69
69
|
id: string;
|
|
70
|
+
type: string;
|
|
70
71
|
webhooks: {
|
|
71
72
|
id: string;
|
|
72
73
|
method: "POST";
|
|
@@ -75,7 +76,6 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
|
|
|
75
76
|
hasVerify: boolean;
|
|
76
77
|
hasIdempotency: boolean;
|
|
77
78
|
}[];
|
|
78
|
-
type: string;
|
|
79
79
|
connection: {
|
|
80
80
|
authentication: "oauth2";
|
|
81
81
|
} | null;
|
|
@@ -29,8 +29,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
29
29
|
kind: "dataset";
|
|
30
30
|
schema: {
|
|
31
31
|
columns: {
|
|
32
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
32
33
|
name: string;
|
|
33
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
34
34
|
nullable?: boolean | undefined;
|
|
35
35
|
}[];
|
|
36
36
|
};
|
|
@@ -84,8 +84,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
84
84
|
kind: "dataset";
|
|
85
85
|
schema: {
|
|
86
86
|
columns: {
|
|
87
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
87
88
|
name: string;
|
|
88
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
89
89
|
nullable?: boolean | undefined;
|
|
90
90
|
}[];
|
|
91
91
|
};
|
|
@@ -148,8 +148,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
148
148
|
mode: "append" | "schema" | "merge" | "snapshot";
|
|
149
149
|
schema: {
|
|
150
150
|
columns: {
|
|
151
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
151
152
|
name: string;
|
|
152
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
153
153
|
nullable?: boolean | undefined;
|
|
154
154
|
}[];
|
|
155
155
|
};
|
|
@@ -157,16 +157,16 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
157
157
|
datasetId: string;
|
|
158
158
|
versionId: string;
|
|
159
159
|
sizeBytes?: number | undefined;
|
|
160
|
+
inputs?: {
|
|
161
|
+
datasetId: string;
|
|
162
|
+
versionId: string;
|
|
163
|
+
}[] | undefined;
|
|
160
164
|
parentVersionId?: string | undefined;
|
|
161
165
|
producer?: {
|
|
162
|
-
kind: "
|
|
166
|
+
kind: "pipeline" | "sync" | "ingest";
|
|
163
167
|
id?: string | undefined;
|
|
164
168
|
runId?: string | undefined;
|
|
165
169
|
} | undefined;
|
|
166
|
-
inputs?: {
|
|
167
|
-
datasetId: string;
|
|
168
|
-
versionId: string;
|
|
169
|
-
}[] | undefined;
|
|
170
170
|
rowCount?: number | undefined;
|
|
171
171
|
}[];
|
|
172
172
|
};
|
|
@@ -211,8 +211,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
211
211
|
mode: "append" | "schema" | "merge" | "snapshot";
|
|
212
212
|
schema: {
|
|
213
213
|
columns: {
|
|
214
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
214
215
|
name: string;
|
|
215
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
216
216
|
nullable?: boolean | undefined;
|
|
217
217
|
}[];
|
|
218
218
|
};
|
|
@@ -220,16 +220,16 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
220
220
|
datasetId: string;
|
|
221
221
|
versionId: string;
|
|
222
222
|
sizeBytes?: number | undefined;
|
|
223
|
+
inputs?: {
|
|
224
|
+
datasetId: string;
|
|
225
|
+
versionId: string;
|
|
226
|
+
}[] | undefined;
|
|
223
227
|
parentVersionId?: string | undefined;
|
|
224
228
|
producer?: {
|
|
225
|
-
kind: "
|
|
229
|
+
kind: "pipeline" | "sync" | "ingest";
|
|
226
230
|
id?: string | undefined;
|
|
227
231
|
runId?: string | undefined;
|
|
228
232
|
} | undefined;
|
|
229
|
-
inputs?: {
|
|
230
|
-
datasetId: string;
|
|
231
|
-
versionId: string;
|
|
232
|
-
}[] | undefined;
|
|
233
233
|
rowCount?: number | undefined;
|
|
234
234
|
};
|
|
235
235
|
404: {
|
|
@@ -279,8 +279,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
279
279
|
mode: "append" | "schema" | "merge" | "snapshot";
|
|
280
280
|
schema: {
|
|
281
281
|
columns: {
|
|
282
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
282
283
|
name: string;
|
|
283
|
-
type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
284
284
|
nullable?: boolean | undefined;
|
|
285
285
|
}[];
|
|
286
286
|
};
|
|
@@ -288,16 +288,16 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
|
|
|
288
288
|
datasetId: string;
|
|
289
289
|
versionId: string;
|
|
290
290
|
sizeBytes?: number | undefined;
|
|
291
|
+
inputs?: {
|
|
292
|
+
datasetId: string;
|
|
293
|
+
versionId: string;
|
|
294
|
+
}[] | undefined;
|
|
291
295
|
parentVersionId?: string | undefined;
|
|
292
296
|
producer?: {
|
|
293
|
-
kind: "
|
|
297
|
+
kind: "pipeline" | "sync" | "ingest";
|
|
294
298
|
id?: string | undefined;
|
|
295
299
|
runId?: string | undefined;
|
|
296
300
|
} | undefined;
|
|
297
|
-
inputs?: {
|
|
298
|
-
datasetId: string;
|
|
299
|
-
versionId: string;
|
|
300
|
-
}[] | undefined;
|
|
301
301
|
rowCount?: number | undefined;
|
|
302
302
|
};
|
|
303
303
|
limit: number;
|
package/dist/routes/events.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): E
|
|
|
22
22
|
body: unknown;
|
|
23
23
|
params: {};
|
|
24
24
|
query: {
|
|
25
|
-
type?: "object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | undefined;
|
|
25
|
+
type?: "object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | undefined;
|
|
26
26
|
limit?: string | undefined;
|
|
27
|
-
topic?: "datasets" | "
|
|
27
|
+
topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "schedules" | "users" | "telemetry" | "links" | undefined;
|
|
28
28
|
afterCursor?: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
headers: unknown;
|
|
@@ -36,11 +36,11 @@ export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): E
|
|
|
36
36
|
} | {
|
|
37
37
|
projectId: string;
|
|
38
38
|
id: string;
|
|
39
|
-
type: "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed";
|
|
39
|
+
type: "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated";
|
|
40
40
|
occurredAt: string;
|
|
41
41
|
cursor: string;
|
|
42
42
|
payload: Record<string, unknown>;
|
|
43
|
-
topic: "datasets" | "
|
|
43
|
+
topic: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "schedules" | "users" | "telemetry" | "links";
|
|
44
44
|
partitionKey: string;
|
|
45
45
|
schemaVersion: 1;
|
|
46
46
|
origin?: {
|
package/dist/routes/files.d.ts
CHANGED
|
@@ -69,26 +69,26 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
69
69
|
headers: unknown;
|
|
70
70
|
response: {
|
|
71
71
|
200: {
|
|
72
|
-
|
|
73
|
-
} | {
|
|
74
|
-
url: string;
|
|
72
|
+
expiresAt: string;
|
|
75
73
|
uploadId: string;
|
|
76
74
|
strategy: "server";
|
|
77
75
|
method: "PUT";
|
|
78
|
-
|
|
76
|
+
url: string;
|
|
79
77
|
} | {
|
|
80
78
|
headers: Record<string, string>;
|
|
81
|
-
|
|
79
|
+
expiresAt: string;
|
|
82
80
|
uploadId: string;
|
|
83
81
|
strategy: "direct-put";
|
|
84
82
|
method: "PUT";
|
|
85
|
-
|
|
83
|
+
url: string;
|
|
86
84
|
} | {
|
|
85
|
+
expiresAt: string;
|
|
87
86
|
uploadId: string;
|
|
88
87
|
strategy: "multipart";
|
|
89
|
-
expiresAt: string;
|
|
90
88
|
partReceipt: "none" | "etag";
|
|
91
89
|
partSizeBytes: number;
|
|
90
|
+
} | {
|
|
91
|
+
error: string;
|
|
92
92
|
};
|
|
93
93
|
400: {
|
|
94
94
|
error: string;
|
|
@@ -97,22 +97,22 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
97
97
|
error: string;
|
|
98
98
|
};
|
|
99
99
|
201: {
|
|
100
|
-
|
|
100
|
+
expiresAt: string;
|
|
101
101
|
uploadId: string;
|
|
102
102
|
strategy: "server";
|
|
103
103
|
method: "PUT";
|
|
104
|
-
|
|
104
|
+
url: string;
|
|
105
105
|
} | {
|
|
106
106
|
headers: Record<string, string>;
|
|
107
|
-
|
|
107
|
+
expiresAt: string;
|
|
108
108
|
uploadId: string;
|
|
109
109
|
strategy: "direct-put";
|
|
110
110
|
method: "PUT";
|
|
111
|
-
|
|
111
|
+
url: string;
|
|
112
112
|
} | {
|
|
113
|
+
expiresAt: string;
|
|
113
114
|
uploadId: string;
|
|
114
115
|
strategy: "multipart";
|
|
115
|
-
expiresAt: string;
|
|
116
116
|
partReceipt: "none" | "etag";
|
|
117
117
|
partSizeBytes: number;
|
|
118
118
|
};
|
|
@@ -199,10 +199,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
199
199
|
response: {
|
|
200
200
|
200: {
|
|
201
201
|
headers: Record<string, string>;
|
|
202
|
-
|
|
202
|
+
expiresAt: string;
|
|
203
203
|
partNumber: number;
|
|
204
204
|
method: "PUT";
|
|
205
|
-
|
|
205
|
+
url: string;
|
|
206
206
|
};
|
|
207
207
|
404: {
|
|
208
208
|
error: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAClB,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"}
|
package/dist/routes/links.d.ts
CHANGED
|
@@ -30,8 +30,8 @@ export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): El
|
|
|
30
30
|
};
|
|
31
31
|
params: {
|
|
32
32
|
objectTypeId: string;
|
|
33
|
-
linkId: string;
|
|
34
33
|
objectId: string;
|
|
34
|
+
linkId: string;
|
|
35
35
|
};
|
|
36
36
|
query: unknown;
|
|
37
37
|
headers: unknown;
|
|
@@ -76,8 +76,8 @@ export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): El
|
|
|
76
76
|
body: unknown;
|
|
77
77
|
params: {
|
|
78
78
|
objectTypeId: string;
|
|
79
|
-
linkId: string;
|
|
80
79
|
objectId: string;
|
|
80
|
+
linkId: string;
|
|
81
81
|
};
|
|
82
82
|
query: {
|
|
83
83
|
targetTypeId: string;
|
package/dist/routes/logs.d.ts
CHANGED
|
@@ -22,12 +22,12 @@ export declare function registerLogRoutes(app: Elysia, _host: SixbHostView): Ely
|
|
|
22
22
|
body: unknown;
|
|
23
23
|
params: {};
|
|
24
24
|
query: {
|
|
25
|
-
kind?: "workflow" | "agent" | "action" | "
|
|
25
|
+
kind?: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection" | undefined;
|
|
26
26
|
runId?: string | undefined;
|
|
27
27
|
limit?: number | undefined;
|
|
28
|
-
afterCursor?: string | undefined;
|
|
29
|
-
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
30
28
|
direction?: "forward" | "backward" | undefined;
|
|
29
|
+
afterCursor?: string | undefined;
|
|
30
|
+
level?: "error" | "info" | "debug" | "warn" | undefined;
|
|
31
31
|
beforeCursor?: string | undefined;
|
|
32
32
|
};
|
|
33
33
|
headers: unknown;
|
|
@@ -40,7 +40,7 @@ export declare function registerLogRoutes(app: Elysia, _host: SixbHostView): Ely
|
|
|
40
40
|
context: {
|
|
41
41
|
run: {
|
|
42
42
|
id: string;
|
|
43
|
-
kind: "workflow" | "agent" | "action" | "
|
|
43
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
44
44
|
};
|
|
45
45
|
phase?: string | undefined;
|
|
46
46
|
attempt?: number | undefined;
|
|
@@ -48,7 +48,7 @@ export declare function registerLogRoutes(app: Elysia, _host: SixbHostView): Ely
|
|
|
48
48
|
};
|
|
49
49
|
message: string;
|
|
50
50
|
cursor: string;
|
|
51
|
-
level: "error" | "
|
|
51
|
+
level: "error" | "info" | "debug" | "warn";
|
|
52
52
|
fields?: Record<string, unknown> | undefined;
|
|
53
53
|
}[];
|
|
54
54
|
cursor?: string | undefined;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
|
+
import type { Elysia } from "elysia";
|
|
3
|
+
/** What a model call produced, as visible as the run that made it. */
|
|
4
|
+
export declare function registerModelCallRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
5
|
+
decorator: {};
|
|
6
|
+
store: {};
|
|
7
|
+
derive: {};
|
|
8
|
+
resolve: {};
|
|
9
|
+
}, {
|
|
10
|
+
typebox: {};
|
|
11
|
+
error: {};
|
|
12
|
+
}, {
|
|
13
|
+
schema: {};
|
|
14
|
+
standaloneSchema: {};
|
|
15
|
+
macro: {};
|
|
16
|
+
macroFn: {};
|
|
17
|
+
parser: {};
|
|
18
|
+
response: {};
|
|
19
|
+
}, {
|
|
20
|
+
api: {
|
|
21
|
+
ai: {
|
|
22
|
+
"model-calls": {
|
|
23
|
+
":callId": {
|
|
24
|
+
files: {
|
|
25
|
+
get: {
|
|
26
|
+
body: unknown;
|
|
27
|
+
params: {
|
|
28
|
+
callId: string;
|
|
29
|
+
};
|
|
30
|
+
query: unknown;
|
|
31
|
+
headers: unknown;
|
|
32
|
+
response: {
|
|
33
|
+
200: {
|
|
34
|
+
callId: string;
|
|
35
|
+
files: {
|
|
36
|
+
blobId: string;
|
|
37
|
+
digest: string;
|
|
38
|
+
sizeBytes: number;
|
|
39
|
+
fileName?: string | undefined;
|
|
40
|
+
mediaType?: string | undefined;
|
|
41
|
+
logicalPath?: string | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
recordedAt: string;
|
|
44
|
+
};
|
|
45
|
+
404: {
|
|
46
|
+
error: string;
|
|
47
|
+
};
|
|
48
|
+
422: {
|
|
49
|
+
type: "validation";
|
|
50
|
+
on: string;
|
|
51
|
+
summary?: string;
|
|
52
|
+
message?: string;
|
|
53
|
+
found?: unknown;
|
|
54
|
+
property?: string;
|
|
55
|
+
expected?: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
} & {
|
|
65
|
+
api: {
|
|
66
|
+
ai: {
|
|
67
|
+
"model-calls": {
|
|
68
|
+
":callId": {
|
|
69
|
+
files: {
|
|
70
|
+
content: {
|
|
71
|
+
get: {
|
|
72
|
+
body: unknown;
|
|
73
|
+
params: {
|
|
74
|
+
callId: string;
|
|
75
|
+
};
|
|
76
|
+
query: {
|
|
77
|
+
path: string;
|
|
78
|
+
disposition?: "inline" | "attachment" | undefined;
|
|
79
|
+
v?: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
headers: unknown;
|
|
82
|
+
response: {
|
|
83
|
+
200: Response | {
|
|
84
|
+
readonly error: string;
|
|
85
|
+
};
|
|
86
|
+
422: {
|
|
87
|
+
type: "validation";
|
|
88
|
+
on: string;
|
|
89
|
+
summary?: string;
|
|
90
|
+
message?: string;
|
|
91
|
+
found?: unknown;
|
|
92
|
+
property?: string;
|
|
93
|
+
expected?: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
} & {
|
|
104
|
+
api: {
|
|
105
|
+
ai: {
|
|
106
|
+
"model-calls": {
|
|
107
|
+
":callId": {
|
|
108
|
+
files: {
|
|
109
|
+
content: {
|
|
110
|
+
head: {
|
|
111
|
+
body: unknown;
|
|
112
|
+
params: {
|
|
113
|
+
callId: string;
|
|
114
|
+
};
|
|
115
|
+
query: {
|
|
116
|
+
path: string;
|
|
117
|
+
disposition?: "inline" | "attachment" | undefined;
|
|
118
|
+
v?: string | undefined;
|
|
119
|
+
};
|
|
120
|
+
headers: unknown;
|
|
121
|
+
response: {
|
|
122
|
+
200: Response | {
|
|
123
|
+
readonly error: string;
|
|
124
|
+
};
|
|
125
|
+
422: {
|
|
126
|
+
type: "validation";
|
|
127
|
+
on: string;
|
|
128
|
+
summary?: string;
|
|
129
|
+
message?: string;
|
|
130
|
+
found?: unknown;
|
|
131
|
+
property?: string;
|
|
132
|
+
expected?: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
}, {
|
|
143
|
+
derive: {};
|
|
144
|
+
resolve: {};
|
|
145
|
+
schema: {};
|
|
146
|
+
standaloneSchema: {};
|
|
147
|
+
response: {};
|
|
148
|
+
}, {
|
|
149
|
+
derive: {};
|
|
150
|
+
resolve: {};
|
|
151
|
+
schema: {};
|
|
152
|
+
standaloneSchema: {};
|
|
153
|
+
response: {};
|
|
154
|
+
}>;
|
|
155
|
+
//# sourceMappingURL=model-calls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-calls.d.ts","sourceRoot":"","sources":["../../src/routes/model-calls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwDpC,sEAAsE;AACtE,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DtE"}
|