@onetaskgraph/sdk 0.14.13 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- import type { CacheCleared, Classification, CommentBatch, CommentList, CommentsAdded, CommentsSince, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, FindRequest, FoundTasks, HumanTaskProjected, IssuesCompleted, LinkBatch, LinksWritten, LocateReport, MetadataSet, Attested, AttestationCheck, ProjectAttestationCheck, PlannedProject, NativeId, ParentBatch, ParentsSet, Priority, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskRelations, TaskStatusSet, TasksUpdated, TaskUpdated, TemplateAnswers, TemplateVariables, UpdateBatch } from "./generated/models.ts";
1
+ import type { AttestationCheck, Attested, CacheCleared, Classification, CommentBatch, CommentList, CommentsAdded, CommentsSince, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, FindRequest, FoundTasks, HumanTaskProjected, IssuesCompleted, LinkBatch, LinksWritten, LocateReport, MetadataSet, NativeId, ParentBatch, ParentsSet, PlannedProject, Priority, ProjectAttestationCheck, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskAssigneeSet, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskRelations, TaskStatusSet, TasksUpdated, TaskUpdated, TemplateAnswers, TemplateVariables, UpdateBatch } from "./generated/models.ts";
2
2
  import { runtimeSchemas } from "./generated/schemas.ts";
3
3
  export type QueryOptions = {
4
4
  sources?: string[];
@@ -69,6 +69,7 @@ export type CopyConditionOptions = {
69
69
  whenDestinationStatus?: StatusCategory[];
70
70
  otherwise?: Otherwise;
71
71
  whenDestinationPriority?: Priority[];
72
+ whenDestinationAssignees?: string[];
72
73
  };
73
74
  export type TaskCopyOptions = StatusCopyOptions & CopyOptions & CopyQueryOptions & CopyConditionOptions & ExpectOptions & Omit<HeldOptions, "ifVersion"> & {
74
75
  create?: boolean;
@@ -112,6 +113,7 @@ export type TaskCreateOptions = CreateOptions & AssetOptions & {
112
113
  status?: StatusCategory;
113
114
  dependsOn?: string[];
114
115
  delivers?: string[];
116
+ assignee?: string;
115
117
  };
116
118
  export type DocumentCreateOptions = CreateOptions & AssetOptions & {
117
119
  id?: string;
@@ -263,6 +265,10 @@ export declare class OnetaskgraphClient {
263
265
  sanitizeDryRun?: false;
264
266
  }): Promise<MetadataSet>;
265
267
  taskMetadataSet(id: string, key: string, value: string, options?: WriteOptions & ExpectOptions): Promise<MetadataSet | SanitizeDryRun>;
268
+ taskAssigneeSet(id: string, person?: string, options?: WriteOptions & HeldOptions & {
269
+ sanitizeDryRun?: false;
270
+ }): Promise<TaskAssigneeSet>;
271
+ taskAssigneeSet(id: string, person?: string, options?: WriteOptions & HeldOptions): Promise<TaskAssigneeSet | SanitizeDryRun>;
266
272
  taskUpdate(id: string, options: TaskUpdateOptions & {
267
273
  sanitizeDryRun?: false;
268
274
  }): Promise<TaskUpdated>;
@@ -1 +1 @@
1
- export declare const binaryCommands: readonly ["schema", "config show", "sources list", "sources status-options", "sources fields", "sources route", "sources sanitize", "task list", "task show", "task show-many", "task deps", "task copy", "task locate", "task comment add", "task comment list", "task comment edit", "task comment delete", "task comment add-many", "task comments", "task find", "task update-many", "task parent set-many", "task link add-many", "task link remove-many", "task relations", "task status set", "task status reconcile", "task status complete", "task priority set", "task content set", "task metadata set", "task attest", "task attestation check", "task update", "task create", "task render", "task answers", "task assets", "task project-human", "project list", "project show", "project deps", "project graph", "project copy", "project metadata set", "project attest", "project attestation check", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document attest", "document attestation check", "document create", "document render", "document answers", "label list", "search", "cache clear", "template variables", "template render"];
1
+ export declare const binaryCommands: readonly ["schema", "config show", "sources list", "sources status-options", "sources fields", "sources route", "sources sanitize", "task list", "task show", "task show-many", "task deps", "task copy", "task locate", "task comment add", "task comment list", "task comment edit", "task comment delete", "task comment add-many", "task comments", "task find", "task update-many", "task parent set-many", "task link add-many", "task link remove-many", "task relations", "task status set", "task status reconcile", "task status complete", "task priority set", "task assignee set", "task content set", "task metadata set", "task attest", "task attestation check", "task update", "task create", "task render", "task answers", "task assets", "task project-human", "project list", "project show", "project deps", "project graph", "project copy", "project metadata set", "project attest", "project attestation check", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document attest", "document attestation check", "document create", "document render", "document answers", "label list", "search", "cache clear", "template variables", "template render"];
@@ -1,4 +1,4 @@
1
- export declare const SCHEMA_BUNDLE_VERSION: 62;
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
  /**
@@ -6510,6 +6594,14 @@ export declare namespace GeneratedLinearConfig {
6510
6594
  link_types?: {
6511
6595
  [k: string]: LinkTypeConfig;
6512
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;
6513
6605
  }
6514
6606
  /**
6515
6607
  * Which workflow state of the configured team a task's status category is, and which of
@@ -8021,6 +8113,20 @@ export declare namespace GeneratedPageOfTask {
8021
8113
  * a task is filed under never tightens it: a task's visibility is its own.
8022
8114
  */
8023
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);
8024
8130
  [k: string]: any;
8025
8131
  }
8026
8132
  /**
@@ -9592,6 +9698,20 @@ export declare namespace GeneratedQualifiedTask {
9592
9698
  * a task is filed under never tightens it: a task's visibility is its own.
9593
9699
  */
9594
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);
9595
9715
  [k: string]: any;
9596
9716
  }
9597
9717
  /**
@@ -11449,6 +11569,20 @@ export declare namespace GeneratedQueryResponseOfQualifiedTask {
11449
11569
  * a task is filed under never tightens it: a task's visibility is its own.
11450
11570
  */
11451
11571
  classification?: ("public" | "private");
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);
11452
11586
  [k: string]: any;
11453
11587
  }
11454
11588
  /**
@@ -12782,6 +12916,20 @@ export declare namespace GeneratedSourceListing {
12782
12916
  * predates priorities says nothing here and is never handed a priority it would drop.
12783
12917
  */
12784
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");
12785
12933
  /**
12786
12934
  * Whether the source keeps only the tasks whose priority a query lists, itself.
12787
12935
  *
@@ -13053,6 +13201,20 @@ export declare namespace GeneratedSourceListings {
13053
13201
  * predates priorities says nothing here and is never handed a priority it would drop.
13054
13202
  */
13055
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");
13056
13218
  /**
13057
13219
  * Whether the source keeps only the tasks whose priority a query lists, itself.
13058
13220
  *
@@ -13514,6 +13676,20 @@ export declare namespace GeneratedStatusContradiction {
13514
13676
  * a task is filed under never tightens it: a task's visibility is its own.
13515
13677
  */
13516
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);
13517
13693
  [k: string]: any;
13518
13694
  }
13519
13695
  /**
@@ -14195,6 +14371,20 @@ export declare namespace GeneratedTask {
14195
14371
  * a task is filed under never tightens it: a task's visibility is its own.
14196
14372
  */
14197
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);
14198
14388
  [k: string]: any;
14199
14389
  }
14200
14390
  /**
@@ -14249,6 +14439,174 @@ export declare namespace GeneratedTaskAssetNames {
14249
14439
  type TaskAssetNames = AssetName[];
14250
14440
  }
14251
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;
14252
14610
  export declare namespace GeneratedTaskContentSet {
14253
14611
  /**
14254
14612
  * One mutation of an expected write.
@@ -14794,6 +15152,20 @@ export declare namespace GeneratedTaskDetail {
14794
15152
  * a task is filed under never tightens it: a task's visibility is its own.
14795
15153
  */
14796
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);
14797
15169
  [k: string]: any;
14798
15170
  }
14799
15171
  /**
@@ -15562,6 +15934,20 @@ export declare namespace GeneratedTaskDetails {
15562
15934
  * a task is filed under never tightens it: a task's visibility is its own.
15563
15935
  */
15564
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);
15565
15951
  [k: string]: any;
15566
15952
  }
15567
15953
  /**
@@ -16952,6 +17338,13 @@ export declare namespace GeneratedTaskUpdate {
16952
17338
  * reports it.
16953
17339
  */
16954
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);
16955
17348
  [k: string]: any;
16956
17349
  }
16957
17350
  /**
@@ -17070,7 +17463,7 @@ export declare namespace GeneratedTaskUpdateOutcome {
17070
17463
  * kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
17071
17464
  * update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
17072
17465
  */
17073
- type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
17466
+ type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories" | "assignees");
17074
17467
  /**
17075
17468
  * What a source answers a [`TaskUpdate`] of a task it holds with.
17076
17469
  *
@@ -17240,6 +17633,20 @@ export declare namespace GeneratedTaskUpdateOutcome {
17240
17633
  * a task is filed under never tightens it: a task's visibility is its own.
17241
17634
  */
17242
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);
17243
17650
  [k: string]: any;
17244
17651
  }
17245
17652
  /**
@@ -17326,7 +17733,7 @@ export declare namespace GeneratedTaskUpdated {
17326
17733
  * kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
17327
17734
  * update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
17328
17735
  */
17329
- type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
17736
+ type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories" | "assignees");
17330
17737
  /**
17331
17738
  * What keeping one delivered task in step with one deliverer came to.
17332
17739
  */
@@ -17646,6 +18053,20 @@ export declare namespace GeneratedTaskUpdated {
17646
18053
  * a task is filed under never tightens it: a task's visibility is its own.
17647
18054
  */
17648
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);
17649
18070
  [k: string]: any;
17650
18071
  }
17651
18072
  /**
@@ -18239,6 +18660,18 @@ export declare namespace GeneratedUpdateBatch {
18239
18660
  * Its repositories, replaced whole; an empty list clears them.
18240
18661
  */
18241
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);
18242
18675
  }
18243
18676
  }
18244
18677
  export type UpdateBatch = GeneratedUpdateBatch.UpdateBatch;
@@ -18249,7 +18682,7 @@ export declare namespace GeneratedUpdatedField {
18249
18682
  * kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
18250
18683
  * update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
18251
18684
  */
18252
- type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
18685
+ type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories" | "assignees");
18253
18686
  }
18254
18687
  export type UpdatedField = GeneratedUpdatedField.UpdatedField;
18255
18688
  export declare namespace GeneratedVariableType {