@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
package/dist/index.js
CHANGED
|
@@ -7164,6 +7164,8 @@ var binaryCommands = [
|
|
|
7164
7164
|
"task priority set",
|
|
7165
7165
|
"task content set",
|
|
7166
7166
|
"task metadata set",
|
|
7167
|
+
"task attest",
|
|
7168
|
+
"task attestation check",
|
|
7167
7169
|
"task update",
|
|
7168
7170
|
"task create",
|
|
7169
7171
|
"task render",
|
|
@@ -7176,6 +7178,8 @@ var binaryCommands = [
|
|
|
7176
7178
|
"project graph",
|
|
7177
7179
|
"project copy",
|
|
7178
7180
|
"project metadata set",
|
|
7181
|
+
"project attest",
|
|
7182
|
+
"project attestation check",
|
|
7179
7183
|
"project status set",
|
|
7180
7184
|
"project create",
|
|
7181
7185
|
"project render",
|
|
@@ -7184,6 +7188,8 @@ var binaryCommands = [
|
|
|
7184
7188
|
"document show",
|
|
7185
7189
|
"document copy",
|
|
7186
7190
|
"document metadata set",
|
|
7191
|
+
"document attest",
|
|
7192
|
+
"document attestation check",
|
|
7187
7193
|
"document create",
|
|
7188
7194
|
"document render",
|
|
7189
7195
|
"document answers",
|
|
@@ -7195,7 +7201,7 @@ var binaryCommands = [
|
|
|
7195
7201
|
];
|
|
7196
7202
|
|
|
7197
7203
|
// src/generated/models.ts
|
|
7198
|
-
var SCHEMA_BUNDLE_VERSION =
|
|
7204
|
+
var SCHEMA_BUNDLE_VERSION = 59;
|
|
7199
7205
|
|
|
7200
7206
|
// src/generated/schemas.ts
|
|
7201
7207
|
var runtimeSchemas = {
|
|
@@ -7560,6 +7566,495 @@ is, colons included. The engine parses a qualified id by splitting on the
|
|
|
7560
7566
|
}
|
|
7561
7567
|
}
|
|
7562
7568
|
},
|
|
7569
|
+
Attestation: {
|
|
7570
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7571
|
+
title: "Attestation",
|
|
7572
|
+
description: `One attestation: who cleared the item's authored content, when, which content and against
|
|
7573
|
+
which bar.`,
|
|
7574
|
+
type: "object",
|
|
7575
|
+
properties: {
|
|
7576
|
+
kind: {
|
|
7577
|
+
description: "The kind of attestation this is; the key it is held under.",
|
|
7578
|
+
$ref: "#/$defs/AttestationKind"
|
|
7579
|
+
},
|
|
7580
|
+
by: {
|
|
7581
|
+
description: "Who attested, as the caller labels them.",
|
|
7582
|
+
$ref: "#/$defs/AttestationLabel"
|
|
7583
|
+
},
|
|
7584
|
+
at: {
|
|
7585
|
+
description: "When it was recorded, in RFC 3339 to the second.",
|
|
7586
|
+
type: "string",
|
|
7587
|
+
format: "date-time"
|
|
7588
|
+
},
|
|
7589
|
+
content_digest: {
|
|
7590
|
+
description: `The digest of the item's authored content when it was recorded, computed by the store
|
|
7591
|
+
(see the module's documentation).`,
|
|
7592
|
+
$ref: "#/$defs/Sha256Digest"
|
|
7593
|
+
},
|
|
7594
|
+
bar: {
|
|
7595
|
+
description: "The fingerprint of the bar the content was cleared against, as the caller gave it.",
|
|
7596
|
+
$ref: "#/$defs/AttestationLabel"
|
|
7597
|
+
},
|
|
7598
|
+
note: {
|
|
7599
|
+
description: "What the attester added, when they added anything.",
|
|
7600
|
+
anyOf: [
|
|
7601
|
+
{
|
|
7602
|
+
$ref: "#/$defs/AttestationNote"
|
|
7603
|
+
},
|
|
7604
|
+
{
|
|
7605
|
+
type: "null"
|
|
7606
|
+
}
|
|
7607
|
+
]
|
|
7608
|
+
},
|
|
7609
|
+
excludes: {
|
|
7610
|
+
description: "The caller-owned metadata keys left out of `content_digest`, sorted; empty when none\nwere.",
|
|
7611
|
+
type: "array",
|
|
7612
|
+
items: {
|
|
7613
|
+
$ref: "#/$defs/MetadataKey"
|
|
7614
|
+
},
|
|
7615
|
+
default: []
|
|
7616
|
+
}
|
|
7617
|
+
},
|
|
7618
|
+
required: [
|
|
7619
|
+
"kind",
|
|
7620
|
+
"by",
|
|
7621
|
+
"at",
|
|
7622
|
+
"content_digest",
|
|
7623
|
+
"bar"
|
|
7624
|
+
],
|
|
7625
|
+
$defs: {
|
|
7626
|
+
AttestationKind: {
|
|
7627
|
+
description: "One kind of attestation, such as `plan-review` or `design-approval`: one to 200 letters,\ndigits, `.`, `_` or `-`.",
|
|
7628
|
+
type: "string"
|
|
7629
|
+
},
|
|
7630
|
+
AttestationLabel: {
|
|
7631
|
+
description: "Who attested, or the fingerprint of a bar: one line of one to 200 characters, not blank.",
|
|
7632
|
+
type: "string"
|
|
7633
|
+
},
|
|
7634
|
+
Sha256Digest: {
|
|
7635
|
+
description: "`sha256:` and 64 lowercase hex digits.",
|
|
7636
|
+
type: "string",
|
|
7637
|
+
pattern: "^sha256:[0-9a-f]{64}$"
|
|
7638
|
+
},
|
|
7639
|
+
AttestationNote: {
|
|
7640
|
+
description: "What an attester adds: text of any length and any number of lines, not blank.",
|
|
7641
|
+
type: "string"
|
|
7642
|
+
},
|
|
7643
|
+
MetadataKey: {
|
|
7644
|
+
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.",
|
|
7645
|
+
type: "string"
|
|
7646
|
+
}
|
|
7647
|
+
}
|
|
7648
|
+
},
|
|
7649
|
+
AttestationCheck: {
|
|
7650
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7651
|
+
title: "AttestationCheck",
|
|
7652
|
+
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.",
|
|
7653
|
+
type: "object",
|
|
7654
|
+
properties: {
|
|
7655
|
+
kind: {
|
|
7656
|
+
description: "The kind asked about.",
|
|
7657
|
+
$ref: "#/$defs/AttestationKind"
|
|
7658
|
+
},
|
|
7659
|
+
state: {
|
|
7660
|
+
description: "What the check found.",
|
|
7661
|
+
$ref: "#/$defs/AttestationState"
|
|
7662
|
+
},
|
|
7663
|
+
reason: {
|
|
7664
|
+
description: "Why the record is void: `null` unless `state` is `void`.",
|
|
7665
|
+
anyOf: [
|
|
7666
|
+
{
|
|
7667
|
+
$ref: "#/$defs/VoidReason"
|
|
7668
|
+
},
|
|
7669
|
+
{
|
|
7670
|
+
type: "null"
|
|
7671
|
+
}
|
|
7672
|
+
]
|
|
7673
|
+
},
|
|
7674
|
+
record: {
|
|
7675
|
+
description: "The record of the kind the item holds, or `null` when it holds none.",
|
|
7676
|
+
anyOf: [
|
|
7677
|
+
{
|
|
7678
|
+
$ref: "#/$defs/Attestation"
|
|
7679
|
+
},
|
|
7680
|
+
{
|
|
7681
|
+
type: "null"
|
|
7682
|
+
}
|
|
7683
|
+
]
|
|
7684
|
+
}
|
|
7685
|
+
},
|
|
7686
|
+
required: [
|
|
7687
|
+
"kind",
|
|
7688
|
+
"state"
|
|
7689
|
+
],
|
|
7690
|
+
$defs: {
|
|
7691
|
+
AttestationKind: {
|
|
7692
|
+
description: "One kind of attestation, such as `plan-review` or `design-approval`: one to 200 letters,\ndigits, `.`, `_` or `-`.",
|
|
7693
|
+
type: "string"
|
|
7694
|
+
},
|
|
7695
|
+
AttestationState: {
|
|
7696
|
+
description: "What a check of one kind of attestation found.",
|
|
7697
|
+
oneOf: [
|
|
7698
|
+
{
|
|
7699
|
+
description: `A record of the kind is there, the item's authored content is the content it cleared,
|
|
7700
|
+
and the bar asked about, when one was, is the bar it cleared it against.`,
|
|
7701
|
+
type: "string",
|
|
7702
|
+
const: "valid"
|
|
7703
|
+
},
|
|
7704
|
+
{
|
|
7705
|
+
description: "A record of the kind is there and no longer holds: `reason` says why.",
|
|
7706
|
+
type: "string",
|
|
7707
|
+
const: "void"
|
|
7708
|
+
},
|
|
7709
|
+
{
|
|
7710
|
+
description: "The item holds no record of the kind.",
|
|
7711
|
+
type: "string",
|
|
7712
|
+
const: "absent"
|
|
7713
|
+
}
|
|
7714
|
+
]
|
|
7715
|
+
},
|
|
7716
|
+
VoidReason: {
|
|
7717
|
+
description: "Why a record of an attestation no longer holds.",
|
|
7718
|
+
oneOf: [
|
|
7719
|
+
{
|
|
7720
|
+
description: "The item's authored content is not the content the record cleared.",
|
|
7721
|
+
type: "string",
|
|
7722
|
+
const: "content-moved"
|
|
7723
|
+
},
|
|
7724
|
+
{
|
|
7725
|
+
description: "The bar asked about is not the bar the record cleared the content against.",
|
|
7726
|
+
type: "string",
|
|
7727
|
+
const: "bar-moved"
|
|
7728
|
+
}
|
|
7729
|
+
]
|
|
7730
|
+
},
|
|
7731
|
+
Attestation: {
|
|
7732
|
+
description: `One attestation: who cleared the item's authored content, when, which content and against
|
|
7733
|
+
which bar.`,
|
|
7734
|
+
type: "object",
|
|
7735
|
+
properties: {
|
|
7736
|
+
kind: {
|
|
7737
|
+
description: "The kind of attestation this is; the key it is held under.",
|
|
7738
|
+
$ref: "#/$defs/AttestationKind"
|
|
7739
|
+
},
|
|
7740
|
+
by: {
|
|
7741
|
+
description: "Who attested, as the caller labels them.",
|
|
7742
|
+
$ref: "#/$defs/AttestationLabel"
|
|
7743
|
+
},
|
|
7744
|
+
at: {
|
|
7745
|
+
description: "When it was recorded, in RFC 3339 to the second.",
|
|
7746
|
+
type: "string",
|
|
7747
|
+
format: "date-time"
|
|
7748
|
+
},
|
|
7749
|
+
content_digest: {
|
|
7750
|
+
description: `The digest of the item's authored content when it was recorded, computed by the store
|
|
7751
|
+
(see the module's documentation).`,
|
|
7752
|
+
$ref: "#/$defs/Sha256Digest"
|
|
7753
|
+
},
|
|
7754
|
+
bar: {
|
|
7755
|
+
description: "The fingerprint of the bar the content was cleared against, as the caller gave it.",
|
|
7756
|
+
$ref: "#/$defs/AttestationLabel"
|
|
7757
|
+
},
|
|
7758
|
+
note: {
|
|
7759
|
+
description: "What the attester added, when they added anything.",
|
|
7760
|
+
anyOf: [
|
|
7761
|
+
{
|
|
7762
|
+
$ref: "#/$defs/AttestationNote"
|
|
7763
|
+
},
|
|
7764
|
+
{
|
|
7765
|
+
type: "null"
|
|
7766
|
+
}
|
|
7767
|
+
]
|
|
7768
|
+
},
|
|
7769
|
+
excludes: {
|
|
7770
|
+
description: "The caller-owned metadata keys left out of `content_digest`, sorted; empty when none\nwere.",
|
|
7771
|
+
type: "array",
|
|
7772
|
+
items: {
|
|
7773
|
+
$ref: "#/$defs/MetadataKey"
|
|
7774
|
+
},
|
|
7775
|
+
default: []
|
|
7776
|
+
}
|
|
7777
|
+
},
|
|
7778
|
+
required: [
|
|
7779
|
+
"kind",
|
|
7780
|
+
"by",
|
|
7781
|
+
"at",
|
|
7782
|
+
"content_digest",
|
|
7783
|
+
"bar"
|
|
7784
|
+
]
|
|
7785
|
+
},
|
|
7786
|
+
AttestationLabel: {
|
|
7787
|
+
description: "Who attested, or the fingerprint of a bar: one line of one to 200 characters, not blank.",
|
|
7788
|
+
type: "string"
|
|
7789
|
+
},
|
|
7790
|
+
Sha256Digest: {
|
|
7791
|
+
description: "`sha256:` and 64 lowercase hex digits.",
|
|
7792
|
+
type: "string",
|
|
7793
|
+
pattern: "^sha256:[0-9a-f]{64}$"
|
|
7794
|
+
},
|
|
7795
|
+
AttestationNote: {
|
|
7796
|
+
description: "What an attester adds: text of any length and any number of lines, not blank.",
|
|
7797
|
+
type: "string"
|
|
7798
|
+
},
|
|
7799
|
+
MetadataKey: {
|
|
7800
|
+
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.",
|
|
7801
|
+
type: "string"
|
|
7802
|
+
}
|
|
7803
|
+
}
|
|
7804
|
+
},
|
|
7805
|
+
AttestationState: {
|
|
7806
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7807
|
+
title: "AttestationState",
|
|
7808
|
+
description: "What a check of one kind of attestation found.",
|
|
7809
|
+
oneOf: [
|
|
7810
|
+
{
|
|
7811
|
+
description: `A record of the kind is there, the item's authored content is the content it cleared,
|
|
7812
|
+
and the bar asked about, when one was, is the bar it cleared it against.`,
|
|
7813
|
+
type: "string",
|
|
7814
|
+
const: "valid"
|
|
7815
|
+
},
|
|
7816
|
+
{
|
|
7817
|
+
description: "A record of the kind is there and no longer holds: `reason` says why.",
|
|
7818
|
+
type: "string",
|
|
7819
|
+
const: "void"
|
|
7820
|
+
},
|
|
7821
|
+
{
|
|
7822
|
+
description: "The item holds no record of the kind.",
|
|
7823
|
+
type: "string",
|
|
7824
|
+
const: "absent"
|
|
7825
|
+
}
|
|
7826
|
+
]
|
|
7827
|
+
},
|
|
7828
|
+
Attested: {
|
|
7829
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7830
|
+
title: "Attested",
|
|
7831
|
+
description: "What `attest` answers: the record it wrote, on the item it wrote it to.",
|
|
7832
|
+
type: "object",
|
|
7833
|
+
properties: {
|
|
7834
|
+
id: {
|
|
7835
|
+
description: "The item, by qualified id.",
|
|
7836
|
+
$ref: "#/$defs/GlobalId"
|
|
7837
|
+
},
|
|
7838
|
+
record: {
|
|
7839
|
+
description: "The record as the source holds it after the write.",
|
|
7840
|
+
$ref: "#/$defs/Attestation"
|
|
7841
|
+
},
|
|
7842
|
+
sanitization: {
|
|
7843
|
+
anyOf: [
|
|
7844
|
+
{
|
|
7845
|
+
$ref: "#/$defs/Sanitization"
|
|
7846
|
+
},
|
|
7847
|
+
{
|
|
7848
|
+
type: "null"
|
|
7849
|
+
}
|
|
7850
|
+
]
|
|
7851
|
+
}
|
|
7852
|
+
},
|
|
7853
|
+
required: [
|
|
7854
|
+
"id",
|
|
7855
|
+
"record"
|
|
7856
|
+
],
|
|
7857
|
+
$defs: {
|
|
7858
|
+
GlobalId: {
|
|
7859
|
+
description: `One item, qualified by the source it came from.
|
|
7860
|
+
|
|
7861
|
+
Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
|
|
7862
|
+
so a native id may contain colons freely.`,
|
|
7863
|
+
type: "string"
|
|
7864
|
+
},
|
|
7865
|
+
Attestation: {
|
|
7866
|
+
description: `One attestation: who cleared the item's authored content, when, which content and against
|
|
7867
|
+
which bar.`,
|
|
7868
|
+
type: "object",
|
|
7869
|
+
properties: {
|
|
7870
|
+
kind: {
|
|
7871
|
+
description: "The kind of attestation this is; the key it is held under.",
|
|
7872
|
+
$ref: "#/$defs/AttestationKind"
|
|
7873
|
+
},
|
|
7874
|
+
by: {
|
|
7875
|
+
description: "Who attested, as the caller labels them.",
|
|
7876
|
+
$ref: "#/$defs/AttestationLabel"
|
|
7877
|
+
},
|
|
7878
|
+
at: {
|
|
7879
|
+
description: "When it was recorded, in RFC 3339 to the second.",
|
|
7880
|
+
type: "string",
|
|
7881
|
+
format: "date-time"
|
|
7882
|
+
},
|
|
7883
|
+
content_digest: {
|
|
7884
|
+
description: `The digest of the item's authored content when it was recorded, computed by the store
|
|
7885
|
+
(see the module's documentation).`,
|
|
7886
|
+
$ref: "#/$defs/Sha256Digest"
|
|
7887
|
+
},
|
|
7888
|
+
bar: {
|
|
7889
|
+
description: "The fingerprint of the bar the content was cleared against, as the caller gave it.",
|
|
7890
|
+
$ref: "#/$defs/AttestationLabel"
|
|
7891
|
+
},
|
|
7892
|
+
note: {
|
|
7893
|
+
description: "What the attester added, when they added anything.",
|
|
7894
|
+
anyOf: [
|
|
7895
|
+
{
|
|
7896
|
+
$ref: "#/$defs/AttestationNote"
|
|
7897
|
+
},
|
|
7898
|
+
{
|
|
7899
|
+
type: "null"
|
|
7900
|
+
}
|
|
7901
|
+
]
|
|
7902
|
+
},
|
|
7903
|
+
excludes: {
|
|
7904
|
+
description: "The caller-owned metadata keys left out of `content_digest`, sorted; empty when none\nwere.",
|
|
7905
|
+
type: "array",
|
|
7906
|
+
items: {
|
|
7907
|
+
$ref: "#/$defs/MetadataKey"
|
|
7908
|
+
},
|
|
7909
|
+
default: []
|
|
7910
|
+
}
|
|
7911
|
+
},
|
|
7912
|
+
required: [
|
|
7913
|
+
"kind",
|
|
7914
|
+
"by",
|
|
7915
|
+
"at",
|
|
7916
|
+
"content_digest",
|
|
7917
|
+
"bar"
|
|
7918
|
+
]
|
|
7919
|
+
},
|
|
7920
|
+
AttestationKind: {
|
|
7921
|
+
description: "One kind of attestation, such as `plan-review` or `design-approval`: one to 200 letters,\ndigits, `.`, `_` or `-`.",
|
|
7922
|
+
type: "string"
|
|
7923
|
+
},
|
|
7924
|
+
AttestationLabel: {
|
|
7925
|
+
description: "Who attested, or the fingerprint of a bar: one line of one to 200 characters, not blank.",
|
|
7926
|
+
type: "string"
|
|
7927
|
+
},
|
|
7928
|
+
Sha256Digest: {
|
|
7929
|
+
description: "`sha256:` and 64 lowercase hex digits.",
|
|
7930
|
+
type: "string",
|
|
7931
|
+
pattern: "^sha256:[0-9a-f]{64}$"
|
|
7932
|
+
},
|
|
7933
|
+
AttestationNote: {
|
|
7934
|
+
description: "What an attester adds: text of any length and any number of lines, not blank.",
|
|
7935
|
+
type: "string"
|
|
7936
|
+
},
|
|
7937
|
+
MetadataKey: {
|
|
7938
|
+
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.",
|
|
7939
|
+
type: "string"
|
|
7940
|
+
},
|
|
7941
|
+
Sanitization: {
|
|
7942
|
+
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.",
|
|
7943
|
+
type: "object",
|
|
7944
|
+
properties: {
|
|
7945
|
+
replaced: {
|
|
7946
|
+
description: "Spans the writes' own sanitisations rewrote.",
|
|
7947
|
+
type: "integer",
|
|
7948
|
+
format: "uint32",
|
|
7949
|
+
minimum: 0
|
|
7950
|
+
},
|
|
7951
|
+
side_effect: {
|
|
7952
|
+
description: "Each field or comment of an item sanitisation changed beyond the write itself.",
|
|
7953
|
+
type: "array",
|
|
7954
|
+
items: {
|
|
7955
|
+
$ref: "#/$defs/SideEffect"
|
|
7956
|
+
}
|
|
7957
|
+
},
|
|
7958
|
+
dry_run: {
|
|
7959
|
+
description: "Whether nothing was written, the changes only reported.",
|
|
7960
|
+
type: "boolean"
|
|
7961
|
+
}
|
|
7962
|
+
},
|
|
7963
|
+
required: [
|
|
7964
|
+
"replaced",
|
|
7965
|
+
"side_effect",
|
|
7966
|
+
"dry_run"
|
|
7967
|
+
]
|
|
7968
|
+
},
|
|
7969
|
+
SideEffect: {
|
|
7970
|
+
description: "One field or comment of an item a sanitisation changed, named by screened locators.",
|
|
7971
|
+
type: "object",
|
|
7972
|
+
properties: {
|
|
7973
|
+
item: {
|
|
7974
|
+
description: "The item, by its qualified id as screened.",
|
|
7975
|
+
$ref: "#/$defs/Locator"
|
|
7976
|
+
},
|
|
7977
|
+
field: {
|
|
7978
|
+
description: "The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.",
|
|
7979
|
+
$ref: "#/$defs/Locator"
|
|
7980
|
+
}
|
|
7981
|
+
},
|
|
7982
|
+
required: [
|
|
7983
|
+
"item",
|
|
7984
|
+
"field"
|
|
7985
|
+
]
|
|
7986
|
+
},
|
|
7987
|
+
Locator: {
|
|
7988
|
+
description: "A screened locator: the string verbatim, or its redacted form.",
|
|
7989
|
+
oneOf: [
|
|
7990
|
+
{
|
|
7991
|
+
type: "string"
|
|
7992
|
+
},
|
|
7993
|
+
{
|
|
7994
|
+
type: "object",
|
|
7995
|
+
properties: {
|
|
7996
|
+
redacted: {
|
|
7997
|
+
const: true
|
|
7998
|
+
},
|
|
7999
|
+
kind: {
|
|
8000
|
+
$ref: "#/$defs/LocatorKind"
|
|
8001
|
+
},
|
|
8002
|
+
ordinal: {
|
|
8003
|
+
type: "integer",
|
|
8004
|
+
minimum: 1
|
|
8005
|
+
}
|
|
8006
|
+
},
|
|
8007
|
+
required: [
|
|
8008
|
+
"redacted",
|
|
8009
|
+
"kind",
|
|
8010
|
+
"ordinal"
|
|
8011
|
+
],
|
|
8012
|
+
additionalProperties: false
|
|
8013
|
+
}
|
|
8014
|
+
]
|
|
8015
|
+
},
|
|
8016
|
+
LocatorKind: {
|
|
8017
|
+
description: "What a locator names.",
|
|
8018
|
+
oneOf: [
|
|
8019
|
+
{
|
|
8020
|
+
description: "A source name.",
|
|
8021
|
+
type: "string",
|
|
8022
|
+
const: "source"
|
|
8023
|
+
},
|
|
8024
|
+
{
|
|
8025
|
+
description: "An item id.",
|
|
8026
|
+
type: "string",
|
|
8027
|
+
const: "item"
|
|
8028
|
+
},
|
|
8029
|
+
{
|
|
8030
|
+
description: "A user-defined field name.",
|
|
8031
|
+
type: "string",
|
|
8032
|
+
const: "field"
|
|
8033
|
+
},
|
|
8034
|
+
{
|
|
8035
|
+
description: "A metadata key.",
|
|
8036
|
+
type: "string",
|
|
8037
|
+
const: "metadata-key"
|
|
8038
|
+
},
|
|
8039
|
+
{
|
|
8040
|
+
description: "A comment id.",
|
|
8041
|
+
type: "string",
|
|
8042
|
+
const: "comment"
|
|
8043
|
+
},
|
|
8044
|
+
{
|
|
8045
|
+
description: "A file path.",
|
|
8046
|
+
type: "string",
|
|
8047
|
+
const: "path"
|
|
8048
|
+
},
|
|
8049
|
+
{
|
|
8050
|
+
description: "A repository identity.",
|
|
8051
|
+
type: "string",
|
|
8052
|
+
const: "identity"
|
|
8053
|
+
}
|
|
8054
|
+
]
|
|
8055
|
+
}
|
|
8056
|
+
}
|
|
8057
|
+
},
|
|
7563
8058
|
AuthorKind: {
|
|
7564
8059
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7565
8060
|
title: "AuthorKind",
|
|
@@ -18608,6 +19103,94 @@ absolute path, so a reader can print the path or read the contents out.`,
|
|
|
18608
19103
|
}
|
|
18609
19104
|
]
|
|
18610
19105
|
},
|
|
19106
|
+
MemberDeclaration: {
|
|
19107
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
19108
|
+
title: "MemberDeclaration",
|
|
19109
|
+
description: "One member of a plan graph, as a project template's front matter declares it.",
|
|
19110
|
+
type: "object",
|
|
19111
|
+
properties: {
|
|
19112
|
+
id: {
|
|
19113
|
+
description: "The member task's native id, and how other members' `depends_on` name it.",
|
|
19114
|
+
type: "string"
|
|
19115
|
+
},
|
|
19116
|
+
title: {
|
|
19117
|
+
description: "Its title.",
|
|
19118
|
+
type: "string"
|
|
19119
|
+
},
|
|
19120
|
+
template: {
|
|
19121
|
+
description: "The task template its body is rendered from.",
|
|
19122
|
+
$ref: "#/$defs/MemberTemplate"
|
|
19123
|
+
},
|
|
19124
|
+
answers: {
|
|
19125
|
+
description: "The answers its template is rendered with, by variable name.",
|
|
19126
|
+
type: "object",
|
|
19127
|
+
additionalProperties: true,
|
|
19128
|
+
default: {}
|
|
19129
|
+
},
|
|
19130
|
+
depends_on: {
|
|
19131
|
+
description: "The ids of the members it depends on: each one a `blocks` edge, written before it.",
|
|
19132
|
+
type: "array",
|
|
19133
|
+
items: {
|
|
19134
|
+
type: "string"
|
|
19135
|
+
},
|
|
19136
|
+
default: []
|
|
19137
|
+
},
|
|
19138
|
+
metadata: {
|
|
19139
|
+
description: "Caller-owned metadata keys it is created with.",
|
|
19140
|
+
type: "object",
|
|
19141
|
+
additionalProperties: true,
|
|
19142
|
+
default: {}
|
|
19143
|
+
},
|
|
19144
|
+
repositories: {
|
|
19145
|
+
description: "The repositories it concerns, as normalized origins.",
|
|
19146
|
+
type: "array",
|
|
19147
|
+
items: {
|
|
19148
|
+
type: "string"
|
|
19149
|
+
},
|
|
19150
|
+
default: []
|
|
19151
|
+
}
|
|
19152
|
+
},
|
|
19153
|
+
additionalProperties: false,
|
|
19154
|
+
required: [
|
|
19155
|
+
"id",
|
|
19156
|
+
"title",
|
|
19157
|
+
"template"
|
|
19158
|
+
],
|
|
19159
|
+
$defs: {
|
|
19160
|
+
MemberTemplate: {
|
|
19161
|
+
description: "Which task template a member's body is rendered from.",
|
|
19162
|
+
oneOf: [
|
|
19163
|
+
{
|
|
19164
|
+
description: `A template file: an absolute path, or one relative to the directory the project template
|
|
19165
|
+
was read from and then its search path.`,
|
|
19166
|
+
type: "object",
|
|
19167
|
+
properties: {
|
|
19168
|
+
file: {
|
|
19169
|
+
type: "string"
|
|
19170
|
+
}
|
|
19171
|
+
},
|
|
19172
|
+
required: [
|
|
19173
|
+
"file"
|
|
19174
|
+
],
|
|
19175
|
+
additionalProperties: false
|
|
19176
|
+
},
|
|
19177
|
+
{
|
|
19178
|
+
description: "A template loader document's file, resolved as `file` is.",
|
|
19179
|
+
type: "object",
|
|
19180
|
+
properties: {
|
|
19181
|
+
loader: {
|
|
19182
|
+
type: "string"
|
|
19183
|
+
}
|
|
19184
|
+
},
|
|
19185
|
+
required: [
|
|
19186
|
+
"loader"
|
|
19187
|
+
],
|
|
19188
|
+
additionalProperties: false
|
|
19189
|
+
}
|
|
19190
|
+
]
|
|
19191
|
+
}
|
|
19192
|
+
}
|
|
19193
|
+
},
|
|
18611
19194
|
MetadataSet: {
|
|
18612
19195
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
18613
19196
|
title: "MetadataSet",
|
|
@@ -20716,6 +21299,121 @@ which sources are configured and what page ceiling each declares.`,
|
|
|
20716
21299
|
}
|
|
20717
21300
|
}
|
|
20718
21301
|
},
|
|
21302
|
+
PlannedProject: {
|
|
21303
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
21304
|
+
title: "PlannedProject",
|
|
21305
|
+
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.",
|
|
21306
|
+
type: "object",
|
|
21307
|
+
properties: {
|
|
21308
|
+
source: {
|
|
21309
|
+
description: "The source it would be created in.",
|
|
21310
|
+
$ref: "#/$defs/SourceName"
|
|
21311
|
+
},
|
|
21312
|
+
id: {
|
|
21313
|
+
description: "The id it would be written under.",
|
|
21314
|
+
$ref: "#/$defs/NativeId"
|
|
21315
|
+
},
|
|
21316
|
+
title: {
|
|
21317
|
+
description: "Its title.",
|
|
21318
|
+
type: "string"
|
|
21319
|
+
},
|
|
21320
|
+
content: {
|
|
21321
|
+
description: "Its description, as it would be written.",
|
|
21322
|
+
type: "string"
|
|
21323
|
+
},
|
|
21324
|
+
members: {
|
|
21325
|
+
description: "Each member, in the order it would be created: after every member it depends on.",
|
|
21326
|
+
type: "array",
|
|
21327
|
+
items: {
|
|
21328
|
+
$ref: "#/$defs/PlannedMember"
|
|
21329
|
+
}
|
|
21330
|
+
}
|
|
21331
|
+
},
|
|
21332
|
+
required: [
|
|
21333
|
+
"source",
|
|
21334
|
+
"id",
|
|
21335
|
+
"title",
|
|
21336
|
+
"content",
|
|
21337
|
+
"members"
|
|
21338
|
+
],
|
|
21339
|
+
$defs: {
|
|
21340
|
+
SourceName: {
|
|
21341
|
+
description: "The name a configuration document gives one configured source.",
|
|
21342
|
+
type: "string",
|
|
21343
|
+
pattern: "^[a-z0-9][a-z0-9-]*$"
|
|
21344
|
+
},
|
|
21345
|
+
NativeId: {
|
|
21346
|
+
description: `A source's own opaque identifier for one item.
|
|
21347
|
+
|
|
21348
|
+
Deliberately unvalidated: a native id is whatever the upstream system says it
|
|
21349
|
+
is, colons included. The engine parses a qualified id by splitting on the
|
|
21350
|
+
*first* colon precisely so this stays true.`,
|
|
21351
|
+
type: "string"
|
|
21352
|
+
},
|
|
21353
|
+
PlannedMember: {
|
|
21354
|
+
description: "One member `project create --dry-run` would create.",
|
|
21355
|
+
type: "object",
|
|
21356
|
+
properties: {
|
|
21357
|
+
id: {
|
|
21358
|
+
description: "The id it would be offered to its source under.",
|
|
21359
|
+
$ref: "#/$defs/NativeId"
|
|
21360
|
+
},
|
|
21361
|
+
title: {
|
|
21362
|
+
description: "Its title.",
|
|
21363
|
+
type: "string"
|
|
21364
|
+
},
|
|
21365
|
+
template: {
|
|
21366
|
+
description: "The template its body is rendered from, as its provenance would record it; `null` for a\nbody given as it is.",
|
|
21367
|
+
type: [
|
|
21368
|
+
"string",
|
|
21369
|
+
"null"
|
|
21370
|
+
]
|
|
21371
|
+
},
|
|
21372
|
+
content: {
|
|
21373
|
+
description: "Its body, as it would be written.",
|
|
21374
|
+
type: "string"
|
|
21375
|
+
},
|
|
21376
|
+
answers: {
|
|
21377
|
+
description: "The resolved answers its body was rendered with.",
|
|
21378
|
+
type: "object",
|
|
21379
|
+
additionalProperties: true
|
|
21380
|
+
},
|
|
21381
|
+
depends_on: {
|
|
21382
|
+
description: "The members it would depend on, each a `blocks` edge.",
|
|
21383
|
+
type: "array",
|
|
21384
|
+
items: {
|
|
21385
|
+
$ref: "#/$defs/NativeId"
|
|
21386
|
+
}
|
|
21387
|
+
},
|
|
21388
|
+
metadata: {
|
|
21389
|
+
description: "The caller's metadata keys it would carry.",
|
|
21390
|
+
type: "object",
|
|
21391
|
+
additionalProperties: true
|
|
21392
|
+
},
|
|
21393
|
+
repositories: {
|
|
21394
|
+
description: "The repositories it concerns.",
|
|
21395
|
+
type: "array",
|
|
21396
|
+
items: {
|
|
21397
|
+
$ref: "#/$defs/Repository"
|
|
21398
|
+
}
|
|
21399
|
+
}
|
|
21400
|
+
},
|
|
21401
|
+
required: [
|
|
21402
|
+
"id",
|
|
21403
|
+
"title",
|
|
21404
|
+
"content",
|
|
21405
|
+
"answers",
|
|
21406
|
+
"depends_on",
|
|
21407
|
+
"metadata",
|
|
21408
|
+
"repositories"
|
|
21409
|
+
]
|
|
21410
|
+
},
|
|
21411
|
+
Repository: {
|
|
21412
|
+
description: "A repository identified by its normalized origin, without a URL scheme or `.git` suffix.",
|
|
21413
|
+
type: "string"
|
|
21414
|
+
}
|
|
21415
|
+
}
|
|
21416
|
+
},
|
|
20719
21417
|
Predicate: {
|
|
20720
21418
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
20721
21419
|
title: "Predicate",
|
|
@@ -21090,6 +21788,200 @@ reach a public one.`,
|
|
|
21090
21788
|
}
|
|
21091
21789
|
}
|
|
21092
21790
|
},
|
|
21791
|
+
ProjectAttestationCheck: {
|
|
21792
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
21793
|
+
title: "ProjectAttestationCheck",
|
|
21794
|
+
description: "What `project attestation check --tasks` answers: one entry per task filed under the\nproject, in the order the source lists them.",
|
|
21795
|
+
type: "object",
|
|
21796
|
+
properties: {
|
|
21797
|
+
project: {
|
|
21798
|
+
description: "The project, by qualified id.",
|
|
21799
|
+
$ref: "#/$defs/GlobalId"
|
|
21800
|
+
},
|
|
21801
|
+
kind: {
|
|
21802
|
+
description: "The kind asked about.",
|
|
21803
|
+
$ref: "#/$defs/AttestationKind"
|
|
21804
|
+
},
|
|
21805
|
+
tasks: {
|
|
21806
|
+
description: "One entry per task.",
|
|
21807
|
+
type: "array",
|
|
21808
|
+
items: {
|
|
21809
|
+
$ref: "#/$defs/TaskAttestationCheck"
|
|
21810
|
+
}
|
|
21811
|
+
}
|
|
21812
|
+
},
|
|
21813
|
+
required: [
|
|
21814
|
+
"project",
|
|
21815
|
+
"kind",
|
|
21816
|
+
"tasks"
|
|
21817
|
+
],
|
|
21818
|
+
$defs: {
|
|
21819
|
+
GlobalId: {
|
|
21820
|
+
description: `One item, qualified by the source it came from.
|
|
21821
|
+
|
|
21822
|
+
Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
|
|
21823
|
+
so a native id may contain colons freely.`,
|
|
21824
|
+
type: "string"
|
|
21825
|
+
},
|
|
21826
|
+
AttestationKind: {
|
|
21827
|
+
description: "One kind of attestation, such as `plan-review` or `design-approval`: one to 200 letters,\ndigits, `.`, `_` or `-`.",
|
|
21828
|
+
type: "string"
|
|
21829
|
+
},
|
|
21830
|
+
TaskAttestationCheck: {
|
|
21831
|
+
description: "One task's entry in a project's check: the task's qualified id beside what its check found.",
|
|
21832
|
+
type: "object",
|
|
21833
|
+
properties: {
|
|
21834
|
+
id: {
|
|
21835
|
+
description: "The task, by qualified id.",
|
|
21836
|
+
$ref: "#/$defs/GlobalId"
|
|
21837
|
+
},
|
|
21838
|
+
kind: {
|
|
21839
|
+
description: "The kind asked about.",
|
|
21840
|
+
$ref: "#/$defs/AttestationKind"
|
|
21841
|
+
},
|
|
21842
|
+
state: {
|
|
21843
|
+
description: "What the check found.",
|
|
21844
|
+
$ref: "#/$defs/AttestationState"
|
|
21845
|
+
},
|
|
21846
|
+
reason: {
|
|
21847
|
+
description: "Why the record is void: `null` unless `state` is `void`.",
|
|
21848
|
+
anyOf: [
|
|
21849
|
+
{
|
|
21850
|
+
$ref: "#/$defs/VoidReason"
|
|
21851
|
+
},
|
|
21852
|
+
{
|
|
21853
|
+
type: "null"
|
|
21854
|
+
}
|
|
21855
|
+
]
|
|
21856
|
+
},
|
|
21857
|
+
record: {
|
|
21858
|
+
description: "The record of the kind the item holds, or `null` when it holds none.",
|
|
21859
|
+
anyOf: [
|
|
21860
|
+
{
|
|
21861
|
+
$ref: "#/$defs/Attestation"
|
|
21862
|
+
},
|
|
21863
|
+
{
|
|
21864
|
+
type: "null"
|
|
21865
|
+
}
|
|
21866
|
+
]
|
|
21867
|
+
}
|
|
21868
|
+
},
|
|
21869
|
+
required: [
|
|
21870
|
+
"id",
|
|
21871
|
+
"kind",
|
|
21872
|
+
"state"
|
|
21873
|
+
]
|
|
21874
|
+
},
|
|
21875
|
+
AttestationState: {
|
|
21876
|
+
description: "What a check of one kind of attestation found.",
|
|
21877
|
+
oneOf: [
|
|
21878
|
+
{
|
|
21879
|
+
description: `A record of the kind is there, the item's authored content is the content it cleared,
|
|
21880
|
+
and the bar asked about, when one was, is the bar it cleared it against.`,
|
|
21881
|
+
type: "string",
|
|
21882
|
+
const: "valid"
|
|
21883
|
+
},
|
|
21884
|
+
{
|
|
21885
|
+
description: "A record of the kind is there and no longer holds: `reason` says why.",
|
|
21886
|
+
type: "string",
|
|
21887
|
+
const: "void"
|
|
21888
|
+
},
|
|
21889
|
+
{
|
|
21890
|
+
description: "The item holds no record of the kind.",
|
|
21891
|
+
type: "string",
|
|
21892
|
+
const: "absent"
|
|
21893
|
+
}
|
|
21894
|
+
]
|
|
21895
|
+
},
|
|
21896
|
+
VoidReason: {
|
|
21897
|
+
description: "Why a record of an attestation no longer holds.",
|
|
21898
|
+
oneOf: [
|
|
21899
|
+
{
|
|
21900
|
+
description: "The item's authored content is not the content the record cleared.",
|
|
21901
|
+
type: "string",
|
|
21902
|
+
const: "content-moved"
|
|
21903
|
+
},
|
|
21904
|
+
{
|
|
21905
|
+
description: "The bar asked about is not the bar the record cleared the content against.",
|
|
21906
|
+
type: "string",
|
|
21907
|
+
const: "bar-moved"
|
|
21908
|
+
}
|
|
21909
|
+
]
|
|
21910
|
+
},
|
|
21911
|
+
Attestation: {
|
|
21912
|
+
description: `One attestation: who cleared the item's authored content, when, which content and against
|
|
21913
|
+
which bar.`,
|
|
21914
|
+
type: "object",
|
|
21915
|
+
properties: {
|
|
21916
|
+
kind: {
|
|
21917
|
+
description: "The kind of attestation this is; the key it is held under.",
|
|
21918
|
+
$ref: "#/$defs/AttestationKind"
|
|
21919
|
+
},
|
|
21920
|
+
by: {
|
|
21921
|
+
description: "Who attested, as the caller labels them.",
|
|
21922
|
+
$ref: "#/$defs/AttestationLabel"
|
|
21923
|
+
},
|
|
21924
|
+
at: {
|
|
21925
|
+
description: "When it was recorded, in RFC 3339 to the second.",
|
|
21926
|
+
type: "string",
|
|
21927
|
+
format: "date-time"
|
|
21928
|
+
},
|
|
21929
|
+
content_digest: {
|
|
21930
|
+
description: `The digest of the item's authored content when it was recorded, computed by the store
|
|
21931
|
+
(see the module's documentation).`,
|
|
21932
|
+
$ref: "#/$defs/Sha256Digest"
|
|
21933
|
+
},
|
|
21934
|
+
bar: {
|
|
21935
|
+
description: "The fingerprint of the bar the content was cleared against, as the caller gave it.",
|
|
21936
|
+
$ref: "#/$defs/AttestationLabel"
|
|
21937
|
+
},
|
|
21938
|
+
note: {
|
|
21939
|
+
description: "What the attester added, when they added anything.",
|
|
21940
|
+
anyOf: [
|
|
21941
|
+
{
|
|
21942
|
+
$ref: "#/$defs/AttestationNote"
|
|
21943
|
+
},
|
|
21944
|
+
{
|
|
21945
|
+
type: "null"
|
|
21946
|
+
}
|
|
21947
|
+
]
|
|
21948
|
+
},
|
|
21949
|
+
excludes: {
|
|
21950
|
+
description: "The caller-owned metadata keys left out of `content_digest`, sorted; empty when none\nwere.",
|
|
21951
|
+
type: "array",
|
|
21952
|
+
items: {
|
|
21953
|
+
$ref: "#/$defs/MetadataKey"
|
|
21954
|
+
},
|
|
21955
|
+
default: []
|
|
21956
|
+
}
|
|
21957
|
+
},
|
|
21958
|
+
required: [
|
|
21959
|
+
"kind",
|
|
21960
|
+
"by",
|
|
21961
|
+
"at",
|
|
21962
|
+
"content_digest",
|
|
21963
|
+
"bar"
|
|
21964
|
+
]
|
|
21965
|
+
},
|
|
21966
|
+
AttestationLabel: {
|
|
21967
|
+
description: "Who attested, or the fingerprint of a bar: one line of one to 200 characters, not blank.",
|
|
21968
|
+
type: "string"
|
|
21969
|
+
},
|
|
21970
|
+
Sha256Digest: {
|
|
21971
|
+
description: "`sha256:` and 64 lowercase hex digits.",
|
|
21972
|
+
type: "string",
|
|
21973
|
+
pattern: "^sha256:[0-9a-f]{64}$"
|
|
21974
|
+
},
|
|
21975
|
+
AttestationNote: {
|
|
21976
|
+
description: "What an attester adds: text of any length and any number of lines, not blank.",
|
|
21977
|
+
type: "string"
|
|
21978
|
+
},
|
|
21979
|
+
MetadataKey: {
|
|
21980
|
+
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.",
|
|
21981
|
+
type: "string"
|
|
21982
|
+
}
|
|
21983
|
+
}
|
|
21984
|
+
},
|
|
21093
21985
|
ProjectGraph: {
|
|
21094
21986
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
21095
21987
|
title: "ProjectGraph",
|
|
@@ -39339,6 +40231,9 @@ no insignificant whitespace, UTF-8.`,
|
|
|
39339
40231
|
default: {
|
|
39340
40232
|
description: "The value used when no answer is given."
|
|
39341
40233
|
},
|
|
40234
|
+
schema: {
|
|
40235
|
+
description: "The JSON Schema (draft 2020-12) every answer must satisfy, for an `object` or `list`\nvariable that declares one; absent for every other."
|
|
40236
|
+
},
|
|
39342
40237
|
declared_in: {
|
|
39343
40238
|
description: "The chain file whose declaration this is: the one nearest the rendered template.",
|
|
39344
40239
|
type: "string"
|
|
@@ -39466,6 +40361,9 @@ no insignificant whitespace, UTF-8.`,
|
|
|
39466
40361
|
default: {
|
|
39467
40362
|
description: "The value used when no answer is given."
|
|
39468
40363
|
},
|
|
40364
|
+
schema: {
|
|
40365
|
+
description: "The JSON Schema (draft 2020-12) every answer must satisfy, for an `object` or `list`\nvariable that declares one; absent for every other."
|
|
40366
|
+
},
|
|
39469
40367
|
declared_in: {
|
|
39470
40368
|
description: "The chain file whose declaration this is: the one nearest the rendered template.",
|
|
39471
40369
|
type: "string"
|
|
@@ -39637,6 +40535,23 @@ no insignificant whitespace, UTF-8.`,
|
|
|
39637
40535
|
}
|
|
39638
40536
|
]
|
|
39639
40537
|
},
|
|
40538
|
+
VoidReason: {
|
|
40539
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
40540
|
+
title: "VoidReason",
|
|
40541
|
+
description: "Why a record of an attestation no longer holds.",
|
|
40542
|
+
oneOf: [
|
|
40543
|
+
{
|
|
40544
|
+
description: "The item's authored content is not the content the record cleared.",
|
|
40545
|
+
type: "string",
|
|
40546
|
+
const: "content-moved"
|
|
40547
|
+
},
|
|
40548
|
+
{
|
|
40549
|
+
description: "The bar asked about is not the bar the record cleared the content against.",
|
|
40550
|
+
type: "string",
|
|
40551
|
+
const: "bar-moved"
|
|
40552
|
+
}
|
|
40553
|
+
]
|
|
40554
|
+
},
|
|
39640
40555
|
WritePolicyConfig: {
|
|
39641
40556
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
39642
40557
|
title: "WritePolicyConfig",
|
|
@@ -40504,6 +41419,8 @@ var commandResponseRoots = {
|
|
|
40504
41419
|
"task priority set": "TaskPrioritySet",
|
|
40505
41420
|
"task content set": "TaskContentSet",
|
|
40506
41421
|
"task metadata set": "MetadataSet",
|
|
41422
|
+
"task attest": "Attested",
|
|
41423
|
+
"task attestation check": "AttestationCheck",
|
|
40507
41424
|
"task update": "TaskUpdated",
|
|
40508
41425
|
"project list": "QueryResponseOfQualifiedProject",
|
|
40509
41426
|
"project show": "QueryResponseOfQualifiedProject",
|
|
@@ -40511,6 +41428,8 @@ var commandResponseRoots = {
|
|
|
40511
41428
|
"project graph": "ProjectGraph",
|
|
40512
41429
|
"project copy": "CopyReport",
|
|
40513
41430
|
"project metadata set": "MetadataSet",
|
|
41431
|
+
"project attest": "Attested",
|
|
41432
|
+
"project attestation check": "AttestationCheck",
|
|
40514
41433
|
"project status set": "ProjectStatusSet",
|
|
40515
41434
|
"project create": "QueryResponseOfQualifiedProject",
|
|
40516
41435
|
"project render": "Regenerated",
|
|
@@ -40519,6 +41438,8 @@ var commandResponseRoots = {
|
|
|
40519
41438
|
"document show": "DocumentDetail",
|
|
40520
41439
|
"document copy": "CopyReport",
|
|
40521
41440
|
"document metadata set": "MetadataSet",
|
|
41441
|
+
"document attest": "Attested",
|
|
41442
|
+
"document attestation check": "AttestationCheck",
|
|
40522
41443
|
"label list": "QueryResponseOfQualifiedLabel",
|
|
40523
41444
|
search: "QueryResponseOfSearchHit",
|
|
40524
41445
|
"template variables": "TemplateVariables",
|
|
@@ -40533,9 +41454,11 @@ var commandResponseRoots = {
|
|
|
40533
41454
|
"document answers": "TemplateAnswers"
|
|
40534
41455
|
};
|
|
40535
41456
|
var commandAlternateRoots = {
|
|
40536
|
-
"sources fields": ["StatusNamesReport"]
|
|
41457
|
+
"sources fields": ["StatusNamesReport"],
|
|
41458
|
+
"project attestation check": ["ProjectAttestationCheck"],
|
|
41459
|
+
"project create": ["PlannedProject"]
|
|
40537
41460
|
};
|
|
40538
|
-
var partialResponseCommands = new Set(Object.keys(commandResponseRoots).filter((command) => command !== "config show" && command !== "cache clear" && command !== "sources list" && command !== "sources fields" && command !== "sources route" && command !== "sources sanitize" && command !== "project graph" && !command.startsWith("task comment ") && !command.endsWith(" metadata set") && !command.endsWith(" priority set") && !command.endsWith(" content set") && !command.startsWith("template ") && !command.endsWith(" render") && !command.endsWith(" answers") && command !== "task assets" && command !== "task project-human" && command !== "project create" && command !== "document create"));
|
|
41461
|
+
var partialResponseCommands = new Set(Object.keys(commandResponseRoots).filter((command) => command !== "config show" && command !== "cache clear" && command !== "sources list" && command !== "sources fields" && command !== "sources route" && command !== "sources sanitize" && command !== "project graph" && !command.startsWith("task comment ") && !command.endsWith(" metadata set") && !command.endsWith(" priority set") && !command.endsWith(" content set") && !command.startsWith("template ") && !command.endsWith(" render") && !command.endsWith(" answers") && command !== "task assets" && command !== "task project-human" && !command.endsWith(" attest") && !command.endsWith(" attestation check") && command !== "project create" && command !== "document create"));
|
|
40539
41462
|
function bodyArguments(options) {
|
|
40540
41463
|
return "bodyFile" in options ? { args: ["--body-file", options.bodyFile] } : { args: [], input: options.body };
|
|
40541
41464
|
}
|
|
@@ -40893,6 +41816,42 @@ function writePolicyFlags(method, options) {
|
|
|
40893
41816
|
args.push("--sanitize-dry-run");
|
|
40894
41817
|
return args;
|
|
40895
41818
|
}
|
|
41819
|
+
function attestFlags(method, kind, by, bar, options) {
|
|
41820
|
+
if (!isPlainObject(options)) {
|
|
41821
|
+
throw new TypeError(`${method}: options is not an object; next: pass them as a plain object`);
|
|
41822
|
+
}
|
|
41823
|
+
const args = [
|
|
41824
|
+
"--kind",
|
|
41825
|
+
stringOption(method, "kind", kind),
|
|
41826
|
+
"--by",
|
|
41827
|
+
stringOption(method, "by", by),
|
|
41828
|
+
"--bar",
|
|
41829
|
+
stringOption(method, "bar", bar)
|
|
41830
|
+
];
|
|
41831
|
+
for (const key of stringList(method, "exclude", options.exclude))
|
|
41832
|
+
args.push("--exclude", key);
|
|
41833
|
+
if (options.note !== undefined)
|
|
41834
|
+
args.push("--note", stringOption(method, "note", options.note));
|
|
41835
|
+
if (options.ifVersion !== undefined) {
|
|
41836
|
+
args.push("--if-version", stringOption(method, "ifVersion", options.ifVersion));
|
|
41837
|
+
}
|
|
41838
|
+
return [...args, ...writePolicyFlags(method, options)];
|
|
41839
|
+
}
|
|
41840
|
+
function checkFlags(method, kind, options) {
|
|
41841
|
+
if (!isPlainObject(options)) {
|
|
41842
|
+
throw new TypeError(`${method}: options is not an object; next: pass them as a plain object`);
|
|
41843
|
+
}
|
|
41844
|
+
const args = ["--kind", stringOption(method, "kind", kind)];
|
|
41845
|
+
if (options.bar !== undefined)
|
|
41846
|
+
args.push("--bar", stringOption(method, "bar", options.bar));
|
|
41847
|
+
return args;
|
|
41848
|
+
}
|
|
41849
|
+
function flagOption(method, name, value) {
|
|
41850
|
+
if (value !== undefined && typeof value !== "boolean") {
|
|
41851
|
+
throw new TypeError(`${method}: ${name} is not a boolean; next: pass true or false`);
|
|
41852
|
+
}
|
|
41853
|
+
return value === true;
|
|
41854
|
+
}
|
|
40896
41855
|
function expectFlags(method, options) {
|
|
40897
41856
|
if (options.expect === undefined)
|
|
40898
41857
|
return [];
|
|
@@ -41297,6 +42256,33 @@ class OnetaskgraphClient {
|
|
|
41297
42256
|
documentMetadataSet(id, key, value, options = {}) {
|
|
41298
42257
|
return this.run("document metadata set", [id, key, value, ...writePolicyFlags("documentMetadataSet", options)], undefined, options.sanitizeDryRun === true);
|
|
41299
42258
|
}
|
|
42259
|
+
taskAttest(id, kind, by, bar, options = {}) {
|
|
42260
|
+
return this.run("task attest", [id, ...attestFlags("taskAttest", kind, by, bar, options)], undefined, options.sanitizeDryRun === true);
|
|
42261
|
+
}
|
|
42262
|
+
projectAttest(id, kind, by, bar, options = {}) {
|
|
42263
|
+
return this.run("project attest", [id, ...attestFlags("projectAttest", kind, by, bar, options)], undefined, options.sanitizeDryRun === true);
|
|
42264
|
+
}
|
|
42265
|
+
documentAttest(id, kind, by, bar, options = {}) {
|
|
42266
|
+
return this.run("document attest", [id, ...attestFlags("documentAttest", kind, by, bar, options)], undefined, options.sanitizeDryRun === true);
|
|
42267
|
+
}
|
|
42268
|
+
taskAttestationCheck(id, kind, options = {}) {
|
|
42269
|
+
return this.run("task attestation check", [
|
|
42270
|
+
id,
|
|
42271
|
+
...checkFlags("taskAttestationCheck", kind, options)
|
|
42272
|
+
]);
|
|
42273
|
+
}
|
|
42274
|
+
documentAttestationCheck(id, kind, options = {}) {
|
|
42275
|
+
return this.run("document attestation check", [
|
|
42276
|
+
id,
|
|
42277
|
+
...checkFlags("documentAttestationCheck", kind, options)
|
|
42278
|
+
]);
|
|
42279
|
+
}
|
|
42280
|
+
projectAttestationCheck(id, kind, options = {}) {
|
|
42281
|
+
const args = [id, ...checkFlags("projectAttestationCheck", kind, options)];
|
|
42282
|
+
if (flagOption("projectAttestationCheck", "tasks", options.tasks))
|
|
42283
|
+
args.push("--tasks");
|
|
42284
|
+
return this.run("project attestation check", args);
|
|
42285
|
+
}
|
|
41300
42286
|
labelList(options = {}) {
|
|
41301
42287
|
const args = [];
|
|
41302
42288
|
addQuery(args, options);
|
|
@@ -41364,6 +42350,8 @@ class OnetaskgraphClient {
|
|
|
41364
42350
|
const { args, input } = createArguments("projectCreate", ["--id", id, "--title", title], options);
|
|
41365
42351
|
if (options.status !== undefined)
|
|
41366
42352
|
args.push("--status", options.status);
|
|
42353
|
+
if (flagOption("projectCreate", "dryRun", options.dryRun))
|
|
42354
|
+
args.push("--dry-run");
|
|
41367
42355
|
return this.run("project create", [source, ...args], input, options.sanitizeDryRun === true);
|
|
41368
42356
|
}
|
|
41369
42357
|
async projectRender(id, options = {}) {
|
|
@@ -41407,7 +42395,7 @@ class OnetaskgraphClient {
|
|
|
41407
42395
|
});
|
|
41408
42396
|
child.on("error", () => reject(new OnetaskgraphExecutionError(null)));
|
|
41409
42397
|
child.on("close", (code) => {
|
|
41410
|
-
const reporting = command === "sources sanitize" && (code === 1 || code === 3) && !("failure" in (safeParse(stdout) ?? { failure: true }));
|
|
42398
|
+
const reporting = (command === "sources sanitize" && (code === 1 || code === 3) || command.endsWith(" attestation check") && code === 3) && !("failure" in (safeParse(stdout) ?? { failure: true }));
|
|
41411
42399
|
if (stdout.length === 0 || code !== 0 && !reporting && (code !== 4 || !partialResponseCommands.has(command))) {
|
|
41412
42400
|
reject(new OnetaskgraphExecutionError(code, stderr, failureOf(stdout)));
|
|
41413
42401
|
return;
|
|
@@ -41455,7 +42443,7 @@ function assertCompleteCommandSurface() {
|
|
|
41455
42443
|
}
|
|
41456
42444
|
|
|
41457
42445
|
// src/index.ts
|
|
41458
|
-
var VERSION = "0.14.
|
|
42446
|
+
var VERSION = "0.14.11";
|
|
41459
42447
|
export {
|
|
41460
42448
|
taskUpdateOptionFlags,
|
|
41461
42449
|
taskUpdateFlags,
|