@onetaskgraph/sdk 0.14.11 → 0.14.13
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 +20 -2
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +1401 -127
- package/dist/generated/schemas.d.ts +11 -25013
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4042 -1326
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SCHEMA_BUNDLE_VERSION:
|
|
1
|
+
export declare const SCHEMA_BUNDLE_VERSION: 62;
|
|
2
2
|
export declare namespace GeneratedAsset {
|
|
3
3
|
/**
|
|
4
4
|
* One asset a record holds, as a read reports it.
|
|
@@ -467,6 +467,13 @@ export declare namespace GeneratedAuthorKind {
|
|
|
467
467
|
type AuthorKind = ("person" | "bot" | "unknown");
|
|
468
468
|
}
|
|
469
469
|
export type AuthorKind = GeneratedAuthorKind.AuthorKind;
|
|
470
|
+
export declare namespace GeneratedBatchOutcome {
|
|
471
|
+
/**
|
|
472
|
+
* What became of one item of a batched write.
|
|
473
|
+
*/
|
|
474
|
+
type BatchOutcome = ("written" | "held" | "version-moved" | "error");
|
|
475
|
+
}
|
|
476
|
+
export type BatchOutcome = GeneratedBatchOutcome.BatchOutcome;
|
|
470
477
|
export declare namespace GeneratedCacheCleared {
|
|
471
478
|
/**
|
|
472
479
|
* What `cache clear` emptied: one entry per cache it reached.
|
|
@@ -858,6 +865,39 @@ export declare namespace GeneratedCommentActivity {
|
|
|
858
865
|
}
|
|
859
866
|
}
|
|
860
867
|
export type CommentActivity = GeneratedCommentActivity.CommentActivity;
|
|
868
|
+
export declare namespace GeneratedCommentBatch {
|
|
869
|
+
/**
|
|
870
|
+
* What `task comment add-many` reads: many comments, each on one task of one source.
|
|
871
|
+
*/
|
|
872
|
+
interface CommentBatch {
|
|
873
|
+
/**
|
|
874
|
+
* `1`.
|
|
875
|
+
*/
|
|
876
|
+
schema_version: number;
|
|
877
|
+
/**
|
|
878
|
+
* The comments, each written on its own.
|
|
879
|
+
*/
|
|
880
|
+
comments: CommentBatchItem[];
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* One comment of a [`CommentBatch`].
|
|
884
|
+
*/
|
|
885
|
+
interface CommentBatchItem {
|
|
886
|
+
/**
|
|
887
|
+
* The task's qualified id, `<source>:<native-id>`, of the source the batch names.
|
|
888
|
+
*/
|
|
889
|
+
item: string;
|
|
890
|
+
/**
|
|
891
|
+
* The comment's Markdown.
|
|
892
|
+
*/
|
|
893
|
+
body: string;
|
|
894
|
+
/**
|
|
895
|
+
* The version the task must be at for the comment to be written, as a read reported it.
|
|
896
|
+
*/
|
|
897
|
+
if_version?: (string | null);
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
export type CommentBatch = GeneratedCommentBatch.CommentBatch;
|
|
861
901
|
export declare namespace GeneratedCommentList {
|
|
862
902
|
/**
|
|
863
903
|
* Every comment on one task, oldest first: what `task comment list` answers with.
|
|
@@ -1277,6 +1317,114 @@ export declare namespace GeneratedCommentWritten {
|
|
|
1277
1317
|
}
|
|
1278
1318
|
}
|
|
1279
1319
|
export type CommentWritten = GeneratedCommentWritten.CommentWritten;
|
|
1320
|
+
export declare namespace GeneratedCommentsAdded {
|
|
1321
|
+
/**
|
|
1322
|
+
* What a locator names.
|
|
1323
|
+
*/
|
|
1324
|
+
type LocatorKind = ("source" | "item" | "field" | "metadata-key" | "comment" | "path" | "identity");
|
|
1325
|
+
/**
|
|
1326
|
+
* What `task comment add-many` answers: one result per comment, in the order given.
|
|
1327
|
+
*/
|
|
1328
|
+
interface CommentsAdded {
|
|
1329
|
+
/**
|
|
1330
|
+
* `1`.
|
|
1331
|
+
*/
|
|
1332
|
+
schema_version: number;
|
|
1333
|
+
/**
|
|
1334
|
+
* One per comment.
|
|
1335
|
+
*/
|
|
1336
|
+
results: CommentAddResult[];
|
|
1337
|
+
sanitization?: (Sanitization | null);
|
|
1338
|
+
[k: string]: any;
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* What became of one comment of a [`CommentBatch`].
|
|
1342
|
+
*/
|
|
1343
|
+
interface CommentAddResult {
|
|
1344
|
+
/**
|
|
1345
|
+
* The item as the batch named it.
|
|
1346
|
+
*/
|
|
1347
|
+
item: string;
|
|
1348
|
+
/**
|
|
1349
|
+
* What became of it.
|
|
1350
|
+
*/
|
|
1351
|
+
outcome: ("written" | "held" | "version-moved" | "error");
|
|
1352
|
+
/**
|
|
1353
|
+
* The comment written — `null` unless `outcome` is `written`.
|
|
1354
|
+
*/
|
|
1355
|
+
comment?: (AddedComment | null);
|
|
1356
|
+
/**
|
|
1357
|
+
* The version the task is at — present when `outcome` is `version-moved` and the source
|
|
1358
|
+
* can name it, which it cannot just after another write of this batch moved the task.
|
|
1359
|
+
*/
|
|
1360
|
+
current_version?: (string | null);
|
|
1361
|
+
/**
|
|
1362
|
+
* Why it was not written — present when `outcome` is `error`.
|
|
1363
|
+
*/
|
|
1364
|
+
reason?: (string | null);
|
|
1365
|
+
[k: string]: any;
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* One comment a batch wrote.
|
|
1369
|
+
*/
|
|
1370
|
+
interface AddedComment {
|
|
1371
|
+
/**
|
|
1372
|
+
* Its id in the source.
|
|
1373
|
+
*/
|
|
1374
|
+
id: string;
|
|
1375
|
+
/**
|
|
1376
|
+
* Where it is shown, when the source has an address for it.
|
|
1377
|
+
*/
|
|
1378
|
+
url?: (string | null);
|
|
1379
|
+
/**
|
|
1380
|
+
* Its version, as `task comments` reports one.
|
|
1381
|
+
*/
|
|
1382
|
+
version?: (string | null);
|
|
1383
|
+
[k: string]: any;
|
|
1384
|
+
}
|
|
1385
|
+
/**
|
|
1386
|
+
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
1387
|
+
* the `sanitization` member a write's answer carries when it is not empty.
|
|
1388
|
+
*/
|
|
1389
|
+
interface Sanitization {
|
|
1390
|
+
/**
|
|
1391
|
+
* Spans the writes' own sanitisations rewrote.
|
|
1392
|
+
*/
|
|
1393
|
+
replaced: number;
|
|
1394
|
+
/**
|
|
1395
|
+
* Each field or comment of an item sanitisation changed beyond the write itself.
|
|
1396
|
+
*/
|
|
1397
|
+
side_effect: SideEffect[];
|
|
1398
|
+
/**
|
|
1399
|
+
* Whether nothing was written, the changes only reported.
|
|
1400
|
+
*/
|
|
1401
|
+
dry_run: boolean;
|
|
1402
|
+
[k: string]: any;
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* One field or comment of an item a sanitisation changed, named by screened locators.
|
|
1406
|
+
*/
|
|
1407
|
+
interface SideEffect {
|
|
1408
|
+
/**
|
|
1409
|
+
* The item, by its qualified id as screened.
|
|
1410
|
+
*/
|
|
1411
|
+
item: (string | {
|
|
1412
|
+
redacted: true;
|
|
1413
|
+
kind: LocatorKind;
|
|
1414
|
+
ordinal: number;
|
|
1415
|
+
});
|
|
1416
|
+
/**
|
|
1417
|
+
* The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.
|
|
1418
|
+
*/
|
|
1419
|
+
field: (string | {
|
|
1420
|
+
redacted: true;
|
|
1421
|
+
kind: LocatorKind;
|
|
1422
|
+
ordinal: number;
|
|
1423
|
+
});
|
|
1424
|
+
[k: string]: any;
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
export type CommentsAdded = GeneratedCommentsAdded.CommentsAdded;
|
|
1280
1428
|
export declare namespace GeneratedCommentsSince {
|
|
1281
1429
|
/**
|
|
1282
1430
|
* What `task comments <SOURCE> --since` answers with.
|
|
@@ -1916,6 +2064,18 @@ export declare namespace GeneratedCopyAction {
|
|
|
1916
2064
|
reason: string;
|
|
1917
2065
|
action: "skipped";
|
|
1918
2066
|
[k: string]: any;
|
|
2067
|
+
} | {
|
|
2068
|
+
/**
|
|
2069
|
+
* The size of the body the item would store, as the destination's plugin counts it —
|
|
2070
|
+
* what [`CopyOutcome::body_size`] reports beside it.
|
|
2071
|
+
*/
|
|
2072
|
+
size: number;
|
|
2073
|
+
/**
|
|
2074
|
+
* The most the destination holds in one body, as its plugin states it.
|
|
2075
|
+
*/
|
|
2076
|
+
limit: number;
|
|
2077
|
+
action: "oversize";
|
|
2078
|
+
[k: string]: any;
|
|
1919
2079
|
});
|
|
1920
2080
|
/**
|
|
1921
2081
|
* One item, qualified by the source it came from.
|
|
@@ -2075,6 +2235,13 @@ export declare namespace GeneratedCopyOutcome {
|
|
|
2075
2235
|
* name — or the record itself — had landed and their headings could be addressed.
|
|
2076
2236
|
*/
|
|
2077
2237
|
section_link_updates?: number;
|
|
2238
|
+
/**
|
|
2239
|
+
* The size of the body the destination would store for the item, in the unit its plugin
|
|
2240
|
+
* states its limit in — the metadata slot the destination keeps and every asset reference
|
|
2241
|
+
* rewritten to where it is served included. Present on a dry run's item whose destination
|
|
2242
|
+
* can say, and absent on every other outcome.
|
|
2243
|
+
*/
|
|
2244
|
+
body_size?: (number | null);
|
|
2078
2245
|
[k: string]: any;
|
|
2079
2246
|
} & ({
|
|
2080
2247
|
/**
|
|
@@ -2176,6 +2343,18 @@ export declare namespace GeneratedCopyOutcome {
|
|
|
2176
2343
|
reason: string;
|
|
2177
2344
|
action: "skipped";
|
|
2178
2345
|
[k: string]: any;
|
|
2346
|
+
} | {
|
|
2347
|
+
/**
|
|
2348
|
+
* The size of the body the item would store, as the destination's plugin counts it —
|
|
2349
|
+
* what [`CopyOutcome::body_size`] reports beside it.
|
|
2350
|
+
*/
|
|
2351
|
+
size: number;
|
|
2352
|
+
/**
|
|
2353
|
+
* The most the destination holds in one body, as its plugin states it.
|
|
2354
|
+
*/
|
|
2355
|
+
limit: number;
|
|
2356
|
+
action: "oversize";
|
|
2357
|
+
[k: string]: any;
|
|
2179
2358
|
}));
|
|
2180
2359
|
/**
|
|
2181
2360
|
* One mutation of an expected write.
|
|
@@ -2535,6 +2714,13 @@ export declare namespace GeneratedCopyReport {
|
|
|
2535
2714
|
* name — or the record itself — had landed and their headings could be addressed.
|
|
2536
2715
|
*/
|
|
2537
2716
|
section_link_updates?: number;
|
|
2717
|
+
/**
|
|
2718
|
+
* The size of the body the destination would store for the item, in the unit its plugin
|
|
2719
|
+
* states its limit in — the metadata slot the destination keeps and every asset reference
|
|
2720
|
+
* rewritten to where it is served included. Present on a dry run's item whose destination
|
|
2721
|
+
* can say, and absent on every other outcome.
|
|
2722
|
+
*/
|
|
2723
|
+
body_size?: (number | null);
|
|
2538
2724
|
[k: string]: any;
|
|
2539
2725
|
} & CopyOutcome1);
|
|
2540
2726
|
/**
|
|
@@ -2687,6 +2873,18 @@ export declare namespace GeneratedCopyReport {
|
|
|
2687
2873
|
reason: string;
|
|
2688
2874
|
action: "skipped";
|
|
2689
2875
|
[k: string]: any;
|
|
2876
|
+
} | {
|
|
2877
|
+
/**
|
|
2878
|
+
* The size of the body the item would store, as the destination's plugin counts it —
|
|
2879
|
+
* what [`CopyOutcome::body_size`] reports beside it.
|
|
2880
|
+
*/
|
|
2881
|
+
size: number;
|
|
2882
|
+
/**
|
|
2883
|
+
* The most the destination holds in one body, as its plugin states it.
|
|
2884
|
+
*/
|
|
2885
|
+
limit: number;
|
|
2886
|
+
action: "oversize";
|
|
2887
|
+
[k: string]: any;
|
|
2690
2888
|
});
|
|
2691
2889
|
/**
|
|
2692
2890
|
* One item, qualified by the source it came from.
|
|
@@ -4787,6 +4985,12 @@ export declare namespace GeneratedFailureDocument {
|
|
|
4787
4985
|
* and absent otherwise.
|
|
4788
4986
|
*/
|
|
4789
4987
|
predates_write?: boolean;
|
|
4988
|
+
/**
|
|
4989
|
+
* Every item a copy refused as `oversize` — its source id, its destination, the size of
|
|
4990
|
+
* the body that write would store and the most that destination holds — and absent for
|
|
4991
|
+
* every other failure.
|
|
4992
|
+
*/
|
|
4993
|
+
oversize?: Oversized[];
|
|
4790
4994
|
sanitization?: (Sanitization | null);
|
|
4791
4995
|
[k: string]: any;
|
|
4792
4996
|
}
|
|
@@ -4924,6 +5128,28 @@ export declare namespace GeneratedFailureDocument {
|
|
|
4924
5128
|
lower_bound: boolean;
|
|
4925
5129
|
[k: string]: any;
|
|
4926
5130
|
}
|
|
5131
|
+
/**
|
|
5132
|
+
* One item a copy would write whose body is larger than its destination holds.
|
|
5133
|
+
*/
|
|
5134
|
+
interface Oversized {
|
|
5135
|
+
/**
|
|
5136
|
+
* The qualified id the item was read from.
|
|
5137
|
+
*/
|
|
5138
|
+
source: string;
|
|
5139
|
+
/**
|
|
5140
|
+
* The name a configuration document gives one configured source.
|
|
5141
|
+
*/
|
|
5142
|
+
destination: string;
|
|
5143
|
+
/**
|
|
5144
|
+
* The size of the body that write would store, as the destination's plugin counts it.
|
|
5145
|
+
*/
|
|
5146
|
+
body_size: number;
|
|
5147
|
+
/**
|
|
5148
|
+
* The most that destination holds in one body.
|
|
5149
|
+
*/
|
|
5150
|
+
limit: number;
|
|
5151
|
+
[k: string]: any;
|
|
5152
|
+
}
|
|
4927
5153
|
/**
|
|
4928
5154
|
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
4929
5155
|
* the `sanitization` member a write's answer carries when it is not empty.
|
|
@@ -4967,7 +5193,7 @@ export declare namespace GeneratedFailureDocument {
|
|
|
4967
5193
|
}
|
|
4968
5194
|
}
|
|
4969
5195
|
export type FailureDocument = GeneratedFailureDocument.FailureDocument;
|
|
4970
|
-
export declare namespace
|
|
5196
|
+
export declare namespace GeneratedFindRequest {
|
|
4971
5197
|
/**
|
|
4972
5198
|
* One item, qualified by the source it came from.
|
|
4973
5199
|
*
|
|
@@ -4975,41 +5201,91 @@ export declare namespace GeneratedGlobalId {
|
|
|
4975
5201
|
* so a native id may contain colons freely.
|
|
4976
5202
|
*/
|
|
4977
5203
|
type GlobalId = string;
|
|
4978
|
-
}
|
|
4979
|
-
export type GlobalId = GeneratedGlobalId.GlobalId;
|
|
4980
|
-
export declare namespace GeneratedHealth {
|
|
4981
5204
|
/**
|
|
4982
|
-
*
|
|
4983
|
-
|
|
4984
|
-
|
|
5205
|
+
* The normalised status vocabulary shared across every source.
|
|
5206
|
+
*/
|
|
5207
|
+
type StatusCategory = ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
|
|
5208
|
+
/**
|
|
5209
|
+
* What `task find` reads: many narrowed searches of one source.
|
|
5210
|
+
*/
|
|
5211
|
+
interface FindRequest {
|
|
5212
|
+
/**
|
|
5213
|
+
* `1`.
|
|
5214
|
+
*/
|
|
5215
|
+
schema_version: number;
|
|
5216
|
+
/**
|
|
5217
|
+
* The searches, each answered under its own key.
|
|
5218
|
+
*/
|
|
5219
|
+
queries: FindQuery[];
|
|
5220
|
+
}
|
|
5221
|
+
/**
|
|
5222
|
+
* One search of a [`FindRequest`]: every task matching all it names.
|
|
4985
5223
|
*
|
|
4986
|
-
*
|
|
4987
|
-
*
|
|
4988
|
-
* the engine and invert the one direction the crate split exists to establish.
|
|
4989
|
-
* The approved contract enumerates this crate's contents exhaustively and does
|
|
4990
|
-
* not name `Health`, so the enumeration and the trait as written cannot both
|
|
4991
|
-
* stand. Compiling forces the placement below; the resolution — add it to the
|
|
4992
|
-
* enumeration, or redesign `health` so no such type crosses the boundary —
|
|
4993
|
-
* belongs to the contract's owner, not to this crate. See `AGENTS.md`.
|
|
5224
|
+
* It must be narrowed by at least one of `text`, `metadata` and `origin`; one narrowed by none
|
|
5225
|
+
* would answer the whole source, and is refused naming its key.
|
|
4994
5226
|
*/
|
|
4995
|
-
interface
|
|
5227
|
+
interface FindQuery {
|
|
4996
5228
|
/**
|
|
4997
|
-
*
|
|
4998
|
-
*
|
|
4999
|
-
* A bare `bool` beside an untyped `detail` cannot say that an unreachable source
|
|
5000
|
-
* must explain itself, or keep "reachable with a warning" apart from "reachable";
|
|
5001
|
-
* an enum carrying the detail in its unreachable variant would.
|
|
5229
|
+
* The caller's own name for this search, which its answer carries back. Unique within the
|
|
5230
|
+
* request.
|
|
5002
5231
|
*/
|
|
5003
|
-
|
|
5232
|
+
key: string;
|
|
5004
5233
|
/**
|
|
5005
|
-
*
|
|
5234
|
+
* Free text the task's title, content or either holds, as `in` says.
|
|
5006
5235
|
*/
|
|
5007
|
-
|
|
5008
|
-
|
|
5236
|
+
text?: (string | null);
|
|
5237
|
+
/**
|
|
5238
|
+
* Where `text` is looked for.
|
|
5239
|
+
*/
|
|
5240
|
+
in?: ("title" | "content" | "both");
|
|
5241
|
+
/**
|
|
5242
|
+
* Caller-defined metadata values the task holds, each at `<KEY>[/<SEGMENT>…]`, as
|
|
5243
|
+
* `task list --metadata` takes them.
|
|
5244
|
+
*/
|
|
5245
|
+
metadata?: {
|
|
5246
|
+
[k: string]: string;
|
|
5247
|
+
};
|
|
5248
|
+
/**
|
|
5249
|
+
* The qualified id the task was copied from.
|
|
5250
|
+
*/
|
|
5251
|
+
origin?: (GlobalId | null);
|
|
5252
|
+
/**
|
|
5253
|
+
* The status categories to keep; empty keeps every one.
|
|
5254
|
+
*/
|
|
5255
|
+
status?: StatusCategory[];
|
|
5009
5256
|
}
|
|
5010
5257
|
}
|
|
5011
|
-
export type
|
|
5012
|
-
export declare namespace
|
|
5258
|
+
export type FindRequest = GeneratedFindRequest.FindRequest;
|
|
5259
|
+
export declare namespace GeneratedFoundTasks {
|
|
5260
|
+
/**
|
|
5261
|
+
* A source's own opaque identifier for one item.
|
|
5262
|
+
*
|
|
5263
|
+
* Deliberately unvalidated: a native id is whatever the upstream system says it
|
|
5264
|
+
* is, colons included. The engine parses a qualified id by splitting on the
|
|
5265
|
+
* *first* colon precisely so this stays true.
|
|
5266
|
+
*/
|
|
5267
|
+
type NativeId = string;
|
|
5268
|
+
/**
|
|
5269
|
+
* Where an entity is, in the one form a consumer can act on without knowing the backend.
|
|
5270
|
+
*
|
|
5271
|
+
* Externally tagged with exactly two variants, so the JSON is `{"url": "https://…"}` or
|
|
5272
|
+
* `{"path": "/home/…"}` and a consumer tells them apart by which key is present. A reader
|
|
5273
|
+
* handed one of these knows what to *do* with it — open a link, or print a path and read
|
|
5274
|
+
* the file out — which is what a bare string could not have said.
|
|
5275
|
+
*
|
|
5276
|
+
* It carries no third case on purpose. `None` on the field is the third case, and it
|
|
5277
|
+
* means the source did not say where the entity is, which is not the same as saying it is
|
|
5278
|
+
* nowhere.
|
|
5279
|
+
*
|
|
5280
|
+
* This does **not** redefine, replace or derive from the `url` field of [`Task`],
|
|
5281
|
+
* [`Project`] or [`Document`]: a source that reports a web URL there goes on reporting
|
|
5282
|
+
* it, and every existing consumer sees exactly what it saw.
|
|
5283
|
+
*/
|
|
5284
|
+
type Location = ({
|
|
5285
|
+
url: string;
|
|
5286
|
+
} | {
|
|
5287
|
+
path: string;
|
|
5288
|
+
});
|
|
5013
5289
|
/**
|
|
5014
5290
|
* A repository identified by its normalized origin, without a URL scheme or `.git` suffix.
|
|
5015
5291
|
*/
|
|
@@ -5025,33 +5301,322 @@ export declare namespace GeneratedHeldTask {
|
|
|
5025
5301
|
*/
|
|
5026
5302
|
type TaskRef = string;
|
|
5027
5303
|
/**
|
|
5028
|
-
*
|
|
5029
|
-
* as far as moving it to `done` needs it.
|
|
5030
|
-
*
|
|
5031
|
-
* It carries of the item exactly what the write and the rules around it need — which item and
|
|
5032
|
-
* of which kind, the card it sits at, the tasks it delivers, and what decides where its id may
|
|
5033
|
-
* be written — rather than the whole item, because the read that answers it is priced per issue
|
|
5034
|
-
* and a whole item is not what a landing's closure needs.
|
|
5304
|
+
* What `task find` answers: one answer per search, in the order asked.
|
|
5035
5305
|
*/
|
|
5036
|
-
interface
|
|
5306
|
+
interface FoundTasks {
|
|
5037
5307
|
/**
|
|
5038
|
-
*
|
|
5308
|
+
* `1`.
|
|
5039
5309
|
*/
|
|
5040
|
-
|
|
5310
|
+
schema_version: number;
|
|
5041
5311
|
/**
|
|
5042
|
-
*
|
|
5043
|
-
* so a plugin written before a project could be held answers exactly what it answered.
|
|
5312
|
+
* One per search.
|
|
5044
5313
|
*/
|
|
5045
|
-
|
|
5314
|
+
answers: FindAnswer[];
|
|
5315
|
+
[k: string]: any;
|
|
5316
|
+
}
|
|
5317
|
+
/**
|
|
5318
|
+
* What one search of a [`FindRequest`] found.
|
|
5319
|
+
*/
|
|
5320
|
+
interface FindAnswer {
|
|
5046
5321
|
/**
|
|
5047
|
-
* The
|
|
5048
|
-
* at one.
|
|
5322
|
+
* The search's key.
|
|
5049
5323
|
*/
|
|
5050
|
-
|
|
5324
|
+
key: string;
|
|
5051
5325
|
/**
|
|
5052
|
-
*
|
|
5326
|
+
* Every task it matched, across every page, each as `task list` reports it.
|
|
5053
5327
|
*/
|
|
5054
|
-
|
|
5328
|
+
items: Qualified[];
|
|
5329
|
+
/**
|
|
5330
|
+
* Whether `items` is every match: `false` when a page of this search could not be read,
|
|
5331
|
+
* and `items` holds what the pages before it answered.
|
|
5332
|
+
*/
|
|
5333
|
+
complete: boolean;
|
|
5334
|
+
/**
|
|
5335
|
+
* Why the answer is incomplete, naming the page refused — `null` when it is complete.
|
|
5336
|
+
*/
|
|
5337
|
+
reason?: (string | null);
|
|
5338
|
+
[k: string]: any;
|
|
5339
|
+
}
|
|
5340
|
+
/**
|
|
5341
|
+
* One item, under the qualified id the engine addresses it by.
|
|
5342
|
+
*
|
|
5343
|
+
* A plugin only ever deals in its own [`NativeId`]; qualifying one is the engine's job,
|
|
5344
|
+
* so this type is the engine's and a plugin never constructs one.
|
|
5345
|
+
*/
|
|
5346
|
+
interface Qualified {
|
|
5347
|
+
/**
|
|
5348
|
+
* `<source>:<native>`, the form a user types back at the command line.
|
|
5349
|
+
*/
|
|
5350
|
+
id: string;
|
|
5351
|
+
item: Task;
|
|
5352
|
+
[k: string]: any;
|
|
5353
|
+
}
|
|
5354
|
+
/**
|
|
5355
|
+
* The item as its source reported it, unchanged.
|
|
5356
|
+
*/
|
|
5357
|
+
interface Task {
|
|
5358
|
+
/**
|
|
5359
|
+
* The source's own opaque identifier.
|
|
5360
|
+
*/
|
|
5361
|
+
id: string;
|
|
5362
|
+
/**
|
|
5363
|
+
* The short handle the backend shows people, beside [`id`](Self::id) and never
|
|
5364
|
+
* instead of it — a Linear issue's `ENG-123`, a GitHub issue's `1043`.
|
|
5365
|
+
*
|
|
5366
|
+
* **It is human-facing and it may change.** A Linear issue moved between teams gets a
|
|
5367
|
+
* new identifier and a GitHub issue transferred between repositories gets a new
|
|
5368
|
+
* number, so nothing stores this in place of [`id`](Self::id) and nothing matches on
|
|
5369
|
+
* it: `id` is what everything stores and matches on, and this is what a person says
|
|
5370
|
+
* out loud.
|
|
5371
|
+
*
|
|
5372
|
+
* Absent by default, so a source that predates this field — and every source with no
|
|
5373
|
+
* separate handle of its own — reads as `None`, which means *this backend has no
|
|
5374
|
+
* short handle for this task* rather than *the handle is the id*. A source never
|
|
5375
|
+
* copies [`id`](Self::id) here.
|
|
5376
|
+
*
|
|
5377
|
+
* **Read-only.** A source derives it on a read and never stores one it is handed: a
|
|
5378
|
+
* task arriving on an [`ItemWrite`](crate::ItemWrite) may still hold its source's key,
|
|
5379
|
+
* and a destination ignores it.
|
|
5380
|
+
*/
|
|
5381
|
+
key?: (string | null);
|
|
5382
|
+
/**
|
|
5383
|
+
* The one-line summary a user recognises the task by.
|
|
5384
|
+
*/
|
|
5385
|
+
title: string;
|
|
5386
|
+
/**
|
|
5387
|
+
* The long-form body, when the source has one.
|
|
5388
|
+
*/
|
|
5389
|
+
content?: (string | null);
|
|
5390
|
+
status: Status;
|
|
5391
|
+
/**
|
|
5392
|
+
* The task's priority; `none` means none is set, and a source that cannot hold one
|
|
5393
|
+
* reports `none`.
|
|
5394
|
+
*
|
|
5395
|
+
* Defaulted when a document omits it, so a task written before this field existed —
|
|
5396
|
+
* and every task of a plugin that predates it — reads as [`Priority::None`]. Always
|
|
5397
|
+
* written, so a reader never has to tell an absent member from a `none` one. Whether a
|
|
5398
|
+
* source can hold one at all is [`Capabilities::priority`](crate::Capabilities::priority),
|
|
5399
|
+
* and the engine never hands a source declaring it cannot a priority other than `none`.
|
|
5400
|
+
*/
|
|
5401
|
+
priority?: ("none" | "urgent" | "high" | "medium" | "low");
|
|
5402
|
+
/**
|
|
5403
|
+
* Inline rather than by id: a source returning a task already knows them.
|
|
5404
|
+
*/
|
|
5405
|
+
labels: Label[];
|
|
5406
|
+
/**
|
|
5407
|
+
* `None` is a first-class case — an orphan task — not an edge case.
|
|
5408
|
+
*/
|
|
5409
|
+
project?: (NativeId | null);
|
|
5410
|
+
/**
|
|
5411
|
+
* Where a human can open this task.
|
|
5412
|
+
*/
|
|
5413
|
+
url?: (string | null);
|
|
5414
|
+
/**
|
|
5415
|
+
* Where this task is, when the source says (see [`Location`]).
|
|
5416
|
+
*
|
|
5417
|
+
* Absent by default, so a source that predates this field — and every source that
|
|
5418
|
+
* simply does not say — reads as `None`, which means *the source did not say where
|
|
5419
|
+
* this is* rather than *this is nowhere*. It neither replaces nor derives from
|
|
5420
|
+
* [`url`](Self::url), which goes on meaning exactly what it always did.
|
|
5421
|
+
*/
|
|
5422
|
+
location?: (Location | null);
|
|
5423
|
+
/**
|
|
5424
|
+
* When the source says the task was created.
|
|
5425
|
+
*/
|
|
5426
|
+
created_at?: (string | null);
|
|
5427
|
+
/**
|
|
5428
|
+
* When the source says the task last changed.
|
|
5429
|
+
*/
|
|
5430
|
+
updated_at?: (string | null);
|
|
5431
|
+
/**
|
|
5432
|
+
* Caller-defined attributes, preserving their JSON types.
|
|
5433
|
+
*
|
|
5434
|
+
* Keys are free-form, with two reserved prefixes: `onetaskgraph.` belongs to this
|
|
5435
|
+
* product — [`Repository::METADATA_KEY`] and [`DependencyEdge::RECORDED_KEY`] are
|
|
5436
|
+
* the two every source honours, and [`ItemKind::METADATA_KEY`] is one plugin's —
|
|
5437
|
+
* and `onepipeline.` belongs to that consumer. Every other key is the caller's, and
|
|
5438
|
+
* a source returns it exactly as it holds it.
|
|
5439
|
+
*/
|
|
5440
|
+
metadata?: {
|
|
5441
|
+
[k: string]: any;
|
|
5442
|
+
};
|
|
5443
|
+
/**
|
|
5444
|
+
* Normalized repository origins this task concerns, in source order and without
|
|
5445
|
+
* repeats.
|
|
5446
|
+
*/
|
|
5447
|
+
repositories?: Repository[];
|
|
5448
|
+
/**
|
|
5449
|
+
* The tasks this one delivers: finishing this task finishes them.
|
|
5450
|
+
*
|
|
5451
|
+
* Each entry is a [`TaskRef`] — `<source>:<native>` names a task of any source, and a
|
|
5452
|
+
* bare native id names a task of the source holding this one — with no repeats and
|
|
5453
|
+
* never this task itself. Empty by default, and left out of the wire when empty, so a
|
|
5454
|
+
* reader written before the field existed reads exactly what it read before.
|
|
5455
|
+
*/
|
|
5456
|
+
delivers?: TaskRef[];
|
|
5457
|
+
/**
|
|
5458
|
+
* Every task that delivers this one, by qualified id: the reverse of [`Self::delivers`].
|
|
5459
|
+
*
|
|
5460
|
+
* **Owned by the store, not by a source record and not by a copy.** The engine keeps it
|
|
5461
|
+
* in step whenever it writes a task's `delivers`, through
|
|
5462
|
+
* [`TaskSource::set_delivered_by`](crate::TaskSource::set_delivered_by); a source holds
|
|
5463
|
+
* and reports it, and a copy keeps the destination's own rather than taking the
|
|
5464
|
+
* source's. Empty by default and left out of the wire when empty, as `delivers` is.
|
|
5465
|
+
*/
|
|
5466
|
+
delivered_by?: TaskRef[];
|
|
5467
|
+
/**
|
|
5468
|
+
* The task's change token: an opaque value its source gives so a reader can tell whether
|
|
5469
|
+
* the task changed without reading it whole.
|
|
5470
|
+
*
|
|
5471
|
+
* **Two equal versions of one task from one source mean nothing in it has changed** — its
|
|
5472
|
+
* title, body, status, priority, labels, project fields, metadata, edges and comments,
|
|
5473
|
+
* comments added, edited and deleted included. A source that cannot promise all of that
|
|
5474
|
+
* for a task leaves this absent, which means *always read it*. What each plugin keys its
|
|
5475
|
+
* token on, and which change kinds it covers, is stated per plugin in
|
|
5476
|
+
* `docs/plugin-protocol.md` §4.13d.
|
|
5477
|
+
*
|
|
5478
|
+
* Opaque to every caller: nothing compares one but for equality, and the one reader that
|
|
5479
|
+
* looks inside is the source that gave it, through
|
|
5480
|
+
* [`TaskSource::order_versions`](crate::TaskSource::order_versions). Absent by default and left out of the wire when absent, so a source written
|
|
5481
|
+
* before it existed is read as giving none.
|
|
5482
|
+
*
|
|
5483
|
+
* **Read-only.** A source derives it on a read and never stores one it is handed: a task
|
|
5484
|
+
* arriving on an [`ItemWrite`](crate::ItemWrite) may still hold its source's token, and a
|
|
5485
|
+
* destination ignores it.
|
|
5486
|
+
*/
|
|
5487
|
+
version?: (string | null);
|
|
5488
|
+
/**
|
|
5489
|
+
* Who may read this task, as it was declared (see [`Classification`]).
|
|
5490
|
+
*
|
|
5491
|
+
* Defaulted and left out of the wire while `public`, so a task written before this
|
|
5492
|
+
* field existed reads as public and a reader written before it reads what it always
|
|
5493
|
+
* read. It is the *declared* classification: the engine tightens it by the task's own
|
|
5494
|
+
* repositories — any private or unknown one makes the task private — before it decides
|
|
5495
|
+
* where the task may be written, and nothing written here can loosen that. The project
|
|
5496
|
+
* a task is filed under never tightens it: a task's visibility is its own.
|
|
5497
|
+
*/
|
|
5498
|
+
classification?: ("public" | "private");
|
|
5499
|
+
[k: string]: any;
|
|
5500
|
+
}
|
|
5501
|
+
/**
|
|
5502
|
+
* The source's status, normalised and preserved.
|
|
5503
|
+
*/
|
|
5504
|
+
interface Status {
|
|
5505
|
+
/**
|
|
5506
|
+
* The normalised value filters compare against.
|
|
5507
|
+
*/
|
|
5508
|
+
category: ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
|
|
5509
|
+
/**
|
|
5510
|
+
* The source's own label for this status.
|
|
5511
|
+
*/
|
|
5512
|
+
name: string;
|
|
5513
|
+
[k: string]: any;
|
|
5514
|
+
}
|
|
5515
|
+
/**
|
|
5516
|
+
* A tag a source attaches to work.
|
|
5517
|
+
*/
|
|
5518
|
+
interface Label {
|
|
5519
|
+
/**
|
|
5520
|
+
* The source's own opaque identifier.
|
|
5521
|
+
*/
|
|
5522
|
+
id: string;
|
|
5523
|
+
/**
|
|
5524
|
+
* What a user filtering across sources actually types.
|
|
5525
|
+
*/
|
|
5526
|
+
name: string;
|
|
5527
|
+
/**
|
|
5528
|
+
* The source's own colour for the label, when it has one.
|
|
5529
|
+
*/
|
|
5530
|
+
color?: (string | null);
|
|
5531
|
+
[k: string]: any;
|
|
5532
|
+
}
|
|
5533
|
+
}
|
|
5534
|
+
export type FoundTasks = GeneratedFoundTasks.FoundTasks;
|
|
5535
|
+
export declare namespace GeneratedGlobalId {
|
|
5536
|
+
/**
|
|
5537
|
+
* One item, qualified by the source it came from.
|
|
5538
|
+
*
|
|
5539
|
+
* Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
|
|
5540
|
+
* so a native id may contain colons freely.
|
|
5541
|
+
*/
|
|
5542
|
+
type GlobalId = string;
|
|
5543
|
+
}
|
|
5544
|
+
export type GlobalId = GeneratedGlobalId.GlobalId;
|
|
5545
|
+
export declare namespace GeneratedHealth {
|
|
5546
|
+
/**
|
|
5547
|
+
* Whether a source is answering right now.
|
|
5548
|
+
*
|
|
5549
|
+
* # Placement is an open contract question
|
|
5550
|
+
*
|
|
5551
|
+
* This type lives here because [`TaskSource::health`] returns it and the trait
|
|
5552
|
+
* lives here: placing it in `onetaskgraph-core` would make this crate depend on
|
|
5553
|
+
* the engine and invert the one direction the crate split exists to establish.
|
|
5554
|
+
* The approved contract enumerates this crate's contents exhaustively and does
|
|
5555
|
+
* not name `Health`, so the enumeration and the trait as written cannot both
|
|
5556
|
+
* stand. Compiling forces the placement below; the resolution — add it to the
|
|
5557
|
+
* enumeration, or redesign `health` so no such type crosses the boundary —
|
|
5558
|
+
* belongs to the contract's owner, not to this crate. See `AGENTS.md`.
|
|
5559
|
+
*/
|
|
5560
|
+
interface Health {
|
|
5561
|
+
/**
|
|
5562
|
+
* Whether the source answered.
|
|
5563
|
+
*
|
|
5564
|
+
* A bare `bool` beside an untyped `detail` cannot say that an unreachable source
|
|
5565
|
+
* must explain itself, or keep "reachable with a warning" apart from "reachable";
|
|
5566
|
+
* an enum carrying the detail in its unreachable variant would.
|
|
5567
|
+
*/
|
|
5568
|
+
reachable: boolean;
|
|
5569
|
+
/**
|
|
5570
|
+
* What the source said, when it said anything useful.
|
|
5571
|
+
*/
|
|
5572
|
+
detail?: (string | null);
|
|
5573
|
+
[k: string]: any;
|
|
5574
|
+
}
|
|
5575
|
+
}
|
|
5576
|
+
export type Health = GeneratedHealth.Health;
|
|
5577
|
+
export declare namespace GeneratedHeldTask {
|
|
5578
|
+
/**
|
|
5579
|
+
* A repository identified by its normalized origin, without a URL scheme or `.git` suffix.
|
|
5580
|
+
*/
|
|
5581
|
+
type Repository = string;
|
|
5582
|
+
/**
|
|
5583
|
+
* One task named by another task's [`Task::delivers`] or [`Task::delivered_by`].
|
|
5584
|
+
*
|
|
5585
|
+
* A string with one of two spellings, decided the way a [`DependencyEndpoint`] decides it:
|
|
5586
|
+
* one holding a colon is `<source>:<native>` and names a task of any source, and one
|
|
5587
|
+
* without is a bare native id naming a task of the source that holds the list. So a
|
|
5588
|
+
* native id holding a colon cannot be named bare, exactly as it cannot in
|
|
5589
|
+
* `onetaskgraph.depends_on`.
|
|
5590
|
+
*/
|
|
5591
|
+
type TaskRef = string;
|
|
5592
|
+
/**
|
|
5593
|
+
* The item one source holds for an issue — a task, or a project such as a plan's home card —
|
|
5594
|
+
* as far as moving it to `done` needs it.
|
|
5595
|
+
*
|
|
5596
|
+
* It carries of the item exactly what the write and the rules around it need — which item and
|
|
5597
|
+
* of which kind, the card it sits at, the tasks it delivers, and what decides where its id may
|
|
5598
|
+
* be written — rather than the whole item, because the read that answers it is priced per issue
|
|
5599
|
+
* and a whole item is not what a landing's closure needs.
|
|
5600
|
+
*/
|
|
5601
|
+
interface HeldTask {
|
|
5602
|
+
/**
|
|
5603
|
+
* The item, by this source's own id for it.
|
|
5604
|
+
*/
|
|
5605
|
+
id: string;
|
|
5606
|
+
/**
|
|
5607
|
+
* Which kind of item it is. Defaulted to `task` and left out of the wire while it is one,
|
|
5608
|
+
* so a plugin written before a project could be held answers exactly what it answered.
|
|
5609
|
+
*/
|
|
5610
|
+
kind?: ("task" | "project");
|
|
5611
|
+
/**
|
|
5612
|
+
* The name of the option the task's card sits at, as the source spells it, when it sits
|
|
5613
|
+
* at one.
|
|
5614
|
+
*/
|
|
5615
|
+
option?: (string | null);
|
|
5616
|
+
/**
|
|
5617
|
+
* The task's own classification.
|
|
5618
|
+
*/
|
|
5619
|
+
classification?: ("public" | "private");
|
|
5055
5620
|
/**
|
|
5056
5621
|
* The repositories the task names.
|
|
5057
5622
|
*/
|
|
@@ -5868,93 +6433,247 @@ export declare namespace GeneratedLabel {
|
|
|
5868
6433
|
*/
|
|
5869
6434
|
interface Label {
|
|
5870
6435
|
/**
|
|
5871
|
-
* The source's own opaque identifier.
|
|
6436
|
+
* The source's own opaque identifier.
|
|
6437
|
+
*/
|
|
6438
|
+
id: string;
|
|
6439
|
+
/**
|
|
6440
|
+
* What a user filtering across sources actually types.
|
|
6441
|
+
*/
|
|
6442
|
+
name: string;
|
|
6443
|
+
/**
|
|
6444
|
+
* The source's own colour for the label, when it has one.
|
|
6445
|
+
*/
|
|
6446
|
+
color?: (string | null);
|
|
6447
|
+
[k: string]: any;
|
|
6448
|
+
}
|
|
6449
|
+
}
|
|
6450
|
+
export type Label = GeneratedLabel.Label;
|
|
6451
|
+
export declare namespace GeneratedLinearConfig {
|
|
6452
|
+
/**
|
|
6453
|
+
* A Linear team's key or id.
|
|
6454
|
+
*/
|
|
6455
|
+
type LinearTeam = string;
|
|
6456
|
+
/**
|
|
6457
|
+
* What one category of a status_mapping names: one name for every item kind, or an object naming it for a task, for a project, or for each. A kind the object leaves out leaves the category unmapped for that kind.
|
|
6458
|
+
*/
|
|
6459
|
+
type StatusNames = (StatusName | {
|
|
6460
|
+
task: StatusName;
|
|
6461
|
+
} | {
|
|
6462
|
+
project: StatusName;
|
|
6463
|
+
} | {
|
|
6464
|
+
task: StatusName;
|
|
6465
|
+
project: StatusName;
|
|
6466
|
+
});
|
|
6467
|
+
/**
|
|
6468
|
+
* One status name a source's backend holds, matched ignoring case. Never blank.
|
|
6469
|
+
*/
|
|
6470
|
+
type StatusName = string;
|
|
6471
|
+
/**
|
|
6472
|
+
* The id of one Linear project, which a scoped source holds alone.
|
|
6473
|
+
*/
|
|
6474
|
+
type LinearProjectId = string;
|
|
6475
|
+
/**
|
|
6476
|
+
* One `linear` source's configuration.
|
|
6477
|
+
*
|
|
6478
|
+
* It names the credential's environment variable, never its value. Serializable so the
|
|
6479
|
+
* schema it is published under carries each member's default, which is what a configuration
|
|
6480
|
+
* that leaves the member out means.
|
|
6481
|
+
*/
|
|
6482
|
+
interface LinearConfig {
|
|
6483
|
+
/**
|
|
6484
|
+
* Environment variable resolved by the host.
|
|
6485
|
+
*/
|
|
6486
|
+
api_key_env?: string;
|
|
6487
|
+
/**
|
|
6488
|
+
* Linear team key/id used to narrow reads and required for item writes.
|
|
6489
|
+
*/
|
|
6490
|
+
team?: (LinearTeam | null);
|
|
6491
|
+
/**
|
|
6492
|
+
* GraphQL endpoint override, primarily for fixture servers.
|
|
6493
|
+
*/
|
|
6494
|
+
endpoint?: string;
|
|
6495
|
+
status_mapping?: StatusMapping;
|
|
6496
|
+
/**
|
|
6497
|
+
* The id of one Linear project of the configured team, scoping this source to it.
|
|
6498
|
+
*
|
|
6499
|
+
* When set, every task read is narrowed to that project's issues, project and document
|
|
6500
|
+
* reads return only that project and its documents, a task or a document written with
|
|
6501
|
+
* no project is placed in it, and one naming another project is refused. Absent, the
|
|
6502
|
+
* source reads and writes team-wide.
|
|
6503
|
+
*/
|
|
6504
|
+
project?: (LinearProjectId | null);
|
|
6505
|
+
/**
|
|
6506
|
+
* The link types this source mirrors as Linear's own `related` issue relation, each as
|
|
6507
|
+
* `<type>: {"native": "related"}` — the one word a Linear source mirrors a link as. A type
|
|
6508
|
+
* not named here is kept in the store's metadata alone.
|
|
6509
|
+
*/
|
|
6510
|
+
link_types?: {
|
|
6511
|
+
[k: string]: LinkTypeConfig;
|
|
6512
|
+
};
|
|
6513
|
+
}
|
|
6514
|
+
/**
|
|
6515
|
+
* Which workflow state of the configured team a task's status category is, and which of
|
|
6516
|
+
* the workspace's project statuses a project's is — the shared `status_mapping` grammar.
|
|
6517
|
+
*
|
|
6518
|
+
* Linear has no built-in names, so this is the whole of what a status is written as and
|
|
6519
|
+
* read by: a category is written as exactly the name its kind maps it to, and a status
|
|
6520
|
+
* write it gives no name for is refused before any mutation, naming the key to set; an
|
|
6521
|
+
* item at a name its kind maps reads as that category under the name, and every other
|
|
6522
|
+
* name reads as `unknown`. A source without it reads every item as `unknown` and refuses
|
|
6523
|
+
* every status write. Two categories mapped to one name of one kind are refused when this
|
|
6524
|
+
* configuration is read.
|
|
6525
|
+
*/
|
|
6526
|
+
interface StatusMapping {
|
|
6527
|
+
[k: string]: (StatusNames | null);
|
|
6528
|
+
}
|
|
6529
|
+
/**
|
|
6530
|
+
* One entry of a source's `link_types` configuration, as written.
|
|
6531
|
+
*/
|
|
6532
|
+
interface LinkTypeConfig {
|
|
6533
|
+
/**
|
|
6534
|
+
* The destination's own relation this type is mirrored as.
|
|
6535
|
+
*/
|
|
6536
|
+
native?: (string | null);
|
|
6537
|
+
}
|
|
6538
|
+
}
|
|
6539
|
+
export type LinearConfig = GeneratedLinearConfig.LinearConfig;
|
|
6540
|
+
export declare namespace GeneratedLinkBatch {
|
|
6541
|
+
/**
|
|
6542
|
+
* What `task link add-many` and `task link remove-many` read: many typed links.
|
|
6543
|
+
*/
|
|
6544
|
+
interface LinkBatch {
|
|
6545
|
+
/**
|
|
6546
|
+
* `1`.
|
|
6547
|
+
*/
|
|
6548
|
+
schema_version: number;
|
|
6549
|
+
/**
|
|
6550
|
+
* The links, each added or removed on its own.
|
|
6551
|
+
*/
|
|
6552
|
+
links: LinkItem[];
|
|
6553
|
+
}
|
|
6554
|
+
/**
|
|
6555
|
+
* One link of a [`LinkBatch`]: a type name over a directed pair of items.
|
|
6556
|
+
*/
|
|
6557
|
+
interface LinkItem {
|
|
6558
|
+
/**
|
|
6559
|
+
* The link's `from`, a qualified task id.
|
|
6560
|
+
*/
|
|
6561
|
+
from: string;
|
|
6562
|
+
/**
|
|
6563
|
+
* The link's `to`, a qualified task id of any configured source.
|
|
6564
|
+
*/
|
|
6565
|
+
to: string;
|
|
6566
|
+
/**
|
|
6567
|
+
* The link's type name.
|
|
6568
|
+
*/
|
|
6569
|
+
type: string;
|
|
6570
|
+
}
|
|
6571
|
+
}
|
|
6572
|
+
export type LinkBatch = GeneratedLinkBatch.LinkBatch;
|
|
6573
|
+
export declare namespace GeneratedLinkOutcome {
|
|
6574
|
+
/**
|
|
6575
|
+
* What became of one link.
|
|
6576
|
+
*/
|
|
6577
|
+
type LinkOutcome = ("written" | "exists" | "absent" | "partial" | "error");
|
|
6578
|
+
}
|
|
6579
|
+
export type LinkOutcome = GeneratedLinkOutcome.LinkOutcome;
|
|
6580
|
+
export declare namespace GeneratedLinksWritten {
|
|
6581
|
+
/**
|
|
6582
|
+
* What a locator names.
|
|
6583
|
+
*/
|
|
6584
|
+
type LocatorKind = ("source" | "item" | "field" | "metadata-key" | "comment" | "path" | "identity");
|
|
6585
|
+
/**
|
|
6586
|
+
* What `task link add-many` and `task link remove-many` answer: one result per link.
|
|
6587
|
+
*/
|
|
6588
|
+
interface LinksWritten {
|
|
6589
|
+
/**
|
|
6590
|
+
* `1`.
|
|
6591
|
+
*/
|
|
6592
|
+
schema_version: number;
|
|
6593
|
+
/**
|
|
6594
|
+
* One per link, in the order given.
|
|
6595
|
+
*/
|
|
6596
|
+
results: LinkResult[];
|
|
6597
|
+
sanitization?: (Sanitization | null);
|
|
6598
|
+
[k: string]: any;
|
|
6599
|
+
}
|
|
6600
|
+
/**
|
|
6601
|
+
* What became of one link of a [`LinkBatch`].
|
|
6602
|
+
*/
|
|
6603
|
+
interface LinkResult {
|
|
6604
|
+
/**
|
|
6605
|
+
* The `from` as the batch named it.
|
|
6606
|
+
*/
|
|
6607
|
+
from: string;
|
|
6608
|
+
/**
|
|
6609
|
+
* The `to` as the batch named it.
|
|
6610
|
+
*/
|
|
6611
|
+
to: string;
|
|
6612
|
+
/**
|
|
6613
|
+
* The link's type name.
|
|
6614
|
+
*/
|
|
6615
|
+
type: string;
|
|
6616
|
+
/**
|
|
6617
|
+
* What became of it.
|
|
6618
|
+
*/
|
|
6619
|
+
outcome: ("written" | "exists" | "absent" | "partial" | "error");
|
|
6620
|
+
/**
|
|
6621
|
+
* The `from` endpoint's version — after this call's write of it, else as read.
|
|
5872
6622
|
*/
|
|
5873
|
-
|
|
6623
|
+
from_version?: (string | null);
|
|
5874
6624
|
/**
|
|
5875
|
-
*
|
|
6625
|
+
* The `to` endpoint's version — after this call's write of it, else as read.
|
|
5876
6626
|
*/
|
|
5877
|
-
|
|
6627
|
+
to_version?: (string | null);
|
|
5878
6628
|
/**
|
|
5879
|
-
*
|
|
6629
|
+
* Why it is answered `partial` — naming the endpoint that landed — or `error`.
|
|
5880
6630
|
*/
|
|
5881
|
-
|
|
6631
|
+
reason?: (string | null);
|
|
5882
6632
|
[k: string]: any;
|
|
5883
6633
|
}
|
|
5884
|
-
}
|
|
5885
|
-
export type Label = GeneratedLabel.Label;
|
|
5886
|
-
export declare namespace GeneratedLinearConfig {
|
|
5887
|
-
/**
|
|
5888
|
-
* A Linear team's key or id.
|
|
5889
|
-
*/
|
|
5890
|
-
type LinearTeam = string;
|
|
5891
|
-
/**
|
|
5892
|
-
* What one category of a status_mapping names: one name for every item kind, or an object naming it for a task, for a project, or for each. A kind the object leaves out leaves the category unmapped for that kind.
|
|
5893
|
-
*/
|
|
5894
|
-
type StatusNames = (StatusName | {
|
|
5895
|
-
task: StatusName;
|
|
5896
|
-
} | {
|
|
5897
|
-
project: StatusName;
|
|
5898
|
-
} | {
|
|
5899
|
-
task: StatusName;
|
|
5900
|
-
project: StatusName;
|
|
5901
|
-
});
|
|
5902
|
-
/**
|
|
5903
|
-
* One status name a source's backend holds, matched ignoring case. Never blank.
|
|
5904
|
-
*/
|
|
5905
|
-
type StatusName = string;
|
|
5906
|
-
/**
|
|
5907
|
-
* The id of one Linear project, which a scoped source holds alone.
|
|
5908
|
-
*/
|
|
5909
|
-
type LinearProjectId = string;
|
|
5910
6634
|
/**
|
|
5911
|
-
*
|
|
5912
|
-
*
|
|
5913
|
-
* It names the credential's environment variable, never its value. Serializable so the
|
|
5914
|
-
* schema it is published under carries each member's default, which is what a configuration
|
|
5915
|
-
* that leaves the member out means.
|
|
6635
|
+
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
6636
|
+
* the `sanitization` member a write's answer carries when it is not empty.
|
|
5916
6637
|
*/
|
|
5917
|
-
interface
|
|
5918
|
-
/**
|
|
5919
|
-
* Environment variable resolved by the host.
|
|
5920
|
-
*/
|
|
5921
|
-
api_key_env?: string;
|
|
6638
|
+
interface Sanitization {
|
|
5922
6639
|
/**
|
|
5923
|
-
*
|
|
6640
|
+
* Spans the writes' own sanitisations rewrote.
|
|
5924
6641
|
*/
|
|
5925
|
-
|
|
6642
|
+
replaced: number;
|
|
5926
6643
|
/**
|
|
5927
|
-
*
|
|
6644
|
+
* Each field or comment of an item sanitisation changed beyond the write itself.
|
|
5928
6645
|
*/
|
|
5929
|
-
|
|
5930
|
-
status_mapping?: StatusMapping;
|
|
6646
|
+
side_effect: SideEffect[];
|
|
5931
6647
|
/**
|
|
5932
|
-
*
|
|
5933
|
-
*
|
|
5934
|
-
* When set, every task read is narrowed to that project's issues, project and document
|
|
5935
|
-
* reads return only that project and its documents, a task or a document written with
|
|
5936
|
-
* no project is placed in it, and one naming another project is refused. Absent, the
|
|
5937
|
-
* source reads and writes team-wide.
|
|
6648
|
+
* Whether nothing was written, the changes only reported.
|
|
5938
6649
|
*/
|
|
5939
|
-
|
|
6650
|
+
dry_run: boolean;
|
|
6651
|
+
[k: string]: any;
|
|
5940
6652
|
}
|
|
5941
6653
|
/**
|
|
5942
|
-
*
|
|
5943
|
-
* the workspace's project statuses a project's is — the shared `status_mapping` grammar.
|
|
5944
|
-
*
|
|
5945
|
-
* Linear has no built-in names, so this is the whole of what a status is written as and
|
|
5946
|
-
* read by: a category is written as exactly the name its kind maps it to, and a status
|
|
5947
|
-
* write it gives no name for is refused before any mutation, naming the key to set; an
|
|
5948
|
-
* item at a name its kind maps reads as that category under the name, and every other
|
|
5949
|
-
* name reads as `unknown`. A source without it reads every item as `unknown` and refuses
|
|
5950
|
-
* every status write. Two categories mapped to one name of one kind are refused when this
|
|
5951
|
-
* configuration is read.
|
|
6654
|
+
* One field or comment of an item a sanitisation changed, named by screened locators.
|
|
5952
6655
|
*/
|
|
5953
|
-
interface
|
|
5954
|
-
|
|
6656
|
+
interface SideEffect {
|
|
6657
|
+
/**
|
|
6658
|
+
* The item, by its qualified id as screened.
|
|
6659
|
+
*/
|
|
6660
|
+
item: (string | {
|
|
6661
|
+
redacted: true;
|
|
6662
|
+
kind: LocatorKind;
|
|
6663
|
+
ordinal: number;
|
|
6664
|
+
});
|
|
6665
|
+
/**
|
|
6666
|
+
* The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.
|
|
6667
|
+
*/
|
|
6668
|
+
field: (string | {
|
|
6669
|
+
redacted: true;
|
|
6670
|
+
kind: LocatorKind;
|
|
6671
|
+
ordinal: number;
|
|
6672
|
+
});
|
|
6673
|
+
[k: string]: any;
|
|
5955
6674
|
}
|
|
5956
6675
|
}
|
|
5957
|
-
export type
|
|
6676
|
+
export type LinksWritten = GeneratedLinksWritten.LinksWritten;
|
|
5958
6677
|
export declare namespace GeneratedLocateReport {
|
|
5959
6678
|
/**
|
|
5960
6679
|
* One item, qualified by the source it came from.
|
|
@@ -6576,6 +7295,13 @@ export declare namespace GeneratedOrigin {
|
|
|
6576
7295
|
});
|
|
6577
7296
|
}
|
|
6578
7297
|
export type Origin = GeneratedOrigin.Origin;
|
|
7298
|
+
export declare namespace GeneratedOtherEnd {
|
|
7299
|
+
/**
|
|
7300
|
+
* Whether a link's other end holds it too.
|
|
7301
|
+
*/
|
|
7302
|
+
type OtherEnd = ("present" | "missing" | "unread");
|
|
7303
|
+
}
|
|
7304
|
+
export type OtherEnd = GeneratedOtherEnd.OtherEnd;
|
|
6579
7305
|
export declare namespace GeneratedOutputFormat {
|
|
6580
7306
|
/**
|
|
6581
7307
|
* How output is rendered.
|
|
@@ -7383,6 +8109,137 @@ export declare namespace GeneratedPageToken {
|
|
|
7383
8109
|
type PageToken = string;
|
|
7384
8110
|
}
|
|
7385
8111
|
export type PageToken = GeneratedPageToken.PageToken;
|
|
8112
|
+
export declare namespace GeneratedParentBatch {
|
|
8113
|
+
/**
|
|
8114
|
+
* What `task parent set-many` reads: many parent writes.
|
|
8115
|
+
*/
|
|
8116
|
+
interface ParentBatch {
|
|
8117
|
+
/**
|
|
8118
|
+
* `1`.
|
|
8119
|
+
*/
|
|
8120
|
+
schema_version: number;
|
|
8121
|
+
/**
|
|
8122
|
+
* The edges, each written on its own.
|
|
8123
|
+
*/
|
|
8124
|
+
edges: ParentEdge[];
|
|
8125
|
+
}
|
|
8126
|
+
/**
|
|
8127
|
+
* One edge of a [`ParentBatch`]: `child`'s parent set to `parent`, or removed for `null`.
|
|
8128
|
+
*/
|
|
8129
|
+
interface ParentEdge {
|
|
8130
|
+
/**
|
|
8131
|
+
* The child's qualified id, `<source>:<native-id>`.
|
|
8132
|
+
*/
|
|
8133
|
+
child: string;
|
|
8134
|
+
/**
|
|
8135
|
+
* The parent's qualified id, a task of the child's own source, or `null` to remove the
|
|
8136
|
+
* child's parent. Required: an edge leaving it out is refused rather than read as a removal.
|
|
8137
|
+
*/
|
|
8138
|
+
parent: (string | null);
|
|
8139
|
+
/**
|
|
8140
|
+
* The version the child must be at for anything to be written, as a read reported it.
|
|
8141
|
+
*/
|
|
8142
|
+
if_version?: (string | null);
|
|
8143
|
+
}
|
|
8144
|
+
}
|
|
8145
|
+
export type ParentBatch = GeneratedParentBatch.ParentBatch;
|
|
8146
|
+
export declare namespace GeneratedParentOutcome {
|
|
8147
|
+
/**
|
|
8148
|
+
* What became of one parent edge.
|
|
8149
|
+
*/
|
|
8150
|
+
type ParentOutcome = ("written" | "unchanged" | "version-moved" | "refused" | "error");
|
|
8151
|
+
}
|
|
8152
|
+
export type ParentOutcome = GeneratedParentOutcome.ParentOutcome;
|
|
8153
|
+
export declare namespace GeneratedParentsSet {
|
|
8154
|
+
/**
|
|
8155
|
+
* What a locator names.
|
|
8156
|
+
*/
|
|
8157
|
+
type LocatorKind = ("source" | "item" | "field" | "metadata-key" | "comment" | "path" | "identity");
|
|
8158
|
+
/**
|
|
8159
|
+
* What `task parent set-many` answers: one result per edge, in the order given.
|
|
8160
|
+
*/
|
|
8161
|
+
interface ParentsSet {
|
|
8162
|
+
/**
|
|
8163
|
+
* `1`.
|
|
8164
|
+
*/
|
|
8165
|
+
schema_version: number;
|
|
8166
|
+
/**
|
|
8167
|
+
* One per edge.
|
|
8168
|
+
*/
|
|
8169
|
+
results: ParentResult[];
|
|
8170
|
+
sanitization?: (Sanitization | null);
|
|
8171
|
+
[k: string]: any;
|
|
8172
|
+
}
|
|
8173
|
+
/**
|
|
8174
|
+
* What became of one edge of a [`ParentBatch`].
|
|
8175
|
+
*/
|
|
8176
|
+
interface ParentResult {
|
|
8177
|
+
/**
|
|
8178
|
+
* The child as the batch named it.
|
|
8179
|
+
*/
|
|
8180
|
+
child: string;
|
|
8181
|
+
/**
|
|
8182
|
+
* The parent as the batch named it, `null` for a removal.
|
|
8183
|
+
*/
|
|
8184
|
+
parent?: (string | null);
|
|
8185
|
+
/**
|
|
8186
|
+
* What became of it.
|
|
8187
|
+
*/
|
|
8188
|
+
outcome: ("written" | "unchanged" | "version-moved" | "refused" | "error");
|
|
8189
|
+
/**
|
|
8190
|
+
* The child's version: after the write when `written` and the write's answer says, as read
|
|
8191
|
+
* when `unchanged`, and the version it was found at when `version-moved`.
|
|
8192
|
+
*/
|
|
8193
|
+
version?: (string | null);
|
|
8194
|
+
/**
|
|
8195
|
+
* Why it is answered `refused` or `error`.
|
|
8196
|
+
*/
|
|
8197
|
+
reason?: (string | null);
|
|
8198
|
+
[k: string]: any;
|
|
8199
|
+
}
|
|
8200
|
+
/**
|
|
8201
|
+
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
8202
|
+
* the `sanitization` member a write's answer carries when it is not empty.
|
|
8203
|
+
*/
|
|
8204
|
+
interface Sanitization {
|
|
8205
|
+
/**
|
|
8206
|
+
* Spans the writes' own sanitisations rewrote.
|
|
8207
|
+
*/
|
|
8208
|
+
replaced: number;
|
|
8209
|
+
/**
|
|
8210
|
+
* Each field or comment of an item sanitisation changed beyond the write itself.
|
|
8211
|
+
*/
|
|
8212
|
+
side_effect: SideEffect[];
|
|
8213
|
+
/**
|
|
8214
|
+
* Whether nothing was written, the changes only reported.
|
|
8215
|
+
*/
|
|
8216
|
+
dry_run: boolean;
|
|
8217
|
+
[k: string]: any;
|
|
8218
|
+
}
|
|
8219
|
+
/**
|
|
8220
|
+
* One field or comment of an item a sanitisation changed, named by screened locators.
|
|
8221
|
+
*/
|
|
8222
|
+
interface SideEffect {
|
|
8223
|
+
/**
|
|
8224
|
+
* The item, by its qualified id as screened.
|
|
8225
|
+
*/
|
|
8226
|
+
item: (string | {
|
|
8227
|
+
redacted: true;
|
|
8228
|
+
kind: LocatorKind;
|
|
8229
|
+
ordinal: number;
|
|
8230
|
+
});
|
|
8231
|
+
/**
|
|
8232
|
+
* The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.
|
|
8233
|
+
*/
|
|
8234
|
+
field: (string | {
|
|
8235
|
+
redacted: true;
|
|
8236
|
+
kind: LocatorKind;
|
|
8237
|
+
ordinal: number;
|
|
8238
|
+
});
|
|
8239
|
+
[k: string]: any;
|
|
8240
|
+
}
|
|
8241
|
+
}
|
|
8242
|
+
export type ParentsSet = GeneratedParentsSet.ParentsSet;
|
|
7386
8243
|
export declare namespace GeneratedPlacement {
|
|
7387
8244
|
/**
|
|
7388
8245
|
* Where one item written to a source lands, and which of its routes put it there.
|
|
@@ -11126,6 +11983,32 @@ export declare namespace GeneratedQueryResponseOfSearchHit {
|
|
|
11126
11983
|
}
|
|
11127
11984
|
}
|
|
11128
11985
|
export type QueryResponseOfSearchHit = GeneratedQueryResponseOfSearchHit.QueryResponseOfSearchHit;
|
|
11986
|
+
export declare namespace GeneratedReadLink {
|
|
11987
|
+
/**
|
|
11988
|
+
* One link as one endpoint holds it.
|
|
11989
|
+
*/
|
|
11990
|
+
interface ReadLink {
|
|
11991
|
+
/**
|
|
11992
|
+
* The link's type name.
|
|
11993
|
+
*/
|
|
11994
|
+
type: string;
|
|
11995
|
+
/**
|
|
11996
|
+
* Which end of the link this item is.
|
|
11997
|
+
*/
|
|
11998
|
+
direction: ("out" | "in");
|
|
11999
|
+
/**
|
|
12000
|
+
* The other item's qualified id.
|
|
12001
|
+
*/
|
|
12002
|
+
other: string;
|
|
12003
|
+
/**
|
|
12004
|
+
* Whether the other end holds this link too: `present` or `missing` when the other item
|
|
12005
|
+
* is among the ids asked, and `unread` otherwise.
|
|
12006
|
+
*/
|
|
12007
|
+
other_end: ("present" | "missing" | "unread");
|
|
12008
|
+
[k: string]: any;
|
|
12009
|
+
}
|
|
12010
|
+
}
|
|
12011
|
+
export type ReadLink = GeneratedReadLink.ReadLink;
|
|
11129
12012
|
export declare namespace GeneratedReconcileOutcome {
|
|
11130
12013
|
/**
|
|
11131
12014
|
* What reconciling one item came to.
|
|
@@ -11230,27 +12113,93 @@ export declare namespace GeneratedRegenerated {
|
|
|
11230
12113
|
/**
|
|
11231
12114
|
* One field or comment of an item a sanitisation changed, named by screened locators.
|
|
11232
12115
|
*/
|
|
11233
|
-
interface SideEffect {
|
|
12116
|
+
interface SideEffect {
|
|
12117
|
+
/**
|
|
12118
|
+
* The item, by its qualified id as screened.
|
|
12119
|
+
*/
|
|
12120
|
+
item: (string | {
|
|
12121
|
+
redacted: true;
|
|
12122
|
+
kind: LocatorKind;
|
|
12123
|
+
ordinal: number;
|
|
12124
|
+
});
|
|
12125
|
+
/**
|
|
12126
|
+
* The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.
|
|
12127
|
+
*/
|
|
12128
|
+
field: (string | {
|
|
12129
|
+
redacted: true;
|
|
12130
|
+
kind: LocatorKind;
|
|
12131
|
+
ordinal: number;
|
|
12132
|
+
});
|
|
12133
|
+
[k: string]: any;
|
|
12134
|
+
}
|
|
12135
|
+
}
|
|
12136
|
+
export type Regenerated = GeneratedRegenerated.Regenerated;
|
|
12137
|
+
export declare namespace GeneratedRelationsItem {
|
|
12138
|
+
/**
|
|
12139
|
+
* One item, qualified by the source it came from.
|
|
12140
|
+
*
|
|
12141
|
+
* Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
|
|
12142
|
+
* so a native id may contain colons freely.
|
|
12143
|
+
*/
|
|
12144
|
+
type GlobalId = string;
|
|
12145
|
+
/**
|
|
12146
|
+
* One task's relations.
|
|
12147
|
+
*/
|
|
12148
|
+
interface RelationsItem {
|
|
12149
|
+
/**
|
|
12150
|
+
* The task's qualified id.
|
|
12151
|
+
*/
|
|
12152
|
+
item: string;
|
|
12153
|
+
/**
|
|
12154
|
+
* Its parent's qualified id, or `null`.
|
|
12155
|
+
*/
|
|
12156
|
+
parent?: (GlobalId | null);
|
|
12157
|
+
/**
|
|
12158
|
+
* Its children's qualified ids.
|
|
12159
|
+
*/
|
|
12160
|
+
children: GlobalId[];
|
|
12161
|
+
/**
|
|
12162
|
+
* Whether `children` is every child.
|
|
12163
|
+
*/
|
|
12164
|
+
children_complete: boolean;
|
|
12165
|
+
/**
|
|
12166
|
+
* Its links, as it holds them.
|
|
12167
|
+
*/
|
|
12168
|
+
links: ReadLink[];
|
|
12169
|
+
/**
|
|
12170
|
+
* Whether `links` is every link it holds.
|
|
12171
|
+
*/
|
|
12172
|
+
links_complete: boolean;
|
|
12173
|
+
[k: string]: any;
|
|
12174
|
+
}
|
|
12175
|
+
/**
|
|
12176
|
+
* One link as one endpoint holds it.
|
|
12177
|
+
*/
|
|
12178
|
+
interface ReadLink {
|
|
11234
12179
|
/**
|
|
11235
|
-
* The
|
|
12180
|
+
* The link's type name.
|
|
11236
12181
|
*/
|
|
11237
|
-
|
|
11238
|
-
redacted: true;
|
|
11239
|
-
kind: LocatorKind;
|
|
11240
|
-
ordinal: number;
|
|
11241
|
-
});
|
|
12182
|
+
type: string;
|
|
11242
12183
|
/**
|
|
11243
|
-
*
|
|
12184
|
+
* Which end of the link this item is.
|
|
11244
12185
|
*/
|
|
11245
|
-
|
|
11246
|
-
|
|
11247
|
-
|
|
11248
|
-
|
|
11249
|
-
|
|
12186
|
+
direction: ("out" | "in");
|
|
12187
|
+
/**
|
|
12188
|
+
* One item, qualified by the source it came from.
|
|
12189
|
+
*
|
|
12190
|
+
* Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
|
|
12191
|
+
* so a native id may contain colons freely.
|
|
12192
|
+
*/
|
|
12193
|
+
other: string;
|
|
12194
|
+
/**
|
|
12195
|
+
* Whether the other end holds this link too: `present` or `missing` when the other item
|
|
12196
|
+
* is among the ids asked, and `unread` otherwise.
|
|
12197
|
+
*/
|
|
12198
|
+
other_end: ("present" | "missing" | "unread");
|
|
11250
12199
|
[k: string]: any;
|
|
11251
12200
|
}
|
|
11252
12201
|
}
|
|
11253
|
-
export type
|
|
12202
|
+
export type RelationsItem = GeneratedRelationsItem.RelationsItem;
|
|
11254
12203
|
export declare namespace GeneratedRenderedTemplate {
|
|
11255
12204
|
/**
|
|
11256
12205
|
* A rendered template: what `onetaskgraph template render` answers with.
|
|
@@ -15022,6 +15971,26 @@ export declare namespace GeneratedTaskDetails {
|
|
|
15022
15971
|
}
|
|
15023
15972
|
}
|
|
15024
15973
|
export type TaskDetails = GeneratedTaskDetails.TaskDetails;
|
|
15974
|
+
export declare namespace GeneratedTaskLink {
|
|
15975
|
+
/**
|
|
15976
|
+
* One typed link, as one endpoint holds it under [`TaskLink::METADATA_KEY`].
|
|
15977
|
+
*/
|
|
15978
|
+
interface TaskLink {
|
|
15979
|
+
/**
|
|
15980
|
+
* The link's type name — the caller's word, which no destination stores natively.
|
|
15981
|
+
*/
|
|
15982
|
+
type: string;
|
|
15983
|
+
/**
|
|
15984
|
+
* Which end of the directed link this item is.
|
|
15985
|
+
*/
|
|
15986
|
+
direction: ("out" | "in");
|
|
15987
|
+
/**
|
|
15988
|
+
* The other item's qualified id, `<source>:<native-id>`.
|
|
15989
|
+
*/
|
|
15990
|
+
other: string;
|
|
15991
|
+
}
|
|
15992
|
+
}
|
|
15993
|
+
export type TaskLink = GeneratedTaskLink.TaskLink;
|
|
15025
15994
|
export declare namespace GeneratedTaskPrioritySet {
|
|
15026
15995
|
/**
|
|
15027
15996
|
* One mutation of an expected write.
|
|
@@ -15462,6 +16431,86 @@ export declare namespace GeneratedTaskRef {
|
|
|
15462
16431
|
type TaskRef = string;
|
|
15463
16432
|
}
|
|
15464
16433
|
export type TaskRef = GeneratedTaskRef.TaskRef;
|
|
16434
|
+
export declare namespace GeneratedTaskRelations {
|
|
16435
|
+
/**
|
|
16436
|
+
* One item, qualified by the source it came from.
|
|
16437
|
+
*
|
|
16438
|
+
* Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
|
|
16439
|
+
* so a native id may contain colons freely.
|
|
16440
|
+
*/
|
|
16441
|
+
type GlobalId = string;
|
|
16442
|
+
/**
|
|
16443
|
+
* What `task relations` answers: one item per id asked, in the order asked.
|
|
16444
|
+
*/
|
|
16445
|
+
interface TaskRelations {
|
|
16446
|
+
/**
|
|
16447
|
+
* `1`.
|
|
16448
|
+
*/
|
|
16449
|
+
schema_version: number;
|
|
16450
|
+
/**
|
|
16451
|
+
* One per id.
|
|
16452
|
+
*/
|
|
16453
|
+
items: RelationsItem[];
|
|
16454
|
+
[k: string]: any;
|
|
16455
|
+
}
|
|
16456
|
+
/**
|
|
16457
|
+
* One task's relations.
|
|
16458
|
+
*/
|
|
16459
|
+
interface RelationsItem {
|
|
16460
|
+
/**
|
|
16461
|
+
* The task's qualified id.
|
|
16462
|
+
*/
|
|
16463
|
+
item: string;
|
|
16464
|
+
/**
|
|
16465
|
+
* Its parent's qualified id, or `null`.
|
|
16466
|
+
*/
|
|
16467
|
+
parent?: (GlobalId | null);
|
|
16468
|
+
/**
|
|
16469
|
+
* Its children's qualified ids.
|
|
16470
|
+
*/
|
|
16471
|
+
children: GlobalId[];
|
|
16472
|
+
/**
|
|
16473
|
+
* Whether `children` is every child.
|
|
16474
|
+
*/
|
|
16475
|
+
children_complete: boolean;
|
|
16476
|
+
/**
|
|
16477
|
+
* Its links, as it holds them.
|
|
16478
|
+
*/
|
|
16479
|
+
links: ReadLink[];
|
|
16480
|
+
/**
|
|
16481
|
+
* Whether `links` is every link it holds.
|
|
16482
|
+
*/
|
|
16483
|
+
links_complete: boolean;
|
|
16484
|
+
[k: string]: any;
|
|
16485
|
+
}
|
|
16486
|
+
/**
|
|
16487
|
+
* One link as one endpoint holds it.
|
|
16488
|
+
*/
|
|
16489
|
+
interface ReadLink {
|
|
16490
|
+
/**
|
|
16491
|
+
* The link's type name.
|
|
16492
|
+
*/
|
|
16493
|
+
type: string;
|
|
16494
|
+
/**
|
|
16495
|
+
* Which end of the link this item is.
|
|
16496
|
+
*/
|
|
16497
|
+
direction: ("out" | "in");
|
|
16498
|
+
/**
|
|
16499
|
+
* One item, qualified by the source it came from.
|
|
16500
|
+
*
|
|
16501
|
+
* Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
|
|
16502
|
+
* so a native id may contain colons freely.
|
|
16503
|
+
*/
|
|
16504
|
+
other: string;
|
|
16505
|
+
/**
|
|
16506
|
+
* Whether the other end holds this link too: `present` or `missing` when the other item
|
|
16507
|
+
* is among the ids asked, and `unread` otherwise.
|
|
16508
|
+
*/
|
|
16509
|
+
other_end: ("present" | "missing" | "unread");
|
|
16510
|
+
[k: string]: any;
|
|
16511
|
+
}
|
|
16512
|
+
}
|
|
16513
|
+
export type TaskRelations = GeneratedTaskRelations.TaskRelations;
|
|
15465
16514
|
export declare namespace GeneratedTaskStatusSet {
|
|
15466
16515
|
/**
|
|
15467
16516
|
* What keeping one delivered task in step with one deliverer came to.
|
|
@@ -16397,6 +17446,10 @@ export declare namespace GeneratedTaskUpdated {
|
|
|
16397
17446
|
* from nothing by the value alone.
|
|
16398
17447
|
*/
|
|
16399
17448
|
type Priority = ("none" | "urgent" | "high" | "medium" | "low");
|
|
17449
|
+
/**
|
|
17450
|
+
* What a write guarded by a condition on the item's own value came to.
|
|
17451
|
+
*/
|
|
17452
|
+
type GuardOutcome = ("written" | "held");
|
|
16400
17453
|
/**
|
|
16401
17454
|
* What a locator names.
|
|
16402
17455
|
*/
|
|
@@ -16439,6 +17492,11 @@ export declare namespace GeneratedTaskUpdated {
|
|
|
16439
17492
|
* update wrote no status, and for a task with no projection.
|
|
16440
17493
|
*/
|
|
16441
17494
|
projection?: (GlobalId | null);
|
|
17495
|
+
/**
|
|
17496
|
+
* What `--when-priority` found the task's priority at, and whether the update was written
|
|
17497
|
+
* or held — absent for an update given no priority guard.
|
|
17498
|
+
*/
|
|
17499
|
+
guard?: (PriorityGuard | null);
|
|
16442
17500
|
sanitization?: (Sanitization | null);
|
|
16443
17501
|
[k: string]: any;
|
|
16444
17502
|
}
|
|
@@ -16758,6 +17816,46 @@ export declare namespace GeneratedTaskUpdated {
|
|
|
16758
17816
|
reason: string;
|
|
16759
17817
|
[k: string]: any;
|
|
16760
17818
|
}
|
|
17819
|
+
/**
|
|
17820
|
+
* What a write guarded by the priority its task holds came to: whether it was `written` or
|
|
17821
|
+
* `held`, and the condition that decided it. Made only from the condition — read back off the
|
|
17822
|
+
* wire too, whatever `outcome` it was written with — so the outcome is always the one its
|
|
17823
|
+
* `met` says, and never stands without it.
|
|
17824
|
+
*/
|
|
17825
|
+
interface PriorityGuard {
|
|
17826
|
+
/**
|
|
17827
|
+
* `written` when the task held a priority the guard names, and `held` when it did not —
|
|
17828
|
+
* absent for a write made without the guard.
|
|
17829
|
+
*/
|
|
17830
|
+
outcome?: (GuardOutcome | null);
|
|
17831
|
+
/**
|
|
17832
|
+
* What the guard found the task's priority at before the write, and whether that is one it
|
|
17833
|
+
* names — the shape `task copy --when-destination-priority` reports — absent for a write
|
|
17834
|
+
* made without the guard.
|
|
17835
|
+
*/
|
|
17836
|
+
priority_condition?: (PriorityCondition | null);
|
|
17837
|
+
[k: string]: any;
|
|
17838
|
+
}
|
|
17839
|
+
/**
|
|
17840
|
+
* What a guarded copy found a counterpart's priority at, and whether that met the condition.
|
|
17841
|
+
*/
|
|
17842
|
+
interface PriorityCondition {
|
|
17843
|
+
/**
|
|
17844
|
+
* How much a task matters, in the one vocabulary every source is normalised into.
|
|
17845
|
+
*
|
|
17846
|
+
* Five values, most pressing first after [`None`](Self::None): Linear's own priority has
|
|
17847
|
+
* exactly these, and a source whose backend has none of its own maps its representation
|
|
17848
|
+
* onto them. `none` is a value rather than an absent field, because "no priority is set" is
|
|
17849
|
+
* something a person sets — writing `none` clears a priority — and a reader tells it apart
|
|
17850
|
+
* from nothing by the value alone.
|
|
17851
|
+
*/
|
|
17852
|
+
held: ("none" | "urgent" | "high" | "medium" | "low");
|
|
17853
|
+
/**
|
|
17854
|
+
* Whether that priority is one the condition names.
|
|
17855
|
+
*/
|
|
17856
|
+
met: boolean;
|
|
17857
|
+
[k: string]: any;
|
|
17858
|
+
}
|
|
16761
17859
|
/**
|
|
16762
17860
|
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
16763
17861
|
* the `sanitization` member a write's answer carries when it is not empty.
|
|
@@ -16801,6 +17899,98 @@ export declare namespace GeneratedTaskUpdated {
|
|
|
16801
17899
|
}
|
|
16802
17900
|
}
|
|
16803
17901
|
export type TaskUpdated = GeneratedTaskUpdated.TaskUpdated;
|
|
17902
|
+
export declare namespace GeneratedTasksUpdated {
|
|
17903
|
+
/**
|
|
17904
|
+
* What a locator names.
|
|
17905
|
+
*/
|
|
17906
|
+
type LocatorKind = ("source" | "item" | "field" | "metadata-key" | "comment" | "path" | "identity");
|
|
17907
|
+
/**
|
|
17908
|
+
* What `task update-many` answers: one result per update, in the order given.
|
|
17909
|
+
*/
|
|
17910
|
+
interface TasksUpdated {
|
|
17911
|
+
/**
|
|
17912
|
+
* `1`.
|
|
17913
|
+
*/
|
|
17914
|
+
schema_version: number;
|
|
17915
|
+
/**
|
|
17916
|
+
* One per update.
|
|
17917
|
+
*/
|
|
17918
|
+
results: UpdateResult[];
|
|
17919
|
+
sanitization?: (Sanitization | null);
|
|
17920
|
+
[k: string]: any;
|
|
17921
|
+
}
|
|
17922
|
+
/**
|
|
17923
|
+
* What became of one update of an [`UpdateBatch`].
|
|
17924
|
+
*/
|
|
17925
|
+
interface UpdateResult {
|
|
17926
|
+
/**
|
|
17927
|
+
* The item as the batch named it.
|
|
17928
|
+
*/
|
|
17929
|
+
item: string;
|
|
17930
|
+
/**
|
|
17931
|
+
* What became of it.
|
|
17932
|
+
*/
|
|
17933
|
+
outcome: ("written" | "held" | "version-moved" | "error");
|
|
17934
|
+
/**
|
|
17935
|
+
* The task's version after the write — present when `outcome` is `written` and the
|
|
17936
|
+
* write's own answers determine it, as `task update`'s `result.version` is.
|
|
17937
|
+
*/
|
|
17938
|
+
version?: (string | null);
|
|
17939
|
+
/**
|
|
17940
|
+
* The version the task is at — present when `outcome` is `version-moved` and the source
|
|
17941
|
+
* can name it, which it cannot just after another write of this batch moved the task.
|
|
17942
|
+
*/
|
|
17943
|
+
current_version?: (string | null);
|
|
17944
|
+
/**
|
|
17945
|
+
* Why it is answered `error` — present when `outcome` is `error`: that it was not written,
|
|
17946
|
+
* or that it was and keeping the tasks it delivers in step then failed.
|
|
17947
|
+
*/
|
|
17948
|
+
reason?: (string | null);
|
|
17949
|
+
[k: string]: any;
|
|
17950
|
+
}
|
|
17951
|
+
/**
|
|
17952
|
+
* What the screened writes of one command replaced, and what sanitise-on-refusal changed:
|
|
17953
|
+
* the `sanitization` member a write's answer carries when it is not empty.
|
|
17954
|
+
*/
|
|
17955
|
+
interface Sanitization {
|
|
17956
|
+
/**
|
|
17957
|
+
* Spans the writes' own sanitisations rewrote.
|
|
17958
|
+
*/
|
|
17959
|
+
replaced: number;
|
|
17960
|
+
/**
|
|
17961
|
+
* Each field or comment of an item sanitisation changed beyond the write itself.
|
|
17962
|
+
*/
|
|
17963
|
+
side_effect: SideEffect[];
|
|
17964
|
+
/**
|
|
17965
|
+
* Whether nothing was written, the changes only reported.
|
|
17966
|
+
*/
|
|
17967
|
+
dry_run: boolean;
|
|
17968
|
+
[k: string]: any;
|
|
17969
|
+
}
|
|
17970
|
+
/**
|
|
17971
|
+
* One field or comment of an item a sanitisation changed, named by screened locators.
|
|
17972
|
+
*/
|
|
17973
|
+
interface SideEffect {
|
|
17974
|
+
/**
|
|
17975
|
+
* The item, by its qualified id as screened.
|
|
17976
|
+
*/
|
|
17977
|
+
item: (string | {
|
|
17978
|
+
redacted: true;
|
|
17979
|
+
kind: LocatorKind;
|
|
17980
|
+
ordinal: number;
|
|
17981
|
+
});
|
|
17982
|
+
/**
|
|
17983
|
+
* The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.
|
|
17984
|
+
*/
|
|
17985
|
+
field: (string | {
|
|
17986
|
+
redacted: true;
|
|
17987
|
+
kind: LocatorKind;
|
|
17988
|
+
ordinal: number;
|
|
17989
|
+
});
|
|
17990
|
+
[k: string]: any;
|
|
17991
|
+
}
|
|
17992
|
+
}
|
|
17993
|
+
export type TasksUpdated = GeneratedTasksUpdated.TasksUpdated;
|
|
16804
17994
|
export declare namespace GeneratedTemplateAnswers {
|
|
16805
17995
|
/**
|
|
16806
17996
|
* What `task answers`, `project answers` and `document answers` answer with: the resolved
|
|
@@ -16968,6 +18158,90 @@ export declare namespace GeneratedTextFields {
|
|
|
16968
18158
|
type TextFields = ("title" | "content" | "title-or-content");
|
|
16969
18159
|
}
|
|
16970
18160
|
export type TextFields = GeneratedTextFields.TextFields;
|
|
18161
|
+
export declare namespace GeneratedUpdateBatch {
|
|
18162
|
+
/**
|
|
18163
|
+
* The normalised status vocabulary shared across every source.
|
|
18164
|
+
*/
|
|
18165
|
+
type StatusCategory = ("draft" | "backlog" | "todo" | "queued" | "in-progress" | "done" | "cancelled" | "unknown");
|
|
18166
|
+
/**
|
|
18167
|
+
* How much a task matters, in the one vocabulary every source is normalised into.
|
|
18168
|
+
*
|
|
18169
|
+
* Five values, most pressing first after [`None`](Self::None): Linear's own priority has
|
|
18170
|
+
* exactly these, and a source whose backend has none of its own maps its representation
|
|
18171
|
+
* onto them. `none` is a value rather than an absent field, because "no priority is set" is
|
|
18172
|
+
* something a person sets — writing `none` clears a priority — and a reader tells it apart
|
|
18173
|
+
* from nothing by the value alone.
|
|
18174
|
+
*/
|
|
18175
|
+
type Priority = ("none" | "urgent" | "high" | "medium" | "low");
|
|
18176
|
+
/**
|
|
18177
|
+
* A repository identified by its normalized origin, without a URL scheme or `.git` suffix.
|
|
18178
|
+
*/
|
|
18179
|
+
type Repository = string;
|
|
18180
|
+
/**
|
|
18181
|
+
* What `task update-many` reads: many held updates of tasks of one source.
|
|
18182
|
+
*/
|
|
18183
|
+
interface UpdateBatch {
|
|
18184
|
+
/**
|
|
18185
|
+
* `1`.
|
|
18186
|
+
*/
|
|
18187
|
+
schema_version: number;
|
|
18188
|
+
/**
|
|
18189
|
+
* The updates, each one held write of every field it names.
|
|
18190
|
+
*/
|
|
18191
|
+
updates: UpdateBatchItem[];
|
|
18192
|
+
}
|
|
18193
|
+
/**
|
|
18194
|
+
* One update of an [`UpdateBatch`]: every field it names, written together in one held write,
|
|
18195
|
+
* and nothing else. Every member but `item` is optional.
|
|
18196
|
+
*/
|
|
18197
|
+
interface UpdateBatchItem {
|
|
18198
|
+
/**
|
|
18199
|
+
* The task's qualified id, `<source>:<native-id>`, of the source the batch names.
|
|
18200
|
+
*/
|
|
18201
|
+
item: string;
|
|
18202
|
+
/**
|
|
18203
|
+
* The version the task must be at for anything to be written.
|
|
18204
|
+
*/
|
|
18205
|
+
if_version?: (string | null);
|
|
18206
|
+
/**
|
|
18207
|
+
* Its title.
|
|
18208
|
+
*/
|
|
18209
|
+
title?: (string | null);
|
|
18210
|
+
/**
|
|
18211
|
+
* Its content, replaced whole.
|
|
18212
|
+
*/
|
|
18213
|
+
body?: (string | null);
|
|
18214
|
+
/**
|
|
18215
|
+
* Its status category.
|
|
18216
|
+
*/
|
|
18217
|
+
status?: (StatusCategory | null);
|
|
18218
|
+
/**
|
|
18219
|
+
* Its priority; `none` clears it.
|
|
18220
|
+
*/
|
|
18221
|
+
priority?: (Priority | null);
|
|
18222
|
+
/**
|
|
18223
|
+
* Write only while the task holds one of these priorities — `none` for a task with none.
|
|
18224
|
+
* At any other, nothing of the update is written and it answers `held`. Empty sets no
|
|
18225
|
+
* guard.
|
|
18226
|
+
*/
|
|
18227
|
+
when_priority?: Priority[];
|
|
18228
|
+
/**
|
|
18229
|
+
* Caller-owned metadata keys set, each to one JSON value; every other key is kept.
|
|
18230
|
+
*/
|
|
18231
|
+
metadata?: {
|
|
18232
|
+
[k: string]: any;
|
|
18233
|
+
};
|
|
18234
|
+
/**
|
|
18235
|
+
* Caller-owned metadata keys removed.
|
|
18236
|
+
*/
|
|
18237
|
+
remove_metadata?: string[];
|
|
18238
|
+
/**
|
|
18239
|
+
* Its repositories, replaced whole; an empty list clears them.
|
|
18240
|
+
*/
|
|
18241
|
+
repositories?: (Repository[] | null);
|
|
18242
|
+
}
|
|
18243
|
+
}
|
|
18244
|
+
export type UpdateBatch = GeneratedUpdateBatch.UpdateBatch;
|
|
16971
18245
|
export declare namespace GeneratedUpdatedField {
|
|
16972
18246
|
/**
|
|
16973
18247
|
* One field of a task a [`TaskUpdate`] names, as the answer to it reports what was written.
|