@onetaskgraph/sdk 0.14.12 → 0.14.13
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 +7 -1
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +485 -1
- package/dist/generated/schemas.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1087 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7161,6 +7161,10 @@ var binaryCommands = [
|
|
|
7161
7161
|
"task comments",
|
|
7162
7162
|
"task find",
|
|
7163
7163
|
"task update-many",
|
|
7164
|
+
"task parent set-many",
|
|
7165
|
+
"task link add-many",
|
|
7166
|
+
"task link remove-many",
|
|
7167
|
+
"task relations",
|
|
7164
7168
|
"task status set",
|
|
7165
7169
|
"task status reconcile",
|
|
7166
7170
|
"task status complete",
|
|
@@ -7204,7 +7208,7 @@ var binaryCommands = [
|
|
|
7204
7208
|
];
|
|
7205
7209
|
|
|
7206
7210
|
// src/generated/models.ts
|
|
7207
|
-
var SCHEMA_BUNDLE_VERSION =
|
|
7211
|
+
var SCHEMA_BUNDLE_VERSION = 62;
|
|
7208
7212
|
|
|
7209
7213
|
// src/generated/schemas.ts
|
|
7210
7214
|
var runtimeSchemas = {
|
|
@@ -19576,6 +19580,14 @@ source reads and writes team-wide.`,
|
|
|
19576
19580
|
}
|
|
19577
19581
|
],
|
|
19578
19582
|
default: null
|
|
19583
|
+
},
|
|
19584
|
+
link_types: {
|
|
19585
|
+
description: 'The link types this source mirrors as Linear\'s own `related` issue relation, each as\n`<type>: {"native": "related"}` — the one word a Linear source mirrors a link as. A type\nnot named here is kept in the store\'s metadata alone.',
|
|
19586
|
+
type: "object",
|
|
19587
|
+
additionalProperties: {
|
|
19588
|
+
$ref: "#/$defs/LinkTypeConfig"
|
|
19589
|
+
},
|
|
19590
|
+
default: {}
|
|
19579
19591
|
}
|
|
19580
19592
|
},
|
|
19581
19593
|
additionalProperties: false,
|
|
@@ -19705,6 +19717,336 @@ source reads and writes team-wide.`,
|
|
|
19705
19717
|
description: "The id of one Linear project, which a scoped source holds alone.",
|
|
19706
19718
|
type: "string",
|
|
19707
19719
|
minLength: 1
|
|
19720
|
+
},
|
|
19721
|
+
LinkTypeConfig: {
|
|
19722
|
+
description: "One entry of a source's `link_types` configuration, as written.",
|
|
19723
|
+
type: "object",
|
|
19724
|
+
properties: {
|
|
19725
|
+
native: {
|
|
19726
|
+
description: "The destination's own relation this type is mirrored as.",
|
|
19727
|
+
type: [
|
|
19728
|
+
"string",
|
|
19729
|
+
"null"
|
|
19730
|
+
],
|
|
19731
|
+
default: null
|
|
19732
|
+
}
|
|
19733
|
+
},
|
|
19734
|
+
additionalProperties: false
|
|
19735
|
+
}
|
|
19736
|
+
}
|
|
19737
|
+
},
|
|
19738
|
+
LinkBatch: {
|
|
19739
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
19740
|
+
title: "LinkBatch",
|
|
19741
|
+
description: "What `task link add-many` and `task link remove-many` read: many typed links.",
|
|
19742
|
+
type: "object",
|
|
19743
|
+
properties: {
|
|
19744
|
+
schema_version: {
|
|
19745
|
+
description: "`1`.",
|
|
19746
|
+
type: "integer",
|
|
19747
|
+
format: "uint32",
|
|
19748
|
+
minimum: 0
|
|
19749
|
+
},
|
|
19750
|
+
links: {
|
|
19751
|
+
description: "The links, each added or removed on its own.",
|
|
19752
|
+
type: "array",
|
|
19753
|
+
items: {
|
|
19754
|
+
$ref: "#/$defs/LinkItem"
|
|
19755
|
+
}
|
|
19756
|
+
}
|
|
19757
|
+
},
|
|
19758
|
+
additionalProperties: false,
|
|
19759
|
+
required: [
|
|
19760
|
+
"schema_version",
|
|
19761
|
+
"links"
|
|
19762
|
+
],
|
|
19763
|
+
$defs: {
|
|
19764
|
+
LinkItem: {
|
|
19765
|
+
description: "One link of a [`LinkBatch`]: a type name over a directed pair of items.",
|
|
19766
|
+
type: "object",
|
|
19767
|
+
properties: {
|
|
19768
|
+
from: {
|
|
19769
|
+
description: "The link's `from`, a qualified task id.",
|
|
19770
|
+
type: "string"
|
|
19771
|
+
},
|
|
19772
|
+
to: {
|
|
19773
|
+
description: "The link's `to`, a qualified task id of any configured source.",
|
|
19774
|
+
type: "string"
|
|
19775
|
+
},
|
|
19776
|
+
type: {
|
|
19777
|
+
description: "The link's type name.",
|
|
19778
|
+
type: "string"
|
|
19779
|
+
}
|
|
19780
|
+
},
|
|
19781
|
+
additionalProperties: false,
|
|
19782
|
+
required: [
|
|
19783
|
+
"from",
|
|
19784
|
+
"to",
|
|
19785
|
+
"type"
|
|
19786
|
+
]
|
|
19787
|
+
}
|
|
19788
|
+
}
|
|
19789
|
+
},
|
|
19790
|
+
LinkOutcome: {
|
|
19791
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
19792
|
+
title: "LinkOutcome",
|
|
19793
|
+
description: "What became of one link.",
|
|
19794
|
+
oneOf: [
|
|
19795
|
+
{
|
|
19796
|
+
description: "Every endpoint it needed was written.",
|
|
19797
|
+
type: "string",
|
|
19798
|
+
const: "written"
|
|
19799
|
+
},
|
|
19800
|
+
{
|
|
19801
|
+
description: "An add of a link both endpoints already hold; nothing was written.",
|
|
19802
|
+
type: "string",
|
|
19803
|
+
const: "exists"
|
|
19804
|
+
},
|
|
19805
|
+
{
|
|
19806
|
+
description: "A removal of a link neither endpoint holds; nothing was written.",
|
|
19807
|
+
type: "string",
|
|
19808
|
+
const: "absent"
|
|
19809
|
+
},
|
|
19810
|
+
{
|
|
19811
|
+
description: "One endpoint landed and the other did not; `reason` names the one that landed, and\nrepeating the call completes the other.",
|
|
19812
|
+
type: "string",
|
|
19813
|
+
const: "partial"
|
|
19814
|
+
},
|
|
19815
|
+
{
|
|
19816
|
+
description: "Nothing of it was written; `reason` says why.",
|
|
19817
|
+
type: "string",
|
|
19818
|
+
const: "error"
|
|
19819
|
+
}
|
|
19820
|
+
]
|
|
19821
|
+
},
|
|
19822
|
+
LinksWritten: {
|
|
19823
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
19824
|
+
title: "LinksWritten",
|
|
19825
|
+
description: "What `task link add-many` and `task link remove-many` answer: one result per link.",
|
|
19826
|
+
type: "object",
|
|
19827
|
+
properties: {
|
|
19828
|
+
schema_version: {
|
|
19829
|
+
description: "`1`.",
|
|
19830
|
+
type: "integer",
|
|
19831
|
+
format: "uint32",
|
|
19832
|
+
minimum: 0
|
|
19833
|
+
},
|
|
19834
|
+
results: {
|
|
19835
|
+
description: "One per link, in the order given.",
|
|
19836
|
+
type: "array",
|
|
19837
|
+
items: {
|
|
19838
|
+
$ref: "#/$defs/LinkResult"
|
|
19839
|
+
}
|
|
19840
|
+
},
|
|
19841
|
+
sanitization: {
|
|
19842
|
+
anyOf: [
|
|
19843
|
+
{
|
|
19844
|
+
$ref: "#/$defs/Sanitization"
|
|
19845
|
+
},
|
|
19846
|
+
{
|
|
19847
|
+
type: "null"
|
|
19848
|
+
}
|
|
19849
|
+
]
|
|
19850
|
+
}
|
|
19851
|
+
},
|
|
19852
|
+
required: [
|
|
19853
|
+
"schema_version",
|
|
19854
|
+
"results"
|
|
19855
|
+
],
|
|
19856
|
+
$defs: {
|
|
19857
|
+
LinkResult: {
|
|
19858
|
+
description: "What became of one link of a [`LinkBatch`].",
|
|
19859
|
+
type: "object",
|
|
19860
|
+
properties: {
|
|
19861
|
+
from: {
|
|
19862
|
+
description: "The `from` as the batch named it.",
|
|
19863
|
+
type: "string"
|
|
19864
|
+
},
|
|
19865
|
+
to: {
|
|
19866
|
+
description: "The `to` as the batch named it.",
|
|
19867
|
+
type: "string"
|
|
19868
|
+
},
|
|
19869
|
+
type: {
|
|
19870
|
+
description: "The link's type name.",
|
|
19871
|
+
type: "string"
|
|
19872
|
+
},
|
|
19873
|
+
outcome: {
|
|
19874
|
+
description: "What became of it.",
|
|
19875
|
+
$ref: "#/$defs/LinkOutcome"
|
|
19876
|
+
},
|
|
19877
|
+
from_version: {
|
|
19878
|
+
description: "The `from` endpoint's version — after this call's write of it, else as read.",
|
|
19879
|
+
type: [
|
|
19880
|
+
"string",
|
|
19881
|
+
"null"
|
|
19882
|
+
]
|
|
19883
|
+
},
|
|
19884
|
+
to_version: {
|
|
19885
|
+
description: "The `to` endpoint's version — after this call's write of it, else as read.",
|
|
19886
|
+
type: [
|
|
19887
|
+
"string",
|
|
19888
|
+
"null"
|
|
19889
|
+
]
|
|
19890
|
+
},
|
|
19891
|
+
reason: {
|
|
19892
|
+
description: "Why it is answered `partial` — naming the endpoint that landed — or `error`.",
|
|
19893
|
+
type: [
|
|
19894
|
+
"string",
|
|
19895
|
+
"null"
|
|
19896
|
+
]
|
|
19897
|
+
}
|
|
19898
|
+
},
|
|
19899
|
+
required: [
|
|
19900
|
+
"from",
|
|
19901
|
+
"to",
|
|
19902
|
+
"type",
|
|
19903
|
+
"outcome"
|
|
19904
|
+
]
|
|
19905
|
+
},
|
|
19906
|
+
LinkOutcome: {
|
|
19907
|
+
description: "What became of one link.",
|
|
19908
|
+
oneOf: [
|
|
19909
|
+
{
|
|
19910
|
+
description: "Every endpoint it needed was written.",
|
|
19911
|
+
type: "string",
|
|
19912
|
+
const: "written"
|
|
19913
|
+
},
|
|
19914
|
+
{
|
|
19915
|
+
description: "An add of a link both endpoints already hold; nothing was written.",
|
|
19916
|
+
type: "string",
|
|
19917
|
+
const: "exists"
|
|
19918
|
+
},
|
|
19919
|
+
{
|
|
19920
|
+
description: "A removal of a link neither endpoint holds; nothing was written.",
|
|
19921
|
+
type: "string",
|
|
19922
|
+
const: "absent"
|
|
19923
|
+
},
|
|
19924
|
+
{
|
|
19925
|
+
description: "One endpoint landed and the other did not; `reason` names the one that landed, and\nrepeating the call completes the other.",
|
|
19926
|
+
type: "string",
|
|
19927
|
+
const: "partial"
|
|
19928
|
+
},
|
|
19929
|
+
{
|
|
19930
|
+
description: "Nothing of it was written; `reason` says why.",
|
|
19931
|
+
type: "string",
|
|
19932
|
+
const: "error"
|
|
19933
|
+
}
|
|
19934
|
+
]
|
|
19935
|
+
},
|
|
19936
|
+
Sanitization: {
|
|
19937
|
+
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.",
|
|
19938
|
+
type: "object",
|
|
19939
|
+
properties: {
|
|
19940
|
+
replaced: {
|
|
19941
|
+
description: "Spans the writes' own sanitisations rewrote.",
|
|
19942
|
+
type: "integer",
|
|
19943
|
+
format: "uint32",
|
|
19944
|
+
minimum: 0
|
|
19945
|
+
},
|
|
19946
|
+
side_effect: {
|
|
19947
|
+
description: "Each field or comment of an item sanitisation changed beyond the write itself.",
|
|
19948
|
+
type: "array",
|
|
19949
|
+
items: {
|
|
19950
|
+
$ref: "#/$defs/SideEffect"
|
|
19951
|
+
}
|
|
19952
|
+
},
|
|
19953
|
+
dry_run: {
|
|
19954
|
+
description: "Whether nothing was written, the changes only reported.",
|
|
19955
|
+
type: "boolean"
|
|
19956
|
+
}
|
|
19957
|
+
},
|
|
19958
|
+
required: [
|
|
19959
|
+
"replaced",
|
|
19960
|
+
"side_effect",
|
|
19961
|
+
"dry_run"
|
|
19962
|
+
]
|
|
19963
|
+
},
|
|
19964
|
+
SideEffect: {
|
|
19965
|
+
description: "One field or comment of an item a sanitisation changed, named by screened locators.",
|
|
19966
|
+
type: "object",
|
|
19967
|
+
properties: {
|
|
19968
|
+
item: {
|
|
19969
|
+
description: "The item, by its qualified id as screened.",
|
|
19970
|
+
$ref: "#/$defs/Locator"
|
|
19971
|
+
},
|
|
19972
|
+
field: {
|
|
19973
|
+
description: "The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.",
|
|
19974
|
+
$ref: "#/$defs/Locator"
|
|
19975
|
+
}
|
|
19976
|
+
},
|
|
19977
|
+
required: [
|
|
19978
|
+
"item",
|
|
19979
|
+
"field"
|
|
19980
|
+
]
|
|
19981
|
+
},
|
|
19982
|
+
Locator: {
|
|
19983
|
+
description: "A screened locator: the string verbatim, or its redacted form.",
|
|
19984
|
+
oneOf: [
|
|
19985
|
+
{
|
|
19986
|
+
type: "string"
|
|
19987
|
+
},
|
|
19988
|
+
{
|
|
19989
|
+
type: "object",
|
|
19990
|
+
properties: {
|
|
19991
|
+
redacted: {
|
|
19992
|
+
const: true
|
|
19993
|
+
},
|
|
19994
|
+
kind: {
|
|
19995
|
+
$ref: "#/$defs/LocatorKind"
|
|
19996
|
+
},
|
|
19997
|
+
ordinal: {
|
|
19998
|
+
type: "integer",
|
|
19999
|
+
minimum: 1
|
|
20000
|
+
}
|
|
20001
|
+
},
|
|
20002
|
+
required: [
|
|
20003
|
+
"redacted",
|
|
20004
|
+
"kind",
|
|
20005
|
+
"ordinal"
|
|
20006
|
+
],
|
|
20007
|
+
additionalProperties: false
|
|
20008
|
+
}
|
|
20009
|
+
]
|
|
20010
|
+
},
|
|
20011
|
+
LocatorKind: {
|
|
20012
|
+
description: "What a locator names.",
|
|
20013
|
+
oneOf: [
|
|
20014
|
+
{
|
|
20015
|
+
description: "A source name.",
|
|
20016
|
+
type: "string",
|
|
20017
|
+
const: "source"
|
|
20018
|
+
},
|
|
20019
|
+
{
|
|
20020
|
+
description: "An item id.",
|
|
20021
|
+
type: "string",
|
|
20022
|
+
const: "item"
|
|
20023
|
+
},
|
|
20024
|
+
{
|
|
20025
|
+
description: "A user-defined field name.",
|
|
20026
|
+
type: "string",
|
|
20027
|
+
const: "field"
|
|
20028
|
+
},
|
|
20029
|
+
{
|
|
20030
|
+
description: "A metadata key.",
|
|
20031
|
+
type: "string",
|
|
20032
|
+
const: "metadata-key"
|
|
20033
|
+
},
|
|
20034
|
+
{
|
|
20035
|
+
description: "A comment id.",
|
|
20036
|
+
type: "string",
|
|
20037
|
+
const: "comment"
|
|
20038
|
+
},
|
|
20039
|
+
{
|
|
20040
|
+
description: "A file path.",
|
|
20041
|
+
type: "string",
|
|
20042
|
+
const: "path"
|
|
20043
|
+
},
|
|
20044
|
+
{
|
|
20045
|
+
description: "A repository identity.",
|
|
20046
|
+
type: "string",
|
|
20047
|
+
const: "identity"
|
|
20048
|
+
}
|
|
20049
|
+
]
|
|
19708
20050
|
}
|
|
19709
20051
|
}
|
|
19710
20052
|
},
|
|
@@ -20975,6 +21317,28 @@ renders it per setting, so a user sees the same answer a test does.`,
|
|
|
20975
21317
|
}
|
|
20976
21318
|
]
|
|
20977
21319
|
},
|
|
21320
|
+
OtherEnd: {
|
|
21321
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
21322
|
+
title: "OtherEnd",
|
|
21323
|
+
description: "Whether a link's other end holds it too.",
|
|
21324
|
+
oneOf: [
|
|
21325
|
+
{
|
|
21326
|
+
description: "The other end holds the same link.",
|
|
21327
|
+
type: "string",
|
|
21328
|
+
const: "present"
|
|
21329
|
+
},
|
|
21330
|
+
{
|
|
21331
|
+
description: "The other end was read and does not hold it — a whole-body rewrite there lost it.",
|
|
21332
|
+
type: "string",
|
|
21333
|
+
const: "missing"
|
|
21334
|
+
},
|
|
21335
|
+
{
|
|
21336
|
+
description: "The other end is not among the ids asked, so it was not read.",
|
|
21337
|
+
type: "string",
|
|
21338
|
+
const: "unread"
|
|
21339
|
+
}
|
|
21340
|
+
]
|
|
21341
|
+
},
|
|
20978
21342
|
OutputFormat: {
|
|
20979
21343
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
20980
21344
|
title: "OutputFormat",
|
|
@@ -22377,6 +22741,319 @@ token meets the query it is resuming, by
|
|
|
22377
22741
|
which sources are configured and what page ceiling each declares.`,
|
|
22378
22742
|
type: "string"
|
|
22379
22743
|
},
|
|
22744
|
+
ParentBatch: {
|
|
22745
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
22746
|
+
title: "ParentBatch",
|
|
22747
|
+
description: "What `task parent set-many` reads: many parent writes.",
|
|
22748
|
+
type: "object",
|
|
22749
|
+
properties: {
|
|
22750
|
+
schema_version: {
|
|
22751
|
+
description: "`1`.",
|
|
22752
|
+
type: "integer",
|
|
22753
|
+
format: "uint32",
|
|
22754
|
+
minimum: 0
|
|
22755
|
+
},
|
|
22756
|
+
edges: {
|
|
22757
|
+
description: "The edges, each written on its own.",
|
|
22758
|
+
type: "array",
|
|
22759
|
+
items: {
|
|
22760
|
+
$ref: "#/$defs/ParentEdge"
|
|
22761
|
+
}
|
|
22762
|
+
}
|
|
22763
|
+
},
|
|
22764
|
+
additionalProperties: false,
|
|
22765
|
+
required: [
|
|
22766
|
+
"schema_version",
|
|
22767
|
+
"edges"
|
|
22768
|
+
],
|
|
22769
|
+
$defs: {
|
|
22770
|
+
ParentEdge: {
|
|
22771
|
+
description: "One edge of a [`ParentBatch`]: `child`'s parent set to `parent`, or removed for `null`.",
|
|
22772
|
+
type: "object",
|
|
22773
|
+
properties: {
|
|
22774
|
+
child: {
|
|
22775
|
+
description: "The child's qualified id, `<source>:<native-id>`.",
|
|
22776
|
+
type: "string"
|
|
22777
|
+
},
|
|
22778
|
+
parent: {
|
|
22779
|
+
description: "The parent's qualified id, a task of the child's own source, or `null` to remove the\nchild's parent. Required: an edge leaving it out is refused rather than read as a removal.",
|
|
22780
|
+
type: [
|
|
22781
|
+
"string",
|
|
22782
|
+
"null"
|
|
22783
|
+
]
|
|
22784
|
+
},
|
|
22785
|
+
if_version: {
|
|
22786
|
+
description: "The version the child must be at for anything to be written, as a read reported it.",
|
|
22787
|
+
type: [
|
|
22788
|
+
"string",
|
|
22789
|
+
"null"
|
|
22790
|
+
],
|
|
22791
|
+
default: null
|
|
22792
|
+
}
|
|
22793
|
+
},
|
|
22794
|
+
additionalProperties: false,
|
|
22795
|
+
required: [
|
|
22796
|
+
"child",
|
|
22797
|
+
"parent"
|
|
22798
|
+
]
|
|
22799
|
+
}
|
|
22800
|
+
}
|
|
22801
|
+
},
|
|
22802
|
+
ParentOutcome: {
|
|
22803
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
22804
|
+
title: "ParentOutcome",
|
|
22805
|
+
description: "What became of one parent edge.",
|
|
22806
|
+
oneOf: [
|
|
22807
|
+
{
|
|
22808
|
+
description: "It was written.",
|
|
22809
|
+
type: "string",
|
|
22810
|
+
const: "written"
|
|
22811
|
+
},
|
|
22812
|
+
{
|
|
22813
|
+
description: "The child already had that parent; nothing was written.",
|
|
22814
|
+
type: "string",
|
|
22815
|
+
const: "unchanged"
|
|
22816
|
+
},
|
|
22817
|
+
{
|
|
22818
|
+
description: "The child was at another version than the one it was held to; nothing was written.",
|
|
22819
|
+
type: "string",
|
|
22820
|
+
const: "version-moved"
|
|
22821
|
+
},
|
|
22822
|
+
{
|
|
22823
|
+
description: `The edge was refused on its own — a cycle, a parent in another source, or a limit of
|
|
22824
|
+
the destination on children or depth — and nothing was written.`,
|
|
22825
|
+
type: "string",
|
|
22826
|
+
const: "refused"
|
|
22827
|
+
},
|
|
22828
|
+
{
|
|
22829
|
+
description: "It could not be written; `reason` says why.",
|
|
22830
|
+
type: "string",
|
|
22831
|
+
const: "error"
|
|
22832
|
+
}
|
|
22833
|
+
]
|
|
22834
|
+
},
|
|
22835
|
+
ParentsSet: {
|
|
22836
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
22837
|
+
title: "ParentsSet",
|
|
22838
|
+
description: "What `task parent set-many` answers: one result per edge, in the order given.",
|
|
22839
|
+
type: "object",
|
|
22840
|
+
properties: {
|
|
22841
|
+
schema_version: {
|
|
22842
|
+
description: "`1`.",
|
|
22843
|
+
type: "integer",
|
|
22844
|
+
format: "uint32",
|
|
22845
|
+
minimum: 0
|
|
22846
|
+
},
|
|
22847
|
+
results: {
|
|
22848
|
+
description: "One per edge.",
|
|
22849
|
+
type: "array",
|
|
22850
|
+
items: {
|
|
22851
|
+
$ref: "#/$defs/ParentResult"
|
|
22852
|
+
}
|
|
22853
|
+
},
|
|
22854
|
+
sanitization: {
|
|
22855
|
+
anyOf: [
|
|
22856
|
+
{
|
|
22857
|
+
$ref: "#/$defs/Sanitization"
|
|
22858
|
+
},
|
|
22859
|
+
{
|
|
22860
|
+
type: "null"
|
|
22861
|
+
}
|
|
22862
|
+
]
|
|
22863
|
+
}
|
|
22864
|
+
},
|
|
22865
|
+
required: [
|
|
22866
|
+
"schema_version",
|
|
22867
|
+
"results"
|
|
22868
|
+
],
|
|
22869
|
+
$defs: {
|
|
22870
|
+
ParentResult: {
|
|
22871
|
+
description: "What became of one edge of a [`ParentBatch`].",
|
|
22872
|
+
type: "object",
|
|
22873
|
+
properties: {
|
|
22874
|
+
child: {
|
|
22875
|
+
description: "The child as the batch named it.",
|
|
22876
|
+
type: "string"
|
|
22877
|
+
},
|
|
22878
|
+
parent: {
|
|
22879
|
+
description: "The parent as the batch named it, `null` for a removal.",
|
|
22880
|
+
type: [
|
|
22881
|
+
"string",
|
|
22882
|
+
"null"
|
|
22883
|
+
]
|
|
22884
|
+
},
|
|
22885
|
+
outcome: {
|
|
22886
|
+
description: "What became of it.",
|
|
22887
|
+
$ref: "#/$defs/ParentOutcome"
|
|
22888
|
+
},
|
|
22889
|
+
version: {
|
|
22890
|
+
description: "The child's version: after the write when `written` and the write's answer says, as read\nwhen `unchanged`, and the version it was found at when `version-moved`.",
|
|
22891
|
+
type: [
|
|
22892
|
+
"string",
|
|
22893
|
+
"null"
|
|
22894
|
+
]
|
|
22895
|
+
},
|
|
22896
|
+
reason: {
|
|
22897
|
+
description: "Why it is answered `refused` or `error`.",
|
|
22898
|
+
type: [
|
|
22899
|
+
"string",
|
|
22900
|
+
"null"
|
|
22901
|
+
]
|
|
22902
|
+
}
|
|
22903
|
+
},
|
|
22904
|
+
required: [
|
|
22905
|
+
"child",
|
|
22906
|
+
"outcome"
|
|
22907
|
+
]
|
|
22908
|
+
},
|
|
22909
|
+
ParentOutcome: {
|
|
22910
|
+
description: "What became of one parent edge.",
|
|
22911
|
+
oneOf: [
|
|
22912
|
+
{
|
|
22913
|
+
description: "It was written.",
|
|
22914
|
+
type: "string",
|
|
22915
|
+
const: "written"
|
|
22916
|
+
},
|
|
22917
|
+
{
|
|
22918
|
+
description: "The child already had that parent; nothing was written.",
|
|
22919
|
+
type: "string",
|
|
22920
|
+
const: "unchanged"
|
|
22921
|
+
},
|
|
22922
|
+
{
|
|
22923
|
+
description: "The child was at another version than the one it was held to; nothing was written.",
|
|
22924
|
+
type: "string",
|
|
22925
|
+
const: "version-moved"
|
|
22926
|
+
},
|
|
22927
|
+
{
|
|
22928
|
+
description: `The edge was refused on its own — a cycle, a parent in another source, or a limit of
|
|
22929
|
+
the destination on children or depth — and nothing was written.`,
|
|
22930
|
+
type: "string",
|
|
22931
|
+
const: "refused"
|
|
22932
|
+
},
|
|
22933
|
+
{
|
|
22934
|
+
description: "It could not be written; `reason` says why.",
|
|
22935
|
+
type: "string",
|
|
22936
|
+
const: "error"
|
|
22937
|
+
}
|
|
22938
|
+
]
|
|
22939
|
+
},
|
|
22940
|
+
Sanitization: {
|
|
22941
|
+
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.",
|
|
22942
|
+
type: "object",
|
|
22943
|
+
properties: {
|
|
22944
|
+
replaced: {
|
|
22945
|
+
description: "Spans the writes' own sanitisations rewrote.",
|
|
22946
|
+
type: "integer",
|
|
22947
|
+
format: "uint32",
|
|
22948
|
+
minimum: 0
|
|
22949
|
+
},
|
|
22950
|
+
side_effect: {
|
|
22951
|
+
description: "Each field or comment of an item sanitisation changed beyond the write itself.",
|
|
22952
|
+
type: "array",
|
|
22953
|
+
items: {
|
|
22954
|
+
$ref: "#/$defs/SideEffect"
|
|
22955
|
+
}
|
|
22956
|
+
},
|
|
22957
|
+
dry_run: {
|
|
22958
|
+
description: "Whether nothing was written, the changes only reported.",
|
|
22959
|
+
type: "boolean"
|
|
22960
|
+
}
|
|
22961
|
+
},
|
|
22962
|
+
required: [
|
|
22963
|
+
"replaced",
|
|
22964
|
+
"side_effect",
|
|
22965
|
+
"dry_run"
|
|
22966
|
+
]
|
|
22967
|
+
},
|
|
22968
|
+
SideEffect: {
|
|
22969
|
+
description: "One field or comment of an item a sanitisation changed, named by screened locators.",
|
|
22970
|
+
type: "object",
|
|
22971
|
+
properties: {
|
|
22972
|
+
item: {
|
|
22973
|
+
description: "The item, by its qualified id as screened.",
|
|
22974
|
+
$ref: "#/$defs/Locator"
|
|
22975
|
+
},
|
|
22976
|
+
field: {
|
|
22977
|
+
description: "The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.",
|
|
22978
|
+
$ref: "#/$defs/Locator"
|
|
22979
|
+
}
|
|
22980
|
+
},
|
|
22981
|
+
required: [
|
|
22982
|
+
"item",
|
|
22983
|
+
"field"
|
|
22984
|
+
]
|
|
22985
|
+
},
|
|
22986
|
+
Locator: {
|
|
22987
|
+
description: "A screened locator: the string verbatim, or its redacted form.",
|
|
22988
|
+
oneOf: [
|
|
22989
|
+
{
|
|
22990
|
+
type: "string"
|
|
22991
|
+
},
|
|
22992
|
+
{
|
|
22993
|
+
type: "object",
|
|
22994
|
+
properties: {
|
|
22995
|
+
redacted: {
|
|
22996
|
+
const: true
|
|
22997
|
+
},
|
|
22998
|
+
kind: {
|
|
22999
|
+
$ref: "#/$defs/LocatorKind"
|
|
23000
|
+
},
|
|
23001
|
+
ordinal: {
|
|
23002
|
+
type: "integer",
|
|
23003
|
+
minimum: 1
|
|
23004
|
+
}
|
|
23005
|
+
},
|
|
23006
|
+
required: [
|
|
23007
|
+
"redacted",
|
|
23008
|
+
"kind",
|
|
23009
|
+
"ordinal"
|
|
23010
|
+
],
|
|
23011
|
+
additionalProperties: false
|
|
23012
|
+
}
|
|
23013
|
+
]
|
|
23014
|
+
},
|
|
23015
|
+
LocatorKind: {
|
|
23016
|
+
description: "What a locator names.",
|
|
23017
|
+
oneOf: [
|
|
23018
|
+
{
|
|
23019
|
+
description: "A source name.",
|
|
23020
|
+
type: "string",
|
|
23021
|
+
const: "source"
|
|
23022
|
+
},
|
|
23023
|
+
{
|
|
23024
|
+
description: "An item id.",
|
|
23025
|
+
type: "string",
|
|
23026
|
+
const: "item"
|
|
23027
|
+
},
|
|
23028
|
+
{
|
|
23029
|
+
description: "A user-defined field name.",
|
|
23030
|
+
type: "string",
|
|
23031
|
+
const: "field"
|
|
23032
|
+
},
|
|
23033
|
+
{
|
|
23034
|
+
description: "A metadata key.",
|
|
23035
|
+
type: "string",
|
|
23036
|
+
const: "metadata-key"
|
|
23037
|
+
},
|
|
23038
|
+
{
|
|
23039
|
+
description: "A comment id.",
|
|
23040
|
+
type: "string",
|
|
23041
|
+
const: "comment"
|
|
23042
|
+
},
|
|
23043
|
+
{
|
|
23044
|
+
description: "A file path.",
|
|
23045
|
+
type: "string",
|
|
23046
|
+
const: "path"
|
|
23047
|
+
},
|
|
23048
|
+
{
|
|
23049
|
+
description: "A repository identity.",
|
|
23050
|
+
type: "string",
|
|
23051
|
+
const: "identity"
|
|
23052
|
+
}
|
|
23053
|
+
]
|
|
23054
|
+
}
|
|
23055
|
+
}
|
|
23056
|
+
},
|
|
22380
23057
|
Placement: {
|
|
22381
23058
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
22382
23059
|
title: "Placement",
|
|
@@ -29882,6 +30559,80 @@ later.`,
|
|
|
29882
30559
|
}
|
|
29883
30560
|
}
|
|
29884
30561
|
},
|
|
30562
|
+
ReadLink: {
|
|
30563
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
30564
|
+
title: "ReadLink",
|
|
30565
|
+
description: "One link as one endpoint holds it.",
|
|
30566
|
+
type: "object",
|
|
30567
|
+
properties: {
|
|
30568
|
+
type: {
|
|
30569
|
+
description: "The link's type name.",
|
|
30570
|
+
type: "string"
|
|
30571
|
+
},
|
|
30572
|
+
direction: {
|
|
30573
|
+
description: "Which end of the link this item is.",
|
|
30574
|
+
$ref: "#/$defs/LinkDirection"
|
|
30575
|
+
},
|
|
30576
|
+
other: {
|
|
30577
|
+
description: "The other item's qualified id.",
|
|
30578
|
+
$ref: "#/$defs/GlobalId"
|
|
30579
|
+
},
|
|
30580
|
+
other_end: {
|
|
30581
|
+
description: "Whether the other end holds this link too: `present` or `missing` when the other item\nis among the ids asked, and `unread` otherwise.",
|
|
30582
|
+
$ref: "#/$defs/OtherEnd"
|
|
30583
|
+
}
|
|
30584
|
+
},
|
|
30585
|
+
required: [
|
|
30586
|
+
"type",
|
|
30587
|
+
"direction",
|
|
30588
|
+
"other",
|
|
30589
|
+
"other_end"
|
|
30590
|
+
],
|
|
30591
|
+
$defs: {
|
|
30592
|
+
LinkDirection: {
|
|
30593
|
+
description: "Which end of a directed link an item is.",
|
|
30594
|
+
oneOf: [
|
|
30595
|
+
{
|
|
30596
|
+
description: "This item is the link's `from`.",
|
|
30597
|
+
type: "string",
|
|
30598
|
+
const: "out"
|
|
30599
|
+
},
|
|
30600
|
+
{
|
|
30601
|
+
description: "This item is the link's `to`.",
|
|
30602
|
+
type: "string",
|
|
30603
|
+
const: "in"
|
|
30604
|
+
}
|
|
30605
|
+
]
|
|
30606
|
+
},
|
|
30607
|
+
GlobalId: {
|
|
30608
|
+
description: `One item, qualified by the source it came from.
|
|
30609
|
+
|
|
30610
|
+
Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
|
|
30611
|
+
so a native id may contain colons freely.`,
|
|
30612
|
+
type: "string"
|
|
30613
|
+
},
|
|
30614
|
+
OtherEnd: {
|
|
30615
|
+
description: "Whether a link's other end holds it too.",
|
|
30616
|
+
oneOf: [
|
|
30617
|
+
{
|
|
30618
|
+
description: "The other end holds the same link.",
|
|
30619
|
+
type: "string",
|
|
30620
|
+
const: "present"
|
|
30621
|
+
},
|
|
30622
|
+
{
|
|
30623
|
+
description: "The other end was read and does not hold it — a whole-body rewrite there lost it.",
|
|
30624
|
+
type: "string",
|
|
30625
|
+
const: "missing"
|
|
30626
|
+
},
|
|
30627
|
+
{
|
|
30628
|
+
description: "The other end is not among the ids asked, so it was not read.",
|
|
30629
|
+
type: "string",
|
|
30630
|
+
const: "unread"
|
|
30631
|
+
}
|
|
30632
|
+
]
|
|
30633
|
+
}
|
|
30634
|
+
}
|
|
30635
|
+
},
|
|
29885
30636
|
ReconcileOutcome: {
|
|
29886
30637
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
29887
30638
|
title: "ReconcileOutcome",
|
|
@@ -30177,6 +30928,130 @@ so a native id may contain colons freely.`,
|
|
|
30177
30928
|
}
|
|
30178
30929
|
}
|
|
30179
30930
|
},
|
|
30931
|
+
RelationsItem: {
|
|
30932
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
30933
|
+
title: "RelationsItem",
|
|
30934
|
+
description: "One task's relations.",
|
|
30935
|
+
type: "object",
|
|
30936
|
+
properties: {
|
|
30937
|
+
item: {
|
|
30938
|
+
description: "The task's qualified id.",
|
|
30939
|
+
$ref: "#/$defs/GlobalId"
|
|
30940
|
+
},
|
|
30941
|
+
parent: {
|
|
30942
|
+
description: "Its parent's qualified id, or `null`.",
|
|
30943
|
+
anyOf: [
|
|
30944
|
+
{
|
|
30945
|
+
$ref: "#/$defs/GlobalId"
|
|
30946
|
+
},
|
|
30947
|
+
{
|
|
30948
|
+
type: "null"
|
|
30949
|
+
}
|
|
30950
|
+
]
|
|
30951
|
+
},
|
|
30952
|
+
children: {
|
|
30953
|
+
description: "Its children's qualified ids.",
|
|
30954
|
+
type: "array",
|
|
30955
|
+
items: {
|
|
30956
|
+
$ref: "#/$defs/GlobalId"
|
|
30957
|
+
}
|
|
30958
|
+
},
|
|
30959
|
+
children_complete: {
|
|
30960
|
+
description: "Whether `children` is every child.",
|
|
30961
|
+
type: "boolean"
|
|
30962
|
+
},
|
|
30963
|
+
links: {
|
|
30964
|
+
description: "Its links, as it holds them.",
|
|
30965
|
+
type: "array",
|
|
30966
|
+
items: {
|
|
30967
|
+
$ref: "#/$defs/ReadLink"
|
|
30968
|
+
}
|
|
30969
|
+
},
|
|
30970
|
+
links_complete: {
|
|
30971
|
+
description: "Whether `links` is every link it holds.",
|
|
30972
|
+
type: "boolean"
|
|
30973
|
+
}
|
|
30974
|
+
},
|
|
30975
|
+
required: [
|
|
30976
|
+
"item",
|
|
30977
|
+
"children",
|
|
30978
|
+
"children_complete",
|
|
30979
|
+
"links",
|
|
30980
|
+
"links_complete"
|
|
30981
|
+
],
|
|
30982
|
+
$defs: {
|
|
30983
|
+
GlobalId: {
|
|
30984
|
+
description: `One item, qualified by the source it came from.
|
|
30985
|
+
|
|
30986
|
+
Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
|
|
30987
|
+
so a native id may contain colons freely.`,
|
|
30988
|
+
type: "string"
|
|
30989
|
+
},
|
|
30990
|
+
ReadLink: {
|
|
30991
|
+
description: "One link as one endpoint holds it.",
|
|
30992
|
+
type: "object",
|
|
30993
|
+
properties: {
|
|
30994
|
+
type: {
|
|
30995
|
+
description: "The link's type name.",
|
|
30996
|
+
type: "string"
|
|
30997
|
+
},
|
|
30998
|
+
direction: {
|
|
30999
|
+
description: "Which end of the link this item is.",
|
|
31000
|
+
$ref: "#/$defs/LinkDirection"
|
|
31001
|
+
},
|
|
31002
|
+
other: {
|
|
31003
|
+
description: "The other item's qualified id.",
|
|
31004
|
+
$ref: "#/$defs/GlobalId"
|
|
31005
|
+
},
|
|
31006
|
+
other_end: {
|
|
31007
|
+
description: "Whether the other end holds this link too: `present` or `missing` when the other item\nis among the ids asked, and `unread` otherwise.",
|
|
31008
|
+
$ref: "#/$defs/OtherEnd"
|
|
31009
|
+
}
|
|
31010
|
+
},
|
|
31011
|
+
required: [
|
|
31012
|
+
"type",
|
|
31013
|
+
"direction",
|
|
31014
|
+
"other",
|
|
31015
|
+
"other_end"
|
|
31016
|
+
]
|
|
31017
|
+
},
|
|
31018
|
+
LinkDirection: {
|
|
31019
|
+
description: "Which end of a directed link an item is.",
|
|
31020
|
+
oneOf: [
|
|
31021
|
+
{
|
|
31022
|
+
description: "This item is the link's `from`.",
|
|
31023
|
+
type: "string",
|
|
31024
|
+
const: "out"
|
|
31025
|
+
},
|
|
31026
|
+
{
|
|
31027
|
+
description: "This item is the link's `to`.",
|
|
31028
|
+
type: "string",
|
|
31029
|
+
const: "in"
|
|
31030
|
+
}
|
|
31031
|
+
]
|
|
31032
|
+
},
|
|
31033
|
+
OtherEnd: {
|
|
31034
|
+
description: "Whether a link's other end holds it too.",
|
|
31035
|
+
oneOf: [
|
|
31036
|
+
{
|
|
31037
|
+
description: "The other end holds the same link.",
|
|
31038
|
+
type: "string",
|
|
31039
|
+
const: "present"
|
|
31040
|
+
},
|
|
31041
|
+
{
|
|
31042
|
+
description: "The other end was read and does not hold it — a whole-body rewrite there lost it.",
|
|
31043
|
+
type: "string",
|
|
31044
|
+
const: "missing"
|
|
31045
|
+
},
|
|
31046
|
+
{
|
|
31047
|
+
description: "The other end is not among the ids asked, so it was not read.",
|
|
31048
|
+
type: "string",
|
|
31049
|
+
const: "unread"
|
|
31050
|
+
}
|
|
31051
|
+
]
|
|
31052
|
+
}
|
|
31053
|
+
}
|
|
31054
|
+
},
|
|
30180
31055
|
RenderedTemplate: {
|
|
30181
31056
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
30182
31057
|
title: "RenderedTemplate",
|
|
@@ -37892,6 +38767,49 @@ starts at: a forward read and the matching reverse read report the same edge.`,
|
|
|
37892
38767
|
}
|
|
37893
38768
|
}
|
|
37894
38769
|
},
|
|
38770
|
+
TaskLink: {
|
|
38771
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
38772
|
+
title: "TaskLink",
|
|
38773
|
+
description: "One typed link, as one endpoint holds it under [`TaskLink::METADATA_KEY`].",
|
|
38774
|
+
type: "object",
|
|
38775
|
+
properties: {
|
|
38776
|
+
type: {
|
|
38777
|
+
description: "The link's type name — the caller's word, which no destination stores natively.",
|
|
38778
|
+
type: "string"
|
|
38779
|
+
},
|
|
38780
|
+
direction: {
|
|
38781
|
+
description: "Which end of the directed link this item is.",
|
|
38782
|
+
$ref: "#/$defs/LinkDirection"
|
|
38783
|
+
},
|
|
38784
|
+
other: {
|
|
38785
|
+
description: "The other item's qualified id, `<source>:<native-id>`.",
|
|
38786
|
+
type: "string"
|
|
38787
|
+
}
|
|
38788
|
+
},
|
|
38789
|
+
additionalProperties: false,
|
|
38790
|
+
required: [
|
|
38791
|
+
"type",
|
|
38792
|
+
"direction",
|
|
38793
|
+
"other"
|
|
38794
|
+
],
|
|
38795
|
+
$defs: {
|
|
38796
|
+
LinkDirection: {
|
|
38797
|
+
description: "Which end of a directed link an item is.",
|
|
38798
|
+
oneOf: [
|
|
38799
|
+
{
|
|
38800
|
+
description: "This item is the link's `from`.",
|
|
38801
|
+
type: "string",
|
|
38802
|
+
const: "out"
|
|
38803
|
+
},
|
|
38804
|
+
{
|
|
38805
|
+
description: "This item is the link's `to`.",
|
|
38806
|
+
type: "string",
|
|
38807
|
+
const: "in"
|
|
38808
|
+
}
|
|
38809
|
+
]
|
|
38810
|
+
}
|
|
38811
|
+
}
|
|
38812
|
+
},
|
|
37895
38813
|
TaskPrioritySet: {
|
|
37896
38814
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
37897
38815
|
title: "TaskPrioritySet",
|
|
@@ -38762,6 +39680,153 @@ means.`,
|
|
|
38762
39680
|
description: "One task named by another task's [`Task::delivers`] or [`Task::delivered_by`].\n\nA string with one of two spellings, decided the way a [`DependencyEndpoint`] decides it:\none holding a colon is `<source>:<native>` and names a task of any source, and one\nwithout is a bare native id naming a task of the source that holds the list. So a\nnative id holding a colon cannot be named bare, exactly as it cannot in\n`onetaskgraph.depends_on`.",
|
|
38763
39681
|
type: "string"
|
|
38764
39682
|
},
|
|
39683
|
+
TaskRelations: {
|
|
39684
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
39685
|
+
title: "TaskRelations",
|
|
39686
|
+
description: "What `task relations` answers: one item per id asked, in the order asked.",
|
|
39687
|
+
type: "object",
|
|
39688
|
+
properties: {
|
|
39689
|
+
schema_version: {
|
|
39690
|
+
description: "`1`.",
|
|
39691
|
+
type: "integer",
|
|
39692
|
+
format: "uint32",
|
|
39693
|
+
minimum: 0
|
|
39694
|
+
},
|
|
39695
|
+
items: {
|
|
39696
|
+
description: "One per id.",
|
|
39697
|
+
type: "array",
|
|
39698
|
+
items: {
|
|
39699
|
+
$ref: "#/$defs/RelationsItem"
|
|
39700
|
+
}
|
|
39701
|
+
}
|
|
39702
|
+
},
|
|
39703
|
+
required: [
|
|
39704
|
+
"schema_version",
|
|
39705
|
+
"items"
|
|
39706
|
+
],
|
|
39707
|
+
$defs: {
|
|
39708
|
+
RelationsItem: {
|
|
39709
|
+
description: "One task's relations.",
|
|
39710
|
+
type: "object",
|
|
39711
|
+
properties: {
|
|
39712
|
+
item: {
|
|
39713
|
+
description: "The task's qualified id.",
|
|
39714
|
+
$ref: "#/$defs/GlobalId"
|
|
39715
|
+
},
|
|
39716
|
+
parent: {
|
|
39717
|
+
description: "Its parent's qualified id, or `null`.",
|
|
39718
|
+
anyOf: [
|
|
39719
|
+
{
|
|
39720
|
+
$ref: "#/$defs/GlobalId"
|
|
39721
|
+
},
|
|
39722
|
+
{
|
|
39723
|
+
type: "null"
|
|
39724
|
+
}
|
|
39725
|
+
]
|
|
39726
|
+
},
|
|
39727
|
+
children: {
|
|
39728
|
+
description: "Its children's qualified ids.",
|
|
39729
|
+
type: "array",
|
|
39730
|
+
items: {
|
|
39731
|
+
$ref: "#/$defs/GlobalId"
|
|
39732
|
+
}
|
|
39733
|
+
},
|
|
39734
|
+
children_complete: {
|
|
39735
|
+
description: "Whether `children` is every child.",
|
|
39736
|
+
type: "boolean"
|
|
39737
|
+
},
|
|
39738
|
+
links: {
|
|
39739
|
+
description: "Its links, as it holds them.",
|
|
39740
|
+
type: "array",
|
|
39741
|
+
items: {
|
|
39742
|
+
$ref: "#/$defs/ReadLink"
|
|
39743
|
+
}
|
|
39744
|
+
},
|
|
39745
|
+
links_complete: {
|
|
39746
|
+
description: "Whether `links` is every link it holds.",
|
|
39747
|
+
type: "boolean"
|
|
39748
|
+
}
|
|
39749
|
+
},
|
|
39750
|
+
required: [
|
|
39751
|
+
"item",
|
|
39752
|
+
"children",
|
|
39753
|
+
"children_complete",
|
|
39754
|
+
"links",
|
|
39755
|
+
"links_complete"
|
|
39756
|
+
]
|
|
39757
|
+
},
|
|
39758
|
+
GlobalId: {
|
|
39759
|
+
description: `One item, qualified by the source it came from.
|
|
39760
|
+
|
|
39761
|
+
Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
|
|
39762
|
+
so a native id may contain colons freely.`,
|
|
39763
|
+
type: "string"
|
|
39764
|
+
},
|
|
39765
|
+
ReadLink: {
|
|
39766
|
+
description: "One link as one endpoint holds it.",
|
|
39767
|
+
type: "object",
|
|
39768
|
+
properties: {
|
|
39769
|
+
type: {
|
|
39770
|
+
description: "The link's type name.",
|
|
39771
|
+
type: "string"
|
|
39772
|
+
},
|
|
39773
|
+
direction: {
|
|
39774
|
+
description: "Which end of the link this item is.",
|
|
39775
|
+
$ref: "#/$defs/LinkDirection"
|
|
39776
|
+
},
|
|
39777
|
+
other: {
|
|
39778
|
+
description: "The other item's qualified id.",
|
|
39779
|
+
$ref: "#/$defs/GlobalId"
|
|
39780
|
+
},
|
|
39781
|
+
other_end: {
|
|
39782
|
+
description: "Whether the other end holds this link too: `present` or `missing` when the other item\nis among the ids asked, and `unread` otherwise.",
|
|
39783
|
+
$ref: "#/$defs/OtherEnd"
|
|
39784
|
+
}
|
|
39785
|
+
},
|
|
39786
|
+
required: [
|
|
39787
|
+
"type",
|
|
39788
|
+
"direction",
|
|
39789
|
+
"other",
|
|
39790
|
+
"other_end"
|
|
39791
|
+
]
|
|
39792
|
+
},
|
|
39793
|
+
LinkDirection: {
|
|
39794
|
+
description: "Which end of a directed link an item is.",
|
|
39795
|
+
oneOf: [
|
|
39796
|
+
{
|
|
39797
|
+
description: "This item is the link's `from`.",
|
|
39798
|
+
type: "string",
|
|
39799
|
+
const: "out"
|
|
39800
|
+
},
|
|
39801
|
+
{
|
|
39802
|
+
description: "This item is the link's `to`.",
|
|
39803
|
+
type: "string",
|
|
39804
|
+
const: "in"
|
|
39805
|
+
}
|
|
39806
|
+
]
|
|
39807
|
+
},
|
|
39808
|
+
OtherEnd: {
|
|
39809
|
+
description: "Whether a link's other end holds it too.",
|
|
39810
|
+
oneOf: [
|
|
39811
|
+
{
|
|
39812
|
+
description: "The other end holds the same link.",
|
|
39813
|
+
type: "string",
|
|
39814
|
+
const: "present"
|
|
39815
|
+
},
|
|
39816
|
+
{
|
|
39817
|
+
description: "The other end was read and does not hold it — a whole-body rewrite there lost it.",
|
|
39818
|
+
type: "string",
|
|
39819
|
+
const: "missing"
|
|
39820
|
+
},
|
|
39821
|
+
{
|
|
39822
|
+
description: "The other end is not among the ids asked, so it was not read.",
|
|
39823
|
+
type: "string",
|
|
39824
|
+
const: "unread"
|
|
39825
|
+
}
|
|
39826
|
+
]
|
|
39827
|
+
}
|
|
39828
|
+
}
|
|
39829
|
+
},
|
|
38765
39830
|
TaskStatusSet: {
|
|
38766
39831
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
38767
39832
|
title: "TaskStatusSet",
|
|
@@ -43033,6 +44098,10 @@ var commandResponseRoots = {
|
|
|
43033
44098
|
"task find": "FoundTasks",
|
|
43034
44099
|
"task update-many": "TasksUpdated",
|
|
43035
44100
|
"task comment add-many": "CommentsAdded",
|
|
44101
|
+
"task parent set-many": "ParentsSet",
|
|
44102
|
+
"task link add-many": "LinksWritten",
|
|
44103
|
+
"task link remove-many": "LinksWritten",
|
|
44104
|
+
"task relations": "TaskRelations",
|
|
43036
44105
|
"project list": "QueryResponseOfQualifiedProject",
|
|
43037
44106
|
"project show": "QueryResponseOfQualifiedProject",
|
|
43038
44107
|
"project deps": "QueryResponseOfQualifiedEdge",
|
|
@@ -43069,7 +44138,7 @@ var commandAlternateRoots = {
|
|
|
43069
44138
|
"project attestation check": ["ProjectAttestationCheck"],
|
|
43070
44139
|
"project create": ["PlannedProject"]
|
|
43071
44140
|
};
|
|
43072
|
-
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 === "task comment add-many") && !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"));
|
|
44141
|
+
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 === "task comment add-many") && !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 relations" && command !== "task project-human" && !command.endsWith(" attest") && !command.endsWith(" attestation check") && command !== "project create" && command !== "document create"));
|
|
43073
44142
|
function bodyArguments(options) {
|
|
43074
44143
|
return "bodyFile" in options ? { args: ["--body-file", options.bodyFile] } : { args: [], input: options.body };
|
|
43075
44144
|
}
|
|
@@ -43972,6 +45041,21 @@ class OnetaskgraphClient {
|
|
|
43972
45041
|
taskCommentAddMany(source, batch, options = {}) {
|
|
43973
45042
|
return this.run("task comment add-many", [source, "--input", "-", ...writePolicyFlags("taskCommentAddMany", options)], jsonDocument(batch, "taskCommentAddMany", "batch"));
|
|
43974
45043
|
}
|
|
45044
|
+
taskParentSetMany(batch) {
|
|
45045
|
+
return this.run("task parent set-many", ["--input", "-"], jsonDocument(batch, "taskParentSetMany", "batch"));
|
|
45046
|
+
}
|
|
45047
|
+
taskLinkAddMany(batch) {
|
|
45048
|
+
return this.run("task link add-many", ["--input", "-"], jsonDocument(batch, "taskLinkAddMany", "batch"));
|
|
45049
|
+
}
|
|
45050
|
+
taskLinkRemoveMany(batch) {
|
|
45051
|
+
return this.run("task link remove-many", ["--input", "-"], jsonDocument(batch, "taskLinkRemoveMany", "batch"));
|
|
45052
|
+
}
|
|
45053
|
+
taskRelations(ids, options = {}) {
|
|
45054
|
+
return this.run("task relations", [
|
|
45055
|
+
...ids.map((id) => stringOption("taskRelations", "ids", id)),
|
|
45056
|
+
...flagOption("taskRelations", "complete", options.complete) ? ["--complete"] : []
|
|
45057
|
+
]);
|
|
45058
|
+
}
|
|
43975
45059
|
taskProjectHuman(input) {
|
|
43976
45060
|
return this.run("task project-human", [
|
|
43977
45061
|
"--input",
|
|
@@ -44075,7 +45159,7 @@ function assertCompleteCommandSurface() {
|
|
|
44075
45159
|
}
|
|
44076
45160
|
|
|
44077
45161
|
// src/index.ts
|
|
44078
|
-
var VERSION = "0.14.
|
|
45162
|
+
var VERSION = "0.14.13";
|
|
44079
45163
|
export {
|
|
44080
45164
|
taskUpdateOptionFlags,
|
|
44081
45165
|
taskUpdateFlags,
|