@treeseed/sdk 0.13.0-rc.55 → 0.13.0-rc.57

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 (37) hide show
  1. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +0 -2
  2. package/dist/agent-capacity/validation/activity-profile.js +18 -9
  3. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +558 -636
  4. package/dist/agent-capacity/validation/agent-definition-schema.js +8 -28
  5. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +11 -11
  6. package/dist/capacity-provider/capability-ontology.d.ts +1211 -0
  7. package/dist/capacity-provider/capability-ontology.js +200 -0
  8. package/dist/capacity-provider/contracts/governance.d.ts +37 -2
  9. package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
  10. package/dist/capacity-provider/core-capability-catalog.js +63 -0
  11. package/dist/capacity-provider/environment-catalog.d.ts +877 -0
  12. package/dist/capacity-provider/environment-catalog.js +116 -0
  13. package/dist/capacity-provider/index.d.ts +3 -0
  14. package/dist/capacity-provider/index.js +3 -0
  15. package/dist/capacity-provider/sandbox-contracts.d.ts +147 -26
  16. package/dist/capacity-provider/sandbox-contracts.js +16 -1
  17. package/dist/capacity-provider/validation.d.ts +2 -1
  18. package/dist/capacity-provider/validation.js +34 -1
  19. package/dist/content/validation/agent-operational-content-schemas.d.ts +16 -16
  20. package/dist/content/validation/auxiliary-content-schemas.d.ts +2 -2
  21. package/dist/content/validation/content-model-schemas.d.ts +1077 -1220
  22. package/dist/content/validation/portable-content-data.d.ts +104 -117
  23. package/dist/deployment/schemas.d.ts +169 -25
  24. package/dist/deployment/schemas.js +27 -1
  25. package/dist/operator-contracts/canonical-command-tree.js +17 -1
  26. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +164 -0
  27. package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
  28. package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
  29. package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
  30. package/dist/operator-contracts/catalog/inbox-operations.d.ts +3 -3
  31. package/dist/operator-contracts/control-plane-operations.d.ts +513 -345
  32. package/dist/operator-contracts/control-plane-operations.js +7 -10
  33. package/dist/operator-contracts/inbox/contracts.d.ts +16 -16
  34. package/dist/operator-contracts/index.d.ts +1 -0
  35. package/dist/operator-contracts/index.js +1 -0
  36. package/dist/types/agents/agent-activity-profile.d.ts +15 -33
  37. package/package.json +1 -1
@@ -0,0 +1,1211 @@
1
+ import { z } from 'zod';
2
+ export declare const capabilityReferenceSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ version: z.ZodString;
5
+ digest: z.ZodString;
6
+ }, "strict", z.ZodTypeAny, {
7
+ id: string;
8
+ digest: string;
9
+ version: string;
10
+ }, {
11
+ id: string;
12
+ digest: string;
13
+ version: string;
14
+ }>;
15
+ export declare const capabilityDefinitionSchema: z.ZodObject<{
16
+ schemaVersion: z.ZodLiteral<"treeseed.capability-definition/v1">;
17
+ id: z.ZodString;
18
+ version: z.ZodString;
19
+ digest: z.ZodString;
20
+ family: z.ZodEnum<["coordination", "research", "data", "engineering", "publishing", "external-work"]>;
21
+ title: z.ZodString;
22
+ description: z.ZodString;
23
+ status: z.ZodEnum<["active", "deprecated", "revoked"]>;
24
+ features: z.ZodArray<z.ZodString, "many">;
25
+ inputs: z.ZodArray<z.ZodObject<{
26
+ id: z.ZodString;
27
+ version: z.ZodString;
28
+ digest: z.ZodString;
29
+ mediaTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
30
+ }, "strict", z.ZodTypeAny, {
31
+ id: string;
32
+ digest: string;
33
+ version: string;
34
+ mediaTypes: string[];
35
+ }, {
36
+ id: string;
37
+ digest: string;
38
+ version: string;
39
+ mediaTypes?: string[] | undefined;
40
+ }>, "many">;
41
+ outputs: z.ZodArray<z.ZodObject<{
42
+ id: z.ZodString;
43
+ version: z.ZodString;
44
+ digest: z.ZodString;
45
+ mediaTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
46
+ }, "strict", z.ZodTypeAny, {
47
+ id: string;
48
+ digest: string;
49
+ version: string;
50
+ mediaTypes: string[];
51
+ }, {
52
+ id: string;
53
+ digest: string;
54
+ version: string;
55
+ mediaTypes?: string[] | undefined;
56
+ }>, "many">;
57
+ configuration: z.ZodArray<z.ZodObject<{
58
+ key: z.ZodString;
59
+ description: z.ZodString;
60
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
61
+ requirementSupport: z.ZodArray<z.ZodEnum<["required", "preferred"]>, "many">;
62
+ securityCritical: z.ZodDefault<z.ZodBoolean>;
63
+ }, "strict", z.ZodTypeAny, {
64
+ key: string;
65
+ description: string;
66
+ schema: Record<string, unknown>;
67
+ requirementSupport: ("required" | "preferred")[];
68
+ securityCritical: boolean;
69
+ }, {
70
+ key: string;
71
+ description: string;
72
+ schema: Record<string, unknown>;
73
+ requirementSupport: ("required" | "preferred")[];
74
+ securityCritical?: boolean | undefined;
75
+ }>, "many">;
76
+ permissionClasses: z.ZodArray<z.ZodString, "many">;
77
+ contextModes: z.ZodArray<z.ZodString, "many">;
78
+ interactionModes: z.ZodArray<z.ZodString, "many">;
79
+ implies: z.ZodArray<z.ZodObject<{
80
+ id: z.ZodString;
81
+ version: z.ZodString;
82
+ digest: z.ZodString;
83
+ }, "strict", z.ZodTypeAny, {
84
+ id: string;
85
+ digest: string;
86
+ version: string;
87
+ }, {
88
+ id: string;
89
+ digest: string;
90
+ version: string;
91
+ }>, "many">;
92
+ conflicts: z.ZodArray<z.ZodObject<{
93
+ id: z.ZodString;
94
+ version: z.ZodString;
95
+ digest: z.ZodString;
96
+ }, "strict", z.ZodTypeAny, {
97
+ id: string;
98
+ digest: string;
99
+ version: string;
100
+ }, {
101
+ id: string;
102
+ digest: string;
103
+ version: string;
104
+ }>, "many">;
105
+ qualificationTier: z.ZodEnum<["signed-attestation", "automated-suite", "reviewed-certification"]>;
106
+ createdAt: z.ZodString;
107
+ }, "strict", z.ZodTypeAny, {
108
+ schemaVersion: "treeseed.capability-definition/v1";
109
+ status: "active" | "deprecated" | "revoked";
110
+ createdAt: string;
111
+ id: string;
112
+ outputs: {
113
+ id: string;
114
+ digest: string;
115
+ version: string;
116
+ mediaTypes: string[];
117
+ }[];
118
+ digest: string;
119
+ version: string;
120
+ description: string;
121
+ configuration: {
122
+ key: string;
123
+ description: string;
124
+ schema: Record<string, unknown>;
125
+ requirementSupport: ("required" | "preferred")[];
126
+ securityCritical: boolean;
127
+ }[];
128
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
129
+ title: string;
130
+ features: string[];
131
+ inputs: {
132
+ id: string;
133
+ digest: string;
134
+ version: string;
135
+ mediaTypes: string[];
136
+ }[];
137
+ permissionClasses: string[];
138
+ contextModes: string[];
139
+ interactionModes: string[];
140
+ implies: {
141
+ id: string;
142
+ digest: string;
143
+ version: string;
144
+ }[];
145
+ conflicts: {
146
+ id: string;
147
+ digest: string;
148
+ version: string;
149
+ }[];
150
+ qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
151
+ }, {
152
+ schemaVersion: "treeseed.capability-definition/v1";
153
+ status: "active" | "deprecated" | "revoked";
154
+ createdAt: string;
155
+ id: string;
156
+ outputs: {
157
+ id: string;
158
+ digest: string;
159
+ version: string;
160
+ mediaTypes?: string[] | undefined;
161
+ }[];
162
+ digest: string;
163
+ version: string;
164
+ description: string;
165
+ configuration: {
166
+ key: string;
167
+ description: string;
168
+ schema: Record<string, unknown>;
169
+ requirementSupport: ("required" | "preferred")[];
170
+ securityCritical?: boolean | undefined;
171
+ }[];
172
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
173
+ title: string;
174
+ features: string[];
175
+ inputs: {
176
+ id: string;
177
+ digest: string;
178
+ version: string;
179
+ mediaTypes?: string[] | undefined;
180
+ }[];
181
+ permissionClasses: string[];
182
+ contextModes: string[];
183
+ interactionModes: string[];
184
+ implies: {
185
+ id: string;
186
+ digest: string;
187
+ version: string;
188
+ }[];
189
+ conflicts: {
190
+ id: string;
191
+ digest: string;
192
+ version: string;
193
+ }[];
194
+ qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
195
+ }>;
196
+ export declare const capabilityOntologySchema: z.ZodEffects<z.ZodObject<{
197
+ schemaVersion: z.ZodLiteral<"treeseed.capability-ontology/v1">;
198
+ generation: z.ZodNumber;
199
+ digest: z.ZodString;
200
+ definitions: z.ZodArray<z.ZodObject<{
201
+ schemaVersion: z.ZodLiteral<"treeseed.capability-definition/v1">;
202
+ id: z.ZodString;
203
+ version: z.ZodString;
204
+ digest: z.ZodString;
205
+ family: z.ZodEnum<["coordination", "research", "data", "engineering", "publishing", "external-work"]>;
206
+ title: z.ZodString;
207
+ description: z.ZodString;
208
+ status: z.ZodEnum<["active", "deprecated", "revoked"]>;
209
+ features: z.ZodArray<z.ZodString, "many">;
210
+ inputs: z.ZodArray<z.ZodObject<{
211
+ id: z.ZodString;
212
+ version: z.ZodString;
213
+ digest: z.ZodString;
214
+ mediaTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
215
+ }, "strict", z.ZodTypeAny, {
216
+ id: string;
217
+ digest: string;
218
+ version: string;
219
+ mediaTypes: string[];
220
+ }, {
221
+ id: string;
222
+ digest: string;
223
+ version: string;
224
+ mediaTypes?: string[] | undefined;
225
+ }>, "many">;
226
+ outputs: z.ZodArray<z.ZodObject<{
227
+ id: z.ZodString;
228
+ version: z.ZodString;
229
+ digest: z.ZodString;
230
+ mediaTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
231
+ }, "strict", z.ZodTypeAny, {
232
+ id: string;
233
+ digest: string;
234
+ version: string;
235
+ mediaTypes: string[];
236
+ }, {
237
+ id: string;
238
+ digest: string;
239
+ version: string;
240
+ mediaTypes?: string[] | undefined;
241
+ }>, "many">;
242
+ configuration: z.ZodArray<z.ZodObject<{
243
+ key: z.ZodString;
244
+ description: z.ZodString;
245
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
246
+ requirementSupport: z.ZodArray<z.ZodEnum<["required", "preferred"]>, "many">;
247
+ securityCritical: z.ZodDefault<z.ZodBoolean>;
248
+ }, "strict", z.ZodTypeAny, {
249
+ key: string;
250
+ description: string;
251
+ schema: Record<string, unknown>;
252
+ requirementSupport: ("required" | "preferred")[];
253
+ securityCritical: boolean;
254
+ }, {
255
+ key: string;
256
+ description: string;
257
+ schema: Record<string, unknown>;
258
+ requirementSupport: ("required" | "preferred")[];
259
+ securityCritical?: boolean | undefined;
260
+ }>, "many">;
261
+ permissionClasses: z.ZodArray<z.ZodString, "many">;
262
+ contextModes: z.ZodArray<z.ZodString, "many">;
263
+ interactionModes: z.ZodArray<z.ZodString, "many">;
264
+ implies: z.ZodArray<z.ZodObject<{
265
+ id: z.ZodString;
266
+ version: z.ZodString;
267
+ digest: z.ZodString;
268
+ }, "strict", z.ZodTypeAny, {
269
+ id: string;
270
+ digest: string;
271
+ version: string;
272
+ }, {
273
+ id: string;
274
+ digest: string;
275
+ version: string;
276
+ }>, "many">;
277
+ conflicts: z.ZodArray<z.ZodObject<{
278
+ id: z.ZodString;
279
+ version: z.ZodString;
280
+ digest: z.ZodString;
281
+ }, "strict", z.ZodTypeAny, {
282
+ id: string;
283
+ digest: string;
284
+ version: string;
285
+ }, {
286
+ id: string;
287
+ digest: string;
288
+ version: string;
289
+ }>, "many">;
290
+ qualificationTier: z.ZodEnum<["signed-attestation", "automated-suite", "reviewed-certification"]>;
291
+ createdAt: z.ZodString;
292
+ }, "strict", z.ZodTypeAny, {
293
+ schemaVersion: "treeseed.capability-definition/v1";
294
+ status: "active" | "deprecated" | "revoked";
295
+ createdAt: string;
296
+ id: string;
297
+ outputs: {
298
+ id: string;
299
+ digest: string;
300
+ version: string;
301
+ mediaTypes: string[];
302
+ }[];
303
+ digest: string;
304
+ version: string;
305
+ description: string;
306
+ configuration: {
307
+ key: string;
308
+ description: string;
309
+ schema: Record<string, unknown>;
310
+ requirementSupport: ("required" | "preferred")[];
311
+ securityCritical: boolean;
312
+ }[];
313
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
314
+ title: string;
315
+ features: string[];
316
+ inputs: {
317
+ id: string;
318
+ digest: string;
319
+ version: string;
320
+ mediaTypes: string[];
321
+ }[];
322
+ permissionClasses: string[];
323
+ contextModes: string[];
324
+ interactionModes: string[];
325
+ implies: {
326
+ id: string;
327
+ digest: string;
328
+ version: string;
329
+ }[];
330
+ conflicts: {
331
+ id: string;
332
+ digest: string;
333
+ version: string;
334
+ }[];
335
+ qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
336
+ }, {
337
+ schemaVersion: "treeseed.capability-definition/v1";
338
+ status: "active" | "deprecated" | "revoked";
339
+ createdAt: string;
340
+ id: string;
341
+ outputs: {
342
+ id: string;
343
+ digest: string;
344
+ version: string;
345
+ mediaTypes?: string[] | undefined;
346
+ }[];
347
+ digest: string;
348
+ version: string;
349
+ description: string;
350
+ configuration: {
351
+ key: string;
352
+ description: string;
353
+ schema: Record<string, unknown>;
354
+ requirementSupport: ("required" | "preferred")[];
355
+ securityCritical?: boolean | undefined;
356
+ }[];
357
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
358
+ title: string;
359
+ features: string[];
360
+ inputs: {
361
+ id: string;
362
+ digest: string;
363
+ version: string;
364
+ mediaTypes?: string[] | undefined;
365
+ }[];
366
+ permissionClasses: string[];
367
+ contextModes: string[];
368
+ interactionModes: string[];
369
+ implies: {
370
+ id: string;
371
+ digest: string;
372
+ version: string;
373
+ }[];
374
+ conflicts: {
375
+ id: string;
376
+ digest: string;
377
+ version: string;
378
+ }[];
379
+ qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
380
+ }>, "many">;
381
+ aliases: z.ZodRecord<z.ZodString, z.ZodString>;
382
+ createdAt: z.ZodString;
383
+ signature: z.ZodObject<{
384
+ keyId: z.ZodString;
385
+ algorithm: z.ZodEnum<["Ed25519", "release-catalog"]>;
386
+ value: z.ZodString;
387
+ }, "strict", z.ZodTypeAny, {
388
+ value: string;
389
+ algorithm: "Ed25519" | "release-catalog";
390
+ keyId: string;
391
+ }, {
392
+ value: string;
393
+ algorithm: "Ed25519" | "release-catalog";
394
+ keyId: string;
395
+ }>;
396
+ }, "strict", z.ZodTypeAny, {
397
+ schemaVersion: "treeseed.capability-ontology/v1";
398
+ createdAt: string;
399
+ generation: number;
400
+ digest: string;
401
+ aliases: Record<string, string>;
402
+ definitions: {
403
+ schemaVersion: "treeseed.capability-definition/v1";
404
+ status: "active" | "deprecated" | "revoked";
405
+ createdAt: string;
406
+ id: string;
407
+ outputs: {
408
+ id: string;
409
+ digest: string;
410
+ version: string;
411
+ mediaTypes: string[];
412
+ }[];
413
+ digest: string;
414
+ version: string;
415
+ description: string;
416
+ configuration: {
417
+ key: string;
418
+ description: string;
419
+ schema: Record<string, unknown>;
420
+ requirementSupport: ("required" | "preferred")[];
421
+ securityCritical: boolean;
422
+ }[];
423
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
424
+ title: string;
425
+ features: string[];
426
+ inputs: {
427
+ id: string;
428
+ digest: string;
429
+ version: string;
430
+ mediaTypes: string[];
431
+ }[];
432
+ permissionClasses: string[];
433
+ contextModes: string[];
434
+ interactionModes: string[];
435
+ implies: {
436
+ id: string;
437
+ digest: string;
438
+ version: string;
439
+ }[];
440
+ conflicts: {
441
+ id: string;
442
+ digest: string;
443
+ version: string;
444
+ }[];
445
+ qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
446
+ }[];
447
+ signature: {
448
+ value: string;
449
+ algorithm: "Ed25519" | "release-catalog";
450
+ keyId: string;
451
+ };
452
+ }, {
453
+ schemaVersion: "treeseed.capability-ontology/v1";
454
+ createdAt: string;
455
+ generation: number;
456
+ digest: string;
457
+ aliases: Record<string, string>;
458
+ definitions: {
459
+ schemaVersion: "treeseed.capability-definition/v1";
460
+ status: "active" | "deprecated" | "revoked";
461
+ createdAt: string;
462
+ id: string;
463
+ outputs: {
464
+ id: string;
465
+ digest: string;
466
+ version: string;
467
+ mediaTypes?: string[] | undefined;
468
+ }[];
469
+ digest: string;
470
+ version: string;
471
+ description: string;
472
+ configuration: {
473
+ key: string;
474
+ description: string;
475
+ schema: Record<string, unknown>;
476
+ requirementSupport: ("required" | "preferred")[];
477
+ securityCritical?: boolean | undefined;
478
+ }[];
479
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
480
+ title: string;
481
+ features: string[];
482
+ inputs: {
483
+ id: string;
484
+ digest: string;
485
+ version: string;
486
+ mediaTypes?: string[] | undefined;
487
+ }[];
488
+ permissionClasses: string[];
489
+ contextModes: string[];
490
+ interactionModes: string[];
491
+ implies: {
492
+ id: string;
493
+ digest: string;
494
+ version: string;
495
+ }[];
496
+ conflicts: {
497
+ id: string;
498
+ digest: string;
499
+ version: string;
500
+ }[];
501
+ qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
502
+ }[];
503
+ signature: {
504
+ value: string;
505
+ algorithm: "Ed25519" | "release-catalog";
506
+ keyId: string;
507
+ };
508
+ }>, {
509
+ schemaVersion: "treeseed.capability-ontology/v1";
510
+ createdAt: string;
511
+ generation: number;
512
+ digest: string;
513
+ aliases: Record<string, string>;
514
+ definitions: {
515
+ schemaVersion: "treeseed.capability-definition/v1";
516
+ status: "active" | "deprecated" | "revoked";
517
+ createdAt: string;
518
+ id: string;
519
+ outputs: {
520
+ id: string;
521
+ digest: string;
522
+ version: string;
523
+ mediaTypes: string[];
524
+ }[];
525
+ digest: string;
526
+ version: string;
527
+ description: string;
528
+ configuration: {
529
+ key: string;
530
+ description: string;
531
+ schema: Record<string, unknown>;
532
+ requirementSupport: ("required" | "preferred")[];
533
+ securityCritical: boolean;
534
+ }[];
535
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
536
+ title: string;
537
+ features: string[];
538
+ inputs: {
539
+ id: string;
540
+ digest: string;
541
+ version: string;
542
+ mediaTypes: string[];
543
+ }[];
544
+ permissionClasses: string[];
545
+ contextModes: string[];
546
+ interactionModes: string[];
547
+ implies: {
548
+ id: string;
549
+ digest: string;
550
+ version: string;
551
+ }[];
552
+ conflicts: {
553
+ id: string;
554
+ digest: string;
555
+ version: string;
556
+ }[];
557
+ qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
558
+ }[];
559
+ signature: {
560
+ value: string;
561
+ algorithm: "Ed25519" | "release-catalog";
562
+ keyId: string;
563
+ };
564
+ }, {
565
+ schemaVersion: "treeseed.capability-ontology/v1";
566
+ createdAt: string;
567
+ generation: number;
568
+ digest: string;
569
+ aliases: Record<string, string>;
570
+ definitions: {
571
+ schemaVersion: "treeseed.capability-definition/v1";
572
+ status: "active" | "deprecated" | "revoked";
573
+ createdAt: string;
574
+ id: string;
575
+ outputs: {
576
+ id: string;
577
+ digest: string;
578
+ version: string;
579
+ mediaTypes?: string[] | undefined;
580
+ }[];
581
+ digest: string;
582
+ version: string;
583
+ description: string;
584
+ configuration: {
585
+ key: string;
586
+ description: string;
587
+ schema: Record<string, unknown>;
588
+ requirementSupport: ("required" | "preferred")[];
589
+ securityCritical?: boolean | undefined;
590
+ }[];
591
+ family: "research" | "coordination" | "data" | "engineering" | "publishing" | "external-work";
592
+ title: string;
593
+ features: string[];
594
+ inputs: {
595
+ id: string;
596
+ digest: string;
597
+ version: string;
598
+ mediaTypes?: string[] | undefined;
599
+ }[];
600
+ permissionClasses: string[];
601
+ contextModes: string[];
602
+ interactionModes: string[];
603
+ implies: {
604
+ id: string;
605
+ digest: string;
606
+ version: string;
607
+ }[];
608
+ conflicts: {
609
+ id: string;
610
+ digest: string;
611
+ version: string;
612
+ }[];
613
+ qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
614
+ }[];
615
+ signature: {
616
+ value: string;
617
+ algorithm: "Ed25519" | "release-catalog";
618
+ keyId: string;
619
+ };
620
+ }>;
621
+ export declare const capabilityDemandSchema: z.ZodObject<{
622
+ schemaVersion: z.ZodLiteral<"treeseed.capability-demand/v1">;
623
+ ontologyGeneration: z.ZodNumber;
624
+ requirements: z.ZodArray<z.ZodObject<{
625
+ capabilityId: z.ZodString;
626
+ versionRange: z.ZodString;
627
+ requirement: z.ZodEnum<["required", "preferred"]>;
628
+ alternativeGroup: z.ZodDefault<z.ZodNullable<z.ZodString>>;
629
+ requiredFeatures: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
630
+ configuration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
631
+ value: z.ZodUnknown;
632
+ requirement: z.ZodEnum<["required", "preferred"]>;
633
+ }, "strict", z.ZodTypeAny, {
634
+ requirement: "required" | "preferred";
635
+ value?: unknown;
636
+ }, {
637
+ requirement: "required" | "preferred";
638
+ value?: unknown;
639
+ }>>>;
640
+ }, "strict", z.ZodTypeAny, {
641
+ configuration: Record<string, {
642
+ requirement: "required" | "preferred";
643
+ value?: unknown;
644
+ }>;
645
+ capabilityId: string;
646
+ requirement: "required" | "preferred";
647
+ versionRange: string;
648
+ alternativeGroup: string | null;
649
+ requiredFeatures: string[];
650
+ }, {
651
+ capabilityId: string;
652
+ requirement: "required" | "preferred";
653
+ versionRange: string;
654
+ configuration?: Record<string, {
655
+ requirement: "required" | "preferred";
656
+ value?: unknown;
657
+ }> | undefined;
658
+ alternativeGroup?: string | null | undefined;
659
+ requiredFeatures?: string[] | undefined;
660
+ }>, "many">;
661
+ resolved: z.ZodArray<z.ZodObject<{
662
+ id: z.ZodString;
663
+ version: z.ZodString;
664
+ digest: z.ZodString;
665
+ }, "strict", z.ZodTypeAny, {
666
+ id: string;
667
+ digest: string;
668
+ version: string;
669
+ }, {
670
+ id: string;
671
+ digest: string;
672
+ version: string;
673
+ }>, "many">;
674
+ permissionClasses: z.ZodArray<z.ZodString, "many">;
675
+ contextModes: z.ZodArray<z.ZodString, "many">;
676
+ inputContracts: z.ZodArray<z.ZodObject<{
677
+ id: z.ZodString;
678
+ version: z.ZodString;
679
+ digest: z.ZodString;
680
+ mediaTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
681
+ }, "strict", z.ZodTypeAny, {
682
+ id: string;
683
+ digest: string;
684
+ version: string;
685
+ mediaTypes: string[];
686
+ }, {
687
+ id: string;
688
+ digest: string;
689
+ version: string;
690
+ mediaTypes?: string[] | undefined;
691
+ }>, "many">;
692
+ outputContracts: z.ZodArray<z.ZodObject<{
693
+ id: z.ZodString;
694
+ version: z.ZodString;
695
+ digest: z.ZodString;
696
+ mediaTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
697
+ }, "strict", z.ZodTypeAny, {
698
+ id: string;
699
+ digest: string;
700
+ version: string;
701
+ mediaTypes: string[];
702
+ }, {
703
+ id: string;
704
+ digest: string;
705
+ version: string;
706
+ mediaTypes?: string[] | undefined;
707
+ }>, "many">;
708
+ demandDigest: z.ZodString;
709
+ }, "strict", z.ZodTypeAny, {
710
+ schemaVersion: "treeseed.capability-demand/v1";
711
+ permissionClasses: string[];
712
+ contextModes: string[];
713
+ ontologyGeneration: number;
714
+ requirements: {
715
+ configuration: Record<string, {
716
+ requirement: "required" | "preferred";
717
+ value?: unknown;
718
+ }>;
719
+ capabilityId: string;
720
+ requirement: "required" | "preferred";
721
+ versionRange: string;
722
+ alternativeGroup: string | null;
723
+ requiredFeatures: string[];
724
+ }[];
725
+ resolved: {
726
+ id: string;
727
+ digest: string;
728
+ version: string;
729
+ }[];
730
+ inputContracts: {
731
+ id: string;
732
+ digest: string;
733
+ version: string;
734
+ mediaTypes: string[];
735
+ }[];
736
+ outputContracts: {
737
+ id: string;
738
+ digest: string;
739
+ version: string;
740
+ mediaTypes: string[];
741
+ }[];
742
+ demandDigest: string;
743
+ }, {
744
+ schemaVersion: "treeseed.capability-demand/v1";
745
+ permissionClasses: string[];
746
+ contextModes: string[];
747
+ ontologyGeneration: number;
748
+ requirements: {
749
+ capabilityId: string;
750
+ requirement: "required" | "preferred";
751
+ versionRange: string;
752
+ configuration?: Record<string, {
753
+ requirement: "required" | "preferred";
754
+ value?: unknown;
755
+ }> | undefined;
756
+ alternativeGroup?: string | null | undefined;
757
+ requiredFeatures?: string[] | undefined;
758
+ }[];
759
+ resolved: {
760
+ id: string;
761
+ digest: string;
762
+ version: string;
763
+ }[];
764
+ inputContracts: {
765
+ id: string;
766
+ digest: string;
767
+ version: string;
768
+ mediaTypes?: string[] | undefined;
769
+ }[];
770
+ outputContracts: {
771
+ id: string;
772
+ digest: string;
773
+ version: string;
774
+ mediaTypes?: string[] | undefined;
775
+ }[];
776
+ demandDigest: string;
777
+ }>;
778
+ export declare const capabilityConformanceSchema: z.ZodObject<{
779
+ schemaVersion: z.ZodLiteral<"treeseed.capability-conformance/v1">;
780
+ providerId: z.ZodString;
781
+ capability: z.ZodObject<{
782
+ id: z.ZodString;
783
+ version: z.ZodString;
784
+ digest: z.ZodString;
785
+ }, "strict", z.ZodTypeAny, {
786
+ id: string;
787
+ digest: string;
788
+ version: string;
789
+ }, {
790
+ id: string;
791
+ digest: string;
792
+ version: string;
793
+ }>;
794
+ tier: z.ZodEnum<["signed-attestation", "automated-suite", "reviewed-certification"]>;
795
+ status: z.ZodEnum<["passed", "failed", "revoked"]>;
796
+ evidenceDigest: z.ZodString;
797
+ suite: z.ZodNullable<z.ZodObject<{
798
+ id: z.ZodString;
799
+ version: z.ZodString;
800
+ }, "strict", z.ZodTypeAny, {
801
+ id: string;
802
+ version: string;
803
+ }, {
804
+ id: string;
805
+ version: string;
806
+ }>>;
807
+ issuedAt: z.ZodString;
808
+ expiresAt: z.ZodNullable<z.ZodString>;
809
+ signature: z.ZodObject<{
810
+ keyId: z.ZodString;
811
+ algorithm: z.ZodLiteral<"Ed25519">;
812
+ value: z.ZodString;
813
+ }, "strict", z.ZodTypeAny, {
814
+ value: string;
815
+ algorithm: "Ed25519";
816
+ keyId: string;
817
+ }, {
818
+ value: string;
819
+ algorithm: "Ed25519";
820
+ keyId: string;
821
+ }>;
822
+ }, "strict", z.ZodTypeAny, {
823
+ schemaVersion: "treeseed.capability-conformance/v1";
824
+ status: "passed" | "failed" | "revoked";
825
+ capability: {
826
+ id: string;
827
+ digest: string;
828
+ version: string;
829
+ };
830
+ expiresAt: string | null;
831
+ suite: {
832
+ id: string;
833
+ version: string;
834
+ } | null;
835
+ providerId: string;
836
+ signature: {
837
+ value: string;
838
+ algorithm: "Ed25519";
839
+ keyId: string;
840
+ };
841
+ tier: "signed-attestation" | "automated-suite" | "reviewed-certification";
842
+ evidenceDigest: string;
843
+ issuedAt: string;
844
+ }, {
845
+ schemaVersion: "treeseed.capability-conformance/v1";
846
+ status: "passed" | "failed" | "revoked";
847
+ capability: {
848
+ id: string;
849
+ digest: string;
850
+ version: string;
851
+ };
852
+ expiresAt: string | null;
853
+ suite: {
854
+ id: string;
855
+ version: string;
856
+ } | null;
857
+ providerId: string;
858
+ signature: {
859
+ value: string;
860
+ algorithm: "Ed25519";
861
+ keyId: string;
862
+ };
863
+ tier: "signed-attestation" | "automated-suite" | "reviewed-certification";
864
+ evidenceDigest: string;
865
+ issuedAt: string;
866
+ }>;
867
+ export declare const capabilityOfferSchema: z.ZodObject<{
868
+ schemaVersion: z.ZodLiteral<"treeseed.capability-offer/v1">;
869
+ offerId: z.ZodString;
870
+ capabilities: z.ZodArray<z.ZodObject<{
871
+ id: z.ZodString;
872
+ version: z.ZodString;
873
+ digest: z.ZodString;
874
+ }, "strict", z.ZodTypeAny, {
875
+ id: string;
876
+ digest: string;
877
+ version: string;
878
+ }, {
879
+ id: string;
880
+ digest: string;
881
+ version: string;
882
+ }>, "many">;
883
+ features: z.ZodArray<z.ZodString, "many">;
884
+ configurationSupport: z.ZodRecord<z.ZodString, z.ZodObject<{
885
+ required: z.ZodBoolean;
886
+ preferred: z.ZodBoolean;
887
+ }, "strict", z.ZodTypeAny, {
888
+ required: boolean;
889
+ preferred: boolean;
890
+ }, {
891
+ required: boolean;
892
+ preferred: boolean;
893
+ }>>;
894
+ permissionClasses: z.ZodArray<z.ZodString, "many">;
895
+ contextModes: z.ZodArray<z.ZodString, "many">;
896
+ inputContracts: z.ZodArray<z.ZodObject<{
897
+ id: z.ZodString;
898
+ version: z.ZodString;
899
+ digest: z.ZodString;
900
+ mediaTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
901
+ }, "strict", z.ZodTypeAny, {
902
+ id: string;
903
+ digest: string;
904
+ version: string;
905
+ mediaTypes: string[];
906
+ }, {
907
+ id: string;
908
+ digest: string;
909
+ version: string;
910
+ mediaTypes?: string[] | undefined;
911
+ }>, "many">;
912
+ outputContracts: z.ZodArray<z.ZodObject<{
913
+ id: z.ZodString;
914
+ version: z.ZodString;
915
+ digest: z.ZodString;
916
+ mediaTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
917
+ }, "strict", z.ZodTypeAny, {
918
+ id: string;
919
+ digest: string;
920
+ version: string;
921
+ mediaTypes: string[];
922
+ }, {
923
+ id: string;
924
+ digest: string;
925
+ version: string;
926
+ mediaTypes?: string[] | undefined;
927
+ }>, "many">;
928
+ interactionModes: z.ZodArray<z.ZodString, "many">;
929
+ conformance: z.ZodArray<z.ZodObject<{
930
+ schemaVersion: z.ZodLiteral<"treeseed.capability-conformance/v1">;
931
+ providerId: z.ZodString;
932
+ capability: z.ZodObject<{
933
+ id: z.ZodString;
934
+ version: z.ZodString;
935
+ digest: z.ZodString;
936
+ }, "strict", z.ZodTypeAny, {
937
+ id: string;
938
+ digest: string;
939
+ version: string;
940
+ }, {
941
+ id: string;
942
+ digest: string;
943
+ version: string;
944
+ }>;
945
+ tier: z.ZodEnum<["signed-attestation", "automated-suite", "reviewed-certification"]>;
946
+ status: z.ZodEnum<["passed", "failed", "revoked"]>;
947
+ evidenceDigest: z.ZodString;
948
+ suite: z.ZodNullable<z.ZodObject<{
949
+ id: z.ZodString;
950
+ version: z.ZodString;
951
+ }, "strict", z.ZodTypeAny, {
952
+ id: string;
953
+ version: string;
954
+ }, {
955
+ id: string;
956
+ version: string;
957
+ }>>;
958
+ issuedAt: z.ZodString;
959
+ expiresAt: z.ZodNullable<z.ZodString>;
960
+ signature: z.ZodObject<{
961
+ keyId: z.ZodString;
962
+ algorithm: z.ZodLiteral<"Ed25519">;
963
+ value: z.ZodString;
964
+ }, "strict", z.ZodTypeAny, {
965
+ value: string;
966
+ algorithm: "Ed25519";
967
+ keyId: string;
968
+ }, {
969
+ value: string;
970
+ algorithm: "Ed25519";
971
+ keyId: string;
972
+ }>;
973
+ }, "strict", z.ZodTypeAny, {
974
+ schemaVersion: "treeseed.capability-conformance/v1";
975
+ status: "passed" | "failed" | "revoked";
976
+ capability: {
977
+ id: string;
978
+ digest: string;
979
+ version: string;
980
+ };
981
+ expiresAt: string | null;
982
+ suite: {
983
+ id: string;
984
+ version: string;
985
+ } | null;
986
+ providerId: string;
987
+ signature: {
988
+ value: string;
989
+ algorithm: "Ed25519";
990
+ keyId: string;
991
+ };
992
+ tier: "signed-attestation" | "automated-suite" | "reviewed-certification";
993
+ evidenceDigest: string;
994
+ issuedAt: string;
995
+ }, {
996
+ schemaVersion: "treeseed.capability-conformance/v1";
997
+ status: "passed" | "failed" | "revoked";
998
+ capability: {
999
+ id: string;
1000
+ digest: string;
1001
+ version: string;
1002
+ };
1003
+ expiresAt: string | null;
1004
+ suite: {
1005
+ id: string;
1006
+ version: string;
1007
+ } | null;
1008
+ providerId: string;
1009
+ signature: {
1010
+ value: string;
1011
+ algorithm: "Ed25519";
1012
+ keyId: string;
1013
+ };
1014
+ tier: "signed-attestation" | "automated-suite" | "reviewed-certification";
1015
+ evidenceDigest: string;
1016
+ issuedAt: string;
1017
+ }>, "many">;
1018
+ limits: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1019
+ commercial: z.ZodObject<{
1020
+ currency: z.ZodNullable<z.ZodString>;
1021
+ estimatedCost: z.ZodNullable<z.ZodNumber>;
1022
+ }, "strict", z.ZodTypeAny, {
1023
+ currency: string | null;
1024
+ estimatedCost: number | null;
1025
+ }, {
1026
+ currency: string | null;
1027
+ estimatedCost: number | null;
1028
+ }>;
1029
+ region: z.ZodNullable<z.ZodString>;
1030
+ trust: z.ZodArray<z.ZodString, "many">;
1031
+ offerDigest: z.ZodString;
1032
+ }, "strict", z.ZodTypeAny, {
1033
+ schemaVersion: "treeseed.capability-offer/v1";
1034
+ trust: string[];
1035
+ capabilities: {
1036
+ id: string;
1037
+ digest: string;
1038
+ version: string;
1039
+ }[];
1040
+ features: string[];
1041
+ permissionClasses: string[];
1042
+ contextModes: string[];
1043
+ interactionModes: string[];
1044
+ inputContracts: {
1045
+ id: string;
1046
+ digest: string;
1047
+ version: string;
1048
+ mediaTypes: string[];
1049
+ }[];
1050
+ outputContracts: {
1051
+ id: string;
1052
+ digest: string;
1053
+ version: string;
1054
+ mediaTypes: string[];
1055
+ }[];
1056
+ offerId: string;
1057
+ configurationSupport: Record<string, {
1058
+ required: boolean;
1059
+ preferred: boolean;
1060
+ }>;
1061
+ conformance: {
1062
+ schemaVersion: "treeseed.capability-conformance/v1";
1063
+ status: "passed" | "failed" | "revoked";
1064
+ capability: {
1065
+ id: string;
1066
+ digest: string;
1067
+ version: string;
1068
+ };
1069
+ expiresAt: string | null;
1070
+ suite: {
1071
+ id: string;
1072
+ version: string;
1073
+ } | null;
1074
+ providerId: string;
1075
+ signature: {
1076
+ value: string;
1077
+ algorithm: "Ed25519";
1078
+ keyId: string;
1079
+ };
1080
+ tier: "signed-attestation" | "automated-suite" | "reviewed-certification";
1081
+ evidenceDigest: string;
1082
+ issuedAt: string;
1083
+ }[];
1084
+ limits: Record<string, unknown>;
1085
+ commercial: {
1086
+ currency: string | null;
1087
+ estimatedCost: number | null;
1088
+ };
1089
+ region: string | null;
1090
+ offerDigest: string;
1091
+ }, {
1092
+ schemaVersion: "treeseed.capability-offer/v1";
1093
+ trust: string[];
1094
+ capabilities: {
1095
+ id: string;
1096
+ digest: string;
1097
+ version: string;
1098
+ }[];
1099
+ features: string[];
1100
+ permissionClasses: string[];
1101
+ contextModes: string[];
1102
+ interactionModes: string[];
1103
+ inputContracts: {
1104
+ id: string;
1105
+ digest: string;
1106
+ version: string;
1107
+ mediaTypes?: string[] | undefined;
1108
+ }[];
1109
+ outputContracts: {
1110
+ id: string;
1111
+ digest: string;
1112
+ version: string;
1113
+ mediaTypes?: string[] | undefined;
1114
+ }[];
1115
+ offerId: string;
1116
+ configurationSupport: Record<string, {
1117
+ required: boolean;
1118
+ preferred: boolean;
1119
+ }>;
1120
+ conformance: {
1121
+ schemaVersion: "treeseed.capability-conformance/v1";
1122
+ status: "passed" | "failed" | "revoked";
1123
+ capability: {
1124
+ id: string;
1125
+ digest: string;
1126
+ version: string;
1127
+ };
1128
+ expiresAt: string | null;
1129
+ suite: {
1130
+ id: string;
1131
+ version: string;
1132
+ } | null;
1133
+ providerId: string;
1134
+ signature: {
1135
+ value: string;
1136
+ algorithm: "Ed25519";
1137
+ keyId: string;
1138
+ };
1139
+ tier: "signed-attestation" | "automated-suite" | "reviewed-certification";
1140
+ evidenceDigest: string;
1141
+ issuedAt: string;
1142
+ }[];
1143
+ limits: Record<string, unknown>;
1144
+ commercial: {
1145
+ currency: string | null;
1146
+ estimatedCost: number | null;
1147
+ };
1148
+ region: string | null;
1149
+ offerDigest: string;
1150
+ }>;
1151
+ export declare const capabilityNegotiationReceiptSchema: z.ZodObject<{
1152
+ schemaVersion: z.ZodLiteral<"treeseed.capability-negotiation/v1">;
1153
+ demandDigest: z.ZodString;
1154
+ offerDigest: z.ZodString;
1155
+ eligible: z.ZodBoolean;
1156
+ resolvedCapabilities: z.ZodArray<z.ZodObject<{
1157
+ id: z.ZodString;
1158
+ version: z.ZodString;
1159
+ digest: z.ZodString;
1160
+ }, "strict", z.ZodTypeAny, {
1161
+ id: string;
1162
+ digest: string;
1163
+ version: string;
1164
+ }, {
1165
+ id: string;
1166
+ digest: string;
1167
+ version: string;
1168
+ }>, "many">;
1169
+ omittedPreferred: z.ZodArray<z.ZodString, "many">;
1170
+ reasons: z.ZodArray<z.ZodString, "many">;
1171
+ receiptDigest: z.ZodString;
1172
+ }, "strict", z.ZodTypeAny, {
1173
+ schemaVersion: "treeseed.capability-negotiation/v1";
1174
+ receiptDigest: string;
1175
+ demandDigest: string;
1176
+ offerDigest: string;
1177
+ eligible: boolean;
1178
+ resolvedCapabilities: {
1179
+ id: string;
1180
+ digest: string;
1181
+ version: string;
1182
+ }[];
1183
+ omittedPreferred: string[];
1184
+ reasons: string[];
1185
+ }, {
1186
+ schemaVersion: "treeseed.capability-negotiation/v1";
1187
+ receiptDigest: string;
1188
+ demandDigest: string;
1189
+ offerDigest: string;
1190
+ eligible: boolean;
1191
+ resolvedCapabilities: {
1192
+ id: string;
1193
+ digest: string;
1194
+ version: string;
1195
+ }[];
1196
+ omittedPreferred: string[];
1197
+ reasons: string[];
1198
+ }>;
1199
+ export declare function capabilityContractDigest(value: unknown): `sha256:${string}`;
1200
+ export declare function capabilityDefinitionDigest(value: Omit<CapabilityDefinition, 'digest'>): `sha256:${string}`;
1201
+ export declare function capabilityOfferDigest(value: Omit<CapabilityOffer, 'offerDigest'>): `sha256:${string}`;
1202
+ export declare function capabilityDemandDigest(value: Omit<CapabilityDemand, 'demandDigest'>): `sha256:${string}`;
1203
+ export declare function semverSatisfies(version: string, range: string): boolean;
1204
+ export declare function negotiateCapabilityOffer(demand: CapabilityDemand, offer: CapabilityOffer): CapabilityNegotiationReceipt;
1205
+ export type CapabilityReference = z.infer<typeof capabilityReferenceSchema>;
1206
+ export type CapabilityDefinition = z.infer<typeof capabilityDefinitionSchema>;
1207
+ export type CapabilityOntology = z.infer<typeof capabilityOntologySchema>;
1208
+ export type CapabilityDemand = z.infer<typeof capabilityDemandSchema>;
1209
+ export type CapabilityOffer = z.infer<typeof capabilityOfferSchema>;
1210
+ export type CapabilityConformance = z.infer<typeof capabilityConformanceSchema>;
1211
+ export type CapabilityNegotiationReceipt = z.infer<typeof capabilityNegotiationReceiptSchema>;