@onetaskgraph/sdk 0.14.9 → 0.14.10

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.
@@ -288,6 +288,24 @@ export declare const runtimeSchemas: {
288
288
  };
289
289
  };
290
290
  };
291
+ readonly AuthorKind: {
292
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
293
+ readonly title: "AuthorKind";
294
+ readonly description: "Who wrote a comment, as the source that holds it can tell: a person, a bot — an\nintegration, an app, an automation acting on its own — or neither, when the source cannot\nsay. Decided by the plugin, through\n[`TaskSource::comment_author_kind`](crate::TaskSource::comment_author_kind).";
295
+ readonly oneOf: readonly [{
296
+ readonly description: "A person.";
297
+ readonly type: "string";
298
+ readonly const: "person";
299
+ }, {
300
+ readonly description: "A bot, an integration or an app.";
301
+ readonly type: "string";
302
+ readonly const: "bot";
303
+ }, {
304
+ readonly description: "The source cannot say — no author at all, a deleted account.";
305
+ readonly type: "string";
306
+ readonly const: "unknown";
307
+ }];
308
+ };
291
309
  readonly CacheCleared: {
292
310
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
293
311
  readonly title: "CacheCleared";
@@ -596,6 +614,79 @@ export declare const runtimeSchemas: {
596
614
  };
597
615
  };
598
616
  };
617
+ readonly CommentActivity: {
618
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
619
+ readonly title: "CommentActivity";
620
+ readonly description: "One comment of a [`CommentsSince`] answer.";
621
+ readonly type: "object";
622
+ readonly properties: {
623
+ readonly item: {
624
+ readonly description: "The task it is on, qualified: `<source>:<native id>`.";
625
+ readonly $ref: "#/$defs/GlobalId";
626
+ };
627
+ readonly id: {
628
+ readonly description: "Its own id, exactly as its source issued it.";
629
+ readonly $ref: "#/$defs/NativeId";
630
+ };
631
+ readonly url: {
632
+ readonly description: "Where a person can open it, or `null`.";
633
+ readonly type: readonly ["string", "null"];
634
+ };
635
+ readonly author: {
636
+ readonly description: "Who wrote it, in the source's own spelling, or `null`.";
637
+ readonly type: readonly ["string", "null"];
638
+ };
639
+ readonly author_kind: {
640
+ readonly description: "Whether that is a person, a bot, or neither the source can tell.";
641
+ readonly $ref: "#/$defs/AuthorKind";
642
+ };
643
+ readonly created_at: {
644
+ readonly description: "When it was written.";
645
+ readonly type: "string";
646
+ readonly format: "date-time";
647
+ };
648
+ readonly updated_at: {
649
+ readonly description: "When it last changed — its creation, for one never edited.";
650
+ readonly type: "string";
651
+ readonly format: "date-time";
652
+ };
653
+ readonly version: {
654
+ readonly description: "The comment's version: when it last changed, at the backend's own precision. Two reads\nanswering one comment unchanged answer the same version.";
655
+ readonly type: "string";
656
+ };
657
+ readonly body: {
658
+ readonly description: "What it says, byte for byte.";
659
+ readonly type: "string";
660
+ };
661
+ };
662
+ readonly required: readonly ["item", "id", "author_kind", "created_at", "updated_at", "version", "body"];
663
+ readonly $defs: {
664
+ readonly GlobalId: {
665
+ readonly description: "One item, qualified by the source it came from.\n\nRendered `<source>:<native>` and parsed by splitting on the **first** colon,\nso a native id may contain colons freely.";
666
+ readonly type: "string";
667
+ };
668
+ readonly NativeId: {
669
+ readonly description: "A source's own opaque identifier for one item.\n\nDeliberately unvalidated: a native id is whatever the upstream system says it\nis, colons included. The engine parses a qualified id by splitting on the\n*first* colon precisely so this stays true.";
670
+ readonly type: "string";
671
+ };
672
+ readonly AuthorKind: {
673
+ readonly description: "Who wrote a comment, as the source that holds it can tell: a person, a bot — an\nintegration, an app, an automation acting on its own — or neither, when the source cannot\nsay. Decided by the plugin, through\n[`TaskSource::comment_author_kind`](crate::TaskSource::comment_author_kind).";
674
+ readonly oneOf: readonly [{
675
+ readonly description: "A person.";
676
+ readonly type: "string";
677
+ readonly const: "person";
678
+ }, {
679
+ readonly description: "A bot, an integration or an app.";
680
+ readonly type: "string";
681
+ readonly const: "bot";
682
+ }, {
683
+ readonly description: "The source cannot say — no author at all, a deleted account.";
684
+ readonly type: "string";
685
+ readonly const: "unknown";
686
+ }];
687
+ };
688
+ };
689
+ };
599
690
  readonly CommentList: {
600
691
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
601
692
  readonly title: "CommentList";
@@ -1175,6 +1266,104 @@ export declare const runtimeSchemas: {
1175
1266
  };
1176
1267
  };
1177
1268
  };
1269
+ readonly CommentsSince: {
1270
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1271
+ readonly title: "CommentsSince";
1272
+ readonly description: "What `task comments <SOURCE> --since` answers with.";
1273
+ readonly type: "object";
1274
+ readonly properties: {
1275
+ readonly schema_version: {
1276
+ readonly description: "The version of this document's shape: `1`.";
1277
+ readonly type: "integer";
1278
+ readonly format: "uint32";
1279
+ readonly minimum: 0;
1280
+ };
1281
+ readonly watermark: {
1282
+ readonly description: "The instant a later read may start from: the earlier of the source's own time and this\nhost's at the read's start, set back by the source's consistency window. A later read\nfrom it may return a comment again, with the same `id` and `version`.";
1283
+ readonly type: "string";
1284
+ readonly format: "date-time";
1285
+ };
1286
+ readonly comments: {
1287
+ readonly description: "Every comment made or edited at or after the instant on a matching task, oldest first by\nwhen it last changed.";
1288
+ readonly type: "array";
1289
+ readonly items: {
1290
+ readonly $ref: "#/$defs/CommentActivity";
1291
+ };
1292
+ };
1293
+ };
1294
+ readonly required: readonly ["schema_version", "watermark", "comments"];
1295
+ readonly $defs: {
1296
+ readonly CommentActivity: {
1297
+ readonly description: "One comment of a [`CommentsSince`] answer.";
1298
+ readonly type: "object";
1299
+ readonly properties: {
1300
+ readonly item: {
1301
+ readonly description: "The task it is on, qualified: `<source>:<native id>`.";
1302
+ readonly $ref: "#/$defs/GlobalId";
1303
+ };
1304
+ readonly id: {
1305
+ readonly description: "Its own id, exactly as its source issued it.";
1306
+ readonly $ref: "#/$defs/NativeId";
1307
+ };
1308
+ readonly url: {
1309
+ readonly description: "Where a person can open it, or `null`.";
1310
+ readonly type: readonly ["string", "null"];
1311
+ };
1312
+ readonly author: {
1313
+ readonly description: "Who wrote it, in the source's own spelling, or `null`.";
1314
+ readonly type: readonly ["string", "null"];
1315
+ };
1316
+ readonly author_kind: {
1317
+ readonly description: "Whether that is a person, a bot, or neither the source can tell.";
1318
+ readonly $ref: "#/$defs/AuthorKind";
1319
+ };
1320
+ readonly created_at: {
1321
+ readonly description: "When it was written.";
1322
+ readonly type: "string";
1323
+ readonly format: "date-time";
1324
+ };
1325
+ readonly updated_at: {
1326
+ readonly description: "When it last changed — its creation, for one never edited.";
1327
+ readonly type: "string";
1328
+ readonly format: "date-time";
1329
+ };
1330
+ readonly version: {
1331
+ readonly description: "The comment's version: when it last changed, at the backend's own precision. Two reads\nanswering one comment unchanged answer the same version.";
1332
+ readonly type: "string";
1333
+ };
1334
+ readonly body: {
1335
+ readonly description: "What it says, byte for byte.";
1336
+ readonly type: "string";
1337
+ };
1338
+ };
1339
+ readonly required: readonly ["item", "id", "author_kind", "created_at", "updated_at", "version", "body"];
1340
+ };
1341
+ readonly GlobalId: {
1342
+ readonly description: "One item, qualified by the source it came from.\n\nRendered `<source>:<native>` and parsed by splitting on the **first** colon,\nso a native id may contain colons freely.";
1343
+ readonly type: "string";
1344
+ };
1345
+ readonly NativeId: {
1346
+ readonly description: "A source's own opaque identifier for one item.\n\nDeliberately unvalidated: a native id is whatever the upstream system says it\nis, colons included. The engine parses a qualified id by splitting on the\n*first* colon precisely so this stays true.";
1347
+ readonly type: "string";
1348
+ };
1349
+ readonly AuthorKind: {
1350
+ readonly description: "Who wrote a comment, as the source that holds it can tell: a person, a bot — an\nintegration, an app, an automation acting on its own — or neither, when the source cannot\nsay. Decided by the plugin, through\n[`TaskSource::comment_author_kind`](crate::TaskSource::comment_author_kind).";
1351
+ readonly oneOf: readonly [{
1352
+ readonly description: "A person.";
1353
+ readonly type: "string";
1354
+ readonly const: "person";
1355
+ }, {
1356
+ readonly description: "A bot, an integration or an app.";
1357
+ readonly type: "string";
1358
+ readonly const: "bot";
1359
+ }, {
1360
+ readonly description: "The source cannot say — no author at all, a deleted account.";
1361
+ readonly type: "string";
1362
+ readonly const: "unknown";
1363
+ }];
1364
+ };
1365
+ };
1366
+ };
1178
1367
  readonly CompleteAction: {
1179
1368
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1180
1369
  readonly title: "CompleteAction";
@@ -8041,6 +8230,141 @@ export declare const runtimeSchemas: {
8041
8230
  };
8042
8231
  };
8043
8232
  };
8233
+ readonly Located: {
8234
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
8235
+ readonly title: "Located";
8236
+ readonly description: "Where one task would land, what it would update there, and where a create would file it.";
8237
+ readonly type: "object";
8238
+ readonly properties: {
8239
+ readonly source: {
8240
+ readonly description: "The qualified id the task was read from.";
8241
+ readonly $ref: "#/$defs/GlobalId";
8242
+ };
8243
+ readonly classification: {
8244
+ readonly description: "The class it was placed as, as a copy classifies it: its own declaration and, while the\nstore's boundary is active, its repositories' visibility. A source declared private does\nnot by itself make it private; it withholds the task's provenance instead.";
8245
+ readonly $ref: "#/$defs/Classification";
8246
+ };
8247
+ readonly destination: {
8248
+ readonly description: "The source the item lands in: the routed one, or the source itself.";
8249
+ readonly $ref: "#/$defs/SourceName";
8250
+ };
8251
+ readonly route: {
8252
+ readonly description: "The index of the route entry that matched, or `None` when none did and the item\nstays in the source itself.";
8253
+ readonly type: readonly ["integer", "null"];
8254
+ readonly format: "uint32";
8255
+ readonly minimum: 0;
8256
+ };
8257
+ readonly counterpart: {
8258
+ readonly description: "The item a copy would update, and the rule that found it — `null` when a copy would\ncreate one, and absent under `--no-counterpart`, which looks for none.";
8259
+ readonly anyOf: readonly [{
8260
+ readonly $ref: "#/$defs/LocatedCounterpart";
8261
+ }, {
8262
+ readonly type: "null";
8263
+ }];
8264
+ };
8265
+ readonly carriers: {
8266
+ readonly description: "Every destination item the origin query found carrying this task's origin, in listing\norder — `[]` when the query did not run, and absent under `--no-counterpart`. When it ran,\n`counterpart` is the first.";
8267
+ readonly type: readonly ["array", "null"];
8268
+ readonly items: {
8269
+ readonly $ref: "#/$defs/GlobalId";
8270
+ };
8271
+ };
8272
+ readonly creates_in: {
8273
+ readonly description: "The repository a create there would file the task's issue in, or `null` where the\ndestination files no issue in a repository. Where a create would file, whether or not a\ncounterpart exists: an existing issue is never moved.";
8274
+ readonly anyOf: readonly [{
8275
+ readonly $ref: "#/$defs/CreatesIn";
8276
+ }, {
8277
+ readonly type: "null";
8278
+ }];
8279
+ };
8280
+ };
8281
+ readonly required: readonly ["source", "classification", "destination"];
8282
+ readonly $defs: {
8283
+ readonly GlobalId: {
8284
+ readonly description: "One item, qualified by the source it came from.\n\nRendered `<source>:<native>` and parsed by splitting on the **first** colon,\nso a native id may contain colons freely.";
8285
+ readonly type: "string";
8286
+ };
8287
+ readonly Classification: {
8288
+ readonly description: "Who may read an item: anybody, or only those who may read where it is kept.\n\nTwo values, ordered so the stricter is the greater: [`strictest`](Self::strictest) of\nany two is the one an item they both describe carries. Nothing combines them any other\nway, which is what makes an explicit `public` unable to loosen a private repository, or\na document's private project — a classification only ever tightens. A task's project\nnever tightens the task.\n\nIt is recorded on the item and travels with it. A source whose backend has no notion of\nits own records it under [`Self::METADATA_KEY`], exactly as it records\n[`Repository::METADATA_KEY`], and only while it is `private`: an item without it is\npublic, so every item written before this existed reads as it did.";
8289
+ readonly oneOf: readonly [{
8290
+ readonly description: "Anybody who may read the destination may read it.";
8291
+ readonly type: "string";
8292
+ readonly const: "public";
8293
+ }, {
8294
+ readonly description: "It may be written only to a destination verified private, and nothing of it may\nreach a public one.";
8295
+ readonly type: "string";
8296
+ readonly const: "private";
8297
+ }];
8298
+ };
8299
+ readonly SourceName: {
8300
+ readonly description: "The name a configuration document gives one configured source.";
8301
+ readonly type: "string";
8302
+ readonly pattern: "^[a-z0-9][a-z0-9-]*$";
8303
+ };
8304
+ readonly LocatedCounterpart: {
8305
+ readonly description: "The destination item a copy would update.";
8306
+ readonly type: "object";
8307
+ readonly properties: {
8308
+ readonly id: {
8309
+ readonly description: "Its qualified id at the destination the task is placed in.";
8310
+ readonly $ref: "#/$defs/GlobalId";
8311
+ };
8312
+ readonly via: {
8313
+ readonly description: "Which rule found it, as a copy's report spells it.";
8314
+ readonly $ref: "#/$defs/CopyVia";
8315
+ };
8316
+ };
8317
+ readonly required: readonly ["id", "via"];
8318
+ };
8319
+ readonly CopyVia: {
8320
+ readonly description: "Which rule found the destination counterpart an item was updated at, or found already\nreading as it does.\n\nTried in this order, and the first that answers is the one reported: the explicit target\ntask, the link the item records, its own origin, a search of the destination for an item\nrecording it as its origin, and the caller's `--match-by`. When none answers, the item is created and says\nso as [`NoCounterpart`] instead.";
8321
+ readonly oneOf: readonly [{
8322
+ readonly description: "The destination task explicitly named by the caller and verified by origin.";
8323
+ readonly type: "string";
8324
+ readonly const: "target-task";
8325
+ }, {
8326
+ readonly description: "The item's `onetaskgraph.copies` entry for the destination named an item whose own\norigin names this one back. Found by one read by id, and no scan.";
8327
+ readonly type: "string";
8328
+ readonly const: "link";
8329
+ }, {
8330
+ readonly description: "The item's own `onetaskgraph.origin` named the destination item: a copy-back.";
8331
+ readonly type: "string";
8332
+ readonly const: "origin";
8333
+ }, {
8334
+ readonly description: "A search of the destination for an item recording this one as its origin.";
8335
+ readonly type: "string";
8336
+ readonly const: "scan";
8337
+ }, {
8338
+ readonly description: "A search of the destination by the caller's `--match-by`.";
8339
+ readonly type: "string";
8340
+ readonly const: "match";
8341
+ }, {
8342
+ readonly description: "The item the destination holds under the key of a create an earlier attempt of this\ncopy recorded its intent for, at `onetaskgraph.creating`: that attempt's create,\nfinished rather than made twice.";
8343
+ readonly type: "string";
8344
+ readonly const: "intent";
8345
+ }];
8346
+ };
8347
+ readonly CreatesIn: {
8348
+ readonly description: "Where a create would file a task's issue.";
8349
+ readonly type: "object";
8350
+ readonly properties: {
8351
+ readonly repository: {
8352
+ readonly description: "The repository, as a normalized origin `host/owner/name`.";
8353
+ readonly $ref: "#/$defs/Repository";
8354
+ };
8355
+ readonly refused: {
8356
+ readonly description: "Why the destination's own policy on where it creates — a GitHub Projects source's\n`creation_owners` — would refuse a create there, as the copy's refusal says it; absent\nwhen it would not. The locate itself never fails for it.";
8357
+ readonly type: readonly ["string", "null"];
8358
+ };
8359
+ };
8360
+ readonly required: readonly ["repository"];
8361
+ };
8362
+ readonly Repository: {
8363
+ readonly description: "A repository identified by its normalized origin, without a URL scheme or `.git` suffix.";
8364
+ readonly type: "string";
8365
+ };
8366
+ };
8367
+ };
8044
8368
  readonly Location: {
8045
8369
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
8046
8370
  readonly title: "Location";
@@ -18755,6 +19079,13 @@ export declare const runtimeSchemas: {
18755
19079
  readonly type: "null";
18756
19080
  }];
18757
19081
  };
19082
+ readonly depends_on: {
19083
+ readonly description: "The task's forward dependency edges, exactly as `task deps` answers them — present only\nwhen the read asked for them (`task show --with-deps`), and absent for a task that was not\nfound, or whose edges could not be read, the failure then in the response's `errors`.";
19084
+ readonly type: readonly ["array", "null"];
19085
+ readonly items: {
19086
+ readonly $ref: "#/$defs/QualifiedEdge";
19087
+ };
19088
+ };
18758
19089
  readonly sanitization: {
18759
19090
  readonly anyOf: readonly [{
18760
19091
  readonly $ref: "#/$defs/Sanitization";
@@ -19467,6 +19798,64 @@ export declare const runtimeSchemas: {
19467
19798
  readonly const: "remote";
19468
19799
  }];
19469
19800
  };
19801
+ readonly QualifiedEdge: {
19802
+ readonly description: "One dependency edge with both ends qualified.\n\nAn end may belong to another source. The near plugin owns that qualified far id and the\nengine reports it without resolving or fetching the far source, so it holds no index.";
19803
+ readonly type: "object";
19804
+ readonly properties: {
19805
+ readonly from: {
19806
+ readonly description: "The item the edge starts at, and the one that **depends on** the other.\n\nThe direction a caller asked in says which end they named, not which end the edge\nstarts at: a forward read and the matching reverse read report the same edge.";
19807
+ readonly $ref: "#/$defs/QualifiedEndpoint";
19808
+ };
19809
+ readonly to: {
19810
+ readonly description: "The item the edge points at, and the one that must finish first.";
19811
+ readonly $ref: "#/$defs/QualifiedEndpoint";
19812
+ };
19813
+ readonly kind: {
19814
+ readonly description: "What the edge means.";
19815
+ readonly $ref: "#/$defs/DependencyKind";
19816
+ };
19817
+ };
19818
+ readonly required: readonly ["from", "to", "kind"];
19819
+ };
19820
+ readonly QualifiedEndpoint: {
19821
+ readonly description: "One typed, qualified endpoint in an engine dependency response.";
19822
+ readonly type: "object";
19823
+ readonly properties: {
19824
+ readonly id: {
19825
+ readonly description: "`<source>:<native>`, preserved when a plugin reports another source.";
19826
+ readonly $ref: "#/$defs/GlobalId";
19827
+ };
19828
+ readonly kind: {
19829
+ readonly description: "Whether this endpoint names a task or project.";
19830
+ readonly $ref: "#/$defs/ItemKind";
19831
+ };
19832
+ };
19833
+ readonly required: readonly ["id", "kind"];
19834
+ };
19835
+ readonly ItemKind: {
19836
+ readonly description: "The kind of work item named by a dependency endpoint.";
19837
+ readonly oneOf: readonly [{
19838
+ readonly description: "A task.";
19839
+ readonly type: "string";
19840
+ readonly const: "task";
19841
+ }, {
19842
+ readonly description: "A project.";
19843
+ readonly type: "string";
19844
+ readonly const: "project";
19845
+ }];
19846
+ };
19847
+ readonly DependencyKind: {
19848
+ readonly description: "What a [`DependencyEdge`] means.\n\nBoth variants are read in the one direction [`DependencyEdge::from`] fixes: `from`\ndepends on `to`. This enum said the opposite of that until the orientation was settled,\nwhich is why it is spelled out twice rather than once.";
19849
+ readonly oneOf: readonly [{
19850
+ readonly description: "`from` depends on `to`, and `to` must finish before `from` can.";
19851
+ readonly type: "string";
19852
+ readonly const: "blocks";
19853
+ }, {
19854
+ readonly description: "`from` and `to` are linked without an ordering.";
19855
+ readonly type: "string";
19856
+ readonly const: "related";
19857
+ }];
19858
+ };
19470
19859
  readonly Sanitization: {
19471
19860
  readonly description: "What the screened writes of one command replaced, and what sanitise-on-refusal changed:\nthe `sanitization` member a write's answer carries when it is not empty.";
19472
19861
  readonly type: "object";
@@ -19638,6 +20027,13 @@ export declare const runtimeSchemas: {
19638
20027
  readonly type: "null";
19639
20028
  }];
19640
20029
  };
20030
+ readonly depends_on: {
20031
+ readonly description: "The task's forward dependency edges, exactly as `task deps` answers them — present only\nwhen the read asked for them (`task show --with-deps`), and absent for a task that was not\nfound, or whose edges could not be read, the failure then in the response's `errors`.";
20032
+ readonly type: readonly ["array", "null"];
20033
+ readonly items: {
20034
+ readonly $ref: "#/$defs/QualifiedEdge";
20035
+ };
20036
+ };
19641
20037
  };
19642
20038
  readonly required: readonly ["items", "plan", "errors"];
19643
20039
  };
@@ -20343,6 +20739,64 @@ export declare const runtimeSchemas: {
20343
20739
  readonly const: "remote";
20344
20740
  }];
20345
20741
  };
20742
+ readonly QualifiedEdge: {
20743
+ readonly description: "One dependency edge with both ends qualified.\n\nAn end may belong to another source. The near plugin owns that qualified far id and the\nengine reports it without resolving or fetching the far source, so it holds no index.";
20744
+ readonly type: "object";
20745
+ readonly properties: {
20746
+ readonly from: {
20747
+ readonly description: "The item the edge starts at, and the one that **depends on** the other.\n\nThe direction a caller asked in says which end they named, not which end the edge\nstarts at: a forward read and the matching reverse read report the same edge.";
20748
+ readonly $ref: "#/$defs/QualifiedEndpoint";
20749
+ };
20750
+ readonly to: {
20751
+ readonly description: "The item the edge points at, and the one that must finish first.";
20752
+ readonly $ref: "#/$defs/QualifiedEndpoint";
20753
+ };
20754
+ readonly kind: {
20755
+ readonly description: "What the edge means.";
20756
+ readonly $ref: "#/$defs/DependencyKind";
20757
+ };
20758
+ };
20759
+ readonly required: readonly ["from", "to", "kind"];
20760
+ };
20761
+ readonly QualifiedEndpoint: {
20762
+ readonly description: "One typed, qualified endpoint in an engine dependency response.";
20763
+ readonly type: "object";
20764
+ readonly properties: {
20765
+ readonly id: {
20766
+ readonly description: "`<source>:<native>`, preserved when a plugin reports another source.";
20767
+ readonly $ref: "#/$defs/GlobalId";
20768
+ };
20769
+ readonly kind: {
20770
+ readonly description: "Whether this endpoint names a task or project.";
20771
+ readonly $ref: "#/$defs/ItemKind";
20772
+ };
20773
+ };
20774
+ readonly required: readonly ["id", "kind"];
20775
+ };
20776
+ readonly ItemKind: {
20777
+ readonly description: "The kind of work item named by a dependency endpoint.";
20778
+ readonly oneOf: readonly [{
20779
+ readonly description: "A task.";
20780
+ readonly type: "string";
20781
+ readonly const: "task";
20782
+ }, {
20783
+ readonly description: "A project.";
20784
+ readonly type: "string";
20785
+ readonly const: "project";
20786
+ }];
20787
+ };
20788
+ readonly DependencyKind: {
20789
+ readonly description: "What a [`DependencyEdge`] means.\n\nBoth variants are read in the one direction [`DependencyEdge::from`] fixes: `from`\ndepends on `to`. This enum said the opposite of that until the orientation was settled,\nwhich is why it is spelled out twice rather than once.";
20790
+ readonly oneOf: readonly [{
20791
+ readonly description: "`from` depends on `to`, and `to` must finish before `from` can.";
20792
+ readonly type: "string";
20793
+ readonly const: "blocks";
20794
+ }, {
20795
+ readonly description: "`from` and `to` are linked without an ordering.";
20796
+ readonly type: "string";
20797
+ readonly const: "related";
20798
+ }];
20799
+ };
20346
20800
  };
20347
20801
  };
20348
20802
  readonly TaskPrioritySet: {
@@ -20383,6 +20837,24 @@ export declare const runtimeSchemas: {
20383
20837
  readonly type: "null";
20384
20838
  }];
20385
20839
  };
20840
+ readonly outcome: {
20841
+ readonly description: "`written` when the task held a priority the guard names, and `held` when it did not —\nabsent for a write made without the guard.";
20842
+ readonly anyOf: readonly [{
20843
+ readonly $ref: "#/$defs/GuardOutcome";
20844
+ }, {
20845
+ readonly type: "null";
20846
+ }];
20847
+ readonly default: null;
20848
+ };
20849
+ readonly priority_condition: {
20850
+ readonly description: "What the guard found the task's priority at before the write, and whether that is one it\nnames — the shape `task copy --when-destination-priority` reports — absent for a write\nmade without the guard.";
20851
+ readonly anyOf: readonly [{
20852
+ readonly $ref: "#/$defs/PriorityCondition";
20853
+ }, {
20854
+ readonly type: "null";
20855
+ }];
20856
+ readonly default: null;
20857
+ };
20386
20858
  readonly sanitization: {
20387
20859
  readonly anyOf: readonly [{
20388
20860
  readonly $ref: "#/$defs/Sanitization";
@@ -20627,6 +21099,33 @@ export declare const runtimeSchemas: {
20627
21099
  };
20628
21100
  readonly required: readonly ["budget", "unit", "amount", "lower_bound"];
20629
21101
  };
21102
+ readonly GuardOutcome: {
21103
+ readonly description: "What a write guarded by a condition on the item's own value came to.";
21104
+ readonly oneOf: readonly [{
21105
+ readonly description: "The item held a value the guard names, and the write was made.";
21106
+ readonly type: "string";
21107
+ readonly const: "written";
21108
+ }, {
21109
+ readonly description: "The item held a value the guard does not name, and nothing was written.";
21110
+ readonly type: "string";
21111
+ readonly const: "held";
21112
+ }];
21113
+ };
21114
+ readonly PriorityCondition: {
21115
+ readonly description: "What a guarded copy found a counterpart's priority at, and whether that met the condition.";
21116
+ readonly type: "object";
21117
+ readonly properties: {
21118
+ readonly held: {
21119
+ readonly description: "The counterpart's priority, as the copy's own pre-write read held it.";
21120
+ readonly $ref: "#/$defs/Priority";
21121
+ };
21122
+ readonly met: {
21123
+ readonly description: "Whether that priority is one the condition names.";
21124
+ readonly type: "boolean";
21125
+ };
21126
+ };
21127
+ readonly required: readonly ["held", "met"];
21128
+ };
20630
21129
  readonly Sanitization: {
20631
21130
  readonly description: "What the screened writes of one command replaced, and what sanitise-on-refusal changed:\nthe `sanitization` member a write's answer carries when it is not empty.";
20632
21131
  readonly type: "object";
@@ -21492,7 +21991,7 @@ export declare const runtimeSchemas: {
21492
21991
  readonly TaskUpdate: {
21493
21992
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
21494
21993
  readonly title: "TaskUpdate";
21495
- readonly description: "A targeted update of one existing task. A member left `None` (or empty) leaves that field\nexactly as the source holds it.\n\nLabels, repositories and project membership are deliberately outside it — an existing\nitem is never moved, and no caller writes labels this way — and so is creation, which is a\ncopy's.";
21994
+ readonly description: "A targeted update of one existing task. A member left `None` (or empty) leaves that field\nexactly as the source holds it.\n\nLabels and project membership are deliberately outside it — an existing item is never\nmoved, and no caller writes labels this way — and so is creation, which is a copy's. Its\n`repositories` list is a field of the item like its title, and is replaced whole.";
21496
21995
  readonly type: "object";
21497
21996
  readonly properties: {
21498
21997
  readonly title: {
@@ -21548,6 +22047,13 @@ export declare const runtimeSchemas: {
21548
22047
  readonly $ref: "#/$defs/DependencyEdge";
21549
22048
  };
21550
22049
  };
22050
+ readonly repositories: {
22051
+ readonly description: "Replaces the task's [`Task::repositories`] whole; an empty list clears it. Where the\nitem's issue lives is never moved by it: it is the list the item names, as a read\nreports it.";
22052
+ readonly type: readonly ["array", "null"];
22053
+ readonly items: {
22054
+ readonly $ref: "#/$defs/Repository";
22055
+ };
22056
+ };
21551
22057
  };
21552
22058
  readonly $defs: {
21553
22059
  readonly Status: {
@@ -21703,6 +22209,10 @@ export declare const runtimeSchemas: {
21703
22209
  readonly const: "related";
21704
22210
  }];
21705
22211
  };
22212
+ readonly Repository: {
22213
+ readonly description: "A repository identified by its normalized origin, without a URL scheme or `.git` suffix.";
22214
+ readonly type: "string";
22215
+ };
21706
22216
  };
21707
22217
  };
21708
22218
  readonly TaskUpdateOutcome: {
@@ -22015,6 +22525,10 @@ export declare const runtimeSchemas: {
22015
22525
  readonly description: "[`TaskUpdate::depends_on`].";
22016
22526
  readonly type: "string";
22017
22527
  readonly const: "depends-on";
22528
+ }, {
22529
+ readonly description: "[`TaskUpdate::repositories`].";
22530
+ readonly type: "string";
22531
+ readonly const: "repositories";
22018
22532
  }];
22019
22533
  };
22020
22534
  };
@@ -22376,6 +22890,10 @@ export declare const runtimeSchemas: {
22376
22890
  readonly description: "[`TaskUpdate::depends_on`].";
22377
22891
  readonly type: "string";
22378
22892
  readonly const: "depends-on";
22893
+ }, {
22894
+ readonly description: "[`TaskUpdate::repositories`].";
22895
+ readonly type: "string";
22896
+ readonly const: "repositories";
22379
22897
  }];
22380
22898
  };
22381
22899
  readonly Delivered: {
@@ -23046,6 +23564,10 @@ export declare const runtimeSchemas: {
23046
23564
  readonly description: "[`TaskUpdate::depends_on`].";
23047
23565
  readonly type: "string";
23048
23566
  readonly const: "depends-on";
23567
+ }, {
23568
+ readonly description: "[`TaskUpdate::repositories`].";
23569
+ readonly type: "string";
23570
+ readonly const: "repositories";
23049
23571
  }];
23050
23572
  };
23051
23573
  readonly VariableType: {
package/dist/index.d.ts CHANGED
@@ -6,6 +6,6 @@
6
6
  * implementation of the query semantics across the CLI and both SDKs.
7
7
  */
8
8
  /** The version this package publishes. `package.json` must agree; see the tests. */
9
- export declare const VERSION = "0.14.9";
9
+ export declare const VERSION = "0.14.10";
10
10
  export * from "./client.ts";
11
11
  export type * from "./generated/models.ts";