@onetaskgraph/sdk 0.14.7 → 0.14.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +15 -3
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +361 -7
- package/dist/generated/schemas.d.ts +523 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +759 -14
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CacheCleared, Classification, CommentList, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, HumanTaskProjected, IssuesCompleted, LocateReport, MetadataSet, NativeId, Priority, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskStatusSet, TaskUpdated, TemplateAnswers, TemplateVariables } from "./generated/models.ts";
|
|
1
|
+
import type { CacheCleared, Classification, CommentList, CommentsSince, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, HumanTaskProjected, IssuesCompleted, LocateReport, MetadataSet, NativeId, Priority, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskStatusSet, TaskUpdated, TemplateAnswers, TemplateVariables } from "./generated/models.ts";
|
|
2
2
|
import { runtimeSchemas } from "./generated/schemas.ts";
|
|
3
3
|
export type QueryOptions = {
|
|
4
4
|
sources?: string[];
|
|
@@ -32,6 +32,9 @@ export type WriteOptions = {
|
|
|
32
32
|
export type ExpectOptions = {
|
|
33
33
|
expect?: string;
|
|
34
34
|
};
|
|
35
|
+
export type HeldOptions = {
|
|
36
|
+
ifVersion?: string;
|
|
37
|
+
};
|
|
35
38
|
/** Status ownership on copy updates. Creates always carry the source status. */
|
|
36
39
|
export declare const statusPolicies: readonly ["source", "preserve-destination"];
|
|
37
40
|
export type StatusPolicy = (typeof statusPolicies)[number];
|
|
@@ -59,7 +62,7 @@ export type CopyConditionOptions = {
|
|
|
59
62
|
otherwise?: Otherwise;
|
|
60
63
|
whenDestinationPriority?: Priority[];
|
|
61
64
|
};
|
|
62
|
-
export type TaskCopyOptions = StatusCopyOptions & CopyOptions & CopyQueryOptions & CopyConditionOptions & ExpectOptions & {
|
|
65
|
+
export type TaskCopyOptions = StatusCopyOptions & CopyOptions & CopyQueryOptions & CopyConditionOptions & ExpectOptions & HeldOptions & {
|
|
63
66
|
create?: boolean;
|
|
64
67
|
targetTask?: string;
|
|
65
68
|
};
|
|
@@ -107,7 +110,7 @@ export type DocumentCreateOptions = CreateOptions & AssetOptions & {
|
|
|
107
110
|
export type ProjectCreateOptions = CreateOptions & {
|
|
108
111
|
status?: StatusCategory;
|
|
109
112
|
};
|
|
110
|
-
export type TaskUpdateOptions = WriteOptions & ExpectOptions & {
|
|
113
|
+
export type TaskUpdateOptions = WriteOptions & ExpectOptions & HeldOptions & {
|
|
111
114
|
title?: string;
|
|
112
115
|
bodyFile?: string;
|
|
113
116
|
status?: StatusCategory;
|
|
@@ -117,6 +120,7 @@ export type TaskUpdateOptions = WriteOptions & ExpectOptions & {
|
|
|
117
120
|
removeMetadata?: string[];
|
|
118
121
|
delivers?: string[];
|
|
119
122
|
dependsOn?: string[];
|
|
123
|
+
repositories?: string[];
|
|
120
124
|
};
|
|
121
125
|
export type RenderOptions = TemplateSourceOptions & WriteOptions & {
|
|
122
126
|
unset?: string[];
|
|
@@ -147,6 +151,13 @@ export declare const commandAlternateRoots: Readonly<Record<string, readonly (ke
|
|
|
147
151
|
export declare const clientCommands: readonly string[];
|
|
148
152
|
export declare const taskUpdateOptionFlags: Readonly<Record<keyof TaskUpdateOptions, string>>;
|
|
149
153
|
export declare function taskUpdateFlags(options: unknown): string[];
|
|
154
|
+
export type TaskCommentsOptions = {
|
|
155
|
+
metadata?: string[];
|
|
156
|
+
statuses?: StatusCategory[];
|
|
157
|
+
items?: string[];
|
|
158
|
+
};
|
|
159
|
+
export declare const taskCommentsOptionFlags: Readonly<Record<keyof TaskCommentsOptions, string>>;
|
|
160
|
+
export declare function taskCommentsFlags(since: string, options: unknown): string[];
|
|
150
161
|
export declare function taskCopyFlags(options: TaskCopyOptions): string[];
|
|
151
162
|
export declare function projectCopyFlags(options: CopyOptions & StatusCopyOptions & {
|
|
152
163
|
noTasks?: boolean;
|
|
@@ -197,6 +208,7 @@ export declare class OnetaskgraphClient {
|
|
|
197
208
|
sanitizeDryRun?: false;
|
|
198
209
|
}): Promise<CommentWritten>;
|
|
199
210
|
taskCommentAdd(id: string, options: CommentAddOptions): Promise<CommentWritten | SanitizeDryRun>;
|
|
211
|
+
taskComments(source: string, since: string, options?: TaskCommentsOptions): Promise<CommentsSince>;
|
|
200
212
|
taskCommentList(id: string, options?: {
|
|
201
213
|
pin?: string;
|
|
202
214
|
}): Promise<CommentList>;
|
|
@@ -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 status set", "task status reconcile", "task status complete", "task priority set", "task content set", "task metadata set", "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 status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "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 comments", "task status set", "task status reconcile", "task status complete", "task priority set", "task content set", "task metadata set", "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 status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "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:
|
|
1
|
+
export declare const SCHEMA_BUNDLE_VERSION: 58;
|
|
2
2
|
export declare namespace GeneratedAsset {
|
|
3
3
|
/**
|
|
4
4
|
* One asset a record holds, as a read reports it.
|
|
@@ -209,6 +209,16 @@ export declare namespace GeneratedAssetsWritten {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
export type AssetsWritten = GeneratedAssetsWritten.AssetsWritten;
|
|
212
|
+
export declare namespace GeneratedAuthorKind {
|
|
213
|
+
/**
|
|
214
|
+
* Who wrote a comment, as the source that holds it can tell: a person, a bot — an
|
|
215
|
+
* integration, an app, an automation acting on its own — or neither, when the source cannot
|
|
216
|
+
* say. Decided by the plugin, through
|
|
217
|
+
* [`TaskSource::comment_author_kind`](crate::TaskSource::comment_author_kind).
|
|
218
|
+
*/
|
|
219
|
+
type AuthorKind = ("person" | "bot" | "unknown");
|
|
220
|
+
}
|
|
221
|
+
export type AuthorKind = GeneratedAuthorKind.AuthorKind;
|
|
212
222
|
export declare namespace GeneratedCacheCleared {
|
|
213
223
|
/**
|
|
214
224
|
* What `cache clear` emptied: one entry per cache it reached.
|
|
@@ -554,6 +564,52 @@ export declare namespace GeneratedComment {
|
|
|
554
564
|
}
|
|
555
565
|
}
|
|
556
566
|
export type Comment = GeneratedComment.Comment;
|
|
567
|
+
export declare namespace GeneratedCommentActivity {
|
|
568
|
+
/**
|
|
569
|
+
* One comment of a [`CommentsSince`] answer.
|
|
570
|
+
*/
|
|
571
|
+
interface CommentActivity {
|
|
572
|
+
/**
|
|
573
|
+
* The task it is on, qualified: `<source>:<native id>`.
|
|
574
|
+
*/
|
|
575
|
+
item: string;
|
|
576
|
+
/**
|
|
577
|
+
* Its own id, exactly as its source issued it.
|
|
578
|
+
*/
|
|
579
|
+
id: string;
|
|
580
|
+
/**
|
|
581
|
+
* Where a person can open it, or `null`.
|
|
582
|
+
*/
|
|
583
|
+
url?: (string | null);
|
|
584
|
+
/**
|
|
585
|
+
* Who wrote it, in the source's own spelling, or `null`.
|
|
586
|
+
*/
|
|
587
|
+
author?: (string | null);
|
|
588
|
+
/**
|
|
589
|
+
* Whether that is a person, a bot, or neither the source can tell.
|
|
590
|
+
*/
|
|
591
|
+
author_kind: ("person" | "bot" | "unknown");
|
|
592
|
+
/**
|
|
593
|
+
* When it was written.
|
|
594
|
+
*/
|
|
595
|
+
created_at: string;
|
|
596
|
+
/**
|
|
597
|
+
* When it last changed — its creation, for one never edited.
|
|
598
|
+
*/
|
|
599
|
+
updated_at: string;
|
|
600
|
+
/**
|
|
601
|
+
* The comment's version: when it last changed, at the backend's own precision. Two reads
|
|
602
|
+
* answering one comment unchanged answer the same version.
|
|
603
|
+
*/
|
|
604
|
+
version: string;
|
|
605
|
+
/**
|
|
606
|
+
* What it says, byte for byte.
|
|
607
|
+
*/
|
|
608
|
+
body: string;
|
|
609
|
+
[k: string]: any;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
export type CommentActivity = GeneratedCommentActivity.CommentActivity;
|
|
557
613
|
export declare namespace GeneratedCommentList {
|
|
558
614
|
/**
|
|
559
615
|
* Every comment on one task, oldest first: what `task comment list` answers with.
|
|
@@ -973,6 +1029,73 @@ export declare namespace GeneratedCommentWritten {
|
|
|
973
1029
|
}
|
|
974
1030
|
}
|
|
975
1031
|
export type CommentWritten = GeneratedCommentWritten.CommentWritten;
|
|
1032
|
+
export declare namespace GeneratedCommentsSince {
|
|
1033
|
+
/**
|
|
1034
|
+
* What `task comments <SOURCE> --since` answers with.
|
|
1035
|
+
*/
|
|
1036
|
+
interface CommentsSince {
|
|
1037
|
+
/**
|
|
1038
|
+
* The version of this document's shape: `1`.
|
|
1039
|
+
*/
|
|
1040
|
+
schema_version: number;
|
|
1041
|
+
/**
|
|
1042
|
+
* The instant a later read may start from: the earlier of the source's own time and this
|
|
1043
|
+
* host's at the read's start, set back by the source's consistency window. A later read
|
|
1044
|
+
* from it may return a comment again, with the same `id` and `version`.
|
|
1045
|
+
*/
|
|
1046
|
+
watermark: string;
|
|
1047
|
+
/**
|
|
1048
|
+
* Every comment made or edited at or after the instant on a matching task, oldest first by
|
|
1049
|
+
* when it last changed.
|
|
1050
|
+
*/
|
|
1051
|
+
comments: CommentActivity[];
|
|
1052
|
+
[k: string]: any;
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* One comment of a [`CommentsSince`] answer.
|
|
1056
|
+
*/
|
|
1057
|
+
interface CommentActivity {
|
|
1058
|
+
/**
|
|
1059
|
+
* The task it is on, qualified: `<source>:<native id>`.
|
|
1060
|
+
*/
|
|
1061
|
+
item: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* Its own id, exactly as its source issued it.
|
|
1064
|
+
*/
|
|
1065
|
+
id: string;
|
|
1066
|
+
/**
|
|
1067
|
+
* Where a person can open it, or `null`.
|
|
1068
|
+
*/
|
|
1069
|
+
url?: (string | null);
|
|
1070
|
+
/**
|
|
1071
|
+
* Who wrote it, in the source's own spelling, or `null`.
|
|
1072
|
+
*/
|
|
1073
|
+
author?: (string | null);
|
|
1074
|
+
/**
|
|
1075
|
+
* Whether that is a person, a bot, or neither the source can tell.
|
|
1076
|
+
*/
|
|
1077
|
+
author_kind: ("person" | "bot" | "unknown");
|
|
1078
|
+
/**
|
|
1079
|
+
* When it was written.
|
|
1080
|
+
*/
|
|
1081
|
+
created_at: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* When it last changed — its creation, for one never edited.
|
|
1084
|
+
*/
|
|
1085
|
+
updated_at: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* The comment's version: when it last changed, at the backend's own precision. Two reads
|
|
1088
|
+
* answering one comment unchanged answer the same version.
|
|
1089
|
+
*/
|
|
1090
|
+
version: string;
|
|
1091
|
+
/**
|
|
1092
|
+
* What it says, byte for byte.
|
|
1093
|
+
*/
|
|
1094
|
+
body: string;
|
|
1095
|
+
[k: string]: any;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
export type CommentsSince = GeneratedCommentsSince.CommentsSince;
|
|
976
1099
|
export declare namespace GeneratedCompleteAction {
|
|
977
1100
|
/**
|
|
978
1101
|
* What moving one issue's item to `done` came to at one source.
|
|
@@ -5724,6 +5847,88 @@ export declare namespace GeneratedLocateReport {
|
|
|
5724
5847
|
}
|
|
5725
5848
|
}
|
|
5726
5849
|
export type LocateReport = GeneratedLocateReport.LocateReport;
|
|
5850
|
+
export declare namespace GeneratedLocated {
|
|
5851
|
+
/**
|
|
5852
|
+
* One item, qualified by the source it came from.
|
|
5853
|
+
*
|
|
5854
|
+
* Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
|
|
5855
|
+
* so a native id may contain colons freely.
|
|
5856
|
+
*/
|
|
5857
|
+
type GlobalId = string;
|
|
5858
|
+
/**
|
|
5859
|
+
* Where one task would land, what it would update there, and where a create would file it.
|
|
5860
|
+
*/
|
|
5861
|
+
interface Located {
|
|
5862
|
+
/**
|
|
5863
|
+
* The qualified id the task was read from.
|
|
5864
|
+
*/
|
|
5865
|
+
source: string;
|
|
5866
|
+
/**
|
|
5867
|
+
* The class it was placed as, as a copy classifies it: its own declaration and, while the
|
|
5868
|
+
* store's boundary is active, its repositories' visibility. A source declared private does
|
|
5869
|
+
* not by itself make it private; it withholds the task's provenance instead.
|
|
5870
|
+
*/
|
|
5871
|
+
classification: ("public" | "private");
|
|
5872
|
+
/**
|
|
5873
|
+
* The source the item lands in: the routed one, or the source itself.
|
|
5874
|
+
*/
|
|
5875
|
+
destination: string;
|
|
5876
|
+
/**
|
|
5877
|
+
* The index of the route entry that matched, or `None` when none did and the item
|
|
5878
|
+
* stays in the source itself.
|
|
5879
|
+
*/
|
|
5880
|
+
route?: (number | null);
|
|
5881
|
+
/**
|
|
5882
|
+
* The item a copy would update, and the rule that found it — `null` when a copy would
|
|
5883
|
+
* create one, and absent under `--no-counterpart`, which looks for none.
|
|
5884
|
+
*/
|
|
5885
|
+
counterpart?: (LocatedCounterpart | null);
|
|
5886
|
+
/**
|
|
5887
|
+
* Every destination item the origin query found carrying this task's origin, in listing
|
|
5888
|
+
* order — `[]` when the query did not run, and absent under `--no-counterpart`. When it ran,
|
|
5889
|
+
* `counterpart` is the first.
|
|
5890
|
+
*/
|
|
5891
|
+
carriers?: (GlobalId[] | null);
|
|
5892
|
+
/**
|
|
5893
|
+
* The repository a create there would file the task's issue in, or `null` where the
|
|
5894
|
+
* destination files no issue in a repository. Where a create would file, whether or not a
|
|
5895
|
+
* counterpart exists: an existing issue is never moved.
|
|
5896
|
+
*/
|
|
5897
|
+
creates_in?: (CreatesIn | null);
|
|
5898
|
+
[k: string]: any;
|
|
5899
|
+
}
|
|
5900
|
+
/**
|
|
5901
|
+
* The destination item a copy would update.
|
|
5902
|
+
*/
|
|
5903
|
+
interface LocatedCounterpart {
|
|
5904
|
+
/**
|
|
5905
|
+
* Its qualified id at the destination the task is placed in.
|
|
5906
|
+
*/
|
|
5907
|
+
id: string;
|
|
5908
|
+
/**
|
|
5909
|
+
* Which rule found it, as a copy's report spells it.
|
|
5910
|
+
*/
|
|
5911
|
+
via: ("target-task" | "link" | "origin" | "scan" | "match" | "intent");
|
|
5912
|
+
[k: string]: any;
|
|
5913
|
+
}
|
|
5914
|
+
/**
|
|
5915
|
+
* Where a create would file a task's issue.
|
|
5916
|
+
*/
|
|
5917
|
+
interface CreatesIn {
|
|
5918
|
+
/**
|
|
5919
|
+
* The repository, as a normalized origin `host/owner/name`.
|
|
5920
|
+
*/
|
|
5921
|
+
repository: string;
|
|
5922
|
+
/**
|
|
5923
|
+
* Why the destination's own policy on where it creates — a GitHub Projects source's
|
|
5924
|
+
* `creation_owners` — would refuse a create there, as the copy's refusal says it; absent
|
|
5925
|
+
* when it would not. The locate itself never fails for it.
|
|
5926
|
+
*/
|
|
5927
|
+
refused?: (string | null);
|
|
5928
|
+
[k: string]: any;
|
|
5929
|
+
}
|
|
5930
|
+
}
|
|
5931
|
+
export type Located = GeneratedLocated.Located;
|
|
5727
5932
|
export declare namespace GeneratedLocation {
|
|
5728
5933
|
/**
|
|
5729
5934
|
* Where an entity is, in the one form a consumer can act on without knowing the backend.
|
|
@@ -12994,6 +13199,12 @@ export declare namespace GeneratedTaskDetail {
|
|
|
12994
13199
|
* naming no configured source.
|
|
12995
13200
|
*/
|
|
12996
13201
|
cache?: (CacheUse | null);
|
|
13202
|
+
/**
|
|
13203
|
+
* The task's forward dependency edges, exactly as `task deps` answers them — present only
|
|
13204
|
+
* when the read asked for them (`task show --with-deps`), and absent for a task that was not
|
|
13205
|
+
* found, or whose edges could not be read, the failure then in the response's `errors`.
|
|
13206
|
+
*/
|
|
13207
|
+
depends_on?: (QualifiedEdge[] | null);
|
|
12997
13208
|
sanitization?: (Sanitization | null);
|
|
12998
13209
|
[k: string]: any;
|
|
12999
13210
|
}
|
|
@@ -13517,6 +13728,52 @@ export declare namespace GeneratedTaskDetail {
|
|
|
13517
13728
|
bypassed?: (string | null);
|
|
13518
13729
|
[k: string]: any;
|
|
13519
13730
|
}
|
|
13731
|
+
/**
|
|
13732
|
+
* One dependency edge with both ends qualified.
|
|
13733
|
+
*
|
|
13734
|
+
* An end may belong to another source. The near plugin owns that qualified far id and the
|
|
13735
|
+
* engine reports it without resolving or fetching the far source, so it holds no index.
|
|
13736
|
+
*/
|
|
13737
|
+
interface QualifiedEdge {
|
|
13738
|
+
from: QualifiedEndpoint;
|
|
13739
|
+
to: QualifiedEndpoint1;
|
|
13740
|
+
/**
|
|
13741
|
+
* What the edge means.
|
|
13742
|
+
*/
|
|
13743
|
+
kind: ("blocks" | "related");
|
|
13744
|
+
[k: string]: any;
|
|
13745
|
+
}
|
|
13746
|
+
/**
|
|
13747
|
+
* The item the edge starts at, and the one that **depends on** the other.
|
|
13748
|
+
*
|
|
13749
|
+
* The direction a caller asked in says which end they named, not which end the edge
|
|
13750
|
+
* starts at: a forward read and the matching reverse read report the same edge.
|
|
13751
|
+
*/
|
|
13752
|
+
interface QualifiedEndpoint {
|
|
13753
|
+
/**
|
|
13754
|
+
* `<source>:<native>`, preserved when a plugin reports another source.
|
|
13755
|
+
*/
|
|
13756
|
+
id: string;
|
|
13757
|
+
/**
|
|
13758
|
+
* Whether this endpoint names a task or project.
|
|
13759
|
+
*/
|
|
13760
|
+
kind: ("task" | "project");
|
|
13761
|
+
[k: string]: any;
|
|
13762
|
+
}
|
|
13763
|
+
/**
|
|
13764
|
+
* The item the edge points at, and the one that must finish first.
|
|
13765
|
+
*/
|
|
13766
|
+
interface QualifiedEndpoint1 {
|
|
13767
|
+
/**
|
|
13768
|
+
* `<source>:<native>`, preserved when a plugin reports another source.
|
|
13769
|
+
*/
|
|
13770
|
+
id: string;
|
|
13771
|
+
/**
|
|
13772
|
+
* Whether this endpoint names a task or project.
|
|
13773
|
+
*/
|
|
13774
|
+
kind: ("task" | "project");
|
|
13775
|
+
[k: string]: any;
|
|
13776
|
+
}
|
|
13520
13777
|
/**
|
|
13521
13778
|
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
13522
13779
|
* the `sanitization` member a write's answer carries when it is not empty.
|
|
@@ -13711,6 +13968,12 @@ export declare namespace GeneratedTaskDetails {
|
|
|
13711
13968
|
* naming no configured source.
|
|
13712
13969
|
*/
|
|
13713
13970
|
cache?: (CacheUse | null);
|
|
13971
|
+
/**
|
|
13972
|
+
* The task's forward dependency edges, exactly as `task deps` answers them — present only
|
|
13973
|
+
* when the read asked for them (`task show --with-deps`), and absent for a task that was not
|
|
13974
|
+
* found, or whose edges could not be read, the failure then in the response's `errors`.
|
|
13975
|
+
*/
|
|
13976
|
+
depends_on?: (QualifiedEdge[] | null);
|
|
13714
13977
|
[k: string]: any;
|
|
13715
13978
|
}
|
|
13716
13979
|
/**
|
|
@@ -14233,6 +14496,52 @@ export declare namespace GeneratedTaskDetails {
|
|
|
14233
14496
|
bypassed?: (string | null);
|
|
14234
14497
|
[k: string]: any;
|
|
14235
14498
|
}
|
|
14499
|
+
/**
|
|
14500
|
+
* One dependency edge with both ends qualified.
|
|
14501
|
+
*
|
|
14502
|
+
* An end may belong to another source. The near plugin owns that qualified far id and the
|
|
14503
|
+
* engine reports it without resolving or fetching the far source, so it holds no index.
|
|
14504
|
+
*/
|
|
14505
|
+
interface QualifiedEdge {
|
|
14506
|
+
from: QualifiedEndpoint;
|
|
14507
|
+
to: QualifiedEndpoint1;
|
|
14508
|
+
/**
|
|
14509
|
+
* What the edge means.
|
|
14510
|
+
*/
|
|
14511
|
+
kind: ("blocks" | "related");
|
|
14512
|
+
[k: string]: any;
|
|
14513
|
+
}
|
|
14514
|
+
/**
|
|
14515
|
+
* The item the edge starts at, and the one that **depends on** the other.
|
|
14516
|
+
*
|
|
14517
|
+
* The direction a caller asked in says which end they named, not which end the edge
|
|
14518
|
+
* starts at: a forward read and the matching reverse read report the same edge.
|
|
14519
|
+
*/
|
|
14520
|
+
interface QualifiedEndpoint {
|
|
14521
|
+
/**
|
|
14522
|
+
* `<source>:<native>`, preserved when a plugin reports another source.
|
|
14523
|
+
*/
|
|
14524
|
+
id: string;
|
|
14525
|
+
/**
|
|
14526
|
+
* Whether this endpoint names a task or project.
|
|
14527
|
+
*/
|
|
14528
|
+
kind: ("task" | "project");
|
|
14529
|
+
[k: string]: any;
|
|
14530
|
+
}
|
|
14531
|
+
/**
|
|
14532
|
+
* The item the edge points at, and the one that must finish first.
|
|
14533
|
+
*/
|
|
14534
|
+
interface QualifiedEndpoint1 {
|
|
14535
|
+
/**
|
|
14536
|
+
* `<source>:<native>`, preserved when a plugin reports another source.
|
|
14537
|
+
*/
|
|
14538
|
+
id: string;
|
|
14539
|
+
/**
|
|
14540
|
+
* Whether this endpoint names a task or project.
|
|
14541
|
+
*/
|
|
14542
|
+
kind: ("task" | "project");
|
|
14543
|
+
[k: string]: any;
|
|
14544
|
+
}
|
|
14236
14545
|
}
|
|
14237
14546
|
export type TaskDetails = GeneratedTaskDetails.TaskDetails;
|
|
14238
14547
|
export declare namespace GeneratedTaskPrioritySet {
|
|
@@ -14286,6 +14595,10 @@ export declare namespace GeneratedTaskPrioritySet {
|
|
|
14286
14595
|
* from nothing by the value alone.
|
|
14287
14596
|
*/
|
|
14288
14597
|
type Priority = ("none" | "urgent" | "high" | "medium" | "low");
|
|
14598
|
+
/**
|
|
14599
|
+
* What a write guarded by a condition on the item's own value came to.
|
|
14600
|
+
*/
|
|
14601
|
+
type GuardOutcome = ("written" | "held");
|
|
14289
14602
|
/**
|
|
14290
14603
|
* What a locator names.
|
|
14291
14604
|
*/
|
|
@@ -14317,6 +14630,17 @@ export declare namespace GeneratedTaskPrioritySet {
|
|
|
14317
14630
|
* fallback read included — absent for a write made without `--expect`.
|
|
14318
14631
|
*/
|
|
14319
14632
|
spent?: (Spent | null);
|
|
14633
|
+
/**
|
|
14634
|
+
* `written` when the task held a priority the guard names, and `held` when it did not —
|
|
14635
|
+
* absent for a write made without the guard.
|
|
14636
|
+
*/
|
|
14637
|
+
outcome?: (GuardOutcome | null);
|
|
14638
|
+
/**
|
|
14639
|
+
* What the guard found the task's priority at before the write, and whether that is one it
|
|
14640
|
+
* names — the shape `task copy --when-destination-priority` reports — absent for a write
|
|
14641
|
+
* made without the guard.
|
|
14642
|
+
*/
|
|
14643
|
+
priority_condition?: (PriorityCondition | null);
|
|
14320
14644
|
sanitization?: (Sanitization | null);
|
|
14321
14645
|
[k: string]: any;
|
|
14322
14646
|
}
|
|
@@ -14426,6 +14750,26 @@ export declare namespace GeneratedTaskPrioritySet {
|
|
|
14426
14750
|
lower_bound: boolean;
|
|
14427
14751
|
[k: string]: any;
|
|
14428
14752
|
}
|
|
14753
|
+
/**
|
|
14754
|
+
* What a guarded copy found a counterpart's priority at, and whether that met the condition.
|
|
14755
|
+
*/
|
|
14756
|
+
interface PriorityCondition {
|
|
14757
|
+
/**
|
|
14758
|
+
* How much a task matters, in the one vocabulary every source is normalised into.
|
|
14759
|
+
*
|
|
14760
|
+
* Five values, most pressing first after [`None`](Self::None): Linear's own priority has
|
|
14761
|
+
* exactly these, and a source whose backend has none of its own maps its representation
|
|
14762
|
+
* onto them. `none` is a value rather than an absent field, because "no priority is set" is
|
|
14763
|
+
* something a person sets — writing `none` clears a priority — and a reader tells it apart
|
|
14764
|
+
* from nothing by the value alone.
|
|
14765
|
+
*/
|
|
14766
|
+
held: ("none" | "urgent" | "high" | "medium" | "low");
|
|
14767
|
+
/**
|
|
14768
|
+
* Whether that priority is one the condition names.
|
|
14769
|
+
*/
|
|
14770
|
+
met: boolean;
|
|
14771
|
+
[k: string]: any;
|
|
14772
|
+
}
|
|
14429
14773
|
/**
|
|
14430
14774
|
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
14431
14775
|
* the `sanitization` member a write's answer carries when it is not empty.
|
|
@@ -15023,13 +15367,17 @@ export declare namespace GeneratedTaskUpdate {
|
|
|
15023
15367
|
* `onetaskgraph.depends_on`.
|
|
15024
15368
|
*/
|
|
15025
15369
|
type TaskRef = string;
|
|
15370
|
+
/**
|
|
15371
|
+
* A repository identified by its normalized origin, without a URL scheme or `.git` suffix.
|
|
15372
|
+
*/
|
|
15373
|
+
type Repository = string;
|
|
15026
15374
|
/**
|
|
15027
15375
|
* A targeted update of one existing task. A member left `None` (or empty) leaves that field
|
|
15028
15376
|
* exactly as the source holds it.
|
|
15029
15377
|
*
|
|
15030
|
-
* Labels
|
|
15031
|
-
*
|
|
15032
|
-
*
|
|
15378
|
+
* Labels and project membership are deliberately outside it — an existing item is never
|
|
15379
|
+
* moved, and no caller writes labels this way — and so is creation, which is a copy's. Its
|
|
15380
|
+
* `repositories` list is a field of the item like its title, and is replaced whole.
|
|
15033
15381
|
*/
|
|
15034
15382
|
interface TaskUpdate {
|
|
15035
15383
|
/**
|
|
@@ -15071,6 +15419,12 @@ export declare namespace GeneratedTaskUpdate {
|
|
|
15071
15419
|
* only the difference.
|
|
15072
15420
|
*/
|
|
15073
15421
|
depends_on?: (DependencyEdge[] | null);
|
|
15422
|
+
/**
|
|
15423
|
+
* Replaces the task's [`Task::repositories`] whole; an empty list clears it. Where the
|
|
15424
|
+
* item's issue lives is never moved by it: it is the list the item names, as a read
|
|
15425
|
+
* reports it.
|
|
15426
|
+
*/
|
|
15427
|
+
repositories?: (Repository[] | null);
|
|
15074
15428
|
[k: string]: any;
|
|
15075
15429
|
}
|
|
15076
15430
|
/**
|
|
@@ -15189,7 +15543,7 @@ export declare namespace GeneratedTaskUpdateOutcome {
|
|
|
15189
15543
|
* kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
|
|
15190
15544
|
* update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
|
|
15191
15545
|
*/
|
|
15192
|
-
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on");
|
|
15546
|
+
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
|
|
15193
15547
|
/**
|
|
15194
15548
|
* What a source answers a [`TaskUpdate`] of a task it holds with.
|
|
15195
15549
|
*
|
|
@@ -15445,7 +15799,7 @@ export declare namespace GeneratedTaskUpdated {
|
|
|
15445
15799
|
* kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
|
|
15446
15800
|
* update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
|
|
15447
15801
|
*/
|
|
15448
|
-
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on");
|
|
15802
|
+
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
|
|
15449
15803
|
/**
|
|
15450
15804
|
* What keeping one delivered task in step with one deliverer came to.
|
|
15451
15805
|
*/
|
|
@@ -16133,7 +16487,7 @@ export declare namespace GeneratedUpdatedField {
|
|
|
16133
16487
|
* kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
|
|
16134
16488
|
* update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
|
|
16135
16489
|
*/
|
|
16136
|
-
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on");
|
|
16490
|
+
type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
|
|
16137
16491
|
}
|
|
16138
16492
|
export type UpdatedField = GeneratedUpdatedField.UpdatedField;
|
|
16139
16493
|
export declare namespace GeneratedVariableType {
|