@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,934 @@
1
+ import { z } from 'zod/v3';
2
+ export declare const projectPipelineProjectBindingSchema: z.ZodObject<{
3
+ definition: z.ZodObject<{
4
+ templateRef: z.ZodString;
5
+ digest: z.ZodString;
6
+ }, "strict", z.ZodTypeAny, {
7
+ templateRef: string;
8
+ digest: string;
9
+ }, {
10
+ templateRef: string;
11
+ digest: string;
12
+ }>;
13
+ revision: z.ZodNumber;
14
+ configuration: z.ZodObject<{
15
+ templateRef: z.ZodString;
16
+ roleBindings: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
17
+ kind: z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>;
18
+ selectionKey: z.ZodEffects<z.ZodString, string, string>;
19
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
20
+ }, "strict", z.ZodTypeAny, {
21
+ kind: "assistant" | "runtime_binding" | "human" | "service";
22
+ selectionKey: string;
23
+ requiredCapabilities?: string[] | undefined;
24
+ }, {
25
+ kind: "assistant" | "runtime_binding" | "human" | "service";
26
+ selectionKey: string;
27
+ requiredCapabilities?: string[] | undefined;
28
+ }>>;
29
+ executorBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodObject<{
30
+ kind: z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>;
31
+ selectionKey: z.ZodEffects<z.ZodString, string, string>;
32
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
33
+ } & {
34
+ roleKey: z.ZodEffects<z.ZodString, string, string>;
35
+ workspaceId: z.ZodOptional<z.ZodString>;
36
+ }, "strict", z.ZodTypeAny, {
37
+ roleKey: string;
38
+ kind: "assistant" | "runtime_binding" | "human" | "service";
39
+ selectionKey: string;
40
+ requiredCapabilities?: string[] | undefined;
41
+ workspaceId?: string | undefined;
42
+ }, {
43
+ roleKey: string;
44
+ kind: "assistant" | "runtime_binding" | "human" | "service";
45
+ selectionKey: string;
46
+ requiredCapabilities?: string[] | undefined;
47
+ workspaceId?: string | undefined;
48
+ }>, {
49
+ roleKey: string;
50
+ kind: "assistant" | "runtime_binding" | "human" | "service";
51
+ selectionKey: string;
52
+ requiredCapabilities?: string[] | undefined;
53
+ workspaceId?: string | undefined;
54
+ }, {
55
+ roleKey: string;
56
+ kind: "assistant" | "runtime_binding" | "human" | "service";
57
+ selectionKey: string;
58
+ requiredCapabilities?: string[] | undefined;
59
+ workspaceId?: string | undefined;
60
+ }>>>;
61
+ providerConfiguration: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodType<import("./primitives.schema").ProjectPipelineJsonValue, z.ZodTypeDef, import("./primitives.schema").ProjectPipelineJsonValue>>>;
62
+ parameters: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodType<import("./primitives.schema").ProjectPipelineJsonValue, z.ZodTypeDef, import("./primitives.schema").ProjectPipelineJsonValue>>;
63
+ limits: z.ZodOptional<z.ZodObject<{
64
+ maxConcurrentExecutions: z.ZodNumber;
65
+ maxTechnicalAttemptsPerNode: z.ZodNumber;
66
+ runTimeoutMinutes: z.ZodNumber;
67
+ nativeModelBudget: z.ZodOptional<z.ZodEffects<z.ZodObject<{
68
+ maxCalls: z.ZodNumber;
69
+ maxTokens: z.ZodNumber;
70
+ reservationTokens: z.ZodNumber;
71
+ }, "strict", z.ZodTypeAny, {
72
+ maxCalls: number;
73
+ maxTokens: number;
74
+ reservationTokens: number;
75
+ }, {
76
+ maxCalls: number;
77
+ maxTokens: number;
78
+ reservationTokens: number;
79
+ }>, {
80
+ maxCalls: number;
81
+ maxTokens: number;
82
+ reservationTokens: number;
83
+ }, {
84
+ maxCalls: number;
85
+ maxTokens: number;
86
+ reservationTokens: number;
87
+ }>>;
88
+ }, "strict", z.ZodTypeAny, {
89
+ maxConcurrentExecutions: number;
90
+ maxTechnicalAttemptsPerNode: number;
91
+ runTimeoutMinutes: number;
92
+ nativeModelBudget?: {
93
+ maxCalls: number;
94
+ maxTokens: number;
95
+ reservationTokens: number;
96
+ } | undefined;
97
+ }, {
98
+ maxConcurrentExecutions: number;
99
+ maxTechnicalAttemptsPerNode: number;
100
+ runTimeoutMinutes: number;
101
+ nativeModelBudget?: {
102
+ maxCalls: number;
103
+ maxTokens: number;
104
+ reservationTokens: number;
105
+ } | undefined;
106
+ }>>;
107
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
108
+ adapterRef: z.ZodString;
109
+ events: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
110
+ }, "strict", z.ZodTypeAny, {
111
+ adapterRef: string;
112
+ events: string[];
113
+ }, {
114
+ adapterRef: string;
115
+ events: string[];
116
+ }>, "many">>;
117
+ }, "strict", z.ZodTypeAny, {
118
+ templateRef: string;
119
+ roleBindings: Record<string, {
120
+ kind: "assistant" | "runtime_binding" | "human" | "service";
121
+ selectionKey: string;
122
+ requiredCapabilities?: string[] | undefined;
123
+ }>;
124
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
125
+ executorBindings?: Record<string, {
126
+ roleKey: string;
127
+ kind: "assistant" | "runtime_binding" | "human" | "service";
128
+ selectionKey: string;
129
+ requiredCapabilities?: string[] | undefined;
130
+ workspaceId?: string | undefined;
131
+ }> | undefined;
132
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
133
+ limits?: {
134
+ maxConcurrentExecutions: number;
135
+ maxTechnicalAttemptsPerNode: number;
136
+ runTimeoutMinutes: number;
137
+ nativeModelBudget?: {
138
+ maxCalls: number;
139
+ maxTokens: number;
140
+ reservationTokens: number;
141
+ } | undefined;
142
+ } | undefined;
143
+ triggers?: {
144
+ adapterRef: string;
145
+ events: string[];
146
+ }[] | undefined;
147
+ }, {
148
+ templateRef: string;
149
+ roleBindings: Record<string, {
150
+ kind: "assistant" | "runtime_binding" | "human" | "service";
151
+ selectionKey: string;
152
+ requiredCapabilities?: string[] | undefined;
153
+ }>;
154
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
155
+ executorBindings?: Record<string, {
156
+ roleKey: string;
157
+ kind: "assistant" | "runtime_binding" | "human" | "service";
158
+ selectionKey: string;
159
+ requiredCapabilities?: string[] | undefined;
160
+ workspaceId?: string | undefined;
161
+ }> | undefined;
162
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
163
+ limits?: {
164
+ maxConcurrentExecutions: number;
165
+ maxTechnicalAttemptsPerNode: number;
166
+ runTimeoutMinutes: number;
167
+ nativeModelBudget?: {
168
+ maxCalls: number;
169
+ maxTokens: number;
170
+ reservationTokens: number;
171
+ } | undefined;
172
+ } | undefined;
173
+ triggers?: {
174
+ adapterRef: string;
175
+ events: string[];
176
+ }[] | undefined;
177
+ }>;
178
+ id: z.ZodString;
179
+ tenantId: z.ZodString;
180
+ organizationId: z.ZodNullable<z.ZodString>;
181
+ projectId: z.ZodString;
182
+ }, "strict", z.ZodTypeAny, {
183
+ definition: {
184
+ templateRef: string;
185
+ digest: string;
186
+ };
187
+ revision: number;
188
+ configuration: {
189
+ templateRef: string;
190
+ roleBindings: Record<string, {
191
+ kind: "assistant" | "runtime_binding" | "human" | "service";
192
+ selectionKey: string;
193
+ requiredCapabilities?: string[] | undefined;
194
+ }>;
195
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
196
+ executorBindings?: Record<string, {
197
+ roleKey: string;
198
+ kind: "assistant" | "runtime_binding" | "human" | "service";
199
+ selectionKey: string;
200
+ requiredCapabilities?: string[] | undefined;
201
+ workspaceId?: string | undefined;
202
+ }> | undefined;
203
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
204
+ limits?: {
205
+ maxConcurrentExecutions: number;
206
+ maxTechnicalAttemptsPerNode: number;
207
+ runTimeoutMinutes: number;
208
+ nativeModelBudget?: {
209
+ maxCalls: number;
210
+ maxTokens: number;
211
+ reservationTokens: number;
212
+ } | undefined;
213
+ } | undefined;
214
+ triggers?: {
215
+ adapterRef: string;
216
+ events: string[];
217
+ }[] | undefined;
218
+ };
219
+ id: string;
220
+ tenantId: string;
221
+ organizationId: string | null;
222
+ projectId: string;
223
+ }, {
224
+ definition: {
225
+ templateRef: string;
226
+ digest: string;
227
+ };
228
+ revision: number;
229
+ configuration: {
230
+ templateRef: string;
231
+ roleBindings: Record<string, {
232
+ kind: "assistant" | "runtime_binding" | "human" | "service";
233
+ selectionKey: string;
234
+ requiredCapabilities?: string[] | undefined;
235
+ }>;
236
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
237
+ executorBindings?: Record<string, {
238
+ roleKey: string;
239
+ kind: "assistant" | "runtime_binding" | "human" | "service";
240
+ selectionKey: string;
241
+ requiredCapabilities?: string[] | undefined;
242
+ workspaceId?: string | undefined;
243
+ }> | undefined;
244
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
245
+ limits?: {
246
+ maxConcurrentExecutions: number;
247
+ maxTechnicalAttemptsPerNode: number;
248
+ runTimeoutMinutes: number;
249
+ nativeModelBudget?: {
250
+ maxCalls: number;
251
+ maxTokens: number;
252
+ reservationTokens: number;
253
+ } | undefined;
254
+ } | undefined;
255
+ triggers?: {
256
+ adapterRef: string;
257
+ events: string[];
258
+ }[] | undefined;
259
+ };
260
+ id: string;
261
+ tenantId: string;
262
+ organizationId: string | null;
263
+ projectId: string;
264
+ }>;
265
+ export declare const projectPipelineInstanceSchema: z.ZodDiscriminatedUnion<"executionAuthority", [z.ZodObject<{
266
+ executionAuthority: z.ZodLiteral<"provider">;
267
+ providerRef: z.ZodString;
268
+ sourceKey: z.ZodString;
269
+ definition: z.ZodObject<{
270
+ templateRef: z.ZodString;
271
+ digest: z.ZodString;
272
+ }, "strict", z.ZodTypeAny, {
273
+ templateRef: string;
274
+ digest: string;
275
+ }, {
276
+ templateRef: string;
277
+ digest: string;
278
+ }>;
279
+ subject: z.ZodObject<{
280
+ resolverRef: z.ZodString;
281
+ objectKey: z.ZodString;
282
+ }, "strict", z.ZodTypeAny, {
283
+ resolverRef: string;
284
+ objectKey: string;
285
+ }, {
286
+ resolverRef: string;
287
+ objectKey: string;
288
+ }>;
289
+ revision: z.ZodNumber;
290
+ id: z.ZodString;
291
+ tenantId: z.ZodString;
292
+ organizationId: z.ZodNullable<z.ZodString>;
293
+ projectId: z.ZodString;
294
+ }, "strict", z.ZodTypeAny, {
295
+ subject: {
296
+ resolverRef: string;
297
+ objectKey: string;
298
+ };
299
+ executionAuthority: "provider";
300
+ providerRef: string;
301
+ definition: {
302
+ templateRef: string;
303
+ digest: string;
304
+ };
305
+ revision: number;
306
+ id: string;
307
+ tenantId: string;
308
+ organizationId: string | null;
309
+ projectId: string;
310
+ sourceKey: string;
311
+ }, {
312
+ subject: {
313
+ resolverRef: string;
314
+ objectKey: string;
315
+ };
316
+ executionAuthority: "provider";
317
+ providerRef: string;
318
+ definition: {
319
+ templateRef: string;
320
+ digest: string;
321
+ };
322
+ revision: number;
323
+ id: string;
324
+ tenantId: string;
325
+ organizationId: string | null;
326
+ projectId: string;
327
+ sourceKey: string;
328
+ }>, z.ZodObject<{
329
+ executionAuthority: z.ZodLiteral<"platform">;
330
+ bindingId: z.ZodString;
331
+ sourceKey: z.ZodString;
332
+ definition: z.ZodObject<{
333
+ templateRef: z.ZodString;
334
+ digest: z.ZodString;
335
+ }, "strict", z.ZodTypeAny, {
336
+ templateRef: string;
337
+ digest: string;
338
+ }, {
339
+ templateRef: string;
340
+ digest: string;
341
+ }>;
342
+ subject: z.ZodObject<{
343
+ resolverRef: z.ZodString;
344
+ objectKey: z.ZodString;
345
+ }, "strict", z.ZodTypeAny, {
346
+ resolverRef: string;
347
+ objectKey: string;
348
+ }, {
349
+ resolverRef: string;
350
+ objectKey: string;
351
+ }>;
352
+ revision: z.ZodNumber;
353
+ id: z.ZodString;
354
+ tenantId: z.ZodString;
355
+ organizationId: z.ZodNullable<z.ZodString>;
356
+ projectId: z.ZodString;
357
+ }, "strict", z.ZodTypeAny, {
358
+ subject: {
359
+ resolverRef: string;
360
+ objectKey: string;
361
+ };
362
+ executionAuthority: "platform";
363
+ definition: {
364
+ templateRef: string;
365
+ digest: string;
366
+ };
367
+ revision: number;
368
+ id: string;
369
+ tenantId: string;
370
+ organizationId: string | null;
371
+ projectId: string;
372
+ sourceKey: string;
373
+ bindingId: string;
374
+ }, {
375
+ subject: {
376
+ resolverRef: string;
377
+ objectKey: string;
378
+ };
379
+ executionAuthority: "platform";
380
+ definition: {
381
+ templateRef: string;
382
+ digest: string;
383
+ };
384
+ revision: number;
385
+ id: string;
386
+ tenantId: string;
387
+ organizationId: string | null;
388
+ projectId: string;
389
+ sourceKey: string;
390
+ bindingId: string;
391
+ }>]>;
392
+ export declare const projectPipelineRunSchema: z.ZodObject<{
393
+ instanceId: z.ZodString;
394
+ triggerKey: z.ZodString;
395
+ definition: z.ZodObject<{
396
+ templateRef: z.ZodString;
397
+ digest: z.ZodString;
398
+ }, "strict", z.ZodTypeAny, {
399
+ templateRef: string;
400
+ digest: string;
401
+ }, {
402
+ templateRef: string;
403
+ digest: string;
404
+ }>;
405
+ bindingSnapshot: z.ZodObject<{
406
+ templateRef: z.ZodString;
407
+ roleBindings: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
408
+ kind: z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>;
409
+ selectionKey: z.ZodEffects<z.ZodString, string, string>;
410
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
411
+ }, "strict", z.ZodTypeAny, {
412
+ kind: "assistant" | "runtime_binding" | "human" | "service";
413
+ selectionKey: string;
414
+ requiredCapabilities?: string[] | undefined;
415
+ }, {
416
+ kind: "assistant" | "runtime_binding" | "human" | "service";
417
+ selectionKey: string;
418
+ requiredCapabilities?: string[] | undefined;
419
+ }>>;
420
+ executorBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodObject<{
421
+ kind: z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>;
422
+ selectionKey: z.ZodEffects<z.ZodString, string, string>;
423
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
424
+ } & {
425
+ roleKey: z.ZodEffects<z.ZodString, string, string>;
426
+ workspaceId: z.ZodOptional<z.ZodString>;
427
+ }, "strict", z.ZodTypeAny, {
428
+ roleKey: string;
429
+ kind: "assistant" | "runtime_binding" | "human" | "service";
430
+ selectionKey: string;
431
+ requiredCapabilities?: string[] | undefined;
432
+ workspaceId?: string | undefined;
433
+ }, {
434
+ roleKey: string;
435
+ kind: "assistant" | "runtime_binding" | "human" | "service";
436
+ selectionKey: string;
437
+ requiredCapabilities?: string[] | undefined;
438
+ workspaceId?: string | undefined;
439
+ }>, {
440
+ roleKey: string;
441
+ kind: "assistant" | "runtime_binding" | "human" | "service";
442
+ selectionKey: string;
443
+ requiredCapabilities?: string[] | undefined;
444
+ workspaceId?: string | undefined;
445
+ }, {
446
+ roleKey: string;
447
+ kind: "assistant" | "runtime_binding" | "human" | "service";
448
+ selectionKey: string;
449
+ requiredCapabilities?: string[] | undefined;
450
+ workspaceId?: string | undefined;
451
+ }>>>;
452
+ providerConfiguration: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodType<import("./primitives.schema").ProjectPipelineJsonValue, z.ZodTypeDef, import("./primitives.schema").ProjectPipelineJsonValue>>>;
453
+ parameters: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodType<import("./primitives.schema").ProjectPipelineJsonValue, z.ZodTypeDef, import("./primitives.schema").ProjectPipelineJsonValue>>;
454
+ limits: z.ZodOptional<z.ZodObject<{
455
+ maxConcurrentExecutions: z.ZodNumber;
456
+ maxTechnicalAttemptsPerNode: z.ZodNumber;
457
+ runTimeoutMinutes: z.ZodNumber;
458
+ nativeModelBudget: z.ZodOptional<z.ZodEffects<z.ZodObject<{
459
+ maxCalls: z.ZodNumber;
460
+ maxTokens: z.ZodNumber;
461
+ reservationTokens: z.ZodNumber;
462
+ }, "strict", z.ZodTypeAny, {
463
+ maxCalls: number;
464
+ maxTokens: number;
465
+ reservationTokens: number;
466
+ }, {
467
+ maxCalls: number;
468
+ maxTokens: number;
469
+ reservationTokens: number;
470
+ }>, {
471
+ maxCalls: number;
472
+ maxTokens: number;
473
+ reservationTokens: number;
474
+ }, {
475
+ maxCalls: number;
476
+ maxTokens: number;
477
+ reservationTokens: number;
478
+ }>>;
479
+ }, "strict", z.ZodTypeAny, {
480
+ maxConcurrentExecutions: number;
481
+ maxTechnicalAttemptsPerNode: number;
482
+ runTimeoutMinutes: number;
483
+ nativeModelBudget?: {
484
+ maxCalls: number;
485
+ maxTokens: number;
486
+ reservationTokens: number;
487
+ } | undefined;
488
+ }, {
489
+ maxConcurrentExecutions: number;
490
+ maxTechnicalAttemptsPerNode: number;
491
+ runTimeoutMinutes: number;
492
+ nativeModelBudget?: {
493
+ maxCalls: number;
494
+ maxTokens: number;
495
+ reservationTokens: number;
496
+ } | undefined;
497
+ }>>;
498
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
499
+ adapterRef: z.ZodString;
500
+ events: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
501
+ }, "strict", z.ZodTypeAny, {
502
+ adapterRef: string;
503
+ events: string[];
504
+ }, {
505
+ adapterRef: string;
506
+ events: string[];
507
+ }>, "many">>;
508
+ }, "strict", z.ZodTypeAny, {
509
+ templateRef: string;
510
+ roleBindings: Record<string, {
511
+ kind: "assistant" | "runtime_binding" | "human" | "service";
512
+ selectionKey: string;
513
+ requiredCapabilities?: string[] | undefined;
514
+ }>;
515
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
516
+ executorBindings?: Record<string, {
517
+ roleKey: string;
518
+ kind: "assistant" | "runtime_binding" | "human" | "service";
519
+ selectionKey: string;
520
+ requiredCapabilities?: string[] | undefined;
521
+ workspaceId?: string | undefined;
522
+ }> | undefined;
523
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
524
+ limits?: {
525
+ maxConcurrentExecutions: number;
526
+ maxTechnicalAttemptsPerNode: number;
527
+ runTimeoutMinutes: number;
528
+ nativeModelBudget?: {
529
+ maxCalls: number;
530
+ maxTokens: number;
531
+ reservationTokens: number;
532
+ } | undefined;
533
+ } | undefined;
534
+ triggers?: {
535
+ adapterRef: string;
536
+ events: string[];
537
+ }[] | undefined;
538
+ }, {
539
+ templateRef: string;
540
+ roleBindings: Record<string, {
541
+ kind: "assistant" | "runtime_binding" | "human" | "service";
542
+ selectionKey: string;
543
+ requiredCapabilities?: string[] | undefined;
544
+ }>;
545
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
546
+ executorBindings?: Record<string, {
547
+ roleKey: string;
548
+ kind: "assistant" | "runtime_binding" | "human" | "service";
549
+ selectionKey: string;
550
+ requiredCapabilities?: string[] | undefined;
551
+ workspaceId?: string | undefined;
552
+ }> | undefined;
553
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
554
+ limits?: {
555
+ maxConcurrentExecutions: number;
556
+ maxTechnicalAttemptsPerNode: number;
557
+ runTimeoutMinutes: number;
558
+ nativeModelBudget?: {
559
+ maxCalls: number;
560
+ maxTokens: number;
561
+ reservationTokens: number;
562
+ } | undefined;
563
+ } | undefined;
564
+ triggers?: {
565
+ adapterRef: string;
566
+ events: string[];
567
+ }[] | undefined;
568
+ }>;
569
+ state: z.ZodEnum<["pending", "active", "waiting", "cancelling", "completed", "failed", "cancelled", "superseded"]>;
570
+ revision: z.ZodNumber;
571
+ startedAt: z.ZodNullable<z.ZodString>;
572
+ completedAt: z.ZodNullable<z.ZodString>;
573
+ id: z.ZodString;
574
+ tenantId: z.ZodString;
575
+ organizationId: z.ZodNullable<z.ZodString>;
576
+ projectId: z.ZodString;
577
+ }, "strict", z.ZodTypeAny, {
578
+ definition: {
579
+ templateRef: string;
580
+ digest: string;
581
+ };
582
+ revision: number;
583
+ id: string;
584
+ tenantId: string;
585
+ organizationId: string | null;
586
+ projectId: string;
587
+ instanceId: string;
588
+ triggerKey: string;
589
+ bindingSnapshot: {
590
+ templateRef: string;
591
+ roleBindings: Record<string, {
592
+ kind: "assistant" | "runtime_binding" | "human" | "service";
593
+ selectionKey: string;
594
+ requiredCapabilities?: string[] | undefined;
595
+ }>;
596
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
597
+ executorBindings?: Record<string, {
598
+ roleKey: string;
599
+ kind: "assistant" | "runtime_binding" | "human" | "service";
600
+ selectionKey: string;
601
+ requiredCapabilities?: string[] | undefined;
602
+ workspaceId?: string | undefined;
603
+ }> | undefined;
604
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
605
+ limits?: {
606
+ maxConcurrentExecutions: number;
607
+ maxTechnicalAttemptsPerNode: number;
608
+ runTimeoutMinutes: number;
609
+ nativeModelBudget?: {
610
+ maxCalls: number;
611
+ maxTokens: number;
612
+ reservationTokens: number;
613
+ } | undefined;
614
+ } | undefined;
615
+ triggers?: {
616
+ adapterRef: string;
617
+ events: string[];
618
+ }[] | undefined;
619
+ };
620
+ state: "completed" | "waiting" | "failed" | "cancelled" | "pending" | "active" | "cancelling" | "superseded";
621
+ startedAt: string | null;
622
+ completedAt: string | null;
623
+ }, {
624
+ definition: {
625
+ templateRef: string;
626
+ digest: string;
627
+ };
628
+ revision: number;
629
+ id: string;
630
+ tenantId: string;
631
+ organizationId: string | null;
632
+ projectId: string;
633
+ instanceId: string;
634
+ triggerKey: string;
635
+ bindingSnapshot: {
636
+ templateRef: string;
637
+ roleBindings: Record<string, {
638
+ kind: "assistant" | "runtime_binding" | "human" | "service";
639
+ selectionKey: string;
640
+ requiredCapabilities?: string[] | undefined;
641
+ }>;
642
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
643
+ executorBindings?: Record<string, {
644
+ roleKey: string;
645
+ kind: "assistant" | "runtime_binding" | "human" | "service";
646
+ selectionKey: string;
647
+ requiredCapabilities?: string[] | undefined;
648
+ workspaceId?: string | undefined;
649
+ }> | undefined;
650
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
651
+ limits?: {
652
+ maxConcurrentExecutions: number;
653
+ maxTechnicalAttemptsPerNode: number;
654
+ runTimeoutMinutes: number;
655
+ nativeModelBudget?: {
656
+ maxCalls: number;
657
+ maxTokens: number;
658
+ reservationTokens: number;
659
+ } | undefined;
660
+ } | undefined;
661
+ triggers?: {
662
+ adapterRef: string;
663
+ events: string[];
664
+ }[] | undefined;
665
+ };
666
+ state: "completed" | "waiting" | "failed" | "cancelled" | "pending" | "active" | "cancelling" | "superseded";
667
+ startedAt: string | null;
668
+ completedAt: string | null;
669
+ }>;
670
+ export declare const projectPipelineSubjectVersionSchema: z.ZodObject<{
671
+ resolverRef: z.ZodString;
672
+ objectKey: z.ZodString;
673
+ version: z.ZodString;
674
+ digest: z.ZodString;
675
+ }, "strict", z.ZodTypeAny, {
676
+ version: string;
677
+ resolverRef: string;
678
+ digest: string;
679
+ objectKey: string;
680
+ }, {
681
+ version: string;
682
+ resolverRef: string;
683
+ digest: string;
684
+ objectKey: string;
685
+ }>;
686
+ /** Scope and ownership are resolved by the host; possession of this reference grants no access. */
687
+ export declare const projectPipelineEvidenceRefSchema: z.ZodObject<{
688
+ resolverRef: z.ZodString;
689
+ objectKey: z.ZodString;
690
+ version: z.ZodString;
691
+ digest: z.ZodString;
692
+ } & {
693
+ schemaRef: z.ZodString;
694
+ producerOperationId: z.ZodOptional<z.ZodString>;
695
+ }, "strict", z.ZodTypeAny, {
696
+ version: string;
697
+ resolverRef: string;
698
+ digest: string;
699
+ objectKey: string;
700
+ schemaRef: string;
701
+ producerOperationId?: string | undefined;
702
+ }, {
703
+ version: string;
704
+ resolverRef: string;
705
+ digest: string;
706
+ objectKey: string;
707
+ schemaRef: string;
708
+ producerOperationId?: string | undefined;
709
+ }>;
710
+ export declare const projectPipelineNodeStateSchema: z.ZodObject<{
711
+ lifecycle: z.ZodEnum<["pending", "active", "completed", "failed", "cancelled"]>;
712
+ readiness: z.ZodEnum<["waiting", "ready", "blocked"]>;
713
+ applicability: z.ZodEnum<["undetermined", "selected", "excluded"]>;
714
+ freshness: z.ZodEnum<["current", "superseded"]>;
715
+ runtime: z.ZodEnum<["none", "queued", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled", "unknown"]>;
716
+ }, "strict", z.ZodTypeAny, {
717
+ lifecycle: "completed" | "failed" | "cancelled" | "pending" | "active";
718
+ readiness: "waiting" | "ready" | "blocked";
719
+ applicability: "undetermined" | "selected" | "excluded";
720
+ freshness: "superseded" | "current";
721
+ runtime: "unknown" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "cancelling" | "none";
722
+ }, {
723
+ lifecycle: "completed" | "failed" | "cancelled" | "pending" | "active";
724
+ readiness: "waiting" | "ready" | "blocked";
725
+ applicability: "undetermined" | "selected" | "excluded";
726
+ freshness: "superseded" | "current";
727
+ runtime: "unknown" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "cancelling" | "none";
728
+ }>;
729
+ export declare const projectPipelineWorkContextSchema: z.ZodObject<{
730
+ instanceId: z.ZodString;
731
+ runId: z.ZodString;
732
+ roundId: z.ZodString;
733
+ nodeInstanceId: z.ZodString;
734
+ operationId: z.ZodString;
735
+ inputDigest: z.ZodString;
736
+ generation: z.ZodNumber;
737
+ }, "strict", z.ZodTypeAny, {
738
+ operationId: string;
739
+ instanceId: string;
740
+ runId: string;
741
+ roundId: string;
742
+ nodeInstanceId: string;
743
+ inputDigest: string;
744
+ generation: number;
745
+ }, {
746
+ operationId: string;
747
+ instanceId: string;
748
+ runId: string;
749
+ roundId: string;
750
+ nodeInstanceId: string;
751
+ inputDigest: string;
752
+ generation: number;
753
+ }>;
754
+ export declare const projectPipelineRoundSchema: z.ZodObject<{
755
+ runId: z.ZodString;
756
+ sequence: z.ZodNumber;
757
+ generation: z.ZodNumber;
758
+ state: z.ZodEnum<["active", "completed", "awaiting_new_subject", "failed", "cancelled", "superseded"]>;
759
+ inputDigest: z.ZodString;
760
+ subjectVersionSet: z.ZodArray<z.ZodObject<{
761
+ resolverRef: z.ZodString;
762
+ objectKey: z.ZodString;
763
+ version: z.ZodString;
764
+ digest: z.ZodString;
765
+ }, "strict", z.ZodTypeAny, {
766
+ version: string;
767
+ resolverRef: string;
768
+ digest: string;
769
+ objectKey: string;
770
+ }, {
771
+ version: string;
772
+ resolverRef: string;
773
+ digest: string;
774
+ objectKey: string;
775
+ }>, "many">;
776
+ supersedes: z.ZodNullable<z.ZodString>;
777
+ id: z.ZodString;
778
+ tenantId: z.ZodString;
779
+ organizationId: z.ZodNullable<z.ZodString>;
780
+ projectId: z.ZodString;
781
+ }, "strict", z.ZodTypeAny, {
782
+ id: string;
783
+ tenantId: string;
784
+ organizationId: string | null;
785
+ projectId: string;
786
+ state: "completed" | "failed" | "cancelled" | "active" | "superseded" | "awaiting_new_subject";
787
+ runId: string;
788
+ inputDigest: string;
789
+ generation: number;
790
+ sequence: number;
791
+ subjectVersionSet: {
792
+ version: string;
793
+ resolverRef: string;
794
+ digest: string;
795
+ objectKey: string;
796
+ }[];
797
+ supersedes: string | null;
798
+ }, {
799
+ id: string;
800
+ tenantId: string;
801
+ organizationId: string | null;
802
+ projectId: string;
803
+ state: "completed" | "failed" | "cancelled" | "active" | "superseded" | "awaiting_new_subject";
804
+ runId: string;
805
+ inputDigest: string;
806
+ generation: number;
807
+ sequence: number;
808
+ subjectVersionSet: {
809
+ version: string;
810
+ resolverRef: string;
811
+ digest: string;
812
+ objectKey: string;
813
+ }[];
814
+ supersedes: string | null;
815
+ }>;
816
+ export declare const projectPipelineNodeInstanceSchema: z.ZodObject<{
817
+ roundId: z.ZodString;
818
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
819
+ /** Stable source identity; never a list index. */
820
+ expansionKey: z.ZodString;
821
+ laneKey: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
822
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
823
+ state: z.ZodObject<{
824
+ lifecycle: z.ZodEnum<["pending", "active", "completed", "failed", "cancelled"]>;
825
+ readiness: z.ZodEnum<["waiting", "ready", "blocked"]>;
826
+ applicability: z.ZodEnum<["undetermined", "selected", "excluded"]>;
827
+ freshness: z.ZodEnum<["current", "superseded"]>;
828
+ runtime: z.ZodEnum<["none", "queued", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled", "unknown"]>;
829
+ }, "strict", z.ZodTypeAny, {
830
+ lifecycle: "completed" | "failed" | "cancelled" | "pending" | "active";
831
+ readiness: "waiting" | "ready" | "blocked";
832
+ applicability: "undetermined" | "selected" | "excluded";
833
+ freshness: "superseded" | "current";
834
+ runtime: "unknown" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "cancelling" | "none";
835
+ }, {
836
+ lifecycle: "completed" | "failed" | "cancelled" | "pending" | "active";
837
+ readiness: "waiting" | "ready" | "blocked";
838
+ applicability: "undetermined" | "selected" | "excluded";
839
+ freshness: "superseded" | "current";
840
+ runtime: "unknown" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "cancelling" | "none";
841
+ }>;
842
+ taskIds: z.ZodArray<z.ZodString, "many">;
843
+ evidence: z.ZodArray<z.ZodObject<{
844
+ resolverRef: z.ZodString;
845
+ objectKey: z.ZodString;
846
+ version: z.ZodString;
847
+ digest: z.ZodString;
848
+ } & {
849
+ schemaRef: z.ZodString;
850
+ producerOperationId: z.ZodOptional<z.ZodString>;
851
+ }, "strict", z.ZodTypeAny, {
852
+ version: string;
853
+ resolverRef: string;
854
+ digest: string;
855
+ objectKey: string;
856
+ schemaRef: string;
857
+ producerOperationId?: string | undefined;
858
+ }, {
859
+ version: string;
860
+ resolverRef: string;
861
+ digest: string;
862
+ objectKey: string;
863
+ schemaRef: string;
864
+ producerOperationId?: string | undefined;
865
+ }>, "many">;
866
+ revision: z.ZodNumber;
867
+ id: z.ZodString;
868
+ tenantId: z.ZodString;
869
+ organizationId: z.ZodNullable<z.ZodString>;
870
+ projectId: z.ZodString;
871
+ }, "strict", z.ZodTypeAny, {
872
+ nodeKey: string;
873
+ laneKey: string | null;
874
+ stageKey: string;
875
+ revision: number;
876
+ id: string;
877
+ tenantId: string;
878
+ organizationId: string | null;
879
+ projectId: string;
880
+ state: {
881
+ lifecycle: "completed" | "failed" | "cancelled" | "pending" | "active";
882
+ readiness: "waiting" | "ready" | "blocked";
883
+ applicability: "undetermined" | "selected" | "excluded";
884
+ freshness: "superseded" | "current";
885
+ runtime: "unknown" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "cancelling" | "none";
886
+ };
887
+ roundId: string;
888
+ expansionKey: string;
889
+ taskIds: string[];
890
+ evidence: {
891
+ version: string;
892
+ resolverRef: string;
893
+ digest: string;
894
+ objectKey: string;
895
+ schemaRef: string;
896
+ producerOperationId?: string | undefined;
897
+ }[];
898
+ }, {
899
+ nodeKey: string;
900
+ laneKey: string | null;
901
+ stageKey: string;
902
+ revision: number;
903
+ id: string;
904
+ tenantId: string;
905
+ organizationId: string | null;
906
+ projectId: string;
907
+ state: {
908
+ lifecycle: "completed" | "failed" | "cancelled" | "pending" | "active";
909
+ readiness: "waiting" | "ready" | "blocked";
910
+ applicability: "undetermined" | "selected" | "excluded";
911
+ freshness: "superseded" | "current";
912
+ runtime: "unknown" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "cancelling" | "none";
913
+ };
914
+ roundId: string;
915
+ expansionKey: string;
916
+ taskIds: string[];
917
+ evidence: {
918
+ version: string;
919
+ resolverRef: string;
920
+ digest: string;
921
+ objectKey: string;
922
+ schemaRef: string;
923
+ producerOperationId?: string | undefined;
924
+ }[];
925
+ }>;
926
+ export type ProjectPipelineSubjectVersion = z.output<typeof projectPipelineSubjectVersionSchema>;
927
+ export type ProjectPipelineProjectBinding = z.output<typeof projectPipelineProjectBindingSchema>;
928
+ export type ProjectPipelineInstance = z.output<typeof projectPipelineInstanceSchema>;
929
+ export type ProjectPipelineRun = z.output<typeof projectPipelineRunSchema>;
930
+ export type ProjectPipelineEvidenceRef = z.output<typeof projectPipelineEvidenceRefSchema>;
931
+ export type ProjectPipelineNodeState = z.output<typeof projectPipelineNodeStateSchema>;
932
+ export type ProjectPipelineWorkContext = z.output<typeof projectPipelineWorkContextSchema>;
933
+ export type ProjectPipelineRound = z.output<typeof projectPipelineRoundSchema>;
934
+ export type ProjectPipelineNodeInstance = z.output<typeof projectPipelineNodeInstanceSchema>;