@xpert-ai/contracts 3.22.0 → 3.25.0

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 (58) hide show
  1. package/index.cjs.js +5296 -368
  2. package/index.esm.js +5185 -369
  3. package/package.json +2 -2
  4. package/src/ai/agent-output-delivery.model.d.ts +10 -10
  5. package/src/ai/agent-runtime.model.d.ts +24 -24
  6. package/src/ai/assistant-model.model.d.ts +8 -0
  7. package/src/ai/assistant-template-dependencies.model.d.ts +1 -1
  8. package/src/ai/chat-group.model.d.ts +7 -3
  9. package/src/ai/index.d.ts +2 -0
  10. package/src/ai/mcp-publication.model.d.ts +20 -0
  11. package/src/ai/model-discovery.model.d.ts +2 -0
  12. package/src/ai/project-pipeline/analytics.d.ts +1685 -0
  13. package/src/ai/project-pipeline/budget.schema.d.ts +78 -0
  14. package/src/ai/project-pipeline/catalog.schema.d.ts +188 -0
  15. package/src/ai/project-pipeline/catalog.validation.d.ts +4 -0
  16. package/src/ai/project-pipeline/commands.schema.d.ts +4381 -0
  17. package/src/ai/project-pipeline/compatibility.d.ts +5 -0
  18. package/src/ai/project-pipeline/compatibility.schema.d.ts +29 -0
  19. package/src/ai/project-pipeline/configuration-form.d.ts +17374 -0
  20. package/src/ai/project-pipeline/configuration.schema.d.ts +3774 -0
  21. package/src/ai/project-pipeline/contribution.schema.d.ts +6721 -0
  22. package/src/ai/project-pipeline/dataflow.validation.d.ts +6 -0
  23. package/src/ai/project-pipeline/definition.schema.d.ts +3808 -0
  24. package/src/ai/project-pipeline/definition.validation.d.ts +7 -0
  25. package/src/ai/project-pipeline/execution-statistics.d.ts +267 -0
  26. package/src/ai/project-pipeline/graph.model.d.ts +89 -0
  27. package/src/ai/project-pipeline/human-wait-statistics.d.ts +70 -0
  28. package/src/ai/project-pipeline/human-wait.schema.d.ts +26 -0
  29. package/src/ai/project-pipeline/index.d.ts +28 -0
  30. package/src/ai/project-pipeline/model-usage-statistics.d.ts +143 -0
  31. package/src/ai/project-pipeline/native-source.schema.d.ts +40 -0
  32. package/src/ai/project-pipeline/node.schema.d.ts +839 -0
  33. package/src/ai/project-pipeline/operation.schema.d.ts +800 -0
  34. package/src/ai/project-pipeline/portfolio.schema.d.ts +3817 -0
  35. package/src/ai/project-pipeline/primitives.schema.d.ts +138 -0
  36. package/src/ai/project-pipeline/projection.schema.d.ts +4715 -0
  37. package/src/ai/project-pipeline/provider-actions.schema.d.ts +2030 -0
  38. package/src/ai/project-pipeline/queue-statistics.d.ts +326 -0
  39. package/src/ai/project-pipeline/resources.schema.d.ts +73 -0
  40. package/src/ai/project-pipeline/runtime.schema.d.ts +934 -0
  41. package/src/ai/project-pipeline/statistics.d.ts +811 -0
  42. package/src/ai/project-task-graph.model.d.ts +18 -2
  43. package/src/ai/project-task-runtime.model.d.ts +924 -924
  44. package/src/ai/provider-credential-validation.model.d.ts +63 -0
  45. package/src/ai/template-installation.model.d.ts +27 -0
  46. package/src/ai/types.d.ts +6 -4
  47. package/src/ai/xpert-project-type.model.d.ts +15 -4
  48. package/src/ai/xpert-project.model.d.ts +9 -2
  49. package/src/ai/xpert.model.d.ts +5 -0
  50. package/src/analytics-query.model.d.ts +180 -0
  51. package/src/artifact-presentation.model.d.ts +28 -0
  52. package/src/artifact.model.d.ts +15 -0
  53. package/src/assistant-sharing.model.d.ts +32 -0
  54. package/src/index.d.ts +4 -0
  55. package/src/plugin-application.d.ts +4 -1
  56. package/src/user-directory.model.d.ts +15 -0
  57. package/src/user-group.model.d.ts +1 -0
  58. package/src/view-extension/model.d.ts +16 -1
@@ -0,0 +1,839 @@
1
+ import { z } from 'zod/v3';
2
+ /** Only explicit primitives can control flow; configuration cannot embed executable expressions. */
3
+ export declare const projectPipelineNodeSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
4
+ kind: z.ZodLiteral<"work">;
5
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
6
+ operationRef: z.ZodString;
7
+ executorSlot: z.ZodEffects<z.ZodString, string, string>;
8
+ completionRef: z.ZodString;
9
+ resourceResolverRef: z.ZodOptional<z.ZodString>;
10
+ outputSchemaRef: z.ZodOptional<z.ZodString>;
11
+ key: z.ZodEffects<z.ZodString, string, string>;
12
+ label: z.ZodOptional<z.ZodString>;
13
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
14
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
15
+ from: z.ZodLiteral<"subject">;
16
+ }, "strict", z.ZodTypeAny, {
17
+ from: "subject";
18
+ }, {
19
+ from: "subject";
20
+ }>, z.ZodObject<{
21
+ from: z.ZodLiteral<"parameter">;
22
+ key: z.ZodEffects<z.ZodString, string, string>;
23
+ }, "strict", z.ZodTypeAny, {
24
+ key: string;
25
+ from: "parameter";
26
+ }, {
27
+ key: string;
28
+ from: "parameter";
29
+ }>, z.ZodObject<{
30
+ from: z.ZodLiteral<"node_output">;
31
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
32
+ port: z.ZodEffects<z.ZodString, string, string>;
33
+ }, "strict", z.ZodTypeAny, {
34
+ from: "node_output";
35
+ nodeKey: string;
36
+ port: string;
37
+ }, {
38
+ from: "node_output";
39
+ nodeKey: string;
40
+ port: string;
41
+ }>, z.ZodObject<{
42
+ from: z.ZodLiteral<"collection">;
43
+ items: z.ZodArray<z.ZodObject<{
44
+ from: z.ZodLiteral<"node_output">;
45
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
46
+ port: z.ZodEffects<z.ZodString, string, string>;
47
+ }, "strict", z.ZodTypeAny, {
48
+ from: "node_output";
49
+ nodeKey: string;
50
+ port: string;
51
+ }, {
52
+ from: "node_output";
53
+ nodeKey: string;
54
+ port: string;
55
+ }>, "many">;
56
+ }, "strict", z.ZodTypeAny, {
57
+ from: "collection";
58
+ items: {
59
+ from: "node_output";
60
+ nodeKey: string;
61
+ port: string;
62
+ }[];
63
+ }, {
64
+ from: "collection";
65
+ items: {
66
+ from: "node_output";
67
+ nodeKey: string;
68
+ port: string;
69
+ }[];
70
+ }>]>>>;
71
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
72
+ }, "strict", z.ZodTypeAny, {
73
+ key: string;
74
+ kind: "work";
75
+ laneKey: string;
76
+ operationRef: string;
77
+ executorSlot: string;
78
+ completionRef: string;
79
+ stageKey: string;
80
+ label?: string | undefined;
81
+ resourceResolverRef?: string | undefined;
82
+ outputSchemaRef?: string | undefined;
83
+ inputBindings?: Record<string, {
84
+ from: "node_output";
85
+ nodeKey: string;
86
+ port: string;
87
+ } | {
88
+ from: "subject";
89
+ } | {
90
+ key: string;
91
+ from: "parameter";
92
+ } | {
93
+ from: "collection";
94
+ items: {
95
+ from: "node_output";
96
+ nodeKey: string;
97
+ port: string;
98
+ }[];
99
+ }> | undefined;
100
+ outputPorts?: Record<string, string> | undefined;
101
+ }, {
102
+ key: string;
103
+ kind: "work";
104
+ laneKey: string;
105
+ operationRef: string;
106
+ executorSlot: string;
107
+ completionRef: string;
108
+ stageKey: string;
109
+ label?: string | undefined;
110
+ resourceResolverRef?: string | undefined;
111
+ outputSchemaRef?: string | undefined;
112
+ inputBindings?: Record<string, {
113
+ from: "node_output";
114
+ nodeKey: string;
115
+ port: string;
116
+ } | {
117
+ from: "subject";
118
+ } | {
119
+ key: string;
120
+ from: "parameter";
121
+ } | {
122
+ from: "collection";
123
+ items: {
124
+ from: "node_output";
125
+ nodeKey: string;
126
+ port: string;
127
+ }[];
128
+ }> | undefined;
129
+ outputPorts?: Record<string, string> | undefined;
130
+ }>, z.ZodObject<{
131
+ kind: z.ZodLiteral<"fork">;
132
+ key: z.ZodEffects<z.ZodString, string, string>;
133
+ label: z.ZodOptional<z.ZodString>;
134
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
135
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
136
+ from: z.ZodLiteral<"subject">;
137
+ }, "strict", z.ZodTypeAny, {
138
+ from: "subject";
139
+ }, {
140
+ from: "subject";
141
+ }>, z.ZodObject<{
142
+ from: z.ZodLiteral<"parameter">;
143
+ key: z.ZodEffects<z.ZodString, string, string>;
144
+ }, "strict", z.ZodTypeAny, {
145
+ key: string;
146
+ from: "parameter";
147
+ }, {
148
+ key: string;
149
+ from: "parameter";
150
+ }>, z.ZodObject<{
151
+ from: z.ZodLiteral<"node_output">;
152
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
153
+ port: z.ZodEffects<z.ZodString, string, string>;
154
+ }, "strict", z.ZodTypeAny, {
155
+ from: "node_output";
156
+ nodeKey: string;
157
+ port: string;
158
+ }, {
159
+ from: "node_output";
160
+ nodeKey: string;
161
+ port: string;
162
+ }>, z.ZodObject<{
163
+ from: z.ZodLiteral<"collection">;
164
+ items: z.ZodArray<z.ZodObject<{
165
+ from: z.ZodLiteral<"node_output">;
166
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
167
+ port: z.ZodEffects<z.ZodString, string, string>;
168
+ }, "strict", z.ZodTypeAny, {
169
+ from: "node_output";
170
+ nodeKey: string;
171
+ port: string;
172
+ }, {
173
+ from: "node_output";
174
+ nodeKey: string;
175
+ port: string;
176
+ }>, "many">;
177
+ }, "strict", z.ZodTypeAny, {
178
+ from: "collection";
179
+ items: {
180
+ from: "node_output";
181
+ nodeKey: string;
182
+ port: string;
183
+ }[];
184
+ }, {
185
+ from: "collection";
186
+ items: {
187
+ from: "node_output";
188
+ nodeKey: string;
189
+ port: string;
190
+ }[];
191
+ }>]>>>;
192
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
193
+ }, "strict", z.ZodTypeAny, {
194
+ key: string;
195
+ kind: "fork";
196
+ stageKey: string;
197
+ label?: string | undefined;
198
+ inputBindings?: Record<string, {
199
+ from: "node_output";
200
+ nodeKey: string;
201
+ port: string;
202
+ } | {
203
+ from: "subject";
204
+ } | {
205
+ key: string;
206
+ from: "parameter";
207
+ } | {
208
+ from: "collection";
209
+ items: {
210
+ from: "node_output";
211
+ nodeKey: string;
212
+ port: string;
213
+ }[];
214
+ }> | undefined;
215
+ outputPorts?: Record<string, string> | undefined;
216
+ }, {
217
+ key: string;
218
+ kind: "fork";
219
+ stageKey: string;
220
+ label?: string | undefined;
221
+ inputBindings?: Record<string, {
222
+ from: "node_output";
223
+ nodeKey: string;
224
+ port: string;
225
+ } | {
226
+ from: "subject";
227
+ } | {
228
+ key: string;
229
+ from: "parameter";
230
+ } | {
231
+ from: "collection";
232
+ items: {
233
+ from: "node_output";
234
+ nodeKey: string;
235
+ port: string;
236
+ }[];
237
+ }> | undefined;
238
+ outputPorts?: Record<string, string> | undefined;
239
+ }>, z.ZodObject<{
240
+ kind: z.ZodLiteral<"join">;
241
+ join: z.ZodObject<{
242
+ mode: z.ZodLiteral<"all_selected">;
243
+ accept: z.ZodLiteral<"completed">;
244
+ }, "strict", z.ZodTypeAny, {
245
+ mode: "all_selected";
246
+ accept: "completed";
247
+ }, {
248
+ mode: "all_selected";
249
+ accept: "completed";
250
+ }>;
251
+ key: z.ZodEffects<z.ZodString, string, string>;
252
+ label: z.ZodOptional<z.ZodString>;
253
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
254
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
255
+ from: z.ZodLiteral<"subject">;
256
+ }, "strict", z.ZodTypeAny, {
257
+ from: "subject";
258
+ }, {
259
+ from: "subject";
260
+ }>, z.ZodObject<{
261
+ from: z.ZodLiteral<"parameter">;
262
+ key: z.ZodEffects<z.ZodString, string, string>;
263
+ }, "strict", z.ZodTypeAny, {
264
+ key: string;
265
+ from: "parameter";
266
+ }, {
267
+ key: string;
268
+ from: "parameter";
269
+ }>, z.ZodObject<{
270
+ from: z.ZodLiteral<"node_output">;
271
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
272
+ port: z.ZodEffects<z.ZodString, string, string>;
273
+ }, "strict", z.ZodTypeAny, {
274
+ from: "node_output";
275
+ nodeKey: string;
276
+ port: string;
277
+ }, {
278
+ from: "node_output";
279
+ nodeKey: string;
280
+ port: string;
281
+ }>, z.ZodObject<{
282
+ from: z.ZodLiteral<"collection">;
283
+ items: z.ZodArray<z.ZodObject<{
284
+ from: z.ZodLiteral<"node_output">;
285
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
286
+ port: z.ZodEffects<z.ZodString, string, string>;
287
+ }, "strict", z.ZodTypeAny, {
288
+ from: "node_output";
289
+ nodeKey: string;
290
+ port: string;
291
+ }, {
292
+ from: "node_output";
293
+ nodeKey: string;
294
+ port: string;
295
+ }>, "many">;
296
+ }, "strict", z.ZodTypeAny, {
297
+ from: "collection";
298
+ items: {
299
+ from: "node_output";
300
+ nodeKey: string;
301
+ port: string;
302
+ }[];
303
+ }, {
304
+ from: "collection";
305
+ items: {
306
+ from: "node_output";
307
+ nodeKey: string;
308
+ port: string;
309
+ }[];
310
+ }>]>>>;
311
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
312
+ }, "strict", z.ZodTypeAny, {
313
+ join: {
314
+ mode: "all_selected";
315
+ accept: "completed";
316
+ };
317
+ key: string;
318
+ kind: "join";
319
+ stageKey: string;
320
+ label?: string | undefined;
321
+ inputBindings?: Record<string, {
322
+ from: "node_output";
323
+ nodeKey: string;
324
+ port: string;
325
+ } | {
326
+ from: "subject";
327
+ } | {
328
+ key: string;
329
+ from: "parameter";
330
+ } | {
331
+ from: "collection";
332
+ items: {
333
+ from: "node_output";
334
+ nodeKey: string;
335
+ port: string;
336
+ }[];
337
+ }> | undefined;
338
+ outputPorts?: Record<string, string> | undefined;
339
+ }, {
340
+ join: {
341
+ mode: "all_selected";
342
+ accept: "completed";
343
+ };
344
+ key: string;
345
+ kind: "join";
346
+ stageKey: string;
347
+ label?: string | undefined;
348
+ inputBindings?: Record<string, {
349
+ from: "node_output";
350
+ nodeKey: string;
351
+ port: string;
352
+ } | {
353
+ from: "subject";
354
+ } | {
355
+ key: string;
356
+ from: "parameter";
357
+ } | {
358
+ from: "collection";
359
+ items: {
360
+ from: "node_output";
361
+ nodeKey: string;
362
+ port: string;
363
+ }[];
364
+ }> | undefined;
365
+ outputPorts?: Record<string, string> | undefined;
366
+ }>, z.ZodObject<{
367
+ kind: z.ZodLiteral<"router">;
368
+ policyRef: z.ZodString;
369
+ outcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
370
+ unmatched: z.ZodLiteral<"block">;
371
+ key: z.ZodEffects<z.ZodString, string, string>;
372
+ label: z.ZodOptional<z.ZodString>;
373
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
374
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
375
+ from: z.ZodLiteral<"subject">;
376
+ }, "strict", z.ZodTypeAny, {
377
+ from: "subject";
378
+ }, {
379
+ from: "subject";
380
+ }>, z.ZodObject<{
381
+ from: z.ZodLiteral<"parameter">;
382
+ key: z.ZodEffects<z.ZodString, string, string>;
383
+ }, "strict", z.ZodTypeAny, {
384
+ key: string;
385
+ from: "parameter";
386
+ }, {
387
+ key: string;
388
+ from: "parameter";
389
+ }>, z.ZodObject<{
390
+ from: z.ZodLiteral<"node_output">;
391
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
392
+ port: z.ZodEffects<z.ZodString, string, string>;
393
+ }, "strict", z.ZodTypeAny, {
394
+ from: "node_output";
395
+ nodeKey: string;
396
+ port: string;
397
+ }, {
398
+ from: "node_output";
399
+ nodeKey: string;
400
+ port: string;
401
+ }>, z.ZodObject<{
402
+ from: z.ZodLiteral<"collection">;
403
+ items: z.ZodArray<z.ZodObject<{
404
+ from: z.ZodLiteral<"node_output">;
405
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
406
+ port: z.ZodEffects<z.ZodString, string, string>;
407
+ }, "strict", z.ZodTypeAny, {
408
+ from: "node_output";
409
+ nodeKey: string;
410
+ port: string;
411
+ }, {
412
+ from: "node_output";
413
+ nodeKey: string;
414
+ port: string;
415
+ }>, "many">;
416
+ }, "strict", z.ZodTypeAny, {
417
+ from: "collection";
418
+ items: {
419
+ from: "node_output";
420
+ nodeKey: string;
421
+ port: string;
422
+ }[];
423
+ }, {
424
+ from: "collection";
425
+ items: {
426
+ from: "node_output";
427
+ nodeKey: string;
428
+ port: string;
429
+ }[];
430
+ }>]>>>;
431
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
432
+ }, "strict", z.ZodTypeAny, {
433
+ key: string;
434
+ kind: "router";
435
+ stageKey: string;
436
+ policyRef: string;
437
+ outcomes: string[];
438
+ unmatched: "block";
439
+ label?: string | undefined;
440
+ inputBindings?: Record<string, {
441
+ from: "node_output";
442
+ nodeKey: string;
443
+ port: string;
444
+ } | {
445
+ from: "subject";
446
+ } | {
447
+ key: string;
448
+ from: "parameter";
449
+ } | {
450
+ from: "collection";
451
+ items: {
452
+ from: "node_output";
453
+ nodeKey: string;
454
+ port: string;
455
+ }[];
456
+ }> | undefined;
457
+ outputPorts?: Record<string, string> | undefined;
458
+ }, {
459
+ key: string;
460
+ kind: "router";
461
+ stageKey: string;
462
+ policyRef: string;
463
+ outcomes: string[];
464
+ unmatched: "block";
465
+ label?: string | undefined;
466
+ inputBindings?: Record<string, {
467
+ from: "node_output";
468
+ nodeKey: string;
469
+ port: string;
470
+ } | {
471
+ from: "subject";
472
+ } | {
473
+ key: string;
474
+ from: "parameter";
475
+ } | {
476
+ from: "collection";
477
+ items: {
478
+ from: "node_output";
479
+ nodeKey: string;
480
+ port: string;
481
+ }[];
482
+ }> | undefined;
483
+ outputPorts?: Record<string, string> | undefined;
484
+ }>, z.ZodObject<{
485
+ kind: z.ZodLiteral<"human_gate">;
486
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
487
+ policyRef: z.ZodString;
488
+ candidateRoleKey: z.ZodEffects<z.ZodString, string, string>;
489
+ outcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
490
+ outcomeLabels: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
491
+ key: z.ZodEffects<z.ZodString, string, string>;
492
+ label: z.ZodOptional<z.ZodString>;
493
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
494
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
495
+ from: z.ZodLiteral<"subject">;
496
+ }, "strict", z.ZodTypeAny, {
497
+ from: "subject";
498
+ }, {
499
+ from: "subject";
500
+ }>, z.ZodObject<{
501
+ from: z.ZodLiteral<"parameter">;
502
+ key: z.ZodEffects<z.ZodString, string, string>;
503
+ }, "strict", z.ZodTypeAny, {
504
+ key: string;
505
+ from: "parameter";
506
+ }, {
507
+ key: string;
508
+ from: "parameter";
509
+ }>, z.ZodObject<{
510
+ from: z.ZodLiteral<"node_output">;
511
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
512
+ port: z.ZodEffects<z.ZodString, string, string>;
513
+ }, "strict", z.ZodTypeAny, {
514
+ from: "node_output";
515
+ nodeKey: string;
516
+ port: string;
517
+ }, {
518
+ from: "node_output";
519
+ nodeKey: string;
520
+ port: string;
521
+ }>, z.ZodObject<{
522
+ from: z.ZodLiteral<"collection">;
523
+ items: z.ZodArray<z.ZodObject<{
524
+ from: z.ZodLiteral<"node_output">;
525
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
526
+ port: z.ZodEffects<z.ZodString, string, string>;
527
+ }, "strict", z.ZodTypeAny, {
528
+ from: "node_output";
529
+ nodeKey: string;
530
+ port: string;
531
+ }, {
532
+ from: "node_output";
533
+ nodeKey: string;
534
+ port: string;
535
+ }>, "many">;
536
+ }, "strict", z.ZodTypeAny, {
537
+ from: "collection";
538
+ items: {
539
+ from: "node_output";
540
+ nodeKey: string;
541
+ port: string;
542
+ }[];
543
+ }, {
544
+ from: "collection";
545
+ items: {
546
+ from: "node_output";
547
+ nodeKey: string;
548
+ port: string;
549
+ }[];
550
+ }>]>>>;
551
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
552
+ }, "strict", z.ZodTypeAny, {
553
+ key: string;
554
+ kind: "human_gate";
555
+ laneKey: string;
556
+ stageKey: string;
557
+ policyRef: string;
558
+ outcomes: string[];
559
+ candidateRoleKey: string;
560
+ label?: string | undefined;
561
+ inputBindings?: Record<string, {
562
+ from: "node_output";
563
+ nodeKey: string;
564
+ port: string;
565
+ } | {
566
+ from: "subject";
567
+ } | {
568
+ key: string;
569
+ from: "parameter";
570
+ } | {
571
+ from: "collection";
572
+ items: {
573
+ from: "node_output";
574
+ nodeKey: string;
575
+ port: string;
576
+ }[];
577
+ }> | undefined;
578
+ outputPorts?: Record<string, string> | undefined;
579
+ outcomeLabels?: Record<string, string> | undefined;
580
+ }, {
581
+ key: string;
582
+ kind: "human_gate";
583
+ laneKey: string;
584
+ stageKey: string;
585
+ policyRef: string;
586
+ outcomes: string[];
587
+ candidateRoleKey: string;
588
+ label?: string | undefined;
589
+ inputBindings?: Record<string, {
590
+ from: "node_output";
591
+ nodeKey: string;
592
+ port: string;
593
+ } | {
594
+ from: "subject";
595
+ } | {
596
+ key: string;
597
+ from: "parameter";
598
+ } | {
599
+ from: "collection";
600
+ items: {
601
+ from: "node_output";
602
+ nodeKey: string;
603
+ port: string;
604
+ }[];
605
+ }> | undefined;
606
+ outputPorts?: Record<string, string> | undefined;
607
+ outcomeLabels?: Record<string, string> | undefined;
608
+ }>, z.ZodObject<{
609
+ kind: z.ZodLiteral<"external_wait">;
610
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
611
+ subscriptionRef: z.ZodString;
612
+ key: z.ZodEffects<z.ZodString, string, string>;
613
+ label: z.ZodOptional<z.ZodString>;
614
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
615
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
616
+ from: z.ZodLiteral<"subject">;
617
+ }, "strict", z.ZodTypeAny, {
618
+ from: "subject";
619
+ }, {
620
+ from: "subject";
621
+ }>, z.ZodObject<{
622
+ from: z.ZodLiteral<"parameter">;
623
+ key: z.ZodEffects<z.ZodString, string, string>;
624
+ }, "strict", z.ZodTypeAny, {
625
+ key: string;
626
+ from: "parameter";
627
+ }, {
628
+ key: string;
629
+ from: "parameter";
630
+ }>, z.ZodObject<{
631
+ from: z.ZodLiteral<"node_output">;
632
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
633
+ port: z.ZodEffects<z.ZodString, string, string>;
634
+ }, "strict", z.ZodTypeAny, {
635
+ from: "node_output";
636
+ nodeKey: string;
637
+ port: string;
638
+ }, {
639
+ from: "node_output";
640
+ nodeKey: string;
641
+ port: string;
642
+ }>, z.ZodObject<{
643
+ from: z.ZodLiteral<"collection">;
644
+ items: z.ZodArray<z.ZodObject<{
645
+ from: z.ZodLiteral<"node_output">;
646
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
647
+ port: z.ZodEffects<z.ZodString, string, string>;
648
+ }, "strict", z.ZodTypeAny, {
649
+ from: "node_output";
650
+ nodeKey: string;
651
+ port: string;
652
+ }, {
653
+ from: "node_output";
654
+ nodeKey: string;
655
+ port: string;
656
+ }>, "many">;
657
+ }, "strict", z.ZodTypeAny, {
658
+ from: "collection";
659
+ items: {
660
+ from: "node_output";
661
+ nodeKey: string;
662
+ port: string;
663
+ }[];
664
+ }, {
665
+ from: "collection";
666
+ items: {
667
+ from: "node_output";
668
+ nodeKey: string;
669
+ port: string;
670
+ }[];
671
+ }>]>>>;
672
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
673
+ }, "strict", z.ZodTypeAny, {
674
+ key: string;
675
+ kind: "external_wait";
676
+ laneKey: string;
677
+ stageKey: string;
678
+ subscriptionRef: string;
679
+ label?: string | undefined;
680
+ inputBindings?: Record<string, {
681
+ from: "node_output";
682
+ nodeKey: string;
683
+ port: string;
684
+ } | {
685
+ from: "subject";
686
+ } | {
687
+ key: string;
688
+ from: "parameter";
689
+ } | {
690
+ from: "collection";
691
+ items: {
692
+ from: "node_output";
693
+ nodeKey: string;
694
+ port: string;
695
+ }[];
696
+ }> | undefined;
697
+ outputPorts?: Record<string, string> | undefined;
698
+ }, {
699
+ key: string;
700
+ kind: "external_wait";
701
+ laneKey: string;
702
+ stageKey: string;
703
+ subscriptionRef: string;
704
+ label?: string | undefined;
705
+ inputBindings?: Record<string, {
706
+ from: "node_output";
707
+ nodeKey: string;
708
+ port: string;
709
+ } | {
710
+ from: "subject";
711
+ } | {
712
+ key: string;
713
+ from: "parameter";
714
+ } | {
715
+ from: "collection";
716
+ items: {
717
+ from: "node_output";
718
+ nodeKey: string;
719
+ port: string;
720
+ }[];
721
+ }> | undefined;
722
+ outputPorts?: Record<string, string> | undefined;
723
+ }>, z.ZodObject<{
724
+ kind: z.ZodLiteral<"terminal">;
725
+ outcome: z.ZodEffects<z.ZodString, string, string>;
726
+ disposition: z.ZodOptional<z.ZodEnum<["complete", "await_new_subject"]>>;
727
+ key: z.ZodEffects<z.ZodString, string, string>;
728
+ label: z.ZodOptional<z.ZodString>;
729
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
730
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
731
+ from: z.ZodLiteral<"subject">;
732
+ }, "strict", z.ZodTypeAny, {
733
+ from: "subject";
734
+ }, {
735
+ from: "subject";
736
+ }>, z.ZodObject<{
737
+ from: z.ZodLiteral<"parameter">;
738
+ key: z.ZodEffects<z.ZodString, string, string>;
739
+ }, "strict", z.ZodTypeAny, {
740
+ key: string;
741
+ from: "parameter";
742
+ }, {
743
+ key: string;
744
+ from: "parameter";
745
+ }>, z.ZodObject<{
746
+ from: z.ZodLiteral<"node_output">;
747
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
748
+ port: z.ZodEffects<z.ZodString, string, string>;
749
+ }, "strict", z.ZodTypeAny, {
750
+ from: "node_output";
751
+ nodeKey: string;
752
+ port: string;
753
+ }, {
754
+ from: "node_output";
755
+ nodeKey: string;
756
+ port: string;
757
+ }>, z.ZodObject<{
758
+ from: z.ZodLiteral<"collection">;
759
+ items: z.ZodArray<z.ZodObject<{
760
+ from: z.ZodLiteral<"node_output">;
761
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
762
+ port: z.ZodEffects<z.ZodString, string, string>;
763
+ }, "strict", z.ZodTypeAny, {
764
+ from: "node_output";
765
+ nodeKey: string;
766
+ port: string;
767
+ }, {
768
+ from: "node_output";
769
+ nodeKey: string;
770
+ port: string;
771
+ }>, "many">;
772
+ }, "strict", z.ZodTypeAny, {
773
+ from: "collection";
774
+ items: {
775
+ from: "node_output";
776
+ nodeKey: string;
777
+ port: string;
778
+ }[];
779
+ }, {
780
+ from: "collection";
781
+ items: {
782
+ from: "node_output";
783
+ nodeKey: string;
784
+ port: string;
785
+ }[];
786
+ }>]>>>;
787
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
788
+ }, "strict", z.ZodTypeAny, {
789
+ key: string;
790
+ outcome: string;
791
+ kind: "terminal";
792
+ stageKey: string;
793
+ label?: string | undefined;
794
+ inputBindings?: Record<string, {
795
+ from: "node_output";
796
+ nodeKey: string;
797
+ port: string;
798
+ } | {
799
+ from: "subject";
800
+ } | {
801
+ key: string;
802
+ from: "parameter";
803
+ } | {
804
+ from: "collection";
805
+ items: {
806
+ from: "node_output";
807
+ nodeKey: string;
808
+ port: string;
809
+ }[];
810
+ }> | undefined;
811
+ outputPorts?: Record<string, string> | undefined;
812
+ disposition?: "complete" | "await_new_subject" | undefined;
813
+ }, {
814
+ key: string;
815
+ outcome: string;
816
+ kind: "terminal";
817
+ stageKey: string;
818
+ label?: string | undefined;
819
+ inputBindings?: Record<string, {
820
+ from: "node_output";
821
+ nodeKey: string;
822
+ port: string;
823
+ } | {
824
+ from: "subject";
825
+ } | {
826
+ key: string;
827
+ from: "parameter";
828
+ } | {
829
+ from: "collection";
830
+ items: {
831
+ from: "node_output";
832
+ nodeKey: string;
833
+ port: string;
834
+ }[];
835
+ }> | undefined;
836
+ outputPorts?: Record<string, string> | undefined;
837
+ disposition?: "complete" | "await_new_subject" | undefined;
838
+ }>]>;
839
+ export type ProjectPipelineNodeDefinition = z.output<typeof projectPipelineNodeSchema>;