hub-api: the Flow types in the generated TypeScript bf1ab3458db1
FlowRun, FlowJob, FlowLogLine and AssetBuild join the schema list, so
ts/index.d.ts (and the VS Code extension) know them.
refs andymccall/oxygenhub-vscode#2
Author Andy McCall @andymccall <[email protected] >
When 1 month ago · 2026-09-29 18:35 UTC
Signature ✔ signed by Andy McCall
Hash bf1ab3458db1c2cfdacecf34f981ef54baa28f8d6a453cc7b24bd2c53530a904
Depends on 3f4b0ea6eabf b64e2537d702 d23464c0ac60
Depended on by 041a945f55f8 fac6853c4e46 166f6e9bf4f1 71e65fcf95ab 4d2e44d79b03
In bookmarks api-unknown-fields cancel-landed-runs clear-waiting close-proposal-140 diffusion-pin-bookmark draft-ready image-check job-waits main oh-comment-body-file proposal-list-fast run-one-job wiki-says-so
In tags v0.1.0 v0.2.0 v0.3.0 v0.3.1 v0.4.0 v0.4.1 v0.4.2 v0.5.0 v0.5.1 v0.5.2 v0.6.0 v0.6.1 v0.7.0 v0.8.0 v0.9.0 v0.9.1 v0.9.11 v0.9.15 v0.9.16 v0.9.19 v0.9.2 v0.9.20 v0.9.21 v0.9.22 v0.9.23 v0.9.24 v0.9.3 v0.9.4 v0.9.5 v0.9.6 v0.9.7 v0.9.8 v0.9.9
Edits 6 atoms, 0 tree operations, 2 files
Browse the tree at this change
crates/hub-api/src/lib.rs crates/hub-api/ts/index.d.ts
modified
crates/hub-api/src/lib.rs
+4 −0
…
642 unchanged lines
643
643
("WebhookEnvelope", schemars::schema_for!(WebhookEnvelope)),
644
644
("ProposalEvent", schemars::schema_for!(ProposalEvent)),
645
645
("Release", schemars::schema_for!(Release)),
646
+
("FlowRun", schemars::schema_for!(FlowRun)),
647
+
("FlowJob", schemars::schema_for!(FlowJob)),
648
+
("FlowLogLine", schemars::schema_for!(FlowLogLine)),
649
+
("AssetBuild", schemars::schema_for!(AssetBuild)),
646
650
("ReleaseAsset", schemars::schema_for!(ReleaseAsset)),
647
651
("NewRelease", schemars::schema_for!(NewRelease)),
648
652
]
…
1 unchanged lines
modified
crates/hub-api/ts/index.d.ts
+48 −0
…
32 unchanged lines
33
33
email: string;
34
34
key: string;
35
35
name: string;
36
+
note?: string | null;
36
37
};
37
38
38
39
export type Signature = {
…
313 unchanged lines
352
353
check?: Check | unknown;
353
354
kind: string;
354
355
number: number;
356
+
};
357
+
358
+
export type AssetBuild = {
359
+
artifact: string;
360
+
job: string;
361
+
receipt?: string | null;
362
+
receipt_url?: string | null;
363
+
run: number;
364
+
run_url: string;
365
+
signer?: string | null;
355
366
};
356
367
357
368
export type ReleaseAsset = {
369
+
built_by?: AssetBuild | null;
358
370
content_type: string;
359
371
downloads: number;
360
372
hash: string;
…
14 unchanged lines
375
387
signer?: string | null;
376
388
tag: string;
377
389
title: string;
390
+
url: string;
391
+
};
392
+
393
+
export type FlowJob = {
394
+
depends_on: string[];
395
+
error: string;
396
+
exit_code?: number | null;
397
+
finished_ms?: number | null;
398
+
log_lines: number;
399
+
name: string;
400
+
runner: string;
401
+
started_ms?: number | null;
402
+
status: string;
403
+
};
404
+
405
+
export type FlowRun = {
406
+
actor: string;
407
+
bookmark: string;
408
+
created_ms: number;
409
+
error: string;
410
+
finished_ms?: number | null;
411
+
heads: string[];
412
+
jobs?: FlowJob[];
413
+
number: number;
414
+
pipeline_hash: string;
415
+
queue_position?: number | null;
416
+
state: string;
417
+
status: string;
418
+
trigger: string;
378
419
url: string;
420
+
};
421
+
422
+
export type FlowLogLine = {
423
+
seq: number;
424
+
stream: string;
425
+
t: number;
426
+
text: string;
379
427
};
380
428
381
429
export type NewRelease = {
…
6 unchanged lines