@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,450 @@
1
+ import { type OntologySource, type Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ declare function serializeObject(row: {
4
+ primaryId: string;
5
+ objectTypeId: string;
6
+ properties: Record<string, unknown>;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ }): {
10
+ primaryId: string;
11
+ objectTypeId: string;
12
+ properties: Record<string, unknown>;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ };
16
+ type SerializedObject = ReturnType<typeof serializeObject>;
17
+ type SerializedLinkValue = SerializedExpandedObject | SerializedExpandedObject[] | null;
18
+ type SerializedExpandedObject = SerializedObject & {
19
+ links?: Record<string, SerializedLinkValue>;
20
+ linkProperties?: Record<string, unknown>;
21
+ };
22
+ export declare function registerObjectRoutes(app: Elysia, sixb: Sixb<readonly OntologySource[]>): Elysia<"", {
23
+ decorator: {};
24
+ store: {};
25
+ derive: {};
26
+ resolve: {};
27
+ }, {
28
+ typebox: {};
29
+ error: {};
30
+ }, {
31
+ schema: {};
32
+ standaloneSchema: {};
33
+ macro: {};
34
+ macroFn: {};
35
+ parser: {};
36
+ response: {};
37
+ }, {
38
+ api: {
39
+ objects: {
40
+ search: {
41
+ get: {
42
+ body: unknown;
43
+ params: {};
44
+ query: {
45
+ q: string;
46
+ limit?: string | undefined;
47
+ };
48
+ headers: unknown;
49
+ response: {
50
+ 200: {
51
+ items: {
52
+ ref: {
53
+ objectTypeId: string;
54
+ primaryId: string;
55
+ };
56
+ label: string;
57
+ }[];
58
+ };
59
+ 403: {
60
+ error: string;
61
+ };
62
+ 400: {
63
+ error: string;
64
+ };
65
+ 422: {
66
+ type: "validation";
67
+ on: string;
68
+ summary?: string;
69
+ message?: string;
70
+ found?: unknown;
71
+ property?: string;
72
+ expected?: string;
73
+ };
74
+ };
75
+ };
76
+ };
77
+ };
78
+ };
79
+ } & {
80
+ api: {
81
+ objects: {
82
+ get: {
83
+ body: unknown;
84
+ params: {};
85
+ query: {
86
+ limit?: number | undefined;
87
+ offset?: number | undefined;
88
+ order?: "asc" | "desc" | undefined;
89
+ objectTypeId?: string | undefined;
90
+ idPrefix?: string | undefined;
91
+ idSuffix?: string | undefined;
92
+ updatedAfter?: Date | undefined;
93
+ updatedBefore?: Date | undefined;
94
+ createdAfter?: Date | undefined;
95
+ createdBefore?: Date | undefined;
96
+ orderBy?: "primaryId" | "createdAt" | "updatedAt" | undefined;
97
+ };
98
+ headers: unknown;
99
+ response: {
100
+ 200: {
101
+ objects: {
102
+ objectTypeId: string;
103
+ properties: Record<string, unknown>;
104
+ primaryId: string;
105
+ createdAt: string;
106
+ updatedAt: string;
107
+ }[];
108
+ hasMore: boolean;
109
+ total: number;
110
+ };
111
+ 403: {
112
+ error: string;
113
+ };
114
+ 400: {
115
+ error: string;
116
+ };
117
+ 422: {
118
+ type: "validation";
119
+ on: string;
120
+ summary?: string;
121
+ message?: string;
122
+ found?: unknown;
123
+ property?: string;
124
+ expected?: string;
125
+ };
126
+ };
127
+ };
128
+ };
129
+ };
130
+ } & {
131
+ api: {
132
+ objects: {
133
+ query: {
134
+ post: {
135
+ body: unknown;
136
+ params: {};
137
+ query: unknown;
138
+ headers: unknown;
139
+ response: {
140
+ 200: {
141
+ error: string;
142
+ issues?: undefined;
143
+ } | {
144
+ error: string;
145
+ issues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[] | readonly import("@sixb/core").ObjectQueryValidationIssue[];
146
+ } | {
147
+ total?: number | undefined;
148
+ objects: SerializedExpandedObject[];
149
+ hasMore: boolean;
150
+ nextPageToken: string | undefined;
151
+ plan: {
152
+ mode: import("@sixb/core/internal/query").ObjectQueryPlanMode;
153
+ providerIssues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
154
+ fallbackIssues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
155
+ issues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
156
+ fallback: {
157
+ maxRows: number;
158
+ requiresExplicitBound: boolean;
159
+ } | undefined;
160
+ };
161
+ };
162
+ };
163
+ };
164
+ };
165
+ };
166
+ };
167
+ } & {
168
+ api: {
169
+ objects: {
170
+ query: {
171
+ count: {
172
+ post: {
173
+ body: unknown;
174
+ params: {};
175
+ query: unknown;
176
+ headers: unknown;
177
+ response: {
178
+ 200: {
179
+ error: string;
180
+ issues?: undefined;
181
+ } | {
182
+ error: string;
183
+ issues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[] | readonly import("@sixb/core").ObjectQueryValidationIssue[];
184
+ } | {
185
+ count: number;
186
+ plan: {
187
+ mode: import("@sixb/core/internal/query").ObjectQueryPlanMode;
188
+ providerIssues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
189
+ fallbackIssues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
190
+ issues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
191
+ fallback: {
192
+ maxRows: number;
193
+ requiresExplicitBound: boolean;
194
+ } | undefined;
195
+ };
196
+ };
197
+ };
198
+ };
199
+ };
200
+ };
201
+ };
202
+ };
203
+ } & {
204
+ api: {
205
+ objects: {
206
+ query: {
207
+ exists: {
208
+ post: {
209
+ body: unknown;
210
+ params: {};
211
+ query: unknown;
212
+ headers: unknown;
213
+ response: {
214
+ 200: {
215
+ error: string;
216
+ issues?: undefined;
217
+ } | {
218
+ error: string;
219
+ issues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[] | readonly import("@sixb/core").ObjectQueryValidationIssue[];
220
+ } | {
221
+ exists: boolean;
222
+ plan: {
223
+ mode: import("@sixb/core/internal/query").ObjectQueryPlanMode;
224
+ providerIssues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
225
+ fallbackIssues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
226
+ issues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
227
+ fallback: {
228
+ maxRows: number;
229
+ requiresExplicitBound: boolean;
230
+ } | undefined;
231
+ };
232
+ };
233
+ };
234
+ };
235
+ };
236
+ };
237
+ };
238
+ };
239
+ } & {
240
+ api: {
241
+ objects: {
242
+ query: {
243
+ facets: {
244
+ post: {
245
+ body: unknown;
246
+ params: {};
247
+ query: unknown;
248
+ headers: unknown;
249
+ response: {
250
+ 200: {
251
+ error: string;
252
+ issues?: undefined;
253
+ } | {
254
+ error: string;
255
+ issues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[] | readonly import("@sixb/core").ObjectQueryValidationIssue[];
256
+ } | {
257
+ facets: readonly import("@sixb/core/storage").ObjectFacetResult[];
258
+ plan: {
259
+ mode: import("@sixb/core/internal/query").ObjectQueryPlanMode;
260
+ providerIssues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
261
+ fallbackIssues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
262
+ issues: readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
263
+ fallback: {
264
+ maxRows: number;
265
+ requiresExplicitBound: boolean;
266
+ } | undefined;
267
+ };
268
+ };
269
+ };
270
+ };
271
+ };
272
+ };
273
+ };
274
+ };
275
+ } & {
276
+ api: {
277
+ objects: {
278
+ ":objectTypeId": {
279
+ ":objectId": {
280
+ files: {
281
+ content: {
282
+ get: {
283
+ body: unknown;
284
+ params: {
285
+ objectTypeId: string;
286
+ objectId: string;
287
+ };
288
+ query: {
289
+ path: string;
290
+ disposition?: "inline" | "attachment" | undefined;
291
+ };
292
+ headers: unknown;
293
+ response: {
294
+ 200: Response | {
295
+ readonly error: string;
296
+ };
297
+ 422: {
298
+ type: "validation";
299
+ on: string;
300
+ summary?: string;
301
+ message?: string;
302
+ found?: unknown;
303
+ property?: string;
304
+ expected?: string;
305
+ };
306
+ };
307
+ };
308
+ };
309
+ };
310
+ };
311
+ };
312
+ };
313
+ };
314
+ } & {
315
+ api: {
316
+ objects: {
317
+ ":objectTypeId": {
318
+ ":objectId": {
319
+ files: {
320
+ content: {
321
+ head: {
322
+ body: unknown;
323
+ params: {
324
+ objectTypeId: string;
325
+ objectId: string;
326
+ };
327
+ query: {
328
+ path: string;
329
+ disposition?: "inline" | "attachment" | undefined;
330
+ };
331
+ headers: unknown;
332
+ response: {
333
+ 200: Response | {
334
+ readonly error: string;
335
+ };
336
+ 422: {
337
+ type: "validation";
338
+ on: string;
339
+ summary?: string;
340
+ message?: string;
341
+ found?: unknown;
342
+ property?: string;
343
+ expected?: string;
344
+ };
345
+ };
346
+ };
347
+ };
348
+ };
349
+ };
350
+ };
351
+ };
352
+ };
353
+ } & {
354
+ api: {
355
+ objects: {
356
+ ":objectTypeId": {
357
+ ":objectId": {
358
+ get: {
359
+ body: unknown;
360
+ params: {
361
+ objectTypeId: string;
362
+ objectId: string;
363
+ };
364
+ query: unknown;
365
+ headers: unknown;
366
+ response: {
367
+ 200: {
368
+ objectTypeId: string;
369
+ properties: Record<string, unknown>;
370
+ primaryId: string;
371
+ createdAt: string;
372
+ updatedAt: string;
373
+ };
374
+ 404: {
375
+ error: string;
376
+ };
377
+ 422: {
378
+ type: "validation";
379
+ on: string;
380
+ summary?: string;
381
+ message?: string;
382
+ found?: unknown;
383
+ property?: string;
384
+ expected?: string;
385
+ };
386
+ };
387
+ };
388
+ };
389
+ };
390
+ };
391
+ };
392
+ } & {
393
+ api: {
394
+ objects: {
395
+ ":objectTypeId": {
396
+ ":objectId": {
397
+ put: {
398
+ body: {
399
+ properties: Record<string, unknown>;
400
+ };
401
+ params: {
402
+ objectTypeId: string;
403
+ objectId: string;
404
+ };
405
+ query: unknown;
406
+ headers: unknown;
407
+ response: {
408
+ 200: {
409
+ objectTypeId: string;
410
+ properties: Record<string, unknown>;
411
+ primaryId: string;
412
+ createdAt: string;
413
+ updatedAt: string;
414
+ };
415
+ 400: {
416
+ error: string;
417
+ };
418
+ 404: {
419
+ error: string;
420
+ };
421
+ 422: {
422
+ type: "validation";
423
+ on: string;
424
+ summary?: string;
425
+ message?: string;
426
+ found?: unknown;
427
+ property?: string;
428
+ expected?: string;
429
+ };
430
+ };
431
+ };
432
+ };
433
+ };
434
+ };
435
+ };
436
+ }, {
437
+ derive: {};
438
+ resolve: {};
439
+ schema: {};
440
+ standaloneSchema: {};
441
+ response: {};
442
+ }, {
443
+ derive: {};
444
+ resolve: {};
445
+ schema: {};
446
+ standaloneSchema: {};
447
+ response: {};
448
+ }>;
449
+ export {};
450
+ //# sourceMappingURL=objects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/routes/objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,IAAI,EACV,MAAM,YAAY,CAAA;AAanB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmCpC,iBAAS,eAAe,CAAC,GAAG,EAAE;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,EAAE,IAAI,CAAA;CAChB;;;;;;EAQA;AAED,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAC1D,KAAK,mBAAmB,GAAG,wBAAwB,GAAG,wBAAwB,EAAE,GAAG,IAAI,CAAA;AACvF,KAAK,wBAAwB,GAAG,gBAAgB,GAAG;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;IAC3C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACzC,CAAA;AAkOD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAugBtF"}
@@ -0,0 +1,240 @@
1
+ import { type OntologySource, type Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerOntologyRoutes(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
+ "object-types": {
21
+ get: {
22
+ body: unknown;
23
+ params: {};
24
+ query: unknown;
25
+ headers: unknown;
26
+ response: {
27
+ 200: {
28
+ links: {
29
+ name: string;
30
+ id: string;
31
+ targetObjectTypeId: string | string[];
32
+ description?: string | undefined;
33
+ cardinality?: "many" | "one" | undefined;
34
+ properties?: {
35
+ name: string;
36
+ id: string;
37
+ description?: string | undefined;
38
+ mode?: "telemetry" | "static" | undefined;
39
+ required?: boolean | undefined;
40
+ nullable?: boolean | undefined;
41
+ primary?: boolean | undefined;
42
+ semanticType?: string | undefined;
43
+ schema?: unknown;
44
+ query?: {
45
+ text?: boolean | undefined;
46
+ exact?: boolean | undefined;
47
+ searchable?: boolean | undefined;
48
+ filterable?: boolean | undefined;
49
+ sortable?: boolean | undefined;
50
+ facet?: boolean | undefined;
51
+ vector?: boolean | undefined;
52
+ weight?: number | undefined;
53
+ } | undefined;
54
+ }[] | undefined;
55
+ }[];
56
+ actions: {
57
+ name: string;
58
+ params: {
59
+ name: string;
60
+ id: string;
61
+ description?: string | undefined;
62
+ required?: boolean | undefined;
63
+ nullable?: boolean | undefined;
64
+ semanticType?: string | undefined;
65
+ schema?: unknown;
66
+ }[];
67
+ id: string;
68
+ description?: string | undefined;
69
+ }[];
70
+ name: string;
71
+ id: string;
72
+ properties: {
73
+ name: string;
74
+ id: string;
75
+ description?: string | undefined;
76
+ mode?: "telemetry" | "static" | undefined;
77
+ required?: boolean | undefined;
78
+ nullable?: boolean | undefined;
79
+ primary?: boolean | undefined;
80
+ semanticType?: string | undefined;
81
+ schema?: unknown;
82
+ query?: {
83
+ text?: boolean | undefined;
84
+ exact?: boolean | undefined;
85
+ searchable?: boolean | undefined;
86
+ filterable?: boolean | undefined;
87
+ sortable?: boolean | undefined;
88
+ facet?: boolean | undefined;
89
+ vector?: boolean | undefined;
90
+ weight?: number | undefined;
91
+ } | undefined;
92
+ }[];
93
+ description?: string | undefined;
94
+ extends?: string | undefined;
95
+ implements?: string[] | undefined;
96
+ search?: {
97
+ exact?: string[] | undefined;
98
+ vector?: {
99
+ property: string;
100
+ source: string[];
101
+ } | undefined;
102
+ title?: string | undefined;
103
+ defaultText?: string[] | undefined;
104
+ } | undefined;
105
+ }[];
106
+ 422: {
107
+ type: "validation";
108
+ on: string;
109
+ summary?: string;
110
+ message?: string;
111
+ found?: unknown;
112
+ property?: string;
113
+ expected?: string;
114
+ };
115
+ };
116
+ };
117
+ };
118
+ };
119
+ } & {
120
+ api: {
121
+ "object-types": {
122
+ ":objectTypeId": {
123
+ get: {
124
+ body: unknown;
125
+ params: {
126
+ objectTypeId: string;
127
+ };
128
+ query: unknown;
129
+ headers: unknown;
130
+ response: {
131
+ 200: {
132
+ links: {
133
+ name: string;
134
+ id: string;
135
+ targetObjectTypeId: string | string[];
136
+ description?: string | undefined;
137
+ cardinality?: "many" | "one" | undefined;
138
+ properties?: {
139
+ name: string;
140
+ id: string;
141
+ description?: string | undefined;
142
+ mode?: "telemetry" | "static" | undefined;
143
+ required?: boolean | undefined;
144
+ nullable?: boolean | undefined;
145
+ primary?: boolean | undefined;
146
+ semanticType?: string | undefined;
147
+ schema?: unknown;
148
+ query?: {
149
+ text?: boolean | undefined;
150
+ exact?: boolean | undefined;
151
+ searchable?: boolean | undefined;
152
+ filterable?: boolean | undefined;
153
+ sortable?: boolean | undefined;
154
+ facet?: boolean | undefined;
155
+ vector?: boolean | undefined;
156
+ weight?: number | undefined;
157
+ } | undefined;
158
+ }[] | undefined;
159
+ }[];
160
+ actions: {
161
+ name: string;
162
+ params: {
163
+ name: string;
164
+ id: string;
165
+ description?: string | undefined;
166
+ required?: boolean | undefined;
167
+ nullable?: boolean | undefined;
168
+ semanticType?: string | undefined;
169
+ schema?: unknown;
170
+ }[];
171
+ id: string;
172
+ description?: string | undefined;
173
+ }[];
174
+ name: string;
175
+ id: string;
176
+ properties: {
177
+ name: string;
178
+ id: string;
179
+ description?: string | undefined;
180
+ mode?: "telemetry" | "static" | undefined;
181
+ required?: boolean | undefined;
182
+ nullable?: boolean | undefined;
183
+ primary?: boolean | undefined;
184
+ semanticType?: string | undefined;
185
+ schema?: unknown;
186
+ query?: {
187
+ text?: boolean | undefined;
188
+ exact?: boolean | undefined;
189
+ searchable?: boolean | undefined;
190
+ filterable?: boolean | undefined;
191
+ sortable?: boolean | undefined;
192
+ facet?: boolean | undefined;
193
+ vector?: boolean | undefined;
194
+ weight?: number | undefined;
195
+ } | undefined;
196
+ }[];
197
+ description?: string | undefined;
198
+ extends?: string | undefined;
199
+ implements?: string[] | undefined;
200
+ search?: {
201
+ exact?: string[] | undefined;
202
+ vector?: {
203
+ property: string;
204
+ source: string[];
205
+ } | undefined;
206
+ title?: string | undefined;
207
+ defaultText?: string[] | undefined;
208
+ } | undefined;
209
+ };
210
+ 404: {
211
+ error: string;
212
+ };
213
+ 422: {
214
+ type: "validation";
215
+ on: string;
216
+ summary?: string;
217
+ message?: string;
218
+ found?: unknown;
219
+ property?: string;
220
+ expected?: string;
221
+ };
222
+ };
223
+ };
224
+ };
225
+ };
226
+ };
227
+ }, {
228
+ derive: {};
229
+ resolve: {};
230
+ schema: {};
231
+ standaloneSchema: {};
232
+ response: {};
233
+ }, {
234
+ derive: {};
235
+ resolve: {};
236
+ schema: {};
237
+ standaloneSchema: {};
238
+ response: {};
239
+ }>;
240
+ //# sourceMappingURL=ontology.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../src/routes/ontology.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAA;AACjG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsFpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDxF"}