@sixb/server 0.1.1 → 0.1.3
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/experience.d.ts +33 -0
- package/dist/auth/experience.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.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3903 -2760
- package/dist/index.js.map +58 -50
- package/dist/openapi/tags.d.ts +15 -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 +12 -11
- 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 +230 -159
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts +31 -0
- package/dist/routes/ai-accounting.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +149 -92
- 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 +16 -12
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +9 -9
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +19 -18
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +11 -11
- 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 +37 -37
- 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 +28 -38
- 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 +145 -85
- 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 +23 -28
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +9 -9
- 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 +177 -66
- 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 +89 -194
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +791 -471
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +2393 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -0
- 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 +102 -102
- 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 +12 -12
- package/dist/schemas/events.d.ts +40 -40
- package/dist/schemas/links.d.ts +2 -2
- 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 +89 -184
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +1030 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- 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 +1189 -185
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +11 -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 +5 -5
- 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/experience.ts +190 -0
- package/src/auth/guard.ts +11 -11
- package/src/auth/public-routes.ts +20 -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/index.ts +1 -0
- package/src/openapi/tags.ts +13 -1
- package/src/registerRoutes.ts +36 -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 +90 -200
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +274 -122
- 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 +44 -42
- 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 +242 -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 +23 -23
- package/src/schemas/ai-accounting.ts +182 -0
- 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 +23 -3
- package/src/schemas/syncs.ts +13 -8
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +23 -8
- package/src/server.ts +75 -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
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
33
|
+
id: string;
|
|
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
|
+
404: {
|
|
47
|
+
error: string;
|
|
48
|
+
code?: "connector.not_found" | undefined;
|
|
49
|
+
};
|
|
50
|
+
403: {
|
|
51
|
+
error: string;
|
|
52
|
+
};
|
|
53
|
+
400: {
|
|
54
|
+
error: string;
|
|
55
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | 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
|
+
404: {
|
|
95
|
+
error: string;
|
|
96
|
+
code?: "connector.not_found" | undefined;
|
|
97
|
+
};
|
|
98
|
+
403: {
|
|
99
|
+
error: string;
|
|
100
|
+
};
|
|
101
|
+
400: {
|
|
102
|
+
error: string;
|
|
103
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | 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
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
148
|
+
id: string;
|
|
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
|
+
404: {
|
|
163
|
+
error: string;
|
|
164
|
+
code?: "connector.not_found" | undefined;
|
|
165
|
+
};
|
|
166
|
+
403: {
|
|
167
|
+
error: string;
|
|
168
|
+
};
|
|
169
|
+
400: {
|
|
170
|
+
error: string;
|
|
171
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid" | 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;
|
|
@@ -104,10 +104,11 @@ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly O
|
|
|
104
104
|
primaryKey?: string | string[] | undefined;
|
|
105
105
|
partitionBy?: string[] | undefined;
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
404: {
|
|
108
108
|
error: string;
|
|
109
|
+
code: "dataset.not_found";
|
|
109
110
|
};
|
|
110
|
-
|
|
111
|
+
400: {
|
|
111
112
|
error: string;
|
|
112
113
|
};
|
|
113
114
|
422: {
|
|
@@ -167,10 +168,11 @@ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly O
|
|
|
167
168
|
rowCount?: number | undefined;
|
|
168
169
|
}[];
|
|
169
170
|
};
|
|
170
|
-
|
|
171
|
+
404: {
|
|
171
172
|
error: string;
|
|
173
|
+
code: "dataset.not_found";
|
|
172
174
|
};
|
|
173
|
-
|
|
175
|
+
400: {
|
|
174
176
|
error: string;
|
|
175
177
|
};
|
|
176
178
|
422: {
|
|
@@ -228,10 +230,11 @@ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly O
|
|
|
228
230
|
}[] | undefined;
|
|
229
231
|
rowCount?: number | undefined;
|
|
230
232
|
};
|
|
231
|
-
|
|
233
|
+
404: {
|
|
232
234
|
error: string;
|
|
235
|
+
code: "dataset.not_found" | "dataset.version_not_found";
|
|
233
236
|
};
|
|
234
|
-
|
|
237
|
+
400: {
|
|
235
238
|
error: string;
|
|
236
239
|
};
|
|
237
240
|
422: {
|
|
@@ -304,10 +307,11 @@ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly O
|
|
|
304
307
|
rows: Record<string, unknown>[];
|
|
305
308
|
total?: number | undefined;
|
|
306
309
|
};
|
|
307
|
-
|
|
310
|
+
404: {
|
|
308
311
|
error: string;
|
|
312
|
+
code: "dataset.not_found" | "dataset.version_not_found";
|
|
309
313
|
};
|
|
310
|
-
|
|
314
|
+
400: {
|
|
311
315
|
error: string;
|
|
312
316
|
};
|
|
313
317
|
422: {
|
|
@@ -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,24 +22,23 @@ 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";
|
|
37
|
+
occurredAt: string;
|
|
38
38
|
payload: Record<string, unknown>;
|
|
39
|
-
topic: "
|
|
39
|
+
topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
|
|
40
40
|
partitionKey: string;
|
|
41
41
|
schemaVersion: 1;
|
|
42
|
-
occurredAt: string;
|
|
43
42
|
cursor: string;
|
|
44
43
|
origin?: {
|
|
45
44
|
kind: "projection";
|
|
@@ -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;
|
|
@@ -142,18 +143,18 @@ export declare function registerFileRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
142
143
|
200: {
|
|
143
144
|
success: boolean;
|
|
144
145
|
};
|
|
145
|
-
400: {
|
|
146
|
-
error: string;
|
|
147
|
-
};
|
|
148
146
|
404: {
|
|
149
147
|
error: string;
|
|
150
148
|
};
|
|
151
|
-
|
|
149
|
+
400: {
|
|
152
150
|
error: string;
|
|
153
151
|
};
|
|
154
152
|
409: {
|
|
155
153
|
error: string;
|
|
156
154
|
};
|
|
155
|
+
410: {
|
|
156
|
+
error: string;
|
|
157
|
+
};
|
|
157
158
|
422: {
|
|
158
159
|
type: "validation";
|
|
159
160
|
on: string;
|
|
@@ -193,18 +194,18 @@ export declare function registerFileRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
193
194
|
method: "PUT";
|
|
194
195
|
expiresAt: string;
|
|
195
196
|
};
|
|
196
|
-
400: {
|
|
197
|
-
error: string;
|
|
198
|
-
};
|
|
199
197
|
404: {
|
|
200
198
|
error: string;
|
|
201
199
|
};
|
|
202
|
-
|
|
200
|
+
400: {
|
|
203
201
|
error: string;
|
|
204
202
|
};
|
|
205
203
|
409: {
|
|
206
204
|
error: string;
|
|
207
205
|
};
|
|
206
|
+
410: {
|
|
207
|
+
error: string;
|
|
208
|
+
};
|
|
208
209
|
422: {
|
|
209
210
|
type: "validation";
|
|
210
211
|
on: string;
|
|
@@ -251,18 +252,18 @@ export declare function registerFileRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
251
252
|
mediaType?: string | undefined;
|
|
252
253
|
logicalPath?: string | undefined;
|
|
253
254
|
};
|
|
254
|
-
400: {
|
|
255
|
-
error: string;
|
|
256
|
-
};
|
|
257
255
|
404: {
|
|
258
256
|
error: string;
|
|
259
257
|
};
|
|
260
|
-
|
|
258
|
+
400: {
|
|
261
259
|
error: string;
|
|
262
260
|
};
|
|
263
261
|
409: {
|
|
264
262
|
error: string;
|
|
265
263
|
};
|
|
264
|
+
410: {
|
|
265
|
+
error: string;
|
|
266
|
+
};
|
|
266
267
|
422: {
|
|
267
268
|
type: "validation";
|
|
268
269
|
on: string;
|
|
@@ -296,18 +297,18 @@ export declare function registerFileRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
296
297
|
200: {
|
|
297
298
|
success: boolean;
|
|
298
299
|
};
|
|
299
|
-
400: {
|
|
300
|
-
error: string;
|
|
301
|
-
};
|
|
302
300
|
404: {
|
|
303
301
|
error: string;
|
|
304
302
|
};
|
|
305
|
-
|
|
303
|
+
400: {
|
|
306
304
|
error: string;
|
|
307
305
|
};
|
|
308
306
|
409: {
|
|
309
307
|
error: string;
|
|
310
308
|
};
|
|
309
|
+
410: {
|
|
310
|
+
error: string;
|
|
311
|
+
};
|
|
311
312
|
422: {
|
|
312
313
|
type: "validation";
|
|
313
314
|
on: string;
|
|
@@ -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: {};
|
|
@@ -35,19 +35,19 @@ export declare function registerLinkRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
35
35
|
response: {
|
|
36
36
|
200: {
|
|
37
37
|
projectId: string;
|
|
38
|
+
sourceId: string;
|
|
38
39
|
createdAt: string;
|
|
39
40
|
updatedAt: string;
|
|
40
41
|
sourceTypeId: string;
|
|
41
|
-
sourceId: string;
|
|
42
42
|
linkId: string;
|
|
43
43
|
targetTypeId: string;
|
|
44
44
|
targetId: string;
|
|
45
45
|
properties?: Record<string, unknown> | undefined;
|
|
46
46
|
}[];
|
|
47
|
-
|
|
47
|
+
404: {
|
|
48
48
|
error: string;
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
400: {
|
|
51
51
|
error: string;
|
|
52
52
|
};
|
|
53
53
|
422: {
|
|
@@ -90,13 +90,13 @@ export declare function registerLinkRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
90
90
|
200: {
|
|
91
91
|
success: boolean;
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
404: {
|
|
94
94
|
error: string;
|
|
95
95
|
};
|
|
96
|
-
|
|
96
|
+
403: {
|
|
97
97
|
error: string;
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
400: {
|
|
100
100
|
error: string;
|
|
101
101
|
};
|
|
102
102
|
422: {
|
|
@@ -139,13 +139,13 @@ export declare function registerLinkRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
139
139
|
200: {
|
|
140
140
|
success: boolean;
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
404: {
|
|
143
143
|
error: string;
|
|
144
144
|
};
|
|
145
|
-
|
|
145
|
+
403: {
|
|
146
146
|
error: string;
|
|
147
147
|
};
|
|
148
|
-
|
|
148
|
+
400: {
|
|
149
149
|
error: string;
|
|
150
150
|
};
|
|
151
151
|
422: {
|
|
@@ -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"}
|