@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 @@
1
+ {"version":3,"file":"lineage.d.ts","sourceRoot":"","sources":["../../src/schemas/lineage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA4FvB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"strip", z.ZodTypeAny, {
6
- objectTypeId: string;
7
- objectId: string;
8
- }, {
9
- objectTypeId: string;
10
- objectId: string;
11
- }>;
12
2
  export declare const LinkParamsSchema: z.ZodObject<{
13
3
  objectTypeId: z.ZodString;
14
4
  objectId: z.ZodString;
15
- } & {
16
5
  linkId: z.ZodString;
17
6
  }, "strip", z.ZodTypeAny, {
18
7
  objectTypeId: string;
19
- objectId: string;
20
8
  linkId: string;
9
+ objectId: string;
21
10
  }, {
22
11
  objectTypeId: string;
23
- objectId: string;
24
12
  linkId: string;
13
+ objectId: string;
25
14
  }>;
26
- export declare const RemoveLinkQuerySchema: z.ZodObject<{
27
- targetTypeId: z.ZodString;
28
- targetId: z.ZodString;
29
- }, "strip", z.ZodTypeAny, {
30
- targetTypeId: string;
31
- targetId: string;
32
- }, {
33
- targetTypeId: string;
34
- targetId: string;
35
- }>;
36
- export declare const UpsertLinkBodySchema: z.ZodObject<{
15
+ /** A link is named by its target. */
16
+ export declare const LinkLineageQuerySchema: z.ZodObject<{
37
17
  targetTypeId: z.ZodString;
38
18
  targetId: z.ZodString;
39
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
40
19
  }, "strip", z.ZodTypeAny, {
41
20
  targetTypeId: string;
42
21
  targetId: string;
43
- properties?: Record<string, unknown> | undefined;
44
22
  }, {
45
23
  targetTypeId: string;
46
24
  targetId: string;
47
- properties?: Record<string, unknown> | undefined;
48
25
  }>;
49
26
  //# sourceMappingURL=links.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/schemas/links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;EAE3B,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAA"}
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/schemas/links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAA;AAEF,qCAAqC;AACrC,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAA"}
@@ -15,35 +15,35 @@ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
15
15
  beforeCursor: z.ZodOptional<z.ZodString>;
16
16
  limit: z.ZodOptional<z.ZodNumber>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- kind?: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection" | undefined;
18
+ kind?: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook" | undefined;
19
19
  runId?: string | undefined;
20
20
  limit?: number | undefined;
21
- direction?: "forward" | "backward" | undefined;
22
21
  afterCursor?: string | undefined;
22
+ direction?: "forward" | "backward" | undefined;
23
23
  level?: "error" | "info" | "debug" | "warn" | undefined;
24
24
  beforeCursor?: string | undefined;
25
25
  }, {
26
- kind?: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection" | undefined;
26
+ kind?: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook" | undefined;
27
27
  runId?: string | undefined;
28
28
  limit?: number | undefined;
29
- direction?: "forward" | "backward" | undefined;
30
29
  afterCursor?: string | undefined;
30
+ direction?: "forward" | "backward" | undefined;
31
31
  level?: "error" | "info" | "debug" | "warn" | undefined;
32
32
  beforeCursor?: string | undefined;
33
33
  }>, {
34
- kind?: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection" | undefined;
34
+ kind?: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook" | undefined;
35
35
  runId?: string | undefined;
36
36
  limit?: number | undefined;
37
- direction?: "forward" | "backward" | undefined;
38
37
  afterCursor?: string | undefined;
38
+ direction?: "forward" | "backward" | undefined;
39
39
  level?: "error" | "info" | "debug" | "warn" | undefined;
40
40
  beforeCursor?: string | undefined;
41
41
  }, {
42
- kind?: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection" | undefined;
42
+ kind?: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook" | undefined;
43
43
  runId?: string | undefined;
44
44
  limit?: number | undefined;
45
- direction?: "forward" | "backward" | undefined;
46
45
  afterCursor?: string | undefined;
46
+ direction?: "forward" | "backward" | undefined;
47
47
  level?: "error" | "info" | "debug" | "warn" | undefined;
48
48
  beforeCursor?: string | undefined;
49
49
  }>;
@@ -58,10 +58,10 @@ export declare const LogLineSchema: z.ZodObject<{
58
58
  id: z.ZodString;
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  id: string;
61
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
61
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
62
62
  }, {
63
63
  id: string;
64
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
64
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
65
65
  }>;
66
66
  stepId: z.ZodOptional<z.ZodString>;
67
67
  phase: z.ZodOptional<z.ZodString>;
@@ -69,7 +69,7 @@ export declare const LogLineSchema: z.ZodObject<{
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  run: {
71
71
  id: string;
72
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
72
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
73
73
  };
74
74
  phase?: string | undefined;
75
75
  attempt?: number | undefined;
@@ -77,7 +77,7 @@ export declare const LogLineSchema: z.ZodObject<{
77
77
  }, {
78
78
  run: {
79
79
  id: string;
80
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
80
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
81
81
  };
82
82
  phase?: string | undefined;
83
83
  attempt?: number | undefined;
@@ -89,7 +89,7 @@ export declare const LogLineSchema: z.ZodObject<{
89
89
  context: {
90
90
  run: {
91
91
  id: string;
92
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
92
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
93
93
  };
94
94
  phase?: string | undefined;
95
95
  attempt?: number | undefined;
@@ -104,7 +104,7 @@ export declare const LogLineSchema: z.ZodObject<{
104
104
  context: {
105
105
  run: {
106
106
  id: string;
107
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
107
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
108
108
  };
109
109
  phase?: string | undefined;
110
110
  attempt?: number | undefined;
@@ -128,10 +128,10 @@ export declare const LogsResponseSchema: z.ZodObject<{
128
128
  id: z.ZodString;
129
129
  }, "strip", z.ZodTypeAny, {
130
130
  id: string;
131
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
131
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
132
132
  }, {
133
133
  id: string;
134
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
134
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
135
135
  }>;
136
136
  stepId: z.ZodOptional<z.ZodString>;
137
137
  phase: z.ZodOptional<z.ZodString>;
@@ -139,7 +139,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
139
139
  }, "strip", z.ZodTypeAny, {
140
140
  run: {
141
141
  id: string;
142
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
142
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
143
143
  };
144
144
  phase?: string | undefined;
145
145
  attempt?: number | undefined;
@@ -147,7 +147,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
147
147
  }, {
148
148
  run: {
149
149
  id: string;
150
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
150
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
151
151
  };
152
152
  phase?: string | undefined;
153
153
  attempt?: number | undefined;
@@ -159,7 +159,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
159
159
  context: {
160
160
  run: {
161
161
  id: string;
162
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
162
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
163
163
  };
164
164
  phase?: string | undefined;
165
165
  attempt?: number | undefined;
@@ -174,7 +174,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
174
174
  context: {
175
175
  run: {
176
176
  id: string;
177
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
177
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
178
178
  };
179
179
  phase?: string | undefined;
180
180
  attempt?: number | undefined;
@@ -195,7 +195,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
195
195
  context: {
196
196
  run: {
197
197
  id: string;
198
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
198
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
199
199
  };
200
200
  phase?: string | undefined;
201
201
  attempt?: number | undefined;
@@ -215,7 +215,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
215
215
  context: {
216
216
  run: {
217
217
  id: string;
218
- kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
218
+ kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
219
219
  };
220
220
  phase?: string | undefined;
221
221
  attempt?: number | undefined;
@@ -129,13 +129,6 @@ export declare const ObjectsQuerySchema: z.ZodEffects<z.ZodObject<{
129
129
  createdBefore?: string | undefined;
130
130
  orderBy?: "primaryId" | "createdAt" | "updatedAt" | undefined;
131
131
  }>;
132
- export declare const UpsertObjectBodySchema: z.ZodObject<{
133
- properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
134
- }, "strip", z.ZodTypeAny, {
135
- properties: Record<string, unknown>;
136
- }, {
137
- properties: Record<string, unknown>;
138
- }>;
139
132
  export declare const UniquePropertyParamsSchema: z.ZodObject<{
140
133
  objectTypeId: z.ZodString;
141
134
  propertyId: z.ZodString;
@@ -253,8 +246,8 @@ export declare const ObjectQueryLinksRequestSchema: z.ZodObject<{
253
246
  pageToken?: string | undefined;
254
247
  }, {
255
248
  query?: unknown;
256
- direction?: "outgoing" | "incoming" | "both" | undefined;
257
249
  linkId?: string | undefined;
250
+ direction?: "outgoing" | "incoming" | "both" | undefined;
258
251
  pageSize?: number | undefined;
259
252
  pageToken?: string | undefined;
260
253
  includeObjects?: boolean | undefined;
@@ -279,20 +272,20 @@ export declare const TwinObjectSchema: z.ZodObject<{
279
272
  primaryId: string;
280
273
  createdAt: string;
281
274
  updatedAt: string;
282
- score?: number | undefined;
283
275
  redactions?: Record<string, {
284
276
  reason: "missing_clearance";
285
277
  }> | undefined;
278
+ score?: number | undefined;
286
279
  }, {
287
280
  properties: Record<string, unknown>;
288
281
  objectTypeId: string;
289
282
  primaryId: string;
290
283
  createdAt: string;
291
284
  updatedAt: string;
292
- score?: number | undefined;
293
285
  redactions?: Record<string, {
294
286
  reason: "missing_clearance";
295
287
  }> | undefined;
288
+ score?: number | undefined;
296
289
  }>;
297
290
  export declare const ObjectListResponseSchema: z.ZodObject<{
298
291
  objects: z.ZodArray<z.ZodObject<{
@@ -315,20 +308,20 @@ export declare const ObjectListResponseSchema: z.ZodObject<{
315
308
  primaryId: string;
316
309
  createdAt: string;
317
310
  updatedAt: string;
318
- score?: number | undefined;
319
311
  redactions?: Record<string, {
320
312
  reason: "missing_clearance";
321
313
  }> | undefined;
314
+ score?: number | undefined;
322
315
  }, {
323
316
  properties: Record<string, unknown>;
324
317
  objectTypeId: string;
325
318
  primaryId: string;
326
319
  createdAt: string;
327
320
  updatedAt: string;
328
- score?: number | undefined;
329
321
  redactions?: Record<string, {
330
322
  reason: "missing_clearance";
331
323
  }> | undefined;
324
+ score?: number | undefined;
332
325
  }>, "many">;
333
326
  hasMore: z.ZodBoolean;
334
327
  total: z.ZodNumber;
@@ -339,10 +332,10 @@ export declare const ObjectListResponseSchema: z.ZodObject<{
339
332
  primaryId: string;
340
333
  createdAt: string;
341
334
  updatedAt: string;
342
- score?: number | undefined;
343
335
  redactions?: Record<string, {
344
336
  reason: "missing_clearance";
345
337
  }> | undefined;
338
+ score?: number | undefined;
346
339
  }[];
347
340
  hasMore: boolean;
348
341
  total: number;
@@ -353,10 +346,10 @@ export declare const ObjectListResponseSchema: z.ZodObject<{
353
346
  primaryId: string;
354
347
  createdAt: string;
355
348
  updatedAt: string;
356
- score?: number | undefined;
357
349
  redactions?: Record<string, {
358
350
  reason: "missing_clearance";
359
351
  }> | undefined;
352
+ score?: number | undefined;
360
353
  }[];
361
354
  hasMore: boolean;
362
355
  total: number;
@@ -374,17 +367,5 @@ export declare const ObjectLookupNotFoundResponseSchema: z.ZodObject<{
374
367
  error: string;
375
368
  code?: "object.not_found" | undefined;
376
369
  }>;
377
- /** A write would give a unique property's value to a second object of the type. */
378
- export declare const UniqueViolationErrorResponseSchema: z.ZodObject<{
379
- error: z.ZodString;
380
- } & {
381
- code: z.ZodEnum<["object.unique_violation"]>;
382
- }, "strip", z.ZodTypeAny, {
383
- error: string;
384
- code: "object.unique_violation";
385
- }, {
386
- error: string;
387
- code: "object.unique_violation";
388
- }>;
389
370
  export {};
390
371
  //# sourceMappingURL=objects.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/schemas/objects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA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@@ -125,12 +125,12 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
125
125
  id: string;
126
126
  mode: "append" | "snapshot";
127
127
  startedAt: string;
128
+ datasetId: string;
129
+ stepId: string;
128
130
  inputs: {
129
131
  datasetId: string;
130
132
  versionId: string;
131
133
  }[];
132
- datasetId: string;
133
- stepId: string;
134
134
  pipelineId: string;
135
135
  pipelineRunId: string;
136
136
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
@@ -146,12 +146,12 @@ export declare const PipelineStepRunSchema: z.ZodObject<{
146
146
  id: string;
147
147
  mode: "append" | "snapshot";
148
148
  startedAt: string;
149
+ datasetId: string;
150
+ stepId: string;
149
151
  inputs: {
150
152
  datasetId: string;
151
153
  versionId: string;
152
154
  }[];
153
- datasetId: string;
154
- stepId: string;
155
155
  pipelineId: string;
156
156
  pipelineRunId: string;
157
157
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
@@ -1219,12 +1219,12 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1219
1219
  id: string;
1220
1220
  mode: "append" | "snapshot";
1221
1221
  startedAt: string;
1222
+ datasetId: string;
1223
+ stepId: string;
1222
1224
  inputs: {
1223
1225
  datasetId: string;
1224
1226
  versionId: string;
1225
1227
  }[];
1226
- datasetId: string;
1227
- stepId: string;
1228
1228
  pipelineId: string;
1229
1229
  pipelineRunId: string;
1230
1230
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
@@ -1240,12 +1240,12 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1240
1240
  id: string;
1241
1241
  mode: "append" | "snapshot";
1242
1242
  startedAt: string;
1243
+ datasetId: string;
1244
+ stepId: string;
1243
1245
  inputs: {
1244
1246
  datasetId: string;
1245
1247
  versionId: string;
1246
1248
  }[];
1247
- datasetId: string;
1248
- stepId: string;
1249
1249
  pipelineId: string;
1250
1250
  pipelineRunId: string;
1251
1251
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
@@ -1277,12 +1277,12 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1277
1277
  id: string;
1278
1278
  mode: "append" | "snapshot";
1279
1279
  startedAt: string;
1280
+ datasetId: string;
1281
+ stepId: string;
1280
1282
  inputs: {
1281
1283
  datasetId: string;
1282
1284
  versionId: string;
1283
1285
  }[];
1284
- datasetId: string;
1285
- stepId: string;
1286
1286
  pipelineId: string;
1287
1287
  pipelineRunId: string;
1288
1288
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
@@ -1314,12 +1314,12 @@ export declare const PipelineRunDetailResponseSchema: z.ZodObject<{
1314
1314
  id: string;
1315
1315
  mode: "append" | "snapshot";
1316
1316
  startedAt: string;
1317
+ datasetId: string;
1318
+ stepId: string;
1317
1319
  inputs: {
1318
1320
  datasetId: string;
1319
1321
  versionId: string;
1320
1322
  }[];
1321
- datasetId: string;
1322
- stepId: string;
1323
1323
  pipelineId: string;
1324
1324
  pipelineRunId: string;
1325
1325
  error?: SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;