@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,340 @@
1
+ import { type OntologySource, type Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare const DEFAULT_SIMPLE_FILE_UPLOAD_BODY_BYTES: number;
4
+ export declare function registerFileRoutes(app: Elysia, sixb: Sixb<readonly OntologySource[]>): Elysia<"", {
5
+ decorator: {};
6
+ store: {};
7
+ derive: {};
8
+ resolve: {};
9
+ }, {
10
+ typebox: {};
11
+ error: {};
12
+ }, {
13
+ schema: {};
14
+ standaloneSchema: {};
15
+ macro: {};
16
+ macroFn: {};
17
+ parser: {};
18
+ response: {};
19
+ }, {
20
+ api: {
21
+ files: {
22
+ post: {
23
+ body: unknown;
24
+ params: {};
25
+ query: unknown;
26
+ headers: unknown;
27
+ response: {
28
+ 200: {
29
+ blobId: string;
30
+ digest: string;
31
+ sizeBytes: number;
32
+ fileName?: string | undefined;
33
+ mediaType?: string | undefined;
34
+ logicalPath?: string | undefined;
35
+ };
36
+ 400: {
37
+ error: string;
38
+ };
39
+ 413: {
40
+ error: string;
41
+ };
42
+ 422: {
43
+ type: "validation";
44
+ on: string;
45
+ summary?: string;
46
+ message?: string;
47
+ found?: unknown;
48
+ property?: string;
49
+ expected?: string;
50
+ };
51
+ };
52
+ };
53
+ };
54
+ };
55
+ } & {
56
+ api: {
57
+ files: {
58
+ uploads: {
59
+ post: {
60
+ body: {
61
+ digest?: string | undefined;
62
+ sizeBytes?: number | undefined;
63
+ fileName?: string | undefined;
64
+ mediaType?: string | undefined;
65
+ logicalPath?: string | undefined;
66
+ };
67
+ params: {};
68
+ query: unknown;
69
+ headers: unknown;
70
+ response: {
71
+ 200: {
72
+ url: string;
73
+ uploadId: string;
74
+ strategy: "server";
75
+ method: "PUT";
76
+ expiresAt: string;
77
+ } | {
78
+ headers: Record<string, string>;
79
+ url: string;
80
+ uploadId: string;
81
+ strategy: "direct-put";
82
+ method: "PUT";
83
+ expiresAt: string;
84
+ } | {
85
+ uploadId: string;
86
+ strategy: "multipart";
87
+ expiresAt: string;
88
+ partSizeBytes: number;
89
+ } | {
90
+ error: string;
91
+ };
92
+ 400: {
93
+ error: string;
94
+ };
95
+ 201: {
96
+ url: string;
97
+ uploadId: string;
98
+ strategy: "server";
99
+ method: "PUT";
100
+ expiresAt: string;
101
+ } | {
102
+ headers: Record<string, string>;
103
+ url: string;
104
+ uploadId: string;
105
+ strategy: "direct-put";
106
+ method: "PUT";
107
+ expiresAt: string;
108
+ } | {
109
+ uploadId: string;
110
+ strategy: "multipart";
111
+ expiresAt: string;
112
+ partSizeBytes: number;
113
+ };
114
+ 422: {
115
+ type: "validation";
116
+ on: string;
117
+ summary?: string;
118
+ message?: string;
119
+ found?: unknown;
120
+ property?: string;
121
+ expected?: string;
122
+ };
123
+ };
124
+ };
125
+ };
126
+ };
127
+ };
128
+ } & {
129
+ api: {
130
+ files: {
131
+ uploads: {
132
+ ":uploadId": {
133
+ content: {
134
+ put: {
135
+ body: unknown;
136
+ params: {
137
+ uploadId: string;
138
+ };
139
+ query: unknown;
140
+ headers: unknown;
141
+ response: {
142
+ 200: {
143
+ success: boolean;
144
+ };
145
+ 400: {
146
+ error: string;
147
+ };
148
+ 404: {
149
+ error: string;
150
+ };
151
+ 410: {
152
+ error: string;
153
+ };
154
+ 409: {
155
+ error: string;
156
+ };
157
+ 422: {
158
+ type: "validation";
159
+ on: string;
160
+ summary?: string;
161
+ message?: string;
162
+ found?: unknown;
163
+ property?: string;
164
+ expected?: string;
165
+ };
166
+ };
167
+ };
168
+ };
169
+ };
170
+ };
171
+ };
172
+ };
173
+ } & {
174
+ api: {
175
+ files: {
176
+ uploads: {
177
+ ":uploadId": {
178
+ parts: {
179
+ ":partNumber": {
180
+ post: {
181
+ body: unknown;
182
+ params: {
183
+ uploadId: string;
184
+ partNumber: string;
185
+ };
186
+ query: unknown;
187
+ headers: unknown;
188
+ response: {
189
+ 200: {
190
+ headers: Record<string, string>;
191
+ url: string;
192
+ partNumber: number;
193
+ method: "PUT";
194
+ expiresAt: string;
195
+ };
196
+ 400: {
197
+ error: string;
198
+ };
199
+ 404: {
200
+ error: string;
201
+ };
202
+ 410: {
203
+ error: string;
204
+ };
205
+ 409: {
206
+ error: string;
207
+ };
208
+ 422: {
209
+ type: "validation";
210
+ on: string;
211
+ summary?: string;
212
+ message?: string;
213
+ found?: unknown;
214
+ property?: string;
215
+ expected?: string;
216
+ };
217
+ };
218
+ };
219
+ };
220
+ };
221
+ };
222
+ };
223
+ };
224
+ };
225
+ } & {
226
+ api: {
227
+ files: {
228
+ uploads: {
229
+ ":uploadId": {
230
+ complete: {
231
+ post: {
232
+ body: {
233
+ digest?: string | undefined;
234
+ sizeBytes?: number | undefined;
235
+ parts?: {
236
+ etag: string;
237
+ partNumber: number;
238
+ }[] | undefined;
239
+ };
240
+ params: {
241
+ uploadId: string;
242
+ };
243
+ query: unknown;
244
+ headers: unknown;
245
+ response: {
246
+ 200: {
247
+ blobId: string;
248
+ digest: string;
249
+ sizeBytes: number;
250
+ fileName?: string | undefined;
251
+ mediaType?: string | undefined;
252
+ logicalPath?: string | undefined;
253
+ };
254
+ 400: {
255
+ error: string;
256
+ };
257
+ 404: {
258
+ error: string;
259
+ };
260
+ 410: {
261
+ error: string;
262
+ };
263
+ 409: {
264
+ error: string;
265
+ };
266
+ 422: {
267
+ type: "validation";
268
+ on: string;
269
+ summary?: string;
270
+ message?: string;
271
+ found?: unknown;
272
+ property?: string;
273
+ expected?: string;
274
+ };
275
+ };
276
+ };
277
+ };
278
+ };
279
+ };
280
+ };
281
+ };
282
+ } & {
283
+ api: {
284
+ files: {
285
+ uploads: {
286
+ ":uploadId": {
287
+ abort: {
288
+ post: {
289
+ body: unknown;
290
+ params: {
291
+ uploadId: string;
292
+ };
293
+ query: unknown;
294
+ headers: unknown;
295
+ response: {
296
+ 200: {
297
+ success: boolean;
298
+ };
299
+ 400: {
300
+ error: string;
301
+ };
302
+ 404: {
303
+ error: string;
304
+ };
305
+ 410: {
306
+ error: string;
307
+ };
308
+ 409: {
309
+ error: string;
310
+ };
311
+ 422: {
312
+ type: "validation";
313
+ on: string;
314
+ summary?: string;
315
+ message?: string;
316
+ found?: unknown;
317
+ property?: string;
318
+ expected?: string;
319
+ };
320
+ };
321
+ };
322
+ };
323
+ };
324
+ };
325
+ };
326
+ };
327
+ }, {
328
+ derive: {};
329
+ resolve: {};
330
+ schema: {};
331
+ standaloneSchema: {};
332
+ response: {};
333
+ }, {
334
+ derive: {};
335
+ resolve: {};
336
+ schema: {};
337
+ standaloneSchema: {};
338
+ response: {};
339
+ }>;
340
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,cAAc,EAEnB,KAAK,IAAI,EACV,MAAM,YAAY,CAAA;AAQnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAoBpC,eAAO,MAAM,qCAAqC,QAAiD,CAAA;AAInG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqapF"}
@@ -0,0 +1,175 @@
1
+ import { type OntologySource, type Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerLinkRoutes(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
+ objects: {
21
+ ":objectTypeId": {
22
+ ":objectId": {
23
+ links: {
24
+ get: {
25
+ body: unknown;
26
+ params: {
27
+ objectTypeId: string;
28
+ objectId: string;
29
+ };
30
+ query: {
31
+ direction: "outgoing" | "incoming" | "both";
32
+ linkId?: string | undefined;
33
+ };
34
+ headers: unknown;
35
+ response: {
36
+ 200: {
37
+ projectId: string;
38
+ createdAt: string;
39
+ updatedAt: string;
40
+ sourceTypeId: string;
41
+ sourceId: string;
42
+ linkId: string;
43
+ targetTypeId: string;
44
+ targetId: string;
45
+ properties?: Record<string, unknown> | undefined;
46
+ }[];
47
+ 400: {
48
+ error: string;
49
+ };
50
+ 404: {
51
+ error: string;
52
+ };
53
+ 422: {
54
+ type: "validation";
55
+ on: string;
56
+ summary?: string;
57
+ message?: string;
58
+ found?: unknown;
59
+ property?: string;
60
+ expected?: string;
61
+ };
62
+ };
63
+ };
64
+ };
65
+ };
66
+ };
67
+ };
68
+ };
69
+ } & {
70
+ api: {
71
+ objects: {
72
+ ":objectTypeId": {
73
+ ":objectId": {
74
+ links: {
75
+ ":linkId": {
76
+ put: {
77
+ body: {
78
+ targetTypeId: string;
79
+ targetId: string;
80
+ properties?: Record<string, unknown> | undefined;
81
+ };
82
+ params: {
83
+ objectTypeId: string;
84
+ linkId: string;
85
+ objectId: string;
86
+ };
87
+ query: unknown;
88
+ headers: unknown;
89
+ response: {
90
+ 200: {
91
+ success: boolean;
92
+ };
93
+ 400: {
94
+ error: string;
95
+ };
96
+ 404: {
97
+ error: string;
98
+ };
99
+ 422: {
100
+ type: "validation";
101
+ on: string;
102
+ summary?: string;
103
+ message?: string;
104
+ found?: unknown;
105
+ property?: string;
106
+ expected?: string;
107
+ };
108
+ };
109
+ };
110
+ };
111
+ };
112
+ };
113
+ };
114
+ };
115
+ };
116
+ } & {
117
+ api: {
118
+ objects: {
119
+ ":objectTypeId": {
120
+ ":objectId": {
121
+ links: {
122
+ ":linkId": {
123
+ delete: {
124
+ body: unknown;
125
+ params: {
126
+ objectTypeId: string;
127
+ linkId: string;
128
+ objectId: string;
129
+ };
130
+ query: {
131
+ targetTypeId: string;
132
+ targetId: string;
133
+ };
134
+ headers: unknown;
135
+ response: {
136
+ 200: {
137
+ success: boolean;
138
+ };
139
+ 400: {
140
+ error: string;
141
+ };
142
+ 404: {
143
+ error: string;
144
+ };
145
+ 422: {
146
+ type: "validation";
147
+ on: string;
148
+ summary?: string;
149
+ message?: string;
150
+ found?: unknown;
151
+ property?: string;
152
+ expected?: string;
153
+ };
154
+ };
155
+ };
156
+ };
157
+ };
158
+ };
159
+ };
160
+ };
161
+ };
162
+ }, {
163
+ derive: {};
164
+ resolve: {};
165
+ schema: {};
166
+ standaloneSchema: {};
167
+ response: {};
168
+ }, {
169
+ derive: {};
170
+ resolve: {};
171
+ schema: {};
172
+ standaloneSchema: {};
173
+ response: {};
174
+ }>;
175
+ //# sourceMappingURL=links.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/routes/links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAA;AAEtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsBpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHpF"}
@@ -0,0 +1,88 @@
1
+ import { type OntologySource, type Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerLogRoutes(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
+ logs: {
21
+ get: {
22
+ body: unknown;
23
+ params: {};
24
+ query: {
25
+ kind?: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow" | undefined;
26
+ limit?: number | undefined;
27
+ runId?: string | undefined;
28
+ afterCursor?: string | undefined;
29
+ direction?: "forward" | "backward" | undefined;
30
+ level?: "error" | "debug" | "info" | "warn" | undefined;
31
+ beforeCursor?: string | undefined;
32
+ };
33
+ headers: unknown;
34
+ response: {
35
+ 200: {
36
+ count: number;
37
+ hasMore: boolean;
38
+ lines: {
39
+ at: string;
40
+ message: string;
41
+ context: {
42
+ run: {
43
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
44
+ id: string;
45
+ };
46
+ phase?: string | undefined;
47
+ attempt?: number | undefined;
48
+ stepId?: string | undefined;
49
+ };
50
+ cursor: string;
51
+ level: "error" | "debug" | "info" | "warn";
52
+ fields?: Record<string, unknown> | undefined;
53
+ }[];
54
+ cursor?: string | undefined;
55
+ };
56
+ 403: {
57
+ error: string;
58
+ };
59
+ 400: {
60
+ error: string;
61
+ };
62
+ 422: {
63
+ type: "validation";
64
+ on: string;
65
+ summary?: string;
66
+ message?: string;
67
+ found?: unknown;
68
+ property?: string;
69
+ expected?: string;
70
+ };
71
+ };
72
+ };
73
+ };
74
+ };
75
+ }, {
76
+ derive: {};
77
+ resolve: {};
78
+ schema: {};
79
+ standaloneSchema: {};
80
+ response: {};
81
+ }, {
82
+ derive: {};
83
+ resolve: {};
84
+ schema: {};
85
+ standaloneSchema: {};
86
+ response: {};
87
+ }>;
88
+ //# sourceMappingURL=logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/routes/logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAA;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDnF"}