@onetaskgraph/sdk 0.14.9 → 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 +47 -4
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +856 -7
- package/dist/generated/schemas.d.ts +1324 -51
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1750 -17
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7157,12 +7157,15 @@ var binaryCommands = [
|
|
|
7157
7157
|
"task comment list",
|
|
7158
7158
|
"task comment edit",
|
|
7159
7159
|
"task comment delete",
|
|
7160
|
+
"task comments",
|
|
7160
7161
|
"task status set",
|
|
7161
7162
|
"task status reconcile",
|
|
7162
7163
|
"task status complete",
|
|
7163
7164
|
"task priority set",
|
|
7164
7165
|
"task content set",
|
|
7165
7166
|
"task metadata set",
|
|
7167
|
+
"task attest",
|
|
7168
|
+
"task attestation check",
|
|
7166
7169
|
"task update",
|
|
7167
7170
|
"task create",
|
|
7168
7171
|
"task render",
|
|
@@ -7175,6 +7178,8 @@ var binaryCommands = [
|
|
|
7175
7178
|
"project graph",
|
|
7176
7179
|
"project copy",
|
|
7177
7180
|
"project metadata set",
|
|
7181
|
+
"project attest",
|
|
7182
|
+
"project attestation check",
|
|
7178
7183
|
"project status set",
|
|
7179
7184
|
"project create",
|
|
7180
7185
|
"project render",
|
|
@@ -7183,6 +7188,8 @@ var binaryCommands = [
|
|
|
7183
7188
|
"document show",
|
|
7184
7189
|
"document copy",
|
|
7185
7190
|
"document metadata set",
|
|
7191
|
+
"document attest",
|
|
7192
|
+
"document attestation check",
|
|
7186
7193
|
"document create",
|
|
7187
7194
|
"document render",
|
|
7188
7195
|
"document answers",
|
|
@@ -7194,7 +7201,7 @@ var binaryCommands = [
|
|
|
7194
7201
|
];
|
|
7195
7202
|
|
|
7196
7203
|
// src/generated/models.ts
|
|
7197
|
-
var SCHEMA_BUNDLE_VERSION =
|
|
7204
|
+
var SCHEMA_BUNDLE_VERSION = 59;
|
|
7198
7205
|
|
|
7199
7206
|
// src/generated/schemas.ts
|
|
7200
7207
|
var runtimeSchemas = {
|
|
@@ -7559,6 +7566,520 @@ is, colons included. The engine parses a qualified id by splitting on the
|
|
|
7559
7566
|
}
|
|
7560
7567
|
}
|
|
7561
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
|
+
},
|
|
8058
|
+
AuthorKind: {
|
|
8059
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
8060
|
+
title: "AuthorKind",
|
|
8061
|
+
description: `Who wrote a comment, as the source that holds it can tell: a person, a bot — an
|
|
8062
|
+
integration, an app, an automation acting on its own — or neither, when the source cannot
|
|
8063
|
+
say. Decided by the plugin, through
|
|
8064
|
+
[\`TaskSource::comment_author_kind\`](crate::TaskSource::comment_author_kind).`,
|
|
8065
|
+
oneOf: [
|
|
8066
|
+
{
|
|
8067
|
+
description: "A person.",
|
|
8068
|
+
type: "string",
|
|
8069
|
+
const: "person"
|
|
8070
|
+
},
|
|
8071
|
+
{
|
|
8072
|
+
description: "A bot, an integration or an app.",
|
|
8073
|
+
type: "string",
|
|
8074
|
+
const: "bot"
|
|
8075
|
+
},
|
|
8076
|
+
{
|
|
8077
|
+
description: "The source cannot say — no author at all, a deleted account.",
|
|
8078
|
+
type: "string",
|
|
8079
|
+
const: "unknown"
|
|
8080
|
+
}
|
|
8081
|
+
]
|
|
8082
|
+
},
|
|
7562
8083
|
CacheCleared: {
|
|
7563
8084
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
7564
8085
|
title: "CacheCleared",
|
|
@@ -8055,6 +8576,108 @@ is, colons included. The engine parses a qualified id by splitting on the
|
|
|
8055
8576
|
}
|
|
8056
8577
|
}
|
|
8057
8578
|
},
|
|
8579
|
+
CommentActivity: {
|
|
8580
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
8581
|
+
title: "CommentActivity",
|
|
8582
|
+
description: "One comment of a [`CommentsSince`] answer.",
|
|
8583
|
+
type: "object",
|
|
8584
|
+
properties: {
|
|
8585
|
+
item: {
|
|
8586
|
+
description: "The task it is on, qualified: `<source>:<native id>`.",
|
|
8587
|
+
$ref: "#/$defs/GlobalId"
|
|
8588
|
+
},
|
|
8589
|
+
id: {
|
|
8590
|
+
description: "Its own id, exactly as its source issued it.",
|
|
8591
|
+
$ref: "#/$defs/NativeId"
|
|
8592
|
+
},
|
|
8593
|
+
url: {
|
|
8594
|
+
description: "Where a person can open it, or `null`.",
|
|
8595
|
+
type: [
|
|
8596
|
+
"string",
|
|
8597
|
+
"null"
|
|
8598
|
+
]
|
|
8599
|
+
},
|
|
8600
|
+
author: {
|
|
8601
|
+
description: "Who wrote it, in the source's own spelling, or `null`.",
|
|
8602
|
+
type: [
|
|
8603
|
+
"string",
|
|
8604
|
+
"null"
|
|
8605
|
+
]
|
|
8606
|
+
},
|
|
8607
|
+
author_kind: {
|
|
8608
|
+
description: "Whether that is a person, a bot, or neither the source can tell.",
|
|
8609
|
+
$ref: "#/$defs/AuthorKind"
|
|
8610
|
+
},
|
|
8611
|
+
created_at: {
|
|
8612
|
+
description: "When it was written.",
|
|
8613
|
+
type: "string",
|
|
8614
|
+
format: "date-time"
|
|
8615
|
+
},
|
|
8616
|
+
updated_at: {
|
|
8617
|
+
description: "When it last changed — its creation, for one never edited.",
|
|
8618
|
+
type: "string",
|
|
8619
|
+
format: "date-time"
|
|
8620
|
+
},
|
|
8621
|
+
version: {
|
|
8622
|
+
description: `The comment's version: when it last changed, at the backend's own precision. Two reads
|
|
8623
|
+
answering one comment unchanged answer the same version.`,
|
|
8624
|
+
type: "string"
|
|
8625
|
+
},
|
|
8626
|
+
body: {
|
|
8627
|
+
description: "What it says, byte for byte.",
|
|
8628
|
+
type: "string"
|
|
8629
|
+
}
|
|
8630
|
+
},
|
|
8631
|
+
required: [
|
|
8632
|
+
"item",
|
|
8633
|
+
"id",
|
|
8634
|
+
"author_kind",
|
|
8635
|
+
"created_at",
|
|
8636
|
+
"updated_at",
|
|
8637
|
+
"version",
|
|
8638
|
+
"body"
|
|
8639
|
+
],
|
|
8640
|
+
$defs: {
|
|
8641
|
+
GlobalId: {
|
|
8642
|
+
description: `One item, qualified by the source it came from.
|
|
8643
|
+
|
|
8644
|
+
Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
|
|
8645
|
+
so a native id may contain colons freely.`,
|
|
8646
|
+
type: "string"
|
|
8647
|
+
},
|
|
8648
|
+
NativeId: {
|
|
8649
|
+
description: `A source's own opaque identifier for one item.
|
|
8650
|
+
|
|
8651
|
+
Deliberately unvalidated: a native id is whatever the upstream system says it
|
|
8652
|
+
is, colons included. The engine parses a qualified id by splitting on the
|
|
8653
|
+
*first* colon precisely so this stays true.`,
|
|
8654
|
+
type: "string"
|
|
8655
|
+
},
|
|
8656
|
+
AuthorKind: {
|
|
8657
|
+
description: `Who wrote a comment, as the source that holds it can tell: a person, a bot — an
|
|
8658
|
+
integration, an app, an automation acting on its own — or neither, when the source cannot
|
|
8659
|
+
say. Decided by the plugin, through
|
|
8660
|
+
[\`TaskSource::comment_author_kind\`](crate::TaskSource::comment_author_kind).`,
|
|
8661
|
+
oneOf: [
|
|
8662
|
+
{
|
|
8663
|
+
description: "A person.",
|
|
8664
|
+
type: "string",
|
|
8665
|
+
const: "person"
|
|
8666
|
+
},
|
|
8667
|
+
{
|
|
8668
|
+
description: "A bot, an integration or an app.",
|
|
8669
|
+
type: "string",
|
|
8670
|
+
const: "bot"
|
|
8671
|
+
},
|
|
8672
|
+
{
|
|
8673
|
+
description: "The source cannot say — no author at all, a deleted account.",
|
|
8674
|
+
type: "string",
|
|
8675
|
+
const: "unknown"
|
|
8676
|
+
}
|
|
8677
|
+
]
|
|
8678
|
+
}
|
|
8679
|
+
}
|
|
8680
|
+
},
|
|
8058
8681
|
CommentList: {
|
|
8059
8682
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
8060
8683
|
title: "CommentList",
|
|
@@ -8860,6 +9483,138 @@ interprets none of them, which is why the budget and unit names are open vocabul
|
|
|
8860
9483
|
}
|
|
8861
9484
|
}
|
|
8862
9485
|
},
|
|
9486
|
+
CommentsSince: {
|
|
9487
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
9488
|
+
title: "CommentsSince",
|
|
9489
|
+
description: "What `task comments <SOURCE> --since` answers with.",
|
|
9490
|
+
type: "object",
|
|
9491
|
+
properties: {
|
|
9492
|
+
schema_version: {
|
|
9493
|
+
description: "The version of this document's shape: `1`.",
|
|
9494
|
+
type: "integer",
|
|
9495
|
+
format: "uint32",
|
|
9496
|
+
minimum: 0
|
|
9497
|
+
},
|
|
9498
|
+
watermark: {
|
|
9499
|
+
description: "The instant a later read may start from: the earlier of the source's own time and this\nhost's at the read's start, set back by the source's consistency window. A later read\nfrom it may return a comment again, with the same `id` and `version`.",
|
|
9500
|
+
type: "string",
|
|
9501
|
+
format: "date-time"
|
|
9502
|
+
},
|
|
9503
|
+
comments: {
|
|
9504
|
+
description: `Every comment made or edited at or after the instant on a matching task, oldest first by
|
|
9505
|
+
when it last changed.`,
|
|
9506
|
+
type: "array",
|
|
9507
|
+
items: {
|
|
9508
|
+
$ref: "#/$defs/CommentActivity"
|
|
9509
|
+
}
|
|
9510
|
+
}
|
|
9511
|
+
},
|
|
9512
|
+
required: [
|
|
9513
|
+
"schema_version",
|
|
9514
|
+
"watermark",
|
|
9515
|
+
"comments"
|
|
9516
|
+
],
|
|
9517
|
+
$defs: {
|
|
9518
|
+
CommentActivity: {
|
|
9519
|
+
description: "One comment of a [`CommentsSince`] answer.",
|
|
9520
|
+
type: "object",
|
|
9521
|
+
properties: {
|
|
9522
|
+
item: {
|
|
9523
|
+
description: "The task it is on, qualified: `<source>:<native id>`.",
|
|
9524
|
+
$ref: "#/$defs/GlobalId"
|
|
9525
|
+
},
|
|
9526
|
+
id: {
|
|
9527
|
+
description: "Its own id, exactly as its source issued it.",
|
|
9528
|
+
$ref: "#/$defs/NativeId"
|
|
9529
|
+
},
|
|
9530
|
+
url: {
|
|
9531
|
+
description: "Where a person can open it, or `null`.",
|
|
9532
|
+
type: [
|
|
9533
|
+
"string",
|
|
9534
|
+
"null"
|
|
9535
|
+
]
|
|
9536
|
+
},
|
|
9537
|
+
author: {
|
|
9538
|
+
description: "Who wrote it, in the source's own spelling, or `null`.",
|
|
9539
|
+
type: [
|
|
9540
|
+
"string",
|
|
9541
|
+
"null"
|
|
9542
|
+
]
|
|
9543
|
+
},
|
|
9544
|
+
author_kind: {
|
|
9545
|
+
description: "Whether that is a person, a bot, or neither the source can tell.",
|
|
9546
|
+
$ref: "#/$defs/AuthorKind"
|
|
9547
|
+
},
|
|
9548
|
+
created_at: {
|
|
9549
|
+
description: "When it was written.",
|
|
9550
|
+
type: "string",
|
|
9551
|
+
format: "date-time"
|
|
9552
|
+
},
|
|
9553
|
+
updated_at: {
|
|
9554
|
+
description: "When it last changed — its creation, for one never edited.",
|
|
9555
|
+
type: "string",
|
|
9556
|
+
format: "date-time"
|
|
9557
|
+
},
|
|
9558
|
+
version: {
|
|
9559
|
+
description: `The comment's version: when it last changed, at the backend's own precision. Two reads
|
|
9560
|
+
answering one comment unchanged answer the same version.`,
|
|
9561
|
+
type: "string"
|
|
9562
|
+
},
|
|
9563
|
+
body: {
|
|
9564
|
+
description: "What it says, byte for byte.",
|
|
9565
|
+
type: "string"
|
|
9566
|
+
}
|
|
9567
|
+
},
|
|
9568
|
+
required: [
|
|
9569
|
+
"item",
|
|
9570
|
+
"id",
|
|
9571
|
+
"author_kind",
|
|
9572
|
+
"created_at",
|
|
9573
|
+
"updated_at",
|
|
9574
|
+
"version",
|
|
9575
|
+
"body"
|
|
9576
|
+
]
|
|
9577
|
+
},
|
|
9578
|
+
GlobalId: {
|
|
9579
|
+
description: `One item, qualified by the source it came from.
|
|
9580
|
+
|
|
9581
|
+
Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
|
|
9582
|
+
so a native id may contain colons freely.`,
|
|
9583
|
+
type: "string"
|
|
9584
|
+
},
|
|
9585
|
+
NativeId: {
|
|
9586
|
+
description: `A source's own opaque identifier for one item.
|
|
9587
|
+
|
|
9588
|
+
Deliberately unvalidated: a native id is whatever the upstream system says it
|
|
9589
|
+
is, colons included. The engine parses a qualified id by splitting on the
|
|
9590
|
+
*first* colon precisely so this stays true.`,
|
|
9591
|
+
type: "string"
|
|
9592
|
+
},
|
|
9593
|
+
AuthorKind: {
|
|
9594
|
+
description: `Who wrote a comment, as the source that holds it can tell: a person, a bot — an
|
|
9595
|
+
integration, an app, an automation acting on its own — or neither, when the source cannot
|
|
9596
|
+
say. Decided by the plugin, through
|
|
9597
|
+
[\`TaskSource::comment_author_kind\`](crate::TaskSource::comment_author_kind).`,
|
|
9598
|
+
oneOf: [
|
|
9599
|
+
{
|
|
9600
|
+
description: "A person.",
|
|
9601
|
+
type: "string",
|
|
9602
|
+
const: "person"
|
|
9603
|
+
},
|
|
9604
|
+
{
|
|
9605
|
+
description: "A bot, an integration or an app.",
|
|
9606
|
+
type: "string",
|
|
9607
|
+
const: "bot"
|
|
9608
|
+
},
|
|
9609
|
+
{
|
|
9610
|
+
description: "The source cannot say — no author at all, a deleted account.",
|
|
9611
|
+
type: "string",
|
|
9612
|
+
const: "unknown"
|
|
9613
|
+
}
|
|
9614
|
+
]
|
|
9615
|
+
}
|
|
9616
|
+
}
|
|
9617
|
+
},
|
|
8863
9618
|
CompleteAction: {
|
|
8864
9619
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
8865
9620
|
title: "CompleteAction",
|
|
@@ -18122,6 +18877,198 @@ interprets none of them, which is why the budget and unit names are open vocabul
|
|
|
18122
18877
|
}
|
|
18123
18878
|
}
|
|
18124
18879
|
},
|
|
18880
|
+
Located: {
|
|
18881
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
18882
|
+
title: "Located",
|
|
18883
|
+
description: "Where one task would land, what it would update there, and where a create would file it.",
|
|
18884
|
+
type: "object",
|
|
18885
|
+
properties: {
|
|
18886
|
+
source: {
|
|
18887
|
+
description: "The qualified id the task was read from.",
|
|
18888
|
+
$ref: "#/$defs/GlobalId"
|
|
18889
|
+
},
|
|
18890
|
+
classification: {
|
|
18891
|
+
description: `The class it was placed as, as a copy classifies it: its own declaration and, while the
|
|
18892
|
+
store's boundary is active, its repositories' visibility. A source declared private does
|
|
18893
|
+
not by itself make it private; it withholds the task's provenance instead.`,
|
|
18894
|
+
$ref: "#/$defs/Classification"
|
|
18895
|
+
},
|
|
18896
|
+
destination: {
|
|
18897
|
+
description: "The source the item lands in: the routed one, or the source itself.",
|
|
18898
|
+
$ref: "#/$defs/SourceName"
|
|
18899
|
+
},
|
|
18900
|
+
route: {
|
|
18901
|
+
description: "The index of the route entry that matched, or `None` when none did and the item\nstays in the source itself.",
|
|
18902
|
+
type: [
|
|
18903
|
+
"integer",
|
|
18904
|
+
"null"
|
|
18905
|
+
],
|
|
18906
|
+
format: "uint32",
|
|
18907
|
+
minimum: 0
|
|
18908
|
+
},
|
|
18909
|
+
counterpart: {
|
|
18910
|
+
description: "The item a copy would update, and the rule that found it — `null` when a copy would\ncreate one, and absent under `--no-counterpart`, which looks for none.",
|
|
18911
|
+
anyOf: [
|
|
18912
|
+
{
|
|
18913
|
+
$ref: "#/$defs/LocatedCounterpart"
|
|
18914
|
+
},
|
|
18915
|
+
{
|
|
18916
|
+
type: "null"
|
|
18917
|
+
}
|
|
18918
|
+
]
|
|
18919
|
+
},
|
|
18920
|
+
carriers: {
|
|
18921
|
+
description: "Every destination item the origin query found carrying this task's origin, in listing\norder — `[]` when the query did not run, and absent under `--no-counterpart`. When it ran,\n`counterpart` is the first.",
|
|
18922
|
+
type: [
|
|
18923
|
+
"array",
|
|
18924
|
+
"null"
|
|
18925
|
+
],
|
|
18926
|
+
items: {
|
|
18927
|
+
$ref: "#/$defs/GlobalId"
|
|
18928
|
+
}
|
|
18929
|
+
},
|
|
18930
|
+
creates_in: {
|
|
18931
|
+
description: "The repository a create there would file the task's issue in, or `null` where the\ndestination files no issue in a repository. Where a create would file, whether or not a\ncounterpart exists: an existing issue is never moved.",
|
|
18932
|
+
anyOf: [
|
|
18933
|
+
{
|
|
18934
|
+
$ref: "#/$defs/CreatesIn"
|
|
18935
|
+
},
|
|
18936
|
+
{
|
|
18937
|
+
type: "null"
|
|
18938
|
+
}
|
|
18939
|
+
]
|
|
18940
|
+
}
|
|
18941
|
+
},
|
|
18942
|
+
required: [
|
|
18943
|
+
"source",
|
|
18944
|
+
"classification",
|
|
18945
|
+
"destination"
|
|
18946
|
+
],
|
|
18947
|
+
$defs: {
|
|
18948
|
+
GlobalId: {
|
|
18949
|
+
description: `One item, qualified by the source it came from.
|
|
18950
|
+
|
|
18951
|
+
Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
|
|
18952
|
+
so a native id may contain colons freely.`,
|
|
18953
|
+
type: "string"
|
|
18954
|
+
},
|
|
18955
|
+
Classification: {
|
|
18956
|
+
description: `Who may read an item: anybody, or only those who may read where it is kept.
|
|
18957
|
+
|
|
18958
|
+
Two values, ordered so the stricter is the greater: [\`strictest\`](Self::strictest) of
|
|
18959
|
+
any two is the one an item they both describe carries. Nothing combines them any other
|
|
18960
|
+
way, which is what makes an explicit \`public\` unable to loosen a private repository, or
|
|
18961
|
+
a document's private project — a classification only ever tightens. A task's project
|
|
18962
|
+
never tightens the task.
|
|
18963
|
+
|
|
18964
|
+
It is recorded on the item and travels with it. A source whose backend has no notion of
|
|
18965
|
+
its own records it under [\`Self::METADATA_KEY\`], exactly as it records
|
|
18966
|
+
[\`Repository::METADATA_KEY\`], and only while it is \`private\`: an item without it is
|
|
18967
|
+
public, so every item written before this existed reads as it did.`,
|
|
18968
|
+
oneOf: [
|
|
18969
|
+
{
|
|
18970
|
+
description: "Anybody who may read the destination may read it.",
|
|
18971
|
+
type: "string",
|
|
18972
|
+
const: "public"
|
|
18973
|
+
},
|
|
18974
|
+
{
|
|
18975
|
+
description: `It may be written only to a destination verified private, and nothing of it may
|
|
18976
|
+
reach a public one.`,
|
|
18977
|
+
type: "string",
|
|
18978
|
+
const: "private"
|
|
18979
|
+
}
|
|
18980
|
+
]
|
|
18981
|
+
},
|
|
18982
|
+
SourceName: {
|
|
18983
|
+
description: "The name a configuration document gives one configured source.",
|
|
18984
|
+
type: "string",
|
|
18985
|
+
pattern: "^[a-z0-9][a-z0-9-]*$"
|
|
18986
|
+
},
|
|
18987
|
+
LocatedCounterpart: {
|
|
18988
|
+
description: "The destination item a copy would update.",
|
|
18989
|
+
type: "object",
|
|
18990
|
+
properties: {
|
|
18991
|
+
id: {
|
|
18992
|
+
description: "Its qualified id at the destination the task is placed in.",
|
|
18993
|
+
$ref: "#/$defs/GlobalId"
|
|
18994
|
+
},
|
|
18995
|
+
via: {
|
|
18996
|
+
description: "Which rule found it, as a copy's report spells it.",
|
|
18997
|
+
$ref: "#/$defs/CopyVia"
|
|
18998
|
+
}
|
|
18999
|
+
},
|
|
19000
|
+
required: [
|
|
19001
|
+
"id",
|
|
19002
|
+
"via"
|
|
19003
|
+
]
|
|
19004
|
+
},
|
|
19005
|
+
CopyVia: {
|
|
19006
|
+
description: `Which rule found the destination counterpart an item was updated at, or found already
|
|
19007
|
+
reading as it does.
|
|
19008
|
+
|
|
19009
|
+
Tried in this order, and the first that answers is the one reported: the explicit target
|
|
19010
|
+
task, the link the item records, its own origin, a search of the destination for an item
|
|
19011
|
+
recording it as its origin, and the caller's \`--match-by\`. When none answers, the item is created and says
|
|
19012
|
+
so as [\`NoCounterpart\`] instead.`,
|
|
19013
|
+
oneOf: [
|
|
19014
|
+
{
|
|
19015
|
+
description: "The destination task explicitly named by the caller and verified by origin.",
|
|
19016
|
+
type: "string",
|
|
19017
|
+
const: "target-task"
|
|
19018
|
+
},
|
|
19019
|
+
{
|
|
19020
|
+
description: "The item's `onetaskgraph.copies` entry for the destination named an item whose own\norigin names this one back. Found by one read by id, and no scan.",
|
|
19021
|
+
type: "string",
|
|
19022
|
+
const: "link"
|
|
19023
|
+
},
|
|
19024
|
+
{
|
|
19025
|
+
description: "The item's own `onetaskgraph.origin` named the destination item: a copy-back.",
|
|
19026
|
+
type: "string",
|
|
19027
|
+
const: "origin"
|
|
19028
|
+
},
|
|
19029
|
+
{
|
|
19030
|
+
description: "A search of the destination for an item recording this one as its origin.",
|
|
19031
|
+
type: "string",
|
|
19032
|
+
const: "scan"
|
|
19033
|
+
},
|
|
19034
|
+
{
|
|
19035
|
+
description: "A search of the destination by the caller's `--match-by`.",
|
|
19036
|
+
type: "string",
|
|
19037
|
+
const: "match"
|
|
19038
|
+
},
|
|
19039
|
+
{
|
|
19040
|
+
description: "The item the destination holds under the key of a create an earlier attempt of this\ncopy recorded its intent for, at `onetaskgraph.creating`: that attempt's create,\nfinished rather than made twice.",
|
|
19041
|
+
type: "string",
|
|
19042
|
+
const: "intent"
|
|
19043
|
+
}
|
|
19044
|
+
]
|
|
19045
|
+
},
|
|
19046
|
+
CreatesIn: {
|
|
19047
|
+
description: "Where a create would file a task's issue.",
|
|
19048
|
+
type: "object",
|
|
19049
|
+
properties: {
|
|
19050
|
+
repository: {
|
|
19051
|
+
description: "The repository, as a normalized origin `host/owner/name`.",
|
|
19052
|
+
$ref: "#/$defs/Repository"
|
|
19053
|
+
},
|
|
19054
|
+
refused: {
|
|
19055
|
+
description: "Why the destination's own policy on where it creates — a GitHub Projects source's\n`creation_owners` — would refuse a create there, as the copy's refusal says it; absent\nwhen it would not. The locate itself never fails for it.",
|
|
19056
|
+
type: [
|
|
19057
|
+
"string",
|
|
19058
|
+
"null"
|
|
19059
|
+
]
|
|
19060
|
+
}
|
|
19061
|
+
},
|
|
19062
|
+
required: [
|
|
19063
|
+
"repository"
|
|
19064
|
+
]
|
|
19065
|
+
},
|
|
19066
|
+
Repository: {
|
|
19067
|
+
description: "A repository identified by its normalized origin, without a URL scheme or `.git` suffix.",
|
|
19068
|
+
type: "string"
|
|
19069
|
+
}
|
|
19070
|
+
}
|
|
19071
|
+
},
|
|
18125
19072
|
Location: {
|
|
18126
19073
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
18127
19074
|
title: "Location",
|
|
@@ -18156,6 +19103,94 @@ absolute path, so a reader can print the path or read the contents out.`,
|
|
|
18156
19103
|
}
|
|
18157
19104
|
]
|
|
18158
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
|
+
},
|
|
18159
19194
|
MetadataSet: {
|
|
18160
19195
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
18161
19196
|
title: "MetadataSet",
|
|
@@ -20264,6 +21299,121 @@ which sources are configured and what page ceiling each declares.`,
|
|
|
20264
21299
|
}
|
|
20265
21300
|
}
|
|
20266
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
|
+
},
|
|
20267
21417
|
Predicate: {
|
|
20268
21418
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
20269
21419
|
title: "Predicate",
|
|
@@ -20638,6 +21788,200 @@ reach a public one.`,
|
|
|
20638
21788
|
}
|
|
20639
21789
|
}
|
|
20640
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
|
+
},
|
|
20641
21985
|
ProjectGraph: {
|
|
20642
21986
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
20643
21987
|
title: "ProjectGraph",
|
|
@@ -32984,6 +34328,16 @@ naming no configured source.`,
|
|
|
32984
34328
|
}
|
|
32985
34329
|
]
|
|
32986
34330
|
},
|
|
34331
|
+
depends_on: {
|
|
34332
|
+
description: "The task's forward dependency edges, exactly as `task deps` answers them — present only\nwhen the read asked for them (`task show --with-deps`), and absent for a task that was not\nfound, or whose edges could not be read, the failure then in the response's `errors`.",
|
|
34333
|
+
type: [
|
|
34334
|
+
"array",
|
|
34335
|
+
"null"
|
|
34336
|
+
],
|
|
34337
|
+
items: {
|
|
34338
|
+
$ref: "#/$defs/QualifiedEdge"
|
|
34339
|
+
}
|
|
34340
|
+
},
|
|
32987
34341
|
sanitization: {
|
|
32988
34342
|
anyOf: [
|
|
32989
34343
|
{
|
|
@@ -34017,6 +35371,83 @@ before it existed reads exactly what it read before.`,
|
|
|
34017
35371
|
}
|
|
34018
35372
|
]
|
|
34019
35373
|
},
|
|
35374
|
+
QualifiedEdge: {
|
|
35375
|
+
description: `One dependency edge with both ends qualified.
|
|
35376
|
+
|
|
35377
|
+
An end may belong to another source. The near plugin owns that qualified far id and the
|
|
35378
|
+
engine reports it without resolving or fetching the far source, so it holds no index.`,
|
|
35379
|
+
type: "object",
|
|
35380
|
+
properties: {
|
|
35381
|
+
from: {
|
|
35382
|
+
description: `The item the edge starts at, and the one that **depends on** the other.
|
|
35383
|
+
|
|
35384
|
+
The direction a caller asked in says which end they named, not which end the edge
|
|
35385
|
+
starts at: a forward read and the matching reverse read report the same edge.`,
|
|
35386
|
+
$ref: "#/$defs/QualifiedEndpoint"
|
|
35387
|
+
},
|
|
35388
|
+
to: {
|
|
35389
|
+
description: "The item the edge points at, and the one that must finish first.",
|
|
35390
|
+
$ref: "#/$defs/QualifiedEndpoint"
|
|
35391
|
+
},
|
|
35392
|
+
kind: {
|
|
35393
|
+
description: "What the edge means.",
|
|
35394
|
+
$ref: "#/$defs/DependencyKind"
|
|
35395
|
+
}
|
|
35396
|
+
},
|
|
35397
|
+
required: [
|
|
35398
|
+
"from",
|
|
35399
|
+
"to",
|
|
35400
|
+
"kind"
|
|
35401
|
+
]
|
|
35402
|
+
},
|
|
35403
|
+
QualifiedEndpoint: {
|
|
35404
|
+
description: "One typed, qualified endpoint in an engine dependency response.",
|
|
35405
|
+
type: "object",
|
|
35406
|
+
properties: {
|
|
35407
|
+
id: {
|
|
35408
|
+
description: "`<source>:<native>`, preserved when a plugin reports another source.",
|
|
35409
|
+
$ref: "#/$defs/GlobalId"
|
|
35410
|
+
},
|
|
35411
|
+
kind: {
|
|
35412
|
+
description: "Whether this endpoint names a task or project.",
|
|
35413
|
+
$ref: "#/$defs/ItemKind"
|
|
35414
|
+
}
|
|
35415
|
+
},
|
|
35416
|
+
required: [
|
|
35417
|
+
"id",
|
|
35418
|
+
"kind"
|
|
35419
|
+
]
|
|
35420
|
+
},
|
|
35421
|
+
ItemKind: {
|
|
35422
|
+
description: "The kind of work item named by a dependency endpoint.",
|
|
35423
|
+
oneOf: [
|
|
35424
|
+
{
|
|
35425
|
+
description: "A task.",
|
|
35426
|
+
type: "string",
|
|
35427
|
+
const: "task"
|
|
35428
|
+
},
|
|
35429
|
+
{
|
|
35430
|
+
description: "A project.",
|
|
35431
|
+
type: "string",
|
|
35432
|
+
const: "project"
|
|
35433
|
+
}
|
|
35434
|
+
]
|
|
35435
|
+
},
|
|
35436
|
+
DependencyKind: {
|
|
35437
|
+
description: "What a [`DependencyEdge`] means.\n\nBoth variants are read in the one direction [`DependencyEdge::from`] fixes: `from`\ndepends on `to`. This enum said the opposite of that until the orientation was settled,\nwhich is why it is spelled out twice rather than once.",
|
|
35438
|
+
oneOf: [
|
|
35439
|
+
{
|
|
35440
|
+
description: "`from` depends on `to`, and `to` must finish before `from` can.",
|
|
35441
|
+
type: "string",
|
|
35442
|
+
const: "blocks"
|
|
35443
|
+
},
|
|
35444
|
+
{
|
|
35445
|
+
description: "`from` and `to` are linked without an ordering.",
|
|
35446
|
+
type: "string",
|
|
35447
|
+
const: "related"
|
|
35448
|
+
}
|
|
35449
|
+
]
|
|
35450
|
+
},
|
|
34020
35451
|
Sanitization: {
|
|
34021
35452
|
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.",
|
|
34022
35453
|
type: "object",
|
|
@@ -34239,6 +35670,16 @@ naming no configured source.`,
|
|
|
34239
35670
|
type: "null"
|
|
34240
35671
|
}
|
|
34241
35672
|
]
|
|
35673
|
+
},
|
|
35674
|
+
depends_on: {
|
|
35675
|
+
description: "The task's forward dependency edges, exactly as `task deps` answers them — present only\nwhen the read asked for them (`task show --with-deps`), and absent for a task that was not\nfound, or whose edges could not be read, the failure then in the response's `errors`.",
|
|
35676
|
+
type: [
|
|
35677
|
+
"array",
|
|
35678
|
+
"null"
|
|
35679
|
+
],
|
|
35680
|
+
items: {
|
|
35681
|
+
$ref: "#/$defs/QualifiedEdge"
|
|
35682
|
+
}
|
|
34242
35683
|
}
|
|
34243
35684
|
},
|
|
34244
35685
|
required: [
|
|
@@ -35262,6 +36703,83 @@ before it existed reads exactly what it read before.`,
|
|
|
35262
36703
|
const: "remote"
|
|
35263
36704
|
}
|
|
35264
36705
|
]
|
|
36706
|
+
},
|
|
36707
|
+
QualifiedEdge: {
|
|
36708
|
+
description: `One dependency edge with both ends qualified.
|
|
36709
|
+
|
|
36710
|
+
An end may belong to another source. The near plugin owns that qualified far id and the
|
|
36711
|
+
engine reports it without resolving or fetching the far source, so it holds no index.`,
|
|
36712
|
+
type: "object",
|
|
36713
|
+
properties: {
|
|
36714
|
+
from: {
|
|
36715
|
+
description: `The item the edge starts at, and the one that **depends on** the other.
|
|
36716
|
+
|
|
36717
|
+
The direction a caller asked in says which end they named, not which end the edge
|
|
36718
|
+
starts at: a forward read and the matching reverse read report the same edge.`,
|
|
36719
|
+
$ref: "#/$defs/QualifiedEndpoint"
|
|
36720
|
+
},
|
|
36721
|
+
to: {
|
|
36722
|
+
description: "The item the edge points at, and the one that must finish first.",
|
|
36723
|
+
$ref: "#/$defs/QualifiedEndpoint"
|
|
36724
|
+
},
|
|
36725
|
+
kind: {
|
|
36726
|
+
description: "What the edge means.",
|
|
36727
|
+
$ref: "#/$defs/DependencyKind"
|
|
36728
|
+
}
|
|
36729
|
+
},
|
|
36730
|
+
required: [
|
|
36731
|
+
"from",
|
|
36732
|
+
"to",
|
|
36733
|
+
"kind"
|
|
36734
|
+
]
|
|
36735
|
+
},
|
|
36736
|
+
QualifiedEndpoint: {
|
|
36737
|
+
description: "One typed, qualified endpoint in an engine dependency response.",
|
|
36738
|
+
type: "object",
|
|
36739
|
+
properties: {
|
|
36740
|
+
id: {
|
|
36741
|
+
description: "`<source>:<native>`, preserved when a plugin reports another source.",
|
|
36742
|
+
$ref: "#/$defs/GlobalId"
|
|
36743
|
+
},
|
|
36744
|
+
kind: {
|
|
36745
|
+
description: "Whether this endpoint names a task or project.",
|
|
36746
|
+
$ref: "#/$defs/ItemKind"
|
|
36747
|
+
}
|
|
36748
|
+
},
|
|
36749
|
+
required: [
|
|
36750
|
+
"id",
|
|
36751
|
+
"kind"
|
|
36752
|
+
]
|
|
36753
|
+
},
|
|
36754
|
+
ItemKind: {
|
|
36755
|
+
description: "The kind of work item named by a dependency endpoint.",
|
|
36756
|
+
oneOf: [
|
|
36757
|
+
{
|
|
36758
|
+
description: "A task.",
|
|
36759
|
+
type: "string",
|
|
36760
|
+
const: "task"
|
|
36761
|
+
},
|
|
36762
|
+
{
|
|
36763
|
+
description: "A project.",
|
|
36764
|
+
type: "string",
|
|
36765
|
+
const: "project"
|
|
36766
|
+
}
|
|
36767
|
+
]
|
|
36768
|
+
},
|
|
36769
|
+
DependencyKind: {
|
|
36770
|
+
description: "What a [`DependencyEdge`] means.\n\nBoth variants are read in the one direction [`DependencyEdge::from`] fixes: `from`\ndepends on `to`. This enum said the opposite of that until the orientation was settled,\nwhich is why it is spelled out twice rather than once.",
|
|
36771
|
+
oneOf: [
|
|
36772
|
+
{
|
|
36773
|
+
description: "`from` depends on `to`, and `to` must finish before `from` can.",
|
|
36774
|
+
type: "string",
|
|
36775
|
+
const: "blocks"
|
|
36776
|
+
},
|
|
36777
|
+
{
|
|
36778
|
+
description: "`from` and `to` are linked without an ordering.",
|
|
36779
|
+
type: "string",
|
|
36780
|
+
const: "related"
|
|
36781
|
+
}
|
|
36782
|
+
]
|
|
35265
36783
|
}
|
|
35266
36784
|
}
|
|
35267
36785
|
},
|
|
@@ -35312,6 +36830,30 @@ before it existed reads exactly what it read before.`,
|
|
|
35312
36830
|
}
|
|
35313
36831
|
]
|
|
35314
36832
|
},
|
|
36833
|
+
outcome: {
|
|
36834
|
+
description: "`written` when the task held a priority the guard names, and `held` when it did not —\nabsent for a write made without the guard.",
|
|
36835
|
+
anyOf: [
|
|
36836
|
+
{
|
|
36837
|
+
$ref: "#/$defs/GuardOutcome"
|
|
36838
|
+
},
|
|
36839
|
+
{
|
|
36840
|
+
type: "null"
|
|
36841
|
+
}
|
|
36842
|
+
],
|
|
36843
|
+
default: null
|
|
36844
|
+
},
|
|
36845
|
+
priority_condition: {
|
|
36846
|
+
description: "What the guard found the task's priority at before the write, and whether that is one it\nnames — the shape `task copy --when-destination-priority` reports — absent for a write\nmade without the guard.",
|
|
36847
|
+
anyOf: [
|
|
36848
|
+
{
|
|
36849
|
+
$ref: "#/$defs/PriorityCondition"
|
|
36850
|
+
},
|
|
36851
|
+
{
|
|
36852
|
+
type: "null"
|
|
36853
|
+
}
|
|
36854
|
+
],
|
|
36855
|
+
default: null
|
|
36856
|
+
},
|
|
35315
36857
|
sanitization: {
|
|
35316
36858
|
anyOf: [
|
|
35317
36859
|
{
|
|
@@ -35645,6 +37187,39 @@ interprets none of them, which is why the budget and unit names are open vocabul
|
|
|
35645
37187
|
"lower_bound"
|
|
35646
37188
|
]
|
|
35647
37189
|
},
|
|
37190
|
+
GuardOutcome: {
|
|
37191
|
+
description: "What a write guarded by a condition on the item's own value came to.",
|
|
37192
|
+
oneOf: [
|
|
37193
|
+
{
|
|
37194
|
+
description: "The item held a value the guard names, and the write was made.",
|
|
37195
|
+
type: "string",
|
|
37196
|
+
const: "written"
|
|
37197
|
+
},
|
|
37198
|
+
{
|
|
37199
|
+
description: "The item held a value the guard does not name, and nothing was written.",
|
|
37200
|
+
type: "string",
|
|
37201
|
+
const: "held"
|
|
37202
|
+
}
|
|
37203
|
+
]
|
|
37204
|
+
},
|
|
37205
|
+
PriorityCondition: {
|
|
37206
|
+
description: "What a guarded copy found a counterpart's priority at, and whether that met the condition.",
|
|
37207
|
+
type: "object",
|
|
37208
|
+
properties: {
|
|
37209
|
+
held: {
|
|
37210
|
+
description: "The counterpart's priority, as the copy's own pre-write read held it.",
|
|
37211
|
+
$ref: "#/$defs/Priority"
|
|
37212
|
+
},
|
|
37213
|
+
met: {
|
|
37214
|
+
description: "Whether that priority is one the condition names.",
|
|
37215
|
+
type: "boolean"
|
|
37216
|
+
}
|
|
37217
|
+
},
|
|
37218
|
+
required: [
|
|
37219
|
+
"held",
|
|
37220
|
+
"met"
|
|
37221
|
+
]
|
|
37222
|
+
},
|
|
35648
37223
|
Sanitization: {
|
|
35649
37224
|
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.",
|
|
35650
37225
|
type: "object",
|
|
@@ -36786,9 +38361,9 @@ interprets none of them, which is why the budget and unit names are open vocabul
|
|
|
36786
38361
|
description: `A targeted update of one existing task. A member left \`None\` (or empty) leaves that field
|
|
36787
38362
|
exactly as the source holds it.
|
|
36788
38363
|
|
|
36789
|
-
Labels
|
|
36790
|
-
|
|
36791
|
-
|
|
38364
|
+
Labels and project membership are deliberately outside it — an existing item is never
|
|
38365
|
+
moved, and no caller writes labels this way — and so is creation, which is a copy's. Its
|
|
38366
|
+
\`repositories\` list is a field of the item like its title, and is replaced whole.`,
|
|
36792
38367
|
type: "object",
|
|
36793
38368
|
properties: {
|
|
36794
38369
|
title: {
|
|
@@ -36861,6 +38436,16 @@ copy's.`,
|
|
|
36861
38436
|
items: {
|
|
36862
38437
|
$ref: "#/$defs/DependencyEdge"
|
|
36863
38438
|
}
|
|
38439
|
+
},
|
|
38440
|
+
repositories: {
|
|
38441
|
+
description: "Replaces the task's [`Task::repositories`] whole; an empty list clears it. Where the\nitem's issue lives is never moved by it: it is the list the item names, as a read\nreports it.",
|
|
38442
|
+
type: [
|
|
38443
|
+
"array",
|
|
38444
|
+
"null"
|
|
38445
|
+
],
|
|
38446
|
+
items: {
|
|
38447
|
+
$ref: "#/$defs/Repository"
|
|
38448
|
+
}
|
|
36864
38449
|
}
|
|
36865
38450
|
},
|
|
36866
38451
|
$defs: {
|
|
@@ -37078,6 +38663,10 @@ recorded; the reverse of a recorded edge is derived, exactly as a
|
|
|
37078
38663
|
const: "related"
|
|
37079
38664
|
}
|
|
37080
38665
|
]
|
|
38666
|
+
},
|
|
38667
|
+
Repository: {
|
|
38668
|
+
description: "A repository identified by its normalized origin, without a URL scheme or `.git` suffix.",
|
|
38669
|
+
type: "string"
|
|
37081
38670
|
}
|
|
37082
38671
|
}
|
|
37083
38672
|
},
|
|
@@ -37523,6 +39112,11 @@ reach a public one.`,
|
|
|
37523
39112
|
description: "[`TaskUpdate::depends_on`].",
|
|
37524
39113
|
type: "string",
|
|
37525
39114
|
const: "depends-on"
|
|
39115
|
+
},
|
|
39116
|
+
{
|
|
39117
|
+
description: "[`TaskUpdate::repositories`].",
|
|
39118
|
+
type: "string",
|
|
39119
|
+
const: "repositories"
|
|
37526
39120
|
}
|
|
37527
39121
|
]
|
|
37528
39122
|
}
|
|
@@ -38035,6 +39629,11 @@ reach a public one.`,
|
|
|
38035
39629
|
description: "[`TaskUpdate::depends_on`].",
|
|
38036
39630
|
type: "string",
|
|
38037
39631
|
const: "depends-on"
|
|
39632
|
+
},
|
|
39633
|
+
{
|
|
39634
|
+
description: "[`TaskUpdate::repositories`].",
|
|
39635
|
+
type: "string",
|
|
39636
|
+
const: "repositories"
|
|
38038
39637
|
}
|
|
38039
39638
|
]
|
|
38040
39639
|
},
|
|
@@ -38632,6 +40231,9 @@ no insignificant whitespace, UTF-8.`,
|
|
|
38632
40231
|
default: {
|
|
38633
40232
|
description: "The value used when no answer is given."
|
|
38634
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
|
+
},
|
|
38635
40237
|
declared_in: {
|
|
38636
40238
|
description: "The chain file whose declaration this is: the one nearest the rendered template.",
|
|
38637
40239
|
type: "string"
|
|
@@ -38759,6 +40361,9 @@ no insignificant whitespace, UTF-8.`,
|
|
|
38759
40361
|
default: {
|
|
38760
40362
|
description: "The value used when no answer is given."
|
|
38761
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
|
+
},
|
|
38762
40367
|
declared_in: {
|
|
38763
40368
|
description: "The chain file whose declaration this is: the one nearest the rendered template.",
|
|
38764
40369
|
type: "string"
|
|
@@ -38885,6 +40490,11 @@ no insignificant whitespace, UTF-8.`,
|
|
|
38885
40490
|
description: "[`TaskUpdate::depends_on`].",
|
|
38886
40491
|
type: "string",
|
|
38887
40492
|
const: "depends-on"
|
|
40493
|
+
},
|
|
40494
|
+
{
|
|
40495
|
+
description: "[`TaskUpdate::repositories`].",
|
|
40496
|
+
type: "string",
|
|
40497
|
+
const: "repositories"
|
|
38888
40498
|
}
|
|
38889
40499
|
]
|
|
38890
40500
|
},
|
|
@@ -38925,6 +40535,23 @@ no insignificant whitespace, UTF-8.`,
|
|
|
38925
40535
|
}
|
|
38926
40536
|
]
|
|
38927
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
|
+
},
|
|
38928
40555
|
WritePolicyConfig: {
|
|
38929
40556
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
38930
40557
|
title: "WritePolicyConfig",
|
|
@@ -39785,12 +41412,15 @@ var commandResponseRoots = {
|
|
|
39785
41412
|
"task comment list": "CommentList",
|
|
39786
41413
|
"task comment edit": "CommentWritten",
|
|
39787
41414
|
"task comment delete": "DeletedComment",
|
|
41415
|
+
"task comments": "CommentsSince",
|
|
39788
41416
|
"task status set": "TaskStatusSet",
|
|
39789
41417
|
"task status reconcile": "StatusesReconciled",
|
|
39790
41418
|
"task status complete": "IssuesCompleted",
|
|
39791
41419
|
"task priority set": "TaskPrioritySet",
|
|
39792
41420
|
"task content set": "TaskContentSet",
|
|
39793
41421
|
"task metadata set": "MetadataSet",
|
|
41422
|
+
"task attest": "Attested",
|
|
41423
|
+
"task attestation check": "AttestationCheck",
|
|
39794
41424
|
"task update": "TaskUpdated",
|
|
39795
41425
|
"project list": "QueryResponseOfQualifiedProject",
|
|
39796
41426
|
"project show": "QueryResponseOfQualifiedProject",
|
|
@@ -39798,6 +41428,8 @@ var commandResponseRoots = {
|
|
|
39798
41428
|
"project graph": "ProjectGraph",
|
|
39799
41429
|
"project copy": "CopyReport",
|
|
39800
41430
|
"project metadata set": "MetadataSet",
|
|
41431
|
+
"project attest": "Attested",
|
|
41432
|
+
"project attestation check": "AttestationCheck",
|
|
39801
41433
|
"project status set": "ProjectStatusSet",
|
|
39802
41434
|
"project create": "QueryResponseOfQualifiedProject",
|
|
39803
41435
|
"project render": "Regenerated",
|
|
@@ -39806,6 +41438,8 @@ var commandResponseRoots = {
|
|
|
39806
41438
|
"document show": "DocumentDetail",
|
|
39807
41439
|
"document copy": "CopyReport",
|
|
39808
41440
|
"document metadata set": "MetadataSet",
|
|
41441
|
+
"document attest": "Attested",
|
|
41442
|
+
"document attestation check": "AttestationCheck",
|
|
39809
41443
|
"label list": "QueryResponseOfQualifiedLabel",
|
|
39810
41444
|
search: "QueryResponseOfSearchHit",
|
|
39811
41445
|
"template variables": "TemplateVariables",
|
|
@@ -39820,9 +41454,11 @@ var commandResponseRoots = {
|
|
|
39820
41454
|
"document answers": "TemplateAnswers"
|
|
39821
41455
|
};
|
|
39822
41456
|
var commandAlternateRoots = {
|
|
39823
|
-
"sources fields": ["StatusNamesReport"]
|
|
41457
|
+
"sources fields": ["StatusNamesReport"],
|
|
41458
|
+
"project attestation check": ["ProjectAttestationCheck"],
|
|
41459
|
+
"project create": ["PlannedProject"]
|
|
39824
41460
|
};
|
|
39825
|
-
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"));
|
|
39826
41462
|
function bodyArguments(options) {
|
|
39827
41463
|
return "bodyFile" in options ? { args: ["--body-file", options.bodyFile] } : { args: [], input: options.body };
|
|
39828
41464
|
}
|
|
@@ -39953,7 +41589,9 @@ var taskUpdateOptionFlags = {
|
|
|
39953
41589
|
replace: "--replace",
|
|
39954
41590
|
reject: "--reject",
|
|
39955
41591
|
sanitizeDryRun: "--sanitize-dry-run",
|
|
39956
|
-
expect: "--expect"
|
|
41592
|
+
expect: "--expect",
|
|
41593
|
+
ifVersion: "--if-version",
|
|
41594
|
+
repositories: "--repository"
|
|
39957
41595
|
};
|
|
39958
41596
|
function stringOption(method, name, value) {
|
|
39959
41597
|
if (typeof value !== "string") {
|
|
@@ -39972,13 +41610,7 @@ function taskUpdateFlags(options) {
|
|
|
39972
41610
|
throw new TypeError(`${method}: options has the member ${unknown}, which names no field; next: name only ` + Object.keys(taskUpdateOptionFlags).join(", "));
|
|
39973
41611
|
}
|
|
39974
41612
|
const args = [];
|
|
39975
|
-
const scalars = [
|
|
39976
|
-
"title",
|
|
39977
|
-
"status",
|
|
39978
|
-
"statusName",
|
|
39979
|
-
"priority",
|
|
39980
|
-
"expect"
|
|
39981
|
-
];
|
|
41613
|
+
const scalars = ["title", "status", "statusName", "priority", "expect", "ifVersion"];
|
|
39982
41614
|
for (const name of scalars) {
|
|
39983
41615
|
if (options[name] !== undefined) {
|
|
39984
41616
|
args.push(taskUpdateOptionFlags[name], stringOption(method, name, options[name]));
|
|
@@ -40007,6 +41639,13 @@ function taskUpdateFlags(options) {
|
|
|
40007
41639
|
for (const id of ids)
|
|
40008
41640
|
args.push(flag, id);
|
|
40009
41641
|
}
|
|
41642
|
+
if (options.repositories !== undefined) {
|
|
41643
|
+
const origins = stringList(method, "repositories", options.repositories);
|
|
41644
|
+
if (origins.length === 0)
|
|
41645
|
+
args.push("--no-repositories");
|
|
41646
|
+
for (const origin of origins)
|
|
41647
|
+
args.push("--repository", origin);
|
|
41648
|
+
}
|
|
40010
41649
|
args.push(...writePolicyFlags(method, options));
|
|
40011
41650
|
return args;
|
|
40012
41651
|
}
|
|
@@ -40177,6 +41816,42 @@ function writePolicyFlags(method, options) {
|
|
|
40177
41816
|
args.push("--sanitize-dry-run");
|
|
40178
41817
|
return args;
|
|
40179
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
|
+
}
|
|
40180
41855
|
function expectFlags(method, options) {
|
|
40181
41856
|
if (options.expect === undefined)
|
|
40182
41857
|
return [];
|
|
@@ -40187,6 +41862,29 @@ function pinFlags(method, pin) {
|
|
|
40187
41862
|
return [];
|
|
40188
41863
|
return ["--pin", stringOption(method, "pin", pin)];
|
|
40189
41864
|
}
|
|
41865
|
+
var taskCommentsOptionFlags = {
|
|
41866
|
+
metadata: "--metadata",
|
|
41867
|
+
statuses: "--status",
|
|
41868
|
+
items: "--item"
|
|
41869
|
+
};
|
|
41870
|
+
function taskCommentsFlags(since, options) {
|
|
41871
|
+
const method = "taskComments";
|
|
41872
|
+
if (!isPlainObject(options)) {
|
|
41873
|
+
throw new TypeError(`${method}: options is not an object; next: pass the narrowing as a plain object`);
|
|
41874
|
+
}
|
|
41875
|
+
const unknown = Object.keys(options).find((key) => !Object.hasOwn(taskCommentsOptionFlags, key));
|
|
41876
|
+
if (unknown !== undefined) {
|
|
41877
|
+
throw new TypeError(`${method}: options has the member ${unknown}, which narrows nothing; next: name only ` + Object.keys(taskCommentsOptionFlags).join(", "));
|
|
41878
|
+
}
|
|
41879
|
+
const args = ["--since", stringOption(method, "since", since)];
|
|
41880
|
+
const names = ["metadata", "statuses", "items"];
|
|
41881
|
+
for (const name of names) {
|
|
41882
|
+
for (const value of stringList(method, name, options[name])) {
|
|
41883
|
+
args.push(taskCommentsOptionFlags[name], value);
|
|
41884
|
+
}
|
|
41885
|
+
}
|
|
41886
|
+
return args;
|
|
41887
|
+
}
|
|
40190
41888
|
function taskCopyFlags(options) {
|
|
40191
41889
|
if (options.create !== undefined && typeof options.create !== "boolean") {
|
|
40192
41890
|
throw new TypeError("taskCopy: create must be a boolean");
|
|
@@ -40209,7 +41907,8 @@ function taskCopyFlags(options) {
|
|
|
40209
41907
|
...conditions,
|
|
40210
41908
|
...options.create ? ["--create"] : [],
|
|
40211
41909
|
...options.targetTask === undefined ? [] : ["--target-task", stringOption("taskCopy", "targetTask", options.targetTask)],
|
|
40212
|
-
...expectFlags("taskCopy", options)
|
|
41910
|
+
...expectFlags("taskCopy", options),
|
|
41911
|
+
...options.ifVersion === undefined ? [] : ["--if-version", stringOption("taskCopy", "ifVersion", options.ifVersion)]
|
|
40213
41912
|
];
|
|
40214
41913
|
}
|
|
40215
41914
|
function projectCopyFlags(options) {
|
|
@@ -40390,6 +42089,9 @@ class OnetaskgraphClient {
|
|
|
40390
42089
|
args.push(...expectFlags("taskCommentAdd", options));
|
|
40391
42090
|
return this.run("task comment add", [id, ...args], input, options.sanitizeDryRun === true);
|
|
40392
42091
|
}
|
|
42092
|
+
taskComments(source, since, options = {}) {
|
|
42093
|
+
return this.run("task comments", [source, ...taskCommentsFlags(since, options)]);
|
|
42094
|
+
}
|
|
40393
42095
|
taskCommentList(id, options = {}) {
|
|
40394
42096
|
return this.run("task comment list", [id, ...pinFlags("taskCommentList", options.pin)]);
|
|
40395
42097
|
}
|
|
@@ -40554,6 +42256,33 @@ class OnetaskgraphClient {
|
|
|
40554
42256
|
documentMetadataSet(id, key, value, options = {}) {
|
|
40555
42257
|
return this.run("document metadata set", [id, key, value, ...writePolicyFlags("documentMetadataSet", options)], undefined, options.sanitizeDryRun === true);
|
|
40556
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
|
+
}
|
|
40557
42286
|
labelList(options = {}) {
|
|
40558
42287
|
const args = [];
|
|
40559
42288
|
addQuery(args, options);
|
|
@@ -40621,6 +42350,8 @@ class OnetaskgraphClient {
|
|
|
40621
42350
|
const { args, input } = createArguments("projectCreate", ["--id", id, "--title", title], options);
|
|
40622
42351
|
if (options.status !== undefined)
|
|
40623
42352
|
args.push("--status", options.status);
|
|
42353
|
+
if (flagOption("projectCreate", "dryRun", options.dryRun))
|
|
42354
|
+
args.push("--dry-run");
|
|
40624
42355
|
return this.run("project create", [source, ...args], input, options.sanitizeDryRun === true);
|
|
40625
42356
|
}
|
|
40626
42357
|
async projectRender(id, options = {}) {
|
|
@@ -40664,7 +42395,7 @@ class OnetaskgraphClient {
|
|
|
40664
42395
|
});
|
|
40665
42396
|
child.on("error", () => reject(new OnetaskgraphExecutionError(null)));
|
|
40666
42397
|
child.on("close", (code) => {
|
|
40667
|
-
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 }));
|
|
40668
42399
|
if (stdout.length === 0 || code !== 0 && !reporting && (code !== 4 || !partialResponseCommands.has(command))) {
|
|
40669
42400
|
reject(new OnetaskgraphExecutionError(code, stderr, failureOf(stdout)));
|
|
40670
42401
|
return;
|
|
@@ -40712,11 +42443,13 @@ function assertCompleteCommandSurface() {
|
|
|
40712
42443
|
}
|
|
40713
42444
|
|
|
40714
42445
|
// src/index.ts
|
|
40715
|
-
var VERSION = "0.14.
|
|
42446
|
+
var VERSION = "0.14.11";
|
|
40716
42447
|
export {
|
|
40717
42448
|
taskUpdateOptionFlags,
|
|
40718
42449
|
taskUpdateFlags,
|
|
40719
42450
|
taskCopyFlags,
|
|
42451
|
+
taskCommentsOptionFlags,
|
|
42452
|
+
taskCommentsFlags,
|
|
40720
42453
|
statusPolicies,
|
|
40721
42454
|
projectGraphDirections,
|
|
40722
42455
|
projectCopyFlags,
|