@onetaskgraph/sdk 0.14.12 → 0.14.14

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/index.js CHANGED
@@ -7161,10 +7161,15 @@ 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",
7167
7171
  "task priority set",
7172
+ "task assignee set",
7168
7173
  "task content set",
7169
7174
  "task metadata set",
7170
7175
  "task attest",
@@ -7204,7 +7209,7 @@ var binaryCommands = [
7204
7209
  ];
7205
7210
 
7206
7211
  // src/generated/models.ts
7207
- var SCHEMA_BUNDLE_VERSION = 61;
7212
+ var SCHEMA_BUNDLE_VERSION = 63;
7208
7213
 
7209
7214
  // src/generated/schemas.ts
7210
7215
  var runtimeSchemas = {
@@ -8094,8 +8099,7 @@ say. Decided by the plugin, through
8094
8099
  const: "written"
8095
8100
  },
8096
8101
  {
8097
- description: `Its priority guard declined: the task held a priority the guard does not name, and
8098
- nothing of it was written.`,
8102
+ description: "Its guard declined: the task held a priority `when_priority` does not name, or not\nexactly the people `when_assignees` names, and nothing of it was written.",
8099
8103
  type: "string",
8100
8104
  const: "held"
8101
8105
  },
@@ -8267,6 +8271,11 @@ predates assets says nothing here and is never handed bytes it would drop.`,
8267
8271
  $ref: "#/$defs/Support",
8268
8272
  default: "unsupported"
8269
8273
  },
8274
+ assignees: {
8275
+ description: "Whether the source's tasks carry [`Task::assignees`](crate::Task::assignees): set by\nthe source's own `config.assignees: true`, and `unsupported` otherwise.\n\nRead exactly as [`priority`](Self::priority) is: it says what the source *holds*, not\nwhich predicate it applies. A source declaring `Unsupported` reports no assignees on\nany task and is never handed any: a write naming an assignee is refused before the\nsource is asked, naming the source and the setting, and a copy into it carries none.\n\nDefaulted to [`Support::Unsupported`] when a wire value omits it, and left out of the\nwire while unsupported, so a plugin that predates assignees — and every source that has\nnot opted in — reads and is read exactly as it was.",
8276
+ $ref: "#/$defs/Support",
8277
+ default: "unsupported"
8278
+ },
8270
8279
  filter_by_priority: {
8271
8280
  description: `Whether the source keeps only the tasks whose priority a query lists, itself.
8272
8281
 
@@ -9656,8 +9665,7 @@ interprets none of them, which is why the budget and unit names are open vocabul
9656
9665
  const: "written"
9657
9666
  },
9658
9667
  {
9659
- description: `Its priority guard declined: the task held a priority the guard does not name, and
9660
- nothing of it was written.`,
9668
+ description: "Its guard declined: the task held a priority `when_priority` does not name, or not\nexactly the people `when_assignees` names, and nothing of it was written.",
9661
9669
  type: "string",
9662
9670
  const: "held"
9663
9671
  },
@@ -10383,6 +10391,26 @@ where the task may be written, and nothing written here can loosen that. The pro
10383
10391
  a task is filed under never tightens it: a task's visibility is its own.`,
10384
10392
  $ref: "#/$defs/Classification",
10385
10393
  default: "public"
10394
+ },
10395
+ assignees: {
10396
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
10397
+ Linear display name, the string as given in a folder or in memory — in the order the
10398
+ source holds them; empty means unassigned.
10399
+
10400
+ **Present only for a source that opted in** with \`config.assignees: true\`
10401
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
10402
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
10403
+ source that has not opted in reads, and is written, exactly as it was before the field
10404
+ existed. On a write, absent leaves the item's assignees as they are, and present
10405
+ replaces them with exactly the people it names — the engine never hands a source more
10406
+ than one.`,
10407
+ type: [
10408
+ "array",
10409
+ "null"
10410
+ ],
10411
+ items: {
10412
+ type: "string"
10413
+ }
10386
10414
  }
10387
10415
  },
10388
10416
  required: [
@@ -11259,6 +11287,17 @@ read included.`,
11259
11287
  }
11260
11288
  ]
11261
11289
  },
11290
+ assignee_condition: {
11291
+ description: "What `--when-destination-assignees` found the counterpart's assignees at, and whether\nthat met it — present only when the copy was given the condition and this item was an\nupdate of a task.",
11292
+ anyOf: [
11293
+ {
11294
+ $ref: "#/$defs/AssigneeCondition"
11295
+ },
11296
+ {
11297
+ type: "null"
11298
+ }
11299
+ ]
11300
+ },
11262
11301
  held: {
11263
11302
  description: "What the counterpart held, as the copy's read of it before writing found it — present\nonly on an item the copy refused after that read, such as `destination-status`.",
11264
11303
  anyOf: [
@@ -12111,6 +12150,28 @@ interprets none of them, which is why the budget and unit names are open vocabul
12111
12150
  "held",
12112
12151
  "met"
12113
12152
  ]
12153
+ },
12154
+ AssigneeCondition: {
12155
+ description: "What a guarded copy found a counterpart's assignees at, and whether that met the condition.",
12156
+ type: "object",
12157
+ properties: {
12158
+ held: {
12159
+ description: `Every person the counterpart was assigned to, as the copy's own pre-write read held
12160
+ them — empty when it was unassigned.`,
12161
+ type: "array",
12162
+ items: {
12163
+ type: "string"
12164
+ }
12165
+ },
12166
+ met: {
12167
+ description: "Whether those are exactly the people the condition names.",
12168
+ type: "boolean"
12169
+ }
12170
+ },
12171
+ required: [
12172
+ "held",
12173
+ "met"
12174
+ ]
12114
12175
  }
12115
12176
  }
12116
12177
  },
@@ -12314,6 +12375,17 @@ read included.`,
12314
12375
  }
12315
12376
  ]
12316
12377
  },
12378
+ assignee_condition: {
12379
+ description: "What `--when-destination-assignees` found the counterpart's assignees at, and whether\nthat met it — present only when the copy was given the condition and this item was an\nupdate of a task.",
12380
+ anyOf: [
12381
+ {
12382
+ $ref: "#/$defs/AssigneeCondition"
12383
+ },
12384
+ {
12385
+ type: "null"
12386
+ }
12387
+ ]
12388
+ },
12317
12389
  held: {
12318
12390
  description: "What the counterpart held, as the copy's read of it before writing found it — present\nonly on an item the copy refused after that read, such as `destination-status`.",
12319
12391
  anyOf: [
@@ -13167,6 +13239,28 @@ interprets none of them, which is why the budget and unit names are open vocabul
13167
13239
  "met"
13168
13240
  ]
13169
13241
  },
13242
+ AssigneeCondition: {
13243
+ description: "What a guarded copy found a counterpart's assignees at, and whether that met the condition.",
13244
+ type: "object",
13245
+ properties: {
13246
+ held: {
13247
+ description: `Every person the counterpart was assigned to, as the copy's own pre-write read held
13248
+ them — empty when it was unassigned.`,
13249
+ type: "array",
13250
+ items: {
13251
+ type: "string"
13252
+ }
13253
+ },
13254
+ met: {
13255
+ description: "Whether those are exactly the people the condition names.",
13256
+ type: "boolean"
13257
+ }
13258
+ },
13259
+ required: [
13260
+ "held",
13261
+ "met"
13262
+ ]
13263
+ },
13170
13264
  Delivered: {
13171
13265
  description: "What keeping one delivered task in step with one deliverer came to.",
13172
13266
  type: "object",
@@ -17570,6 +17664,26 @@ where the task may be written, and nothing written here can loosen that. The pro
17570
17664
  a task is filed under never tightens it: a task's visibility is its own.`,
17571
17665
  $ref: "#/$defs/Classification",
17572
17666
  default: "public"
17667
+ },
17668
+ assignees: {
17669
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
17670
+ Linear display name, the string as given in a folder or in memory — in the order the
17671
+ source holds them; empty means unassigned.
17672
+
17673
+ **Present only for a source that opted in** with \`config.assignees: true\`
17674
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
17675
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
17676
+ source that has not opted in reads, and is written, exactly as it was before the field
17677
+ existed. On a write, absent leaves the item's assignees as they are, and present
17678
+ replaces them with exactly the people it names — the engine never hands a source more
17679
+ than one.`,
17680
+ type: [
17681
+ "array",
17682
+ "null"
17683
+ ],
17684
+ items: {
17685
+ type: "string"
17686
+ }
17573
17687
  }
17574
17688
  },
17575
17689
  required: [
@@ -19576,6 +19690,19 @@ source reads and writes team-wide.`,
19576
19690
  }
19577
19691
  ],
19578
19692
  default: null
19693
+ },
19694
+ link_types: {
19695
+ 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.',
19696
+ type: "object",
19697
+ additionalProperties: {
19698
+ $ref: "#/$defs/LinkTypeConfig"
19699
+ },
19700
+ default: {}
19701
+ },
19702
+ assignees: {
19703
+ description: "Whether this source's tasks carry their assignee: `false`, the default, reads every task\nwithout an `assignees` member, refuses every write naming one and sends Linear exactly\nthe documents it sent before assignees existed; `true` reads each issue's\n`assignee{displayName}` — a Linear user's display name, unique within its workspace —\nand writes one person, or none, as the issue's `assigneeId`.",
19704
+ type: "boolean",
19705
+ default: false
19579
19706
  }
19580
19707
  },
19581
19708
  additionalProperties: false,
@@ -19705,6 +19832,336 @@ source reads and writes team-wide.`,
19705
19832
  description: "The id of one Linear project, which a scoped source holds alone.",
19706
19833
  type: "string",
19707
19834
  minLength: 1
19835
+ },
19836
+ LinkTypeConfig: {
19837
+ description: "One entry of a source's `link_types` configuration, as written.",
19838
+ type: "object",
19839
+ properties: {
19840
+ native: {
19841
+ description: "The destination's own relation this type is mirrored as.",
19842
+ type: [
19843
+ "string",
19844
+ "null"
19845
+ ],
19846
+ default: null
19847
+ }
19848
+ },
19849
+ additionalProperties: false
19850
+ }
19851
+ }
19852
+ },
19853
+ LinkBatch: {
19854
+ $schema: "https://json-schema.org/draft/2020-12/schema",
19855
+ title: "LinkBatch",
19856
+ description: "What `task link add-many` and `task link remove-many` read: many typed links.",
19857
+ type: "object",
19858
+ properties: {
19859
+ schema_version: {
19860
+ description: "`1`.",
19861
+ type: "integer",
19862
+ format: "uint32",
19863
+ minimum: 0
19864
+ },
19865
+ links: {
19866
+ description: "The links, each added or removed on its own.",
19867
+ type: "array",
19868
+ items: {
19869
+ $ref: "#/$defs/LinkItem"
19870
+ }
19871
+ }
19872
+ },
19873
+ additionalProperties: false,
19874
+ required: [
19875
+ "schema_version",
19876
+ "links"
19877
+ ],
19878
+ $defs: {
19879
+ LinkItem: {
19880
+ description: "One link of a [`LinkBatch`]: a type name over a directed pair of items.",
19881
+ type: "object",
19882
+ properties: {
19883
+ from: {
19884
+ description: "The link's `from`, a qualified task id.",
19885
+ type: "string"
19886
+ },
19887
+ to: {
19888
+ description: "The link's `to`, a qualified task id of any configured source.",
19889
+ type: "string"
19890
+ },
19891
+ type: {
19892
+ description: "The link's type name.",
19893
+ type: "string"
19894
+ }
19895
+ },
19896
+ additionalProperties: false,
19897
+ required: [
19898
+ "from",
19899
+ "to",
19900
+ "type"
19901
+ ]
19902
+ }
19903
+ }
19904
+ },
19905
+ LinkOutcome: {
19906
+ $schema: "https://json-schema.org/draft/2020-12/schema",
19907
+ title: "LinkOutcome",
19908
+ description: "What became of one link.",
19909
+ oneOf: [
19910
+ {
19911
+ description: "Every endpoint it needed was written.",
19912
+ type: "string",
19913
+ const: "written"
19914
+ },
19915
+ {
19916
+ description: "An add of a link both endpoints already hold; nothing was written.",
19917
+ type: "string",
19918
+ const: "exists"
19919
+ },
19920
+ {
19921
+ description: "A removal of a link neither endpoint holds; nothing was written.",
19922
+ type: "string",
19923
+ const: "absent"
19924
+ },
19925
+ {
19926
+ description: "One endpoint landed and the other did not; `reason` names the one that landed, and\nrepeating the call completes the other.",
19927
+ type: "string",
19928
+ const: "partial"
19929
+ },
19930
+ {
19931
+ description: "Nothing of it was written; `reason` says why.",
19932
+ type: "string",
19933
+ const: "error"
19934
+ }
19935
+ ]
19936
+ },
19937
+ LinksWritten: {
19938
+ $schema: "https://json-schema.org/draft/2020-12/schema",
19939
+ title: "LinksWritten",
19940
+ description: "What `task link add-many` and `task link remove-many` answer: one result per link.",
19941
+ type: "object",
19942
+ properties: {
19943
+ schema_version: {
19944
+ description: "`1`.",
19945
+ type: "integer",
19946
+ format: "uint32",
19947
+ minimum: 0
19948
+ },
19949
+ results: {
19950
+ description: "One per link, in the order given.",
19951
+ type: "array",
19952
+ items: {
19953
+ $ref: "#/$defs/LinkResult"
19954
+ }
19955
+ },
19956
+ sanitization: {
19957
+ anyOf: [
19958
+ {
19959
+ $ref: "#/$defs/Sanitization"
19960
+ },
19961
+ {
19962
+ type: "null"
19963
+ }
19964
+ ]
19965
+ }
19966
+ },
19967
+ required: [
19968
+ "schema_version",
19969
+ "results"
19970
+ ],
19971
+ $defs: {
19972
+ LinkResult: {
19973
+ description: "What became of one link of a [`LinkBatch`].",
19974
+ type: "object",
19975
+ properties: {
19976
+ from: {
19977
+ description: "The `from` as the batch named it.",
19978
+ type: "string"
19979
+ },
19980
+ to: {
19981
+ description: "The `to` as the batch named it.",
19982
+ type: "string"
19983
+ },
19984
+ type: {
19985
+ description: "The link's type name.",
19986
+ type: "string"
19987
+ },
19988
+ outcome: {
19989
+ description: "What became of it.",
19990
+ $ref: "#/$defs/LinkOutcome"
19991
+ },
19992
+ from_version: {
19993
+ description: "The `from` endpoint's version — after this call's write of it, else as read.",
19994
+ type: [
19995
+ "string",
19996
+ "null"
19997
+ ]
19998
+ },
19999
+ to_version: {
20000
+ description: "The `to` endpoint's version — after this call's write of it, else as read.",
20001
+ type: [
20002
+ "string",
20003
+ "null"
20004
+ ]
20005
+ },
20006
+ reason: {
20007
+ description: "Why it is answered `partial` — naming the endpoint that landed — or `error`.",
20008
+ type: [
20009
+ "string",
20010
+ "null"
20011
+ ]
20012
+ }
20013
+ },
20014
+ required: [
20015
+ "from",
20016
+ "to",
20017
+ "type",
20018
+ "outcome"
20019
+ ]
20020
+ },
20021
+ LinkOutcome: {
20022
+ description: "What became of one link.",
20023
+ oneOf: [
20024
+ {
20025
+ description: "Every endpoint it needed was written.",
20026
+ type: "string",
20027
+ const: "written"
20028
+ },
20029
+ {
20030
+ description: "An add of a link both endpoints already hold; nothing was written.",
20031
+ type: "string",
20032
+ const: "exists"
20033
+ },
20034
+ {
20035
+ description: "A removal of a link neither endpoint holds; nothing was written.",
20036
+ type: "string",
20037
+ const: "absent"
20038
+ },
20039
+ {
20040
+ description: "One endpoint landed and the other did not; `reason` names the one that landed, and\nrepeating the call completes the other.",
20041
+ type: "string",
20042
+ const: "partial"
20043
+ },
20044
+ {
20045
+ description: "Nothing of it was written; `reason` says why.",
20046
+ type: "string",
20047
+ const: "error"
20048
+ }
20049
+ ]
20050
+ },
20051
+ Sanitization: {
20052
+ 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.",
20053
+ type: "object",
20054
+ properties: {
20055
+ replaced: {
20056
+ description: "Spans the writes' own sanitisations rewrote.",
20057
+ type: "integer",
20058
+ format: "uint32",
20059
+ minimum: 0
20060
+ },
20061
+ side_effect: {
20062
+ description: "Each field or comment of an item sanitisation changed beyond the write itself.",
20063
+ type: "array",
20064
+ items: {
20065
+ $ref: "#/$defs/SideEffect"
20066
+ }
20067
+ },
20068
+ dry_run: {
20069
+ description: "Whether nothing was written, the changes only reported.",
20070
+ type: "boolean"
20071
+ }
20072
+ },
20073
+ required: [
20074
+ "replaced",
20075
+ "side_effect",
20076
+ "dry_run"
20077
+ ]
20078
+ },
20079
+ SideEffect: {
20080
+ description: "One field or comment of an item a sanitisation changed, named by screened locators.",
20081
+ type: "object",
20082
+ properties: {
20083
+ item: {
20084
+ description: "The item, by its qualified id as screened.",
20085
+ $ref: "#/$defs/Locator"
20086
+ },
20087
+ field: {
20088
+ description: "The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.",
20089
+ $ref: "#/$defs/Locator"
20090
+ }
20091
+ },
20092
+ required: [
20093
+ "item",
20094
+ "field"
20095
+ ]
20096
+ },
20097
+ Locator: {
20098
+ description: "A screened locator: the string verbatim, or its redacted form.",
20099
+ oneOf: [
20100
+ {
20101
+ type: "string"
20102
+ },
20103
+ {
20104
+ type: "object",
20105
+ properties: {
20106
+ redacted: {
20107
+ const: true
20108
+ },
20109
+ kind: {
20110
+ $ref: "#/$defs/LocatorKind"
20111
+ },
20112
+ ordinal: {
20113
+ type: "integer",
20114
+ minimum: 1
20115
+ }
20116
+ },
20117
+ required: [
20118
+ "redacted",
20119
+ "kind",
20120
+ "ordinal"
20121
+ ],
20122
+ additionalProperties: false
20123
+ }
20124
+ ]
20125
+ },
20126
+ LocatorKind: {
20127
+ description: "What a locator names.",
20128
+ oneOf: [
20129
+ {
20130
+ description: "A source name.",
20131
+ type: "string",
20132
+ const: "source"
20133
+ },
20134
+ {
20135
+ description: "An item id.",
20136
+ type: "string",
20137
+ const: "item"
20138
+ },
20139
+ {
20140
+ description: "A user-defined field name.",
20141
+ type: "string",
20142
+ const: "field"
20143
+ },
20144
+ {
20145
+ description: "A metadata key.",
20146
+ type: "string",
20147
+ const: "metadata-key"
20148
+ },
20149
+ {
20150
+ description: "A comment id.",
20151
+ type: "string",
20152
+ const: "comment"
20153
+ },
20154
+ {
20155
+ description: "A file path.",
20156
+ type: "string",
20157
+ const: "path"
20158
+ },
20159
+ {
20160
+ description: "A repository identity.",
20161
+ type: "string",
20162
+ const: "identity"
20163
+ }
20164
+ ]
19708
20165
  }
19709
20166
  }
19710
20167
  },
@@ -20975,6 +21432,28 @@ renders it per setting, so a user sees the same answer a test does.`,
20975
21432
  }
20976
21433
  ]
20977
21434
  },
21435
+ OtherEnd: {
21436
+ $schema: "https://json-schema.org/draft/2020-12/schema",
21437
+ title: "OtherEnd",
21438
+ description: "Whether a link's other end holds it too.",
21439
+ oneOf: [
21440
+ {
21441
+ description: "The other end holds the same link.",
21442
+ type: "string",
21443
+ const: "present"
21444
+ },
21445
+ {
21446
+ description: "The other end was read and does not hold it — a whole-body rewrite there lost it.",
21447
+ type: "string",
21448
+ const: "missing"
21449
+ },
21450
+ {
21451
+ description: "The other end is not among the ids asked, so it was not read.",
21452
+ type: "string",
21453
+ const: "unread"
21454
+ }
21455
+ ]
21456
+ },
20978
21457
  OutputFormat: {
20979
21458
  $schema: "https://json-schema.org/draft/2020-12/schema",
20980
21459
  title: "OutputFormat",
@@ -22095,6 +22574,26 @@ where the task may be written, and nothing written here can loosen that. The pro
22095
22574
  a task is filed under never tightens it: a task's visibility is its own.`,
22096
22575
  $ref: "#/$defs/Classification",
22097
22576
  default: "public"
22577
+ },
22578
+ assignees: {
22579
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
22580
+ Linear display name, the string as given in a folder or in memory — in the order the
22581
+ source holds them; empty means unassigned.
22582
+
22583
+ **Present only for a source that opted in** with \`config.assignees: true\`
22584
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
22585
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
22586
+ source that has not opted in reads, and is written, exactly as it was before the field
22587
+ existed. On a write, absent leaves the item's assignees as they are, and present
22588
+ replaces them with exactly the people it names — the engine never hands a source more
22589
+ than one.`,
22590
+ type: [
22591
+ "array",
22592
+ "null"
22593
+ ],
22594
+ items: {
22595
+ type: "string"
22596
+ }
22098
22597
  }
22099
22598
  },
22100
22599
  required: [
@@ -22377,6 +22876,319 @@ token meets the query it is resuming, by
22377
22876
  which sources are configured and what page ceiling each declares.`,
22378
22877
  type: "string"
22379
22878
  },
22879
+ ParentBatch: {
22880
+ $schema: "https://json-schema.org/draft/2020-12/schema",
22881
+ title: "ParentBatch",
22882
+ description: "What `task parent set-many` reads: many parent writes.",
22883
+ type: "object",
22884
+ properties: {
22885
+ schema_version: {
22886
+ description: "`1`.",
22887
+ type: "integer",
22888
+ format: "uint32",
22889
+ minimum: 0
22890
+ },
22891
+ edges: {
22892
+ description: "The edges, each written on its own.",
22893
+ type: "array",
22894
+ items: {
22895
+ $ref: "#/$defs/ParentEdge"
22896
+ }
22897
+ }
22898
+ },
22899
+ additionalProperties: false,
22900
+ required: [
22901
+ "schema_version",
22902
+ "edges"
22903
+ ],
22904
+ $defs: {
22905
+ ParentEdge: {
22906
+ description: "One edge of a [`ParentBatch`]: `child`'s parent set to `parent`, or removed for `null`.",
22907
+ type: "object",
22908
+ properties: {
22909
+ child: {
22910
+ description: "The child's qualified id, `<source>:<native-id>`.",
22911
+ type: "string"
22912
+ },
22913
+ parent: {
22914
+ 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.",
22915
+ type: [
22916
+ "string",
22917
+ "null"
22918
+ ]
22919
+ },
22920
+ if_version: {
22921
+ description: "The version the child must be at for anything to be written, as a read reported it.",
22922
+ type: [
22923
+ "string",
22924
+ "null"
22925
+ ],
22926
+ default: null
22927
+ }
22928
+ },
22929
+ additionalProperties: false,
22930
+ required: [
22931
+ "child",
22932
+ "parent"
22933
+ ]
22934
+ }
22935
+ }
22936
+ },
22937
+ ParentOutcome: {
22938
+ $schema: "https://json-schema.org/draft/2020-12/schema",
22939
+ title: "ParentOutcome",
22940
+ description: "What became of one parent edge.",
22941
+ oneOf: [
22942
+ {
22943
+ description: "It was written.",
22944
+ type: "string",
22945
+ const: "written"
22946
+ },
22947
+ {
22948
+ description: "The child already had that parent; nothing was written.",
22949
+ type: "string",
22950
+ const: "unchanged"
22951
+ },
22952
+ {
22953
+ description: "The child was at another version than the one it was held to; nothing was written.",
22954
+ type: "string",
22955
+ const: "version-moved"
22956
+ },
22957
+ {
22958
+ description: `The edge was refused on its own — a cycle, a parent in another source, or a limit of
22959
+ the destination on children or depth — and nothing was written.`,
22960
+ type: "string",
22961
+ const: "refused"
22962
+ },
22963
+ {
22964
+ description: "It could not be written; `reason` says why.",
22965
+ type: "string",
22966
+ const: "error"
22967
+ }
22968
+ ]
22969
+ },
22970
+ ParentsSet: {
22971
+ $schema: "https://json-schema.org/draft/2020-12/schema",
22972
+ title: "ParentsSet",
22973
+ description: "What `task parent set-many` answers: one result per edge, in the order given.",
22974
+ type: "object",
22975
+ properties: {
22976
+ schema_version: {
22977
+ description: "`1`.",
22978
+ type: "integer",
22979
+ format: "uint32",
22980
+ minimum: 0
22981
+ },
22982
+ results: {
22983
+ description: "One per edge.",
22984
+ type: "array",
22985
+ items: {
22986
+ $ref: "#/$defs/ParentResult"
22987
+ }
22988
+ },
22989
+ sanitization: {
22990
+ anyOf: [
22991
+ {
22992
+ $ref: "#/$defs/Sanitization"
22993
+ },
22994
+ {
22995
+ type: "null"
22996
+ }
22997
+ ]
22998
+ }
22999
+ },
23000
+ required: [
23001
+ "schema_version",
23002
+ "results"
23003
+ ],
23004
+ $defs: {
23005
+ ParentResult: {
23006
+ description: "What became of one edge of a [`ParentBatch`].",
23007
+ type: "object",
23008
+ properties: {
23009
+ child: {
23010
+ description: "The child as the batch named it.",
23011
+ type: "string"
23012
+ },
23013
+ parent: {
23014
+ description: "The parent as the batch named it, `null` for a removal.",
23015
+ type: [
23016
+ "string",
23017
+ "null"
23018
+ ]
23019
+ },
23020
+ outcome: {
23021
+ description: "What became of it.",
23022
+ $ref: "#/$defs/ParentOutcome"
23023
+ },
23024
+ version: {
23025
+ 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`.",
23026
+ type: [
23027
+ "string",
23028
+ "null"
23029
+ ]
23030
+ },
23031
+ reason: {
23032
+ description: "Why it is answered `refused` or `error`.",
23033
+ type: [
23034
+ "string",
23035
+ "null"
23036
+ ]
23037
+ }
23038
+ },
23039
+ required: [
23040
+ "child",
23041
+ "outcome"
23042
+ ]
23043
+ },
23044
+ ParentOutcome: {
23045
+ description: "What became of one parent edge.",
23046
+ oneOf: [
23047
+ {
23048
+ description: "It was written.",
23049
+ type: "string",
23050
+ const: "written"
23051
+ },
23052
+ {
23053
+ description: "The child already had that parent; nothing was written.",
23054
+ type: "string",
23055
+ const: "unchanged"
23056
+ },
23057
+ {
23058
+ description: "The child was at another version than the one it was held to; nothing was written.",
23059
+ type: "string",
23060
+ const: "version-moved"
23061
+ },
23062
+ {
23063
+ description: `The edge was refused on its own — a cycle, a parent in another source, or a limit of
23064
+ the destination on children or depth — and nothing was written.`,
23065
+ type: "string",
23066
+ const: "refused"
23067
+ },
23068
+ {
23069
+ description: "It could not be written; `reason` says why.",
23070
+ type: "string",
23071
+ const: "error"
23072
+ }
23073
+ ]
23074
+ },
23075
+ Sanitization: {
23076
+ 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.",
23077
+ type: "object",
23078
+ properties: {
23079
+ replaced: {
23080
+ description: "Spans the writes' own sanitisations rewrote.",
23081
+ type: "integer",
23082
+ format: "uint32",
23083
+ minimum: 0
23084
+ },
23085
+ side_effect: {
23086
+ description: "Each field or comment of an item sanitisation changed beyond the write itself.",
23087
+ type: "array",
23088
+ items: {
23089
+ $ref: "#/$defs/SideEffect"
23090
+ }
23091
+ },
23092
+ dry_run: {
23093
+ description: "Whether nothing was written, the changes only reported.",
23094
+ type: "boolean"
23095
+ }
23096
+ },
23097
+ required: [
23098
+ "replaced",
23099
+ "side_effect",
23100
+ "dry_run"
23101
+ ]
23102
+ },
23103
+ SideEffect: {
23104
+ description: "One field or comment of an item a sanitisation changed, named by screened locators.",
23105
+ type: "object",
23106
+ properties: {
23107
+ item: {
23108
+ description: "The item, by its qualified id as screened.",
23109
+ $ref: "#/$defs/Locator"
23110
+ },
23111
+ field: {
23112
+ description: "The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.",
23113
+ $ref: "#/$defs/Locator"
23114
+ }
23115
+ },
23116
+ required: [
23117
+ "item",
23118
+ "field"
23119
+ ]
23120
+ },
23121
+ Locator: {
23122
+ description: "A screened locator: the string verbatim, or its redacted form.",
23123
+ oneOf: [
23124
+ {
23125
+ type: "string"
23126
+ },
23127
+ {
23128
+ type: "object",
23129
+ properties: {
23130
+ redacted: {
23131
+ const: true
23132
+ },
23133
+ kind: {
23134
+ $ref: "#/$defs/LocatorKind"
23135
+ },
23136
+ ordinal: {
23137
+ type: "integer",
23138
+ minimum: 1
23139
+ }
23140
+ },
23141
+ required: [
23142
+ "redacted",
23143
+ "kind",
23144
+ "ordinal"
23145
+ ],
23146
+ additionalProperties: false
23147
+ }
23148
+ ]
23149
+ },
23150
+ LocatorKind: {
23151
+ description: "What a locator names.",
23152
+ oneOf: [
23153
+ {
23154
+ description: "A source name.",
23155
+ type: "string",
23156
+ const: "source"
23157
+ },
23158
+ {
23159
+ description: "An item id.",
23160
+ type: "string",
23161
+ const: "item"
23162
+ },
23163
+ {
23164
+ description: "A user-defined field name.",
23165
+ type: "string",
23166
+ const: "field"
23167
+ },
23168
+ {
23169
+ description: "A metadata key.",
23170
+ type: "string",
23171
+ const: "metadata-key"
23172
+ },
23173
+ {
23174
+ description: "A comment id.",
23175
+ type: "string",
23176
+ const: "comment"
23177
+ },
23178
+ {
23179
+ description: "A file path.",
23180
+ type: "string",
23181
+ const: "path"
23182
+ },
23183
+ {
23184
+ description: "A repository identity.",
23185
+ type: "string",
23186
+ const: "identity"
23187
+ }
23188
+ ]
23189
+ }
23190
+ }
23191
+ },
22380
23192
  Placement: {
22381
23193
  $schema: "https://json-schema.org/draft/2020-12/schema",
22382
23194
  title: "Placement",
@@ -24956,6 +25768,26 @@ where the task may be written, and nothing written here can loosen that. The pro
24956
25768
  a task is filed under never tightens it: a task's visibility is its own.`,
24957
25769
  $ref: "#/$defs/Classification",
24958
25770
  default: "public"
25771
+ },
25772
+ assignees: {
25773
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
25774
+ Linear display name, the string as given in a folder or in memory — in the order the
25775
+ source holds them; empty means unassigned.
25776
+
25777
+ **Present only for a source that opted in** with \`config.assignees: true\`
25778
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
25779
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
25780
+ source that has not opted in reads, and is written, exactly as it was before the field
25781
+ existed. On a write, absent leaves the item's assignees as they are, and present
25782
+ replaces them with exactly the people it names — the engine never hands a source more
25783
+ than one.`,
25784
+ type: [
25785
+ "array",
25786
+ "null"
25787
+ ],
25788
+ items: {
25789
+ type: "string"
25790
+ }
24959
25791
  }
24960
25792
  },
24961
25793
  required: [
@@ -28241,6 +29073,26 @@ where the task may be written, and nothing written here can loosen that. The pro
28241
29073
  a task is filed under never tightens it: a task's visibility is its own.`,
28242
29074
  $ref: "#/$defs/Classification",
28243
29075
  default: "public"
29076
+ },
29077
+ assignees: {
29078
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
29079
+ Linear display name, the string as given in a folder or in memory — in the order the
29080
+ source holds them; empty means unassigned.
29081
+
29082
+ **Present only for a source that opted in** with \`config.assignees: true\`
29083
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
29084
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
29085
+ source that has not opted in reads, and is written, exactly as it was before the field
29086
+ existed. On a write, absent leaves the item's assignees as they are, and present
29087
+ replaces them with exactly the people it names — the engine never hands a source more
29088
+ than one.`,
29089
+ type: [
29090
+ "array",
29091
+ "null"
29092
+ ],
29093
+ items: {
29094
+ type: "string"
29095
+ }
28244
29096
  }
28245
29097
  },
28246
29098
  required: [
@@ -29119,6 +29971,26 @@ where the task may be written, and nothing written here can loosen that. The pro
29119
29971
  a task is filed under never tightens it: a task's visibility is its own.`,
29120
29972
  $ref: "#/$defs/Classification",
29121
29973
  default: "public"
29974
+ },
29975
+ assignees: {
29976
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
29977
+ Linear display name, the string as given in a folder or in memory — in the order the
29978
+ source holds them; empty means unassigned.
29979
+
29980
+ **Present only for a source that opted in** with \`config.assignees: true\`
29981
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
29982
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
29983
+ source that has not opted in reads, and is written, exactly as it was before the field
29984
+ existed. On a write, absent leaves the item's assignees as they are, and present
29985
+ replaces them with exactly the people it names — the engine never hands a source more
29986
+ than one.`,
29987
+ type: [
29988
+ "array",
29989
+ "null"
29990
+ ],
29991
+ items: {
29992
+ type: "string"
29993
+ }
29122
29994
  }
29123
29995
  },
29124
29996
  required: [
@@ -29882,6 +30754,80 @@ later.`,
29882
30754
  }
29883
30755
  }
29884
30756
  },
30757
+ ReadLink: {
30758
+ $schema: "https://json-schema.org/draft/2020-12/schema",
30759
+ title: "ReadLink",
30760
+ description: "One link as one endpoint holds it.",
30761
+ type: "object",
30762
+ properties: {
30763
+ type: {
30764
+ description: "The link's type name.",
30765
+ type: "string"
30766
+ },
30767
+ direction: {
30768
+ description: "Which end of the link this item is.",
30769
+ $ref: "#/$defs/LinkDirection"
30770
+ },
30771
+ other: {
30772
+ description: "The other item's qualified id.",
30773
+ $ref: "#/$defs/GlobalId"
30774
+ },
30775
+ other_end: {
30776
+ description: "Whether the other end holds this link too: `present` or `missing` when the other item\nis among the ids asked, and `unread` otherwise.",
30777
+ $ref: "#/$defs/OtherEnd"
30778
+ }
30779
+ },
30780
+ required: [
30781
+ "type",
30782
+ "direction",
30783
+ "other",
30784
+ "other_end"
30785
+ ],
30786
+ $defs: {
30787
+ LinkDirection: {
30788
+ description: "Which end of a directed link an item is.",
30789
+ oneOf: [
30790
+ {
30791
+ description: "This item is the link's `from`.",
30792
+ type: "string",
30793
+ const: "out"
30794
+ },
30795
+ {
30796
+ description: "This item is the link's `to`.",
30797
+ type: "string",
30798
+ const: "in"
30799
+ }
30800
+ ]
30801
+ },
30802
+ GlobalId: {
30803
+ description: `One item, qualified by the source it came from.
30804
+
30805
+ Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
30806
+ so a native id may contain colons freely.`,
30807
+ type: "string"
30808
+ },
30809
+ OtherEnd: {
30810
+ description: "Whether a link's other end holds it too.",
30811
+ oneOf: [
30812
+ {
30813
+ description: "The other end holds the same link.",
30814
+ type: "string",
30815
+ const: "present"
30816
+ },
30817
+ {
30818
+ description: "The other end was read and does not hold it — a whole-body rewrite there lost it.",
30819
+ type: "string",
30820
+ const: "missing"
30821
+ },
30822
+ {
30823
+ description: "The other end is not among the ids asked, so it was not read.",
30824
+ type: "string",
30825
+ const: "unread"
30826
+ }
30827
+ ]
30828
+ }
30829
+ }
30830
+ },
29885
30831
  ReconcileOutcome: {
29886
30832
  $schema: "https://json-schema.org/draft/2020-12/schema",
29887
30833
  title: "ReconcileOutcome",
@@ -30177,6 +31123,130 @@ so a native id may contain colons freely.`,
30177
31123
  }
30178
31124
  }
30179
31125
  },
31126
+ RelationsItem: {
31127
+ $schema: "https://json-schema.org/draft/2020-12/schema",
31128
+ title: "RelationsItem",
31129
+ description: "One task's relations.",
31130
+ type: "object",
31131
+ properties: {
31132
+ item: {
31133
+ description: "The task's qualified id.",
31134
+ $ref: "#/$defs/GlobalId"
31135
+ },
31136
+ parent: {
31137
+ description: "Its parent's qualified id, or `null`.",
31138
+ anyOf: [
31139
+ {
31140
+ $ref: "#/$defs/GlobalId"
31141
+ },
31142
+ {
31143
+ type: "null"
31144
+ }
31145
+ ]
31146
+ },
31147
+ children: {
31148
+ description: "Its children's qualified ids.",
31149
+ type: "array",
31150
+ items: {
31151
+ $ref: "#/$defs/GlobalId"
31152
+ }
31153
+ },
31154
+ children_complete: {
31155
+ description: "Whether `children` is every child.",
31156
+ type: "boolean"
31157
+ },
31158
+ links: {
31159
+ description: "Its links, as it holds them.",
31160
+ type: "array",
31161
+ items: {
31162
+ $ref: "#/$defs/ReadLink"
31163
+ }
31164
+ },
31165
+ links_complete: {
31166
+ description: "Whether `links` is every link it holds.",
31167
+ type: "boolean"
31168
+ }
31169
+ },
31170
+ required: [
31171
+ "item",
31172
+ "children",
31173
+ "children_complete",
31174
+ "links",
31175
+ "links_complete"
31176
+ ],
31177
+ $defs: {
31178
+ GlobalId: {
31179
+ description: `One item, qualified by the source it came from.
31180
+
31181
+ Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
31182
+ so a native id may contain colons freely.`,
31183
+ type: "string"
31184
+ },
31185
+ ReadLink: {
31186
+ description: "One link as one endpoint holds it.",
31187
+ type: "object",
31188
+ properties: {
31189
+ type: {
31190
+ description: "The link's type name.",
31191
+ type: "string"
31192
+ },
31193
+ direction: {
31194
+ description: "Which end of the link this item is.",
31195
+ $ref: "#/$defs/LinkDirection"
31196
+ },
31197
+ other: {
31198
+ description: "The other item's qualified id.",
31199
+ $ref: "#/$defs/GlobalId"
31200
+ },
31201
+ other_end: {
31202
+ description: "Whether the other end holds this link too: `present` or `missing` when the other item\nis among the ids asked, and `unread` otherwise.",
31203
+ $ref: "#/$defs/OtherEnd"
31204
+ }
31205
+ },
31206
+ required: [
31207
+ "type",
31208
+ "direction",
31209
+ "other",
31210
+ "other_end"
31211
+ ]
31212
+ },
31213
+ LinkDirection: {
31214
+ description: "Which end of a directed link an item is.",
31215
+ oneOf: [
31216
+ {
31217
+ description: "This item is the link's `from`.",
31218
+ type: "string",
31219
+ const: "out"
31220
+ },
31221
+ {
31222
+ description: "This item is the link's `to`.",
31223
+ type: "string",
31224
+ const: "in"
31225
+ }
31226
+ ]
31227
+ },
31228
+ OtherEnd: {
31229
+ description: "Whether a link's other end holds it too.",
31230
+ oneOf: [
31231
+ {
31232
+ description: "The other end holds the same link.",
31233
+ type: "string",
31234
+ const: "present"
31235
+ },
31236
+ {
31237
+ description: "The other end was read and does not hold it — a whole-body rewrite there lost it.",
31238
+ type: "string",
31239
+ const: "missing"
31240
+ },
31241
+ {
31242
+ description: "The other end is not among the ids asked, so it was not read.",
31243
+ type: "string",
31244
+ const: "unread"
31245
+ }
31246
+ ]
31247
+ }
31248
+ }
31249
+ },
30180
31250
  RenderedTemplate: {
30181
31251
  $schema: "https://json-schema.org/draft/2020-12/schema",
30182
31252
  title: "RenderedTemplate",
@@ -30738,6 +31808,26 @@ where the task may be written, and nothing written here can loosen that. The pro
30738
31808
  a task is filed under never tightens it: a task's visibility is its own.`,
30739
31809
  $ref: "#/$defs/Classification",
30740
31810
  default: "public"
31811
+ },
31812
+ assignees: {
31813
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
31814
+ Linear display name, the string as given in a folder or in memory — in the order the
31815
+ source holds them; empty means unassigned.
31816
+
31817
+ **Present only for a source that opted in** with \`config.assignees: true\`
31818
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
31819
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
31820
+ source that has not opted in reads, and is written, exactly as it was before the field
31821
+ existed. On a write, absent leaves the item's assignees as they are, and present
31822
+ replaces them with exactly the people it names — the engine never hands a source more
31823
+ than one.`,
31824
+ type: [
31825
+ "array",
31826
+ "null"
31827
+ ],
31828
+ items: {
31829
+ type: "string"
31830
+ }
30741
31831
  }
30742
31832
  },
30743
31833
  required: [
@@ -31771,6 +32861,11 @@ predates assets says nothing here and is never handed bytes it would drop.`,
31771
32861
  $ref: "#/$defs/Support",
31772
32862
  default: "unsupported"
31773
32863
  },
32864
+ assignees: {
32865
+ description: "Whether the source's tasks carry [`Task::assignees`](crate::Task::assignees): set by\nthe source's own `config.assignees: true`, and `unsupported` otherwise.\n\nRead exactly as [`priority`](Self::priority) is: it says what the source *holds*, not\nwhich predicate it applies. A source declaring `Unsupported` reports no assignees on\nany task and is never handed any: a write naming an assignee is refused before the\nsource is asked, naming the source and the setting, and a copy into it carries none.\n\nDefaulted to [`Support::Unsupported`] when a wire value omits it, and left out of the\nwire while unsupported, so a plugin that predates assignees — and every source that has\nnot opted in — reads and is read exactly as it was.",
32866
+ $ref: "#/$defs/Support",
32867
+ default: "unsupported"
32868
+ },
31774
32869
  filter_by_priority: {
31775
32870
  description: `Whether the source keeps only the tasks whose priority a query lists, itself.
31776
32871
 
@@ -32214,6 +33309,11 @@ predates assets says nothing here and is never handed bytes it would drop.`,
32214
33309
  $ref: "#/$defs/Support",
32215
33310
  default: "unsupported"
32216
33311
  },
33312
+ assignees: {
33313
+ description: "Whether the source's tasks carry [`Task::assignees`](crate::Task::assignees): set by\nthe source's own `config.assignees: true`, and `unsupported` otherwise.\n\nRead exactly as [`priority`](Self::priority) is: it says what the source *holds*, not\nwhich predicate it applies. A source declaring `Unsupported` reports no assignees on\nany task and is never handed any: a write naming an assignee is refused before the\nsource is asked, naming the source and the setting, and a copy into it carries none.\n\nDefaulted to [`Support::Unsupported`] when a wire value omits it, and left out of the\nwire while unsupported, so a plugin that predates assignees — and every source that has\nnot opted in — reads and is read exactly as it was.",
33314
+ $ref: "#/$defs/Support",
33315
+ default: "unsupported"
33316
+ },
32217
33317
  filter_by_priority: {
32218
33318
  description: `Whether the source keeps only the tasks whose priority a query lists, itself.
32219
33319
 
@@ -33068,6 +34168,26 @@ where the task may be written, and nothing written here can loosen that. The pro
33068
34168
  a task is filed under never tightens it: a task's visibility is its own.`,
33069
34169
  $ref: "#/$defs/Classification",
33070
34170
  default: "public"
34171
+ },
34172
+ assignees: {
34173
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
34174
+ Linear display name, the string as given in a folder or in memory — in the order the
34175
+ source holds them; empty means unassigned.
34176
+
34177
+ **Present only for a source that opted in** with \`config.assignees: true\`
34178
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
34179
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
34180
+ source that has not opted in reads, and is written, exactly as it was before the field
34181
+ existed. On a write, absent leaves the item's assignees as they are, and present
34182
+ replaces them with exactly the people it names — the engine never hands a source more
34183
+ than one.`,
34184
+ type: [
34185
+ "array",
34186
+ "null"
34187
+ ],
34188
+ items: {
34189
+ type: "string"
34190
+ }
33071
34191
  }
33072
34192
  },
33073
34193
  required: [
@@ -34619,6 +35739,26 @@ where the task may be written, and nothing written here can loosen that. The pro
34619
35739
  a task is filed under never tightens it: a task's visibility is its own.`,
34620
35740
  $ref: "#/$defs/Classification",
34621
35741
  default: "public"
35742
+ },
35743
+ assignees: {
35744
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
35745
+ Linear display name, the string as given in a folder or in memory — in the order the
35746
+ source holds them; empty means unassigned.
35747
+
35748
+ **Present only for a source that opted in** with \`config.assignees: true\`
35749
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
35750
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
35751
+ source that has not opted in reads, and is written, exactly as it was before the field
35752
+ existed. On a write, absent leaves the item's assignees as they are, and present
35753
+ replaces them with exactly the people it names — the engine never hands a source more
35754
+ than one.`,
35755
+ type: [
35756
+ "array",
35757
+ "null"
35758
+ ],
35759
+ items: {
35760
+ type: "string"
35761
+ }
34622
35762
  }
34623
35763
  },
34624
35764
  required: [
@@ -34847,25 +35987,27 @@ reach a public one.`,
34847
35987
  }
34848
35988
  }
34849
35989
  },
34850
- TaskContentSet: {
35990
+ TaskAssigneeSet: {
34851
35991
  $schema: "https://json-schema.org/draft/2020-12/schema",
34852
- title: "TaskContentSet",
34853
- description: "What `task content set` answers with.",
35992
+ title: "TaskAssigneeSet",
35993
+ description: "What `task assignee set` answers with.",
34854
35994
  type: "object",
34855
35995
  properties: {
34856
35996
  id: {
34857
- description: "The task whose content was replaced.",
35997
+ description: "The task whose assignee was set.",
34858
35998
  $ref: "#/$defs/GlobalId"
34859
35999
  },
34860
- content: {
34861
- description: `The content the task holds after the write: what its source's backend stores, as the
34862
- write's own answer reported it, where the source reports one — a backend may normalize
34863
- the spelling of the Markdown it is written while keeping its rendered meaning — and
34864
- otherwise exactly the bytes sent. An answer, never stored.`,
34865
- type: "string"
36000
+ assignees: {
36001
+ description: `Every person the task is assigned to as its source reads it back after the write —
36002
+ the one person named, or none.`,
36003
+ type: "array",
36004
+ items: {
36005
+ type: "string"
36006
+ }
34866
36007
  },
34867
36008
  result: {
34868
- description: "What each mutation an expected write sent came to — present when the write was made\nwith `--expect` on a source that reports its writes' parts.",
36009
+ description: `What the task holds after the write — its version where the write's own answers
36010
+ determine it.`,
34869
36011
  anyOf: [
34870
36012
  {
34871
36013
  $ref: "#/$defs/WriteResult"
@@ -34875,28 +36017,6 @@ otherwise exactly the bytes sent. An answer, never stored.`,
34875
36017
  }
34876
36018
  ]
34877
36019
  },
34878
- fallback: {
34879
- description: "That an expected write read its target first, and why — absent when it sent only its\nmutations, and for a write made without `--expect`.",
34880
- anyOf: [
34881
- {
34882
- $ref: "#/$defs/WriteFallback"
34883
- },
34884
- {
34885
- type: "null"
34886
- }
34887
- ]
34888
- },
34889
- spent: {
34890
- description: "What an expected write spent at the sources that meter their own requests, its\nfallback read included — absent for a write made without `--expect`.",
34891
- anyOf: [
34892
- {
34893
- $ref: "#/$defs/Spent"
34894
- },
34895
- {
34896
- type: "null"
34897
- }
34898
- ]
34899
- },
34900
36020
  sanitization: {
34901
36021
  anyOf: [
34902
36022
  {
@@ -34910,7 +36030,7 @@ otherwise exactly the bytes sent. An answer, never stored.`,
34910
36030
  },
34911
36031
  required: [
34912
36032
  "id",
34913
- "content"
36033
+ "assignees"
34914
36034
  ],
34915
36035
  $defs: {
34916
36036
  GlobalId: {
@@ -35154,82 +36274,506 @@ from nothing by the value alone.`,
35154
36274
  }
35155
36275
  ]
35156
36276
  },
35157
- WriteFallback: {
35158
- description: "That an expected write read its target before writing, and why.",
35159
- type: "object",
35160
- properties: {
35161
- read: {
35162
- description: "Always `true`: the write made one read.",
35163
- type: "boolean"
35164
- },
35165
- reason: {
35166
- description: "Why it could not take what it needed from the cache.",
35167
- type: "string"
35168
- }
35169
- },
35170
- required: [
35171
- "read",
35172
- "reason"
35173
- ]
35174
- },
35175
- Spent: {
35176
- description: `What one command spent, summed over the sources in it that meter their own requests.
35177
-
35178
- **Source-owned.** Every figure is what a source said it sent and spent while the command
35179
- ran, read through [\`TaskSource::metering\`](onetaskgraph_plugin_api::TaskSource::metering)
35180
- before the command and again after it. The engine adds the differences up by name and
35181
- interprets none of them, which is why the budget and unit names are open vocabulary.`,
35182
- type: "object",
35183
- properties: {
35184
- requests: {
35185
- description: "How many HTTP requests those sources sent for this command.",
35186
- type: "integer",
35187
- format: "uint64",
35188
- minimum: 0
35189
- },
35190
- budgets: {
35191
- description: "What those requests spent, one entry per budget and unit, ordered by budget name.",
35192
- type: "array",
35193
- items: {
35194
- $ref: "#/$defs/BudgetSpent"
35195
- }
35196
- }
35197
- },
35198
- required: [
35199
- "requests",
35200
- "budgets"
35201
- ]
35202
- },
35203
- BudgetSpent: {
35204
- description: "What one command spent against one budget.",
35205
- type: "object",
35206
- properties: {
35207
- budget: {
35208
- description: "The budget, as the source names it — `graphql`, `rest`.",
35209
- type: "string"
35210
- },
35211
- unit: {
35212
- description: "What it is metered in — `points`, `requests`.",
35213
- type: "string"
35214
- },
35215
- amount: {
35216
- description: "How much was spent against it, in that unit.",
35217
- type: "integer",
35218
- format: "uint64",
35219
- minimum: 0
35220
- },
35221
- lower_bound: {
35222
- description: "Whether any part of `amount` was modelled by a source rather than reported by its\nbackend or counted, which makes `amount` a lower bound on what the backend charged\nrather than a measurement of it.",
35223
- type: "boolean"
35224
- }
35225
- },
35226
- required: [
35227
- "budget",
35228
- "unit",
35229
- "amount",
35230
- "lower_bound"
35231
- ]
35232
- },
36277
+ Sanitization: {
36278
+ 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.",
36279
+ type: "object",
36280
+ properties: {
36281
+ replaced: {
36282
+ description: "Spans the writes' own sanitisations rewrote.",
36283
+ type: "integer",
36284
+ format: "uint32",
36285
+ minimum: 0
36286
+ },
36287
+ side_effect: {
36288
+ description: "Each field or comment of an item sanitisation changed beyond the write itself.",
36289
+ type: "array",
36290
+ items: {
36291
+ $ref: "#/$defs/SideEffect"
36292
+ }
36293
+ },
36294
+ dry_run: {
36295
+ description: "Whether nothing was written, the changes only reported.",
36296
+ type: "boolean"
36297
+ }
36298
+ },
36299
+ required: [
36300
+ "replaced",
36301
+ "side_effect",
36302
+ "dry_run"
36303
+ ]
36304
+ },
36305
+ SideEffect: {
36306
+ description: "One field or comment of an item a sanitisation changed, named by screened locators.",
36307
+ type: "object",
36308
+ properties: {
36309
+ item: {
36310
+ description: "The item, by its qualified id as screened.",
36311
+ $ref: "#/$defs/Locator"
36312
+ },
36313
+ field: {
36314
+ description: "The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.",
36315
+ $ref: "#/$defs/Locator"
36316
+ }
36317
+ },
36318
+ required: [
36319
+ "item",
36320
+ "field"
36321
+ ]
36322
+ },
36323
+ Locator: {
36324
+ description: "A screened locator: the string verbatim, or its redacted form.",
36325
+ oneOf: [
36326
+ {
36327
+ type: "string"
36328
+ },
36329
+ {
36330
+ type: "object",
36331
+ properties: {
36332
+ redacted: {
36333
+ const: true
36334
+ },
36335
+ kind: {
36336
+ $ref: "#/$defs/LocatorKind"
36337
+ },
36338
+ ordinal: {
36339
+ type: "integer",
36340
+ minimum: 1
36341
+ }
36342
+ },
36343
+ required: [
36344
+ "redacted",
36345
+ "kind",
36346
+ "ordinal"
36347
+ ],
36348
+ additionalProperties: false
36349
+ }
36350
+ ]
36351
+ },
36352
+ LocatorKind: {
36353
+ description: "What a locator names.",
36354
+ oneOf: [
36355
+ {
36356
+ description: "A source name.",
36357
+ type: "string",
36358
+ const: "source"
36359
+ },
36360
+ {
36361
+ description: "An item id.",
36362
+ type: "string",
36363
+ const: "item"
36364
+ },
36365
+ {
36366
+ description: "A user-defined field name.",
36367
+ type: "string",
36368
+ const: "field"
36369
+ },
36370
+ {
36371
+ description: "A metadata key.",
36372
+ type: "string",
36373
+ const: "metadata-key"
36374
+ },
36375
+ {
36376
+ description: "A comment id.",
36377
+ type: "string",
36378
+ const: "comment"
36379
+ },
36380
+ {
36381
+ description: "A file path.",
36382
+ type: "string",
36383
+ const: "path"
36384
+ },
36385
+ {
36386
+ description: "A repository identity.",
36387
+ type: "string",
36388
+ const: "identity"
36389
+ }
36390
+ ]
36391
+ }
36392
+ }
36393
+ },
36394
+ TaskContentSet: {
36395
+ $schema: "https://json-schema.org/draft/2020-12/schema",
36396
+ title: "TaskContentSet",
36397
+ description: "What `task content set` answers with.",
36398
+ type: "object",
36399
+ properties: {
36400
+ id: {
36401
+ description: "The task whose content was replaced.",
36402
+ $ref: "#/$defs/GlobalId"
36403
+ },
36404
+ content: {
36405
+ description: `The content the task holds after the write: what its source's backend stores, as the
36406
+ write's own answer reported it, where the source reports one — a backend may normalize
36407
+ the spelling of the Markdown it is written while keeping its rendered meaning — and
36408
+ otherwise exactly the bytes sent. An answer, never stored.`,
36409
+ type: "string"
36410
+ },
36411
+ result: {
36412
+ description: "What each mutation an expected write sent came to — present when the write was made\nwith `--expect` on a source that reports its writes' parts.",
36413
+ anyOf: [
36414
+ {
36415
+ $ref: "#/$defs/WriteResult"
36416
+ },
36417
+ {
36418
+ type: "null"
36419
+ }
36420
+ ]
36421
+ },
36422
+ fallback: {
36423
+ description: "That an expected write read its target first, and why — absent when it sent only its\nmutations, and for a write made without `--expect`.",
36424
+ anyOf: [
36425
+ {
36426
+ $ref: "#/$defs/WriteFallback"
36427
+ },
36428
+ {
36429
+ type: "null"
36430
+ }
36431
+ ]
36432
+ },
36433
+ spent: {
36434
+ description: "What an expected write spent at the sources that meter their own requests, its\nfallback read included — absent for a write made without `--expect`.",
36435
+ anyOf: [
36436
+ {
36437
+ $ref: "#/$defs/Spent"
36438
+ },
36439
+ {
36440
+ type: "null"
36441
+ }
36442
+ ]
36443
+ },
36444
+ sanitization: {
36445
+ anyOf: [
36446
+ {
36447
+ $ref: "#/$defs/Sanitization"
36448
+ },
36449
+ {
36450
+ type: "null"
36451
+ }
36452
+ ]
36453
+ }
36454
+ },
36455
+ required: [
36456
+ "id",
36457
+ "content"
36458
+ ],
36459
+ $defs: {
36460
+ GlobalId: {
36461
+ description: `One item, qualified by the source it came from.
36462
+
36463
+ Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
36464
+ so a native id may contain colons freely.`,
36465
+ type: "string"
36466
+ },
36467
+ WriteResult: {
36468
+ description: `What an item holds once a write is done, read off the write's own responses — and, for an
36469
+ expected write, what each mutation it sent came to.
36470
+
36471
+ Every write verb and every item a copy lands answers one, with no request added for it: a
36472
+ field the write kept is what the read before it held. \`version\` is \`null\` where the source
36473
+ cannot vouch for a token from its write's responses — a GitHub board for an item it has just
36474
+ written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
36475
+ then give.`,
36476
+ type: "object",
36477
+ properties: {
36478
+ version: {
36479
+ description: "The item's version after the write, where the write's responses determine it.",
36480
+ type: [
36481
+ "string",
36482
+ "null"
36483
+ ]
36484
+ },
36485
+ parts: {
36486
+ description: "One per mutation an expected write sent, in the order sent — absent for a write made\nwithout `--expect`.",
36487
+ type: [
36488
+ "array",
36489
+ "null"
36490
+ ],
36491
+ items: {
36492
+ $ref: "#/$defs/WritePart"
36493
+ }
36494
+ },
36495
+ status: {
36496
+ description: "The item's status after the write, exactly as `task show` spells it — `null` for a\ndocument, which has none, and where an expected write that failed cannot say.",
36497
+ anyOf: [
36498
+ {
36499
+ $ref: "#/$defs/Status"
36500
+ },
36501
+ {
36502
+ type: "null"
36503
+ }
36504
+ ],
36505
+ default: null
36506
+ },
36507
+ priority: {
36508
+ description: "A task's priority after the write — `null` for a project or a document, which carry\nnone, and where an expected write that failed cannot say.",
36509
+ anyOf: [
36510
+ {
36511
+ $ref: "#/$defs/Priority"
36512
+ },
36513
+ {
36514
+ type: "null"
36515
+ }
36516
+ ],
36517
+ default: null
36518
+ }
36519
+ }
36520
+ },
36521
+ WritePart: {
36522
+ description: "One mutation of an expected write.",
36523
+ type: "object",
36524
+ properties: {
36525
+ part: {
36526
+ description: "Which part it was, in the source's words: `fields`, `issue`, `comment`.",
36527
+ type: "string"
36528
+ },
36529
+ fields: {
36530
+ description: "Each field it set, with the value the response shows.",
36531
+ type: "object",
36532
+ additionalProperties: true
36533
+ }
36534
+ },
36535
+ required: [
36536
+ "part",
36537
+ "fields"
36538
+ ],
36539
+ oneOf: [
36540
+ {
36541
+ description: "The backend answered that it was applied.",
36542
+ type: "object",
36543
+ properties: {
36544
+ outcome: {
36545
+ type: "string",
36546
+ const: "landed"
36547
+ }
36548
+ },
36549
+ required: [
36550
+ "outcome"
36551
+ ]
36552
+ },
36553
+ {
36554
+ description: "The backend answered that it was refused.",
36555
+ type: "object",
36556
+ properties: {
36557
+ error: {
36558
+ description: "What the backend said.",
36559
+ type: "string"
36560
+ },
36561
+ stale: {
36562
+ description: `Whether it was refused because an id the write took from a primed context — an
36563
+ item's node id, a field's or an option's — no longer resolves. Such a part is
36564
+ sent again once, after one read.`,
36565
+ type: "boolean",
36566
+ default: false
36567
+ },
36568
+ outcome: {
36569
+ type: "string",
36570
+ const: "rejected"
36571
+ }
36572
+ },
36573
+ required: [
36574
+ "outcome",
36575
+ "error"
36576
+ ]
36577
+ },
36578
+ {
36579
+ description: `The request left and no answer came back, so whether it was applied cannot be known.
36580
+ Never sent again: doing so could apply it twice.`,
36581
+ type: "object",
36582
+ properties: {
36583
+ error: {
36584
+ description: "What went wrong.",
36585
+ type: "string"
36586
+ },
36587
+ outcome: {
36588
+ type: "string",
36589
+ const: "unknown"
36590
+ }
36591
+ },
36592
+ required: [
36593
+ "outcome",
36594
+ "error"
36595
+ ]
36596
+ }
36597
+ ]
36598
+ },
36599
+ Status: {
36600
+ description: `A source's status, kept in both normalised and original form.
36601
+
36602
+ \`category\` is what every filter compares against; \`name\` is the source's own
36603
+ wording, preserved so display never flattens "In Review" into "In Progress".`,
36604
+ type: "object",
36605
+ properties: {
36606
+ category: {
36607
+ description: "The normalised value filters compare against.",
36608
+ $ref: "#/$defs/StatusCategory"
36609
+ },
36610
+ name: {
36611
+ description: "The source's own label for this status.",
36612
+ type: "string"
36613
+ }
36614
+ },
36615
+ required: [
36616
+ "category",
36617
+ "name"
36618
+ ]
36619
+ },
36620
+ StatusCategory: {
36621
+ description: "The normalised status vocabulary shared across every source.",
36622
+ oneOf: [
36623
+ {
36624
+ description: "Written down but not yet committed to as work.",
36625
+ type: "string",
36626
+ const: "draft"
36627
+ },
36628
+ {
36629
+ description: "Known about, not yet accepted as ready to work.",
36630
+ type: "string",
36631
+ const: "backlog"
36632
+ },
36633
+ {
36634
+ description: "Accepted and ready to be picked up, and nothing has claimed it.",
36635
+ type: "string",
36636
+ const: "todo"
36637
+ },
36638
+ {
36639
+ description: "Claimed by work that will do it, and not yet started.",
36640
+ type: "string",
36641
+ const: "queued"
36642
+ },
36643
+ {
36644
+ description: "Being worked on.",
36645
+ type: "string",
36646
+ const: "in-progress"
36647
+ },
36648
+ {
36649
+ description: "Finished.",
36650
+ type: "string",
36651
+ const: "done"
36652
+ },
36653
+ {
36654
+ description: "Abandoned.",
36655
+ type: "string",
36656
+ const: "cancelled"
36657
+ },
36658
+ {
36659
+ description: "The source reported a status this vocabulary cannot place.",
36660
+ type: "string",
36661
+ const: "unknown"
36662
+ }
36663
+ ]
36664
+ },
36665
+ Priority: {
36666
+ description: `How much a task matters, in the one vocabulary every source is normalised into.
36667
+
36668
+ Five values, most pressing first after [\`None\`](Self::None): Linear's own priority has
36669
+ exactly these, and a source whose backend has none of its own maps its representation
36670
+ onto them. \`none\` is a value rather than an absent field, because "no priority is set" is
36671
+ something a person sets — writing \`none\` clears a priority — and a reader tells it apart
36672
+ from nothing by the value alone.`,
36673
+ oneOf: [
36674
+ {
36675
+ description: "No priority is set.",
36676
+ type: "string",
36677
+ const: "none"
36678
+ },
36679
+ {
36680
+ description: "Drop everything for it.",
36681
+ type: "string",
36682
+ const: "urgent"
36683
+ },
36684
+ {
36685
+ description: "Next, before the rest.",
36686
+ type: "string",
36687
+ const: "high"
36688
+ },
36689
+ {
36690
+ description: "In its turn.",
36691
+ type: "string",
36692
+ const: "medium"
36693
+ },
36694
+ {
36695
+ description: "When there is nothing more pressing.",
36696
+ type: "string",
36697
+ const: "low"
36698
+ }
36699
+ ]
36700
+ },
36701
+ WriteFallback: {
36702
+ description: "That an expected write read its target before writing, and why.",
36703
+ type: "object",
36704
+ properties: {
36705
+ read: {
36706
+ description: "Always `true`: the write made one read.",
36707
+ type: "boolean"
36708
+ },
36709
+ reason: {
36710
+ description: "Why it could not take what it needed from the cache.",
36711
+ type: "string"
36712
+ }
36713
+ },
36714
+ required: [
36715
+ "read",
36716
+ "reason"
36717
+ ]
36718
+ },
36719
+ Spent: {
36720
+ description: `What one command spent, summed over the sources in it that meter their own requests.
36721
+
36722
+ **Source-owned.** Every figure is what a source said it sent and spent while the command
36723
+ ran, read through [\`TaskSource::metering\`](onetaskgraph_plugin_api::TaskSource::metering)
36724
+ before the command and again after it. The engine adds the differences up by name and
36725
+ interprets none of them, which is why the budget and unit names are open vocabulary.`,
36726
+ type: "object",
36727
+ properties: {
36728
+ requests: {
36729
+ description: "How many HTTP requests those sources sent for this command.",
36730
+ type: "integer",
36731
+ format: "uint64",
36732
+ minimum: 0
36733
+ },
36734
+ budgets: {
36735
+ description: "What those requests spent, one entry per budget and unit, ordered by budget name.",
36736
+ type: "array",
36737
+ items: {
36738
+ $ref: "#/$defs/BudgetSpent"
36739
+ }
36740
+ }
36741
+ },
36742
+ required: [
36743
+ "requests",
36744
+ "budgets"
36745
+ ]
36746
+ },
36747
+ BudgetSpent: {
36748
+ description: "What one command spent against one budget.",
36749
+ type: "object",
36750
+ properties: {
36751
+ budget: {
36752
+ description: "The budget, as the source names it — `graphql`, `rest`.",
36753
+ type: "string"
36754
+ },
36755
+ unit: {
36756
+ description: "What it is metered in — `points`, `requests`.",
36757
+ type: "string"
36758
+ },
36759
+ amount: {
36760
+ description: "How much was spent against it, in that unit.",
36761
+ type: "integer",
36762
+ format: "uint64",
36763
+ minimum: 0
36764
+ },
36765
+ lower_bound: {
36766
+ description: "Whether any part of `amount` was modelled by a source rather than reported by its\nbackend or counted, which makes `amount` a lower bound on what the backend charged\nrather than a measurement of it.",
36767
+ type: "boolean"
36768
+ }
36769
+ },
36770
+ required: [
36771
+ "budget",
36772
+ "unit",
36773
+ "amount",
36774
+ "lower_bound"
36775
+ ]
36776
+ },
35233
36777
  Sanitization: {
35234
36778
  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.",
35235
36779
  type: "object",
@@ -35652,6 +37196,26 @@ where the task may be written, and nothing written here can loosen that. The pro
35652
37196
  a task is filed under never tightens it: a task's visibility is its own.`,
35653
37197
  $ref: "#/$defs/Classification",
35654
37198
  default: "public"
37199
+ },
37200
+ assignees: {
37201
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
37202
+ Linear display name, the string as given in a folder or in memory — in the order the
37203
+ source holds them; empty means unassigned.
37204
+
37205
+ **Present only for a source that opted in** with \`config.assignees: true\`
37206
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
37207
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
37208
+ source that has not opted in reads, and is written, exactly as it was before the field
37209
+ existed. On a write, absent leaves the item's assignees as they are, and present
37210
+ replaces them with exactly the people it names — the engine never hands a source more
37211
+ than one.`,
37212
+ type: [
37213
+ "array",
37214
+ "null"
37215
+ ],
37216
+ items: {
37217
+ type: "string"
37218
+ }
35655
37219
  }
35656
37220
  },
35657
37221
  required: [
@@ -36985,6 +38549,26 @@ where the task may be written, and nothing written here can loosen that. The pro
36985
38549
  a task is filed under never tightens it: a task's visibility is its own.`,
36986
38550
  $ref: "#/$defs/Classification",
36987
38551
  default: "public"
38552
+ },
38553
+ assignees: {
38554
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
38555
+ Linear display name, the string as given in a folder or in memory — in the order the
38556
+ source holds them; empty means unassigned.
38557
+
38558
+ **Present only for a source that opted in** with \`config.assignees: true\`
38559
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
38560
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
38561
+ source that has not opted in reads, and is written, exactly as it was before the field
38562
+ existed. On a write, absent leaves the item's assignees as they are, and present
38563
+ replaces them with exactly the people it names — the engine never hands a source more
38564
+ than one.`,
38565
+ type: [
38566
+ "array",
38567
+ "null"
38568
+ ],
38569
+ items: {
38570
+ type: "string"
38571
+ }
36988
38572
  }
36989
38573
  },
36990
38574
  required: [
@@ -37892,6 +39476,49 @@ starts at: a forward read and the matching reverse read report the same edge.`,
37892
39476
  }
37893
39477
  }
37894
39478
  },
39479
+ TaskLink: {
39480
+ $schema: "https://json-schema.org/draft/2020-12/schema",
39481
+ title: "TaskLink",
39482
+ description: "One typed link, as one endpoint holds it under [`TaskLink::METADATA_KEY`].",
39483
+ type: "object",
39484
+ properties: {
39485
+ type: {
39486
+ description: "The link's type name — the caller's word, which no destination stores natively.",
39487
+ type: "string"
39488
+ },
39489
+ direction: {
39490
+ description: "Which end of the directed link this item is.",
39491
+ $ref: "#/$defs/LinkDirection"
39492
+ },
39493
+ other: {
39494
+ description: "The other item's qualified id, `<source>:<native-id>`.",
39495
+ type: "string"
39496
+ }
39497
+ },
39498
+ additionalProperties: false,
39499
+ required: [
39500
+ "type",
39501
+ "direction",
39502
+ "other"
39503
+ ],
39504
+ $defs: {
39505
+ LinkDirection: {
39506
+ description: "Which end of a directed link an item is.",
39507
+ oneOf: [
39508
+ {
39509
+ description: "This item is the link's `from`.",
39510
+ type: "string",
39511
+ const: "out"
39512
+ },
39513
+ {
39514
+ description: "This item is the link's `to`.",
39515
+ type: "string",
39516
+ const: "in"
39517
+ }
39518
+ ]
39519
+ }
39520
+ }
39521
+ },
37895
39522
  TaskPrioritySet: {
37896
39523
  $schema: "https://json-schema.org/draft/2020-12/schema",
37897
39524
  title: "TaskPrioritySet",
@@ -38762,6 +40389,153 @@ means.`,
38762
40389
  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
40390
  type: "string"
38764
40391
  },
40392
+ TaskRelations: {
40393
+ $schema: "https://json-schema.org/draft/2020-12/schema",
40394
+ title: "TaskRelations",
40395
+ description: "What `task relations` answers: one item per id asked, in the order asked.",
40396
+ type: "object",
40397
+ properties: {
40398
+ schema_version: {
40399
+ description: "`1`.",
40400
+ type: "integer",
40401
+ format: "uint32",
40402
+ minimum: 0
40403
+ },
40404
+ items: {
40405
+ description: "One per id.",
40406
+ type: "array",
40407
+ items: {
40408
+ $ref: "#/$defs/RelationsItem"
40409
+ }
40410
+ }
40411
+ },
40412
+ required: [
40413
+ "schema_version",
40414
+ "items"
40415
+ ],
40416
+ $defs: {
40417
+ RelationsItem: {
40418
+ description: "One task's relations.",
40419
+ type: "object",
40420
+ properties: {
40421
+ item: {
40422
+ description: "The task's qualified id.",
40423
+ $ref: "#/$defs/GlobalId"
40424
+ },
40425
+ parent: {
40426
+ description: "Its parent's qualified id, or `null`.",
40427
+ anyOf: [
40428
+ {
40429
+ $ref: "#/$defs/GlobalId"
40430
+ },
40431
+ {
40432
+ type: "null"
40433
+ }
40434
+ ]
40435
+ },
40436
+ children: {
40437
+ description: "Its children's qualified ids.",
40438
+ type: "array",
40439
+ items: {
40440
+ $ref: "#/$defs/GlobalId"
40441
+ }
40442
+ },
40443
+ children_complete: {
40444
+ description: "Whether `children` is every child.",
40445
+ type: "boolean"
40446
+ },
40447
+ links: {
40448
+ description: "Its links, as it holds them.",
40449
+ type: "array",
40450
+ items: {
40451
+ $ref: "#/$defs/ReadLink"
40452
+ }
40453
+ },
40454
+ links_complete: {
40455
+ description: "Whether `links` is every link it holds.",
40456
+ type: "boolean"
40457
+ }
40458
+ },
40459
+ required: [
40460
+ "item",
40461
+ "children",
40462
+ "children_complete",
40463
+ "links",
40464
+ "links_complete"
40465
+ ]
40466
+ },
40467
+ GlobalId: {
40468
+ description: `One item, qualified by the source it came from.
40469
+
40470
+ Rendered \`<source>:<native>\` and parsed by splitting on the **first** colon,
40471
+ so a native id may contain colons freely.`,
40472
+ type: "string"
40473
+ },
40474
+ ReadLink: {
40475
+ description: "One link as one endpoint holds it.",
40476
+ type: "object",
40477
+ properties: {
40478
+ type: {
40479
+ description: "The link's type name.",
40480
+ type: "string"
40481
+ },
40482
+ direction: {
40483
+ description: "Which end of the link this item is.",
40484
+ $ref: "#/$defs/LinkDirection"
40485
+ },
40486
+ other: {
40487
+ description: "The other item's qualified id.",
40488
+ $ref: "#/$defs/GlobalId"
40489
+ },
40490
+ other_end: {
40491
+ description: "Whether the other end holds this link too: `present` or `missing` when the other item\nis among the ids asked, and `unread` otherwise.",
40492
+ $ref: "#/$defs/OtherEnd"
40493
+ }
40494
+ },
40495
+ required: [
40496
+ "type",
40497
+ "direction",
40498
+ "other",
40499
+ "other_end"
40500
+ ]
40501
+ },
40502
+ LinkDirection: {
40503
+ description: "Which end of a directed link an item is.",
40504
+ oneOf: [
40505
+ {
40506
+ description: "This item is the link's `from`.",
40507
+ type: "string",
40508
+ const: "out"
40509
+ },
40510
+ {
40511
+ description: "This item is the link's `to`.",
40512
+ type: "string",
40513
+ const: "in"
40514
+ }
40515
+ ]
40516
+ },
40517
+ OtherEnd: {
40518
+ description: "Whether a link's other end holds it too.",
40519
+ oneOf: [
40520
+ {
40521
+ description: "The other end holds the same link.",
40522
+ type: "string",
40523
+ const: "present"
40524
+ },
40525
+ {
40526
+ description: "The other end was read and does not hold it — a whole-body rewrite there lost it.",
40527
+ type: "string",
40528
+ const: "missing"
40529
+ },
40530
+ {
40531
+ description: "The other end is not among the ids asked, so it was not read.",
40532
+ type: "string",
40533
+ const: "unread"
40534
+ }
40535
+ ]
40536
+ }
40537
+ }
40538
+ },
38765
40539
  TaskStatusSet: {
38766
40540
  $schema: "https://json-schema.org/draft/2020-12/schema",
38767
40541
  title: "TaskStatusSet",
@@ -39555,6 +41329,19 @@ moved, and no caller writes labels this way — and so is creation, which is a c
39555
41329
  items: {
39556
41330
  $ref: "#/$defs/Repository"
39557
41331
  }
41332
+ },
41333
+ assignees: {
41334
+ description: `Replaces every person the task is assigned to with exactly these — empty unassigns.
41335
+ The engine names at most one, and only to a source declaring
41336
+ [\`Capabilities::assignees\`](crate::Capabilities::assignees). A source refuses a person
41337
+ it cannot assign, naming them, rather than writing the rest without them.`,
41338
+ type: [
41339
+ "array",
41340
+ "null"
41341
+ ],
41342
+ items: {
41343
+ type: "string"
41344
+ }
39558
41345
  }
39559
41346
  },
39560
41347
  $defs: {
@@ -39973,6 +41760,26 @@ where the task may be written, and nothing written here can loosen that. The pro
39973
41760
  a task is filed under never tightens it: a task's visibility is its own.`,
39974
41761
  $ref: "#/$defs/Classification",
39975
41762
  default: "public"
41763
+ },
41764
+ assignees: {
41765
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
41766
+ Linear display name, the string as given in a folder or in memory — in the order the
41767
+ source holds them; empty means unassigned.
41768
+
41769
+ **Present only for a source that opted in** with \`config.assignees: true\`
41770
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
41771
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
41772
+ source that has not opted in reads, and is written, exactly as it was before the field
41773
+ existed. On a write, absent leaves the item's assignees as they are, and present
41774
+ replaces them with exactly the people it names — the engine never hands a source more
41775
+ than one.`,
41776
+ type: [
41777
+ "array",
41778
+ "null"
41779
+ ],
41780
+ items: {
41781
+ type: "string"
41782
+ }
39976
41783
  }
39977
41784
  },
39978
41785
  required: [
@@ -40226,6 +42033,11 @@ reach a public one.`,
40226
42033
  description: "[`TaskUpdate::repositories`].",
40227
42034
  type: "string",
40228
42035
  const: "repositories"
42036
+ },
42037
+ {
42038
+ description: "[`TaskUpdate::assignees`].",
42039
+ type: "string",
42040
+ const: "assignees"
40229
42041
  }
40230
42042
  ]
40231
42043
  }
@@ -40501,6 +42313,26 @@ where the task may be written, and nothing written here can loosen that. The pro
40501
42313
  a task is filed under never tightens it: a task's visibility is its own.`,
40502
42314
  $ref: "#/$defs/Classification",
40503
42315
  default: "public"
42316
+ },
42317
+ assignees: {
42318
+ description: `Every person the task is assigned to, as its source names a person — a GitHub login, a
42319
+ Linear display name, the string as given in a folder or in memory — in the order the
42320
+ source holds them; empty means unassigned.
42321
+
42322
+ **Present only for a source that opted in** with \`config.assignees: true\`
42323
+ ([\`Capabilities::assignees\`](crate::Capabilities::assignees) \`native\`): every other
42324
+ source leaves it absent, and it is left out of the wire when absent, so a task of a
42325
+ source that has not opted in reads, and is written, exactly as it was before the field
42326
+ existed. On a write, absent leaves the item's assignees as they are, and present
42327
+ replaces them with exactly the people it names — the engine never hands a source more
42328
+ than one.`,
42329
+ type: [
42330
+ "array",
42331
+ "null"
42332
+ ],
42333
+ items: {
42334
+ type: "string"
42335
+ }
40504
42336
  }
40505
42337
  },
40506
42338
  required: [
@@ -40754,6 +42586,11 @@ reach a public one.`,
40754
42586
  description: "[`TaskUpdate::repositories`].",
40755
42587
  type: "string",
40756
42588
  const: "repositories"
42589
+ },
42590
+ {
42591
+ description: "[`TaskUpdate::assignees`].",
42592
+ type: "string",
42593
+ const: "assignees"
40757
42594
  }
40758
42595
  ]
40759
42596
  },
@@ -41412,8 +43249,7 @@ Never sent again: doing so could apply it twice.`,
41412
43249
  const: "written"
41413
43250
  },
41414
43251
  {
41415
- description: `Its priority guard declined: the task held a priority the guard does not name, and
41416
- nothing of it was written.`,
43252
+ description: "Its guard declined: the task held a priority `when_priority` does not name, or not\nexactly the people `when_assignees` names, and nothing of it was written.",
41417
43253
  type: "string",
41418
43254
  const: "held"
41419
43255
  },
@@ -41965,6 +43801,24 @@ no insignificant whitespace, UTF-8.`,
41965
43801
  $ref: "#/$defs/Repository"
41966
43802
  },
41967
43803
  default: null
43804
+ },
43805
+ assignee: {
43806
+ description: "The one person it is assigned to, replacing every person it holds — `null` unassigns\nit, and leaving the member out leaves its assignees as they are. Only for a source that\nopted in with `config.assignees: true`.",
43807
+ type: [
43808
+ "string",
43809
+ "null"
43810
+ ],
43811
+ "x-null-unsets": true
43812
+ },
43813
+ when_assignees: {
43814
+ description: "Write only while the task is assigned to exactly these people, whatever their order —\n`[]` only while it is unassigned. Otherwise nothing of the update is written and it\nanswers `held`. Left out, it sets no guard.",
43815
+ type: [
43816
+ "array",
43817
+ "null"
43818
+ ],
43819
+ items: {
43820
+ type: "string"
43821
+ }
41968
43822
  }
41969
43823
  },
41970
43824
  additionalProperties: false,
@@ -42103,6 +43957,11 @@ from nothing by the value alone.`,
42103
43957
  description: "[`TaskUpdate::repositories`].",
42104
43958
  type: "string",
42105
43959
  const: "repositories"
43960
+ },
43961
+ {
43962
+ description: "[`TaskUpdate::assignees`].",
43963
+ type: "string",
43964
+ const: "assignees"
42106
43965
  }
42107
43966
  ]
42108
43967
  },
@@ -43025,6 +44884,7 @@ var commandResponseRoots = {
43025
44884
  "task status reconcile": "StatusesReconciled",
43026
44885
  "task status complete": "IssuesCompleted",
43027
44886
  "task priority set": "TaskPrioritySet",
44887
+ "task assignee set": "TaskAssigneeSet",
43028
44888
  "task content set": "TaskContentSet",
43029
44889
  "task metadata set": "MetadataSet",
43030
44890
  "task attest": "Attested",
@@ -43033,6 +44893,10 @@ var commandResponseRoots = {
43033
44893
  "task find": "FoundTasks",
43034
44894
  "task update-many": "TasksUpdated",
43035
44895
  "task comment add-many": "CommentsAdded",
44896
+ "task parent set-many": "ParentsSet",
44897
+ "task link add-many": "LinksWritten",
44898
+ "task link remove-many": "LinksWritten",
44899
+ "task relations": "TaskRelations",
43036
44900
  "project list": "QueryResponseOfQualifiedProject",
43037
44901
  "project show": "QueryResponseOfQualifiedProject",
43038
44902
  "project deps": "QueryResponseOfQualifiedEdge",
@@ -43069,7 +44933,7 @@ var commandAlternateRoots = {
43069
44933
  "project attestation check": ["ProjectAttestationCheck"],
43070
44934
  "project create": ["PlannedProject"]
43071
44935
  };
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"));
44936
+ 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 !== "task assignee 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
44937
  function bodyArguments(options) {
43074
44938
  return "bodyFile" in options ? { args: ["--body-file", options.bodyFile] } : { args: [], input: options.body };
43075
44939
  }
@@ -43517,6 +45381,9 @@ function taskCopyFlags(options) {
43517
45381
  for (const priority of stringList("taskCopy", "whenDestinationPriority", options.whenDestinationPriority)) {
43518
45382
  conditions.push("--when-destination-priority", priority);
43519
45383
  }
45384
+ for (const person of stringList("taskCopy", "whenDestinationAssignees", options.whenDestinationAssignees)) {
45385
+ conditions.push("--when-destination-assignees", person);
45386
+ }
43520
45387
  return [
43521
45388
  ...copyFlags("taskCopy", options),
43522
45389
  ...conditions,
@@ -43789,6 +45656,14 @@ class OnetaskgraphClient {
43789
45656
  ...expectFlags("taskMetadataSet", options)
43790
45657
  ], undefined, options.sanitizeDryRun === true);
43791
45658
  }
45659
+ taskAssigneeSet(id, person, options = {}) {
45660
+ return this.run("task assignee set", [
45661
+ id,
45662
+ ...person === undefined ? [] : [stringOption("taskAssigneeSet", "person", person)],
45663
+ ...options.ifVersion === undefined ? [] : ["--if-version", stringOption("taskAssigneeSet", "ifVersion", options.ifVersion)],
45664
+ ...writePolicyFlags("taskAssigneeSet", options)
45665
+ ], undefined, options.sanitizeDryRun === true);
45666
+ }
43792
45667
  taskUpdate(id, options) {
43793
45668
  return this.run("task update", [id, ...taskUpdateFlags(options)], undefined, options.sanitizeDryRun === true);
43794
45669
  }
@@ -43950,6 +45825,9 @@ class OnetaskgraphClient {
43950
45825
  for (const id of stringList("taskCreate", "delivers", options.delivers)) {
43951
45826
  args.push("--delivers", id);
43952
45827
  }
45828
+ if (options.assignee !== undefined) {
45829
+ args.push("--assignee", stringOption("taskCreate", "assignee", options.assignee));
45830
+ }
43953
45831
  args.push(...assetFlags("taskCreate", options));
43954
45832
  return this.run("task create", [source, ...args], input, options.sanitizeDryRun === true);
43955
45833
  }
@@ -43972,6 +45850,21 @@ class OnetaskgraphClient {
43972
45850
  taskCommentAddMany(source, batch, options = {}) {
43973
45851
  return this.run("task comment add-many", [source, "--input", "-", ...writePolicyFlags("taskCommentAddMany", options)], jsonDocument(batch, "taskCommentAddMany", "batch"));
43974
45852
  }
45853
+ taskParentSetMany(batch) {
45854
+ return this.run("task parent set-many", ["--input", "-"], jsonDocument(batch, "taskParentSetMany", "batch"));
45855
+ }
45856
+ taskLinkAddMany(batch) {
45857
+ return this.run("task link add-many", ["--input", "-"], jsonDocument(batch, "taskLinkAddMany", "batch"));
45858
+ }
45859
+ taskLinkRemoveMany(batch) {
45860
+ return this.run("task link remove-many", ["--input", "-"], jsonDocument(batch, "taskLinkRemoveMany", "batch"));
45861
+ }
45862
+ taskRelations(ids, options = {}) {
45863
+ return this.run("task relations", [
45864
+ ...ids.map((id) => stringOption("taskRelations", "ids", id)),
45865
+ ...flagOption("taskRelations", "complete", options.complete) ? ["--complete"] : []
45866
+ ]);
45867
+ }
43975
45868
  taskProjectHuman(input) {
43976
45869
  return this.run("task project-human", [
43977
45870
  "--input",
@@ -44075,7 +45968,7 @@ function assertCompleteCommandSurface() {
44075
45968
  }
44076
45969
 
44077
45970
  // src/index.ts
44078
- var VERSION = "0.14.12";
45971
+ var VERSION = "0.14.14";
44079
45972
  export {
44080
45973
  taskUpdateOptionFlags,
44081
45974
  taskUpdateFlags,