@onetaskgraph/sdk 0.14.10 → 0.14.11
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.
- package/dist/client.d.ts +33 -2
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +496 -1
- package/dist/generated/schemas.d.ts +751 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +993 -5
- package/package.json +2 -2
|
@@ -288,6 +288,409 @@ export declare const runtimeSchemas: {
|
|
|
288
288
|
};
|
|
289
289
|
};
|
|
290
290
|
};
|
|
291
|
+
readonly Attestation: {
|
|
292
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
293
|
+
readonly title: "Attestation";
|
|
294
|
+
readonly description: "One attestation: who cleared the item's authored content, when, which content and against\nwhich bar.";
|
|
295
|
+
readonly type: "object";
|
|
296
|
+
readonly properties: {
|
|
297
|
+
readonly kind: {
|
|
298
|
+
readonly description: "The kind of attestation this is; the key it is held under.";
|
|
299
|
+
readonly $ref: "#/$defs/AttestationKind";
|
|
300
|
+
};
|
|
301
|
+
readonly by: {
|
|
302
|
+
readonly description: "Who attested, as the caller labels them.";
|
|
303
|
+
readonly $ref: "#/$defs/AttestationLabel";
|
|
304
|
+
};
|
|
305
|
+
readonly at: {
|
|
306
|
+
readonly description: "When it was recorded, in RFC 3339 to the second.";
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly format: "date-time";
|
|
309
|
+
};
|
|
310
|
+
readonly content_digest: {
|
|
311
|
+
readonly description: "The digest of the item's authored content when it was recorded, computed by the store\n(see the module's documentation).";
|
|
312
|
+
readonly $ref: "#/$defs/Sha256Digest";
|
|
313
|
+
};
|
|
314
|
+
readonly bar: {
|
|
315
|
+
readonly description: "The fingerprint of the bar the content was cleared against, as the caller gave it.";
|
|
316
|
+
readonly $ref: "#/$defs/AttestationLabel";
|
|
317
|
+
};
|
|
318
|
+
readonly note: {
|
|
319
|
+
readonly description: "What the attester added, when they added anything.";
|
|
320
|
+
readonly anyOf: readonly [{
|
|
321
|
+
readonly $ref: "#/$defs/AttestationNote";
|
|
322
|
+
}, {
|
|
323
|
+
readonly type: "null";
|
|
324
|
+
}];
|
|
325
|
+
};
|
|
326
|
+
readonly excludes: {
|
|
327
|
+
readonly description: "The caller-owned metadata keys left out of `content_digest`, sorted; empty when none\nwere.";
|
|
328
|
+
readonly type: "array";
|
|
329
|
+
readonly items: {
|
|
330
|
+
readonly $ref: "#/$defs/MetadataKey";
|
|
331
|
+
};
|
|
332
|
+
readonly default: readonly [];
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
readonly required: readonly ["kind", "by", "at", "content_digest", "bar"];
|
|
336
|
+
readonly $defs: {
|
|
337
|
+
readonly AttestationKind: {
|
|
338
|
+
readonly description: "One kind of attestation, such as `plan-review` or `design-approval`: one to 200 letters,\ndigits, `.`, `_` or `-`.";
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
};
|
|
341
|
+
readonly AttestationLabel: {
|
|
342
|
+
readonly description: "Who attested, or the fingerprint of a bar: one line of one to 200 characters, not blank.";
|
|
343
|
+
readonly type: "string";
|
|
344
|
+
};
|
|
345
|
+
readonly Sha256Digest: {
|
|
346
|
+
readonly description: "`sha256:` and 64 lowercase hex digits.";
|
|
347
|
+
readonly type: "string";
|
|
348
|
+
readonly pattern: "^sha256:[0-9a-f]{64}$";
|
|
349
|
+
};
|
|
350
|
+
readonly AttestationNote: {
|
|
351
|
+
readonly description: "What an attester adds: text of any length and any number of lines, not blank.";
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
};
|
|
354
|
+
readonly MetadataKey: {
|
|
355
|
+
readonly description: "One caller-owned metadata key: `<namespace>.<name>`, at least two non-empty segments\nseparated by dots, whose first segment is not [`MetadataKey::RESERVED_NAMESPACE`].\n\nValidated wherever one is built, deserialized included, so a plugin handed one never has\nto ask whether it names a key this product owns.";
|
|
356
|
+
readonly type: "string";
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
readonly AttestationCheck: {
|
|
361
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
362
|
+
readonly title: "AttestationCheck";
|
|
363
|
+
readonly description: "What `attestation check` answers: one kind on one item.\n\nEvery member is always written, `reason` and `record` as `null` when they have nothing to\nsay.";
|
|
364
|
+
readonly type: "object";
|
|
365
|
+
readonly properties: {
|
|
366
|
+
readonly kind: {
|
|
367
|
+
readonly description: "The kind asked about.";
|
|
368
|
+
readonly $ref: "#/$defs/AttestationKind";
|
|
369
|
+
};
|
|
370
|
+
readonly state: {
|
|
371
|
+
readonly description: "What the check found.";
|
|
372
|
+
readonly $ref: "#/$defs/AttestationState";
|
|
373
|
+
};
|
|
374
|
+
readonly reason: {
|
|
375
|
+
readonly description: "Why the record is void: `null` unless `state` is `void`.";
|
|
376
|
+
readonly anyOf: readonly [{
|
|
377
|
+
readonly $ref: "#/$defs/VoidReason";
|
|
378
|
+
}, {
|
|
379
|
+
readonly type: "null";
|
|
380
|
+
}];
|
|
381
|
+
};
|
|
382
|
+
readonly record: {
|
|
383
|
+
readonly description: "The record of the kind the item holds, or `null` when it holds none.";
|
|
384
|
+
readonly anyOf: readonly [{
|
|
385
|
+
readonly $ref: "#/$defs/Attestation";
|
|
386
|
+
}, {
|
|
387
|
+
readonly type: "null";
|
|
388
|
+
}];
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
readonly required: readonly ["kind", "state"];
|
|
392
|
+
readonly $defs: {
|
|
393
|
+
readonly AttestationKind: {
|
|
394
|
+
readonly description: "One kind of attestation, such as `plan-review` or `design-approval`: one to 200 letters,\ndigits, `.`, `_` or `-`.";
|
|
395
|
+
readonly type: "string";
|
|
396
|
+
};
|
|
397
|
+
readonly AttestationState: {
|
|
398
|
+
readonly description: "What a check of one kind of attestation found.";
|
|
399
|
+
readonly oneOf: readonly [{
|
|
400
|
+
readonly description: "A record of the kind is there, the item's authored content is the content it cleared,\nand the bar asked about, when one was, is the bar it cleared it against.";
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
readonly const: "valid";
|
|
403
|
+
}, {
|
|
404
|
+
readonly description: "A record of the kind is there and no longer holds: `reason` says why.";
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
readonly const: "void";
|
|
407
|
+
}, {
|
|
408
|
+
readonly description: "The item holds no record of the kind.";
|
|
409
|
+
readonly type: "string";
|
|
410
|
+
readonly const: "absent";
|
|
411
|
+
}];
|
|
412
|
+
};
|
|
413
|
+
readonly VoidReason: {
|
|
414
|
+
readonly description: "Why a record of an attestation no longer holds.";
|
|
415
|
+
readonly oneOf: readonly [{
|
|
416
|
+
readonly description: "The item's authored content is not the content the record cleared.";
|
|
417
|
+
readonly type: "string";
|
|
418
|
+
readonly const: "content-moved";
|
|
419
|
+
}, {
|
|
420
|
+
readonly description: "The bar asked about is not the bar the record cleared the content against.";
|
|
421
|
+
readonly type: "string";
|
|
422
|
+
readonly const: "bar-moved";
|
|
423
|
+
}];
|
|
424
|
+
};
|
|
425
|
+
readonly Attestation: {
|
|
426
|
+
readonly description: "One attestation: who cleared the item's authored content, when, which content and against\nwhich bar.";
|
|
427
|
+
readonly type: "object";
|
|
428
|
+
readonly properties: {
|
|
429
|
+
readonly kind: {
|
|
430
|
+
readonly description: "The kind of attestation this is; the key it is held under.";
|
|
431
|
+
readonly $ref: "#/$defs/AttestationKind";
|
|
432
|
+
};
|
|
433
|
+
readonly by: {
|
|
434
|
+
readonly description: "Who attested, as the caller labels them.";
|
|
435
|
+
readonly $ref: "#/$defs/AttestationLabel";
|
|
436
|
+
};
|
|
437
|
+
readonly at: {
|
|
438
|
+
readonly description: "When it was recorded, in RFC 3339 to the second.";
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly format: "date-time";
|
|
441
|
+
};
|
|
442
|
+
readonly content_digest: {
|
|
443
|
+
readonly description: "The digest of the item's authored content when it was recorded, computed by the store\n(see the module's documentation).";
|
|
444
|
+
readonly $ref: "#/$defs/Sha256Digest";
|
|
445
|
+
};
|
|
446
|
+
readonly bar: {
|
|
447
|
+
readonly description: "The fingerprint of the bar the content was cleared against, as the caller gave it.";
|
|
448
|
+
readonly $ref: "#/$defs/AttestationLabel";
|
|
449
|
+
};
|
|
450
|
+
readonly note: {
|
|
451
|
+
readonly description: "What the attester added, when they added anything.";
|
|
452
|
+
readonly anyOf: readonly [{
|
|
453
|
+
readonly $ref: "#/$defs/AttestationNote";
|
|
454
|
+
}, {
|
|
455
|
+
readonly type: "null";
|
|
456
|
+
}];
|
|
457
|
+
};
|
|
458
|
+
readonly excludes: {
|
|
459
|
+
readonly description: "The caller-owned metadata keys left out of `content_digest`, sorted; empty when none\nwere.";
|
|
460
|
+
readonly type: "array";
|
|
461
|
+
readonly items: {
|
|
462
|
+
readonly $ref: "#/$defs/MetadataKey";
|
|
463
|
+
};
|
|
464
|
+
readonly default: readonly [];
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
readonly required: readonly ["kind", "by", "at", "content_digest", "bar"];
|
|
468
|
+
};
|
|
469
|
+
readonly AttestationLabel: {
|
|
470
|
+
readonly description: "Who attested, or the fingerprint of a bar: one line of one to 200 characters, not blank.";
|
|
471
|
+
readonly type: "string";
|
|
472
|
+
};
|
|
473
|
+
readonly Sha256Digest: {
|
|
474
|
+
readonly description: "`sha256:` and 64 lowercase hex digits.";
|
|
475
|
+
readonly type: "string";
|
|
476
|
+
readonly pattern: "^sha256:[0-9a-f]{64}$";
|
|
477
|
+
};
|
|
478
|
+
readonly AttestationNote: {
|
|
479
|
+
readonly description: "What an attester adds: text of any length and any number of lines, not blank.";
|
|
480
|
+
readonly type: "string";
|
|
481
|
+
};
|
|
482
|
+
readonly MetadataKey: {
|
|
483
|
+
readonly description: "One caller-owned metadata key: `<namespace>.<name>`, at least two non-empty segments\nseparated by dots, whose first segment is not [`MetadataKey::RESERVED_NAMESPACE`].\n\nValidated wherever one is built, deserialized included, so a plugin handed one never has\nto ask whether it names a key this product owns.";
|
|
484
|
+
readonly type: "string";
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
readonly AttestationState: {
|
|
489
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
490
|
+
readonly title: "AttestationState";
|
|
491
|
+
readonly description: "What a check of one kind of attestation found.";
|
|
492
|
+
readonly oneOf: readonly [{
|
|
493
|
+
readonly description: "A record of the kind is there, the item's authored content is the content it cleared,\nand the bar asked about, when one was, is the bar it cleared it against.";
|
|
494
|
+
readonly type: "string";
|
|
495
|
+
readonly const: "valid";
|
|
496
|
+
}, {
|
|
497
|
+
readonly description: "A record of the kind is there and no longer holds: `reason` says why.";
|
|
498
|
+
readonly type: "string";
|
|
499
|
+
readonly const: "void";
|
|
500
|
+
}, {
|
|
501
|
+
readonly description: "The item holds no record of the kind.";
|
|
502
|
+
readonly type: "string";
|
|
503
|
+
readonly const: "absent";
|
|
504
|
+
}];
|
|
505
|
+
};
|
|
506
|
+
readonly Attested: {
|
|
507
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
508
|
+
readonly title: "Attested";
|
|
509
|
+
readonly description: "What `attest` answers: the record it wrote, on the item it wrote it to.";
|
|
510
|
+
readonly type: "object";
|
|
511
|
+
readonly properties: {
|
|
512
|
+
readonly id: {
|
|
513
|
+
readonly description: "The item, by qualified id.";
|
|
514
|
+
readonly $ref: "#/$defs/GlobalId";
|
|
515
|
+
};
|
|
516
|
+
readonly record: {
|
|
517
|
+
readonly description: "The record as the source holds it after the write.";
|
|
518
|
+
readonly $ref: "#/$defs/Attestation";
|
|
519
|
+
};
|
|
520
|
+
readonly sanitization: {
|
|
521
|
+
readonly anyOf: readonly [{
|
|
522
|
+
readonly $ref: "#/$defs/Sanitization";
|
|
523
|
+
}, {
|
|
524
|
+
readonly type: "null";
|
|
525
|
+
}];
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
readonly required: readonly ["id", "record"];
|
|
529
|
+
readonly $defs: {
|
|
530
|
+
readonly GlobalId: {
|
|
531
|
+
readonly description: "One item, qualified by the source it came from.\n\nRendered `<source>:<native>` and parsed by splitting on the **first** colon,\nso a native id may contain colons freely.";
|
|
532
|
+
readonly type: "string";
|
|
533
|
+
};
|
|
534
|
+
readonly Attestation: {
|
|
535
|
+
readonly description: "One attestation: who cleared the item's authored content, when, which content and against\nwhich bar.";
|
|
536
|
+
readonly type: "object";
|
|
537
|
+
readonly properties: {
|
|
538
|
+
readonly kind: {
|
|
539
|
+
readonly description: "The kind of attestation this is; the key it is held under.";
|
|
540
|
+
readonly $ref: "#/$defs/AttestationKind";
|
|
541
|
+
};
|
|
542
|
+
readonly by: {
|
|
543
|
+
readonly description: "Who attested, as the caller labels them.";
|
|
544
|
+
readonly $ref: "#/$defs/AttestationLabel";
|
|
545
|
+
};
|
|
546
|
+
readonly at: {
|
|
547
|
+
readonly description: "When it was recorded, in RFC 3339 to the second.";
|
|
548
|
+
readonly type: "string";
|
|
549
|
+
readonly format: "date-time";
|
|
550
|
+
};
|
|
551
|
+
readonly content_digest: {
|
|
552
|
+
readonly description: "The digest of the item's authored content when it was recorded, computed by the store\n(see the module's documentation).";
|
|
553
|
+
readonly $ref: "#/$defs/Sha256Digest";
|
|
554
|
+
};
|
|
555
|
+
readonly bar: {
|
|
556
|
+
readonly description: "The fingerprint of the bar the content was cleared against, as the caller gave it.";
|
|
557
|
+
readonly $ref: "#/$defs/AttestationLabel";
|
|
558
|
+
};
|
|
559
|
+
readonly note: {
|
|
560
|
+
readonly description: "What the attester added, when they added anything.";
|
|
561
|
+
readonly anyOf: readonly [{
|
|
562
|
+
readonly $ref: "#/$defs/AttestationNote";
|
|
563
|
+
}, {
|
|
564
|
+
readonly type: "null";
|
|
565
|
+
}];
|
|
566
|
+
};
|
|
567
|
+
readonly excludes: {
|
|
568
|
+
readonly description: "The caller-owned metadata keys left out of `content_digest`, sorted; empty when none\nwere.";
|
|
569
|
+
readonly type: "array";
|
|
570
|
+
readonly items: {
|
|
571
|
+
readonly $ref: "#/$defs/MetadataKey";
|
|
572
|
+
};
|
|
573
|
+
readonly default: readonly [];
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
readonly required: readonly ["kind", "by", "at", "content_digest", "bar"];
|
|
577
|
+
};
|
|
578
|
+
readonly AttestationKind: {
|
|
579
|
+
readonly description: "One kind of attestation, such as `plan-review` or `design-approval`: one to 200 letters,\ndigits, `.`, `_` or `-`.";
|
|
580
|
+
readonly type: "string";
|
|
581
|
+
};
|
|
582
|
+
readonly AttestationLabel: {
|
|
583
|
+
readonly description: "Who attested, or the fingerprint of a bar: one line of one to 200 characters, not blank.";
|
|
584
|
+
readonly type: "string";
|
|
585
|
+
};
|
|
586
|
+
readonly Sha256Digest: {
|
|
587
|
+
readonly description: "`sha256:` and 64 lowercase hex digits.";
|
|
588
|
+
readonly type: "string";
|
|
589
|
+
readonly pattern: "^sha256:[0-9a-f]{64}$";
|
|
590
|
+
};
|
|
591
|
+
readonly AttestationNote: {
|
|
592
|
+
readonly description: "What an attester adds: text of any length and any number of lines, not blank.";
|
|
593
|
+
readonly type: "string";
|
|
594
|
+
};
|
|
595
|
+
readonly MetadataKey: {
|
|
596
|
+
readonly description: "One caller-owned metadata key: `<namespace>.<name>`, at least two non-empty segments\nseparated by dots, whose first segment is not [`MetadataKey::RESERVED_NAMESPACE`].\n\nValidated wherever one is built, deserialized included, so a plugin handed one never has\nto ask whether it names a key this product owns.";
|
|
597
|
+
readonly type: "string";
|
|
598
|
+
};
|
|
599
|
+
readonly Sanitization: {
|
|
600
|
+
readonly description: "What the screened writes of one command replaced, and what sanitise-on-refusal changed:\nthe `sanitization` member a write's answer carries when it is not empty.";
|
|
601
|
+
readonly type: "object";
|
|
602
|
+
readonly properties: {
|
|
603
|
+
readonly replaced: {
|
|
604
|
+
readonly description: "Spans the writes' own sanitisations rewrote.";
|
|
605
|
+
readonly type: "integer";
|
|
606
|
+
readonly format: "uint32";
|
|
607
|
+
readonly minimum: 0;
|
|
608
|
+
};
|
|
609
|
+
readonly side_effect: {
|
|
610
|
+
readonly description: "Each field or comment of an item sanitisation changed beyond the write itself.";
|
|
611
|
+
readonly type: "array";
|
|
612
|
+
readonly items: {
|
|
613
|
+
readonly $ref: "#/$defs/SideEffect";
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
readonly dry_run: {
|
|
617
|
+
readonly description: "Whether nothing was written, the changes only reported.";
|
|
618
|
+
readonly type: "boolean";
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
readonly required: readonly ["replaced", "side_effect", "dry_run"];
|
|
622
|
+
};
|
|
623
|
+
readonly SideEffect: {
|
|
624
|
+
readonly description: "One field or comment of an item a sanitisation changed, named by screened locators.";
|
|
625
|
+
readonly type: "object";
|
|
626
|
+
readonly properties: {
|
|
627
|
+
readonly item: {
|
|
628
|
+
readonly description: "The item, by its qualified id as screened.";
|
|
629
|
+
readonly $ref: "#/$defs/Locator";
|
|
630
|
+
};
|
|
631
|
+
readonly field: {
|
|
632
|
+
readonly description: "The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.";
|
|
633
|
+
readonly $ref: "#/$defs/Locator";
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
readonly required: readonly ["item", "field"];
|
|
637
|
+
};
|
|
638
|
+
readonly Locator: {
|
|
639
|
+
readonly description: "A screened locator: the string verbatim, or its redacted form.";
|
|
640
|
+
readonly oneOf: readonly [{
|
|
641
|
+
readonly type: "string";
|
|
642
|
+
}, {
|
|
643
|
+
readonly type: "object";
|
|
644
|
+
readonly properties: {
|
|
645
|
+
readonly redacted: {
|
|
646
|
+
readonly const: true;
|
|
647
|
+
};
|
|
648
|
+
readonly kind: {
|
|
649
|
+
readonly $ref: "#/$defs/LocatorKind";
|
|
650
|
+
};
|
|
651
|
+
readonly ordinal: {
|
|
652
|
+
readonly type: "integer";
|
|
653
|
+
readonly minimum: 1;
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
readonly required: readonly ["redacted", "kind", "ordinal"];
|
|
657
|
+
readonly additionalProperties: false;
|
|
658
|
+
}];
|
|
659
|
+
};
|
|
660
|
+
readonly LocatorKind: {
|
|
661
|
+
readonly description: "What a locator names.";
|
|
662
|
+
readonly oneOf: readonly [{
|
|
663
|
+
readonly description: "A source name.";
|
|
664
|
+
readonly type: "string";
|
|
665
|
+
readonly const: "source";
|
|
666
|
+
}, {
|
|
667
|
+
readonly description: "An item id.";
|
|
668
|
+
readonly type: "string";
|
|
669
|
+
readonly const: "item";
|
|
670
|
+
}, {
|
|
671
|
+
readonly description: "A user-defined field name.";
|
|
672
|
+
readonly type: "string";
|
|
673
|
+
readonly const: "field";
|
|
674
|
+
}, {
|
|
675
|
+
readonly description: "A metadata key.";
|
|
676
|
+
readonly type: "string";
|
|
677
|
+
readonly const: "metadata-key";
|
|
678
|
+
}, {
|
|
679
|
+
readonly description: "A comment id.";
|
|
680
|
+
readonly type: "string";
|
|
681
|
+
readonly const: "comment";
|
|
682
|
+
}, {
|
|
683
|
+
readonly description: "A file path.";
|
|
684
|
+
readonly type: "string";
|
|
685
|
+
readonly const: "path";
|
|
686
|
+
}, {
|
|
687
|
+
readonly description: "A repository identity.";
|
|
688
|
+
readonly type: "string";
|
|
689
|
+
readonly const: "identity";
|
|
690
|
+
}];
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
};
|
|
291
694
|
readonly AuthorKind: {
|
|
292
695
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
293
696
|
readonly title: "AuthorKind";
|
|
@@ -8391,6 +8794,82 @@ export declare const runtimeSchemas: {
|
|
|
8391
8794
|
readonly additionalProperties: false;
|
|
8392
8795
|
}];
|
|
8393
8796
|
};
|
|
8797
|
+
readonly MemberDeclaration: {
|
|
8798
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
8799
|
+
readonly title: "MemberDeclaration";
|
|
8800
|
+
readonly description: "One member of a plan graph, as a project template's front matter declares it.";
|
|
8801
|
+
readonly type: "object";
|
|
8802
|
+
readonly properties: {
|
|
8803
|
+
readonly id: {
|
|
8804
|
+
readonly description: "The member task's native id, and how other members' `depends_on` name it.";
|
|
8805
|
+
readonly type: "string";
|
|
8806
|
+
};
|
|
8807
|
+
readonly title: {
|
|
8808
|
+
readonly description: "Its title.";
|
|
8809
|
+
readonly type: "string";
|
|
8810
|
+
};
|
|
8811
|
+
readonly template: {
|
|
8812
|
+
readonly description: "The task template its body is rendered from.";
|
|
8813
|
+
readonly $ref: "#/$defs/MemberTemplate";
|
|
8814
|
+
};
|
|
8815
|
+
readonly answers: {
|
|
8816
|
+
readonly description: "The answers its template is rendered with, by variable name.";
|
|
8817
|
+
readonly type: "object";
|
|
8818
|
+
readonly additionalProperties: true;
|
|
8819
|
+
readonly default: {};
|
|
8820
|
+
};
|
|
8821
|
+
readonly depends_on: {
|
|
8822
|
+
readonly description: "The ids of the members it depends on: each one a `blocks` edge, written before it.";
|
|
8823
|
+
readonly type: "array";
|
|
8824
|
+
readonly items: {
|
|
8825
|
+
readonly type: "string";
|
|
8826
|
+
};
|
|
8827
|
+
readonly default: readonly [];
|
|
8828
|
+
};
|
|
8829
|
+
readonly metadata: {
|
|
8830
|
+
readonly description: "Caller-owned metadata keys it is created with.";
|
|
8831
|
+
readonly type: "object";
|
|
8832
|
+
readonly additionalProperties: true;
|
|
8833
|
+
readonly default: {};
|
|
8834
|
+
};
|
|
8835
|
+
readonly repositories: {
|
|
8836
|
+
readonly description: "The repositories it concerns, as normalized origins.";
|
|
8837
|
+
readonly type: "array";
|
|
8838
|
+
readonly items: {
|
|
8839
|
+
readonly type: "string";
|
|
8840
|
+
};
|
|
8841
|
+
readonly default: readonly [];
|
|
8842
|
+
};
|
|
8843
|
+
};
|
|
8844
|
+
readonly additionalProperties: false;
|
|
8845
|
+
readonly required: readonly ["id", "title", "template"];
|
|
8846
|
+
readonly $defs: {
|
|
8847
|
+
readonly MemberTemplate: {
|
|
8848
|
+
readonly description: "Which task template a member's body is rendered from.";
|
|
8849
|
+
readonly oneOf: readonly [{
|
|
8850
|
+
readonly description: "A template file: an absolute path, or one relative to the directory the project template\nwas read from and then its search path.";
|
|
8851
|
+
readonly type: "object";
|
|
8852
|
+
readonly properties: {
|
|
8853
|
+
readonly file: {
|
|
8854
|
+
readonly type: "string";
|
|
8855
|
+
};
|
|
8856
|
+
};
|
|
8857
|
+
readonly required: readonly ["file"];
|
|
8858
|
+
readonly additionalProperties: false;
|
|
8859
|
+
}, {
|
|
8860
|
+
readonly description: "A template loader document's file, resolved as `file` is.";
|
|
8861
|
+
readonly type: "object";
|
|
8862
|
+
readonly properties: {
|
|
8863
|
+
readonly loader: {
|
|
8864
|
+
readonly type: "string";
|
|
8865
|
+
};
|
|
8866
|
+
};
|
|
8867
|
+
readonly required: readonly ["loader"];
|
|
8868
|
+
readonly additionalProperties: false;
|
|
8869
|
+
}];
|
|
8870
|
+
};
|
|
8871
|
+
};
|
|
8872
|
+
};
|
|
8394
8873
|
readonly MetadataSet: {
|
|
8395
8874
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
8396
8875
|
readonly title: "MetadataSet";
|
|
@@ -9906,6 +10385,100 @@ export declare const runtimeSchemas: {
|
|
|
9906
10385
|
};
|
|
9907
10386
|
};
|
|
9908
10387
|
};
|
|
10388
|
+
readonly PlannedProject: {
|
|
10389
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
10390
|
+
readonly title: "PlannedProject";
|
|
10391
|
+
readonly description: "What `project create --dry-run` answers: the project and every member it would create, in\nthe order it would create them, and nothing written.";
|
|
10392
|
+
readonly type: "object";
|
|
10393
|
+
readonly properties: {
|
|
10394
|
+
readonly source: {
|
|
10395
|
+
readonly description: "The source it would be created in.";
|
|
10396
|
+
readonly $ref: "#/$defs/SourceName";
|
|
10397
|
+
};
|
|
10398
|
+
readonly id: {
|
|
10399
|
+
readonly description: "The id it would be written under.";
|
|
10400
|
+
readonly $ref: "#/$defs/NativeId";
|
|
10401
|
+
};
|
|
10402
|
+
readonly title: {
|
|
10403
|
+
readonly description: "Its title.";
|
|
10404
|
+
readonly type: "string";
|
|
10405
|
+
};
|
|
10406
|
+
readonly content: {
|
|
10407
|
+
readonly description: "Its description, as it would be written.";
|
|
10408
|
+
readonly type: "string";
|
|
10409
|
+
};
|
|
10410
|
+
readonly members: {
|
|
10411
|
+
readonly description: "Each member, in the order it would be created: after every member it depends on.";
|
|
10412
|
+
readonly type: "array";
|
|
10413
|
+
readonly items: {
|
|
10414
|
+
readonly $ref: "#/$defs/PlannedMember";
|
|
10415
|
+
};
|
|
10416
|
+
};
|
|
10417
|
+
};
|
|
10418
|
+
readonly required: readonly ["source", "id", "title", "content", "members"];
|
|
10419
|
+
readonly $defs: {
|
|
10420
|
+
readonly SourceName: {
|
|
10421
|
+
readonly description: "The name a configuration document gives one configured source.";
|
|
10422
|
+
readonly type: "string";
|
|
10423
|
+
readonly pattern: "^[a-z0-9][a-z0-9-]*$";
|
|
10424
|
+
};
|
|
10425
|
+
readonly NativeId: {
|
|
10426
|
+
readonly description: "A source's own opaque identifier for one item.\n\nDeliberately unvalidated: a native id is whatever the upstream system says it\nis, colons included. The engine parses a qualified id by splitting on the\n*first* colon precisely so this stays true.";
|
|
10427
|
+
readonly type: "string";
|
|
10428
|
+
};
|
|
10429
|
+
readonly PlannedMember: {
|
|
10430
|
+
readonly description: "One member `project create --dry-run` would create.";
|
|
10431
|
+
readonly type: "object";
|
|
10432
|
+
readonly properties: {
|
|
10433
|
+
readonly id: {
|
|
10434
|
+
readonly description: "The id it would be offered to its source under.";
|
|
10435
|
+
readonly $ref: "#/$defs/NativeId";
|
|
10436
|
+
};
|
|
10437
|
+
readonly title: {
|
|
10438
|
+
readonly description: "Its title.";
|
|
10439
|
+
readonly type: "string";
|
|
10440
|
+
};
|
|
10441
|
+
readonly template: {
|
|
10442
|
+
readonly description: "The template its body is rendered from, as its provenance would record it; `null` for a\nbody given as it is.";
|
|
10443
|
+
readonly type: readonly ["string", "null"];
|
|
10444
|
+
};
|
|
10445
|
+
readonly content: {
|
|
10446
|
+
readonly description: "Its body, as it would be written.";
|
|
10447
|
+
readonly type: "string";
|
|
10448
|
+
};
|
|
10449
|
+
readonly answers: {
|
|
10450
|
+
readonly description: "The resolved answers its body was rendered with.";
|
|
10451
|
+
readonly type: "object";
|
|
10452
|
+
readonly additionalProperties: true;
|
|
10453
|
+
};
|
|
10454
|
+
readonly depends_on: {
|
|
10455
|
+
readonly description: "The members it would depend on, each a `blocks` edge.";
|
|
10456
|
+
readonly type: "array";
|
|
10457
|
+
readonly items: {
|
|
10458
|
+
readonly $ref: "#/$defs/NativeId";
|
|
10459
|
+
};
|
|
10460
|
+
};
|
|
10461
|
+
readonly metadata: {
|
|
10462
|
+
readonly description: "The caller's metadata keys it would carry.";
|
|
10463
|
+
readonly type: "object";
|
|
10464
|
+
readonly additionalProperties: true;
|
|
10465
|
+
};
|
|
10466
|
+
readonly repositories: {
|
|
10467
|
+
readonly description: "The repositories it concerns.";
|
|
10468
|
+
readonly type: "array";
|
|
10469
|
+
readonly items: {
|
|
10470
|
+
readonly $ref: "#/$defs/Repository";
|
|
10471
|
+
};
|
|
10472
|
+
};
|
|
10473
|
+
};
|
|
10474
|
+
readonly required: readonly ["id", "title", "content", "answers", "depends_on", "metadata", "repositories"];
|
|
10475
|
+
};
|
|
10476
|
+
readonly Repository: {
|
|
10477
|
+
readonly description: "A repository identified by its normalized origin, without a URL scheme or `.git` suffix.";
|
|
10478
|
+
readonly type: "string";
|
|
10479
|
+
};
|
|
10480
|
+
};
|
|
10481
|
+
};
|
|
9909
10482
|
readonly Predicate: {
|
|
9910
10483
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
9911
10484
|
readonly title: "Predicate";
|
|
@@ -10176,6 +10749,164 @@ export declare const runtimeSchemas: {
|
|
|
10176
10749
|
};
|
|
10177
10750
|
};
|
|
10178
10751
|
};
|
|
10752
|
+
readonly ProjectAttestationCheck: {
|
|
10753
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
10754
|
+
readonly title: "ProjectAttestationCheck";
|
|
10755
|
+
readonly description: "What `project attestation check --tasks` answers: one entry per task filed under the\nproject, in the order the source lists them.";
|
|
10756
|
+
readonly type: "object";
|
|
10757
|
+
readonly properties: {
|
|
10758
|
+
readonly project: {
|
|
10759
|
+
readonly description: "The project, by qualified id.";
|
|
10760
|
+
readonly $ref: "#/$defs/GlobalId";
|
|
10761
|
+
};
|
|
10762
|
+
readonly kind: {
|
|
10763
|
+
readonly description: "The kind asked about.";
|
|
10764
|
+
readonly $ref: "#/$defs/AttestationKind";
|
|
10765
|
+
};
|
|
10766
|
+
readonly tasks: {
|
|
10767
|
+
readonly description: "One entry per task.";
|
|
10768
|
+
readonly type: "array";
|
|
10769
|
+
readonly items: {
|
|
10770
|
+
readonly $ref: "#/$defs/TaskAttestationCheck";
|
|
10771
|
+
};
|
|
10772
|
+
};
|
|
10773
|
+
};
|
|
10774
|
+
readonly required: readonly ["project", "kind", "tasks"];
|
|
10775
|
+
readonly $defs: {
|
|
10776
|
+
readonly GlobalId: {
|
|
10777
|
+
readonly description: "One item, qualified by the source it came from.\n\nRendered `<source>:<native>` and parsed by splitting on the **first** colon,\nso a native id may contain colons freely.";
|
|
10778
|
+
readonly type: "string";
|
|
10779
|
+
};
|
|
10780
|
+
readonly AttestationKind: {
|
|
10781
|
+
readonly description: "One kind of attestation, such as `plan-review` or `design-approval`: one to 200 letters,\ndigits, `.`, `_` or `-`.";
|
|
10782
|
+
readonly type: "string";
|
|
10783
|
+
};
|
|
10784
|
+
readonly TaskAttestationCheck: {
|
|
10785
|
+
readonly description: "One task's entry in a project's check: the task's qualified id beside what its check found.";
|
|
10786
|
+
readonly type: "object";
|
|
10787
|
+
readonly properties: {
|
|
10788
|
+
readonly id: {
|
|
10789
|
+
readonly description: "The task, by qualified id.";
|
|
10790
|
+
readonly $ref: "#/$defs/GlobalId";
|
|
10791
|
+
};
|
|
10792
|
+
readonly kind: {
|
|
10793
|
+
readonly description: "The kind asked about.";
|
|
10794
|
+
readonly $ref: "#/$defs/AttestationKind";
|
|
10795
|
+
};
|
|
10796
|
+
readonly state: {
|
|
10797
|
+
readonly description: "What the check found.";
|
|
10798
|
+
readonly $ref: "#/$defs/AttestationState";
|
|
10799
|
+
};
|
|
10800
|
+
readonly reason: {
|
|
10801
|
+
readonly description: "Why the record is void: `null` unless `state` is `void`.";
|
|
10802
|
+
readonly anyOf: readonly [{
|
|
10803
|
+
readonly $ref: "#/$defs/VoidReason";
|
|
10804
|
+
}, {
|
|
10805
|
+
readonly type: "null";
|
|
10806
|
+
}];
|
|
10807
|
+
};
|
|
10808
|
+
readonly record: {
|
|
10809
|
+
readonly description: "The record of the kind the item holds, or `null` when it holds none.";
|
|
10810
|
+
readonly anyOf: readonly [{
|
|
10811
|
+
readonly $ref: "#/$defs/Attestation";
|
|
10812
|
+
}, {
|
|
10813
|
+
readonly type: "null";
|
|
10814
|
+
}];
|
|
10815
|
+
};
|
|
10816
|
+
};
|
|
10817
|
+
readonly required: readonly ["id", "kind", "state"];
|
|
10818
|
+
};
|
|
10819
|
+
readonly AttestationState: {
|
|
10820
|
+
readonly description: "What a check of one kind of attestation found.";
|
|
10821
|
+
readonly oneOf: readonly [{
|
|
10822
|
+
readonly description: "A record of the kind is there, the item's authored content is the content it cleared,\nand the bar asked about, when one was, is the bar it cleared it against.";
|
|
10823
|
+
readonly type: "string";
|
|
10824
|
+
readonly const: "valid";
|
|
10825
|
+
}, {
|
|
10826
|
+
readonly description: "A record of the kind is there and no longer holds: `reason` says why.";
|
|
10827
|
+
readonly type: "string";
|
|
10828
|
+
readonly const: "void";
|
|
10829
|
+
}, {
|
|
10830
|
+
readonly description: "The item holds no record of the kind.";
|
|
10831
|
+
readonly type: "string";
|
|
10832
|
+
readonly const: "absent";
|
|
10833
|
+
}];
|
|
10834
|
+
};
|
|
10835
|
+
readonly VoidReason: {
|
|
10836
|
+
readonly description: "Why a record of an attestation no longer holds.";
|
|
10837
|
+
readonly oneOf: readonly [{
|
|
10838
|
+
readonly description: "The item's authored content is not the content the record cleared.";
|
|
10839
|
+
readonly type: "string";
|
|
10840
|
+
readonly const: "content-moved";
|
|
10841
|
+
}, {
|
|
10842
|
+
readonly description: "The bar asked about is not the bar the record cleared the content against.";
|
|
10843
|
+
readonly type: "string";
|
|
10844
|
+
readonly const: "bar-moved";
|
|
10845
|
+
}];
|
|
10846
|
+
};
|
|
10847
|
+
readonly Attestation: {
|
|
10848
|
+
readonly description: "One attestation: who cleared the item's authored content, when, which content and against\nwhich bar.";
|
|
10849
|
+
readonly type: "object";
|
|
10850
|
+
readonly properties: {
|
|
10851
|
+
readonly kind: {
|
|
10852
|
+
readonly description: "The kind of attestation this is; the key it is held under.";
|
|
10853
|
+
readonly $ref: "#/$defs/AttestationKind";
|
|
10854
|
+
};
|
|
10855
|
+
readonly by: {
|
|
10856
|
+
readonly description: "Who attested, as the caller labels them.";
|
|
10857
|
+
readonly $ref: "#/$defs/AttestationLabel";
|
|
10858
|
+
};
|
|
10859
|
+
readonly at: {
|
|
10860
|
+
readonly description: "When it was recorded, in RFC 3339 to the second.";
|
|
10861
|
+
readonly type: "string";
|
|
10862
|
+
readonly format: "date-time";
|
|
10863
|
+
};
|
|
10864
|
+
readonly content_digest: {
|
|
10865
|
+
readonly description: "The digest of the item's authored content when it was recorded, computed by the store\n(see the module's documentation).";
|
|
10866
|
+
readonly $ref: "#/$defs/Sha256Digest";
|
|
10867
|
+
};
|
|
10868
|
+
readonly bar: {
|
|
10869
|
+
readonly description: "The fingerprint of the bar the content was cleared against, as the caller gave it.";
|
|
10870
|
+
readonly $ref: "#/$defs/AttestationLabel";
|
|
10871
|
+
};
|
|
10872
|
+
readonly note: {
|
|
10873
|
+
readonly description: "What the attester added, when they added anything.";
|
|
10874
|
+
readonly anyOf: readonly [{
|
|
10875
|
+
readonly $ref: "#/$defs/AttestationNote";
|
|
10876
|
+
}, {
|
|
10877
|
+
readonly type: "null";
|
|
10878
|
+
}];
|
|
10879
|
+
};
|
|
10880
|
+
readonly excludes: {
|
|
10881
|
+
readonly description: "The caller-owned metadata keys left out of `content_digest`, sorted; empty when none\nwere.";
|
|
10882
|
+
readonly type: "array";
|
|
10883
|
+
readonly items: {
|
|
10884
|
+
readonly $ref: "#/$defs/MetadataKey";
|
|
10885
|
+
};
|
|
10886
|
+
readonly default: readonly [];
|
|
10887
|
+
};
|
|
10888
|
+
};
|
|
10889
|
+
readonly required: readonly ["kind", "by", "at", "content_digest", "bar"];
|
|
10890
|
+
};
|
|
10891
|
+
readonly AttestationLabel: {
|
|
10892
|
+
readonly description: "Who attested, or the fingerprint of a bar: one line of one to 200 characters, not blank.";
|
|
10893
|
+
readonly type: "string";
|
|
10894
|
+
};
|
|
10895
|
+
readonly Sha256Digest: {
|
|
10896
|
+
readonly description: "`sha256:` and 64 lowercase hex digits.";
|
|
10897
|
+
readonly type: "string";
|
|
10898
|
+
readonly pattern: "^sha256:[0-9a-f]{64}$";
|
|
10899
|
+
};
|
|
10900
|
+
readonly AttestationNote: {
|
|
10901
|
+
readonly description: "What an attester adds: text of any length and any number of lines, not blank.";
|
|
10902
|
+
readonly type: "string";
|
|
10903
|
+
};
|
|
10904
|
+
readonly MetadataKey: {
|
|
10905
|
+
readonly description: "One caller-owned metadata key: `<namespace>.<name>`, at least two non-empty segments\nseparated by dots, whose first segment is not [`MetadataKey::RESERVED_NAMESPACE`].\n\nValidated wherever one is built, deserialized included, so a plugin handed one never has\nto ask whether it names a key this product owns.";
|
|
10906
|
+
readonly type: "string";
|
|
10907
|
+
};
|
|
10908
|
+
};
|
|
10909
|
+
};
|
|
10179
10910
|
readonly ProjectGraph: {
|
|
10180
10911
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
10181
10912
|
readonly title: "ProjectGraph";
|
|
@@ -23361,6 +24092,9 @@ export declare const runtimeSchemas: {
|
|
|
23361
24092
|
readonly default: {
|
|
23362
24093
|
readonly description: "The value used when no answer is given.";
|
|
23363
24094
|
};
|
|
24095
|
+
readonly schema: {
|
|
24096
|
+
readonly description: "The JSON Schema (draft 2020-12) every answer must satisfy, for an `object` or `list`\nvariable that declares one; absent for every other.";
|
|
24097
|
+
};
|
|
23364
24098
|
readonly declared_in: {
|
|
23365
24099
|
readonly description: "The chain file whose declaration this is: the one nearest the rendered template.";
|
|
23366
24100
|
readonly type: "string";
|
|
@@ -23465,6 +24199,9 @@ export declare const runtimeSchemas: {
|
|
|
23465
24199
|
readonly default: {
|
|
23466
24200
|
readonly description: "The value used when no answer is given.";
|
|
23467
24201
|
};
|
|
24202
|
+
readonly schema: {
|
|
24203
|
+
readonly description: "The JSON Schema (draft 2020-12) every answer must satisfy, for an `object` or `list`\nvariable that declares one; absent for every other.";
|
|
24204
|
+
};
|
|
23468
24205
|
readonly declared_in: {
|
|
23469
24206
|
readonly description: "The chain file whose declaration this is: the one nearest the rendered template.";
|
|
23470
24207
|
readonly type: "string";
|
|
@@ -23600,6 +24337,20 @@ export declare const runtimeSchemas: {
|
|
|
23600
24337
|
readonly const: "object";
|
|
23601
24338
|
}];
|
|
23602
24339
|
};
|
|
24340
|
+
readonly VoidReason: {
|
|
24341
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
24342
|
+
readonly title: "VoidReason";
|
|
24343
|
+
readonly description: "Why a record of an attestation no longer holds.";
|
|
24344
|
+
readonly oneOf: readonly [{
|
|
24345
|
+
readonly description: "The item's authored content is not the content the record cleared.";
|
|
24346
|
+
readonly type: "string";
|
|
24347
|
+
readonly const: "content-moved";
|
|
24348
|
+
}, {
|
|
24349
|
+
readonly description: "The bar asked about is not the bar the record cleared the content against.";
|
|
24350
|
+
readonly type: "string";
|
|
24351
|
+
readonly const: "bar-moved";
|
|
24352
|
+
}];
|
|
24353
|
+
};
|
|
23603
24354
|
readonly WritePolicyConfig: {
|
|
23604
24355
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
23605
24356
|
readonly title: "WritePolicyConfig";
|