@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/client.d.ts +13 -1
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +922 -5
- package/dist/generated/schemas.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2012 -119
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SCHEMA_BUNDLE_VERSION:
|
|
1
|
+
export declare const SCHEMA_BUNDLE_VERSION: 63;
|
|
2
2
|
export declare namespace GeneratedAsset {
|
|
3
3
|
/**
|
|
4
4
|
* One asset a record holds, as a read reports it.
|
|
@@ -598,6 +598,20 @@ export declare namespace GeneratedCapabilities {
|
|
|
598
598
|
* predates priorities says nothing here and is never handed a priority it would drop.
|
|
599
599
|
*/
|
|
600
600
|
priority?: ("native" | "unsupported");
|
|
601
|
+
/**
|
|
602
|
+
* Whether the source's tasks carry [`Task::assignees`](crate::Task::assignees): set by
|
|
603
|
+
* the source's own `config.assignees: true`, and `unsupported` otherwise.
|
|
604
|
+
*
|
|
605
|
+
* Read exactly as [`priority`](Self::priority) is: it says what the source *holds*, not
|
|
606
|
+
* which predicate it applies. A source declaring `Unsupported` reports no assignees on
|
|
607
|
+
* any task and is never handed any: a write naming an assignee is refused before the
|
|
608
|
+
* source is asked, naming the source and the setting, and a copy into it carries none.
|
|
609
|
+
*
|
|
610
|
+
* Defaulted to [`Support::Unsupported`] when a wire value omits it, and left out of the
|
|
611
|
+
* wire while unsupported, so a plugin that predates assignees — and every source that has
|
|
612
|
+
* not opted in — reads and is read exactly as it was.
|
|
613
|
+
*/
|
|
614
|
+
assignees?: ("native" | "unsupported");
|
|
601
615
|
/**
|
|
602
616
|
* Whether the source keeps only the tasks whose priority a query lists, itself.
|
|
603
617
|
*
|
|
@@ -1841,6 +1855,20 @@ export declare namespace GeneratedContradictedItem {
|
|
|
1841
1855
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
1842
1856
|
*/
|
|
1843
1857
|
classification?: ("public" | "private");
|
|
1858
|
+
/**
|
|
1859
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
1860
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
1861
|
+
* source holds them; empty means unassigned.
|
|
1862
|
+
*
|
|
1863
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
1864
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
1865
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
1866
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
1867
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
1868
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
1869
|
+
* than one.
|
|
1870
|
+
*/
|
|
1871
|
+
assignees?: (string[] | null);
|
|
1844
1872
|
[k: string]: any;
|
|
1845
1873
|
}
|
|
1846
1874
|
/**
|
|
@@ -2214,6 +2242,12 @@ export declare namespace GeneratedCopyOutcome {
|
|
|
2214
2242
|
* update of a task.
|
|
2215
2243
|
*/
|
|
2216
2244
|
priority_condition?: (PriorityCondition | null);
|
|
2245
|
+
/**
|
|
2246
|
+
* What `--when-destination-assignees` found the counterpart's assignees at, and whether
|
|
2247
|
+
* that met it — present only when the copy was given the condition and this item was an
|
|
2248
|
+
* update of a task.
|
|
2249
|
+
*/
|
|
2250
|
+
assignee_condition?: (AssigneeCondition | null);
|
|
2217
2251
|
/**
|
|
2218
2252
|
* What the counterpart held, as the copy's read of it before writing found it — present
|
|
2219
2253
|
* only on an item the copy refused after that read, such as `destination-status`.
|
|
@@ -2580,6 +2614,21 @@ export declare namespace GeneratedCopyOutcome {
|
|
|
2580
2614
|
met: boolean;
|
|
2581
2615
|
[k: string]: any;
|
|
2582
2616
|
}
|
|
2617
|
+
/**
|
|
2618
|
+
* What a guarded copy found a counterpart's assignees at, and whether that met the condition.
|
|
2619
|
+
*/
|
|
2620
|
+
interface AssigneeCondition {
|
|
2621
|
+
/**
|
|
2622
|
+
* Every person the counterpart was assigned to, as the copy's own pre-write read held
|
|
2623
|
+
* them — empty when it was unassigned.
|
|
2624
|
+
*/
|
|
2625
|
+
held: string[];
|
|
2626
|
+
/**
|
|
2627
|
+
* Whether those are exactly the people the condition names.
|
|
2628
|
+
*/
|
|
2629
|
+
met: boolean;
|
|
2630
|
+
[k: string]: any;
|
|
2631
|
+
}
|
|
2583
2632
|
/**
|
|
2584
2633
|
* What a `--comments` copy did to one task's comments at the destination.
|
|
2585
2634
|
*
|
|
@@ -2693,6 +2742,12 @@ export declare namespace GeneratedCopyReport {
|
|
|
2693
2742
|
* update of a task.
|
|
2694
2743
|
*/
|
|
2695
2744
|
priority_condition?: (PriorityCondition | null);
|
|
2745
|
+
/**
|
|
2746
|
+
* What `--when-destination-assignees` found the counterpart's assignees at, and whether
|
|
2747
|
+
* that met it — present only when the copy was given the condition and this item was an
|
|
2748
|
+
* update of a task.
|
|
2749
|
+
*/
|
|
2750
|
+
assignee_condition?: (AssigneeCondition | null);
|
|
2696
2751
|
/**
|
|
2697
2752
|
* What the counterpart held, as the copy's read of it before writing found it — present
|
|
2698
2753
|
* only on an item the copy refused after that read, such as `destination-status`.
|
|
@@ -3198,6 +3253,21 @@ export declare namespace GeneratedCopyReport {
|
|
|
3198
3253
|
met: boolean;
|
|
3199
3254
|
[k: string]: any;
|
|
3200
3255
|
}
|
|
3256
|
+
/**
|
|
3257
|
+
* What a guarded copy found a counterpart's assignees at, and whether that met the condition.
|
|
3258
|
+
*/
|
|
3259
|
+
interface AssigneeCondition {
|
|
3260
|
+
/**
|
|
3261
|
+
* Every person the counterpart was assigned to, as the copy's own pre-write read held
|
|
3262
|
+
* them — empty when it was unassigned.
|
|
3263
|
+
*/
|
|
3264
|
+
held: string[];
|
|
3265
|
+
/**
|
|
3266
|
+
* Whether those are exactly the people the condition names.
|
|
3267
|
+
*/
|
|
3268
|
+
met: boolean;
|
|
3269
|
+
[k: string]: any;
|
|
3270
|
+
}
|
|
3201
3271
|
/**
|
|
3202
3272
|
* What a `--comments` copy did to one task's comments at the destination.
|
|
3203
3273
|
*
|
|
@@ -5496,6 +5566,20 @@ export declare namespace GeneratedFoundTasks {
|
|
|
5496
5566
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
5497
5567
|
*/
|
|
5498
5568
|
classification?: ("public" | "private");
|
|
5569
|
+
/**
|
|
5570
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
5571
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
5572
|
+
* source holds them; empty means unassigned.
|
|
5573
|
+
*
|
|
5574
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
5575
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
5576
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
5577
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
5578
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
5579
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
5580
|
+
* than one.
|
|
5581
|
+
*/
|
|
5582
|
+
assignees?: (string[] | null);
|
|
5499
5583
|
[k: string]: any;
|
|
5500
5584
|
}
|
|
5501
5585
|
/**
|
|
@@ -6502,6 +6586,22 @@ export declare namespace GeneratedLinearConfig {
|
|
|
6502
6586
|
* source reads and writes team-wide.
|
|
6503
6587
|
*/
|
|
6504
6588
|
project?: (LinearProjectId | null);
|
|
6589
|
+
/**
|
|
6590
|
+
* The link types this source mirrors as Linear's own `related` issue relation, each as
|
|
6591
|
+
* `<type>: {"native": "related"}` — the one word a Linear source mirrors a link as. A type
|
|
6592
|
+
* not named here is kept in the store's metadata alone.
|
|
6593
|
+
*/
|
|
6594
|
+
link_types?: {
|
|
6595
|
+
[k: string]: LinkTypeConfig;
|
|
6596
|
+
};
|
|
6597
|
+
/**
|
|
6598
|
+
* Whether this source's tasks carry their assignee: `false`, the default, reads every task
|
|
6599
|
+
* without an `assignees` member, refuses every write naming one and sends Linear exactly
|
|
6600
|
+
* the documents it sent before assignees existed; `true` reads each issue's
|
|
6601
|
+
* `assignee{displayName}` — a Linear user's display name, unique within its workspace —
|
|
6602
|
+
* and writes one person, or none, as the issue's `assigneeId`.
|
|
6603
|
+
*/
|
|
6604
|
+
assignees?: boolean;
|
|
6505
6605
|
}
|
|
6506
6606
|
/**
|
|
6507
6607
|
* Which workflow state of the configured team a task's status category is, and which of
|
|
@@ -6518,8 +6618,154 @@ export declare namespace GeneratedLinearConfig {
|
|
|
6518
6618
|
interface StatusMapping {
|
|
6519
6619
|
[k: string]: (StatusNames | null);
|
|
6520
6620
|
}
|
|
6621
|
+
/**
|
|
6622
|
+
* One entry of a source's `link_types` configuration, as written.
|
|
6623
|
+
*/
|
|
6624
|
+
interface LinkTypeConfig {
|
|
6625
|
+
/**
|
|
6626
|
+
* The destination's own relation this type is mirrored as.
|
|
6627
|
+
*/
|
|
6628
|
+
native?: (string | null);
|
|
6629
|
+
}
|
|
6521
6630
|
}
|
|
6522
6631
|
export type LinearConfig = GeneratedLinearConfig.LinearConfig;
|
|
6632
|
+
export declare namespace GeneratedLinkBatch {
|
|
6633
|
+
/**
|
|
6634
|
+
* What `task link add-many` and `task link remove-many` read: many typed links.
|
|
6635
|
+
*/
|
|
6636
|
+
interface LinkBatch {
|
|
6637
|
+
/**
|
|
6638
|
+
* `1`.
|
|
6639
|
+
*/
|
|
6640
|
+
schema_version: number;
|
|
6641
|
+
/**
|
|
6642
|
+
* The links, each added or removed on its own.
|
|
6643
|
+
*/
|
|
6644
|
+
links: LinkItem[];
|
|
6645
|
+
}
|
|
6646
|
+
/**
|
|
6647
|
+
* One link of a [`LinkBatch`]: a type name over a directed pair of items.
|
|
6648
|
+
*/
|
|
6649
|
+
interface LinkItem {
|
|
6650
|
+
/**
|
|
6651
|
+
* The link's `from`, a qualified task id.
|
|
6652
|
+
*/
|
|
6653
|
+
from: string;
|
|
6654
|
+
/**
|
|
6655
|
+
* The link's `to`, a qualified task id of any configured source.
|
|
6656
|
+
*/
|
|
6657
|
+
to: string;
|
|
6658
|
+
/**
|
|
6659
|
+
* The link's type name.
|
|
6660
|
+
*/
|
|
6661
|
+
type: string;
|
|
6662
|
+
}
|
|
6663
|
+
}
|
|
6664
|
+
export type LinkBatch = GeneratedLinkBatch.LinkBatch;
|
|
6665
|
+
export declare namespace GeneratedLinkOutcome {
|
|
6666
|
+
/**
|
|
6667
|
+
* What became of one link.
|
|
6668
|
+
*/
|
|
6669
|
+
type LinkOutcome = ("written" | "exists" | "absent" | "partial" | "error");
|
|
6670
|
+
}
|
|
6671
|
+
export type LinkOutcome = GeneratedLinkOutcome.LinkOutcome;
|
|
6672
|
+
export declare namespace GeneratedLinksWritten {
|
|
6673
|
+
/**
|
|
6674
|
+
* What a locator names.
|
|
6675
|
+
*/
|
|
6676
|
+
type LocatorKind = ("source" | "item" | "field" | "metadata-key" | "comment" | "path" | "identity");
|
|
6677
|
+
/**
|
|
6678
|
+
* What `task link add-many` and `task link remove-many` answer: one result per link.
|
|
6679
|
+
*/
|
|
6680
|
+
interface LinksWritten {
|
|
6681
|
+
/**
|
|
6682
|
+
* `1`.
|
|
6683
|
+
*/
|
|
6684
|
+
schema_version: number;
|
|
6685
|
+
/**
|
|
6686
|
+
* One per link, in the order given.
|
|
6687
|
+
*/
|
|
6688
|
+
results: LinkResult[];
|
|
6689
|
+
sanitization?: (Sanitization | null);
|
|
6690
|
+
[k: string]: any;
|
|
6691
|
+
}
|
|
6692
|
+
/**
|
|
6693
|
+
* What became of one link of a [`LinkBatch`].
|
|
6694
|
+
*/
|
|
6695
|
+
interface LinkResult {
|
|
6696
|
+
/**
|
|
6697
|
+
* The `from` as the batch named it.
|
|
6698
|
+
*/
|
|
6699
|
+
from: string;
|
|
6700
|
+
/**
|
|
6701
|
+
* The `to` as the batch named it.
|
|
6702
|
+
*/
|
|
6703
|
+
to: string;
|
|
6704
|
+
/**
|
|
6705
|
+
* The link's type name.
|
|
6706
|
+
*/
|
|
6707
|
+
type: string;
|
|
6708
|
+
/**
|
|
6709
|
+
* What became of it.
|
|
6710
|
+
*/
|
|
6711
|
+
outcome: ("written" | "exists" | "absent" | "partial" | "error");
|
|
6712
|
+
/**
|
|
6713
|
+
* The `from` endpoint's version — after this call's write of it, else as read.
|
|
6714
|
+
*/
|
|
6715
|
+
from_version?: (string | null);
|
|
6716
|
+
/**
|
|
6717
|
+
* The `to` endpoint's version — after this call's write of it, else as read.
|
|
6718
|
+
*/
|
|
6719
|
+
to_version?: (string | null);
|
|
6720
|
+
/**
|
|
6721
|
+
* Why it is answered `partial` — naming the endpoint that landed — or `error`.
|
|
6722
|
+
*/
|
|
6723
|
+
reason?: (string | null);
|
|
6724
|
+
[k: string]: any;
|
|
6725
|
+
}
|
|
6726
|
+
/**
|
|
6727
|
+
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
6728
|
+
* the `sanitization` member a write's answer carries when it is not empty.
|
|
6729
|
+
*/
|
|
6730
|
+
interface Sanitization {
|
|
6731
|
+
/**
|
|
6732
|
+
* Spans the writes' own sanitisations rewrote.
|
|
6733
|
+
*/
|
|
6734
|
+
replaced: number;
|
|
6735
|
+
/**
|
|
6736
|
+
* Each field or comment of an item sanitisation changed beyond the write itself.
|
|
6737
|
+
*/
|
|
6738
|
+
side_effect: SideEffect[];
|
|
6739
|
+
/**
|
|
6740
|
+
* Whether nothing was written, the changes only reported.
|
|
6741
|
+
*/
|
|
6742
|
+
dry_run: boolean;
|
|
6743
|
+
[k: string]: any;
|
|
6744
|
+
}
|
|
6745
|
+
/**
|
|
6746
|
+
* One field or comment of an item a sanitisation changed, named by screened locators.
|
|
6747
|
+
*/
|
|
6748
|
+
interface SideEffect {
|
|
6749
|
+
/**
|
|
6750
|
+
* The item, by its qualified id as screened.
|
|
6751
|
+
*/
|
|
6752
|
+
item: (string | {
|
|
6753
|
+
redacted: true;
|
|
6754
|
+
kind: LocatorKind;
|
|
6755
|
+
ordinal: number;
|
|
6756
|
+
});
|
|
6757
|
+
/**
|
|
6758
|
+
* The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.
|
|
6759
|
+
*/
|
|
6760
|
+
field: (string | {
|
|
6761
|
+
redacted: true;
|
|
6762
|
+
kind: LocatorKind;
|
|
6763
|
+
ordinal: number;
|
|
6764
|
+
});
|
|
6765
|
+
[k: string]: any;
|
|
6766
|
+
}
|
|
6767
|
+
}
|
|
6768
|
+
export type LinksWritten = GeneratedLinksWritten.LinksWritten;
|
|
6523
6769
|
export declare namespace GeneratedLocateReport {
|
|
6524
6770
|
/**
|
|
6525
6771
|
* One item, qualified by the source it came from.
|
|
@@ -7141,6 +7387,13 @@ export declare namespace GeneratedOrigin {
|
|
|
7141
7387
|
});
|
|
7142
7388
|
}
|
|
7143
7389
|
export type Origin = GeneratedOrigin.Origin;
|
|
7390
|
+
export declare namespace GeneratedOtherEnd {
|
|
7391
|
+
/**
|
|
7392
|
+
* Whether a link's other end holds it too.
|
|
7393
|
+
*/
|
|
7394
|
+
type OtherEnd = ("present" | "missing" | "unread");
|
|
7395
|
+
}
|
|
7396
|
+
export type OtherEnd = GeneratedOtherEnd.OtherEnd;
|
|
7144
7397
|
export declare namespace GeneratedOutputFormat {
|
|
7145
7398
|
/**
|
|
7146
7399
|
* How output is rendered.
|
|
@@ -7860,6 +8113,20 @@ export declare namespace GeneratedPageOfTask {
|
|
|
7860
8113
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
7861
8114
|
*/
|
|
7862
8115
|
classification?: ("public" | "private");
|
|
8116
|
+
/**
|
|
8117
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
8118
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
8119
|
+
* source holds them; empty means unassigned.
|
|
8120
|
+
*
|
|
8121
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
8122
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
8123
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
8124
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
8125
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
8126
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
8127
|
+
* than one.
|
|
8128
|
+
*/
|
|
8129
|
+
assignees?: (string[] | null);
|
|
7863
8130
|
[k: string]: any;
|
|
7864
8131
|
}
|
|
7865
8132
|
/**
|
|
@@ -7948,6 +8215,137 @@ export declare namespace GeneratedPageToken {
|
|
|
7948
8215
|
type PageToken = string;
|
|
7949
8216
|
}
|
|
7950
8217
|
export type PageToken = GeneratedPageToken.PageToken;
|
|
8218
|
+
export declare namespace GeneratedParentBatch {
|
|
8219
|
+
/**
|
|
8220
|
+
* What `task parent set-many` reads: many parent writes.
|
|
8221
|
+
*/
|
|
8222
|
+
interface ParentBatch {
|
|
8223
|
+
/**
|
|
8224
|
+
* `1`.
|
|
8225
|
+
*/
|
|
8226
|
+
schema_version: number;
|
|
8227
|
+
/**
|
|
8228
|
+
* The edges, each written on its own.
|
|
8229
|
+
*/
|
|
8230
|
+
edges: ParentEdge[];
|
|
8231
|
+
}
|
|
8232
|
+
/**
|
|
8233
|
+
* One edge of a [`ParentBatch`]: `child`'s parent set to `parent`, or removed for `null`.
|
|
8234
|
+
*/
|
|
8235
|
+
interface ParentEdge {
|
|
8236
|
+
/**
|
|
8237
|
+
* The child's qualified id, `<source>:<native-id>`.
|
|
8238
|
+
*/
|
|
8239
|
+
child: string;
|
|
8240
|
+
/**
|
|
8241
|
+
* The parent's qualified id, a task of the child's own source, or `null` to remove the
|
|
8242
|
+
* child's parent. Required: an edge leaving it out is refused rather than read as a removal.
|
|
8243
|
+
*/
|
|
8244
|
+
parent: (string | null);
|
|
8245
|
+
/**
|
|
8246
|
+
* The version the child must be at for anything to be written, as a read reported it.
|
|
8247
|
+
*/
|
|
8248
|
+
if_version?: (string | null);
|
|
8249
|
+
}
|
|
8250
|
+
}
|
|
8251
|
+
export type ParentBatch = GeneratedParentBatch.ParentBatch;
|
|
8252
|
+
export declare namespace GeneratedParentOutcome {
|
|
8253
|
+
/**
|
|
8254
|
+
* What became of one parent edge.
|
|
8255
|
+
*/
|
|
8256
|
+
type ParentOutcome = ("written" | "unchanged" | "version-moved" | "refused" | "error");
|
|
8257
|
+
}
|
|
8258
|
+
export type ParentOutcome = GeneratedParentOutcome.ParentOutcome;
|
|
8259
|
+
export declare namespace GeneratedParentsSet {
|
|
8260
|
+
/**
|
|
8261
|
+
* What a locator names.
|
|
8262
|
+
*/
|
|
8263
|
+
type LocatorKind = ("source" | "item" | "field" | "metadata-key" | "comment" | "path" | "identity");
|
|
8264
|
+
/**
|
|
8265
|
+
* What `task parent set-many` answers: one result per edge, in the order given.
|
|
8266
|
+
*/
|
|
8267
|
+
interface ParentsSet {
|
|
8268
|
+
/**
|
|
8269
|
+
* `1`.
|
|
8270
|
+
*/
|
|
8271
|
+
schema_version: number;
|
|
8272
|
+
/**
|
|
8273
|
+
* One per edge.
|
|
8274
|
+
*/
|
|
8275
|
+
results: ParentResult[];
|
|
8276
|
+
sanitization?: (Sanitization | null);
|
|
8277
|
+
[k: string]: any;
|
|
8278
|
+
}
|
|
8279
|
+
/**
|
|
8280
|
+
* What became of one edge of a [`ParentBatch`].
|
|
8281
|
+
*/
|
|
8282
|
+
interface ParentResult {
|
|
8283
|
+
/**
|
|
8284
|
+
* The child as the batch named it.
|
|
8285
|
+
*/
|
|
8286
|
+
child: string;
|
|
8287
|
+
/**
|
|
8288
|
+
* The parent as the batch named it, `null` for a removal.
|
|
8289
|
+
*/
|
|
8290
|
+
parent?: (string | null);
|
|
8291
|
+
/**
|
|
8292
|
+
* What became of it.
|
|
8293
|
+
*/
|
|
8294
|
+
outcome: ("written" | "unchanged" | "version-moved" | "refused" | "error");
|
|
8295
|
+
/**
|
|
8296
|
+
* The child's version: after the write when `written` and the write's answer says, as read
|
|
8297
|
+
* when `unchanged`, and the version it was found at when `version-moved`.
|
|
8298
|
+
*/
|
|
8299
|
+
version?: (string | null);
|
|
8300
|
+
/**
|
|
8301
|
+
* Why it is answered `refused` or `error`.
|
|
8302
|
+
*/
|
|
8303
|
+
reason?: (string | null);
|
|
8304
|
+
[k: string]: any;
|
|
8305
|
+
}
|
|
8306
|
+
/**
|
|
8307
|
+
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
8308
|
+
* the `sanitization` member a write's answer carries when it is not empty.
|
|
8309
|
+
*/
|
|
8310
|
+
interface Sanitization {
|
|
8311
|
+
/**
|
|
8312
|
+
* Spans the writes' own sanitisations rewrote.
|
|
8313
|
+
*/
|
|
8314
|
+
replaced: number;
|
|
8315
|
+
/**
|
|
8316
|
+
* Each field or comment of an item sanitisation changed beyond the write itself.
|
|
8317
|
+
*/
|
|
8318
|
+
side_effect: SideEffect[];
|
|
8319
|
+
/**
|
|
8320
|
+
* Whether nothing was written, the changes only reported.
|
|
8321
|
+
*/
|
|
8322
|
+
dry_run: boolean;
|
|
8323
|
+
[k: string]: any;
|
|
8324
|
+
}
|
|
8325
|
+
/**
|
|
8326
|
+
* One field or comment of an item a sanitisation changed, named by screened locators.
|
|
8327
|
+
*/
|
|
8328
|
+
interface SideEffect {
|
|
8329
|
+
/**
|
|
8330
|
+
* The item, by its qualified id as screened.
|
|
8331
|
+
*/
|
|
8332
|
+
item: (string | {
|
|
8333
|
+
redacted: true;
|
|
8334
|
+
kind: LocatorKind;
|
|
8335
|
+
ordinal: number;
|
|
8336
|
+
});
|
|
8337
|
+
/**
|
|
8338
|
+
* The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.
|
|
8339
|
+
*/
|
|
8340
|
+
field: (string | {
|
|
8341
|
+
redacted: true;
|
|
8342
|
+
kind: LocatorKind;
|
|
8343
|
+
ordinal: number;
|
|
8344
|
+
});
|
|
8345
|
+
[k: string]: any;
|
|
8346
|
+
}
|
|
8347
|
+
}
|
|
8348
|
+
export type ParentsSet = GeneratedParentsSet.ParentsSet;
|
|
7951
8349
|
export declare namespace GeneratedPlacement {
|
|
7952
8350
|
/**
|
|
7953
8351
|
* Where one item written to a source lands, and which of its routes put it there.
|
|
@@ -9300,6 +9698,20 @@ export declare namespace GeneratedQualifiedTask {
|
|
|
9300
9698
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
9301
9699
|
*/
|
|
9302
9700
|
classification?: ("public" | "private");
|
|
9701
|
+
/**
|
|
9702
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
9703
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
9704
|
+
* source holds them; empty means unassigned.
|
|
9705
|
+
*
|
|
9706
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
9707
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
9708
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
9709
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
9710
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
9711
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
9712
|
+
* than one.
|
|
9713
|
+
*/
|
|
9714
|
+
assignees?: (string[] | null);
|
|
9303
9715
|
[k: string]: any;
|
|
9304
9716
|
}
|
|
9305
9717
|
/**
|
|
@@ -11157,7 +11569,21 @@ export declare namespace GeneratedQueryResponseOfQualifiedTask {
|
|
|
11157
11569
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
11158
11570
|
*/
|
|
11159
11571
|
classification?: ("public" | "private");
|
|
11160
|
-
|
|
11572
|
+
/**
|
|
11573
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
11574
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
11575
|
+
* source holds them; empty means unassigned.
|
|
11576
|
+
*
|
|
11577
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
11578
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
11579
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
11580
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
11581
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
11582
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
11583
|
+
* than one.
|
|
11584
|
+
*/
|
|
11585
|
+
assignees?: (string[] | null);
|
|
11586
|
+
[k: string]: any;
|
|
11161
11587
|
}
|
|
11162
11588
|
/**
|
|
11163
11589
|
* The source's status, normalised and preserved.
|
|
@@ -11691,6 +12117,32 @@ export declare namespace GeneratedQueryResponseOfSearchHit {
|
|
|
11691
12117
|
}
|
|
11692
12118
|
}
|
|
11693
12119
|
export type QueryResponseOfSearchHit = GeneratedQueryResponseOfSearchHit.QueryResponseOfSearchHit;
|
|
12120
|
+
export declare namespace GeneratedReadLink {
|
|
12121
|
+
/**
|
|
12122
|
+
* One link as one endpoint holds it.
|
|
12123
|
+
*/
|
|
12124
|
+
interface ReadLink {
|
|
12125
|
+
/**
|
|
12126
|
+
* The link's type name.
|
|
12127
|
+
*/
|
|
12128
|
+
type: string;
|
|
12129
|
+
/**
|
|
12130
|
+
* Which end of the link this item is.
|
|
12131
|
+
*/
|
|
12132
|
+
direction: ("out" | "in");
|
|
12133
|
+
/**
|
|
12134
|
+
* The other item's qualified id.
|
|
12135
|
+
*/
|
|
12136
|
+
other: string;
|
|
12137
|
+
/**
|
|
12138
|
+
* Whether the other end holds this link too: `present` or `missing` when the other item
|
|
12139
|
+
* is among the ids asked, and `unread` otherwise.
|
|
12140
|
+
*/
|
|
12141
|
+
other_end: ("present" | "missing" | "unread");
|
|
12142
|
+
[k: string]: any;
|
|
12143
|
+
}
|
|
12144
|
+
}
|
|
12145
|
+
export type ReadLink = GeneratedReadLink.ReadLink;
|
|
11694
12146
|
export declare namespace GeneratedReconcileOutcome {
|
|
11695
12147
|
/**
|
|
11696
12148
|
* What reconciling one item came to.
|
|
@@ -11816,6 +12268,72 @@ export declare namespace GeneratedRegenerated {
|
|
|
11816
12268
|
}
|
|
11817
12269
|
}
|
|
11818
12270
|
export type Regenerated = GeneratedRegenerated.Regenerated;
|
|
12271
|
+
export declare namespace GeneratedRelationsItem {
|
|
12272
|
+
/**
|
|
12273
|
+
* One item, qualified by the source it came from.
|
|
12274
|
+
*
|
|
12275
|
+
* Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
|
|
12276
|
+
* so a native id may contain colons freely.
|
|
12277
|
+
*/
|
|
12278
|
+
type GlobalId = string;
|
|
12279
|
+
/**
|
|
12280
|
+
* One task's relations.
|
|
12281
|
+
*/
|
|
12282
|
+
interface RelationsItem {
|
|
12283
|
+
/**
|
|
12284
|
+
* The task's qualified id.
|
|
12285
|
+
*/
|
|
12286
|
+
item: string;
|
|
12287
|
+
/**
|
|
12288
|
+
* Its parent's qualified id, or `null`.
|
|
12289
|
+
*/
|
|
12290
|
+
parent?: (GlobalId | null);
|
|
12291
|
+
/**
|
|
12292
|
+
* Its children's qualified ids.
|
|
12293
|
+
*/
|
|
12294
|
+
children: GlobalId[];
|
|
12295
|
+
/**
|
|
12296
|
+
* Whether `children` is every child.
|
|
12297
|
+
*/
|
|
12298
|
+
children_complete: boolean;
|
|
12299
|
+
/**
|
|
12300
|
+
* Its links, as it holds them.
|
|
12301
|
+
*/
|
|
12302
|
+
links: ReadLink[];
|
|
12303
|
+
/**
|
|
12304
|
+
* Whether `links` is every link it holds.
|
|
12305
|
+
*/
|
|
12306
|
+
links_complete: boolean;
|
|
12307
|
+
[k: string]: any;
|
|
12308
|
+
}
|
|
12309
|
+
/**
|
|
12310
|
+
* One link as one endpoint holds it.
|
|
12311
|
+
*/
|
|
12312
|
+
interface ReadLink {
|
|
12313
|
+
/**
|
|
12314
|
+
* The link's type name.
|
|
12315
|
+
*/
|
|
12316
|
+
type: string;
|
|
12317
|
+
/**
|
|
12318
|
+
* Which end of the link this item is.
|
|
12319
|
+
*/
|
|
12320
|
+
direction: ("out" | "in");
|
|
12321
|
+
/**
|
|
12322
|
+
* One item, qualified by the source it came from.
|
|
12323
|
+
*
|
|
12324
|
+
* Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
|
|
12325
|
+
* so a native id may contain colons freely.
|
|
12326
|
+
*/
|
|
12327
|
+
other: string;
|
|
12328
|
+
/**
|
|
12329
|
+
* Whether the other end holds this link too: `present` or `missing` when the other item
|
|
12330
|
+
* is among the ids asked, and `unread` otherwise.
|
|
12331
|
+
*/
|
|
12332
|
+
other_end: ("present" | "missing" | "unread");
|
|
12333
|
+
[k: string]: any;
|
|
12334
|
+
}
|
|
12335
|
+
}
|
|
12336
|
+
export type RelationsItem = GeneratedRelationsItem.RelationsItem;
|
|
11819
12337
|
export declare namespace GeneratedRenderedTemplate {
|
|
11820
12338
|
/**
|
|
11821
12339
|
* A rendered template: what `onetaskgraph template render` answers with.
|
|
@@ -12398,6 +12916,20 @@ export declare namespace GeneratedSourceListing {
|
|
|
12398
12916
|
* predates priorities says nothing here and is never handed a priority it would drop.
|
|
12399
12917
|
*/
|
|
12400
12918
|
priority?: ("native" | "unsupported");
|
|
12919
|
+
/**
|
|
12920
|
+
* Whether the source's tasks carry [`Task::assignees`](crate::Task::assignees): set by
|
|
12921
|
+
* the source's own `config.assignees: true`, and `unsupported` otherwise.
|
|
12922
|
+
*
|
|
12923
|
+
* Read exactly as [`priority`](Self::priority) is: it says what the source *holds*, not
|
|
12924
|
+
* which predicate it applies. A source declaring `Unsupported` reports no assignees on
|
|
12925
|
+
* any task and is never handed any: a write naming an assignee is refused before the
|
|
12926
|
+
* source is asked, naming the source and the setting, and a copy into it carries none.
|
|
12927
|
+
*
|
|
12928
|
+
* Defaulted to [`Support::Unsupported`] when a wire value omits it, and left out of the
|
|
12929
|
+
* wire while unsupported, so a plugin that predates assignees — and every source that has
|
|
12930
|
+
* not opted in — reads and is read exactly as it was.
|
|
12931
|
+
*/
|
|
12932
|
+
assignees?: ("native" | "unsupported");
|
|
12401
12933
|
/**
|
|
12402
12934
|
* Whether the source keeps only the tasks whose priority a query lists, itself.
|
|
12403
12935
|
*
|
|
@@ -12669,6 +13201,20 @@ export declare namespace GeneratedSourceListings {
|
|
|
12669
13201
|
* predates priorities says nothing here and is never handed a priority it would drop.
|
|
12670
13202
|
*/
|
|
12671
13203
|
priority?: ("native" | "unsupported");
|
|
13204
|
+
/**
|
|
13205
|
+
* Whether the source's tasks carry [`Task::assignees`](crate::Task::assignees): set by
|
|
13206
|
+
* the source's own `config.assignees: true`, and `unsupported` otherwise.
|
|
13207
|
+
*
|
|
13208
|
+
* Read exactly as [`priority`](Self::priority) is: it says what the source *holds*, not
|
|
13209
|
+
* which predicate it applies. A source declaring `Unsupported` reports no assignees on
|
|
13210
|
+
* any task and is never handed any: a write naming an assignee is refused before the
|
|
13211
|
+
* source is asked, naming the source and the setting, and a copy into it carries none.
|
|
13212
|
+
*
|
|
13213
|
+
* Defaulted to [`Support::Unsupported`] when a wire value omits it, and left out of the
|
|
13214
|
+
* wire while unsupported, so a plugin that predates assignees — and every source that has
|
|
13215
|
+
* not opted in — reads and is read exactly as it was.
|
|
13216
|
+
*/
|
|
13217
|
+
assignees?: ("native" | "unsupported");
|
|
12672
13218
|
/**
|
|
12673
13219
|
* Whether the source keeps only the tasks whose priority a query lists, itself.
|
|
12674
13220
|
*
|
|
@@ -13130,6 +13676,20 @@ export declare namespace GeneratedStatusContradiction {
|
|
|
13130
13676
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
13131
13677
|
*/
|
|
13132
13678
|
classification?: ("public" | "private");
|
|
13679
|
+
/**
|
|
13680
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
13681
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
13682
|
+
* source holds them; empty means unassigned.
|
|
13683
|
+
*
|
|
13684
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
13685
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
13686
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
13687
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
13688
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
13689
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
13690
|
+
* than one.
|
|
13691
|
+
*/
|
|
13692
|
+
assignees?: (string[] | null);
|
|
13133
13693
|
[k: string]: any;
|
|
13134
13694
|
}
|
|
13135
13695
|
/**
|
|
@@ -13811,6 +14371,20 @@ export declare namespace GeneratedTask {
|
|
|
13811
14371
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
13812
14372
|
*/
|
|
13813
14373
|
classification?: ("public" | "private");
|
|
14374
|
+
/**
|
|
14375
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
14376
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
14377
|
+
* source holds them; empty means unassigned.
|
|
14378
|
+
*
|
|
14379
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
14380
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
14381
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
14382
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
14383
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
14384
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
14385
|
+
* than one.
|
|
14386
|
+
*/
|
|
14387
|
+
assignees?: (string[] | null);
|
|
13814
14388
|
[k: string]: any;
|
|
13815
14389
|
}
|
|
13816
14390
|
/**
|
|
@@ -13865,6 +14439,174 @@ export declare namespace GeneratedTaskAssetNames {
|
|
|
13865
14439
|
type TaskAssetNames = AssetName[];
|
|
13866
14440
|
}
|
|
13867
14441
|
export type TaskAssetNames = GeneratedTaskAssetNames.TaskAssetNames;
|
|
14442
|
+
export declare namespace GeneratedTaskAssigneeSet {
|
|
14443
|
+
/**
|
|
14444
|
+
* One mutation of an expected write.
|
|
14445
|
+
*/
|
|
14446
|
+
type WritePart = ({
|
|
14447
|
+
/**
|
|
14448
|
+
* Which part it was, in the source's words: `fields`, `issue`, `comment`.
|
|
14449
|
+
*/
|
|
14450
|
+
part: string;
|
|
14451
|
+
/**
|
|
14452
|
+
* Each field it set, with the value the response shows.
|
|
14453
|
+
*/
|
|
14454
|
+
fields: {
|
|
14455
|
+
[k: string]: any;
|
|
14456
|
+
};
|
|
14457
|
+
[k: string]: any;
|
|
14458
|
+
} & WritePart1);
|
|
14459
|
+
type WritePart1 = ({
|
|
14460
|
+
outcome: "landed";
|
|
14461
|
+
[k: string]: any;
|
|
14462
|
+
} | {
|
|
14463
|
+
/**
|
|
14464
|
+
* What the backend said.
|
|
14465
|
+
*/
|
|
14466
|
+
error: string;
|
|
14467
|
+
/**
|
|
14468
|
+
* Whether it was refused because an id the write took from a primed context — an
|
|
14469
|
+
* item's node id, a field's or an option's — no longer resolves. Such a part is
|
|
14470
|
+
* sent again once, after one read.
|
|
14471
|
+
*/
|
|
14472
|
+
stale?: boolean;
|
|
14473
|
+
outcome: "rejected";
|
|
14474
|
+
[k: string]: any;
|
|
14475
|
+
} | {
|
|
14476
|
+
/**
|
|
14477
|
+
* What went wrong.
|
|
14478
|
+
*/
|
|
14479
|
+
error: string;
|
|
14480
|
+
outcome: "unknown";
|
|
14481
|
+
[k: string]: any;
|
|
14482
|
+
});
|
|
14483
|
+
/**
|
|
14484
|
+
* How much a task matters, in the one vocabulary every source is normalised into.
|
|
14485
|
+
*
|
|
14486
|
+
* Five values, most pressing first after [`None`](Self::None): Linear's own priority has
|
|
14487
|
+
* exactly these, and a source whose backend has none of its own maps its representation
|
|
14488
|
+
* onto them. `none` is a value rather than an absent field, because "no priority is set" is
|
|
14489
|
+
* something a person sets — writing `none` clears a priority — and a reader tells it apart
|
|
14490
|
+
* from nothing by the value alone.
|
|
14491
|
+
*/
|
|
14492
|
+
type Priority = ("none" | "urgent" | "high" | "medium" | "low");
|
|
14493
|
+
/**
|
|
14494
|
+
* What a locator names.
|
|
14495
|
+
*/
|
|
14496
|
+
type LocatorKind = ("source" | "item" | "field" | "metadata-key" | "comment" | "path" | "identity");
|
|
14497
|
+
/**
|
|
14498
|
+
* What `task assignee set` answers with.
|
|
14499
|
+
*/
|
|
14500
|
+
interface TaskAssigneeSet {
|
|
14501
|
+
/**
|
|
14502
|
+
* The task whose assignee was set.
|
|
14503
|
+
*/
|
|
14504
|
+
id: string;
|
|
14505
|
+
/**
|
|
14506
|
+
* Every person the task is assigned to as its source reads it back after the write —
|
|
14507
|
+
* the one person named, or none.
|
|
14508
|
+
*/
|
|
14509
|
+
assignees: string[];
|
|
14510
|
+
/**
|
|
14511
|
+
* What the task holds after the write — its version where the write's own answers
|
|
14512
|
+
* determine it.
|
|
14513
|
+
*/
|
|
14514
|
+
result?: (WriteResult | null);
|
|
14515
|
+
sanitization?: (Sanitization | null);
|
|
14516
|
+
[k: string]: any;
|
|
14517
|
+
}
|
|
14518
|
+
/**
|
|
14519
|
+
* What an item holds once a write is done, read off the write's own responses — and, for an
|
|
14520
|
+
* expected write, what each mutation it sent came to.
|
|
14521
|
+
*
|
|
14522
|
+
* Every write verb and every item a copy lands answers one, with no request added for it: a
|
|
14523
|
+
* field the write kept is what the read before it held. `version` is `null` where the source
|
|
14524
|
+
* cannot vouch for a token from its write's responses — a GitHub board for an item it has just
|
|
14525
|
+
* written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
|
|
14526
|
+
* then give.
|
|
14527
|
+
*/
|
|
14528
|
+
interface WriteResult {
|
|
14529
|
+
/**
|
|
14530
|
+
* The item's version after the write, where the write's responses determine it.
|
|
14531
|
+
*/
|
|
14532
|
+
version?: (string | null);
|
|
14533
|
+
/**
|
|
14534
|
+
* One per mutation an expected write sent, in the order sent — absent for a write made
|
|
14535
|
+
* without `--expect`.
|
|
14536
|
+
*/
|
|
14537
|
+
parts?: (WritePart[] | null);
|
|
14538
|
+
/**
|
|
14539
|
+
* The item's status after the write, exactly as `task show` spells it — `null` for a
|
|
14540
|
+
* document, which has none, and where an expected write that failed cannot say.
|
|
14541
|
+
*/
|
|
14542
|
+
status?: (Status | null);
|
|
14543
|
+
/**
|
|
14544
|
+
* A task's priority after the write — `null` for a project or a document, which carry
|
|
14545
|
+
* none, and where an expected write that failed cannot say.
|
|
14546
|
+
*/
|
|
14547
|
+
priority?: (Priority | null);
|
|
14548
|
+
[k: string]: any;
|
|
14549
|
+
}
|
|
14550
|
+
/**
|
|
14551
|
+
* A source's status, kept in both normalised and original form.
|
|
14552
|
+
*
|
|
14553
|
+
* `category` is what every filter compares against; `name` is the source's own
|
|
14554
|
+
* wording, preserved so display never flattens "In Review" into "In Progress".
|
|
14555
|
+
*/
|
|
14556
|
+
interface Status {
|
|
14557
|
+
/**
|
|
14558
|
+
* The normalised value filters compare against.
|
|
14559
|
+
*/
|
|
14560
|
+
category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
|
|
14561
|
+
/**
|
|
14562
|
+
* The source's own label for this status.
|
|
14563
|
+
*/
|
|
14564
|
+
name: string;
|
|
14565
|
+
[k: string]: any;
|
|
14566
|
+
}
|
|
14567
|
+
/**
|
|
14568
|
+
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
14569
|
+
* the `sanitization` member a write's answer carries when it is not empty.
|
|
14570
|
+
*/
|
|
14571
|
+
interface Sanitization {
|
|
14572
|
+
/**
|
|
14573
|
+
* Spans the writes' own sanitisations rewrote.
|
|
14574
|
+
*/
|
|
14575
|
+
replaced: number;
|
|
14576
|
+
/**
|
|
14577
|
+
* Each field or comment of an item sanitisation changed beyond the write itself.
|
|
14578
|
+
*/
|
|
14579
|
+
side_effect: SideEffect[];
|
|
14580
|
+
/**
|
|
14581
|
+
* Whether nothing was written, the changes only reported.
|
|
14582
|
+
*/
|
|
14583
|
+
dry_run: boolean;
|
|
14584
|
+
[k: string]: any;
|
|
14585
|
+
}
|
|
14586
|
+
/**
|
|
14587
|
+
* One field or comment of an item a sanitisation changed, named by screened locators.
|
|
14588
|
+
*/
|
|
14589
|
+
interface SideEffect {
|
|
14590
|
+
/**
|
|
14591
|
+
* The item, by its qualified id as screened.
|
|
14592
|
+
*/
|
|
14593
|
+
item: (string | {
|
|
14594
|
+
redacted: true;
|
|
14595
|
+
kind: LocatorKind;
|
|
14596
|
+
ordinal: number;
|
|
14597
|
+
});
|
|
14598
|
+
/**
|
|
14599
|
+
* The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.
|
|
14600
|
+
*/
|
|
14601
|
+
field: (string | {
|
|
14602
|
+
redacted: true;
|
|
14603
|
+
kind: LocatorKind;
|
|
14604
|
+
ordinal: number;
|
|
14605
|
+
});
|
|
14606
|
+
[k: string]: any;
|
|
14607
|
+
}
|
|
14608
|
+
}
|
|
14609
|
+
export type TaskAssigneeSet = GeneratedTaskAssigneeSet.TaskAssigneeSet;
|
|
13868
14610
|
export declare namespace GeneratedTaskContentSet {
|
|
13869
14611
|
/**
|
|
13870
14612
|
* One mutation of an expected write.
|
|
@@ -14410,6 +15152,20 @@ export declare namespace GeneratedTaskDetail {
|
|
|
14410
15152
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
14411
15153
|
*/
|
|
14412
15154
|
classification?: ("public" | "private");
|
|
15155
|
+
/**
|
|
15156
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
15157
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
15158
|
+
* source holds them; empty means unassigned.
|
|
15159
|
+
*
|
|
15160
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
15161
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
15162
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
15163
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
15164
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
15165
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
15166
|
+
* than one.
|
|
15167
|
+
*/
|
|
15168
|
+
assignees?: (string[] | null);
|
|
14413
15169
|
[k: string]: any;
|
|
14414
15170
|
}
|
|
14415
15171
|
/**
|
|
@@ -15178,6 +15934,20 @@ export declare namespace GeneratedTaskDetails {
|
|
|
15178
15934
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
15179
15935
|
*/
|
|
15180
15936
|
classification?: ("public" | "private");
|
|
15937
|
+
/**
|
|
15938
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
15939
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
15940
|
+
* source holds them; empty means unassigned.
|
|
15941
|
+
*
|
|
15942
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
15943
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
15944
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
15945
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
15946
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
15947
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
15948
|
+
* than one.
|
|
15949
|
+
*/
|
|
15950
|
+
assignees?: (string[] | null);
|
|
15181
15951
|
[k: string]: any;
|
|
15182
15952
|
}
|
|
15183
15953
|
/**
|
|
@@ -15587,6 +16357,26 @@ export declare namespace GeneratedTaskDetails {
|
|
|
15587
16357
|
}
|
|
15588
16358
|
}
|
|
15589
16359
|
export type TaskDetails = GeneratedTaskDetails.TaskDetails;
|
|
16360
|
+
export declare namespace GeneratedTaskLink {
|
|
16361
|
+
/**
|
|
16362
|
+
* One typed link, as one endpoint holds it under [`TaskLink::METADATA_KEY`].
|
|
16363
|
+
*/
|
|
16364
|
+
interface TaskLink {
|
|
16365
|
+
/**
|
|
16366
|
+
* The link's type name — the caller's word, which no destination stores natively.
|
|
16367
|
+
*/
|
|
16368
|
+
type: string;
|
|
16369
|
+
/**
|
|
16370
|
+
* Which end of the directed link this item is.
|
|
16371
|
+
*/
|
|
16372
|
+
direction: ("out" | "in");
|
|
16373
|
+
/**
|
|
16374
|
+
* The other item's qualified id, `<source>:<native-id>`.
|
|
16375
|
+
*/
|
|
16376
|
+
other: string;
|
|
16377
|
+
}
|
|
16378
|
+
}
|
|
16379
|
+
export type TaskLink = GeneratedTaskLink.TaskLink;
|
|
15590
16380
|
export declare namespace GeneratedTaskPrioritySet {
|
|
15591
16381
|
/**
|
|
15592
16382
|
* One mutation of an expected write.
|
|
@@ -16027,6 +16817,86 @@ export declare namespace GeneratedTaskRef {
|
|
|
16027
16817
|
type TaskRef = string;
|
|
16028
16818
|
}
|
|
16029
16819
|
export type TaskRef = GeneratedTaskRef.TaskRef;
|
|
16820
|
+
export declare namespace GeneratedTaskRelations {
|
|
16821
|
+
/**
|
|
16822
|
+
* One item, qualified by the source it came from.
|
|
16823
|
+
*
|
|
16824
|
+
* Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
|
|
16825
|
+
* so a native id may contain colons freely.
|
|
16826
|
+
*/
|
|
16827
|
+
type GlobalId = string;
|
|
16828
|
+
/**
|
|
16829
|
+
* What `task relations` answers: one item per id asked, in the order asked.
|
|
16830
|
+
*/
|
|
16831
|
+
interface TaskRelations {
|
|
16832
|
+
/**
|
|
16833
|
+
* `1`.
|
|
16834
|
+
*/
|
|
16835
|
+
schema_version: number;
|
|
16836
|
+
/**
|
|
16837
|
+
* One per id.
|
|
16838
|
+
*/
|
|
16839
|
+
items: RelationsItem[];
|
|
16840
|
+
[k: string]: any;
|
|
16841
|
+
}
|
|
16842
|
+
/**
|
|
16843
|
+
* One task's relations.
|
|
16844
|
+
*/
|
|
16845
|
+
interface RelationsItem {
|
|
16846
|
+
/**
|
|
16847
|
+
* The task's qualified id.
|
|
16848
|
+
*/
|
|
16849
|
+
item: string;
|
|
16850
|
+
/**
|
|
16851
|
+
* Its parent's qualified id, or `null`.
|
|
16852
|
+
*/
|
|
16853
|
+
parent?: (GlobalId | null);
|
|
16854
|
+
/**
|
|
16855
|
+
* Its children's qualified ids.
|
|
16856
|
+
*/
|
|
16857
|
+
children: GlobalId[];
|
|
16858
|
+
/**
|
|
16859
|
+
* Whether `children` is every child.
|
|
16860
|
+
*/
|
|
16861
|
+
children_complete: boolean;
|
|
16862
|
+
/**
|
|
16863
|
+
* Its links, as it holds them.
|
|
16864
|
+
*/
|
|
16865
|
+
links: ReadLink[];
|
|
16866
|
+
/**
|
|
16867
|
+
* Whether `links` is every link it holds.
|
|
16868
|
+
*/
|
|
16869
|
+
links_complete: boolean;
|
|
16870
|
+
[k: string]: any;
|
|
16871
|
+
}
|
|
16872
|
+
/**
|
|
16873
|
+
* One link as one endpoint holds it.
|
|
16874
|
+
*/
|
|
16875
|
+
interface ReadLink {
|
|
16876
|
+
/**
|
|
16877
|
+
* The link's type name.
|
|
16878
|
+
*/
|
|
16879
|
+
type: string;
|
|
16880
|
+
/**
|
|
16881
|
+
* Which end of the link this item is.
|
|
16882
|
+
*/
|
|
16883
|
+
direction: ("out" | "in");
|
|
16884
|
+
/**
|
|
16885
|
+
* One item, qualified by the source it came from.
|
|
16886
|
+
*
|
|
16887
|
+
* Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
|
|
16888
|
+
* so a native id may contain colons freely.
|
|
16889
|
+
*/
|
|
16890
|
+
other: string;
|
|
16891
|
+
/**
|
|
16892
|
+
* Whether the other end holds this link too: `present` or `missing` when the other item
|
|
16893
|
+
* is among the ids asked, and `unread` otherwise.
|
|
16894
|
+
*/
|
|
16895
|
+
other_end: ("present" | "missing" | "unread");
|
|
16896
|
+
[k: string]: any;
|
|
16897
|
+
}
|
|
16898
|
+
}
|
|
16899
|
+
export type TaskRelations = GeneratedTaskRelations.TaskRelations;
|
|
16030
16900
|
export declare namespace GeneratedTaskStatusSet {
|
|
16031
16901
|
/**
|
|
16032
16902
|
* What keeping one delivered task in step with one deliverer came to.
|
|
@@ -16468,6 +17338,13 @@ export declare namespace GeneratedTaskUpdate {
|
|
|
16468
17338
|
* reports it.
|
|
16469
17339
|
*/
|
|
16470
17340
|
repositories?: (Repository[] | null);
|
|
17341
|
+
/**
|
|
17342
|
+
* Replaces every person the task is assigned to with exactly these — empty unassigns.
|
|
17343
|
+
* The engine names at most one, and only to a source declaring
|
|
17344
|
+
* [`Capabilities::assignees`](crate::Capabilities::assignees). A source refuses a person
|
|
17345
|
+
* it cannot assign, naming them, rather than writing the rest without them.
|
|
17346
|
+
*/
|
|
17347
|
+
assignees?: (string[] | null);
|
|
16471
17348
|
[k: string]: any;
|
|
16472
17349
|
}
|
|
16473
17350
|
/**
|
|
@@ -16586,7 +17463,7 @@ export declare namespace GeneratedTaskUpdateOutcome {
|
|
|
16586
17463
|
* kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
|
|
16587
17464
|
* update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
|
|
16588
17465
|
*/
|
|
16589
|
-
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
|
|
17466
|
+
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories" | "assignees");
|
|
16590
17467
|
/**
|
|
16591
17468
|
* What a source answers a [`TaskUpdate`] of a task it holds with.
|
|
16592
17469
|
*
|
|
@@ -16756,6 +17633,20 @@ export declare namespace GeneratedTaskUpdateOutcome {
|
|
|
16756
17633
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
16757
17634
|
*/
|
|
16758
17635
|
classification?: ("public" | "private");
|
|
17636
|
+
/**
|
|
17637
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
17638
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
17639
|
+
* source holds them; empty means unassigned.
|
|
17640
|
+
*
|
|
17641
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
17642
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
17643
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
17644
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
17645
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
17646
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
17647
|
+
* than one.
|
|
17648
|
+
*/
|
|
17649
|
+
assignees?: (string[] | null);
|
|
16759
17650
|
[k: string]: any;
|
|
16760
17651
|
}
|
|
16761
17652
|
/**
|
|
@@ -16842,7 +17733,7 @@ export declare namespace GeneratedTaskUpdated {
|
|
|
16842
17733
|
* kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
|
|
16843
17734
|
* update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
|
|
16844
17735
|
*/
|
|
16845
|
-
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
|
|
17736
|
+
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories" | "assignees");
|
|
16846
17737
|
/**
|
|
16847
17738
|
* What keeping one delivered task in step with one deliverer came to.
|
|
16848
17739
|
*/
|
|
@@ -17162,6 +18053,20 @@ export declare namespace GeneratedTaskUpdated {
|
|
|
17162
18053
|
* a task is filed under never tightens it: a task's visibility is its own.
|
|
17163
18054
|
*/
|
|
17164
18055
|
classification?: ("public" | "private");
|
|
18056
|
+
/**
|
|
18057
|
+
* Every person the task is assigned to, as its source names a person — a GitHub login, a
|
|
18058
|
+
* Linear display name, the string as given in a folder or in memory — in the order the
|
|
18059
|
+
* source holds them; empty means unassigned.
|
|
18060
|
+
*
|
|
18061
|
+
* **Present only for a source that opted in** with `config.assignees: true`
|
|
18062
|
+
* ([`Capabilities::assignees`](crate::Capabilities::assignees) `native`): every other
|
|
18063
|
+
* source leaves it absent, and it is left out of the wire when absent, so a task of a
|
|
18064
|
+
* source that has not opted in reads, and is written, exactly as it was before the field
|
|
18065
|
+
* existed. On a write, absent leaves the item's assignees as they are, and present
|
|
18066
|
+
* replaces them with exactly the people it names — the engine never hands a source more
|
|
18067
|
+
* than one.
|
|
18068
|
+
*/
|
|
18069
|
+
assignees?: (string[] | null);
|
|
17165
18070
|
[k: string]: any;
|
|
17166
18071
|
}
|
|
17167
18072
|
/**
|
|
@@ -17755,6 +18660,18 @@ export declare namespace GeneratedUpdateBatch {
|
|
|
17755
18660
|
* Its repositories, replaced whole; an empty list clears them.
|
|
17756
18661
|
*/
|
|
17757
18662
|
repositories?: (Repository[] | null);
|
|
18663
|
+
/**
|
|
18664
|
+
* The one person it is assigned to, replacing every person it holds — `null` unassigns
|
|
18665
|
+
* it, and leaving the member out leaves its assignees as they are. Only for a source that
|
|
18666
|
+
* opted in with `config.assignees: true`.
|
|
18667
|
+
*/
|
|
18668
|
+
assignee?: (string | null);
|
|
18669
|
+
/**
|
|
18670
|
+
* Write only while the task is assigned to exactly these people, whatever their order —
|
|
18671
|
+
* `[]` only while it is unassigned. Otherwise nothing of the update is written and it
|
|
18672
|
+
* answers `held`. Left out, it sets no guard.
|
|
18673
|
+
*/
|
|
18674
|
+
when_assignees?: (string[] | null);
|
|
17758
18675
|
}
|
|
17759
18676
|
}
|
|
17760
18677
|
export type UpdateBatch = GeneratedUpdateBatch.UpdateBatch;
|
|
@@ -17765,7 +18682,7 @@ export declare namespace GeneratedUpdatedField {
|
|
|
17765
18682
|
* kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
|
|
17766
18683
|
* update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
|
|
17767
18684
|
*/
|
|
17768
|
-
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
|
|
18685
|
+
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories" | "assignees");
|
|
17769
18686
|
}
|
|
17770
18687
|
export type UpdatedField = GeneratedUpdatedField.UpdatedField;
|
|
17771
18688
|
export declare namespace GeneratedVariableType {
|