@onetaskgraph/sdk 0.12.12 → 0.12.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.
@@ -1,4 +1,4 @@
1
- export declare const SCHEMA_BUNDLE_VERSION: 49;
1
+ export declare const SCHEMA_BUNDLE_VERSION: 51;
2
2
  export declare namespace GeneratedAsset {
3
3
  /**
4
4
  * One asset a record holds, as a read reports it.
@@ -668,6 +668,13 @@ export declare namespace GeneratedCommentList {
668
668
  }
669
669
  export type CommentList = GeneratedCommentList.CommentList;
670
670
  export declare namespace GeneratedCommentWritten {
671
+ /**
672
+ * One item, qualified by the source it came from.
673
+ *
674
+ * Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
675
+ * so a native id may contain colons freely.
676
+ */
677
+ type GlobalId = string;
671
678
  /**
672
679
  * One mutation of an expected write.
673
680
  */
@@ -708,6 +715,16 @@ export declare namespace GeneratedCommentWritten {
708
715
  outcome: "unknown";
709
716
  [k: string]: any;
710
717
  });
718
+ /**
719
+ * How much a task matters, in the one vocabulary every source is normalised into.
720
+ *
721
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
722
+ * exactly these, and a source whose backend has none of its own maps its representation
723
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
724
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
725
+ * from nothing by the value alone.
726
+ */
727
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
711
728
  /**
712
729
  * What `task comment add` and `task comment edit` answer with: the comment as its source now
713
730
  * holds it — its id and its address among it, so a caller never needs a lookup for either —
@@ -738,6 +755,11 @@ export declare namespace GeneratedCommentWritten {
738
755
  * the qualified id of the task it is on, so its own id needs no source of its own.
739
756
  */
740
757
  id: string;
758
+ /**
759
+ * The qualified id of the task the comment was added to — present on `task comment add`'s
760
+ * answer, so a caller records what it commented on from the answer alone.
761
+ */
762
+ item?: (GlobalId | null);
741
763
  /**
742
764
  * The comment this one is a copy of, at its origin — present only on a comment a copy
743
765
  * wrote, and absent on every comment a person wrote where it is.
@@ -812,19 +834,54 @@ export declare namespace GeneratedCommentWritten {
812
834
  [k: string]: any;
813
835
  }
814
836
  /**
815
- * What each mutation of an expected write came to, built from the mutations' own responses.
837
+ * What an item holds once a write is done, read off the write's own responses — and, for an
838
+ * expected write, what each mutation it sent came to.
839
+ *
840
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
841
+ * field the write kept is what the read before it held. `version` is `null` where the source
842
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
843
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
844
+ * then give.
816
845
  */
817
846
  interface WriteResult {
818
847
  /**
819
- * One per mutation sent, in the order sent.
848
+ * One per mutation an expected write sent, in the order sent — absent for a write made
849
+ * without `--expect`.
850
+ */
851
+ parts?: (WritePart[] | null);
852
+ /**
853
+ * A task's priority after the write — `null` for a project or a document, which carry
854
+ * none, and where an expected write that failed cannot say.
820
855
  */
821
- parts: WritePart[];
856
+ priority?: (Priority | null);
857
+ /**
858
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
859
+ * document, which has none, and where an expected write that failed cannot say.
860
+ */
861
+ status?: (Status | null);
822
862
  /**
823
- * The task's version after the write, where the last response determines it.
863
+ * The item's version after the write, where the write's responses determine it.
824
864
  */
825
865
  version?: (string | null);
826
866
  [k: string]: any;
827
867
  }
868
+ /**
869
+ * A source's status, kept in both normalised and original form.
870
+ *
871
+ * `category` is what every filter compares against; `name` is the source's own
872
+ * wording, preserved so display never flattens "In Review" into "In Progress".
873
+ */
874
+ interface Status {
875
+ /**
876
+ * The normalised value filters compare against.
877
+ */
878
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
879
+ /**
880
+ * The source's own label for this status.
881
+ */
882
+ name: string;
883
+ [k: string]: any;
884
+ }
828
885
  /**
829
886
  * What one command spent, summed over the sources in it that meter their own requests.
830
887
  *
@@ -1384,7 +1441,7 @@ export declare namespace GeneratedCopyAction {
1384
1441
  /**
1385
1442
  * Which rule found it.
1386
1443
  */
1387
- via: ("target-task" | "link" | "origin" | "scan" | "match");
1444
+ via: ("target-task" | "link" | "origin" | "scan" | "match" | "intent");
1388
1445
  [k: string]: any;
1389
1446
  } | {
1390
1447
  action: "unchanged";
@@ -1415,7 +1472,7 @@ export declare namespace GeneratedCopyAction {
1415
1472
  /**
1416
1473
  * Which rule found it.
1417
1474
  */
1418
- via: ("target-task" | "link" | "origin" | "scan" | "match");
1475
+ via: ("target-task" | "link" | "origin" | "scan" | "match" | "intent");
1419
1476
  [k: string]: any;
1420
1477
  } | {
1421
1478
  action: "orphaned";
@@ -1538,6 +1595,11 @@ export declare namespace GeneratedCopyOutcome {
1538
1595
  * mutations.
1539
1596
  */
1540
1597
  fallback?: (WriteFallback | null);
1598
+ /**
1599
+ * What the counterpart held, as the copy's read of it before writing found it — present
1600
+ * only on an item the copy refused after that read, such as `destination-status`.
1601
+ */
1602
+ held?: (WriteResult | null);
1541
1603
  /**
1542
1604
  * Which source a routed copy placed it in, and the index of the route entry that
1543
1605
  * matched — `null` there when none did.
@@ -1549,8 +1611,16 @@ export declare namespace GeneratedCopyOutcome {
1549
1611
  */
1550
1612
  placed?: (Placement | null);
1551
1613
  /**
1552
- * What each mutation the write sent came to, and the version it left the task at — for a
1553
- * source that reports its writes' parts.
1614
+ * What `--when-destination-priority` found the counterpart's priority at, and whether
1615
+ * that met it — present only when the copy was given the condition and this item was an
1616
+ * update of a task.
1617
+ */
1618
+ priority_condition?: (PriorityCondition | null);
1619
+ /**
1620
+ * What the item holds once the write is done — its version, status and priority — and,
1621
+ * for a write made with `--expect` on a source that reports its writes' parts, what each
1622
+ * mutation it sent came to. Absent for a dry run and for an item nothing was written to
1623
+ * or read of.
1554
1624
  */
1555
1625
  result?: (WriteResult | null);
1556
1626
  /**
@@ -1565,6 +1635,12 @@ export declare namespace GeneratedCopyOutcome {
1565
1635
  * read included.
1566
1636
  */
1567
1637
  spent?: (Spent | null);
1638
+ /**
1639
+ * What `--when-destination-status` found the counterpart's status at, and whether that
1640
+ * met it — present only when the copy was given the condition and this item was an update
1641
+ * of a task, a refused one included.
1642
+ */
1643
+ status_condition?: (StatusCondition | null);
1568
1644
  [k: string]: any;
1569
1645
  } & ({
1570
1646
  action: "created";
@@ -1612,7 +1688,7 @@ export declare namespace GeneratedCopyOutcome {
1612
1688
  /**
1613
1689
  * Which rule found it.
1614
1690
  */
1615
- via: ("target-task" | "link" | "origin" | "scan" | "match");
1691
+ via: ("target-task" | "link" | "origin" | "scan" | "match" | "intent");
1616
1692
  [k: string]: any;
1617
1693
  } | {
1618
1694
  action: "unchanged";
@@ -1643,7 +1719,7 @@ export declare namespace GeneratedCopyOutcome {
1643
1719
  /**
1644
1720
  * Which rule found it.
1645
1721
  */
1646
- via: ("target-task" | "link" | "origin" | "scan" | "match");
1722
+ via: ("target-task" | "link" | "origin" | "scan" | "match" | "intent");
1647
1723
  [k: string]: any;
1648
1724
  } | {
1649
1725
  action: "orphaned";
@@ -1707,6 +1783,16 @@ export declare namespace GeneratedCopyOutcome {
1707
1783
  outcome: "unknown";
1708
1784
  [k: string]: any;
1709
1785
  });
1786
+ /**
1787
+ * How much a task matters, in the one vocabulary every source is normalised into.
1788
+ *
1789
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
1790
+ * exactly these, and a source whose backend has none of its own maps its representation
1791
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
1792
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
1793
+ * from nothing by the value alone.
1794
+ */
1795
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
1710
1796
  /**
1711
1797
  * One item, qualified by the source it came from.
1712
1798
  *
@@ -1737,6 +1823,55 @@ export declare namespace GeneratedCopyOutcome {
1737
1823
  reason: string;
1738
1824
  [k: string]: any;
1739
1825
  }
1826
+ /**
1827
+ * What an item holds once a write is done, read off the write's own responses — and, for an
1828
+ * expected write, what each mutation it sent came to.
1829
+ *
1830
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
1831
+ * field the write kept is what the read before it held. `version` is `null` where the source
1832
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
1833
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
1834
+ * then give.
1835
+ */
1836
+ interface WriteResult {
1837
+ /**
1838
+ * One per mutation an expected write sent, in the order sent — absent for a write made
1839
+ * without `--expect`.
1840
+ */
1841
+ parts?: (WritePart[] | null);
1842
+ /**
1843
+ * A task's priority after the write — `null` for a project or a document, which carry
1844
+ * none, and where an expected write that failed cannot say.
1845
+ */
1846
+ priority?: (Priority | null);
1847
+ /**
1848
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
1849
+ * document, which has none, and where an expected write that failed cannot say.
1850
+ */
1851
+ status?: (Status | null);
1852
+ /**
1853
+ * The item's version after the write, where the write's responses determine it.
1854
+ */
1855
+ version?: (string | null);
1856
+ [k: string]: any;
1857
+ }
1858
+ /**
1859
+ * A source's status, kept in both normalised and original form.
1860
+ *
1861
+ * `category` is what every filter compares against; `name` is the source's own
1862
+ * wording, preserved so display never flattens "In Review" into "In Progress".
1863
+ */
1864
+ interface Status {
1865
+ /**
1866
+ * The normalised value filters compare against.
1867
+ */
1868
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
1869
+ /**
1870
+ * The source's own label for this status.
1871
+ */
1872
+ name: string;
1873
+ [k: string]: any;
1874
+ }
1740
1875
  /**
1741
1876
  * Where one item written to a source lands, and which of its routes put it there.
1742
1877
  *
@@ -1756,17 +1891,17 @@ export declare namespace GeneratedCopyOutcome {
1756
1891
  [k: string]: any;
1757
1892
  }
1758
1893
  /**
1759
- * What each mutation of an expected write came to, built from the mutations' own responses.
1894
+ * What a guarded copy found a counterpart's priority at, and whether that met the condition.
1760
1895
  */
1761
- interface WriteResult {
1896
+ interface PriorityCondition {
1762
1897
  /**
1763
- * One per mutation sent, in the order sent.
1898
+ * The counterpart's priority, as the copy's own pre-write read held it.
1764
1899
  */
1765
- parts: WritePart[];
1900
+ held: ("none" | "urgent" | "high" | "medium" | "low");
1766
1901
  /**
1767
- * The task's version after the write, where the last response determines it.
1902
+ * Whether that priority is one the condition names.
1768
1903
  */
1769
- version?: (string | null);
1904
+ met: boolean;
1770
1905
  [k: string]: any;
1771
1906
  }
1772
1907
  /**
@@ -1812,6 +1947,20 @@ export declare namespace GeneratedCopyOutcome {
1812
1947
  unit: string;
1813
1948
  [k: string]: any;
1814
1949
  }
1950
+ /**
1951
+ * What a guarded copy found a counterpart's status at, and whether that met the condition.
1952
+ */
1953
+ interface StatusCondition {
1954
+ /**
1955
+ * The counterpart's status category, as the copy's own pre-write read held it.
1956
+ */
1957
+ held: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
1958
+ /**
1959
+ * Whether that category is one the condition names.
1960
+ */
1961
+ met: boolean;
1962
+ [k: string]: any;
1963
+ }
1815
1964
  /**
1816
1965
  * What a `--comments` copy did to one task's comments at the destination.
1817
1966
  *
@@ -1961,6 +2110,11 @@ export declare namespace GeneratedCopyReport {
1961
2110
  * mutations.
1962
2111
  */
1963
2112
  fallback?: (WriteFallback | null);
2113
+ /**
2114
+ * What the counterpart held, as the copy's read of it before writing found it — present
2115
+ * only on an item the copy refused after that read, such as `destination-status`.
2116
+ */
2117
+ held?: (WriteResult | null);
1964
2118
  /**
1965
2119
  * Which source a routed copy placed it in, and the index of the route entry that
1966
2120
  * matched — `null` there when none did.
@@ -1972,8 +2126,16 @@ export declare namespace GeneratedCopyReport {
1972
2126
  */
1973
2127
  placed?: (Placement | null);
1974
2128
  /**
1975
- * What each mutation the write sent came to, and the version it left the task at — for a
1976
- * source that reports its writes' parts.
2129
+ * What `--when-destination-priority` found the counterpart's priority at, and whether
2130
+ * that met it — present only when the copy was given the condition and this item was an
2131
+ * update of a task.
2132
+ */
2133
+ priority_condition?: (PriorityCondition | null);
2134
+ /**
2135
+ * What the item holds once the write is done — its version, status and priority — and,
2136
+ * for a write made with `--expect` on a source that reports its writes' parts, what each
2137
+ * mutation it sent came to. Absent for a dry run and for an item nothing was written to
2138
+ * or read of.
1977
2139
  */
1978
2140
  result?: (WriteResult | null);
1979
2141
  /**
@@ -1988,6 +2150,12 @@ export declare namespace GeneratedCopyReport {
1988
2150
  * read included.
1989
2151
  */
1990
2152
  spent?: (Spent | null);
2153
+ /**
2154
+ * What `--when-destination-status` found the counterpart's status at, and whether that
2155
+ * met it — present only when the copy was given the condition and this item was an update
2156
+ * of a task, a refused one included.
2157
+ */
2158
+ status_condition?: (StatusCondition | null);
1991
2159
  [k: string]: any;
1992
2160
  } & CopyOutcome1);
1993
2161
  /**
@@ -2030,6 +2198,16 @@ export declare namespace GeneratedCopyReport {
2030
2198
  outcome: "unknown";
2031
2199
  [k: string]: any;
2032
2200
  });
2201
+ /**
2202
+ * How much a task matters, in the one vocabulary every source is normalised into.
2203
+ *
2204
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
2205
+ * exactly these, and a source whose backend has none of its own maps its representation
2206
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
2207
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
2208
+ * from nothing by the value alone.
2209
+ */
2210
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
2033
2211
  type CopyOutcome1 = ({
2034
2212
  action: "created";
2035
2213
  /**
@@ -2076,7 +2254,7 @@ export declare namespace GeneratedCopyReport {
2076
2254
  /**
2077
2255
  * Which rule found it.
2078
2256
  */
2079
- via: ("target-task" | "link" | "origin" | "scan" | "match");
2257
+ via: ("target-task" | "link" | "origin" | "scan" | "match" | "intent");
2080
2258
  [k: string]: any;
2081
2259
  } | {
2082
2260
  action: "unchanged";
@@ -2107,7 +2285,7 @@ export declare namespace GeneratedCopyReport {
2107
2285
  /**
2108
2286
  * Which rule found it.
2109
2287
  */
2110
- via: ("target-task" | "link" | "origin" | "scan" | "match");
2288
+ via: ("target-task" | "link" | "origin" | "scan" | "match" | "intent");
2111
2289
  [k: string]: any;
2112
2290
  } | {
2113
2291
  action: "orphaned";
@@ -2250,6 +2428,55 @@ export declare namespace GeneratedCopyReport {
2250
2428
  reason: string;
2251
2429
  [k: string]: any;
2252
2430
  }
2431
+ /**
2432
+ * What an item holds once a write is done, read off the write's own responses — and, for an
2433
+ * expected write, what each mutation it sent came to.
2434
+ *
2435
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
2436
+ * field the write kept is what the read before it held. `version` is `null` where the source
2437
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
2438
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
2439
+ * then give.
2440
+ */
2441
+ interface WriteResult {
2442
+ /**
2443
+ * One per mutation an expected write sent, in the order sent — absent for a write made
2444
+ * without `--expect`.
2445
+ */
2446
+ parts?: (WritePart[] | null);
2447
+ /**
2448
+ * A task's priority after the write — `null` for a project or a document, which carry
2449
+ * none, and where an expected write that failed cannot say.
2450
+ */
2451
+ priority?: (Priority | null);
2452
+ /**
2453
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
2454
+ * document, which has none, and where an expected write that failed cannot say.
2455
+ */
2456
+ status?: (Status | null);
2457
+ /**
2458
+ * The item's version after the write, where the write's responses determine it.
2459
+ */
2460
+ version?: (string | null);
2461
+ [k: string]: any;
2462
+ }
2463
+ /**
2464
+ * A source's status, kept in both normalised and original form.
2465
+ *
2466
+ * `category` is what every filter compares against; `name` is the source's own
2467
+ * wording, preserved so display never flattens "In Review" into "In Progress".
2468
+ */
2469
+ interface Status {
2470
+ /**
2471
+ * The normalised value filters compare against.
2472
+ */
2473
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
2474
+ /**
2475
+ * The source's own label for this status.
2476
+ */
2477
+ name: string;
2478
+ [k: string]: any;
2479
+ }
2253
2480
  /**
2254
2481
  * Where one item written to a source lands, and which of its routes put it there.
2255
2482
  *
@@ -2269,17 +2496,23 @@ export declare namespace GeneratedCopyReport {
2269
2496
  [k: string]: any;
2270
2497
  }
2271
2498
  /**
2272
- * What each mutation of an expected write came to, built from the mutations' own responses.
2499
+ * What a guarded copy found a counterpart's priority at, and whether that met the condition.
2273
2500
  */
2274
- interface WriteResult {
2501
+ interface PriorityCondition {
2275
2502
  /**
2276
- * One per mutation sent, in the order sent.
2503
+ * How much a task matters, in the one vocabulary every source is normalised into.
2504
+ *
2505
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
2506
+ * exactly these, and a source whose backend has none of its own maps its representation
2507
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
2508
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
2509
+ * from nothing by the value alone.
2277
2510
  */
2278
- parts: WritePart[];
2511
+ held: ("none" | "urgent" | "high" | "medium" | "low");
2279
2512
  /**
2280
- * The task's version after the write, where the last response determines it.
2513
+ * Whether that priority is one the condition names.
2281
2514
  */
2282
- version?: (string | null);
2515
+ met: boolean;
2283
2516
  [k: string]: any;
2284
2517
  }
2285
2518
  /**
@@ -2325,6 +2558,20 @@ export declare namespace GeneratedCopyReport {
2325
2558
  unit: string;
2326
2559
  [k: string]: any;
2327
2560
  }
2561
+ /**
2562
+ * What a guarded copy found a counterpart's status at, and whether that met the condition.
2563
+ */
2564
+ interface StatusCondition {
2565
+ /**
2566
+ * The counterpart's status category, as the copy's own pre-write read held it.
2567
+ */
2568
+ held: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
2569
+ /**
2570
+ * Whether that category is one the condition names.
2571
+ */
2572
+ met: boolean;
2573
+ [k: string]: any;
2574
+ }
2328
2575
  /**
2329
2576
  * What a `--comments` copy did to one task's comments at the destination.
2330
2577
  *
@@ -2394,9 +2641,36 @@ export declare namespace GeneratedCopyVia {
2394
2641
  * recording it as its origin, and the caller's `--match-by`. When none answers, the item is created and says
2395
2642
  * so as [`NoCounterpart`] instead.
2396
2643
  */
2397
- type CopyVia = ("target-task" | "link" | "origin" | "scan" | "match");
2644
+ type CopyVia = ("target-task" | "link" | "origin" | "scan" | "match" | "intent");
2398
2645
  }
2399
2646
  export type CopyVia = GeneratedCopyVia.CopyVia;
2647
+ export declare namespace GeneratedCreateSettings {
2648
+ /**
2649
+ * How a copy out of one source keeps a create safe to retry: its two settings, each in whole
2650
+ * seconds, read off the source's own block beside `cache` and `routes`.
2651
+ *
2652
+ * `create_lease_seconds` is how long the intent a copy records on the item it copies, at
2653
+ * `onetaskgraph.creating`, stays its own before another attempt may take it over — read off
2654
+ * the copy's **source**. `create_quiescence_seconds` is how long after an intent was first
2655
+ * taken a retry waits for an earlier attempt's create to become listed before creating again
2656
+ * — read off the copy's **destination**, and only where that destination's lookup by create
2657
+ * key can lag a create. Both default to 120 and are left out of a configuration that does not
2658
+ * set them.
2659
+ */
2660
+ interface CreateSettings {
2661
+ /**
2662
+ * Seconds an intent to create stays the holder's own; 120 when absent.
2663
+ */
2664
+ create_lease_seconds?: (number | null);
2665
+ /**
2666
+ * Seconds after an intent was first taken that a retry waits for the earlier create to be
2667
+ * listed; 120 when absent.
2668
+ */
2669
+ create_quiescence_seconds?: (number | null);
2670
+ [k: string]: any;
2671
+ }
2672
+ }
2673
+ export type CreateSettings = GeneratedCreateSettings.CreateSettings;
2400
2674
  export declare namespace GeneratedCredentialLayer {
2401
2675
  /**
2402
2676
  * Which layer answered for one credential name.
@@ -2445,6 +2719,16 @@ export declare namespace GeneratedDeletedComment {
2445
2719
  outcome: "unknown";
2446
2720
  [k: string]: any;
2447
2721
  });
2722
+ /**
2723
+ * How much a task matters, in the one vocabulary every source is normalised into.
2724
+ *
2725
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
2726
+ * exactly these, and a source whose backend has none of its own maps its representation
2727
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
2728
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
2729
+ * from nothing by the value alone.
2730
+ */
2731
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
2448
2732
  /**
2449
2733
  * What `task comment delete` answers with: the id of the comment it removed.
2450
2734
  */
@@ -2485,19 +2769,54 @@ export declare namespace GeneratedDeletedComment {
2485
2769
  [k: string]: any;
2486
2770
  }
2487
2771
  /**
2488
- * What each mutation of an expected write came to, built from the mutations' own responses.
2772
+ * What an item holds once a write is done, read off the write's own responses — and, for an
2773
+ * expected write, what each mutation it sent came to.
2774
+ *
2775
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
2776
+ * field the write kept is what the read before it held. `version` is `null` where the source
2777
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
2778
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
2779
+ * then give.
2489
2780
  */
2490
2781
  interface WriteResult {
2491
2782
  /**
2492
- * One per mutation sent, in the order sent.
2783
+ * One per mutation an expected write sent, in the order sent — absent for a write made
2784
+ * without `--expect`.
2785
+ */
2786
+ parts?: (WritePart[] | null);
2787
+ /**
2788
+ * A task's priority after the write — `null` for a project or a document, which carry
2789
+ * none, and where an expected write that failed cannot say.
2493
2790
  */
2494
- parts: WritePart[];
2791
+ priority?: (Priority | null);
2792
+ /**
2793
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
2794
+ * document, which has none, and where an expected write that failed cannot say.
2795
+ */
2796
+ status?: (Status | null);
2495
2797
  /**
2496
- * The task's version after the write, where the last response determines it.
2798
+ * The item's version after the write, where the write's responses determine it.
2497
2799
  */
2498
2800
  version?: (string | null);
2499
2801
  [k: string]: any;
2500
2802
  }
2803
+ /**
2804
+ * A source's status, kept in both normalised and original form.
2805
+ *
2806
+ * `category` is what every filter compares against; `name` is the source's own
2807
+ * wording, preserved so display never flattens "In Review" into "In Progress".
2808
+ */
2809
+ interface Status {
2810
+ /**
2811
+ * The normalised value filters compare against.
2812
+ */
2813
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
2814
+ /**
2815
+ * The source's own label for this status.
2816
+ */
2817
+ name: string;
2818
+ [k: string]: any;
2819
+ }
2501
2820
  /**
2502
2821
  * What one command spent, summed over the sources in it that meter their own requests.
2503
2822
  *
@@ -3584,6 +3903,16 @@ export declare namespace GeneratedExpectedWrite {
3584
3903
  outcome: "unknown";
3585
3904
  [k: string]: any;
3586
3905
  });
3906
+ /**
3907
+ * How much a task matters, in the one vocabulary every source is normalised into.
3908
+ *
3909
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
3910
+ * exactly these, and a source whose backend has none of its own maps its representation
3911
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
3912
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
3913
+ * from nothing by the value alone.
3914
+ */
3915
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
3587
3916
  /**
3588
3917
  * What a write that expected a version of its task came to: the `result`, `fallback` and
3589
3918
  * `spent` members of its JSON.
@@ -3595,8 +3924,10 @@ export declare namespace GeneratedExpectedWrite {
3595
3924
  */
3596
3925
  fallback?: (WriteFallback | null);
3597
3926
  /**
3598
- * What each mutation the write sent came to, and the version it left the task at — for a
3599
- * source that reports its writes' parts.
3927
+ * What the item holds once the write is done — its version, status and priority — and,
3928
+ * for a write made with `--expect` on a source that reports its writes' parts, what each
3929
+ * mutation it sent came to. Absent for a dry run and for an item nothing was written to
3930
+ * or read of.
3600
3931
  */
3601
3932
  result?: (WriteResult | null);
3602
3933
  /**
@@ -3621,19 +3952,54 @@ export declare namespace GeneratedExpectedWrite {
3621
3952
  [k: string]: any;
3622
3953
  }
3623
3954
  /**
3624
- * What each mutation of an expected write came to, built from the mutations' own responses.
3955
+ * What an item holds once a write is done, read off the write's own responses — and, for an
3956
+ * expected write, what each mutation it sent came to.
3957
+ *
3958
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
3959
+ * field the write kept is what the read before it held. `version` is `null` where the source
3960
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
3961
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
3962
+ * then give.
3625
3963
  */
3626
3964
  interface WriteResult {
3627
3965
  /**
3628
- * One per mutation sent, in the order sent.
3966
+ * One per mutation an expected write sent, in the order sent — absent for a write made
3967
+ * without `--expect`.
3968
+ */
3969
+ parts?: (WritePart[] | null);
3970
+ /**
3971
+ * A task's priority after the write — `null` for a project or a document, which carry
3972
+ * none, and where an expected write that failed cannot say.
3629
3973
  */
3630
- parts: WritePart[];
3974
+ priority?: (Priority | null);
3975
+ /**
3976
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
3977
+ * document, which has none, and where an expected write that failed cannot say.
3978
+ */
3979
+ status?: (Status | null);
3631
3980
  /**
3632
- * The task's version after the write, where the last response determines it.
3981
+ * The item's version after the write, where the write's responses determine it.
3633
3982
  */
3634
3983
  version?: (string | null);
3635
3984
  [k: string]: any;
3636
3985
  }
3986
+ /**
3987
+ * A source's status, kept in both normalised and original form.
3988
+ *
3989
+ * `category` is what every filter compares against; `name` is the source's own
3990
+ * wording, preserved so display never flattens "In Review" into "In Progress".
3991
+ */
3992
+ interface Status {
3993
+ /**
3994
+ * The normalised value filters compare against.
3995
+ */
3996
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
3997
+ /**
3998
+ * The source's own label for this status.
3999
+ */
4000
+ name: string;
4001
+ [k: string]: any;
4002
+ }
3637
4003
  /**
3638
4004
  * What one command spent, summed over the sources in it that meter their own requests.
3639
4005
  *
@@ -3773,6 +4139,16 @@ export declare namespace GeneratedFailureDocument {
3773
4139
  outcome: "unknown";
3774
4140
  [k: string]: any;
3775
4141
  });
4142
+ /**
4143
+ * How much a task matters, in the one vocabulary every source is normalised into.
4144
+ *
4145
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
4146
+ * exactly these, and a source whose backend has none of its own maps its representation
4147
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
4148
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
4149
+ * from nothing by the value alone.
4150
+ */
4151
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
3776
4152
  /**
3777
4153
  * The document a command writes to standard output when it exits `1` under machine
3778
4154
  * output: one object whose single member is the [`Failure`].
@@ -3788,8 +4164,16 @@ export declare namespace GeneratedFailureDocument {
3788
4164
  */
3789
4165
  fallback?: (WriteFallback | null);
3790
4166
  /**
3791
- * What each mutation the write sent came to, and the version it left the task at — for a
3792
- * source that reports its writes' parts.
4167
+ * What the destination item a copy refused to write held, as the copy's read of it
4168
+ * before writing found it — present only for a refusal made after that read, such as
4169
+ * `target-task-origin`.
4170
+ */
4171
+ held?: (WriteResult | null);
4172
+ /**
4173
+ * What the item holds once the write is done — its version, status and priority — and,
4174
+ * for a write made with `--expect` on a source that reports its writes' parts, what each
4175
+ * mutation it sent came to. Absent for a dry run and for an item nothing was written to
4176
+ * or read of.
3793
4177
  */
3794
4178
  result?: (WriteResult | null);
3795
4179
  /**
@@ -3842,17 +4226,52 @@ export declare namespace GeneratedFailureDocument {
3842
4226
  [k: string]: any;
3843
4227
  }
3844
4228
  /**
3845
- * What each mutation of an expected write came to, built from the mutations' own responses.
4229
+ * What an item holds once a write is done, read off the write's own responses — and, for an
4230
+ * expected write, what each mutation it sent came to.
4231
+ *
4232
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
4233
+ * field the write kept is what the read before it held. `version` is `null` where the source
4234
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
4235
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
4236
+ * then give.
4237
+ */
4238
+ interface WriteResult {
4239
+ /**
4240
+ * One per mutation an expected write sent, in the order sent — absent for a write made
4241
+ * without `--expect`.
4242
+ */
4243
+ parts?: (WritePart[] | null);
4244
+ /**
4245
+ * A task's priority after the write — `null` for a project or a document, which carry
4246
+ * none, and where an expected write that failed cannot say.
4247
+ */
4248
+ priority?: (Priority | null);
4249
+ /**
4250
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
4251
+ * document, which has none, and where an expected write that failed cannot say.
4252
+ */
4253
+ status?: (Status | null);
4254
+ /**
4255
+ * The item's version after the write, where the write's responses determine it.
4256
+ */
4257
+ version?: (string | null);
4258
+ [k: string]: any;
4259
+ }
4260
+ /**
4261
+ * A source's status, kept in both normalised and original form.
4262
+ *
4263
+ * `category` is what every filter compares against; `name` is the source's own
4264
+ * wording, preserved so display never flattens "In Review" into "In Progress".
3846
4265
  */
3847
- interface WriteResult {
4266
+ interface Status {
3848
4267
  /**
3849
- * One per mutation sent, in the order sent.
4268
+ * The normalised value filters compare against.
3850
4269
  */
3851
- parts: WritePart[];
4270
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
3852
4271
  /**
3853
- * The task's version after the write, where the last response determines it.
4272
+ * The source's own label for this status.
3854
4273
  */
3855
- version?: (string | null);
4274
+ name: string;
3856
4275
  [k: string]: any;
3857
4276
  }
3858
4277
  /**
@@ -4135,6 +4554,100 @@ export declare namespace GeneratedHeldTask {
4135
4554
  }
4136
4555
  }
4137
4556
  export type HeldTask = GeneratedHeldTask.HeldTask;
4557
+ export declare namespace GeneratedHumanTaskProjected {
4558
+ /**
4559
+ * A durable projection's bound tracker identity, suitable for a directly clickable card.
4560
+ */
4561
+ interface HumanTaskProjected {
4562
+ /**
4563
+ * The resolved destination project.
4564
+ */
4565
+ project: string;
4566
+ /**
4567
+ * The resolved configured source.
4568
+ */
4569
+ source: string;
4570
+ /**
4571
+ * The qualified task identity.
4572
+ */
4573
+ task: string;
4574
+ /**
4575
+ * The canonical tracker issue URL.
4576
+ */
4577
+ url: string;
4578
+ }
4579
+ }
4580
+ export type HumanTaskProjected = GeneratedHumanTaskProjected.HumanTaskProjected;
4581
+ export declare namespace GeneratedHumanTaskProjection {
4582
+ /**
4583
+ * A repository identified by its normalized origin, without a URL scheme or `.git` suffix.
4584
+ */
4585
+ type Repository = string;
4586
+ /**
4587
+ * Version 1 of the general human task projection request.
4588
+ */
4589
+ interface HumanTaskProjection {
4590
+ /**
4591
+ * The visible task content.
4592
+ */
4593
+ body: string;
4594
+ /**
4595
+ * The external idempotency identity, stable across producer retries.
4596
+ */
4597
+ item_id: string;
4598
+ owner: ProjectionOwner;
4599
+ /**
4600
+ * Its priority, using the existing plugin API serialization.
4601
+ */
4602
+ priority: ("none" | "urgent" | "high" | "medium" | "low");
4603
+ /**
4604
+ * The plan's resolved destination project, or null for a configured human project.
4605
+ */
4606
+ project: (string | null);
4607
+ /**
4608
+ * An optional dismissal reason. Omission and null both preserve absence.
4609
+ */
4610
+ reason?: (string | null);
4611
+ /**
4612
+ * Normalized repository origins whose work this item concerns.
4613
+ */
4614
+ repositories: Repository[];
4615
+ /**
4616
+ * The wire contract version, always 1.
4617
+ */
4618
+ schema_version: 1;
4619
+ /**
4620
+ * The configured source through which placement is resolved.
4621
+ */
4622
+ source: string;
4623
+ /**
4624
+ * The desired lifecycle.
4625
+ */
4626
+ state: ("open" | "completed" | "dismissed");
4627
+ /**
4628
+ * The visible task title.
4629
+ */
4630
+ title: string;
4631
+ }
4632
+ /**
4633
+ * The producer that owns the intent.
4634
+ */
4635
+ interface ProjectionOwner {
4636
+ /**
4637
+ * The owning plan, when applicable.
4638
+ */
4639
+ plan: (string | null);
4640
+ /**
4641
+ * The owning run, when applicable.
4642
+ */
4643
+ run: (string | null);
4644
+ /**
4645
+ * The owning session.
4646
+ */
4647
+ session: string;
4648
+ }
4649
+ }
4650
+ export type HumanTaskProjection = GeneratedHumanTaskProjection.HumanTaskProjection;
4138
4651
  export declare namespace GeneratedIssueCompleted {
4139
4652
  /**
4140
4653
  * What keeping one delivered task in step with one deliverer came to.
@@ -4914,13 +5427,19 @@ export declare namespace GeneratedLocateReport {
4914
5427
  /**
4915
5428
  * Which rule found it, as a copy's report spells it.
4916
5429
  */
4917
- via: ("target-task" | "link" | "origin" | "scan" | "match");
5430
+ via: ("target-task" | "link" | "origin" | "scan" | "match" | "intent");
4918
5431
  [k: string]: any;
4919
5432
  }
4920
5433
  /**
4921
5434
  * Where a create would file a task's issue.
4922
5435
  */
4923
5436
  interface CreatesIn {
5437
+ /**
5438
+ * Why the destination's own policy on where it creates — a GitHub Projects source's
5439
+ * `creation_owners` — would refuse a create there, as the copy's refusal says it; absent
5440
+ * when it would not. The locate itself never fails for it.
5441
+ */
5442
+ refused?: (string | null);
4924
5443
  /**
4925
5444
  * The repository, as a normalized origin `host/owner/name`.
4926
5445
  */
@@ -5058,6 +5577,16 @@ export declare namespace GeneratedMetadataSet {
5058
5577
  outcome: "unknown";
5059
5578
  [k: string]: any;
5060
5579
  });
5580
+ /**
5581
+ * How much a task matters, in the one vocabulary every source is normalised into.
5582
+ *
5583
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
5584
+ * exactly these, and a source whose backend has none of its own maps its representation
5585
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
5586
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
5587
+ * from nothing by the value alone.
5588
+ */
5589
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
5061
5590
  /**
5062
5591
  * What `task`, `project` and `document metadata set` answer with.
5063
5592
  */
@@ -5111,19 +5640,54 @@ export declare namespace GeneratedMetadataSet {
5111
5640
  [k: string]: any;
5112
5641
  }
5113
5642
  /**
5114
- * What each mutation of an expected write came to, built from the mutations' own responses.
5643
+ * What an item holds once a write is done, read off the write's own responses — and, for an
5644
+ * expected write, what each mutation it sent came to.
5645
+ *
5646
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
5647
+ * field the write kept is what the read before it held. `version` is `null` where the source
5648
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
5649
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
5650
+ * then give.
5115
5651
  */
5116
5652
  interface WriteResult {
5117
5653
  /**
5118
- * One per mutation sent, in the order sent.
5654
+ * One per mutation an expected write sent, in the order sent — absent for a write made
5655
+ * without `--expect`.
5656
+ */
5657
+ parts?: (WritePart[] | null);
5658
+ /**
5659
+ * A task's priority after the write — `null` for a project or a document, which carry
5660
+ * none, and where an expected write that failed cannot say.
5661
+ */
5662
+ priority?: (Priority | null);
5663
+ /**
5664
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
5665
+ * document, which has none, and where an expected write that failed cannot say.
5119
5666
  */
5120
- parts: WritePart[];
5667
+ status?: (Status | null);
5121
5668
  /**
5122
- * The task's version after the write, where the last response determines it.
5669
+ * The item's version after the write, where the write's responses determine it.
5123
5670
  */
5124
5671
  version?: (string | null);
5125
5672
  [k: string]: any;
5126
5673
  }
5674
+ /**
5675
+ * A source's status, kept in both normalised and original form.
5676
+ *
5677
+ * `category` is what every filter compares against; `name` is the source's own
5678
+ * wording, preserved so display never flattens "In Review" into "In Progress".
5679
+ */
5680
+ interface Status {
5681
+ /**
5682
+ * The normalised value filters compare against.
5683
+ */
5684
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
5685
+ /**
5686
+ * The source's own label for this status.
5687
+ */
5688
+ name: string;
5689
+ [k: string]: any;
5690
+ }
5127
5691
  /**
5128
5692
  * What one command spent, summed over the sources in it that meter their own requests.
5129
5693
  *
@@ -11512,6 +12076,16 @@ export declare namespace GeneratedTaskContentSet {
11512
12076
  outcome: "unknown";
11513
12077
  [k: string]: any;
11514
12078
  });
12079
+ /**
12080
+ * How much a task matters, in the one vocabulary every source is normalised into.
12081
+ *
12082
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
12083
+ * exactly these, and a source whose backend has none of its own maps its representation
12084
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
12085
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
12086
+ * from nothing by the value alone.
12087
+ */
12088
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
11515
12089
  /**
11516
12090
  * What `task content set` answers with.
11517
12091
  */
@@ -11559,19 +12133,54 @@ export declare namespace GeneratedTaskContentSet {
11559
12133
  [k: string]: any;
11560
12134
  }
11561
12135
  /**
11562
- * What each mutation of an expected write came to, built from the mutations' own responses.
12136
+ * What an item holds once a write is done, read off the write's own responses — and, for an
12137
+ * expected write, what each mutation it sent came to.
12138
+ *
12139
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
12140
+ * field the write kept is what the read before it held. `version` is `null` where the source
12141
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
12142
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
12143
+ * then give.
11563
12144
  */
11564
12145
  interface WriteResult {
11565
12146
  /**
11566
- * One per mutation sent, in the order sent.
12147
+ * One per mutation an expected write sent, in the order sent — absent for a write made
12148
+ * without `--expect`.
12149
+ */
12150
+ parts?: (WritePart[] | null);
12151
+ /**
12152
+ * A task's priority after the write — `null` for a project or a document, which carry
12153
+ * none, and where an expected write that failed cannot say.
12154
+ */
12155
+ priority?: (Priority | null);
12156
+ /**
12157
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
12158
+ * document, which has none, and where an expected write that failed cannot say.
11567
12159
  */
11568
- parts: WritePart[];
12160
+ status?: (Status | null);
11569
12161
  /**
11570
- * The task's version after the write, where the last response determines it.
12162
+ * The item's version after the write, where the write's responses determine it.
11571
12163
  */
11572
12164
  version?: (string | null);
11573
12165
  [k: string]: any;
11574
12166
  }
12167
+ /**
12168
+ * A source's status, kept in both normalised and original form.
12169
+ *
12170
+ * `category` is what every filter compares against; `name` is the source's own
12171
+ * wording, preserved so display never flattens "In Review" into "In Progress".
12172
+ */
12173
+ interface Status {
12174
+ /**
12175
+ * The normalised value filters compare against.
12176
+ */
12177
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
12178
+ /**
12179
+ * The source's own label for this status.
12180
+ */
12181
+ name: string;
12182
+ [k: string]: any;
12183
+ }
11575
12184
  /**
11576
12185
  * What one command spent, summed over the sources in it that meter their own requests.
11577
12186
  *
@@ -12983,6 +13592,16 @@ export declare namespace GeneratedTaskPrioritySet {
12983
13592
  outcome: "unknown";
12984
13593
  [k: string]: any;
12985
13594
  });
13595
+ /**
13596
+ * How much a task matters, in the one vocabulary every source is normalised into.
13597
+ *
13598
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
13599
+ * exactly these, and a source whose backend has none of its own maps its representation
13600
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
13601
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
13602
+ * from nothing by the value alone.
13603
+ */
13604
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
12986
13605
  /**
12987
13606
  * What `task priority set` answers with.
12988
13607
  */
@@ -12997,7 +13616,13 @@ export declare namespace GeneratedTaskPrioritySet {
12997
13616
  */
12998
13617
  id: string;
12999
13618
  /**
13000
- * Its priority as its source reads it back after the write.
13619
+ * How much a task matters, in the one vocabulary every source is normalised into.
13620
+ *
13621
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
13622
+ * exactly these, and a source whose backend has none of its own maps its representation
13623
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
13624
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
13625
+ * from nothing by the value alone.
13001
13626
  */
13002
13627
  priority: ("none" | "urgent" | "high" | "medium" | "low");
13003
13628
  /**
@@ -13027,19 +13652,54 @@ export declare namespace GeneratedTaskPrioritySet {
13027
13652
  [k: string]: any;
13028
13653
  }
13029
13654
  /**
13030
- * What each mutation of an expected write came to, built from the mutations' own responses.
13655
+ * What an item holds once a write is done, read off the write's own responses — and, for an
13656
+ * expected write, what each mutation it sent came to.
13657
+ *
13658
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
13659
+ * field the write kept is what the read before it held. `version` is `null` where the source
13660
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
13661
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
13662
+ * then give.
13031
13663
  */
13032
13664
  interface WriteResult {
13033
13665
  /**
13034
- * One per mutation sent, in the order sent.
13666
+ * One per mutation an expected write sent, in the order sent — absent for a write made
13667
+ * without `--expect`.
13035
13668
  */
13036
- parts: WritePart[];
13669
+ parts?: (WritePart[] | null);
13037
13670
  /**
13038
- * The task's version after the write, where the last response determines it.
13671
+ * A task's priority after the write — `null` for a project or a document, which carry
13672
+ * none, and where an expected write that failed cannot say.
13673
+ */
13674
+ priority?: (Priority | null);
13675
+ /**
13676
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
13677
+ * document, which has none, and where an expected write that failed cannot say.
13678
+ */
13679
+ status?: (Status | null);
13680
+ /**
13681
+ * The item's version after the write, where the write's responses determine it.
13039
13682
  */
13040
13683
  version?: (string | null);
13041
13684
  [k: string]: any;
13042
13685
  }
13686
+ /**
13687
+ * A source's status, kept in both normalised and original form.
13688
+ *
13689
+ * `category` is what every filter compares against; `name` is the source's own
13690
+ * wording, preserved so display never flattens "In Review" into "In Progress".
13691
+ */
13692
+ interface Status {
13693
+ /**
13694
+ * The normalised value filters compare against.
13695
+ */
13696
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
13697
+ /**
13698
+ * The source's own label for this status.
13699
+ */
13700
+ name: string;
13701
+ [k: string]: any;
13702
+ }
13043
13703
  /**
13044
13704
  * What one command spent, summed over the sources in it that meter their own requests.
13045
13705
  *
@@ -13369,6 +14029,16 @@ export declare namespace GeneratedTaskStatusSet {
13369
14029
  outcome: "unknown";
13370
14030
  [k: string]: any;
13371
14031
  });
14032
+ /**
14033
+ * How much a task matters, in the one vocabulary every source is normalised into.
14034
+ *
14035
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
14036
+ * exactly these, and a source whose backend has none of its own maps its representation
14037
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
14038
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
14039
+ * from nothing by the value alone.
14040
+ */
14041
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
13372
14042
  /**
13373
14043
  * What `task status set` answers with.
13374
14044
  */
@@ -13405,7 +14075,7 @@ export declare namespace GeneratedTaskStatusSet {
13405
14075
  * fallback read included — absent for a write made without `--expect`.
13406
14076
  */
13407
14077
  spent?: (Spent | null);
13408
- status: Status;
14078
+ status: Status1;
13409
14079
  [k: string]: any;
13410
14080
  }
13411
14081
  /**
@@ -13453,19 +14123,54 @@ export declare namespace GeneratedTaskStatusSet {
13453
14123
  [k: string]: any;
13454
14124
  }
13455
14125
  /**
13456
- * What each mutation of an expected write came to, built from the mutations' own responses.
14126
+ * What an item holds once a write is done, read off the write's own responses — and, for an
14127
+ * expected write, what each mutation it sent came to.
14128
+ *
14129
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
14130
+ * field the write kept is what the read before it held. `version` is `null` where the source
14131
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
14132
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
14133
+ * then give.
13457
14134
  */
13458
14135
  interface WriteResult {
13459
14136
  /**
13460
- * One per mutation sent, in the order sent.
14137
+ * One per mutation an expected write sent, in the order sent — absent for a write made
14138
+ * without `--expect`.
14139
+ */
14140
+ parts?: (WritePart[] | null);
14141
+ /**
14142
+ * A task's priority after the write — `null` for a project or a document, which carry
14143
+ * none, and where an expected write that failed cannot say.
14144
+ */
14145
+ priority?: (Priority | null);
14146
+ /**
14147
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
14148
+ * document, which has none, and where an expected write that failed cannot say.
13461
14149
  */
13462
- parts: WritePart[];
14150
+ status?: (Status | null);
13463
14151
  /**
13464
- * The task's version after the write, where the last response determines it.
14152
+ * The item's version after the write, where the write's responses determine it.
13465
14153
  */
13466
14154
  version?: (string | null);
13467
14155
  [k: string]: any;
13468
14156
  }
14157
+ /**
14158
+ * A source's status, kept in both normalised and original form.
14159
+ *
14160
+ * `category` is what every filter compares against; `name` is the source's own
14161
+ * wording, preserved so display never flattens "In Review" into "In Progress".
14162
+ */
14163
+ interface Status {
14164
+ /**
14165
+ * The normalised status vocabulary shared across every source.
14166
+ */
14167
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
14168
+ /**
14169
+ * The source's own label for this status.
14170
+ */
14171
+ name: string;
14172
+ [k: string]: any;
14173
+ }
13469
14174
  /**
13470
14175
  * What one command spent, summed over the sources in it that meter their own requests.
13471
14176
  *
@@ -13510,9 +14215,12 @@ export declare namespace GeneratedTaskStatusSet {
13510
14215
  [k: string]: any;
13511
14216
  }
13512
14217
  /**
13513
- * Its status as its source reads it back.
14218
+ * A source's status, kept in both normalised and original form.
14219
+ *
14220
+ * `category` is what every filter compares against; `name` is the source's own
14221
+ * wording, preserved so display never flattens "In Review" into "In Progress".
13514
14222
  */
13515
- interface Status {
14223
+ interface Status1 {
13516
14224
  /**
13517
14225
  * The normalised status vocabulary shared across every source.
13518
14226
  */
@@ -14039,6 +14747,16 @@ export declare namespace GeneratedTaskUpdated {
14039
14747
  outcome: "unknown";
14040
14748
  [k: string]: any;
14041
14749
  });
14750
+ /**
14751
+ * How much a task matters, in the one vocabulary every source is normalised into.
14752
+ *
14753
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
14754
+ * exactly these, and a source whose backend has none of its own maps its representation
14755
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
14756
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
14757
+ * from nothing by the value alone.
14758
+ */
14759
+ type Priority = ("none" | "urgent" | "high" | "medium" | "low");
14042
14760
  /**
14043
14761
  * One task named by another task's [`Task::delivers`] or [`Task::delivered_by`].
14044
14762
  *
@@ -14177,19 +14895,54 @@ export declare namespace GeneratedTaskUpdated {
14177
14895
  [k: string]: any;
14178
14896
  }
14179
14897
  /**
14180
- * What each mutation of an expected write came to, built from the mutations' own responses.
14898
+ * What an item holds once a write is done, read off the write's own responses — and, for an
14899
+ * expected write, what each mutation it sent came to.
14900
+ *
14901
+ * Every write verb and every item a copy lands answers one, with no request added for it: a
14902
+ * field the write kept is what the read before it held. `version` is `null` where the source
14903
+ * cannot vouch for a token from its write's responses — a GitHub board for an item it has just
14904
+ * written, a stdio-hosted plugin, an in-memory source — and otherwise the token a read would
14905
+ * then give.
14181
14906
  */
14182
14907
  interface WriteResult {
14183
14908
  /**
14184
- * One per mutation sent, in the order sent.
14909
+ * One per mutation an expected write sent, in the order sent — absent for a write made
14910
+ * without `--expect`.
14911
+ */
14912
+ parts?: (WritePart[] | null);
14913
+ /**
14914
+ * A task's priority after the write — `null` for a project or a document, which carry
14915
+ * none, and where an expected write that failed cannot say.
14916
+ */
14917
+ priority?: (Priority | null);
14918
+ /**
14919
+ * The item's status after the write, exactly as `task show` spells it — `null` for a
14920
+ * document, which has none, and where an expected write that failed cannot say.
14185
14921
  */
14186
- parts: WritePart[];
14922
+ status?: (Status | null);
14187
14923
  /**
14188
- * The task's version after the write, where the last response determines it.
14924
+ * The item's version after the write, where the write's responses determine it.
14189
14925
  */
14190
14926
  version?: (string | null);
14191
14927
  [k: string]: any;
14192
14928
  }
14929
+ /**
14930
+ * A source's status, kept in both normalised and original form.
14931
+ *
14932
+ * `category` is what every filter compares against; `name` is the source's own
14933
+ * wording, preserved so display never flattens "In Review" into "In Progress".
14934
+ */
14935
+ interface Status {
14936
+ /**
14937
+ * The normalised status vocabulary shared across every source.
14938
+ */
14939
+ category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
14940
+ /**
14941
+ * The source's own label for this status.
14942
+ */
14943
+ name: string;
14944
+ [k: string]: any;
14945
+ }
14193
14946
  /**
14194
14947
  * What one command spent, summed over the sources in it that meter their own requests.
14195
14948
  *
@@ -14345,7 +15098,7 @@ export declare namespace GeneratedTaskUpdated {
14345
15098
  * repeats.
14346
15099
  */
14347
15100
  repositories?: Repository[];
14348
- status: Status;
15101
+ status: Status1;
14349
15102
  /**
14350
15103
  * The one-line summary a user recognises the task by.
14351
15104
  */
@@ -14402,7 +15155,7 @@ export declare namespace GeneratedTaskUpdated {
14402
15155
  /**
14403
15156
  * The source's status, normalised and preserved.
14404
15157
  */
14405
- interface Status {
15158
+ interface Status1 {
14406
15159
  /**
14407
15160
  * The normalised status vocabulary shared across every source.
14408
15161
  */