@sixb/server 0.2.2 → 0.2.4
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/artifacts/frame.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +3 -0
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/shared-access.d.ts +23 -0
- package/dist/auth/shared-access.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +6 -1
- package/dist/connectors/http.d.ts.map +1 -1
- package/dist/index.js +2777 -683
- package/dist/index.js.map +41 -34
- package/dist/live/awareness.d.ts +48 -0
- package/dist/live/awareness.d.ts.map +1 -0
- package/dist/live/room.d.ts +198 -0
- package/dist/live/room.d.ts.map +1 -0
- package/dist/live/rooms.d.ts +67 -0
- package/dist/live/rooms.d.ts.map +1 -0
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +3 -3
- package/dist/routes/agent-approvals.d.ts +10 -10
- package/dist/routes/agent-children.d.ts +2 -2
- package/dist/routes/agent-computers.d.ts +32 -0
- package/dist/routes/agent-computers.d.ts.map +1 -1
- package/dist/routes/agent-runners.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +48 -48
- package/dist/routes/artifact-frames.d.ts +2 -1
- package/dist/routes/artifact-frames.d.ts.map +1 -1
- package/dist/routes/artifacts.d.ts +1713 -178
- package/dist/routes/artifacts.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +21 -21
- package/dist/routes/connector-connection-runs.d.ts +124 -5
- package/dist/routes/connector-connection-runs.d.ts.map +1 -1
- package/dist/routes/connector-connections.d.ts +9 -1
- package/dist/routes/connector-connections.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +5 -5
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/lake.d.ts +91 -0
- package/dist/routes/lake.d.ts.map +1 -0
- package/dist/routes/links.d.ts +6 -6
- package/dist/routes/logs.d.ts +2 -2
- package/dist/routes/model-generations.d.ts +2 -2
- package/dist/routes/objects.d.ts +6 -6
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +7 -7
- package/dist/routes/ontology.d.ts +6 -6
- package/dist/routes/pipelines.d.ts +8 -4
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +2 -2
- package/dist/routes/share-grants.d.ts +9 -9
- package/dist/routes/shared-access.d.ts +57 -2
- package/dist/routes/shared-access.d.ts.map +1 -1
- package/dist/routes/status.d.ts +11 -15
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +5 -2
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +7 -7
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +3 -3
- package/dist/routes/ws/artifacts.d.ts +57 -0
- package/dist/routes/ws/artifacts.d.ts.map +1 -0
- package/dist/routes/ws/events.d.ts +8 -7
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/index.d.ts +2 -1
- package/dist/routes/ws/index.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/shared-sockets.d.ts +52 -0
- package/dist/routes/ws/shared-sockets.d.ts.map +1 -0
- package/dist/schemas/actions.d.ts +7 -7
- package/dist/schemas/activity.d.ts +8 -8
- package/dist/schemas/agent-approvals.d.ts +27 -27
- package/dist/schemas/agents.d.ts +195 -154
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +12 -12
- package/dist/schemas/artifacts.d.ts +2106 -127
- package/dist/schemas/artifacts.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +63 -63
- package/dist/schemas/connectors.d.ts +180 -20
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +44 -44
- package/dist/schemas/event-payloads.d.ts +2 -2
- package/dist/schemas/events.d.ts +26 -26
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +12 -0
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/lake.d.ts +251 -0
- package/dist/schemas/lake.d.ts.map +1 -0
- package/dist/schemas/lineage.d.ts +56 -56
- package/dist/schemas/logs.d.ts +18 -18
- package/dist/schemas/models.d.ts +4 -4
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +14 -14
- package/dist/schemas/pipelines.d.ts +70 -48
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +14 -14
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/share-grants.d.ts +30 -30
- package/dist/schemas/shared-access.d.ts +17 -4
- package/dist/schemas/shared-access.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +59 -79
- package/dist/schemas/status.d.ts.map +1 -1
- package/dist/schemas/syncs.d.ts +26 -10
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/telemetry.d.ts +26 -26
- package/dist/schemas/workflows.d.ts +19 -19
- package/dist/server.d.ts +13 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +3 -0
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +11 -7
- package/src/artifacts/frame.ts +4 -13
- package/src/auth/scope.ts +10 -1
- package/src/auth/shared-access.ts +108 -12
- package/src/connectors/http.ts +35 -1
- package/src/live/README.md +136 -0
- package/src/live/awareness.ts +141 -0
- package/src/live/room.ts +933 -0
- package/src/live/rooms.ts +288 -0
- package/src/registerRoutes.ts +2 -0
- package/src/routes/agent-computers.ts +59 -1
- package/src/routes/agent-runners.ts +1 -0
- package/src/routes/artifact-frames.ts +40 -12
- package/src/routes/artifacts.ts +713 -28
- package/src/routes/connector-connection-runs.ts +7 -12
- package/src/routes/connector-connections.ts +10 -7
- package/src/routes/lake.ts +73 -0
- package/src/routes/objects.ts +3 -9
- package/src/routes/pipelines.ts +1 -0
- package/src/routes/shared-access.ts +53 -1
- package/src/routes/status.ts +9 -4
- package/src/routes/syncs.ts +1 -0
- package/src/routes/webhooks.ts +44 -3
- package/src/routes/ws/artifacts.ts +138 -0
- package/src/routes/ws/events.ts +7 -2
- package/src/routes/ws/index.ts +13 -2
- package/src/routes/ws/shared-sockets.ts +152 -0
- package/src/schemas/agents.ts +11 -0
- package/src/schemas/artifacts.ts +255 -18
- package/src/schemas/connectors.ts +17 -2
- package/src/schemas/files.ts +12 -0
- package/src/schemas/lake.ts +53 -0
- package/src/schemas/objects.ts +1 -0
- package/src/schemas/pipelines.ts +2 -0
- package/src/schemas/projections.ts +2 -2
- package/src/schemas/shared-access.ts +16 -0
- package/src/schemas/status.ts +16 -22
- package/src/schemas/syncs.ts +2 -0
- package/src/server.ts +35 -4
- package/src/utils/ws.ts +7 -0
|
@@ -20,13 +20,13 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
|
|
|
20
20
|
"share-grants": {
|
|
21
21
|
post: {
|
|
22
22
|
body: {
|
|
23
|
+
destinationPath: string;
|
|
23
24
|
expiresAt: string;
|
|
24
25
|
target: {
|
|
25
26
|
objectTypeId: string;
|
|
26
27
|
primaryId: string;
|
|
27
28
|
};
|
|
28
29
|
definitionId: string;
|
|
29
|
-
destinationPath: string;
|
|
30
30
|
};
|
|
31
31
|
params: {};
|
|
32
32
|
query: unknown;
|
|
@@ -36,8 +36,9 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
|
|
|
36
36
|
url: string;
|
|
37
37
|
grant: {
|
|
38
38
|
id: string;
|
|
39
|
-
|
|
39
|
+
destinationPath: string;
|
|
40
40
|
expiresAt: string;
|
|
41
|
+
createdAt: string;
|
|
41
42
|
target: {
|
|
42
43
|
objectTypeId: string;
|
|
43
44
|
primaryId: string;
|
|
@@ -47,7 +48,6 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
|
|
|
47
48
|
id: string;
|
|
48
49
|
type: "user" | "serviceAccount";
|
|
49
50
|
};
|
|
50
|
-
destinationPath: string;
|
|
51
51
|
revokedAt?: string | undefined;
|
|
52
52
|
revokedBy?: {
|
|
53
53
|
id: string;
|
|
@@ -79,8 +79,9 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
|
|
|
79
79
|
url: string;
|
|
80
80
|
grant: {
|
|
81
81
|
id: string;
|
|
82
|
-
|
|
82
|
+
destinationPath: string;
|
|
83
83
|
expiresAt: string;
|
|
84
|
+
createdAt: string;
|
|
84
85
|
target: {
|
|
85
86
|
objectTypeId: string;
|
|
86
87
|
primaryId: string;
|
|
@@ -90,7 +91,6 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
|
|
|
90
91
|
id: string;
|
|
91
92
|
type: "user" | "serviceAccount";
|
|
92
93
|
};
|
|
93
|
-
destinationPath: string;
|
|
94
94
|
revokedAt?: string | undefined;
|
|
95
95
|
revokedBy?: {
|
|
96
96
|
id: string;
|
|
@@ -132,8 +132,9 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
|
|
|
132
132
|
total: number;
|
|
133
133
|
grants: {
|
|
134
134
|
id: string;
|
|
135
|
-
|
|
135
|
+
destinationPath: string;
|
|
136
136
|
expiresAt: string;
|
|
137
|
+
createdAt: string;
|
|
137
138
|
target: {
|
|
138
139
|
objectTypeId: string;
|
|
139
140
|
primaryId: string;
|
|
@@ -143,7 +144,6 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
|
|
|
143
144
|
id: string;
|
|
144
145
|
type: "user" | "serviceAccount";
|
|
145
146
|
};
|
|
146
|
-
destinationPath: string;
|
|
147
147
|
revokedAt?: string | undefined;
|
|
148
148
|
revokedBy?: {
|
|
149
149
|
id: string;
|
|
@@ -197,8 +197,9 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
|
|
|
197
197
|
200: {
|
|
198
198
|
grant: {
|
|
199
199
|
id: string;
|
|
200
|
-
|
|
200
|
+
destinationPath: string;
|
|
201
201
|
expiresAt: string;
|
|
202
|
+
createdAt: string;
|
|
202
203
|
target: {
|
|
203
204
|
objectTypeId: string;
|
|
204
205
|
primaryId: string;
|
|
@@ -208,7 +209,6 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
|
|
|
208
209
|
id: string;
|
|
209
210
|
type: "user" | "serviceAccount";
|
|
210
211
|
};
|
|
211
|
-
destinationPath: string;
|
|
212
212
|
revokedAt?: string | undefined;
|
|
213
213
|
revokedBy?: {
|
|
214
214
|
id: string;
|
|
@@ -32,10 +32,12 @@ export declare function registerSharedAccessRoutes(app: Elysia, boundary: Shared
|
|
|
32
32
|
response: {
|
|
33
33
|
200: {
|
|
34
34
|
grantId: string;
|
|
35
|
-
expiresAt: string;
|
|
36
|
-
csrfToken: string;
|
|
37
35
|
destinationPath: string;
|
|
36
|
+
expiresAt: string;
|
|
38
37
|
absoluteExpiresAt: string;
|
|
38
|
+
csrfToken: string;
|
|
39
|
+
guestId: string;
|
|
40
|
+
guestName?: string | undefined;
|
|
39
41
|
};
|
|
40
42
|
401: {
|
|
41
43
|
error: string;
|
|
@@ -73,17 +75,70 @@ export declare function registerSharedAccessRoutes(app: Elysia, boundary: Shared
|
|
|
73
75
|
response: {
|
|
74
76
|
200: {
|
|
75
77
|
grantId: string;
|
|
78
|
+
destinationPath: string;
|
|
76
79
|
expiresAt: string;
|
|
80
|
+
absoluteExpiresAt: string;
|
|
77
81
|
csrfToken: string;
|
|
82
|
+
guestId: string;
|
|
83
|
+
guestName?: string | undefined;
|
|
84
|
+
};
|
|
85
|
+
401: {
|
|
86
|
+
error: string;
|
|
87
|
+
};
|
|
88
|
+
503: {
|
|
89
|
+
error: string;
|
|
90
|
+
};
|
|
91
|
+
422: {
|
|
92
|
+
type: "validation";
|
|
93
|
+
on: string;
|
|
94
|
+
summary?: string;
|
|
95
|
+
message?: string;
|
|
96
|
+
found?: unknown;
|
|
97
|
+
property?: string;
|
|
98
|
+
expected?: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
} & {
|
|
107
|
+
api: {
|
|
108
|
+
"shared-access": {
|
|
109
|
+
":grantId": {
|
|
110
|
+
name: {
|
|
111
|
+
put: {
|
|
112
|
+
body: {
|
|
113
|
+
name: string;
|
|
114
|
+
};
|
|
115
|
+
params: {
|
|
116
|
+
grantId: string;
|
|
117
|
+
};
|
|
118
|
+
query: unknown;
|
|
119
|
+
headers: unknown;
|
|
120
|
+
response: {
|
|
121
|
+
200: {
|
|
122
|
+
grantId: string;
|
|
78
123
|
destinationPath: string;
|
|
124
|
+
expiresAt: string;
|
|
79
125
|
absoluteExpiresAt: string;
|
|
126
|
+
csrfToken: string;
|
|
127
|
+
guestId: string;
|
|
128
|
+
guestName?: string | undefined;
|
|
80
129
|
};
|
|
81
130
|
401: {
|
|
82
131
|
error: string;
|
|
83
132
|
};
|
|
133
|
+
403: {
|
|
134
|
+
error: string;
|
|
135
|
+
};
|
|
84
136
|
503: {
|
|
85
137
|
error: string;
|
|
86
138
|
};
|
|
139
|
+
400: {
|
|
140
|
+
error: string;
|
|
141
|
+
};
|
|
87
142
|
422: {
|
|
88
143
|
type: "validation";
|
|
89
144
|
on: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-access.d.ts","sourceRoot":"","sources":["../../src/routes/shared-access.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,EACL,KAAK,oBAAoB,
|
|
1
|
+
{"version":3,"file":"shared-access.d.ts","sourceRoot":"","sources":["../../src/routes/shared-access.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,EACL,KAAK,oBAAoB,EAM1B,MAAM,uBAAuB,CAAA;AAY9B,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmJrF"}
|
package/dist/routes/status.d.ts
CHANGED
|
@@ -25,28 +25,24 @@ export declare function registerStatusRoutes(app: Elysia, host: SixbHostView): E
|
|
|
25
25
|
headers: unknown;
|
|
26
26
|
response: {
|
|
27
27
|
200: {
|
|
28
|
-
status: "ok" | "degraded";
|
|
29
|
-
objectTypes: number;
|
|
28
|
+
status: "unknown" | "ok" | "degraded";
|
|
30
29
|
maintenance: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
owner: "orchestrator" | "embedded" | null;
|
|
31
|
+
beatAt: string | null;
|
|
32
|
+
stale: boolean;
|
|
33
|
+
passes: {
|
|
34
|
+
id: string;
|
|
35
|
+
lastSucceededAt: string | null;
|
|
36
|
+
consecutiveFailures: number;
|
|
37
|
+
}[];
|
|
38
38
|
outbox: {
|
|
39
39
|
pendingCount: number;
|
|
40
40
|
oldestPendingAt: string | null;
|
|
41
41
|
retryingCount: number;
|
|
42
42
|
maxAttempts: number;
|
|
43
|
-
}
|
|
44
|
-
cleanup: {
|
|
45
|
-
publishedOutboxRowsDeleted: number;
|
|
46
|
-
terminalSourceRowsDeleted: number;
|
|
47
|
-
terminalSourceMaterializationsDeleted: number;
|
|
48
|
-
} | null;
|
|
43
|
+
};
|
|
49
44
|
};
|
|
45
|
+
objectTypes: number;
|
|
50
46
|
};
|
|
51
47
|
422: {
|
|
52
48
|
type: "validation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/routes/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/routes/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDnE"}
|
package/dist/routes/syncs.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
41
41
|
id: string;
|
|
42
42
|
mode: "append" | "merge" | "snapshot";
|
|
43
43
|
queuedAt: string;
|
|
44
|
+
attempt: number;
|
|
44
45
|
datasetId: string;
|
|
45
46
|
syncId: string;
|
|
46
47
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
@@ -60,8 +61,8 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
60
61
|
id: string;
|
|
61
62
|
schema: {
|
|
62
63
|
columns: {
|
|
63
|
-
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
64
64
|
name: string;
|
|
65
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
65
66
|
nullable?: boolean | undefined;
|
|
66
67
|
}[];
|
|
67
68
|
};
|
|
@@ -114,6 +115,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
114
115
|
id: string;
|
|
115
116
|
mode: "append" | "merge" | "snapshot";
|
|
116
117
|
queuedAt: string;
|
|
118
|
+
attempt: number;
|
|
117
119
|
datasetId: string;
|
|
118
120
|
syncId: string;
|
|
119
121
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
@@ -133,8 +135,8 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
133
135
|
id: string;
|
|
134
136
|
schema: {
|
|
135
137
|
columns: {
|
|
136
|
-
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
137
138
|
name: string;
|
|
139
|
+
type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
|
|
138
140
|
nullable?: boolean | undefined;
|
|
139
141
|
}[];
|
|
140
142
|
};
|
|
@@ -187,6 +189,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
187
189
|
id: string;
|
|
188
190
|
mode: "append" | "merge" | "snapshot";
|
|
189
191
|
queuedAt: string;
|
|
192
|
+
attempt: number;
|
|
190
193
|
datasetId: string;
|
|
191
194
|
syncId: string;
|
|
192
195
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
@@ -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;AAuFpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoIjE"}
|
|
@@ -23,8 +23,8 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
23
23
|
body: {
|
|
24
24
|
series: {
|
|
25
25
|
objectTypeId: string;
|
|
26
|
-
objectId: string;
|
|
27
26
|
propertyId: string;
|
|
27
|
+
objectId: string;
|
|
28
28
|
}[];
|
|
29
29
|
order?: "asc" | "desc" | undefined;
|
|
30
30
|
from?: string | undefined;
|
|
@@ -38,14 +38,14 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
38
38
|
200: {
|
|
39
39
|
series: {
|
|
40
40
|
objectTypeId: string;
|
|
41
|
-
objectId: string;
|
|
42
41
|
propertyId: string;
|
|
42
|
+
objectId: string;
|
|
43
43
|
points: {
|
|
44
44
|
at: string;
|
|
45
45
|
projectId: string;
|
|
46
46
|
objectTypeId: string;
|
|
47
|
-
objectId: string;
|
|
48
47
|
propertyId: string;
|
|
48
|
+
objectId: string;
|
|
49
49
|
value?: unknown;
|
|
50
50
|
unit?: string | undefined;
|
|
51
51
|
}[];
|
|
@@ -83,8 +83,8 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
83
83
|
body: unknown;
|
|
84
84
|
params: {
|
|
85
85
|
objectTypeId: string;
|
|
86
|
-
objectId: string;
|
|
87
86
|
propertyId: string;
|
|
87
|
+
objectId: string;
|
|
88
88
|
};
|
|
89
89
|
query: {
|
|
90
90
|
limit?: string | undefined;
|
|
@@ -98,8 +98,8 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
98
98
|
at: string;
|
|
99
99
|
projectId: string;
|
|
100
100
|
objectTypeId: string;
|
|
101
|
-
objectId: string;
|
|
102
101
|
propertyId: string;
|
|
102
|
+
objectId: string;
|
|
103
103
|
value?: unknown;
|
|
104
104
|
unit?: string | undefined;
|
|
105
105
|
}[];
|
|
@@ -139,8 +139,8 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
139
139
|
body: unknown;
|
|
140
140
|
params: {
|
|
141
141
|
objectTypeId: string;
|
|
142
|
-
objectId: string;
|
|
143
142
|
propertyId: string;
|
|
143
|
+
objectId: string;
|
|
144
144
|
};
|
|
145
145
|
query: unknown;
|
|
146
146
|
headers: unknown;
|
|
@@ -149,8 +149,8 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
149
149
|
at: string;
|
|
150
150
|
projectId: string;
|
|
151
151
|
objectTypeId: string;
|
|
152
|
-
objectId: string;
|
|
153
152
|
propertyId: string;
|
|
153
|
+
objectId: string;
|
|
154
154
|
value?: unknown;
|
|
155
155
|
unit?: string | undefined;
|
|
156
156
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/routes/webhooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAOV,YAAY,EAIb,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/routes/webhooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAOV,YAAY,EAIb,MAAM,YAAY,CAAA;AAiBnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkDpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAapE"}
|
|
@@ -562,7 +562,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
562
562
|
nodeId: string;
|
|
563
563
|
nodeKey: string;
|
|
564
564
|
nodeIndex: number;
|
|
565
|
-
nodeType: "
|
|
565
|
+
nodeType: "action" | "agent" | "step" | "intervention";
|
|
566
566
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
567
567
|
agentExecution?: {
|
|
568
568
|
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
@@ -787,7 +787,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
787
787
|
} | {
|
|
788
788
|
error: {
|
|
789
789
|
at: string;
|
|
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";
|
|
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.change_refused" | "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";
|
|
791
791
|
message: string;
|
|
792
792
|
retryable: boolean;
|
|
793
793
|
details?: import("../schemas/common").JsonValue | undefined;
|
|
@@ -875,7 +875,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
|
|
|
875
875
|
nodeId: string;
|
|
876
876
|
nodeKey: string;
|
|
877
877
|
nodeIndex: number;
|
|
878
|
-
nodeType: "
|
|
878
|
+
nodeType: "action" | "agent" | "step" | "intervention";
|
|
879
879
|
error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
|
|
880
880
|
agentExecution?: {
|
|
881
881
|
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type ArtifactLiveClientMessage } from "@sixb/core/artifacts/live";
|
|
2
|
+
import type { Elysia } from "elysia";
|
|
3
|
+
import type { SixbServer } from "../../server";
|
|
4
|
+
import type { SharedSockets } from "./shared-sockets";
|
|
5
|
+
export declare function parseArtifactLiveMessage(payload: unknown): {
|
|
6
|
+
ok: true;
|
|
7
|
+
data: ArtifactLiveClientMessage;
|
|
8
|
+
} | {
|
|
9
|
+
ok: false;
|
|
10
|
+
error: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* `/ws/artifacts`: artifacts edited live, through Yjs's sync and awareness protocols. Whoever may
|
|
14
|
+
* change an artifact edits it; whoever may only read it watches, a shared link's guest included,
|
|
15
|
+
* under the name they gave. See `../../live/README.md`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function registerArtifactLiveRoutes(app: Elysia, server: SixbServer, shared: SharedSockets): Elysia<"", {
|
|
18
|
+
decorator: {};
|
|
19
|
+
store: {};
|
|
20
|
+
derive: {};
|
|
21
|
+
resolve: {};
|
|
22
|
+
}, {
|
|
23
|
+
typebox: {};
|
|
24
|
+
error: {};
|
|
25
|
+
}, {
|
|
26
|
+
schema: {};
|
|
27
|
+
standaloneSchema: {};
|
|
28
|
+
macro: {};
|
|
29
|
+
macroFn: {};
|
|
30
|
+
parser: {};
|
|
31
|
+
response: {};
|
|
32
|
+
}, {
|
|
33
|
+
ws: {
|
|
34
|
+
artifacts: {
|
|
35
|
+
subscribe: {
|
|
36
|
+
body: {};
|
|
37
|
+
params: {};
|
|
38
|
+
query: {};
|
|
39
|
+
headers: {};
|
|
40
|
+
response: {};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
derive: {};
|
|
46
|
+
resolve: {};
|
|
47
|
+
schema: {};
|
|
48
|
+
standaloneSchema: {};
|
|
49
|
+
response: {};
|
|
50
|
+
}, {
|
|
51
|
+
derive: {};
|
|
52
|
+
resolve: {};
|
|
53
|
+
schema: {};
|
|
54
|
+
standaloneSchema: {};
|
|
55
|
+
response: {};
|
|
56
|
+
}>;
|
|
57
|
+
//# sourceMappingURL=artifacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/artifacts.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AAC/F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAKpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAQ9C,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAyBrE,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,GACf;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,yBAAyB,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAM9E;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFhG"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Elysia } from "elysia";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import type { SixbServer } from "../../server";
|
|
4
|
+
import type { SharedSockets } from "./shared-sockets";
|
|
4
5
|
declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodObject<{
|
|
5
6
|
type: z.ZodLiteral<"subscribe">;
|
|
6
|
-
topic: z.ZodOptional<z.ZodEnum<["objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "schedules" | "users" | "telemetry" | "links", ...("objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "schedules" | "users" | "telemetry" | "links")[]]>>;
|
|
7
|
-
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["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", ...("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")[]]>, "many">>;
|
|
7
|
+
topic: z.ZodOptional<z.ZodEnum<["objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links", ...("objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links")[]]>>;
|
|
8
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["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" | "artifact.updated" | "artifact.commented", ...("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" | "artifact.updated" | "artifact.commented")[]]>, "many">>;
|
|
8
9
|
objectTypeId: z.ZodOptional<z.ZodString>;
|
|
9
10
|
primaryId: z.ZodOptional<z.ZodString>;
|
|
10
11
|
runId: z.ZodOptional<z.ZodString>;
|
|
@@ -16,8 +17,8 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
16
17
|
runId?: string | undefined;
|
|
17
18
|
primaryId?: string | undefined;
|
|
18
19
|
limit?: number | undefined;
|
|
19
|
-
types?: ("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;
|
|
20
|
-
topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "schedules" | "users" | "telemetry" | "links" | undefined;
|
|
20
|
+
types?: ("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" | "artifact.updated" | "artifact.commented")[] | undefined;
|
|
21
|
+
topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links" | undefined;
|
|
21
22
|
afterCursor?: string | undefined;
|
|
22
23
|
}, {
|
|
23
24
|
type: "subscribe";
|
|
@@ -25,8 +26,8 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
25
26
|
runId?: string | undefined;
|
|
26
27
|
primaryId?: string | undefined;
|
|
27
28
|
limit?: number | undefined;
|
|
28
|
-
types?: ("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;
|
|
29
|
-
topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "schedules" | "users" | "telemetry" | "links" | undefined;
|
|
29
|
+
types?: ("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" | "artifact.updated" | "artifact.commented")[] | undefined;
|
|
30
|
+
topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links" | undefined;
|
|
30
31
|
afterCursor?: string | undefined;
|
|
31
32
|
}>, z.ZodObject<{
|
|
32
33
|
type: z.ZodLiteral<"unsubscribe">;
|
|
@@ -42,7 +43,7 @@ export declare function parseSubscriptionMessage(payload: unknown): {
|
|
|
42
43
|
ok: false;
|
|
43
44
|
error: string;
|
|
44
45
|
};
|
|
45
|
-
export declare function registerEventStreamRoutes(app: Elysia, server: SixbServer): Elysia<"", {
|
|
46
|
+
export declare function registerEventStreamRoutes(app: Elysia, server: SixbServer, shared: SharedSockets): Elysia<"", {
|
|
46
47
|
decorator: {};
|
|
47
48
|
store: {};
|
|
48
49
|
derive: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/events.ts"],"names":[],"mappings":"AAGA,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;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/events.ts"],"names":[],"mappings":"AAGA,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;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AA2BrD,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAgD,CAAA;AAE/E,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GACrD;IACE,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;CAChD,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd,CAcJ;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkJ/F"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Elysia } from "elysia";
|
|
2
|
+
import type { SharedAccessBoundary } from "../../auth/shared-access";
|
|
2
3
|
import type { SixbServer } from "../../server";
|
|
3
|
-
export declare function registerWebSocketRoutes(app: Elysia, server: SixbServer): Elysia<"", {
|
|
4
|
+
export declare function registerWebSocketRoutes(app: Elysia, server: SixbServer, sharedAccess: SharedAccessBoundary): Elysia<"", {
|
|
4
5
|
decorator: {};
|
|
5
6
|
store: {};
|
|
6
7
|
derive: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAO9C,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUnC"}
|
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: "
|
|
22
|
+
kind: "action" | "workflow" | "agent" | "sync" | "pipeline" | "projection" | "webhook";
|
|
23
23
|
}, {
|
|
24
24
|
id: string;
|
|
25
|
-
kind: "
|
|
25
|
+
kind: "action" | "workflow" | "agent" | "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: "
|
|
32
|
+
kind: "action" | "workflow" | "agent" | "sync" | "pipeline" | "projection" | "webhook";
|
|
33
33
|
} | undefined;
|
|
34
|
-
kinds?: ("
|
|
34
|
+
kinds?: ("action" | "workflow" | "agent" | "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: "
|
|
41
|
+
kind: "action" | "workflow" | "agent" | "sync" | "pipeline" | "projection" | "webhook";
|
|
42
42
|
} | undefined;
|
|
43
|
-
kinds?: ("
|
|
43
|
+
kinds?: ("action" | "workflow" | "agent" | "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: "
|
|
50
|
+
kind: "action" | "workflow" | "agent" | "sync" | "pipeline" | "projection" | "webhook";
|
|
51
51
|
} | undefined;
|
|
52
|
-
kinds?: ("
|
|
52
|
+
kinds?: ("action" | "workflow" | "agent" | "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: "
|
|
59
|
+
kind: "action" | "workflow" | "agent" | "sync" | "pipeline" | "projection" | "webhook";
|
|
60
60
|
} | undefined;
|
|
61
|
-
kinds?: ("
|
|
61
|
+
kinds?: ("action" | "workflow" | "agent" | "sync" | "pipeline" | "projection" | "webhook")[] | undefined;
|
|
62
62
|
afterCursor?: string | undefined;
|
|
63
63
|
levels?: ("error" | "info" | "debug" | "warn")[] | undefined;
|
|
64
64
|
}>, z.ZodObject<{
|