@sixb/server 0.0.1

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.
Files changed (216) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -0
  3. package/dist/auth/access-token-boundary.d.ts +23 -0
  4. package/dist/auth/access-token-boundary.d.ts.map +1 -0
  5. package/dist/auth/application-access.d.ts +4 -0
  6. package/dist/auth/application-access.d.ts.map +1 -0
  7. package/dist/auth/browser-origin.d.ts +62 -0
  8. package/dist/auth/browser-origin.d.ts.map +1 -0
  9. package/dist/auth/csrf.d.ts +2 -0
  10. package/dist/auth/csrf.d.ts.map +1 -0
  11. package/dist/auth/guard.d.ts +35 -0
  12. package/dist/auth/guard.d.ts.map +1 -0
  13. package/dist/auth/public-routes.d.ts +8 -0
  14. package/dist/auth/public-routes.d.ts.map +1 -0
  15. package/dist/auth/responses.d.ts +11 -0
  16. package/dist/auth/responses.d.ts.map +1 -0
  17. package/dist/auth/return-to.d.ts +3 -0
  18. package/dist/auth/return-to.d.ts.map +1 -0
  19. package/dist/auth/scope.d.ts +43 -0
  20. package/dist/auth/scope.d.ts.map +1 -0
  21. package/dist/auth/session-activity.d.ts +4 -0
  22. package/dist/auth/session-activity.d.ts.map +1 -0
  23. package/dist/auth/session-cookies.d.ts +12 -0
  24. package/dist/auth/session-cookies.d.ts.map +1 -0
  25. package/dist/files/content.d.ts +141 -0
  26. package/dist/files/content.d.ts.map +1 -0
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +11522 -0
  30. package/dist/index.js.map +78 -0
  31. package/dist/openapi/security.d.ts +26 -0
  32. package/dist/openapi/security.d.ts.map +1 -0
  33. package/dist/openapi/tags.d.ts +151 -0
  34. package/dist/openapi/tags.d.ts.map +1 -0
  35. package/dist/registerRoutes.d.ts +31 -0
  36. package/dist/registerRoutes.d.ts.map +1 -0
  37. package/dist/routes/action-runs.d.ts +244 -0
  38. package/dist/routes/action-runs.d.ts.map +1 -0
  39. package/dist/routes/actions.d.ts +183 -0
  40. package/dist/routes/actions.d.ts.map +1 -0
  41. package/dist/routes/agent-api-gateway.d.ts +4 -0
  42. package/dist/routes/agent-api-gateway.d.ts.map +1 -0
  43. package/dist/routes/agents.d.ts +1061 -0
  44. package/dist/routes/agents.d.ts.map +1 -0
  45. package/dist/routes/auth.d.ts +1366 -0
  46. package/dist/routes/auth.d.ts.map +1 -0
  47. package/dist/routes/connectors.d.ts +108 -0
  48. package/dist/routes/connectors.d.ts.map +1 -0
  49. package/dist/routes/datasets.d.ts +339 -0
  50. package/dist/routes/datasets.d.ts.map +1 -0
  51. package/dist/routes/events.d.ts +116 -0
  52. package/dist/routes/events.d.ts.map +1 -0
  53. package/dist/routes/files.d.ts +340 -0
  54. package/dist/routes/files.d.ts.map +1 -0
  55. package/dist/routes/links.d.ts +175 -0
  56. package/dist/routes/links.d.ts.map +1 -0
  57. package/dist/routes/logs.d.ts +88 -0
  58. package/dist/routes/logs.d.ts.map +1 -0
  59. package/dist/routes/objects.d.ts +450 -0
  60. package/dist/routes/objects.d.ts.map +1 -0
  61. package/dist/routes/ontology.d.ts +240 -0
  62. package/dist/routes/ontology.d.ts.map +1 -0
  63. package/dist/routes/pipelines.d.ts +399 -0
  64. package/dist/routes/pipelines.d.ts.map +1 -0
  65. package/dist/routes/project.d.ts +56 -0
  66. package/dist/routes/project.d.ts.map +1 -0
  67. package/dist/routes/projections.d.ts +916 -0
  68. package/dist/routes/projections.d.ts.map +1 -0
  69. package/dist/routes/rules.d.ts +165 -0
  70. package/dist/routes/rules.d.ts.map +1 -0
  71. package/dist/routes/status.d.ts +81 -0
  72. package/dist/routes/status.d.ts.map +1 -0
  73. package/dist/routes/syncs.d.ts +294 -0
  74. package/dist/routes/syncs.d.ts.map +1 -0
  75. package/dist/routes/telemetry.d.ts +241 -0
  76. package/dist/routes/telemetry.d.ts.map +1 -0
  77. package/dist/routes/webhook-runs.d.ts +89 -0
  78. package/dist/routes/webhook-runs.d.ts.map +1 -0
  79. package/dist/routes/webhooks.d.ts +60 -0
  80. package/dist/routes/webhooks.d.ts.map +1 -0
  81. package/dist/routes/workflows.d.ts +973 -0
  82. package/dist/routes/workflows.d.ts.map +1 -0
  83. package/dist/routes/ws/agents.d.ts +99 -0
  84. package/dist/routes/ws/agents.d.ts.map +1 -0
  85. package/dist/routes/ws/events.d.ts +89 -0
  86. package/dist/routes/ws/events.d.ts.map +1 -0
  87. package/dist/routes/ws/index.d.ts +31 -0
  88. package/dist/routes/ws/index.d.ts.map +1 -0
  89. package/dist/routes/ws/log-subscription-hub.d.ts +47 -0
  90. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -0
  91. package/dist/routes/ws/logs.d.ts +110 -0
  92. package/dist/routes/ws/logs.d.ts.map +1 -0
  93. package/dist/schemas/actions.d.ts +644 -0
  94. package/dist/schemas/actions.d.ts.map +1 -0
  95. package/dist/schemas/agents.d.ts +3157 -0
  96. package/dist/schemas/agents.d.ts.map +1 -0
  97. package/dist/schemas/auth.d.ts +2023 -0
  98. package/dist/schemas/auth.d.ts.map +1 -0
  99. package/dist/schemas/common.d.ts +30 -0
  100. package/dist/schemas/common.d.ts.map +1 -0
  101. package/dist/schemas/connectors.d.ts +82 -0
  102. package/dist/schemas/connectors.d.ts.map +1 -0
  103. package/dist/schemas/datasets.d.ts +744 -0
  104. package/dist/schemas/datasets.d.ts.map +1 -0
  105. package/dist/schemas/event-payloads.d.ts +477 -0
  106. package/dist/schemas/event-payloads.d.ts.map +1 -0
  107. package/dist/schemas/events.d.ts +665 -0
  108. package/dist/schemas/events.d.ts.map +1 -0
  109. package/dist/schemas/files.d.ts +241 -0
  110. package/dist/schemas/files.d.ts.map +1 -0
  111. package/dist/schemas/links.d.ts +90 -0
  112. package/dist/schemas/links.d.ts.map +1 -0
  113. package/dist/schemas/logs.d.ts +231 -0
  114. package/dist/schemas/logs.d.ts.map +1 -0
  115. package/dist/schemas/objects.d.ts +288 -0
  116. package/dist/schemas/objects.d.ts.map +1 -0
  117. package/dist/schemas/ontology.d.ts +778 -0
  118. package/dist/schemas/ontology.d.ts.map +1 -0
  119. package/dist/schemas/pipelines.d.ts +1373 -0
  120. package/dist/schemas/pipelines.d.ts.map +1 -0
  121. package/dist/schemas/project.d.ts +9 -0
  122. package/dist/schemas/project.d.ts.map +1 -0
  123. package/dist/schemas/projections.d.ts +6992 -0
  124. package/dist/schemas/projections.d.ts.map +1 -0
  125. package/dist/schemas/rules.d.ts +204 -0
  126. package/dist/schemas/rules.d.ts.map +1 -0
  127. package/dist/schemas/status.d.ts +189 -0
  128. package/dist/schemas/status.d.ts.map +1 -0
  129. package/dist/schemas/syncs.d.ts +538 -0
  130. package/dist/schemas/syncs.d.ts.map +1 -0
  131. package/dist/schemas/telemetry.d.ts +265 -0
  132. package/dist/schemas/telemetry.d.ts.map +1 -0
  133. package/dist/schemas/webhook-runs.d.ts +169 -0
  134. package/dist/schemas/webhook-runs.d.ts.map +1 -0
  135. package/dist/schemas/workflows.d.ts +1720 -0
  136. package/dist/schemas/workflows.d.ts.map +1 -0
  137. package/dist/server.d.ts +64 -0
  138. package/dist/server.d.ts.map +1 -0
  139. package/dist/tsconfig.json +5 -0
  140. package/dist/utils/http.d.ts +23 -0
  141. package/dist/utils/http.d.ts.map +1 -0
  142. package/dist/utils/request-body.d.ts +15 -0
  143. package/dist/utils/request-body.d.ts.map +1 -0
  144. package/dist/utils/ws.d.ts +10 -0
  145. package/dist/utils/ws.d.ts.map +1 -0
  146. package/package.json +68 -0
  147. package/src/auth/access-token-boundary.ts +68 -0
  148. package/src/auth/application-access.ts +16 -0
  149. package/src/auth/browser-origin.ts +367 -0
  150. package/src/auth/csrf.ts +1 -0
  151. package/src/auth/guard.ts +169 -0
  152. package/src/auth/public-routes.ts +87 -0
  153. package/src/auth/responses.ts +54 -0
  154. package/src/auth/return-to.ts +21 -0
  155. package/src/auth/scope.ts +64 -0
  156. package/src/auth/session-activity.ts +19 -0
  157. package/src/auth/session-cookies.ts +43 -0
  158. package/src/files/content.ts +419 -0
  159. package/src/index.ts +2 -0
  160. package/src/openapi/security.ts +37 -0
  161. package/src/openapi/tags.ts +151 -0
  162. package/src/registerRoutes.ts +49 -0
  163. package/src/routes/action-runs.ts +238 -0
  164. package/src/routes/actions.ts +126 -0
  165. package/src/routes/agent-api-gateway.ts +260 -0
  166. package/src/routes/agents.ts +943 -0
  167. package/src/routes/auth.ts +2233 -0
  168. package/src/routes/connectors.ts +69 -0
  169. package/src/routes/datasets.ts +402 -0
  170. package/src/routes/events.ts +55 -0
  171. package/src/routes/files.ts +675 -0
  172. package/src/routes/links.ts +143 -0
  173. package/src/routes/logs.ts +65 -0
  174. package/src/routes/objects.ts +838 -0
  175. package/src/routes/ontology.ts +138 -0
  176. package/src/routes/pipelines.ts +332 -0
  177. package/src/routes/project.ts +16 -0
  178. package/src/routes/projections.ts +251 -0
  179. package/src/routes/rules.ts +124 -0
  180. package/src/routes/status.ts +53 -0
  181. package/src/routes/syncs.ts +243 -0
  182. package/src/routes/telemetry.ts +207 -0
  183. package/src/routes/webhook-runs.ts +81 -0
  184. package/src/routes/webhooks.ts +508 -0
  185. package/src/routes/workflows.ts +1333 -0
  186. package/src/routes/ws/agents.ts +301 -0
  187. package/src/routes/ws/events.ts +278 -0
  188. package/src/routes/ws/index.ts +12 -0
  189. package/src/routes/ws/log-subscription-hub.ts +375 -0
  190. package/src/routes/ws/logs.ts +117 -0
  191. package/src/schemas/actions.ts +123 -0
  192. package/src/schemas/agents.ts +293 -0
  193. package/src/schemas/auth.ts +317 -0
  194. package/src/schemas/common.ts +60 -0
  195. package/src/schemas/connectors.ts +21 -0
  196. package/src/schemas/datasets.ts +107 -0
  197. package/src/schemas/event-payloads.ts +79 -0
  198. package/src/schemas/events.ts +117 -0
  199. package/src/schemas/files.ts +82 -0
  200. package/src/schemas/links.ts +38 -0
  201. package/src/schemas/logs.ts +76 -0
  202. package/src/schemas/objects.ts +759 -0
  203. package/src/schemas/ontology.ts +77 -0
  204. package/src/schemas/pipelines.ts +150 -0
  205. package/src/schemas/project.ts +5 -0
  206. package/src/schemas/projections.ts +144 -0
  207. package/src/schemas/rules.ts +98 -0
  208. package/src/schemas/status.ts +51 -0
  209. package/src/schemas/syncs.ts +83 -0
  210. package/src/schemas/telemetry.ts +59 -0
  211. package/src/schemas/webhook-runs.ts +40 -0
  212. package/src/schemas/workflows.ts +229 -0
  213. package/src/server.ts +383 -0
  214. package/src/utils/http.ts +108 -0
  215. package/src/utils/request-body.ts +62 -0
  216. package/src/utils/ws.ts +59 -0
@@ -0,0 +1,916 @@
1
+ import type { OntologySource, Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerProjectionRoutes(app: Elysia, sixb: Sixb<readonly OntologySource[]>): 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
+ projections: {
21
+ get: {
22
+ body: unknown;
23
+ params: {};
24
+ query: unknown;
25
+ headers: unknown;
26
+ response: {
27
+ 200: {
28
+ objectProjections: {
29
+ links: Record<string, {
30
+ targetObjectTypeId: string;
31
+ linkId: string;
32
+ sourcePropertyId?: string | undefined;
33
+ sourceField?: string | undefined;
34
+ }>;
35
+ objectTypeId: string;
36
+ id: string;
37
+ properties: Record<string, string>;
38
+ datasetId: string;
39
+ latestRun: {
40
+ status: "running" | "succeeded" | "failed" | "cancelled";
41
+ projectId: string;
42
+ id: string;
43
+ startedAt: string;
44
+ attempt: number;
45
+ progress: {
46
+ sourceRowsRead: number;
47
+ sourceRowsSkipped: number;
48
+ };
49
+ identity: {
50
+ projectionId: string;
51
+ datasetVersion: {
52
+ createdAt: string;
53
+ datasetId: string;
54
+ versionId: string;
55
+ };
56
+ ontologyRevision: string;
57
+ projectionRevision: string;
58
+ ownershipHash: string;
59
+ projectionKind: "object";
60
+ protocol: "replacement";
61
+ };
62
+ target: {
63
+ objectTypeId: string;
64
+ };
65
+ finishedAt?: string | undefined;
66
+ errorMessage?: string | undefined;
67
+ } | {
68
+ status: "running" | "succeeded" | "failed" | "cancelled";
69
+ projectId: string;
70
+ id: string;
71
+ startedAt: string;
72
+ attempt: number;
73
+ progress: {
74
+ sourceRowsRead: number;
75
+ sourceRowsSkipped: number;
76
+ };
77
+ identity: {
78
+ projectionId: string;
79
+ datasetVersion: {
80
+ createdAt: string;
81
+ datasetId: string;
82
+ versionId: string;
83
+ };
84
+ ontologyRevision: string;
85
+ projectionRevision: string;
86
+ ownershipHash: string;
87
+ projectionKind: "link";
88
+ protocol: "replacement";
89
+ };
90
+ target: {
91
+ targetObjectTypeId: string;
92
+ sourceObjectTypeId: string;
93
+ };
94
+ finishedAt?: string | undefined;
95
+ errorMessage?: string | undefined;
96
+ } | {
97
+ status: "running" | "succeeded" | "failed" | "cancelled";
98
+ projectId: string;
99
+ id: string;
100
+ startedAt: string;
101
+ attempt: number;
102
+ progress: {
103
+ sourceRowsRead: number;
104
+ sourceRowsSkipped: number;
105
+ };
106
+ identity: {
107
+ projectionId: string;
108
+ datasetVersion: {
109
+ createdAt: string;
110
+ datasetId: string;
111
+ versionId: string;
112
+ };
113
+ ontologyRevision: string;
114
+ projectionRevision: string;
115
+ ownershipHash: string;
116
+ projectionKind: "telemetry";
117
+ protocol: "telemetry";
118
+ };
119
+ target: {
120
+ objectTypeId: string;
121
+ };
122
+ finishedAt?: string | undefined;
123
+ errorMessage?: string | undefined;
124
+ } | null;
125
+ _tag: "ObjectProjectionDefinition";
126
+ }[];
127
+ linkProjections: {
128
+ id: string;
129
+ targetObjectTypeId: string;
130
+ datasetId: string;
131
+ linkId: string;
132
+ sourceObjectTypeId: string;
133
+ latestRun: {
134
+ status: "running" | "succeeded" | "failed" | "cancelled";
135
+ projectId: string;
136
+ id: string;
137
+ startedAt: string;
138
+ attempt: number;
139
+ progress: {
140
+ sourceRowsRead: number;
141
+ sourceRowsSkipped: number;
142
+ };
143
+ identity: {
144
+ projectionId: string;
145
+ datasetVersion: {
146
+ createdAt: string;
147
+ datasetId: string;
148
+ versionId: string;
149
+ };
150
+ ontologyRevision: string;
151
+ projectionRevision: string;
152
+ ownershipHash: string;
153
+ projectionKind: "object";
154
+ protocol: "replacement";
155
+ };
156
+ target: {
157
+ objectTypeId: string;
158
+ };
159
+ finishedAt?: string | undefined;
160
+ errorMessage?: string | undefined;
161
+ } | {
162
+ status: "running" | "succeeded" | "failed" | "cancelled";
163
+ projectId: string;
164
+ id: string;
165
+ startedAt: string;
166
+ attempt: number;
167
+ progress: {
168
+ sourceRowsRead: number;
169
+ sourceRowsSkipped: number;
170
+ };
171
+ identity: {
172
+ projectionId: string;
173
+ datasetVersion: {
174
+ createdAt: string;
175
+ datasetId: string;
176
+ versionId: string;
177
+ };
178
+ ontologyRevision: string;
179
+ projectionRevision: string;
180
+ ownershipHash: string;
181
+ projectionKind: "link";
182
+ protocol: "replacement";
183
+ };
184
+ target: {
185
+ targetObjectTypeId: string;
186
+ sourceObjectTypeId: string;
187
+ };
188
+ finishedAt?: string | undefined;
189
+ errorMessage?: string | undefined;
190
+ } | {
191
+ status: "running" | "succeeded" | "failed" | "cancelled";
192
+ projectId: string;
193
+ id: string;
194
+ startedAt: string;
195
+ attempt: number;
196
+ progress: {
197
+ sourceRowsRead: number;
198
+ sourceRowsSkipped: number;
199
+ };
200
+ identity: {
201
+ projectionId: string;
202
+ datasetVersion: {
203
+ createdAt: string;
204
+ datasetId: string;
205
+ versionId: string;
206
+ };
207
+ ontologyRevision: string;
208
+ projectionRevision: string;
209
+ ownershipHash: string;
210
+ projectionKind: "telemetry";
211
+ protocol: "telemetry";
212
+ };
213
+ target: {
214
+ objectTypeId: string;
215
+ };
216
+ finishedAt?: string | undefined;
217
+ errorMessage?: string | undefined;
218
+ } | null;
219
+ sourceField: string;
220
+ _tag: "LinkProjectionDefinition";
221
+ targetField: string;
222
+ }[];
223
+ telemetryProjections: {
224
+ objectTypeId: string;
225
+ id: string;
226
+ datasetId: string;
227
+ propertyId: string;
228
+ latestRun: {
229
+ status: "running" | "succeeded" | "failed" | "cancelled";
230
+ projectId: string;
231
+ id: string;
232
+ startedAt: string;
233
+ attempt: number;
234
+ progress: {
235
+ sourceRowsRead: number;
236
+ sourceRowsSkipped: number;
237
+ };
238
+ identity: {
239
+ projectionId: string;
240
+ datasetVersion: {
241
+ createdAt: string;
242
+ datasetId: string;
243
+ versionId: string;
244
+ };
245
+ ontologyRevision: string;
246
+ projectionRevision: string;
247
+ ownershipHash: string;
248
+ projectionKind: "object";
249
+ protocol: "replacement";
250
+ };
251
+ target: {
252
+ objectTypeId: string;
253
+ };
254
+ finishedAt?: string | undefined;
255
+ errorMessage?: string | undefined;
256
+ } | {
257
+ status: "running" | "succeeded" | "failed" | "cancelled";
258
+ projectId: string;
259
+ id: string;
260
+ startedAt: string;
261
+ attempt: number;
262
+ progress: {
263
+ sourceRowsRead: number;
264
+ sourceRowsSkipped: number;
265
+ };
266
+ identity: {
267
+ projectionId: string;
268
+ datasetVersion: {
269
+ createdAt: string;
270
+ datasetId: string;
271
+ versionId: string;
272
+ };
273
+ ontologyRevision: string;
274
+ projectionRevision: string;
275
+ ownershipHash: string;
276
+ projectionKind: "link";
277
+ protocol: "replacement";
278
+ };
279
+ target: {
280
+ targetObjectTypeId: string;
281
+ sourceObjectTypeId: string;
282
+ };
283
+ finishedAt?: string | undefined;
284
+ errorMessage?: string | undefined;
285
+ } | {
286
+ status: "running" | "succeeded" | "failed" | "cancelled";
287
+ projectId: string;
288
+ id: string;
289
+ startedAt: string;
290
+ attempt: number;
291
+ progress: {
292
+ sourceRowsRead: number;
293
+ sourceRowsSkipped: number;
294
+ };
295
+ identity: {
296
+ projectionId: string;
297
+ datasetVersion: {
298
+ createdAt: string;
299
+ datasetId: string;
300
+ versionId: string;
301
+ };
302
+ ontologyRevision: string;
303
+ projectionRevision: string;
304
+ ownershipHash: string;
305
+ projectionKind: "telemetry";
306
+ protocol: "telemetry";
307
+ };
308
+ target: {
309
+ objectTypeId: string;
310
+ };
311
+ finishedAt?: string | undefined;
312
+ errorMessage?: string | undefined;
313
+ } | null;
314
+ _tag: "TelemetryProjectionDefinition";
315
+ objectIdField: string;
316
+ atField: string;
317
+ valueField: string;
318
+ unitField?: string | undefined;
319
+ }[];
320
+ };
321
+ 422: {
322
+ type: "validation";
323
+ on: string;
324
+ summary?: string;
325
+ message?: string;
326
+ found?: unknown;
327
+ property?: string;
328
+ expected?: string;
329
+ };
330
+ };
331
+ };
332
+ };
333
+ };
334
+ } & {
335
+ api: {
336
+ projections: {
337
+ ":projectionId": {
338
+ get: {
339
+ body: unknown;
340
+ params: {
341
+ projectionId: string;
342
+ };
343
+ query: unknown;
344
+ headers: unknown;
345
+ response: {
346
+ 200: {
347
+ links: Record<string, {
348
+ targetObjectTypeId: string;
349
+ linkId: string;
350
+ sourcePropertyId?: string | undefined;
351
+ sourceField?: string | undefined;
352
+ }>;
353
+ objectTypeId: string;
354
+ id: string;
355
+ properties: Record<string, string>;
356
+ datasetId: string;
357
+ latestRun: {
358
+ status: "running" | "succeeded" | "failed" | "cancelled";
359
+ projectId: string;
360
+ id: string;
361
+ startedAt: string;
362
+ attempt: number;
363
+ progress: {
364
+ sourceRowsRead: number;
365
+ sourceRowsSkipped: number;
366
+ };
367
+ identity: {
368
+ projectionId: string;
369
+ datasetVersion: {
370
+ createdAt: string;
371
+ datasetId: string;
372
+ versionId: string;
373
+ };
374
+ ontologyRevision: string;
375
+ projectionRevision: string;
376
+ ownershipHash: string;
377
+ projectionKind: "object";
378
+ protocol: "replacement";
379
+ };
380
+ target: {
381
+ objectTypeId: string;
382
+ };
383
+ finishedAt?: string | undefined;
384
+ errorMessage?: string | undefined;
385
+ } | {
386
+ status: "running" | "succeeded" | "failed" | "cancelled";
387
+ projectId: string;
388
+ id: string;
389
+ startedAt: string;
390
+ attempt: number;
391
+ progress: {
392
+ sourceRowsRead: number;
393
+ sourceRowsSkipped: number;
394
+ };
395
+ identity: {
396
+ projectionId: string;
397
+ datasetVersion: {
398
+ createdAt: string;
399
+ datasetId: string;
400
+ versionId: string;
401
+ };
402
+ ontologyRevision: string;
403
+ projectionRevision: string;
404
+ ownershipHash: string;
405
+ projectionKind: "link";
406
+ protocol: "replacement";
407
+ };
408
+ target: {
409
+ targetObjectTypeId: string;
410
+ sourceObjectTypeId: string;
411
+ };
412
+ finishedAt?: string | undefined;
413
+ errorMessage?: string | undefined;
414
+ } | {
415
+ status: "running" | "succeeded" | "failed" | "cancelled";
416
+ projectId: string;
417
+ id: string;
418
+ startedAt: string;
419
+ attempt: number;
420
+ progress: {
421
+ sourceRowsRead: number;
422
+ sourceRowsSkipped: number;
423
+ };
424
+ identity: {
425
+ projectionId: string;
426
+ datasetVersion: {
427
+ createdAt: string;
428
+ datasetId: string;
429
+ versionId: string;
430
+ };
431
+ ontologyRevision: string;
432
+ projectionRevision: string;
433
+ ownershipHash: string;
434
+ projectionKind: "telemetry";
435
+ protocol: "telemetry";
436
+ };
437
+ target: {
438
+ objectTypeId: string;
439
+ };
440
+ finishedAt?: string | undefined;
441
+ errorMessage?: string | undefined;
442
+ } | null;
443
+ _tag: "ObjectProjectionDefinition";
444
+ } | {
445
+ id: string;
446
+ targetObjectTypeId: string;
447
+ datasetId: string;
448
+ linkId: string;
449
+ sourceObjectTypeId: string;
450
+ latestRun: {
451
+ status: "running" | "succeeded" | "failed" | "cancelled";
452
+ projectId: string;
453
+ id: string;
454
+ startedAt: string;
455
+ attempt: number;
456
+ progress: {
457
+ sourceRowsRead: number;
458
+ sourceRowsSkipped: number;
459
+ };
460
+ identity: {
461
+ projectionId: string;
462
+ datasetVersion: {
463
+ createdAt: string;
464
+ datasetId: string;
465
+ versionId: string;
466
+ };
467
+ ontologyRevision: string;
468
+ projectionRevision: string;
469
+ ownershipHash: string;
470
+ projectionKind: "object";
471
+ protocol: "replacement";
472
+ };
473
+ target: {
474
+ objectTypeId: string;
475
+ };
476
+ finishedAt?: string | undefined;
477
+ errorMessage?: string | undefined;
478
+ } | {
479
+ status: "running" | "succeeded" | "failed" | "cancelled";
480
+ projectId: string;
481
+ id: string;
482
+ startedAt: string;
483
+ attempt: number;
484
+ progress: {
485
+ sourceRowsRead: number;
486
+ sourceRowsSkipped: number;
487
+ };
488
+ identity: {
489
+ projectionId: string;
490
+ datasetVersion: {
491
+ createdAt: string;
492
+ datasetId: string;
493
+ versionId: string;
494
+ };
495
+ ontologyRevision: string;
496
+ projectionRevision: string;
497
+ ownershipHash: string;
498
+ projectionKind: "link";
499
+ protocol: "replacement";
500
+ };
501
+ target: {
502
+ targetObjectTypeId: string;
503
+ sourceObjectTypeId: string;
504
+ };
505
+ finishedAt?: string | undefined;
506
+ errorMessage?: string | undefined;
507
+ } | {
508
+ status: "running" | "succeeded" | "failed" | "cancelled";
509
+ projectId: string;
510
+ id: string;
511
+ startedAt: string;
512
+ attempt: number;
513
+ progress: {
514
+ sourceRowsRead: number;
515
+ sourceRowsSkipped: number;
516
+ };
517
+ identity: {
518
+ projectionId: string;
519
+ datasetVersion: {
520
+ createdAt: string;
521
+ datasetId: string;
522
+ versionId: string;
523
+ };
524
+ ontologyRevision: string;
525
+ projectionRevision: string;
526
+ ownershipHash: string;
527
+ projectionKind: "telemetry";
528
+ protocol: "telemetry";
529
+ };
530
+ target: {
531
+ objectTypeId: string;
532
+ };
533
+ finishedAt?: string | undefined;
534
+ errorMessage?: string | undefined;
535
+ } | null;
536
+ sourceField: string;
537
+ _tag: "LinkProjectionDefinition";
538
+ targetField: string;
539
+ } | {
540
+ objectTypeId: string;
541
+ id: string;
542
+ datasetId: string;
543
+ propertyId: string;
544
+ latestRun: {
545
+ status: "running" | "succeeded" | "failed" | "cancelled";
546
+ projectId: string;
547
+ id: string;
548
+ startedAt: string;
549
+ attempt: number;
550
+ progress: {
551
+ sourceRowsRead: number;
552
+ sourceRowsSkipped: number;
553
+ };
554
+ identity: {
555
+ projectionId: string;
556
+ datasetVersion: {
557
+ createdAt: string;
558
+ datasetId: string;
559
+ versionId: string;
560
+ };
561
+ ontologyRevision: string;
562
+ projectionRevision: string;
563
+ ownershipHash: string;
564
+ projectionKind: "object";
565
+ protocol: "replacement";
566
+ };
567
+ target: {
568
+ objectTypeId: string;
569
+ };
570
+ finishedAt?: string | undefined;
571
+ errorMessage?: string | undefined;
572
+ } | {
573
+ status: "running" | "succeeded" | "failed" | "cancelled";
574
+ projectId: string;
575
+ id: string;
576
+ startedAt: string;
577
+ attempt: number;
578
+ progress: {
579
+ sourceRowsRead: number;
580
+ sourceRowsSkipped: number;
581
+ };
582
+ identity: {
583
+ projectionId: string;
584
+ datasetVersion: {
585
+ createdAt: string;
586
+ datasetId: string;
587
+ versionId: string;
588
+ };
589
+ ontologyRevision: string;
590
+ projectionRevision: string;
591
+ ownershipHash: string;
592
+ projectionKind: "link";
593
+ protocol: "replacement";
594
+ };
595
+ target: {
596
+ targetObjectTypeId: string;
597
+ sourceObjectTypeId: string;
598
+ };
599
+ finishedAt?: string | undefined;
600
+ errorMessage?: string | undefined;
601
+ } | {
602
+ status: "running" | "succeeded" | "failed" | "cancelled";
603
+ projectId: string;
604
+ id: string;
605
+ startedAt: string;
606
+ attempt: number;
607
+ progress: {
608
+ sourceRowsRead: number;
609
+ sourceRowsSkipped: number;
610
+ };
611
+ identity: {
612
+ projectionId: string;
613
+ datasetVersion: {
614
+ createdAt: string;
615
+ datasetId: string;
616
+ versionId: string;
617
+ };
618
+ ontologyRevision: string;
619
+ projectionRevision: string;
620
+ ownershipHash: string;
621
+ projectionKind: "telemetry";
622
+ protocol: "telemetry";
623
+ };
624
+ target: {
625
+ objectTypeId: string;
626
+ };
627
+ finishedAt?: string | undefined;
628
+ errorMessage?: string | undefined;
629
+ } | null;
630
+ _tag: "TelemetryProjectionDefinition";
631
+ objectIdField: string;
632
+ atField: string;
633
+ valueField: string;
634
+ unitField?: string | undefined;
635
+ };
636
+ 404: {
637
+ error: string;
638
+ };
639
+ 422: {
640
+ type: "validation";
641
+ on: string;
642
+ summary?: string;
643
+ message?: string;
644
+ found?: unknown;
645
+ property?: string;
646
+ expected?: string;
647
+ };
648
+ };
649
+ };
650
+ };
651
+ };
652
+ };
653
+ } & {
654
+ api: {
655
+ "projection-runs": {
656
+ get: {
657
+ body: unknown;
658
+ params: {};
659
+ query: {
660
+ status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
661
+ limit?: string | undefined;
662
+ offset?: string | undefined;
663
+ order?: "asc" | "desc" | undefined;
664
+ startedAfter?: string | undefined;
665
+ startedBefore?: string | undefined;
666
+ datasetId?: string | undefined;
667
+ projectionId?: string | undefined;
668
+ datasetVersionId?: string | undefined;
669
+ projectionKind?: "object" | "telemetry" | "link" | undefined;
670
+ };
671
+ headers: unknown;
672
+ response: {
673
+ 200: {
674
+ runs: ({
675
+ status: "running" | "succeeded" | "failed" | "cancelled";
676
+ projectId: string;
677
+ id: string;
678
+ startedAt: string;
679
+ attempt: number;
680
+ progress: {
681
+ sourceRowsRead: number;
682
+ sourceRowsSkipped: number;
683
+ };
684
+ identity: {
685
+ projectionId: string;
686
+ datasetVersion: {
687
+ createdAt: string;
688
+ datasetId: string;
689
+ versionId: string;
690
+ };
691
+ ontologyRevision: string;
692
+ projectionRevision: string;
693
+ ownershipHash: string;
694
+ projectionKind: "object";
695
+ protocol: "replacement";
696
+ };
697
+ target: {
698
+ objectTypeId: string;
699
+ };
700
+ finishedAt?: string | undefined;
701
+ errorMessage?: string | undefined;
702
+ } | {
703
+ status: "running" | "succeeded" | "failed" | "cancelled";
704
+ projectId: string;
705
+ id: string;
706
+ startedAt: string;
707
+ attempt: number;
708
+ progress: {
709
+ sourceRowsRead: number;
710
+ sourceRowsSkipped: number;
711
+ };
712
+ identity: {
713
+ projectionId: string;
714
+ datasetVersion: {
715
+ createdAt: string;
716
+ datasetId: string;
717
+ versionId: string;
718
+ };
719
+ ontologyRevision: string;
720
+ projectionRevision: string;
721
+ ownershipHash: string;
722
+ projectionKind: "link";
723
+ protocol: "replacement";
724
+ };
725
+ target: {
726
+ targetObjectTypeId: string;
727
+ sourceObjectTypeId: string;
728
+ };
729
+ finishedAt?: string | undefined;
730
+ errorMessage?: string | undefined;
731
+ } | {
732
+ status: "running" | "succeeded" | "failed" | "cancelled";
733
+ projectId: string;
734
+ id: string;
735
+ startedAt: string;
736
+ attempt: number;
737
+ progress: {
738
+ sourceRowsRead: number;
739
+ sourceRowsSkipped: number;
740
+ };
741
+ identity: {
742
+ projectionId: string;
743
+ datasetVersion: {
744
+ createdAt: string;
745
+ datasetId: string;
746
+ versionId: string;
747
+ };
748
+ ontologyRevision: string;
749
+ projectionRevision: string;
750
+ ownershipHash: string;
751
+ projectionKind: "telemetry";
752
+ protocol: "telemetry";
753
+ };
754
+ target: {
755
+ objectTypeId: string;
756
+ };
757
+ finishedAt?: string | undefined;
758
+ errorMessage?: string | undefined;
759
+ })[];
760
+ hasMore: boolean;
761
+ total: number;
762
+ };
763
+ 400: {
764
+ error: string;
765
+ };
766
+ 501: {
767
+ error: string;
768
+ };
769
+ 422: {
770
+ type: "validation";
771
+ on: string;
772
+ summary?: string;
773
+ message?: string;
774
+ found?: unknown;
775
+ property?: string;
776
+ expected?: string;
777
+ };
778
+ };
779
+ };
780
+ };
781
+ };
782
+ } & {
783
+ api: {
784
+ "projection-runs": {
785
+ ":runId": {
786
+ get: {
787
+ body: unknown;
788
+ params: {
789
+ runId: string;
790
+ };
791
+ query: unknown;
792
+ headers: unknown;
793
+ response: {
794
+ 200: {
795
+ status: "running" | "succeeded" | "failed" | "cancelled";
796
+ projectId: string;
797
+ id: string;
798
+ startedAt: string;
799
+ attempt: number;
800
+ progress: {
801
+ sourceRowsRead: number;
802
+ sourceRowsSkipped: number;
803
+ };
804
+ identity: {
805
+ projectionId: string;
806
+ datasetVersion: {
807
+ createdAt: string;
808
+ datasetId: string;
809
+ versionId: string;
810
+ };
811
+ ontologyRevision: string;
812
+ projectionRevision: string;
813
+ ownershipHash: string;
814
+ projectionKind: "object";
815
+ protocol: "replacement";
816
+ };
817
+ target: {
818
+ objectTypeId: string;
819
+ };
820
+ finishedAt?: string | undefined;
821
+ errorMessage?: string | undefined;
822
+ } | {
823
+ status: "running" | "succeeded" | "failed" | "cancelled";
824
+ projectId: string;
825
+ id: string;
826
+ startedAt: string;
827
+ attempt: number;
828
+ progress: {
829
+ sourceRowsRead: number;
830
+ sourceRowsSkipped: number;
831
+ };
832
+ identity: {
833
+ projectionId: string;
834
+ datasetVersion: {
835
+ createdAt: string;
836
+ datasetId: string;
837
+ versionId: string;
838
+ };
839
+ ontologyRevision: string;
840
+ projectionRevision: string;
841
+ ownershipHash: string;
842
+ projectionKind: "link";
843
+ protocol: "replacement";
844
+ };
845
+ target: {
846
+ targetObjectTypeId: string;
847
+ sourceObjectTypeId: string;
848
+ };
849
+ finishedAt?: string | undefined;
850
+ errorMessage?: string | undefined;
851
+ } | {
852
+ status: "running" | "succeeded" | "failed" | "cancelled";
853
+ projectId: string;
854
+ id: string;
855
+ startedAt: string;
856
+ attempt: number;
857
+ progress: {
858
+ sourceRowsRead: number;
859
+ sourceRowsSkipped: number;
860
+ };
861
+ identity: {
862
+ projectionId: string;
863
+ datasetVersion: {
864
+ createdAt: string;
865
+ datasetId: string;
866
+ versionId: string;
867
+ };
868
+ ontologyRevision: string;
869
+ projectionRevision: string;
870
+ ownershipHash: string;
871
+ projectionKind: "telemetry";
872
+ protocol: "telemetry";
873
+ };
874
+ target: {
875
+ objectTypeId: string;
876
+ };
877
+ finishedAt?: string | undefined;
878
+ errorMessage?: string | undefined;
879
+ };
880
+ 400: {
881
+ error: string;
882
+ };
883
+ 404: {
884
+ error: string;
885
+ };
886
+ 501: {
887
+ error: string;
888
+ };
889
+ 422: {
890
+ type: "validation";
891
+ on: string;
892
+ summary?: string;
893
+ message?: string;
894
+ found?: unknown;
895
+ property?: string;
896
+ expected?: string;
897
+ };
898
+ };
899
+ };
900
+ };
901
+ };
902
+ };
903
+ }, {
904
+ derive: {};
905
+ resolve: {};
906
+ schema: {};
907
+ standaloneSchema: {};
908
+ response: {};
909
+ }, {
910
+ derive: {};
911
+ resolve: {};
912
+ schema: {};
913
+ standaloneSchema: {};
914
+ response: {};
915
+ }>;
916
+ //# sourceMappingURL=projections.d.ts.map