@onetaskgraph/sdk 0.14.10 → 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.
- package/dist/client.d.ts +33 -2
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +496 -1
- package/dist/generated/schemas.d.ts +751 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +993 -5
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CacheCleared, Classification, CommentList, CommentsSince, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, HumanTaskProjected, IssuesCompleted, LocateReport, MetadataSet, NativeId, Priority, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskStatusSet, TaskUpdated, TemplateAnswers, TemplateVariables } from "./generated/models.ts";
|
|
1
|
+
import type { CacheCleared, Classification, CommentList, CommentsSince, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, HumanTaskProjected, IssuesCompleted, LocateReport, MetadataSet, Attested, AttestationCheck, ProjectAttestationCheck, PlannedProject, NativeId, Priority, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskStatusSet, TaskUpdated, TemplateAnswers, TemplateVariables } from "./generated/models.ts";
|
|
2
2
|
import { runtimeSchemas } from "./generated/schemas.ts";
|
|
3
3
|
export type QueryOptions = {
|
|
4
4
|
sources?: string[];
|
|
@@ -29,6 +29,14 @@ export type WriteOptions = {
|
|
|
29
29
|
reject?: string[];
|
|
30
30
|
sanitizeDryRun?: boolean;
|
|
31
31
|
};
|
|
32
|
+
export type AttestOptions = WriteOptions & {
|
|
33
|
+
exclude?: string[];
|
|
34
|
+
note?: string;
|
|
35
|
+
ifVersion?: string;
|
|
36
|
+
};
|
|
37
|
+
export type AttestationCheckOptions = {
|
|
38
|
+
bar?: string;
|
|
39
|
+
};
|
|
32
40
|
export type ExpectOptions = {
|
|
33
41
|
expect?: string;
|
|
34
42
|
};
|
|
@@ -109,6 +117,7 @@ export type DocumentCreateOptions = CreateOptions & AssetOptions & {
|
|
|
109
117
|
};
|
|
110
118
|
export type ProjectCreateOptions = CreateOptions & {
|
|
111
119
|
status?: StatusCategory;
|
|
120
|
+
dryRun?: boolean;
|
|
112
121
|
};
|
|
113
122
|
export type TaskUpdateOptions = WriteOptions & ExpectOptions & HeldOptions & {
|
|
114
123
|
title?: string;
|
|
@@ -306,6 +315,23 @@ export declare class OnetaskgraphClient {
|
|
|
306
315
|
sanitizeDryRun?: false;
|
|
307
316
|
}): Promise<MetadataSet>;
|
|
308
317
|
documentMetadataSet(id: string, key: string, value: string, options?: WriteOptions): Promise<MetadataSet | SanitizeDryRun>;
|
|
318
|
+
taskAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions & {
|
|
319
|
+
sanitizeDryRun?: false;
|
|
320
|
+
}): Promise<Attested>;
|
|
321
|
+
taskAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions): Promise<Attested | SanitizeDryRun>;
|
|
322
|
+
projectAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions & {
|
|
323
|
+
sanitizeDryRun?: false;
|
|
324
|
+
}): Promise<Attested>;
|
|
325
|
+
projectAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions): Promise<Attested | SanitizeDryRun>;
|
|
326
|
+
documentAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions & {
|
|
327
|
+
sanitizeDryRun?: false;
|
|
328
|
+
}): Promise<Attested>;
|
|
329
|
+
documentAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions): Promise<Attested | SanitizeDryRun>;
|
|
330
|
+
taskAttestationCheck(id: string, kind: string, options?: AttestationCheckOptions): Promise<AttestationCheck>;
|
|
331
|
+
documentAttestationCheck(id: string, kind: string, options?: AttestationCheckOptions): Promise<AttestationCheck>;
|
|
332
|
+
projectAttestationCheck(id: string, kind: string, options?: AttestationCheckOptions & {
|
|
333
|
+
tasks?: boolean;
|
|
334
|
+
}): Promise<AttestationCheck | ProjectAttestationCheck>;
|
|
309
335
|
labelList(options?: QueryOptions): Promise<QueryResponseOfQualifiedLabel>;
|
|
310
336
|
search(text: string, options?: QueryOptions & {
|
|
311
337
|
fields?: "title" | "content" | "both";
|
|
@@ -326,10 +352,15 @@ export declare class OnetaskgraphClient {
|
|
|
326
352
|
taskAnswers(id: string): Promise<TemplateAnswers>;
|
|
327
353
|
taskAssets(id: string, outputDir: string): Promise<TaskAssetNames>;
|
|
328
354
|
taskProjectHuman(input: string): Promise<HumanTaskProjected>;
|
|
355
|
+
projectCreate(source: string, id: NativeId, title: string, options: ProjectCreateOptions & {
|
|
356
|
+
dryRun: true;
|
|
357
|
+
sanitizeDryRun?: false;
|
|
358
|
+
}): Promise<PlannedProject>;
|
|
329
359
|
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions & {
|
|
360
|
+
dryRun?: false;
|
|
330
361
|
sanitizeDryRun?: false;
|
|
331
362
|
}): Promise<QueryResponseOfQualifiedProject>;
|
|
332
|
-
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions): Promise<QueryResponseOfQualifiedProject | SanitizeDryRun>;
|
|
363
|
+
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions): Promise<QueryResponseOfQualifiedProject | PlannedProject | SanitizeDryRun>;
|
|
333
364
|
projectRender(id: string, options?: RenderOptions & {
|
|
334
365
|
sanitizeDryRun?: false;
|
|
335
366
|
}): Promise<Regenerated>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const binaryCommands: readonly ["schema", "config show", "sources list", "sources status-options", "sources fields", "sources route", "sources sanitize", "task list", "task show", "task show-many", "task deps", "task copy", "task locate", "task comment add", "task comment list", "task comment edit", "task comment delete", "task comments", "task status set", "task status reconcile", "task status complete", "task priority set", "task content set", "task metadata set", "task update", "task create", "task render", "task answers", "task assets", "task project-human", "project list", "project show", "project deps", "project graph", "project copy", "project metadata set", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document create", "document render", "document answers", "label list", "search", "cache clear", "template variables", "template render"];
|
|
1
|
+
export declare const binaryCommands: readonly ["schema", "config show", "sources list", "sources status-options", "sources fields", "sources route", "sources sanitize", "task list", "task show", "task show-many", "task deps", "task copy", "task locate", "task comment add", "task comment list", "task comment edit", "task comment delete", "task comments", "task status set", "task status reconcile", "task status complete", "task priority set", "task content set", "task metadata set", "task attest", "task attestation check", "task update", "task create", "task render", "task answers", "task assets", "task project-human", "project list", "project show", "project deps", "project graph", "project copy", "project metadata set", "project attest", "project attestation check", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document attest", "document attestation check", "document create", "document render", "document answers", "label list", "search", "cache clear", "template variables", "template render"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SCHEMA_BUNDLE_VERSION:
|
|
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,254 @@ 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;
|
|
212
460
|
export declare namespace GeneratedAuthorKind {
|
|
213
461
|
/**
|
|
214
462
|
* Who wrote a comment, as the source that holds it can tell: a person, a bot — an
|
|
@@ -5953,6 +6201,50 @@ export declare namespace GeneratedLocation {
|
|
|
5953
6201
|
});
|
|
5954
6202
|
}
|
|
5955
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;
|
|
5956
6248
|
export declare namespace GeneratedMetadataSet {
|
|
5957
6249
|
/**
|
|
5958
6250
|
* Where an entity is, in the one form a consumer can act on without knowing the backend.
|
|
@@ -7112,6 +7404,91 @@ export declare namespace GeneratedPlacement {
|
|
|
7112
7404
|
}
|
|
7113
7405
|
}
|
|
7114
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;
|
|
7115
7492
|
export declare namespace GeneratedPredicate {
|
|
7116
7493
|
/**
|
|
7117
7494
|
* One thing a query can ask of a source.
|
|
@@ -7257,6 +7634,107 @@ export declare namespace GeneratedProject {
|
|
|
7257
7634
|
}
|
|
7258
7635
|
}
|
|
7259
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;
|
|
7260
7738
|
export declare namespace GeneratedProjectGraph {
|
|
7261
7739
|
/**
|
|
7262
7740
|
* The task metadata key `project graph --group-by` groups by: any key a record may hold,
|
|
@@ -16400,6 +16878,11 @@ export declare namespace GeneratedTemplateVariable {
|
|
|
16400
16878
|
* The value used when no answer is given.
|
|
16401
16879
|
*/
|
|
16402
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;
|
|
16403
16886
|
/**
|
|
16404
16887
|
* The chain file whose declaration this is: the one nearest the rendered template.
|
|
16405
16888
|
*/
|
|
@@ -16465,6 +16948,11 @@ export declare namespace GeneratedTemplateVariables {
|
|
|
16465
16948
|
* The value used when no answer is given.
|
|
16466
16949
|
*/
|
|
16467
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;
|
|
16468
16956
|
/**
|
|
16469
16957
|
* The chain file whose declaration this is: the one nearest the rendered template.
|
|
16470
16958
|
*/
|
|
@@ -16497,6 +16985,13 @@ export declare namespace GeneratedVariableType {
|
|
|
16497
16985
|
type VariableType = ("string" | "text" | "integer" | "boolean" | "list" | "object");
|
|
16498
16986
|
}
|
|
16499
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;
|
|
16500
16995
|
export declare namespace GeneratedWritePolicyConfig {
|
|
16501
16996
|
/**
|
|
16502
16997
|
* One command line: the program, then its arguments, never empty.
|