@onetaskgraph/sdk 0.14.9 → 0.14.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- export declare const SCHEMA_BUNDLE_VERSION: 57;
1
+ export declare const SCHEMA_BUNDLE_VERSION: 59;
2
2
  export declare namespace GeneratedAsset {
3
3
  /**
4
4
  * One asset a record holds, as a read reports it.
@@ -209,6 +209,264 @@ export declare namespace GeneratedAssetsWritten {
209
209
  }
210
210
  }
211
211
  export type AssetsWritten = GeneratedAssetsWritten.AssetsWritten;
212
+ export declare namespace GeneratedAttestation {
213
+ /**
214
+ * What an attester adds: text of any length and any number of lines, not blank.
215
+ */
216
+ type AttestationNote = string;
217
+ /**
218
+ * One caller-owned metadata key: `<namespace>.<name>`, at least two non-empty segments
219
+ * separated by dots, whose first segment is not [`MetadataKey::RESERVED_NAMESPACE`].
220
+ *
221
+ * Validated wherever one is built, deserialized included, so a plugin handed one never has
222
+ * to ask whether it names a key this product owns.
223
+ */
224
+ type MetadataKey = string;
225
+ /**
226
+ * One attestation: who cleared the item's authored content, when, which content and against
227
+ * which bar.
228
+ */
229
+ interface Attestation {
230
+ /**
231
+ * The kind of attestation this is; the key it is held under.
232
+ */
233
+ kind: string;
234
+ /**
235
+ * Who attested, as the caller labels them.
236
+ */
237
+ by: string;
238
+ /**
239
+ * When it was recorded, in RFC 3339 to the second.
240
+ */
241
+ at: string;
242
+ /**
243
+ * The digest of the item's authored content when it was recorded, computed by the store
244
+ * (see the module's documentation).
245
+ */
246
+ content_digest: string;
247
+ /**
248
+ * The fingerprint of the bar the content was cleared against, as the caller gave it.
249
+ */
250
+ bar: string;
251
+ /**
252
+ * What the attester added, when they added anything.
253
+ */
254
+ note?: (AttestationNote | null);
255
+ /**
256
+ * The caller-owned metadata keys left out of `content_digest`, sorted; empty when none
257
+ * were.
258
+ */
259
+ excludes?: MetadataKey[];
260
+ [k: string]: any;
261
+ }
262
+ }
263
+ export type Attestation = GeneratedAttestation.Attestation;
264
+ export declare namespace GeneratedAttestationCheck {
265
+ /**
266
+ * Why a record of an attestation no longer holds.
267
+ */
268
+ type VoidReason = ("content-moved" | "bar-moved");
269
+ /**
270
+ * What an attester adds: text of any length and any number of lines, not blank.
271
+ */
272
+ type AttestationNote = string;
273
+ /**
274
+ * One caller-owned metadata key: `<namespace>.<name>`, at least two non-empty segments
275
+ * separated by dots, whose first segment is not [`MetadataKey::RESERVED_NAMESPACE`].
276
+ *
277
+ * Validated wherever one is built, deserialized included, so a plugin handed one never has
278
+ * to ask whether it names a key this product owns.
279
+ */
280
+ type MetadataKey = string;
281
+ /**
282
+ * What `attestation check` answers: one kind on one item.
283
+ *
284
+ * Every member is always written, `reason` and `record` as `null` when they have nothing to
285
+ * say.
286
+ */
287
+ interface AttestationCheck {
288
+ /**
289
+ * The kind asked about.
290
+ */
291
+ kind: string;
292
+ /**
293
+ * What the check found.
294
+ */
295
+ state: ("valid" | "void" | "absent");
296
+ /**
297
+ * Why the record is void: `null` unless `state` is `void`.
298
+ */
299
+ reason?: (VoidReason | null);
300
+ /**
301
+ * The record of the kind the item holds, or `null` when it holds none.
302
+ */
303
+ record?: (Attestation | null);
304
+ [k: string]: any;
305
+ }
306
+ /**
307
+ * One attestation: who cleared the item's authored content, when, which content and against
308
+ * which bar.
309
+ */
310
+ interface Attestation {
311
+ /**
312
+ * The kind of attestation this is; the key it is held under.
313
+ */
314
+ kind: string;
315
+ /**
316
+ * Who attested, as the caller labels them.
317
+ */
318
+ by: string;
319
+ /**
320
+ * When it was recorded, in RFC 3339 to the second.
321
+ */
322
+ at: string;
323
+ /**
324
+ * The digest of the item's authored content when it was recorded, computed by the store
325
+ * (see the module's documentation).
326
+ */
327
+ content_digest: string;
328
+ /**
329
+ * The fingerprint of the bar the content was cleared against, as the caller gave it.
330
+ */
331
+ bar: string;
332
+ /**
333
+ * What the attester added, when they added anything.
334
+ */
335
+ note?: (AttestationNote | null);
336
+ /**
337
+ * The caller-owned metadata keys left out of `content_digest`, sorted; empty when none
338
+ * were.
339
+ */
340
+ excludes?: MetadataKey[];
341
+ [k: string]: any;
342
+ }
343
+ }
344
+ export type AttestationCheck = GeneratedAttestationCheck.AttestationCheck;
345
+ export declare namespace GeneratedAttestationState {
346
+ /**
347
+ * What a check of one kind of attestation found.
348
+ */
349
+ type AttestationState = ("valid" | "void" | "absent");
350
+ }
351
+ export type AttestationState = GeneratedAttestationState.AttestationState;
352
+ export declare namespace GeneratedAttested {
353
+ /**
354
+ * What an attester adds: text of any length and any number of lines, not blank.
355
+ */
356
+ type AttestationNote = string;
357
+ /**
358
+ * One caller-owned metadata key: `<namespace>.<name>`, at least two non-empty segments
359
+ * separated by dots, whose first segment is not [`MetadataKey::RESERVED_NAMESPACE`].
360
+ *
361
+ * Validated wherever one is built, deserialized included, so a plugin handed one never has
362
+ * to ask whether it names a key this product owns.
363
+ */
364
+ type MetadataKey = string;
365
+ /**
366
+ * What a locator names.
367
+ */
368
+ type LocatorKind = ("source" | "item" | "field" | "metadata-key" | "comment" | "path" | "identity");
369
+ /**
370
+ * What `attest` answers: the record it wrote, on the item it wrote it to.
371
+ */
372
+ interface Attested {
373
+ /**
374
+ * The item, by qualified id.
375
+ */
376
+ id: string;
377
+ record: Attestation;
378
+ sanitization?: (Sanitization | null);
379
+ [k: string]: any;
380
+ }
381
+ /**
382
+ * The record as the source holds it after the write.
383
+ */
384
+ interface Attestation {
385
+ /**
386
+ * The kind of attestation this is; the key it is held under.
387
+ */
388
+ kind: string;
389
+ /**
390
+ * Who attested, as the caller labels them.
391
+ */
392
+ by: string;
393
+ /**
394
+ * When it was recorded, in RFC 3339 to the second.
395
+ */
396
+ at: string;
397
+ /**
398
+ * The digest of the item's authored content when it was recorded, computed by the store
399
+ * (see the module's documentation).
400
+ */
401
+ content_digest: string;
402
+ /**
403
+ * The fingerprint of the bar the content was cleared against, as the caller gave it.
404
+ */
405
+ bar: string;
406
+ /**
407
+ * What the attester added, when they added anything.
408
+ */
409
+ note?: (AttestationNote | null);
410
+ /**
411
+ * The caller-owned metadata keys left out of `content_digest`, sorted; empty when none
412
+ * were.
413
+ */
414
+ excludes?: MetadataKey[];
415
+ [k: string]: any;
416
+ }
417
+ /**
418
+ * What the screened writes of one command replaced, and what sanitise-on-refusal changed:
419
+ * the `sanitization` member a write's answer carries when it is not empty.
420
+ */
421
+ interface Sanitization {
422
+ /**
423
+ * Spans the writes' own sanitisations rewrote.
424
+ */
425
+ replaced: number;
426
+ /**
427
+ * Each field or comment of an item sanitisation changed beyond the write itself.
428
+ */
429
+ side_effect: SideEffect[];
430
+ /**
431
+ * Whether nothing was written, the changes only reported.
432
+ */
433
+ dry_run: boolean;
434
+ [k: string]: any;
435
+ }
436
+ /**
437
+ * One field or comment of an item a sanitisation changed, named by screened locators.
438
+ */
439
+ interface SideEffect {
440
+ /**
441
+ * The item, by its qualified id as screened.
442
+ */
443
+ item: (string | {
444
+ redacted: true;
445
+ kind: LocatorKind;
446
+ ordinal: number;
447
+ });
448
+ /**
449
+ * The field — `content`, `title`, `label`, `metadata:<key>` — or `comment:<id>`.
450
+ */
451
+ field: (string | {
452
+ redacted: true;
453
+ kind: LocatorKind;
454
+ ordinal: number;
455
+ });
456
+ [k: string]: any;
457
+ }
458
+ }
459
+ export type Attested = GeneratedAttested.Attested;
460
+ export declare namespace GeneratedAuthorKind {
461
+ /**
462
+ * Who wrote a comment, as the source that holds it can tell: a person, a bot — an
463
+ * integration, an app, an automation acting on its own — or neither, when the source cannot
464
+ * say. Decided by the plugin, through
465
+ * [`TaskSource::comment_author_kind`](crate::TaskSource::comment_author_kind).
466
+ */
467
+ type AuthorKind = ("person" | "bot" | "unknown");
468
+ }
469
+ export type AuthorKind = GeneratedAuthorKind.AuthorKind;
212
470
  export declare namespace GeneratedCacheCleared {
213
471
  /**
214
472
  * What `cache clear` emptied: one entry per cache it reached.
@@ -554,6 +812,52 @@ export declare namespace GeneratedComment {
554
812
  }
555
813
  }
556
814
  export type Comment = GeneratedComment.Comment;
815
+ export declare namespace GeneratedCommentActivity {
816
+ /**
817
+ * One comment of a [`CommentsSince`] answer.
818
+ */
819
+ interface CommentActivity {
820
+ /**
821
+ * The task it is on, qualified: `<source>:<native id>`.
822
+ */
823
+ item: string;
824
+ /**
825
+ * Its own id, exactly as its source issued it.
826
+ */
827
+ id: string;
828
+ /**
829
+ * Where a person can open it, or `null`.
830
+ */
831
+ url?: (string | null);
832
+ /**
833
+ * Who wrote it, in the source's own spelling, or `null`.
834
+ */
835
+ author?: (string | null);
836
+ /**
837
+ * Whether that is a person, a bot, or neither the source can tell.
838
+ */
839
+ author_kind: ("person" | "bot" | "unknown");
840
+ /**
841
+ * When it was written.
842
+ */
843
+ created_at: string;
844
+ /**
845
+ * When it last changed — its creation, for one never edited.
846
+ */
847
+ updated_at: string;
848
+ /**
849
+ * The comment's version: when it last changed, at the backend's own precision. Two reads
850
+ * answering one comment unchanged answer the same version.
851
+ */
852
+ version: string;
853
+ /**
854
+ * What it says, byte for byte.
855
+ */
856
+ body: string;
857
+ [k: string]: any;
858
+ }
859
+ }
860
+ export type CommentActivity = GeneratedCommentActivity.CommentActivity;
557
861
  export declare namespace GeneratedCommentList {
558
862
  /**
559
863
  * Every comment on one task, oldest first: what `task comment list` answers with.
@@ -973,6 +1277,73 @@ export declare namespace GeneratedCommentWritten {
973
1277
  }
974
1278
  }
975
1279
  export type CommentWritten = GeneratedCommentWritten.CommentWritten;
1280
+ export declare namespace GeneratedCommentsSince {
1281
+ /**
1282
+ * What `task comments <SOURCE> --since` answers with.
1283
+ */
1284
+ interface CommentsSince {
1285
+ /**
1286
+ * The version of this document's shape: `1`.
1287
+ */
1288
+ schema_version: number;
1289
+ /**
1290
+ * The instant a later read may start from: the earlier of the source's own time and this
1291
+ * host's at the read's start, set back by the source's consistency window. A later read
1292
+ * from it may return a comment again, with the same `id` and `version`.
1293
+ */
1294
+ watermark: string;
1295
+ /**
1296
+ * Every comment made or edited at or after the instant on a matching task, oldest first by
1297
+ * when it last changed.
1298
+ */
1299
+ comments: CommentActivity[];
1300
+ [k: string]: any;
1301
+ }
1302
+ /**
1303
+ * One comment of a [`CommentsSince`] answer.
1304
+ */
1305
+ interface CommentActivity {
1306
+ /**
1307
+ * The task it is on, qualified: `<source>:<native id>`.
1308
+ */
1309
+ item: string;
1310
+ /**
1311
+ * Its own id, exactly as its source issued it.
1312
+ */
1313
+ id: string;
1314
+ /**
1315
+ * Where a person can open it, or `null`.
1316
+ */
1317
+ url?: (string | null);
1318
+ /**
1319
+ * Who wrote it, in the source's own spelling, or `null`.
1320
+ */
1321
+ author?: (string | null);
1322
+ /**
1323
+ * Whether that is a person, a bot, or neither the source can tell.
1324
+ */
1325
+ author_kind: ("person" | "bot" | "unknown");
1326
+ /**
1327
+ * When it was written.
1328
+ */
1329
+ created_at: string;
1330
+ /**
1331
+ * When it last changed — its creation, for one never edited.
1332
+ */
1333
+ updated_at: string;
1334
+ /**
1335
+ * The comment's version: when it last changed, at the backend's own precision. Two reads
1336
+ * answering one comment unchanged answer the same version.
1337
+ */
1338
+ version: string;
1339
+ /**
1340
+ * What it says, byte for byte.
1341
+ */
1342
+ body: string;
1343
+ [k: string]: any;
1344
+ }
1345
+ }
1346
+ export type CommentsSince = GeneratedCommentsSince.CommentsSince;
976
1347
  export declare namespace GeneratedCompleteAction {
977
1348
  /**
978
1349
  * What moving one issue's item to `done` came to at one source.
@@ -5724,6 +6095,88 @@ export declare namespace GeneratedLocateReport {
5724
6095
  }
5725
6096
  }
5726
6097
  export type LocateReport = GeneratedLocateReport.LocateReport;
6098
+ export declare namespace GeneratedLocated {
6099
+ /**
6100
+ * One item, qualified by the source it came from.
6101
+ *
6102
+ * Rendered `<source>:<native>` and parsed by splitting on the **first** colon,
6103
+ * so a native id may contain colons freely.
6104
+ */
6105
+ type GlobalId = string;
6106
+ /**
6107
+ * Where one task would land, what it would update there, and where a create would file it.
6108
+ */
6109
+ interface Located {
6110
+ /**
6111
+ * The qualified id the task was read from.
6112
+ */
6113
+ source: string;
6114
+ /**
6115
+ * The class it was placed as, as a copy classifies it: its own declaration and, while the
6116
+ * store's boundary is active, its repositories' visibility. A source declared private does
6117
+ * not by itself make it private; it withholds the task's provenance instead.
6118
+ */
6119
+ classification: ("public" | "private");
6120
+ /**
6121
+ * The source the item lands in: the routed one, or the source itself.
6122
+ */
6123
+ destination: string;
6124
+ /**
6125
+ * The index of the route entry that matched, or `None` when none did and the item
6126
+ * stays in the source itself.
6127
+ */
6128
+ route?: (number | null);
6129
+ /**
6130
+ * The item a copy would update, and the rule that found it — `null` when a copy would
6131
+ * create one, and absent under `--no-counterpart`, which looks for none.
6132
+ */
6133
+ counterpart?: (LocatedCounterpart | null);
6134
+ /**
6135
+ * Every destination item the origin query found carrying this task's origin, in listing
6136
+ * order — `[]` when the query did not run, and absent under `--no-counterpart`. When it ran,
6137
+ * `counterpart` is the first.
6138
+ */
6139
+ carriers?: (GlobalId[] | null);
6140
+ /**
6141
+ * The repository a create there would file the task's issue in, or `null` where the
6142
+ * destination files no issue in a repository. Where a create would file, whether or not a
6143
+ * counterpart exists: an existing issue is never moved.
6144
+ */
6145
+ creates_in?: (CreatesIn | null);
6146
+ [k: string]: any;
6147
+ }
6148
+ /**
6149
+ * The destination item a copy would update.
6150
+ */
6151
+ interface LocatedCounterpart {
6152
+ /**
6153
+ * Its qualified id at the destination the task is placed in.
6154
+ */
6155
+ id: string;
6156
+ /**
6157
+ * Which rule found it, as a copy's report spells it.
6158
+ */
6159
+ via: ("target-task" | "link" | "origin" | "scan" | "match" | "intent");
6160
+ [k: string]: any;
6161
+ }
6162
+ /**
6163
+ * Where a create would file a task's issue.
6164
+ */
6165
+ interface CreatesIn {
6166
+ /**
6167
+ * The repository, as a normalized origin `host/owner/name`.
6168
+ */
6169
+ repository: string;
6170
+ /**
6171
+ * Why the destination's own policy on where it creates — a GitHub Projects source's
6172
+ * `creation_owners` — would refuse a create there, as the copy's refusal says it; absent
6173
+ * when it would not. The locate itself never fails for it.
6174
+ */
6175
+ refused?: (string | null);
6176
+ [k: string]: any;
6177
+ }
6178
+ }
6179
+ export type Located = GeneratedLocated.Located;
5727
6180
  export declare namespace GeneratedLocation {
5728
6181
  /**
5729
6182
  * Where an entity is, in the one form a consumer can act on without knowing the backend.
@@ -5748,6 +6201,50 @@ export declare namespace GeneratedLocation {
5748
6201
  });
5749
6202
  }
5750
6203
  export type Location = GeneratedLocation.Location;
6204
+ export declare namespace GeneratedMemberDeclaration {
6205
+ /**
6206
+ * One member of a plan graph, as a project template's front matter declares it.
6207
+ */
6208
+ interface MemberDeclaration {
6209
+ /**
6210
+ * The member task's native id, and how other members' `depends_on` name it.
6211
+ */
6212
+ id: string;
6213
+ /**
6214
+ * Its title.
6215
+ */
6216
+ title: string;
6217
+ /**
6218
+ * The task template its body is rendered from.
6219
+ */
6220
+ template: ({
6221
+ file: string;
6222
+ } | {
6223
+ loader: string;
6224
+ });
6225
+ /**
6226
+ * The answers its template is rendered with, by variable name.
6227
+ */
6228
+ answers?: {
6229
+ [k: string]: any;
6230
+ };
6231
+ /**
6232
+ * The ids of the members it depends on: each one a `blocks` edge, written before it.
6233
+ */
6234
+ depends_on?: string[];
6235
+ /**
6236
+ * Caller-owned metadata keys it is created with.
6237
+ */
6238
+ metadata?: {
6239
+ [k: string]: any;
6240
+ };
6241
+ /**
6242
+ * The repositories it concerns, as normalized origins.
6243
+ */
6244
+ repositories?: string[];
6245
+ }
6246
+ }
6247
+ export type MemberDeclaration = GeneratedMemberDeclaration.MemberDeclaration;
5751
6248
  export declare namespace GeneratedMetadataSet {
5752
6249
  /**
5753
6250
  * Where an entity is, in the one form a consumer can act on without knowing the backend.
@@ -6907,6 +7404,91 @@ export declare namespace GeneratedPlacement {
6907
7404
  }
6908
7405
  }
6909
7406
  export type Placement = GeneratedPlacement.Placement;
7407
+ export declare namespace GeneratedPlannedProject {
7408
+ /**
7409
+ * A source's own opaque identifier for one item.
7410
+ *
7411
+ * Deliberately unvalidated: a native id is whatever the upstream system says it
7412
+ * is, colons included. The engine parses a qualified id by splitting on the
7413
+ * *first* colon precisely so this stays true.
7414
+ */
7415
+ type NativeId = string;
7416
+ /**
7417
+ * A repository identified by its normalized origin, without a URL scheme or `.git` suffix.
7418
+ */
7419
+ type Repository = string;
7420
+ /**
7421
+ * What `project create --dry-run` answers: the project and every member it would create, in
7422
+ * the order it would create them, and nothing written.
7423
+ */
7424
+ interface PlannedProject {
7425
+ /**
7426
+ * The source it would be created in.
7427
+ */
7428
+ source: string;
7429
+ /**
7430
+ * The id it would be written under.
7431
+ */
7432
+ id: string;
7433
+ /**
7434
+ * Its title.
7435
+ */
7436
+ title: string;
7437
+ /**
7438
+ * Its description, as it would be written.
7439
+ */
7440
+ content: string;
7441
+ /**
7442
+ * Each member, in the order it would be created: after every member it depends on.
7443
+ */
7444
+ members: PlannedMember[];
7445
+ [k: string]: any;
7446
+ }
7447
+ /**
7448
+ * One member `project create --dry-run` would create.
7449
+ */
7450
+ interface PlannedMember {
7451
+ /**
7452
+ * The id it would be offered to its source under.
7453
+ */
7454
+ id: string;
7455
+ /**
7456
+ * Its title.
7457
+ */
7458
+ title: string;
7459
+ /**
7460
+ * The template its body is rendered from, as its provenance would record it; `null` for a
7461
+ * body given as it is.
7462
+ */
7463
+ template?: (string | null);
7464
+ /**
7465
+ * Its body, as it would be written.
7466
+ */
7467
+ content: string;
7468
+ /**
7469
+ * The resolved answers its body was rendered with.
7470
+ */
7471
+ answers: {
7472
+ [k: string]: any;
7473
+ };
7474
+ /**
7475
+ * The members it would depend on, each a `blocks` edge.
7476
+ */
7477
+ depends_on: NativeId[];
7478
+ /**
7479
+ * The caller's metadata keys it would carry.
7480
+ */
7481
+ metadata: {
7482
+ [k: string]: any;
7483
+ };
7484
+ /**
7485
+ * The repositories it concerns.
7486
+ */
7487
+ repositories: Repository[];
7488
+ [k: string]: any;
7489
+ }
7490
+ }
7491
+ export type PlannedProject = GeneratedPlannedProject.PlannedProject;
6910
7492
  export declare namespace GeneratedPredicate {
6911
7493
  /**
6912
7494
  * One thing a query can ask of a source.
@@ -7052,6 +7634,107 @@ export declare namespace GeneratedProject {
7052
7634
  }
7053
7635
  }
7054
7636
  export type Project = GeneratedProject.Project;
7637
+ export declare namespace GeneratedProjectAttestationCheck {
7638
+ /**
7639
+ * Why a record of an attestation no longer holds.
7640
+ */
7641
+ type VoidReason = ("content-moved" | "bar-moved");
7642
+ /**
7643
+ * What an attester adds: text of any length and any number of lines, not blank.
7644
+ */
7645
+ type AttestationNote = string;
7646
+ /**
7647
+ * One caller-owned metadata key: `<namespace>.<name>`, at least two non-empty segments
7648
+ * separated by dots, whose first segment is not [`MetadataKey::RESERVED_NAMESPACE`].
7649
+ *
7650
+ * Validated wherever one is built, deserialized included, so a plugin handed one never has
7651
+ * to ask whether it names a key this product owns.
7652
+ */
7653
+ type MetadataKey = string;
7654
+ /**
7655
+ * What `project attestation check --tasks` answers: one entry per task filed under the
7656
+ * project, in the order the source lists them.
7657
+ */
7658
+ interface ProjectAttestationCheck {
7659
+ /**
7660
+ * The project, by qualified id.
7661
+ */
7662
+ project: string;
7663
+ /**
7664
+ * The kind asked about.
7665
+ */
7666
+ kind: string;
7667
+ /**
7668
+ * One entry per task.
7669
+ */
7670
+ tasks: TaskAttestationCheck[];
7671
+ [k: string]: any;
7672
+ }
7673
+ /**
7674
+ * One task's entry in a project's check: the task's qualified id beside what its check found.
7675
+ */
7676
+ interface TaskAttestationCheck {
7677
+ /**
7678
+ * The task, by qualified id.
7679
+ */
7680
+ id: string;
7681
+ /**
7682
+ * The kind asked about.
7683
+ */
7684
+ kind: string;
7685
+ /**
7686
+ * What the check found.
7687
+ */
7688
+ state: ("valid" | "void" | "absent");
7689
+ /**
7690
+ * Why the record is void: `null` unless `state` is `void`.
7691
+ */
7692
+ reason?: (VoidReason | null);
7693
+ /**
7694
+ * The record of the kind the item holds, or `null` when it holds none.
7695
+ */
7696
+ record?: (Attestation | null);
7697
+ [k: string]: any;
7698
+ }
7699
+ /**
7700
+ * One attestation: who cleared the item's authored content, when, which content and against
7701
+ * which bar.
7702
+ */
7703
+ interface Attestation {
7704
+ /**
7705
+ * The kind of attestation this is; the key it is held under.
7706
+ */
7707
+ kind: string;
7708
+ /**
7709
+ * Who attested, as the caller labels them.
7710
+ */
7711
+ by: string;
7712
+ /**
7713
+ * When it was recorded, in RFC 3339 to the second.
7714
+ */
7715
+ at: string;
7716
+ /**
7717
+ * The digest of the item's authored content when it was recorded, computed by the store
7718
+ * (see the module's documentation).
7719
+ */
7720
+ content_digest: string;
7721
+ /**
7722
+ * The fingerprint of the bar the content was cleared against, as the caller gave it.
7723
+ */
7724
+ bar: string;
7725
+ /**
7726
+ * What the attester added, when they added anything.
7727
+ */
7728
+ note?: (AttestationNote | null);
7729
+ /**
7730
+ * The caller-owned metadata keys left out of `content_digest`, sorted; empty when none
7731
+ * were.
7732
+ */
7733
+ excludes?: MetadataKey[];
7734
+ [k: string]: any;
7735
+ }
7736
+ }
7737
+ export type ProjectAttestationCheck = GeneratedProjectAttestationCheck.ProjectAttestationCheck;
7055
7738
  export declare namespace GeneratedProjectGraph {
7056
7739
  /**
7057
7740
  * The task metadata key `project graph --group-by` groups by: any key a record may hold,
@@ -12994,6 +13677,12 @@ export declare namespace GeneratedTaskDetail {
12994
13677
  * naming no configured source.
12995
13678
  */
12996
13679
  cache?: (CacheUse | null);
13680
+ /**
13681
+ * The task's forward dependency edges, exactly as `task deps` answers them — present only
13682
+ * when the read asked for them (`task show --with-deps`), and absent for a task that was not
13683
+ * found, or whose edges could not be read, the failure then in the response's `errors`.
13684
+ */
13685
+ depends_on?: (QualifiedEdge[] | null);
12997
13686
  sanitization?: (Sanitization | null);
12998
13687
  [k: string]: any;
12999
13688
  }
@@ -13517,6 +14206,52 @@ export declare namespace GeneratedTaskDetail {
13517
14206
  bypassed?: (string | null);
13518
14207
  [k: string]: any;
13519
14208
  }
14209
+ /**
14210
+ * One dependency edge with both ends qualified.
14211
+ *
14212
+ * An end may belong to another source. The near plugin owns that qualified far id and the
14213
+ * engine reports it without resolving or fetching the far source, so it holds no index.
14214
+ */
14215
+ interface QualifiedEdge {
14216
+ from: QualifiedEndpoint;
14217
+ to: QualifiedEndpoint1;
14218
+ /**
14219
+ * What the edge means.
14220
+ */
14221
+ kind: ("blocks" | "related");
14222
+ [k: string]: any;
14223
+ }
14224
+ /**
14225
+ * The item the edge starts at, and the one that **depends on** the other.
14226
+ *
14227
+ * The direction a caller asked in says which end they named, not which end the edge
14228
+ * starts at: a forward read and the matching reverse read report the same edge.
14229
+ */
14230
+ interface QualifiedEndpoint {
14231
+ /**
14232
+ * `<source>:<native>`, preserved when a plugin reports another source.
14233
+ */
14234
+ id: string;
14235
+ /**
14236
+ * Whether this endpoint names a task or project.
14237
+ */
14238
+ kind: ("task" | "project");
14239
+ [k: string]: any;
14240
+ }
14241
+ /**
14242
+ * The item the edge points at, and the one that must finish first.
14243
+ */
14244
+ interface QualifiedEndpoint1 {
14245
+ /**
14246
+ * `<source>:<native>`, preserved when a plugin reports another source.
14247
+ */
14248
+ id: string;
14249
+ /**
14250
+ * Whether this endpoint names a task or project.
14251
+ */
14252
+ kind: ("task" | "project");
14253
+ [k: string]: any;
14254
+ }
13520
14255
  /**
13521
14256
  * What the screened writes of one command replaced, and what sanitise-on-refusal changed:
13522
14257
  * the `sanitization` member a write's answer carries when it is not empty.
@@ -13711,6 +14446,12 @@ export declare namespace GeneratedTaskDetails {
13711
14446
  * naming no configured source.
13712
14447
  */
13713
14448
  cache?: (CacheUse | null);
14449
+ /**
14450
+ * The task's forward dependency edges, exactly as `task deps` answers them — present only
14451
+ * when the read asked for them (`task show --with-deps`), and absent for a task that was not
14452
+ * found, or whose edges could not be read, the failure then in the response's `errors`.
14453
+ */
14454
+ depends_on?: (QualifiedEdge[] | null);
13714
14455
  [k: string]: any;
13715
14456
  }
13716
14457
  /**
@@ -14233,6 +14974,52 @@ export declare namespace GeneratedTaskDetails {
14233
14974
  bypassed?: (string | null);
14234
14975
  [k: string]: any;
14235
14976
  }
14977
+ /**
14978
+ * One dependency edge with both ends qualified.
14979
+ *
14980
+ * An end may belong to another source. The near plugin owns that qualified far id and the
14981
+ * engine reports it without resolving or fetching the far source, so it holds no index.
14982
+ */
14983
+ interface QualifiedEdge {
14984
+ from: QualifiedEndpoint;
14985
+ to: QualifiedEndpoint1;
14986
+ /**
14987
+ * What the edge means.
14988
+ */
14989
+ kind: ("blocks" | "related");
14990
+ [k: string]: any;
14991
+ }
14992
+ /**
14993
+ * The item the edge starts at, and the one that **depends on** the other.
14994
+ *
14995
+ * The direction a caller asked in says which end they named, not which end the edge
14996
+ * starts at: a forward read and the matching reverse read report the same edge.
14997
+ */
14998
+ interface QualifiedEndpoint {
14999
+ /**
15000
+ * `<source>:<native>`, preserved when a plugin reports another source.
15001
+ */
15002
+ id: string;
15003
+ /**
15004
+ * Whether this endpoint names a task or project.
15005
+ */
15006
+ kind: ("task" | "project");
15007
+ [k: string]: any;
15008
+ }
15009
+ /**
15010
+ * The item the edge points at, and the one that must finish first.
15011
+ */
15012
+ interface QualifiedEndpoint1 {
15013
+ /**
15014
+ * `<source>:<native>`, preserved when a plugin reports another source.
15015
+ */
15016
+ id: string;
15017
+ /**
15018
+ * Whether this endpoint names a task or project.
15019
+ */
15020
+ kind: ("task" | "project");
15021
+ [k: string]: any;
15022
+ }
14236
15023
  }
14237
15024
  export type TaskDetails = GeneratedTaskDetails.TaskDetails;
14238
15025
  export declare namespace GeneratedTaskPrioritySet {
@@ -14286,6 +15073,10 @@ export declare namespace GeneratedTaskPrioritySet {
14286
15073
  * from nothing by the value alone.
14287
15074
  */
14288
15075
  type Priority = ("none" | "urgent" | "high" | "medium" | "low");
15076
+ /**
15077
+ * What a write guarded by a condition on the item's own value came to.
15078
+ */
15079
+ type GuardOutcome = ("written" | "held");
14289
15080
  /**
14290
15081
  * What a locator names.
14291
15082
  */
@@ -14317,6 +15108,17 @@ export declare namespace GeneratedTaskPrioritySet {
14317
15108
  * fallback read included — absent for a write made without `--expect`.
14318
15109
  */
14319
15110
  spent?: (Spent | null);
15111
+ /**
15112
+ * `written` when the task held a priority the guard names, and `held` when it did not —
15113
+ * absent for a write made without the guard.
15114
+ */
15115
+ outcome?: (GuardOutcome | null);
15116
+ /**
15117
+ * What the guard found the task's priority at before the write, and whether that is one it
15118
+ * names — the shape `task copy --when-destination-priority` reports — absent for a write
15119
+ * made without the guard.
15120
+ */
15121
+ priority_condition?: (PriorityCondition | null);
14320
15122
  sanitization?: (Sanitization | null);
14321
15123
  [k: string]: any;
14322
15124
  }
@@ -14426,6 +15228,26 @@ export declare namespace GeneratedTaskPrioritySet {
14426
15228
  lower_bound: boolean;
14427
15229
  [k: string]: any;
14428
15230
  }
15231
+ /**
15232
+ * What a guarded copy found a counterpart's priority at, and whether that met the condition.
15233
+ */
15234
+ interface PriorityCondition {
15235
+ /**
15236
+ * How much a task matters, in the one vocabulary every source is normalised into.
15237
+ *
15238
+ * Five values, most pressing first after [`None`](Self::None): Linear's own priority has
15239
+ * exactly these, and a source whose backend has none of its own maps its representation
15240
+ * onto them. `none` is a value rather than an absent field, because "no priority is set" is
15241
+ * something a person sets — writing `none` clears a priority — and a reader tells it apart
15242
+ * from nothing by the value alone.
15243
+ */
15244
+ held: ("none" | "urgent" | "high" | "medium" | "low");
15245
+ /**
15246
+ * Whether that priority is one the condition names.
15247
+ */
15248
+ met: boolean;
15249
+ [k: string]: any;
15250
+ }
14429
15251
  /**
14430
15252
  * What the screened writes of one command replaced, and what sanitise-on-refusal changed:
14431
15253
  * the `sanitization` member a write's answer carries when it is not empty.
@@ -15023,13 +15845,17 @@ export declare namespace GeneratedTaskUpdate {
15023
15845
  * `onetaskgraph.depends_on`.
15024
15846
  */
15025
15847
  type TaskRef = string;
15848
+ /**
15849
+ * A repository identified by its normalized origin, without a URL scheme or `.git` suffix.
15850
+ */
15851
+ type Repository = string;
15026
15852
  /**
15027
15853
  * A targeted update of one existing task. A member left `None` (or empty) leaves that field
15028
15854
  * exactly as the source holds it.
15029
15855
  *
15030
- * Labels, repositories and project membership are deliberately outside it — an existing
15031
- * item is never moved, and no caller writes labels this way — and so is creation, which is a
15032
- * copy's.
15856
+ * Labels and project membership are deliberately outside it — an existing item is never
15857
+ * moved, and no caller writes labels this way — and so is creation, which is a copy's. Its
15858
+ * `repositories` list is a field of the item like its title, and is replaced whole.
15033
15859
  */
15034
15860
  interface TaskUpdate {
15035
15861
  /**
@@ -15071,6 +15897,12 @@ export declare namespace GeneratedTaskUpdate {
15071
15897
  * only the difference.
15072
15898
  */
15073
15899
  depends_on?: (DependencyEdge[] | null);
15900
+ /**
15901
+ * Replaces the task's [`Task::repositories`] whole; an empty list clears it. Where the
15902
+ * item's issue lives is never moved by it: it is the list the item names, as a read
15903
+ * reports it.
15904
+ */
15905
+ repositories?: (Repository[] | null);
15074
15906
  [k: string]: any;
15075
15907
  }
15076
15908
  /**
@@ -15189,7 +16021,7 @@ export declare namespace GeneratedTaskUpdateOutcome {
15189
16021
  * kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
15190
16022
  * update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
15191
16023
  */
15192
- type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on");
16024
+ type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
15193
16025
  /**
15194
16026
  * What a source answers a [`TaskUpdate`] of a task it holds with.
15195
16027
  *
@@ -15445,7 +16277,7 @@ export declare namespace GeneratedTaskUpdated {
15445
16277
  * kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
15446
16278
  * update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
15447
16279
  */
15448
- type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on");
16280
+ type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
15449
16281
  /**
15450
16282
  * What keeping one delivered task in step with one deliverer came to.
15451
16283
  */
@@ -16046,6 +16878,11 @@ export declare namespace GeneratedTemplateVariable {
16046
16878
  * The value used when no answer is given.
16047
16879
  */
16048
16880
  default?: unknown;
16881
+ /**
16882
+ * The JSON Schema (draft 2020-12) every answer must satisfy, for an `object` or `list`
16883
+ * variable that declares one; absent for every other.
16884
+ */
16885
+ schema?: unknown;
16049
16886
  /**
16050
16887
  * The chain file whose declaration this is: the one nearest the rendered template.
16051
16888
  */
@@ -16111,6 +16948,11 @@ export declare namespace GeneratedTemplateVariables {
16111
16948
  * The value used when no answer is given.
16112
16949
  */
16113
16950
  default?: unknown;
16951
+ /**
16952
+ * The JSON Schema (draft 2020-12) every answer must satisfy, for an `object` or `list`
16953
+ * variable that declares one; absent for every other.
16954
+ */
16955
+ schema?: unknown;
16114
16956
  /**
16115
16957
  * The chain file whose declaration this is: the one nearest the rendered template.
16116
16958
  */
@@ -16133,7 +16975,7 @@ export declare namespace GeneratedUpdatedField {
16133
16975
  * kebab-case on the wire. [`Metadata`](Self::Metadata) stands for every metadata key the
16134
16976
  * update set or removed together; [`DependsOn`](Self::DependsOn) for the task's forward edges.
16135
16977
  */
16136
- type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on");
16978
+ type UpdatedField = ("title" | "content" | "status" | "priority" | "metadata" | "delivers" | "depends-on" | "repositories");
16137
16979
  }
16138
16980
  export type UpdatedField = GeneratedUpdatedField.UpdatedField;
16139
16981
  export declare namespace GeneratedVariableType {
@@ -16143,6 +16985,13 @@ export declare namespace GeneratedVariableType {
16143
16985
  type VariableType = ("string" | "text" | "integer" | "boolean" | "list" | "object");
16144
16986
  }
16145
16987
  export type VariableType = GeneratedVariableType.VariableType;
16988
+ export declare namespace GeneratedVoidReason {
16989
+ /**
16990
+ * Why a record of an attestation no longer holds.
16991
+ */
16992
+ type VoidReason = ("content-moved" | "bar-moved");
16993
+ }
16994
+ export type VoidReason = GeneratedVoidReason.VoidReason;
16146
16995
  export declare namespace GeneratedWritePolicyConfig {
16147
16996
  /**
16148
16997
  * One command line: the program, then its arguments, never empty.