@sixb/server 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/auth/application-access.d.ts +2 -2
- package/dist/auth/application-access.d.ts.map +1 -1
- package/dist/auth/connector-callback-cookie.d.ts +12 -0
- package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
- package/dist/auth/guard.d.ts +3 -3
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +13 -27
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts +2 -2
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +16 -0
- package/dist/connectors/http.d.ts.map +1 -0
- package/dist/index.js +3293 -2704
- package/dist/index.js.map +55 -50
- package/dist/openapi/tags.d.ts +11 -3
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +6 -2
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +21 -31
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +9 -8
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts +2 -2
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +130 -131
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +84 -84
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +794 -0
- package/dist/routes/connector-connection-runs.d.ts.map +1 -0
- package/dist/routes/connector-connections.d.ts +219 -0
- package/dist/routes/connector-connections.d.ts.map +1 -0
- package/dist/routes/connectors.d.ts +10 -4
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +8 -4
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +8 -8
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +11 -10
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +2 -2
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/logs.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +34 -34
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +50 -50
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +24 -34
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/project.d.ts +2 -2
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +131 -83
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +6 -6
- package/dist/routes/rules.d.ts.map +1 -1
- package/dist/routes/status.d.ts +2 -2
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +20 -25
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +2 -2
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +9 -9
- package/dist/routes/webhook-runs.d.ts.map +1 -1
- package/dist/routes/webhooks.d.ts +2 -2
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +74 -48
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +11 -5
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +8 -8
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
- package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/logs.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +97 -202
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +442 -439
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-usage.d.ts +34 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +142 -142
- package/dist/schemas/common.d.ts +37 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +713 -2
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +2 -2
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +34 -34
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +10 -10
- package/dist/schemas/ontology.d.ts +118 -118
- package/dist/schemas/pipelines.d.ts +95 -190
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +918 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +65 -108
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +41 -41
- package/dist/schemas/webhook-runs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +516 -183
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +6 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts +2 -0
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +4 -3
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/auth/access-token-boundary.ts +4 -4
- package/src/auth/application-access.ts +8 -9
- package/src/auth/connector-callback-cookie.ts +95 -0
- package/src/auth/guard.ts +11 -11
- package/src/auth/public-routes.ts +13 -0
- package/src/auth/scope.ts +26 -36
- package/src/auth/session-cookies.ts +3 -3
- package/src/connectors/http.ts +110 -0
- package/src/openapi/tags.ts +9 -1
- package/src/registerRoutes.ts +34 -23
- package/src/routes/action-runs.ts +39 -39
- package/src/routes/actions.ts +7 -13
- package/src/routes/agent-api-gateway.ts +41 -38
- package/src/routes/agents.ts +89 -200
- package/src/routes/auth.ts +87 -91
- package/src/routes/connector-connection-runs.ts +346 -0
- package/src/routes/connector-connections.ts +135 -0
- package/src/routes/connectors.ts +24 -12
- package/src/routes/datasets.ts +55 -54
- package/src/routes/events.ts +5 -5
- package/src/routes/files.ts +22 -30
- package/src/routes/links.ts +31 -35
- package/src/routes/logs.ts +6 -11
- package/src/routes/objects.ts +51 -114
- package/src/routes/ontology.ts +27 -38
- package/src/routes/pipelines.ts +28 -62
- package/src/routes/project.ts +3 -3
- package/src/routes/projections.ts +26 -38
- package/src/routes/rules.ts +11 -25
- package/src/routes/status.ts +5 -5
- package/src/routes/syncs.ts +19 -45
- package/src/routes/telemetry.ts +18 -29
- package/src/routes/webhook-runs.ts +5 -5
- package/src/routes/webhooks.ts +259 -341
- package/src/routes/workflows.ts +226 -248
- package/src/routes/ws/agents.ts +196 -66
- package/src/routes/ws/events.ts +11 -10
- package/src/routes/ws/log-subscription-hub.ts +6 -12
- package/src/routes/ws/logs.ts +13 -5
- package/src/schemas/actions.ts +58 -25
- package/src/schemas/agents.ts +19 -14
- package/src/schemas/ai-usage.ts +16 -0
- package/src/schemas/common.ts +24 -0
- package/src/schemas/connectors.ts +164 -0
- package/src/schemas/pipelines.ts +23 -15
- package/src/schemas/projections.ts +17 -3
- package/src/schemas/syncs.ts +13 -8
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +16 -6
- package/src/server.ts +65 -26
- package/src/utils/http.ts +34 -6
- package/src/utils/ws.ts +10 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-connection-runs.d.ts","sourceRoot":"","sources":["../../src/routes/connector-connection-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkCpC,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IACxE,QAAQ,CAAC,kBAAkB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;CAC1D;AAED,wBAAgB,oCAAoC,CAClD,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8QzC"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
|
+
import type { Elysia } from "elysia";
|
|
3
|
+
export declare function registerConnectorConnectionRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
|
+
decorator: {};
|
|
5
|
+
store: {};
|
|
6
|
+
derive: {};
|
|
7
|
+
resolve: {};
|
|
8
|
+
}, {
|
|
9
|
+
typebox: {};
|
|
10
|
+
error: {};
|
|
11
|
+
}, {
|
|
12
|
+
schema: {};
|
|
13
|
+
standaloneSchema: {};
|
|
14
|
+
macro: {};
|
|
15
|
+
macroFn: {};
|
|
16
|
+
parser: {};
|
|
17
|
+
response: {};
|
|
18
|
+
}, {
|
|
19
|
+
api: {
|
|
20
|
+
connectors: {
|
|
21
|
+
":connectorId": {
|
|
22
|
+
connections: {
|
|
23
|
+
get: {
|
|
24
|
+
body: unknown;
|
|
25
|
+
params: {
|
|
26
|
+
connectorId: string;
|
|
27
|
+
};
|
|
28
|
+
query: unknown;
|
|
29
|
+
headers: unknown;
|
|
30
|
+
response: {
|
|
31
|
+
200: {
|
|
32
|
+
id: string;
|
|
33
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
34
|
+
connectorId: string;
|
|
35
|
+
owner: {
|
|
36
|
+
type: "project";
|
|
37
|
+
};
|
|
38
|
+
slot: string;
|
|
39
|
+
account: {
|
|
40
|
+
id: string;
|
|
41
|
+
label: string;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
avatarUrl?: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
}[];
|
|
46
|
+
403: {
|
|
47
|
+
error: string;
|
|
48
|
+
};
|
|
49
|
+
400: {
|
|
50
|
+
error: string;
|
|
51
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
52
|
+
};
|
|
53
|
+
404: {
|
|
54
|
+
error: string;
|
|
55
|
+
code?: "connector.not_found" | undefined;
|
|
56
|
+
};
|
|
57
|
+
500: {
|
|
58
|
+
error: string;
|
|
59
|
+
code?: "internal.unexpected" | undefined;
|
|
60
|
+
};
|
|
61
|
+
422: {
|
|
62
|
+
type: "validation";
|
|
63
|
+
on: string;
|
|
64
|
+
summary?: string;
|
|
65
|
+
message?: string;
|
|
66
|
+
found?: unknown;
|
|
67
|
+
property?: string;
|
|
68
|
+
expected?: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
} & {
|
|
77
|
+
api: {
|
|
78
|
+
connectors: {
|
|
79
|
+
":connectorId": {
|
|
80
|
+
connections: {
|
|
81
|
+
":connectionId": {
|
|
82
|
+
delete: {
|
|
83
|
+
body: unknown;
|
|
84
|
+
params: {
|
|
85
|
+
connectorId: string;
|
|
86
|
+
connectionId: string;
|
|
87
|
+
};
|
|
88
|
+
query: unknown;
|
|
89
|
+
headers: unknown;
|
|
90
|
+
response: {
|
|
91
|
+
200: {
|
|
92
|
+
success: boolean;
|
|
93
|
+
};
|
|
94
|
+
403: {
|
|
95
|
+
error: string;
|
|
96
|
+
};
|
|
97
|
+
400: {
|
|
98
|
+
error: string;
|
|
99
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
100
|
+
};
|
|
101
|
+
404: {
|
|
102
|
+
error: string;
|
|
103
|
+
code?: "connector.not_found" | undefined;
|
|
104
|
+
};
|
|
105
|
+
409: {
|
|
106
|
+
error: string;
|
|
107
|
+
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
|
|
108
|
+
};
|
|
109
|
+
500: {
|
|
110
|
+
error: string;
|
|
111
|
+
code?: "internal.unexpected" | undefined;
|
|
112
|
+
};
|
|
113
|
+
422: {
|
|
114
|
+
type: "validation";
|
|
115
|
+
on: string;
|
|
116
|
+
summary?: string;
|
|
117
|
+
message?: string;
|
|
118
|
+
found?: unknown;
|
|
119
|
+
property?: string;
|
|
120
|
+
expected?: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
} & {
|
|
130
|
+
api: {
|
|
131
|
+
connectors: {
|
|
132
|
+
":connectorId": {
|
|
133
|
+
connections: {
|
|
134
|
+
":connectionId": {
|
|
135
|
+
revoke: {
|
|
136
|
+
post: {
|
|
137
|
+
body: unknown;
|
|
138
|
+
params: {
|
|
139
|
+
connectorId: string;
|
|
140
|
+
connectionId: string;
|
|
141
|
+
};
|
|
142
|
+
query: unknown;
|
|
143
|
+
headers: unknown;
|
|
144
|
+
response: {
|
|
145
|
+
200: {
|
|
146
|
+
affectedConnections: {
|
|
147
|
+
id: string;
|
|
148
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
149
|
+
connectorId: string;
|
|
150
|
+
owner: {
|
|
151
|
+
type: "project";
|
|
152
|
+
};
|
|
153
|
+
slot: string;
|
|
154
|
+
account: {
|
|
155
|
+
id: string;
|
|
156
|
+
label: string;
|
|
157
|
+
description?: string | undefined;
|
|
158
|
+
avatarUrl?: string | undefined;
|
|
159
|
+
};
|
|
160
|
+
}[];
|
|
161
|
+
};
|
|
162
|
+
403: {
|
|
163
|
+
error: string;
|
|
164
|
+
};
|
|
165
|
+
400: {
|
|
166
|
+
error: string;
|
|
167
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
|
|
168
|
+
};
|
|
169
|
+
404: {
|
|
170
|
+
error: string;
|
|
171
|
+
code?: "connector.not_found" | undefined;
|
|
172
|
+
};
|
|
173
|
+
502: {
|
|
174
|
+
error: string;
|
|
175
|
+
code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
|
|
176
|
+
};
|
|
177
|
+
409: {
|
|
178
|
+
error: string;
|
|
179
|
+
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
|
|
180
|
+
};
|
|
181
|
+
503: {
|
|
182
|
+
error: string;
|
|
183
|
+
code?: "connector.credentials_unavailable" | "connector.provider_unavailable" | undefined;
|
|
184
|
+
};
|
|
185
|
+
500: {
|
|
186
|
+
error: string;
|
|
187
|
+
code?: "internal.unexpected" | undefined;
|
|
188
|
+
};
|
|
189
|
+
422: {
|
|
190
|
+
type: "validation";
|
|
191
|
+
on: string;
|
|
192
|
+
summary?: string;
|
|
193
|
+
message?: string;
|
|
194
|
+
found?: unknown;
|
|
195
|
+
property?: string;
|
|
196
|
+
expected?: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
}, {
|
|
207
|
+
derive: {};
|
|
208
|
+
resolve: {};
|
|
209
|
+
schema: {};
|
|
210
|
+
standaloneSchema: {};
|
|
211
|
+
response: {};
|
|
212
|
+
}, {
|
|
213
|
+
derive: {};
|
|
214
|
+
resolve: {};
|
|
215
|
+
schema: {};
|
|
216
|
+
standaloneSchema: {};
|
|
217
|
+
response: {};
|
|
218
|
+
}>;
|
|
219
|
+
//# sourceMappingURL=connector-connections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-connections.d.ts","sourceRoot":"","sources":["../../src/routes/connector-connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuBpC,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8GhF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerConnectorRoutes(app: Elysia,
|
|
3
|
+
export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -25,6 +25,7 @@ export declare function registerConnectorRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
25
25
|
headers: unknown;
|
|
26
26
|
response: {
|
|
27
27
|
200: {
|
|
28
|
+
id: string;
|
|
28
29
|
webhooks: {
|
|
29
30
|
id: string;
|
|
30
31
|
method: "POST";
|
|
@@ -34,7 +35,9 @@ export declare function registerConnectorRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
34
35
|
hasIdempotency: boolean;
|
|
35
36
|
}[];
|
|
36
37
|
type: string;
|
|
37
|
-
|
|
38
|
+
connection: {
|
|
39
|
+
authentication: "oauth2";
|
|
40
|
+
} | null;
|
|
38
41
|
syncIds: string[];
|
|
39
42
|
}[];
|
|
40
43
|
422: {
|
|
@@ -63,6 +66,7 @@ export declare function registerConnectorRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
63
66
|
headers: unknown;
|
|
64
67
|
response: {
|
|
65
68
|
200: {
|
|
69
|
+
id: string;
|
|
66
70
|
webhooks: {
|
|
67
71
|
id: string;
|
|
68
72
|
method: "POST";
|
|
@@ -72,7 +76,9 @@ export declare function registerConnectorRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
72
76
|
hasIdempotency: boolean;
|
|
73
77
|
}[];
|
|
74
78
|
type: string;
|
|
75
|
-
|
|
79
|
+
connection: {
|
|
80
|
+
authentication: "oauth2";
|
|
81
|
+
} | null;
|
|
76
82
|
syncIds: string[];
|
|
77
83
|
};
|
|
78
84
|
404: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/routes/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/routes/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmCpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CtE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerDatasetRoutes(app: Elysia,
|
|
3
|
+
export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -25,8 +25,8 @@ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly O
|
|
|
25
25
|
headers: unknown;
|
|
26
26
|
response: {
|
|
27
27
|
200: {
|
|
28
|
-
kind: "dataset";
|
|
29
28
|
id: string;
|
|
29
|
+
kind: "dataset";
|
|
30
30
|
schema: {
|
|
31
31
|
columns: {
|
|
32
32
|
name: string;
|
|
@@ -79,8 +79,8 @@ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly O
|
|
|
79
79
|
headers: unknown;
|
|
80
80
|
response: {
|
|
81
81
|
200: {
|
|
82
|
-
kind: "dataset";
|
|
83
82
|
id: string;
|
|
83
|
+
kind: "dataset";
|
|
84
84
|
schema: {
|
|
85
85
|
columns: {
|
|
86
86
|
name: string;
|
|
@@ -109,6 +109,7 @@ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly O
|
|
|
109
109
|
};
|
|
110
110
|
404: {
|
|
111
111
|
error: string;
|
|
112
|
+
code: "dataset.not_found";
|
|
112
113
|
};
|
|
113
114
|
422: {
|
|
114
115
|
type: "validation";
|
|
@@ -172,6 +173,7 @@ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly O
|
|
|
172
173
|
};
|
|
173
174
|
404: {
|
|
174
175
|
error: string;
|
|
176
|
+
code: "dataset.not_found";
|
|
175
177
|
};
|
|
176
178
|
422: {
|
|
177
179
|
type: "validation";
|
|
@@ -233,6 +235,7 @@ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly O
|
|
|
233
235
|
};
|
|
234
236
|
404: {
|
|
235
237
|
error: string;
|
|
238
|
+
code: "dataset.not_found" | "dataset.version_not_found";
|
|
236
239
|
};
|
|
237
240
|
422: {
|
|
238
241
|
type: "validation";
|
|
@@ -309,6 +312,7 @@ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly O
|
|
|
309
312
|
};
|
|
310
313
|
404: {
|
|
311
314
|
error: string;
|
|
315
|
+
code: "dataset.not_found" | "dataset.version_not_found";
|
|
312
316
|
};
|
|
313
317
|
422: {
|
|
314
318
|
type: "validation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/routes/datasets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,
|
|
1
|
+
{"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/routes/datasets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,YAAY,EAAE,MAAM,YAAY,CAAA;AAOjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqNpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsLpE"}
|
package/dist/routes/events.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerEventRoutes(app: Elysia,
|
|
3
|
+
export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -22,21 +22,20 @@ export declare function registerEventRoutes(app: Elysia, sixb: Sixb<readonly Ont
|
|
|
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" | "action.requested" | "action.completed" | "action.failed" | "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
26
|
limit?: string | undefined;
|
|
26
|
-
|
|
27
|
-
topic?: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets" | undefined;
|
|
27
|
+
topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules" | undefined;
|
|
28
28
|
afterCursor?: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
headers: unknown;
|
|
31
31
|
response: {
|
|
32
32
|
200: {
|
|
33
|
-
count: number;
|
|
34
33
|
events: ({
|
|
35
34
|
projectId: string;
|
|
36
|
-
type: "action.requested" | "action.completed" | "action.failed" | "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";
|
|
37
35
|
id: string;
|
|
36
|
+
type: "action.requested" | "action.completed" | "action.failed" | "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";
|
|
38
37
|
payload: Record<string, unknown>;
|
|
39
|
-
topic: "
|
|
38
|
+
topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
|
|
40
39
|
partitionKey: string;
|
|
41
40
|
schemaVersion: 1;
|
|
42
41
|
occurredAt: string;
|
|
@@ -73,13 +72,14 @@ export declare function registerEventRoutes(app: Elysia, sixb: Sixb<readonly Ont
|
|
|
73
72
|
causationId?: string | undefined;
|
|
74
73
|
idempotencyKey?: string | undefined;
|
|
75
74
|
actor?: {
|
|
76
|
-
type: "user" | "serviceAccount" | "system";
|
|
77
75
|
id: string;
|
|
76
|
+
type: "user" | "serviceAccount" | "system";
|
|
78
77
|
} | undefined;
|
|
79
78
|
} | {
|
|
80
79
|
[x: string]: any;
|
|
81
80
|
type?: unknown;
|
|
82
81
|
})[];
|
|
82
|
+
count: number;
|
|
83
83
|
};
|
|
84
84
|
403: {
|
|
85
85
|
error: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/routes/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/routes/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CnE"}
|
package/dist/routes/files.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
3
|
export declare const DEFAULT_SIMPLE_FILE_UPLOAD_BODY_BYTES: number;
|
|
4
|
-
export declare function registerFileRoutes(app: Elysia,
|
|
4
|
+
export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
5
5
|
decorator: {};
|
|
6
6
|
store: {};
|
|
7
7
|
derive: {};
|
|
@@ -88,6 +88,7 @@ export declare function registerFileRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
88
88
|
partSizeBytes: number;
|
|
89
89
|
} | {
|
|
90
90
|
error: string;
|
|
91
|
+
code?: import("@sixb/core").SixbErrorCode;
|
|
91
92
|
};
|
|
92
93
|
400: {
|
|
93
94
|
error: string;
|
|
@@ -148,10 +149,10 @@ export declare function registerFileRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
148
149
|
404: {
|
|
149
150
|
error: string;
|
|
150
151
|
};
|
|
151
|
-
|
|
152
|
+
409: {
|
|
152
153
|
error: string;
|
|
153
154
|
};
|
|
154
|
-
|
|
155
|
+
410: {
|
|
155
156
|
error: string;
|
|
156
157
|
};
|
|
157
158
|
422: {
|
|
@@ -199,10 +200,10 @@ export declare function registerFileRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
199
200
|
404: {
|
|
200
201
|
error: string;
|
|
201
202
|
};
|
|
202
|
-
|
|
203
|
+
409: {
|
|
203
204
|
error: string;
|
|
204
205
|
};
|
|
205
|
-
|
|
206
|
+
410: {
|
|
206
207
|
error: string;
|
|
207
208
|
};
|
|
208
209
|
422: {
|
|
@@ -257,10 +258,10 @@ export declare function registerFileRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
257
258
|
404: {
|
|
258
259
|
error: string;
|
|
259
260
|
};
|
|
260
|
-
|
|
261
|
+
409: {
|
|
261
262
|
error: string;
|
|
262
263
|
};
|
|
263
|
-
|
|
264
|
+
410: {
|
|
264
265
|
error: string;
|
|
265
266
|
};
|
|
266
267
|
422: {
|
|
@@ -302,10 +303,10 @@ export declare function registerFileRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
302
303
|
404: {
|
|
303
304
|
error: string;
|
|
304
305
|
};
|
|
305
|
-
|
|
306
|
+
409: {
|
|
306
307
|
error: string;
|
|
307
308
|
};
|
|
308
|
-
|
|
309
|
+
410: {
|
|
309
310
|
error: string;
|
|
310
311
|
};
|
|
311
312
|
422: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,YAAY,EAElB,MAAM,YAAY,CAAA;AAQnB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgajE"}
|
package/dist/routes/links.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerLinkRoutes(app: Elysia,
|
|
3
|
+
export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/routes/links.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/routes/links.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAepC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2HlE"}
|
package/dist/routes/logs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerLogRoutes(app: Elysia,
|
|
3
|
+
export declare function registerLogRoutes(app: Elysia, _host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -22,9 +22,9 @@ export declare function registerLogRoutes(app: Elysia, sixb: Sixb<readonly Ontol
|
|
|
22
22
|
body: unknown;
|
|
23
23
|
params: {};
|
|
24
24
|
query: {
|
|
25
|
-
kind?: "workflow" | "
|
|
26
|
-
limit?: number | undefined;
|
|
25
|
+
kind?: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent" | undefined;
|
|
27
26
|
runId?: string | undefined;
|
|
27
|
+
limit?: number | undefined;
|
|
28
28
|
afterCursor?: string | undefined;
|
|
29
29
|
direction?: "forward" | "backward" | undefined;
|
|
30
30
|
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
@@ -40,8 +40,8 @@ export declare function registerLogRoutes(app: Elysia, sixb: Sixb<readonly Ontol
|
|
|
40
40
|
message: string;
|
|
41
41
|
context: {
|
|
42
42
|
run: {
|
|
43
|
-
kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
|
|
44
43
|
id: string;
|
|
44
|
+
kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
|
|
45
45
|
};
|
|
46
46
|
phase?: string | undefined;
|
|
47
47
|
attempt?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/routes/logs.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/routes/logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAQpC,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDjE"}
|