@sixb/server 0.1.26 → 0.2.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 (98) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +2495 -1845
  5. package/dist/index.js.map +29 -27
  6. package/dist/routes/actions.d.ts +1 -1
  7. package/dist/routes/agent-approvals.d.ts +11 -5
  8. package/dist/routes/agent-approvals.d.ts.map +1 -1
  9. package/dist/routes/agent-children.d.ts +2 -2
  10. package/dist/routes/agent-computers.d.ts +214 -10
  11. package/dist/routes/agent-computers.d.ts.map +1 -1
  12. package/dist/routes/agent-runners.d.ts +1 -1
  13. package/dist/routes/agent-runners.d.ts.map +1 -1
  14. package/dist/routes/agents.d.ts +230 -24
  15. package/dist/routes/agents.d.ts.map +1 -1
  16. package/dist/routes/ai-accounting.d.ts.map +1 -1
  17. package/dist/routes/auth.d.ts +9 -0
  18. package/dist/routes/auth.d.ts.map +1 -1
  19. package/dist/routes/datasets.d.ts +93 -17
  20. package/dist/routes/datasets.d.ts.map +1 -1
  21. package/dist/routes/events.d.ts +1 -1
  22. package/dist/routes/links.d.ts +121 -81
  23. package/dist/routes/links.d.ts.map +1 -1
  24. package/dist/routes/logs.d.ts +3 -3
  25. package/dist/routes/objects.d.ts +149 -58
  26. package/dist/routes/objects.d.ts.map +1 -1
  27. package/dist/routes/observed-agent-threads.d.ts +23 -5
  28. package/dist/routes/observed-agent-threads.d.ts.map +1 -1
  29. package/dist/routes/pipelines.d.ts +2 -2
  30. package/dist/routes/projections.d.ts +122 -122
  31. package/dist/routes/rules.d.ts +2 -2
  32. package/dist/routes/telemetry.d.ts +0 -50
  33. package/dist/routes/telemetry.d.ts.map +1 -1
  34. package/dist/routes/webhook-runs.d.ts +1 -1
  35. package/dist/routes/workflows.d.ts +21 -10
  36. package/dist/routes/workflows.d.ts.map +1 -1
  37. package/dist/routes/ws/agents.d.ts +4 -1
  38. package/dist/routes/ws/agents.d.ts.map +1 -1
  39. package/dist/routes/ws/logs.d.ts +10 -10
  40. package/dist/schemas/actions.d.ts +3 -3
  41. package/dist/schemas/activity.d.ts +4 -4
  42. package/dist/schemas/agent-approvals.d.ts +21 -21
  43. package/dist/schemas/agents.d.ts +760 -107
  44. package/dist/schemas/agents.d.ts.map +1 -1
  45. package/dist/schemas/ai-accounting.d.ts +1114 -6
  46. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  47. package/dist/schemas/auth.d.ts +47 -0
  48. package/dist/schemas/auth.d.ts.map +1 -1
  49. package/dist/schemas/datasets.d.ts +303 -60
  50. package/dist/schemas/datasets.d.ts.map +1 -1
  51. package/dist/schemas/event-payloads.d.ts +6 -6
  52. package/dist/schemas/events.d.ts +8 -8
  53. package/dist/schemas/lineage.d.ts +1272 -0
  54. package/dist/schemas/lineage.d.ts.map +1 -0
  55. package/dist/schemas/links.d.ts +4 -27
  56. package/dist/schemas/links.d.ts.map +1 -1
  57. package/dist/schemas/logs.d.ts +22 -22
  58. package/dist/schemas/objects.d.ts +7 -26
  59. package/dist/schemas/objects.d.ts.map +1 -1
  60. package/dist/schemas/pipelines.d.ts +12 -12
  61. package/dist/schemas/projections.d.ts +733 -733
  62. package/dist/schemas/rules.d.ts +4 -4
  63. package/dist/schemas/telemetry.d.ts +0 -13
  64. package/dist/schemas/telemetry.d.ts.map +1 -1
  65. package/dist/schemas/webhook-runs.d.ts +2 -2
  66. package/dist/schemas/workflows.d.ts +133 -44
  67. package/dist/schemas/workflows.d.ts.map +1 -1
  68. package/dist/server.d.ts +4 -0
  69. package/dist/server.d.ts.map +1 -1
  70. package/dist/utils/request-body.d.ts +5 -0
  71. package/dist/utils/request-body.d.ts.map +1 -1
  72. package/dist/utils/request-timing.d.ts +18 -0
  73. package/dist/utils/request-timing.d.ts.map +1 -0
  74. package/package.json +7 -7
  75. package/src/index.ts +1 -0
  76. package/src/routes/agent-approvals.ts +2 -2
  77. package/src/routes/agent-computers.ts +309 -87
  78. package/src/routes/agent-runners.ts +30 -6
  79. package/src/routes/agents.ts +187 -25
  80. package/src/routes/ai-accounting.ts +149 -12
  81. package/src/routes/auth.ts +24 -2
  82. package/src/routes/datasets.ts +55 -5
  83. package/src/routes/links.ts +43 -76
  84. package/src/routes/objects.ts +49 -42
  85. package/src/routes/observed-agent-threads.ts +2 -2
  86. package/src/routes/telemetry.ts +1 -42
  87. package/src/routes/ws/agents.ts +10 -1
  88. package/src/schemas/agents.ts +121 -6
  89. package/src/schemas/ai-accounting.ts +78 -15
  90. package/src/schemas/auth.ts +19 -0
  91. package/src/schemas/datasets.ts +36 -0
  92. package/src/schemas/lineage.ts +115 -0
  93. package/src/schemas/links.ts +3 -11
  94. package/src/schemas/objects.ts +6 -10
  95. package/src/schemas/telemetry.ts +0 -6
  96. package/src/server.ts +18 -2
  97. package/src/utils/request-body.ts +10 -4
  98. package/src/utils/request-timing.ts +136 -0
@@ -0,0 +1,1272 @@
1
+ import { z } from "zod";
2
+ export declare const ObjectLineageSchema: z.ZodObject<{
3
+ objectTypeId: z.ZodString;
4
+ primaryId: z.ZodString;
5
+ existence: z.ZodObject<{
6
+ source: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ source: string;
9
+ }, {
10
+ source: string;
11
+ }>;
12
+ sources: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
13
+ kind: z.ZodLiteral<"projection">;
14
+ projectionId: z.ZodString;
15
+ projectionRunId: z.ZodOptional<z.ZodString>;
16
+ datasetVersion: z.ZodOptional<z.ZodObject<{
17
+ datasetId: z.ZodString;
18
+ versionId: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ datasetId: string;
21
+ versionId: string;
22
+ }, {
23
+ datasetId: string;
24
+ versionId: string;
25
+ }>>;
26
+ rowOrigins: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
+ datasetId: z.ZodString;
28
+ column: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ datasetId: string;
31
+ column: string;
32
+ }, {
33
+ datasetId: string;
34
+ column: string;
35
+ }>, "many">>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ kind: "projection";
38
+ projectionId: string;
39
+ projectionRunId?: string | undefined;
40
+ datasetVersion?: {
41
+ datasetId: string;
42
+ versionId: string;
43
+ } | undefined;
44
+ rowOrigins?: {
45
+ datasetId: string;
46
+ column: string;
47
+ }[] | undefined;
48
+ }, {
49
+ kind: "projection";
50
+ projectionId: string;
51
+ projectionRunId?: string | undefined;
52
+ datasetVersion?: {
53
+ datasetId: string;
54
+ versionId: string;
55
+ } | undefined;
56
+ rowOrigins?: {
57
+ datasetId: string;
58
+ column: string;
59
+ }[] | undefined;
60
+ }>, z.ZodObject<{
61
+ kind: z.ZodLiteral<"edit">;
62
+ commitId: z.ZodNullable<z.ZodString>;
63
+ committedAt: z.ZodString;
64
+ requestedBy: z.ZodOptional<z.ZodObject<{
65
+ type: z.ZodEnum<["user", "serviceAccount"]>;
66
+ id: z.ZodString;
67
+ }, "strip", z.ZodTypeAny, {
68
+ id: string;
69
+ type: "user" | "serviceAccount";
70
+ }, {
71
+ id: string;
72
+ type: "user" | "serviceAccount";
73
+ }>>;
74
+ executor: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
75
+ type: z.ZodLiteral<"request">;
76
+ requestId: z.ZodString;
77
+ }, "strip", z.ZodTypeAny, {
78
+ type: "request";
79
+ requestId: string;
80
+ }, {
81
+ type: "request";
82
+ requestId: string;
83
+ }>, z.ZodObject<{
84
+ type: z.ZodLiteral<"primitive">;
85
+ kind: z.ZodEnum<["action", "pipeline", "projection", "rule", "sync", "webhook", "workflow"]>;
86
+ id: z.ZodString;
87
+ runId: z.ZodString;
88
+ }, "strip", z.ZodTypeAny, {
89
+ id: string;
90
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
91
+ type: "primitive";
92
+ runId: string;
93
+ }, {
94
+ id: string;
95
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
96
+ type: "primitive";
97
+ runId: string;
98
+ }>, z.ZodObject<{
99
+ type: z.ZodLiteral<"agent">;
100
+ runId: z.ZodString;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: "agent";
103
+ runId: string;
104
+ }, {
105
+ type: "agent";
106
+ runId: string;
107
+ }>, z.ZodObject<{
108
+ type: z.ZodLiteral<"kernel">;
109
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
110
+ type: z.ZodLiteral<"ontology.recover">;
111
+ recoveryId: z.ZodString;
112
+ }, "strip", z.ZodTypeAny, {
113
+ type: "ontology.recover";
114
+ recoveryId: string;
115
+ }, {
116
+ type: "ontology.recover";
117
+ recoveryId: string;
118
+ }>, z.ZodObject<{
119
+ type: z.ZodLiteral<"ontology.indexVectors">;
120
+ indexingId: z.ZodString;
121
+ }, "strip", z.ZodTypeAny, {
122
+ type: "ontology.indexVectors";
123
+ indexingId: string;
124
+ }, {
125
+ type: "ontology.indexVectors";
126
+ indexingId: string;
127
+ }>]>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: "kernel";
130
+ operation: {
131
+ type: "ontology.recover";
132
+ recoveryId: string;
133
+ } | {
134
+ type: "ontology.indexVectors";
135
+ indexingId: string;
136
+ };
137
+ }, {
138
+ type: "kernel";
139
+ operation: {
140
+ type: "ontology.recover";
141
+ recoveryId: string;
142
+ } | {
143
+ type: "ontology.indexVectors";
144
+ indexingId: string;
145
+ };
146
+ }>]>>;
147
+ action: z.ZodOptional<z.ZodObject<{
148
+ actionId: z.ZodString;
149
+ runId: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ actionId: string;
152
+ runId: string;
153
+ }, {
154
+ actionId: string;
155
+ runId: string;
156
+ }>>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ kind: "edit";
159
+ commitId: string | null;
160
+ committedAt: string;
161
+ executor?: {
162
+ type: "request";
163
+ requestId: string;
164
+ } | {
165
+ id: string;
166
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
167
+ type: "primitive";
168
+ runId: string;
169
+ } | {
170
+ type: "agent";
171
+ runId: string;
172
+ } | {
173
+ type: "kernel";
174
+ operation: {
175
+ type: "ontology.recover";
176
+ recoveryId: string;
177
+ } | {
178
+ type: "ontology.indexVectors";
179
+ indexingId: string;
180
+ };
181
+ } | undefined;
182
+ requestedBy?: {
183
+ id: string;
184
+ type: "user" | "serviceAccount";
185
+ } | undefined;
186
+ action?: {
187
+ actionId: string;
188
+ runId: string;
189
+ } | undefined;
190
+ }, {
191
+ kind: "edit";
192
+ commitId: string | null;
193
+ committedAt: string;
194
+ executor?: {
195
+ type: "request";
196
+ requestId: string;
197
+ } | {
198
+ id: string;
199
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
200
+ type: "primitive";
201
+ runId: string;
202
+ } | {
203
+ type: "agent";
204
+ runId: string;
205
+ } | {
206
+ type: "kernel";
207
+ operation: {
208
+ type: "ontology.recover";
209
+ recoveryId: string;
210
+ } | {
211
+ type: "ontology.indexVectors";
212
+ indexingId: string;
213
+ };
214
+ } | undefined;
215
+ requestedBy?: {
216
+ id: string;
217
+ type: "user" | "serviceAccount";
218
+ } | undefined;
219
+ action?: {
220
+ actionId: string;
221
+ runId: string;
222
+ } | undefined;
223
+ }>, z.ZodObject<{
224
+ kind: z.ZodLiteral<"telemetry">;
225
+ commitId: z.ZodString;
226
+ committedAt: z.ZodString;
227
+ projectionId: z.ZodOptional<z.ZodString>;
228
+ requestedBy: z.ZodOptional<z.ZodObject<{
229
+ type: z.ZodEnum<["user", "serviceAccount"]>;
230
+ id: z.ZodString;
231
+ }, "strip", z.ZodTypeAny, {
232
+ id: string;
233
+ type: "user" | "serviceAccount";
234
+ }, {
235
+ id: string;
236
+ type: "user" | "serviceAccount";
237
+ }>>;
238
+ executor: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
239
+ type: z.ZodLiteral<"request">;
240
+ requestId: z.ZodString;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: "request";
243
+ requestId: string;
244
+ }, {
245
+ type: "request";
246
+ requestId: string;
247
+ }>, z.ZodObject<{
248
+ type: z.ZodLiteral<"primitive">;
249
+ kind: z.ZodEnum<["action", "pipeline", "projection", "rule", "sync", "webhook", "workflow"]>;
250
+ id: z.ZodString;
251
+ runId: z.ZodString;
252
+ }, "strip", z.ZodTypeAny, {
253
+ id: string;
254
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
255
+ type: "primitive";
256
+ runId: string;
257
+ }, {
258
+ id: string;
259
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
260
+ type: "primitive";
261
+ runId: string;
262
+ }>, z.ZodObject<{
263
+ type: z.ZodLiteral<"agent">;
264
+ runId: z.ZodString;
265
+ }, "strip", z.ZodTypeAny, {
266
+ type: "agent";
267
+ runId: string;
268
+ }, {
269
+ type: "agent";
270
+ runId: string;
271
+ }>, z.ZodObject<{
272
+ type: z.ZodLiteral<"kernel">;
273
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
274
+ type: z.ZodLiteral<"ontology.recover">;
275
+ recoveryId: z.ZodString;
276
+ }, "strip", z.ZodTypeAny, {
277
+ type: "ontology.recover";
278
+ recoveryId: string;
279
+ }, {
280
+ type: "ontology.recover";
281
+ recoveryId: string;
282
+ }>, z.ZodObject<{
283
+ type: z.ZodLiteral<"ontology.indexVectors">;
284
+ indexingId: z.ZodString;
285
+ }, "strip", z.ZodTypeAny, {
286
+ type: "ontology.indexVectors";
287
+ indexingId: string;
288
+ }, {
289
+ type: "ontology.indexVectors";
290
+ indexingId: string;
291
+ }>]>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ type: "kernel";
294
+ operation: {
295
+ type: "ontology.recover";
296
+ recoveryId: string;
297
+ } | {
298
+ type: "ontology.indexVectors";
299
+ indexingId: string;
300
+ };
301
+ }, {
302
+ type: "kernel";
303
+ operation: {
304
+ type: "ontology.recover";
305
+ recoveryId: string;
306
+ } | {
307
+ type: "ontology.indexVectors";
308
+ indexingId: string;
309
+ };
310
+ }>]>>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ kind: "telemetry";
313
+ commitId: string;
314
+ committedAt: string;
315
+ executor?: {
316
+ type: "request";
317
+ requestId: string;
318
+ } | {
319
+ id: string;
320
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
321
+ type: "primitive";
322
+ runId: string;
323
+ } | {
324
+ type: "agent";
325
+ runId: string;
326
+ } | {
327
+ type: "kernel";
328
+ operation: {
329
+ type: "ontology.recover";
330
+ recoveryId: string;
331
+ } | {
332
+ type: "ontology.indexVectors";
333
+ indexingId: string;
334
+ };
335
+ } | undefined;
336
+ requestedBy?: {
337
+ id: string;
338
+ type: "user" | "serviceAccount";
339
+ } | undefined;
340
+ projectionId?: string | undefined;
341
+ }, {
342
+ kind: "telemetry";
343
+ commitId: string;
344
+ committedAt: string;
345
+ executor?: {
346
+ type: "request";
347
+ requestId: string;
348
+ } | {
349
+ id: string;
350
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
351
+ type: "primitive";
352
+ runId: string;
353
+ } | {
354
+ type: "agent";
355
+ runId: string;
356
+ } | {
357
+ type: "kernel";
358
+ operation: {
359
+ type: "ontology.recover";
360
+ recoveryId: string;
361
+ } | {
362
+ type: "ontology.indexVectors";
363
+ indexingId: string;
364
+ };
365
+ } | undefined;
366
+ requestedBy?: {
367
+ id: string;
368
+ type: "user" | "serviceAccount";
369
+ } | undefined;
370
+ projectionId?: string | undefined;
371
+ }>, z.ZodObject<{
372
+ kind: z.ZodLiteral<"identity">;
373
+ }, "strip", z.ZodTypeAny, {
374
+ kind: "identity";
375
+ }, {
376
+ kind: "identity";
377
+ }>]>>;
378
+ properties: z.ZodRecord<z.ZodString, z.ZodObject<{
379
+ source: z.ZodString;
380
+ column: z.ZodOptional<z.ZodString>;
381
+ origins: z.ZodOptional<z.ZodArray<z.ZodObject<{
382
+ datasetId: z.ZodString;
383
+ column: z.ZodString;
384
+ }, "strip", z.ZodTypeAny, {
385
+ datasetId: string;
386
+ column: string;
387
+ }, {
388
+ datasetId: string;
389
+ column: string;
390
+ }>, "many">>;
391
+ removed: z.ZodOptional<z.ZodLiteral<true>>;
392
+ at: z.ZodOptional<z.ZodString>;
393
+ replaced: z.ZodOptional<z.ZodObject<{
394
+ source: z.ZodString;
395
+ column: z.ZodOptional<z.ZodString>;
396
+ value: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
397
+ }, "strip", z.ZodTypeAny, {
398
+ source: string;
399
+ value?: import("./common").JsonValue | undefined;
400
+ column?: string | undefined;
401
+ }, {
402
+ source: string;
403
+ value?: import("./common").JsonValue | undefined;
404
+ column?: string | undefined;
405
+ }>>;
406
+ resolution: z.ZodOptional<z.ZodDiscriminatedUnion<"strategy", [z.ZodObject<{
407
+ strategy: z.ZodLiteral<"editsWin">;
408
+ }, "strip", z.ZodTypeAny, {
409
+ strategy: "editsWin";
410
+ }, {
411
+ strategy: "editsWin";
412
+ }>, z.ZodObject<{
413
+ strategy: z.ZodLiteral<"mostRecent">;
414
+ sourceUpdatedAt: z.ZodString;
415
+ editedAt: z.ZodOptional<z.ZodString>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ strategy: "mostRecent";
418
+ sourceUpdatedAt: string;
419
+ editedAt?: string | undefined;
420
+ }, {
421
+ strategy: "mostRecent";
422
+ sourceUpdatedAt: string;
423
+ editedAt?: string | undefined;
424
+ }>]>>;
425
+ }, "strip", z.ZodTypeAny, {
426
+ source: string;
427
+ at?: string | undefined;
428
+ replaced?: {
429
+ source: string;
430
+ value?: import("./common").JsonValue | undefined;
431
+ column?: string | undefined;
432
+ } | undefined;
433
+ column?: string | undefined;
434
+ origins?: {
435
+ datasetId: string;
436
+ column: string;
437
+ }[] | undefined;
438
+ removed?: true | undefined;
439
+ resolution?: {
440
+ strategy: "editsWin";
441
+ } | {
442
+ strategy: "mostRecent";
443
+ sourceUpdatedAt: string;
444
+ editedAt?: string | undefined;
445
+ } | undefined;
446
+ }, {
447
+ source: string;
448
+ at?: string | undefined;
449
+ replaced?: {
450
+ source: string;
451
+ value?: import("./common").JsonValue | undefined;
452
+ column?: string | undefined;
453
+ } | undefined;
454
+ column?: string | undefined;
455
+ origins?: {
456
+ datasetId: string;
457
+ column: string;
458
+ }[] | undefined;
459
+ removed?: true | undefined;
460
+ resolution?: {
461
+ strategy: "editsWin";
462
+ } | {
463
+ strategy: "mostRecent";
464
+ sourceUpdatedAt: string;
465
+ editedAt?: string | undefined;
466
+ } | undefined;
467
+ }>>;
468
+ restricted: z.ZodNumber;
469
+ }, "strip", z.ZodTypeAny, {
470
+ properties: Record<string, {
471
+ source: string;
472
+ at?: string | undefined;
473
+ replaced?: {
474
+ source: string;
475
+ value?: import("./common").JsonValue | undefined;
476
+ column?: string | undefined;
477
+ } | undefined;
478
+ column?: string | undefined;
479
+ origins?: {
480
+ datasetId: string;
481
+ column: string;
482
+ }[] | undefined;
483
+ removed?: true | undefined;
484
+ resolution?: {
485
+ strategy: "editsWin";
486
+ } | {
487
+ strategy: "mostRecent";
488
+ sourceUpdatedAt: string;
489
+ editedAt?: string | undefined;
490
+ } | undefined;
491
+ }>;
492
+ objectTypeId: string;
493
+ primaryId: string;
494
+ restricted: number;
495
+ existence: {
496
+ source: string;
497
+ };
498
+ sources: Record<string, {
499
+ kind: "projection";
500
+ projectionId: string;
501
+ projectionRunId?: string | undefined;
502
+ datasetVersion?: {
503
+ datasetId: string;
504
+ versionId: string;
505
+ } | undefined;
506
+ rowOrigins?: {
507
+ datasetId: string;
508
+ column: string;
509
+ }[] | undefined;
510
+ } | {
511
+ kind: "edit";
512
+ commitId: string | null;
513
+ committedAt: string;
514
+ executor?: {
515
+ type: "request";
516
+ requestId: string;
517
+ } | {
518
+ id: string;
519
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
520
+ type: "primitive";
521
+ runId: string;
522
+ } | {
523
+ type: "agent";
524
+ runId: string;
525
+ } | {
526
+ type: "kernel";
527
+ operation: {
528
+ type: "ontology.recover";
529
+ recoveryId: string;
530
+ } | {
531
+ type: "ontology.indexVectors";
532
+ indexingId: string;
533
+ };
534
+ } | undefined;
535
+ requestedBy?: {
536
+ id: string;
537
+ type: "user" | "serviceAccount";
538
+ } | undefined;
539
+ action?: {
540
+ actionId: string;
541
+ runId: string;
542
+ } | undefined;
543
+ } | {
544
+ kind: "telemetry";
545
+ commitId: string;
546
+ committedAt: string;
547
+ executor?: {
548
+ type: "request";
549
+ requestId: string;
550
+ } | {
551
+ id: string;
552
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
553
+ type: "primitive";
554
+ runId: string;
555
+ } | {
556
+ type: "agent";
557
+ runId: string;
558
+ } | {
559
+ type: "kernel";
560
+ operation: {
561
+ type: "ontology.recover";
562
+ recoveryId: string;
563
+ } | {
564
+ type: "ontology.indexVectors";
565
+ indexingId: string;
566
+ };
567
+ } | undefined;
568
+ requestedBy?: {
569
+ id: string;
570
+ type: "user" | "serviceAccount";
571
+ } | undefined;
572
+ projectionId?: string | undefined;
573
+ } | {
574
+ kind: "identity";
575
+ }>;
576
+ }, {
577
+ properties: Record<string, {
578
+ source: string;
579
+ at?: string | undefined;
580
+ replaced?: {
581
+ source: string;
582
+ value?: import("./common").JsonValue | undefined;
583
+ column?: string | undefined;
584
+ } | undefined;
585
+ column?: string | undefined;
586
+ origins?: {
587
+ datasetId: string;
588
+ column: string;
589
+ }[] | undefined;
590
+ removed?: true | undefined;
591
+ resolution?: {
592
+ strategy: "editsWin";
593
+ } | {
594
+ strategy: "mostRecent";
595
+ sourceUpdatedAt: string;
596
+ editedAt?: string | undefined;
597
+ } | undefined;
598
+ }>;
599
+ objectTypeId: string;
600
+ primaryId: string;
601
+ restricted: number;
602
+ existence: {
603
+ source: string;
604
+ };
605
+ sources: Record<string, {
606
+ kind: "projection";
607
+ projectionId: string;
608
+ projectionRunId?: string | undefined;
609
+ datasetVersion?: {
610
+ datasetId: string;
611
+ versionId: string;
612
+ } | undefined;
613
+ rowOrigins?: {
614
+ datasetId: string;
615
+ column: string;
616
+ }[] | undefined;
617
+ } | {
618
+ kind: "edit";
619
+ commitId: string | null;
620
+ committedAt: string;
621
+ executor?: {
622
+ type: "request";
623
+ requestId: string;
624
+ } | {
625
+ id: string;
626
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
627
+ type: "primitive";
628
+ runId: string;
629
+ } | {
630
+ type: "agent";
631
+ runId: string;
632
+ } | {
633
+ type: "kernel";
634
+ operation: {
635
+ type: "ontology.recover";
636
+ recoveryId: string;
637
+ } | {
638
+ type: "ontology.indexVectors";
639
+ indexingId: string;
640
+ };
641
+ } | undefined;
642
+ requestedBy?: {
643
+ id: string;
644
+ type: "user" | "serviceAccount";
645
+ } | undefined;
646
+ action?: {
647
+ actionId: string;
648
+ runId: string;
649
+ } | undefined;
650
+ } | {
651
+ kind: "telemetry";
652
+ commitId: string;
653
+ committedAt: string;
654
+ executor?: {
655
+ type: "request";
656
+ requestId: string;
657
+ } | {
658
+ id: string;
659
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
660
+ type: "primitive";
661
+ runId: string;
662
+ } | {
663
+ type: "agent";
664
+ runId: string;
665
+ } | {
666
+ type: "kernel";
667
+ operation: {
668
+ type: "ontology.recover";
669
+ recoveryId: string;
670
+ } | {
671
+ type: "ontology.indexVectors";
672
+ indexingId: string;
673
+ };
674
+ } | undefined;
675
+ requestedBy?: {
676
+ id: string;
677
+ type: "user" | "serviceAccount";
678
+ } | undefined;
679
+ projectionId?: string | undefined;
680
+ } | {
681
+ kind: "identity";
682
+ }>;
683
+ }>;
684
+ export declare const LinkLineageSchema: z.ZodObject<{
685
+ sourceTypeId: z.ZodString;
686
+ sourceId: z.ZodString;
687
+ linkId: z.ZodString;
688
+ targetTypeId: z.ZodString;
689
+ targetId: z.ZodString;
690
+ existence: z.ZodObject<{
691
+ source: z.ZodString;
692
+ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
693
+ origins: z.ZodOptional<z.ZodArray<z.ZodObject<{
694
+ datasetId: z.ZodString;
695
+ column: z.ZodString;
696
+ }, "strip", z.ZodTypeAny, {
697
+ datasetId: string;
698
+ column: string;
699
+ }, {
700
+ datasetId: string;
701
+ column: string;
702
+ }>, "many">>;
703
+ }, "strip", z.ZodTypeAny, {
704
+ source: string;
705
+ columns?: string[] | undefined;
706
+ origins?: {
707
+ datasetId: string;
708
+ column: string;
709
+ }[] | undefined;
710
+ }, {
711
+ source: string;
712
+ columns?: string[] | undefined;
713
+ origins?: {
714
+ datasetId: string;
715
+ column: string;
716
+ }[] | undefined;
717
+ }>;
718
+ sources: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
719
+ kind: z.ZodLiteral<"projection">;
720
+ projectionId: z.ZodString;
721
+ projectionRunId: z.ZodOptional<z.ZodString>;
722
+ datasetVersion: z.ZodOptional<z.ZodObject<{
723
+ datasetId: z.ZodString;
724
+ versionId: z.ZodString;
725
+ }, "strip", z.ZodTypeAny, {
726
+ datasetId: string;
727
+ versionId: string;
728
+ }, {
729
+ datasetId: string;
730
+ versionId: string;
731
+ }>>;
732
+ rowOrigins: z.ZodOptional<z.ZodArray<z.ZodObject<{
733
+ datasetId: z.ZodString;
734
+ column: z.ZodString;
735
+ }, "strip", z.ZodTypeAny, {
736
+ datasetId: string;
737
+ column: string;
738
+ }, {
739
+ datasetId: string;
740
+ column: string;
741
+ }>, "many">>;
742
+ }, "strip", z.ZodTypeAny, {
743
+ kind: "projection";
744
+ projectionId: string;
745
+ projectionRunId?: string | undefined;
746
+ datasetVersion?: {
747
+ datasetId: string;
748
+ versionId: string;
749
+ } | undefined;
750
+ rowOrigins?: {
751
+ datasetId: string;
752
+ column: string;
753
+ }[] | undefined;
754
+ }, {
755
+ kind: "projection";
756
+ projectionId: string;
757
+ projectionRunId?: string | undefined;
758
+ datasetVersion?: {
759
+ datasetId: string;
760
+ versionId: string;
761
+ } | undefined;
762
+ rowOrigins?: {
763
+ datasetId: string;
764
+ column: string;
765
+ }[] | undefined;
766
+ }>, z.ZodObject<{
767
+ kind: z.ZodLiteral<"edit">;
768
+ commitId: z.ZodNullable<z.ZodString>;
769
+ committedAt: z.ZodString;
770
+ requestedBy: z.ZodOptional<z.ZodObject<{
771
+ type: z.ZodEnum<["user", "serviceAccount"]>;
772
+ id: z.ZodString;
773
+ }, "strip", z.ZodTypeAny, {
774
+ id: string;
775
+ type: "user" | "serviceAccount";
776
+ }, {
777
+ id: string;
778
+ type: "user" | "serviceAccount";
779
+ }>>;
780
+ executor: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
781
+ type: z.ZodLiteral<"request">;
782
+ requestId: z.ZodString;
783
+ }, "strip", z.ZodTypeAny, {
784
+ type: "request";
785
+ requestId: string;
786
+ }, {
787
+ type: "request";
788
+ requestId: string;
789
+ }>, z.ZodObject<{
790
+ type: z.ZodLiteral<"primitive">;
791
+ kind: z.ZodEnum<["action", "pipeline", "projection", "rule", "sync", "webhook", "workflow"]>;
792
+ id: z.ZodString;
793
+ runId: z.ZodString;
794
+ }, "strip", z.ZodTypeAny, {
795
+ id: string;
796
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
797
+ type: "primitive";
798
+ runId: string;
799
+ }, {
800
+ id: string;
801
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
802
+ type: "primitive";
803
+ runId: string;
804
+ }>, z.ZodObject<{
805
+ type: z.ZodLiteral<"agent">;
806
+ runId: z.ZodString;
807
+ }, "strip", z.ZodTypeAny, {
808
+ type: "agent";
809
+ runId: string;
810
+ }, {
811
+ type: "agent";
812
+ runId: string;
813
+ }>, z.ZodObject<{
814
+ type: z.ZodLiteral<"kernel">;
815
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
816
+ type: z.ZodLiteral<"ontology.recover">;
817
+ recoveryId: z.ZodString;
818
+ }, "strip", z.ZodTypeAny, {
819
+ type: "ontology.recover";
820
+ recoveryId: string;
821
+ }, {
822
+ type: "ontology.recover";
823
+ recoveryId: string;
824
+ }>, z.ZodObject<{
825
+ type: z.ZodLiteral<"ontology.indexVectors">;
826
+ indexingId: z.ZodString;
827
+ }, "strip", z.ZodTypeAny, {
828
+ type: "ontology.indexVectors";
829
+ indexingId: string;
830
+ }, {
831
+ type: "ontology.indexVectors";
832
+ indexingId: string;
833
+ }>]>;
834
+ }, "strip", z.ZodTypeAny, {
835
+ type: "kernel";
836
+ operation: {
837
+ type: "ontology.recover";
838
+ recoveryId: string;
839
+ } | {
840
+ type: "ontology.indexVectors";
841
+ indexingId: string;
842
+ };
843
+ }, {
844
+ type: "kernel";
845
+ operation: {
846
+ type: "ontology.recover";
847
+ recoveryId: string;
848
+ } | {
849
+ type: "ontology.indexVectors";
850
+ indexingId: string;
851
+ };
852
+ }>]>>;
853
+ action: z.ZodOptional<z.ZodObject<{
854
+ actionId: z.ZodString;
855
+ runId: z.ZodString;
856
+ }, "strip", z.ZodTypeAny, {
857
+ actionId: string;
858
+ runId: string;
859
+ }, {
860
+ actionId: string;
861
+ runId: string;
862
+ }>>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ kind: "edit";
865
+ commitId: string | null;
866
+ committedAt: string;
867
+ executor?: {
868
+ type: "request";
869
+ requestId: string;
870
+ } | {
871
+ id: string;
872
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
873
+ type: "primitive";
874
+ runId: string;
875
+ } | {
876
+ type: "agent";
877
+ runId: string;
878
+ } | {
879
+ type: "kernel";
880
+ operation: {
881
+ type: "ontology.recover";
882
+ recoveryId: string;
883
+ } | {
884
+ type: "ontology.indexVectors";
885
+ indexingId: string;
886
+ };
887
+ } | undefined;
888
+ requestedBy?: {
889
+ id: string;
890
+ type: "user" | "serviceAccount";
891
+ } | undefined;
892
+ action?: {
893
+ actionId: string;
894
+ runId: string;
895
+ } | undefined;
896
+ }, {
897
+ kind: "edit";
898
+ commitId: string | null;
899
+ committedAt: string;
900
+ executor?: {
901
+ type: "request";
902
+ requestId: string;
903
+ } | {
904
+ id: string;
905
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
906
+ type: "primitive";
907
+ runId: string;
908
+ } | {
909
+ type: "agent";
910
+ runId: string;
911
+ } | {
912
+ type: "kernel";
913
+ operation: {
914
+ type: "ontology.recover";
915
+ recoveryId: string;
916
+ } | {
917
+ type: "ontology.indexVectors";
918
+ indexingId: string;
919
+ };
920
+ } | undefined;
921
+ requestedBy?: {
922
+ id: string;
923
+ type: "user" | "serviceAccount";
924
+ } | undefined;
925
+ action?: {
926
+ actionId: string;
927
+ runId: string;
928
+ } | undefined;
929
+ }>, z.ZodObject<{
930
+ kind: z.ZodLiteral<"telemetry">;
931
+ commitId: z.ZodString;
932
+ committedAt: z.ZodString;
933
+ projectionId: z.ZodOptional<z.ZodString>;
934
+ requestedBy: z.ZodOptional<z.ZodObject<{
935
+ type: z.ZodEnum<["user", "serviceAccount"]>;
936
+ id: z.ZodString;
937
+ }, "strip", z.ZodTypeAny, {
938
+ id: string;
939
+ type: "user" | "serviceAccount";
940
+ }, {
941
+ id: string;
942
+ type: "user" | "serviceAccount";
943
+ }>>;
944
+ executor: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
945
+ type: z.ZodLiteral<"request">;
946
+ requestId: z.ZodString;
947
+ }, "strip", z.ZodTypeAny, {
948
+ type: "request";
949
+ requestId: string;
950
+ }, {
951
+ type: "request";
952
+ requestId: string;
953
+ }>, z.ZodObject<{
954
+ type: z.ZodLiteral<"primitive">;
955
+ kind: z.ZodEnum<["action", "pipeline", "projection", "rule", "sync", "webhook", "workflow"]>;
956
+ id: z.ZodString;
957
+ runId: z.ZodString;
958
+ }, "strip", z.ZodTypeAny, {
959
+ id: string;
960
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
961
+ type: "primitive";
962
+ runId: string;
963
+ }, {
964
+ id: string;
965
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
966
+ type: "primitive";
967
+ runId: string;
968
+ }>, z.ZodObject<{
969
+ type: z.ZodLiteral<"agent">;
970
+ runId: z.ZodString;
971
+ }, "strip", z.ZodTypeAny, {
972
+ type: "agent";
973
+ runId: string;
974
+ }, {
975
+ type: "agent";
976
+ runId: string;
977
+ }>, z.ZodObject<{
978
+ type: z.ZodLiteral<"kernel">;
979
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
980
+ type: z.ZodLiteral<"ontology.recover">;
981
+ recoveryId: z.ZodString;
982
+ }, "strip", z.ZodTypeAny, {
983
+ type: "ontology.recover";
984
+ recoveryId: string;
985
+ }, {
986
+ type: "ontology.recover";
987
+ recoveryId: string;
988
+ }>, z.ZodObject<{
989
+ type: z.ZodLiteral<"ontology.indexVectors">;
990
+ indexingId: z.ZodString;
991
+ }, "strip", z.ZodTypeAny, {
992
+ type: "ontology.indexVectors";
993
+ indexingId: string;
994
+ }, {
995
+ type: "ontology.indexVectors";
996
+ indexingId: string;
997
+ }>]>;
998
+ }, "strip", z.ZodTypeAny, {
999
+ type: "kernel";
1000
+ operation: {
1001
+ type: "ontology.recover";
1002
+ recoveryId: string;
1003
+ } | {
1004
+ type: "ontology.indexVectors";
1005
+ indexingId: string;
1006
+ };
1007
+ }, {
1008
+ type: "kernel";
1009
+ operation: {
1010
+ type: "ontology.recover";
1011
+ recoveryId: string;
1012
+ } | {
1013
+ type: "ontology.indexVectors";
1014
+ indexingId: string;
1015
+ };
1016
+ }>]>>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ kind: "telemetry";
1019
+ commitId: string;
1020
+ committedAt: string;
1021
+ executor?: {
1022
+ type: "request";
1023
+ requestId: string;
1024
+ } | {
1025
+ id: string;
1026
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
1027
+ type: "primitive";
1028
+ runId: string;
1029
+ } | {
1030
+ type: "agent";
1031
+ runId: string;
1032
+ } | {
1033
+ type: "kernel";
1034
+ operation: {
1035
+ type: "ontology.recover";
1036
+ recoveryId: string;
1037
+ } | {
1038
+ type: "ontology.indexVectors";
1039
+ indexingId: string;
1040
+ };
1041
+ } | undefined;
1042
+ requestedBy?: {
1043
+ id: string;
1044
+ type: "user" | "serviceAccount";
1045
+ } | undefined;
1046
+ projectionId?: string | undefined;
1047
+ }, {
1048
+ kind: "telemetry";
1049
+ commitId: string;
1050
+ committedAt: string;
1051
+ executor?: {
1052
+ type: "request";
1053
+ requestId: string;
1054
+ } | {
1055
+ id: string;
1056
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
1057
+ type: "primitive";
1058
+ runId: string;
1059
+ } | {
1060
+ type: "agent";
1061
+ runId: string;
1062
+ } | {
1063
+ type: "kernel";
1064
+ operation: {
1065
+ type: "ontology.recover";
1066
+ recoveryId: string;
1067
+ } | {
1068
+ type: "ontology.indexVectors";
1069
+ indexingId: string;
1070
+ };
1071
+ } | undefined;
1072
+ requestedBy?: {
1073
+ id: string;
1074
+ type: "user" | "serviceAccount";
1075
+ } | undefined;
1076
+ projectionId?: string | undefined;
1077
+ }>, z.ZodObject<{
1078
+ kind: z.ZodLiteral<"identity">;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ kind: "identity";
1081
+ }, {
1082
+ kind: "identity";
1083
+ }>]>>;
1084
+ restricted: z.ZodNumber;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ sourceId: string;
1087
+ restricted: number;
1088
+ sourceTypeId: string;
1089
+ linkId: string;
1090
+ targetTypeId: string;
1091
+ targetId: string;
1092
+ existence: {
1093
+ source: string;
1094
+ columns?: string[] | undefined;
1095
+ origins?: {
1096
+ datasetId: string;
1097
+ column: string;
1098
+ }[] | undefined;
1099
+ };
1100
+ sources: Record<string, {
1101
+ kind: "projection";
1102
+ projectionId: string;
1103
+ projectionRunId?: string | undefined;
1104
+ datasetVersion?: {
1105
+ datasetId: string;
1106
+ versionId: string;
1107
+ } | undefined;
1108
+ rowOrigins?: {
1109
+ datasetId: string;
1110
+ column: string;
1111
+ }[] | undefined;
1112
+ } | {
1113
+ kind: "edit";
1114
+ commitId: string | null;
1115
+ committedAt: string;
1116
+ executor?: {
1117
+ type: "request";
1118
+ requestId: string;
1119
+ } | {
1120
+ id: string;
1121
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
1122
+ type: "primitive";
1123
+ runId: string;
1124
+ } | {
1125
+ type: "agent";
1126
+ runId: string;
1127
+ } | {
1128
+ type: "kernel";
1129
+ operation: {
1130
+ type: "ontology.recover";
1131
+ recoveryId: string;
1132
+ } | {
1133
+ type: "ontology.indexVectors";
1134
+ indexingId: string;
1135
+ };
1136
+ } | undefined;
1137
+ requestedBy?: {
1138
+ id: string;
1139
+ type: "user" | "serviceAccount";
1140
+ } | undefined;
1141
+ action?: {
1142
+ actionId: string;
1143
+ runId: string;
1144
+ } | undefined;
1145
+ } | {
1146
+ kind: "telemetry";
1147
+ commitId: string;
1148
+ committedAt: string;
1149
+ executor?: {
1150
+ type: "request";
1151
+ requestId: string;
1152
+ } | {
1153
+ id: string;
1154
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
1155
+ type: "primitive";
1156
+ runId: string;
1157
+ } | {
1158
+ type: "agent";
1159
+ runId: string;
1160
+ } | {
1161
+ type: "kernel";
1162
+ operation: {
1163
+ type: "ontology.recover";
1164
+ recoveryId: string;
1165
+ } | {
1166
+ type: "ontology.indexVectors";
1167
+ indexingId: string;
1168
+ };
1169
+ } | undefined;
1170
+ requestedBy?: {
1171
+ id: string;
1172
+ type: "user" | "serviceAccount";
1173
+ } | undefined;
1174
+ projectionId?: string | undefined;
1175
+ } | {
1176
+ kind: "identity";
1177
+ }>;
1178
+ }, {
1179
+ sourceId: string;
1180
+ restricted: number;
1181
+ sourceTypeId: string;
1182
+ linkId: string;
1183
+ targetTypeId: string;
1184
+ targetId: string;
1185
+ existence: {
1186
+ source: string;
1187
+ columns?: string[] | undefined;
1188
+ origins?: {
1189
+ datasetId: string;
1190
+ column: string;
1191
+ }[] | undefined;
1192
+ };
1193
+ sources: Record<string, {
1194
+ kind: "projection";
1195
+ projectionId: string;
1196
+ projectionRunId?: string | undefined;
1197
+ datasetVersion?: {
1198
+ datasetId: string;
1199
+ versionId: string;
1200
+ } | undefined;
1201
+ rowOrigins?: {
1202
+ datasetId: string;
1203
+ column: string;
1204
+ }[] | undefined;
1205
+ } | {
1206
+ kind: "edit";
1207
+ commitId: string | null;
1208
+ committedAt: string;
1209
+ executor?: {
1210
+ type: "request";
1211
+ requestId: string;
1212
+ } | {
1213
+ id: string;
1214
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
1215
+ type: "primitive";
1216
+ runId: string;
1217
+ } | {
1218
+ type: "agent";
1219
+ runId: string;
1220
+ } | {
1221
+ type: "kernel";
1222
+ operation: {
1223
+ type: "ontology.recover";
1224
+ recoveryId: string;
1225
+ } | {
1226
+ type: "ontology.indexVectors";
1227
+ indexingId: string;
1228
+ };
1229
+ } | undefined;
1230
+ requestedBy?: {
1231
+ id: string;
1232
+ type: "user" | "serviceAccount";
1233
+ } | undefined;
1234
+ action?: {
1235
+ actionId: string;
1236
+ runId: string;
1237
+ } | undefined;
1238
+ } | {
1239
+ kind: "telemetry";
1240
+ commitId: string;
1241
+ committedAt: string;
1242
+ executor?: {
1243
+ type: "request";
1244
+ requestId: string;
1245
+ } | {
1246
+ id: string;
1247
+ kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
1248
+ type: "primitive";
1249
+ runId: string;
1250
+ } | {
1251
+ type: "agent";
1252
+ runId: string;
1253
+ } | {
1254
+ type: "kernel";
1255
+ operation: {
1256
+ type: "ontology.recover";
1257
+ recoveryId: string;
1258
+ } | {
1259
+ type: "ontology.indexVectors";
1260
+ indexingId: string;
1261
+ };
1262
+ } | undefined;
1263
+ requestedBy?: {
1264
+ id: string;
1265
+ type: "user" | "serviceAccount";
1266
+ } | undefined;
1267
+ projectionId?: string | undefined;
1268
+ } | {
1269
+ kind: "identity";
1270
+ }>;
1271
+ }>;
1272
+ //# sourceMappingURL=lineage.d.ts.map