@sixb/server 0.1.25 → 0.2.0
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 +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/run-token.d.ts +28 -0
- package/dist/auth/run-token.d.ts.map +1 -0
- package/dist/auth/scope.d.ts +11 -13
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4999 -4151
- package/dist/index.js.map +47 -43
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +1 -1
- package/dist/routes/agent-approval-gate.d.ts +7 -4
- package/dist/routes/agent-approval-gate.d.ts.map +1 -1
- package/dist/routes/agent-approvals.d.ts +14 -5
- package/dist/routes/agent-approvals.d.ts.map +1 -1
- package/dist/routes/agent-children.d.ts +2 -2
- package/dist/routes/agent-computers.d.ts +338 -0
- package/dist/routes/agent-computers.d.ts.map +1 -0
- package/dist/routes/agent-runners.d.ts +74 -0
- package/dist/routes/agent-runners.d.ts.map +1 -0
- package/dist/routes/agents.d.ts +250 -16
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/artifacts.d.ts +5 -28
- package/dist/routes/artifacts.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +10 -1
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +93 -17
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/links.d.ts +121 -81
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +3 -3
- package/dist/routes/objects.d.ts +149 -58
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +25 -4
- package/dist/routes/observed-agent-threads.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +2 -2
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +124 -122
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +2 -2
- package/dist/routes/shared-access.d.ts +2 -2
- package/dist/routes/syncs.d.ts +34 -34
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +0 -50
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/users.d.ts +1 -0
- package/dist/routes/users.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +1 -1
- package/dist/routes/workflows.d.ts +25 -14
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +4 -1
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/actions.d.ts +3 -3
- package/dist/schemas/activity.d.ts +4 -4
- package/dist/schemas/agent-approvals.d.ts +21 -21
- package/dist/schemas/agents.d.ts +819 -88
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1114 -6
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +49 -2
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +303 -60
- package/dist/schemas/datasets.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +8 -8
- package/dist/schemas/lineage.d.ts +1272 -0
- package/dist/schemas/lineage.d.ts.map +1 -0
- package/dist/schemas/links.d.ts +4 -27
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +7 -26
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +12 -12
- package/dist/schemas/projections.d.ts +747 -733
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +4 -4
- package/dist/schemas/shared-access.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +24 -24
- package/dist/schemas/telemetry.d.ts +0 -13
- package/dist/schemas/telemetry.d.ts.map +1 -1
- package/dist/schemas/users.d.ts +8 -0
- package/dist/schemas/users.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +2 -2
- package/dist/schemas/workflows.d.ts +133 -44
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/request-body.d.ts +5 -0
- package/dist/utils/request-body.d.ts.map +1 -1
- package/dist/utils/request-timing.d.ts +18 -0
- package/dist/utils/request-timing.d.ts.map +1 -0
- package/package.json +7 -7
- package/src/auth/public-routes.ts +0 -6
- package/src/auth/run-token.ts +327 -0
- package/src/auth/scope.ts +16 -37
- package/src/index.ts +1 -0
- package/src/registerRoutes.ts +4 -2
- package/src/routes/agent-approval-gate.ts +40 -14
- package/src/routes/agent-approvals.ts +3 -3
- package/src/routes/agent-computers.ts +348 -0
- package/src/routes/agent-runners.ts +205 -0
- package/src/routes/agents.ts +193 -26
- package/src/routes/ai-accounting.ts +149 -12
- package/src/routes/artifacts.ts +55 -11
- package/src/routes/auth.ts +24 -2
- package/src/routes/datasets.ts +60 -5
- package/src/routes/links.ts +43 -76
- package/src/routes/objects.ts +49 -42
- package/src/routes/observed-agent-threads.ts +2 -2
- package/src/routes/pipelines.ts +5 -0
- package/src/routes/syncs.ts +4 -0
- package/src/routes/telemetry.ts +1 -42
- package/src/routes/users.ts +15 -2
- package/src/routes/ws/agents.ts +10 -1
- package/src/schemas/agents.ts +131 -1
- package/src/schemas/ai-accounting.ts +78 -15
- package/src/schemas/artifacts.ts +1 -1
- package/src/schemas/auth.ts +19 -0
- package/src/schemas/datasets.ts +36 -0
- package/src/schemas/lineage.ts +115 -0
- package/src/schemas/links.ts +3 -11
- package/src/schemas/objects.ts +6 -10
- package/src/schemas/projections.ts +2 -0
- package/src/schemas/telemetry.ts +0 -6
- package/src/schemas/users.ts +6 -0
- package/src/server.ts +53 -15
- package/src/utils/request-body.ts +10 -4
- package/src/utils/request-timing.ts +136 -0
- package/dist/routes/agent-api-gateway.d.ts +0 -4
- package/dist/routes/agent-api-gateway.d.ts.map +0 -1
- package/src/routes/agent-api-gateway.ts +0 -404
package/dist/routes/syncs.d.ts
CHANGED
|
@@ -31,23 +31,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
31
31
|
type: string;
|
|
32
32
|
};
|
|
33
33
|
mode: "append" | "merge" | "snapshot";
|
|
34
|
-
target: {
|
|
35
|
-
kind: "dataset";
|
|
36
|
-
dataset: {
|
|
37
|
-
id: string;
|
|
38
|
-
schema: {
|
|
39
|
-
columns: {
|
|
40
|
-
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
41
|
-
name: string;
|
|
42
|
-
nullable?: boolean | undefined;
|
|
43
|
-
}[];
|
|
44
|
-
};
|
|
45
|
-
description?: string | undefined;
|
|
46
|
-
primaryKey?: string | string[] | undefined;
|
|
47
|
-
sequenceBy?: string | undefined;
|
|
48
|
-
partitionBy?: string[] | undefined;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
34
|
triggers: {
|
|
52
35
|
type: "schedule";
|
|
53
36
|
scheduleId: string;
|
|
@@ -71,6 +54,23 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
71
54
|
commitMessage?: string | undefined;
|
|
72
55
|
rowsRead?: number | undefined;
|
|
73
56
|
} | null;
|
|
57
|
+
target: {
|
|
58
|
+
kind: "dataset";
|
|
59
|
+
dataset: {
|
|
60
|
+
id: string;
|
|
61
|
+
schema: {
|
|
62
|
+
columns: {
|
|
63
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
64
|
+
name: string;
|
|
65
|
+
nullable?: boolean | undefined;
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
68
|
+
description?: string | undefined;
|
|
69
|
+
primaryKey?: string | string[] | undefined;
|
|
70
|
+
sequenceBy?: string | undefined;
|
|
71
|
+
partitionBy?: string[] | undefined;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
74
|
}[];
|
|
75
75
|
422: {
|
|
76
76
|
type: "validation";
|
|
@@ -104,23 +104,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
104
104
|
type: string;
|
|
105
105
|
};
|
|
106
106
|
mode: "append" | "merge" | "snapshot";
|
|
107
|
-
target: {
|
|
108
|
-
kind: "dataset";
|
|
109
|
-
dataset: {
|
|
110
|
-
id: string;
|
|
111
|
-
schema: {
|
|
112
|
-
columns: {
|
|
113
|
-
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
114
|
-
name: string;
|
|
115
|
-
nullable?: boolean | undefined;
|
|
116
|
-
}[];
|
|
117
|
-
};
|
|
118
|
-
description?: string | undefined;
|
|
119
|
-
primaryKey?: string | string[] | undefined;
|
|
120
|
-
sequenceBy?: string | undefined;
|
|
121
|
-
partitionBy?: string[] | undefined;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
107
|
triggers: {
|
|
125
108
|
type: "schedule";
|
|
126
109
|
scheduleId: string;
|
|
@@ -144,6 +127,23 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
144
127
|
commitMessage?: string | undefined;
|
|
145
128
|
rowsRead?: number | undefined;
|
|
146
129
|
} | null;
|
|
130
|
+
target: {
|
|
131
|
+
kind: "dataset";
|
|
132
|
+
dataset: {
|
|
133
|
+
id: string;
|
|
134
|
+
schema: {
|
|
135
|
+
columns: {
|
|
136
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
137
|
+
name: string;
|
|
138
|
+
nullable?: boolean | undefined;
|
|
139
|
+
}[];
|
|
140
|
+
};
|
|
141
|
+
description?: string | undefined;
|
|
142
|
+
primaryKey?: string | string[] | undefined;
|
|
143
|
+
sequenceBy?: string | undefined;
|
|
144
|
+
partitionBy?: string[] | undefined;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
147
|
};
|
|
148
148
|
404: {
|
|
149
149
|
error: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/routes/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,YAAY,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/routes/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,YAAY,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsFpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoIjE"}
|
|
@@ -16,56 +16,6 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
16
16
|
parser: {};
|
|
17
17
|
response: {};
|
|
18
18
|
}, {
|
|
19
|
-
api: {
|
|
20
|
-
objects: {
|
|
21
|
-
":objectTypeId": {
|
|
22
|
-
":objectId": {
|
|
23
|
-
telemetry: {
|
|
24
|
-
":propertyId": {
|
|
25
|
-
post: {
|
|
26
|
-
body: {
|
|
27
|
-
at?: string | undefined;
|
|
28
|
-
value?: unknown;
|
|
29
|
-
unit?: string | undefined;
|
|
30
|
-
};
|
|
31
|
-
params: {
|
|
32
|
-
objectTypeId: string;
|
|
33
|
-
objectId: string;
|
|
34
|
-
propertyId: string;
|
|
35
|
-
};
|
|
36
|
-
query: unknown;
|
|
37
|
-
headers: unknown;
|
|
38
|
-
response: {
|
|
39
|
-
200: {
|
|
40
|
-
success: boolean;
|
|
41
|
-
};
|
|
42
|
-
404: {
|
|
43
|
-
error: string;
|
|
44
|
-
};
|
|
45
|
-
403: {
|
|
46
|
-
error: string;
|
|
47
|
-
};
|
|
48
|
-
400: {
|
|
49
|
-
error: string;
|
|
50
|
-
};
|
|
51
|
-
422: {
|
|
52
|
-
type: "validation";
|
|
53
|
-
on: string;
|
|
54
|
-
summary?: string;
|
|
55
|
-
message?: string;
|
|
56
|
-
found?: unknown;
|
|
57
|
-
property?: string;
|
|
58
|
-
expected?: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
} & {
|
|
69
19
|
api: {
|
|
70
20
|
telemetry: {
|
|
71
21
|
history: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/routes/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/routes/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA0BpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8HvE"}
|
package/dist/routes/users.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare function registerUserRoutes(app: Elysia, _host: SixbHostView): El
|
|
|
23
23
|
params: {};
|
|
24
24
|
query: {
|
|
25
25
|
status?: "active" | "all" | "suspended" | undefined;
|
|
26
|
+
email?: string | undefined;
|
|
26
27
|
search?: string | undefined;
|
|
27
28
|
limit?: number | undefined;
|
|
28
29
|
offset?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/routes/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AASpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/routes/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AASpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2ElE"}
|
|
@@ -28,8 +28,8 @@ export declare function registerWebhookRunRoutes(app: Elysia, host: SixbHostView
|
|
|
28
28
|
limit?: string | undefined;
|
|
29
29
|
offset?: string | undefined;
|
|
30
30
|
order?: "asc" | "desc" | undefined;
|
|
31
|
-
connectorId?: string | undefined;
|
|
32
31
|
idempotencyKey?: string | undefined;
|
|
32
|
+
connectorId?: string | undefined;
|
|
33
33
|
webhookId?: string | undefined;
|
|
34
34
|
};
|
|
35
35
|
headers: unknown;
|
|
@@ -58,7 +58,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
58
58
|
output: Record<string, import("../schemas/common").JsonValue>;
|
|
59
59
|
})[];
|
|
60
60
|
latestRun: {
|
|
61
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
61
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
|
|
62
62
|
projectId: string;
|
|
63
63
|
id: string;
|
|
64
64
|
requestedBy: {
|
|
@@ -131,7 +131,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
131
131
|
output: Record<string, import("../schemas/common").JsonValue>;
|
|
132
132
|
})[];
|
|
133
133
|
latestRun: {
|
|
134
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
134
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
|
|
135
135
|
projectId: string;
|
|
136
136
|
id: string;
|
|
137
137
|
requestedBy: {
|
|
@@ -314,8 +314,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
314
314
|
headers: unknown;
|
|
315
315
|
response: {
|
|
316
316
|
200: {
|
|
317
|
-
error: string;
|
|
318
|
-
} | {
|
|
319
317
|
intervention: {
|
|
320
318
|
status: "pending" | "cancelled" | "expired" | "submitted";
|
|
321
319
|
projectId: string;
|
|
@@ -345,6 +343,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
345
343
|
expiredAt?: string | undefined;
|
|
346
344
|
};
|
|
347
345
|
jobId: string;
|
|
346
|
+
} | {
|
|
347
|
+
error: string;
|
|
348
348
|
};
|
|
349
349
|
404: {
|
|
350
350
|
error: string;
|
|
@@ -475,7 +475,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
475
475
|
body: unknown;
|
|
476
476
|
params: {};
|
|
477
477
|
query: {
|
|
478
|
-
status?: "succeeded" | "failed" | "cancelled" | "
|
|
478
|
+
status?: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | undefined;
|
|
479
479
|
startedAfter?: string | undefined;
|
|
480
480
|
startedBefore?: string | undefined;
|
|
481
481
|
limit?: string | undefined;
|
|
@@ -487,7 +487,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
487
487
|
response: {
|
|
488
488
|
200: {
|
|
489
489
|
runs: {
|
|
490
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
490
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
|
|
491
491
|
projectId: string;
|
|
492
492
|
id: string;
|
|
493
493
|
requestedBy: {
|
|
@@ -536,7 +536,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
536
536
|
response: {
|
|
537
537
|
200: {
|
|
538
538
|
run: {
|
|
539
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
539
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
|
|
540
540
|
projectId: string;
|
|
541
541
|
id: string;
|
|
542
542
|
requestedBy: {
|
|
@@ -552,7 +552,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
552
552
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
553
553
|
};
|
|
554
554
|
nodes: {
|
|
555
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
555
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "running";
|
|
556
556
|
projectId: string;
|
|
557
557
|
id: string;
|
|
558
558
|
startedAt: string;
|
|
@@ -646,7 +646,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
646
646
|
prompt: string;
|
|
647
647
|
attempt: number;
|
|
648
648
|
nodeRunId: string;
|
|
649
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
649
|
+
error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
650
650
|
modelId?: string | undefined;
|
|
651
651
|
startedAt?: string | undefined;
|
|
652
652
|
completedAt?: string | undefined;
|
|
@@ -729,6 +729,17 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
729
729
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
730
730
|
dynamic?: boolean | undefined;
|
|
731
731
|
providerExecuted?: boolean | undefined;
|
|
732
|
+
outputFile?: {
|
|
733
|
+
path: string;
|
|
734
|
+
fileRef: {
|
|
735
|
+
blobId: string;
|
|
736
|
+
digest: string;
|
|
737
|
+
sizeBytes: number;
|
|
738
|
+
fileName?: string | undefined;
|
|
739
|
+
mediaType?: string | undefined;
|
|
740
|
+
logicalPath?: string | undefined;
|
|
741
|
+
};
|
|
742
|
+
} | undefined;
|
|
732
743
|
} | {
|
|
733
744
|
type: "tool-call";
|
|
734
745
|
input: import("../schemas/common").JsonValue;
|
|
@@ -776,7 +787,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
776
787
|
} | {
|
|
777
788
|
error: {
|
|
778
789
|
at: string;
|
|
779
|
-
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
790
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
780
791
|
message: string;
|
|
781
792
|
retryable: boolean;
|
|
782
793
|
details?: import("../schemas/common").JsonValue | undefined;
|
|
@@ -838,7 +849,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
838
849
|
response: {
|
|
839
850
|
200: {
|
|
840
851
|
run: {
|
|
841
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
852
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running";
|
|
842
853
|
projectId: string;
|
|
843
854
|
id: string;
|
|
844
855
|
requestedBy: {
|
|
@@ -854,7 +865,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
854
865
|
output?: Record<string, import("../schemas/common").JsonValue> | undefined;
|
|
855
866
|
};
|
|
856
867
|
nodes: {
|
|
857
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
868
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "running";
|
|
858
869
|
projectId: string;
|
|
859
870
|
id: string;
|
|
860
871
|
startedAt: string;
|
|
@@ -1102,12 +1113,12 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
1102
1113
|
headers: unknown;
|
|
1103
1114
|
response: {
|
|
1104
1115
|
200: {
|
|
1105
|
-
error: string;
|
|
1106
|
-
} | {
|
|
1107
1116
|
runId: string;
|
|
1108
1117
|
workflowId: string;
|
|
1109
1118
|
queuedAt: string;
|
|
1110
1119
|
jobId: string;
|
|
1120
|
+
} | {
|
|
1121
|
+
error: string;
|
|
1111
1122
|
};
|
|
1112
1123
|
404: {
|
|
1113
1124
|
error: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAenB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuhBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/routes/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,YAAY,CAAA;AAenB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuhBpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuxBrE"}
|
|
@@ -63,7 +63,10 @@ export declare function canAccessAgentRunStream(sixb: Sixb, runId: string): Prom
|
|
|
63
63
|
ok: false;
|
|
64
64
|
message: string;
|
|
65
65
|
}>;
|
|
66
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* A run's or an approval's activity reaches whoever reads the turn it belongs to; a computer
|
|
68
|
+
* session's, or a thread's move, its owner alone.
|
|
69
|
+
*/
|
|
67
70
|
export declare function canAccessAgentThreadActivity(sixb: Sixb, event: AgentActivityEvent): Promise<boolean>;
|
|
68
71
|
export declare function registerAgentStreamRoutes(app: Elysia, server: SixbServer): Elysia<"", {
|
|
69
72
|
decorator: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/agents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/agents.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,2BAA2B,CAAA;AAOlC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAA;AAEjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAgC9C,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK5B,CAAA;AAMF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GACpD;IACE,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAC/C,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd,CAcJ;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAMxD;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,OAAO,CAAC,CAMlB;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCxE"}
|
package/dist/routes/ws/logs.d.ts
CHANGED
|
@@ -19,46 +19,46 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
19
19
|
id: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
id: string;
|
|
22
|
-
kind: "workflow" | "agent" | "action" | "
|
|
22
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
23
23
|
}, {
|
|
24
24
|
id: string;
|
|
25
|
-
kind: "workflow" | "agent" | "action" | "
|
|
25
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
26
26
|
}>>;
|
|
27
27
|
afterCursor: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
type: "subscribe";
|
|
30
30
|
run?: {
|
|
31
31
|
id: string;
|
|
32
|
-
kind: "workflow" | "agent" | "action" | "
|
|
32
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
33
33
|
} | undefined;
|
|
34
|
-
kinds?: ("workflow" | "agent" | "action" | "
|
|
34
|
+
kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
|
|
35
35
|
afterCursor?: string | undefined;
|
|
36
36
|
levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
type: "subscribe";
|
|
39
39
|
run?: {
|
|
40
40
|
id: string;
|
|
41
|
-
kind: "workflow" | "agent" | "action" | "
|
|
41
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
42
42
|
} | undefined;
|
|
43
|
-
kinds?: ("workflow" | "agent" | "action" | "
|
|
43
|
+
kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
|
|
44
44
|
afterCursor?: string | undefined;
|
|
45
45
|
levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
type: "subscribe";
|
|
48
48
|
run?: {
|
|
49
49
|
id: string;
|
|
50
|
-
kind: "workflow" | "agent" | "action" | "
|
|
50
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
51
51
|
} | undefined;
|
|
52
|
-
kinds?: ("workflow" | "agent" | "action" | "
|
|
52
|
+
kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
|
|
53
53
|
afterCursor?: string | undefined;
|
|
54
54
|
levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
type: "subscribe";
|
|
57
57
|
run?: {
|
|
58
58
|
id: string;
|
|
59
|
-
kind: "workflow" | "agent" | "action" | "
|
|
59
|
+
kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
|
|
60
60
|
} | undefined;
|
|
61
|
-
kinds?: ("workflow" | "agent" | "action" | "
|
|
61
|
+
kinds?: ("workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
|
|
62
62
|
afterCursor?: string | undefined;
|
|
63
63
|
levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
|
|
64
64
|
}>, z.ZodObject<{
|
|
@@ -95,13 +95,13 @@ export declare const ActionRunInProgressResponseSchema: z.ZodObject<{
|
|
|
95
95
|
export declare const ActionRequestFailedResponseSchema: z.ZodObject<{
|
|
96
96
|
error: z.ZodString;
|
|
97
97
|
} & {
|
|
98
|
-
code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
|
|
98
|
+
code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
error: string;
|
|
101
|
-
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
101
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
102
102
|
}, {
|
|
103
103
|
error: string;
|
|
104
|
-
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
104
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
105
105
|
}>;
|
|
106
106
|
/** The server is stopping and refused the request before starting anything. */
|
|
107
107
|
export declare const RuntimeStoppingResponseSchema: z.ZodObject<{
|
|
@@ -623,7 +623,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
|
|
|
623
623
|
runVisible: z.ZodBoolean;
|
|
624
624
|
}, "strip", z.ZodTypeAny, {
|
|
625
625
|
at: string;
|
|
626
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
626
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
|
|
627
627
|
kind: "workflow";
|
|
628
628
|
runId: string;
|
|
629
629
|
workflowId: string;
|
|
@@ -631,7 +631,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
|
|
|
631
631
|
runVisible: boolean;
|
|
632
632
|
}, {
|
|
633
633
|
at: string;
|
|
634
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
634
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
|
|
635
635
|
kind: "workflow";
|
|
636
636
|
runId: string;
|
|
637
637
|
workflowId: string;
|
|
@@ -752,7 +752,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
|
|
|
752
752
|
} | undefined;
|
|
753
753
|
} | {
|
|
754
754
|
at: string;
|
|
755
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
755
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
|
|
756
756
|
kind: "workflow";
|
|
757
757
|
runId: string;
|
|
758
758
|
workflowId: string;
|
|
@@ -846,7 +846,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
|
|
|
846
846
|
} | undefined;
|
|
847
847
|
} | {
|
|
848
848
|
at: string;
|
|
849
|
-
status: "succeeded" | "failed" | "cancelled" | "
|
|
849
|
+
status: "succeeded" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "incomplete";
|
|
850
850
|
kind: "workflow";
|
|
851
851
|
runId: string;
|
|
852
852
|
workflowId: string;
|