@vibefield/rosetta-protocol 0.1.2 → 0.1.4
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 +22 -1
- package/dist/client.js +36 -4
- package/dist/generated/AdmissionCourse.d.ts +6 -0
- package/dist/generated/AdmissionCourse.js +2 -0
- package/dist/generated/ArtifactEntry.d.ts +15 -0
- package/dist/generated/ArtifactEntry.js +1 -0
- package/dist/generated/ArtifactExportRequest.d.ts +20 -0
- package/dist/generated/ArtifactExportRequest.js +1 -0
- package/dist/generated/ArtifactExportResponse.d.ts +33 -0
- package/dist/generated/ArtifactExportResponse.js +1 -0
- package/dist/generated/ArtifactListRequest.d.ts +11 -0
- package/dist/generated/ArtifactListRequest.js +2 -0
- package/dist/generated/ArtifactPage.d.ts +9 -0
- package/dist/generated/ArtifactPage.js +1 -0
- package/dist/generated/ErrorCode.d.ts +1 -1
- package/dist/generated/ExportEnvironment.d.ts +22 -0
- package/dist/generated/ExportEnvironment.js +2 -0
- package/dist/generated/ExportMethod.d.ts +4 -0
- package/dist/generated/ExportMethod.js +2 -0
- package/dist/generated/ExportShell.d.ts +4 -0
- package/dist/generated/ExportShell.js +2 -0
- package/dist/generated/ExportedObject.d.ts +16 -0
- package/dist/generated/ExportedObject.js +2 -0
- package/dist/generated/ExportedShell.d.ts +17 -0
- package/dist/generated/ExportedShell.js +2 -0
- package/dist/generated/HtmlArtifactAvailability.d.ts +1 -0
- package/dist/generated/HtmlArtifactAvailability.js +2 -0
- package/dist/generated/HtmlArtifactPublication.d.ts +36 -0
- package/dist/generated/HtmlArtifactPublication.js +2 -0
- package/dist/generated/Mutation.d.ts +4 -1
- package/dist/generated/RuntimeBackfill.d.ts +8 -0
- package/dist/generated/ServerFrame.d.ts +8 -0
- package/dist/generated/StatusResponse.d.ts +8 -0
- package/dist/generated/TimelineMetaArtifactSource.d.ts +8 -0
- package/dist/index.d.ts +13 -0
- package/dist/protocol-version.mjs +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ import type { IngestionControlRequest } from "./generated/IngestionControlReques
|
|
|
6
6
|
import type { ApiError } from "./generated/ApiError.js";
|
|
7
7
|
import type { ImageVariant } from "./generated/ImageVariant.js";
|
|
8
8
|
import type { AssetRef } from "./generated/AssetRef.js";
|
|
9
|
+
import type { ArtifactExportRequest } from "./generated/ArtifactExportRequest.js";
|
|
10
|
+
import type { ArtifactExportResponse } from "./generated/ArtifactExportResponse.js";
|
|
11
|
+
import type { ArtifactListRequest } from "./generated/ArtifactListRequest.js";
|
|
12
|
+
import type { ArtifactPage } from "./generated/ArtifactPage.js";
|
|
9
13
|
import type { BoostResponse } from "./generated/BoostResponse.js";
|
|
10
14
|
import type { ContributionResponse } from "./generated/ContributionResponse.js";
|
|
11
15
|
import type { CommandResponse } from "./generated/CommandResponse.js";
|
|
@@ -190,7 +194,11 @@ export declare class RosettaClient {
|
|
|
190
194
|
* supplies identities and an index, never a path; the daemon resolves the
|
|
191
195
|
* exact path already stored on that timeline row. */
|
|
192
196
|
/** Direct image URLs let the browser share compressed and decoded resources.
|
|
193
|
-
* Recipes are finite, versioned and enforced by the daemon.
|
|
197
|
+
* Recipes are finite, versioned and enforced by the daemon. Every address is
|
|
198
|
+
* a WebP the daemon encoded: a legacy bundle names its own members, and a
|
|
199
|
+
* recorded original (any image member without a WebP bundle) is drawn only
|
|
200
|
+
* through `?image=<variant>&v=1`, `full` included. Its plain URL returns the
|
|
201
|
+
* recorded bytes for opening or saving, never for display. */
|
|
194
202
|
imageAssetUrl(asset: AssetRef, variant: ImageVariant): string;
|
|
195
203
|
imageFileTargetUrl(sessionId: string, timelineId: string, targetIndex: number, variant: ImageVariant): string;
|
|
196
204
|
readFileTarget(sessionId: string, timelineId: string, targetIndex: number, signal?: AbortSignal): Promise<Uint8Array>;
|
|
@@ -201,6 +209,19 @@ export declare class RosettaClient {
|
|
|
201
209
|
readAsset(asset: AssetRef, signal?: AbortSignal): Promise<Uint8Array>;
|
|
202
210
|
/** Read one exact plan document selected from timeline_meta. */
|
|
203
211
|
readPlan(sessionId: string, source: TimelineMetaPlanSource, signal?: AbortSignal): Promise<Uint8Array>;
|
|
212
|
+
artifacts(request: ArtifactListRequest, signal?: AbortSignal): Promise<ArtifactPage>;
|
|
213
|
+
/** Exact captured bytes, authorized through the publication's session. */
|
|
214
|
+
readArtifact(sessionId: string, publicationId: string, signal?: AbortSignal): Promise<Uint8Array>;
|
|
215
|
+
/**
|
|
216
|
+
* Place one captured page by its digest as `index.html` in the directory
|
|
217
|
+
* `request.into`, below the daemon's `--export-root` (RO-32): a hard link
|
|
218
|
+
* from rosetta's asset store when both share a volume, else a verified
|
|
219
|
+
* copy. `shell: "room"` writes the room's shell around the page instead.
|
|
220
|
+
* Bearer only. The same page already there answers the same; a different
|
|
221
|
+
* file there is `export_conflict`. Every answer carries the room's
|
|
222
|
+
* `environment` (hosts per CSP directive, theme variables).
|
|
223
|
+
*/
|
|
224
|
+
exportArtifact(sessionId: string, publicationId: string, request: ArtifactExportRequest, signal?: AbortSignal): Promise<ArtifactExportResponse>;
|
|
204
225
|
search(request: SearchRequest, signal?: AbortSignal): Promise<SearchResponse>;
|
|
205
226
|
heatmap(projectId: string, options?: {
|
|
206
227
|
sinceMs?: number;
|
package/dist/client.js
CHANGED
|
@@ -291,16 +291,23 @@ export class RosettaClient {
|
|
|
291
291
|
* supplies identities and an index, never a path; the daemon resolves the
|
|
292
292
|
* exact path already stored on that timeline row. */
|
|
293
293
|
/** Direct image URLs let the browser share compressed and decoded resources.
|
|
294
|
-
* Recipes are finite, versioned and enforced by the daemon.
|
|
294
|
+
* Recipes are finite, versioned and enforced by the daemon. Every address is
|
|
295
|
+
* a WebP the daemon encoded: a legacy bundle names its own members, and a
|
|
296
|
+
* recorded original (any image member without a WebP bundle) is drawn only
|
|
297
|
+
* through `?image=<variant>&v=1`, `full` included. Its plain URL returns the
|
|
298
|
+
* recorded bytes for opening or saving, never for display. */
|
|
295
299
|
imageAssetUrl(asset, variant) {
|
|
296
300
|
const base = new URL(`${this.baseUrl}/`);
|
|
297
|
-
const
|
|
301
|
+
const variants = asset.image_variants;
|
|
302
|
+
const bundled = asset.media_type === "image/webp" && variants != null && Object.keys(variants).length > 0;
|
|
303
|
+
const member = !bundled ? undefined : variant === "full" ? asset : variants?.[variant];
|
|
304
|
+
const rendition = member?.media_type === "image/webp" ? member : undefined;
|
|
298
305
|
const url = new URL((rendition ?? asset).url, base);
|
|
299
306
|
if (url.origin !== base.origin || !["http:", "https:"].includes(url.protocol)) {
|
|
300
307
|
throw new Error("the stored image has an unsupported address");
|
|
301
308
|
}
|
|
302
|
-
//
|
|
303
|
-
// route
|
|
309
|
+
// A recorded original, or a bundle missing this rendition: the versioned
|
|
310
|
+
// daemon route encodes it from the member without changing its URL.
|
|
304
311
|
if (!rendition) {
|
|
305
312
|
url.searchParams.set("image", variant);
|
|
306
313
|
url.searchParams.set("v", "1");
|
|
@@ -343,6 +350,31 @@ export class RosettaClient {
|
|
|
343
350
|
const response = await this.response(path, withSignal(signal));
|
|
344
351
|
return new Uint8Array(await response.arrayBuffer());
|
|
345
352
|
}
|
|
353
|
+
artifacts(request, signal) {
|
|
354
|
+
return this.request(`/api/artifacts${queryString({ ...request })}`, withSignal(signal));
|
|
355
|
+
}
|
|
356
|
+
/** Exact captured bytes, authorized through the publication's session. */
|
|
357
|
+
async readArtifact(sessionId, publicationId, signal) {
|
|
358
|
+
const response = await this.response(`/api/sessions/${encodeURIComponent(sessionId)}/artifacts/${encodeURIComponent(publicationId)}/content`, withSignal(signal));
|
|
359
|
+
return new Uint8Array(await response.arrayBuffer());
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Place one captured page by its digest as `index.html` in the directory
|
|
363
|
+
* `request.into`, below the daemon's `--export-root` (RO-32): a hard link
|
|
364
|
+
* from rosetta's asset store when both share a volume, else a verified
|
|
365
|
+
* copy. `shell: "room"` writes the room's shell around the page instead.
|
|
366
|
+
* Bearer only. The same page already there answers the same; a different
|
|
367
|
+
* file there is `export_conflict`. Every answer carries the room's
|
|
368
|
+
* `environment` (hosts per CSP directive, theme variables).
|
|
369
|
+
*/
|
|
370
|
+
exportArtifact(sessionId, publicationId, request, signal) {
|
|
371
|
+
return this.request(`/api/sessions/${encodeURIComponent(sessionId)}/artifacts/${encodeURIComponent(publicationId)}/export`, {
|
|
372
|
+
method: "POST",
|
|
373
|
+
...withSignal(signal),
|
|
374
|
+
headers: { "content-type": "application/json" },
|
|
375
|
+
body: JSON.stringify(request),
|
|
376
|
+
});
|
|
377
|
+
}
|
|
346
378
|
// @atlas step search-query.client
|
|
347
379
|
search(request, signal) {
|
|
348
380
|
return this.request(`/api/search${queryString({
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a runtime's still-`Pending` sessions wait for on this process's cold
|
|
3
|
+
* attempt — the only promise a client may make about when one opens. It
|
|
4
|
+
* names no order, position or time.
|
|
5
|
+
*/
|
|
6
|
+
export type AdmissionCourse = "per_tree" | "at_runtime_close" | "at_publication";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AssetRef } from "./AssetRef.js";
|
|
2
|
+
import type { HtmlArtifactAvailability } from "./HtmlArtifactAvailability.js";
|
|
3
|
+
import type { HtmlArtifactPublication } from "./HtmlArtifactPublication.js";
|
|
4
|
+
export type ArtifactEntry = {
|
|
5
|
+
publication: HtmlArtifactPublication;
|
|
6
|
+
availability: HtmlArtifactAvailability;
|
|
7
|
+
captured_at: number | null;
|
|
8
|
+
recovered_from: string | null;
|
|
9
|
+
asset: AssetRef | null;
|
|
10
|
+
agent: string;
|
|
11
|
+
session_title: string | null;
|
|
12
|
+
project_id: string | null;
|
|
13
|
+
project_name: string | null;
|
|
14
|
+
presentations: number;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ExportShell } from "./ExportShell.js";
|
|
2
|
+
/**
|
|
3
|
+
* `POST /api/sessions/{id}/artifacts/{publication_id}/export` (RO-32,
|
|
4
|
+
* protocol 30, by digest since 2026-11-06): place one captured page, its own
|
|
5
|
+
* bytes, as `index.html` in a directory a host serves from an origin of its
|
|
6
|
+
* own. Bearer only; a session grant never reaches it.
|
|
7
|
+
*/
|
|
8
|
+
export type ArtifactExportRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The directory, absolute, strictly below the daemon's `--export-root`.
|
|
11
|
+
* No component below the root may be a symbolic link. It is created
|
|
12
|
+
* (0700) when absent, and the page lands at `<into>/index.html`.
|
|
13
|
+
*/
|
|
14
|
+
into: string;
|
|
15
|
+
/**
|
|
16
|
+
* Absent: the page's own bytes, linked or copied. `room`: the room's
|
|
17
|
+
* shell written around the page instead.
|
|
18
|
+
*/
|
|
19
|
+
shell?: ExportShell;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ExportEnvironment } from "./ExportEnvironment.js";
|
|
2
|
+
import type { ExportMethod } from "./ExportMethod.js";
|
|
3
|
+
import type { ExportedObject } from "./ExportedObject.js";
|
|
4
|
+
import type { ExportedShell } from "./ExportedShell.js";
|
|
5
|
+
/**
|
|
6
|
+
* The export door's answer. The same page already at the same path answers
|
|
7
|
+
* the same and writes nothing.
|
|
8
|
+
*/
|
|
9
|
+
export type ArtifactExportResponse = {
|
|
10
|
+
/**
|
|
11
|
+
* The file at `<into>/<page.path>`.
|
|
12
|
+
*/
|
|
13
|
+
page: ExportedObject;
|
|
14
|
+
/**
|
|
15
|
+
* The publication's other files, each beside the page. Empty until
|
|
16
|
+
* rosetta keeps a multi-file publish's members (RO-34b).
|
|
17
|
+
*/
|
|
18
|
+
members: Array<ExportedObject>;
|
|
19
|
+
/**
|
|
20
|
+
* When rosetta observed the captured file (Unix ms); null for a page
|
|
21
|
+
* recorded inline in its publication.
|
|
22
|
+
*/
|
|
23
|
+
captured_at: number | null;
|
|
24
|
+
method: ExportMethod;
|
|
25
|
+
/**
|
|
26
|
+
* The room's environment for a captured page, whatever `shell` asked.
|
|
27
|
+
*/
|
|
28
|
+
environment: ExportEnvironment;
|
|
29
|
+
/**
|
|
30
|
+
* The shell written around the page; absent for the page's own bytes.
|
|
31
|
+
*/
|
|
32
|
+
shell?: ExportedShell;
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ArtifactListRequest = {
|
|
2
|
+
q: string | null;
|
|
3
|
+
agent: string | null;
|
|
4
|
+
project: string | null;
|
|
5
|
+
/**
|
|
6
|
+
* Omitted: latest presentation of each artifact. Set: its full history.
|
|
7
|
+
*/
|
|
8
|
+
artifact_id: string | null;
|
|
9
|
+
cursor: string | null;
|
|
10
|
+
limit: number | null;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ErrorCode = "incompatible_protocol" | "not_found" | "bad_request" | "not_ready" | "cursor_expired" | "index_changed" | "revision_conflict" | "idempotency_conflict" | "invalid_transition" | "publication_in_progress" | "control_capacity" | "shutting_down" | "internal";
|
|
1
|
+
export type ErrorCode = "incompatible_protocol" | "not_found" | "bad_request" | "not_ready" | "cursor_expired" | "index_changed" | "revision_conflict" | "idempotency_conflict" | "invalid_transition" | "publication_in_progress" | "control_capacity" | "shutting_down" | "export_conflict" | "internal";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The room's environment for a captured page, as data: the public hosts it
|
|
3
|
+
* admits beside the page's own origin and the theme variables a page's
|
|
4
|
+
* author wrote against (`rosetta_core::html_artifacts::SHELL_HOSTS` and
|
|
5
|
+
* `SHELL_VARIABLES`). A serving host builds its own policy and theme from
|
|
6
|
+
* them without holding a platform's list or wrapping the page.
|
|
7
|
+
*/
|
|
8
|
+
export type ExportEnvironment = {
|
|
9
|
+
/**
|
|
10
|
+
* Per Content-Security-Policy directive (`script-src`, `style-src`,
|
|
11
|
+
* `font-src`), the `https` hosts the room admits.
|
|
12
|
+
*/
|
|
13
|
+
hosts: {
|
|
14
|
+
[key in string]: Array<string>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Per CSS custom property (`--color-text-primary`, …), its light value.
|
|
18
|
+
*/
|
|
19
|
+
variables: {
|
|
20
|
+
[key in string]: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One file an export placed, named by its path inside `into`.
|
|
3
|
+
*/
|
|
4
|
+
export type ExportedObject = {
|
|
5
|
+
/**
|
|
6
|
+
* Relative to `into`: `index.html` for the page.
|
|
7
|
+
*/
|
|
8
|
+
path: string;
|
|
9
|
+
/**
|
|
10
|
+
* The BLAKE3 digest of the file's bytes, lowercase hex. A page placed
|
|
11
|
+
* as itself carries the capture's own digest, the library's
|
|
12
|
+
* `asset.digest`.
|
|
13
|
+
*/
|
|
14
|
+
blake3: string;
|
|
15
|
+
bytes: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shell an export wrote around its page (`shell: "room"`).
|
|
3
|
+
*/
|
|
4
|
+
export type ExportedShell = {
|
|
5
|
+
/**
|
|
6
|
+
* `rosetta_core::html_artifacts::SHELL_VERSION`.
|
|
7
|
+
*/
|
|
8
|
+
version: string;
|
|
9
|
+
/**
|
|
10
|
+
* The capture the shell wraps: the library's `asset.digest`.
|
|
11
|
+
*/
|
|
12
|
+
source_blake3: string;
|
|
13
|
+
/**
|
|
14
|
+
* The public hosts the shell's own policy admits, each once.
|
|
15
|
+
*/
|
|
16
|
+
hosts: Array<string>;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type HtmlArtifactAvailability = "captured" | "not_captured" | "missing" | "too_large" | "unsupported" | "changed_during_read";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type HtmlArtifactPublication = {
|
|
2
|
+
/**
|
|
3
|
+
* One presentation/publication, stable across normalization and replay.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Native artifact identity within a runtime, otherwise session + locator.
|
|
8
|
+
*/
|
|
9
|
+
artifact_id: string;
|
|
10
|
+
session_id: string;
|
|
11
|
+
timeline_id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
filename: string;
|
|
14
|
+
path: string | null;
|
|
15
|
+
url: string | null;
|
|
16
|
+
native_id: string | null;
|
|
17
|
+
version: string | null;
|
|
18
|
+
published_at: number | null;
|
|
19
|
+
/**
|
|
20
|
+
* Raw-record coordinate for the separately ledgered file observation.
|
|
21
|
+
*/
|
|
22
|
+
source_offset: number;
|
|
23
|
+
/**
|
|
24
|
+
* The publish request's own description, as the agent wrote it, bounded
|
|
25
|
+
* by [`HTML_DESCRIPTION_MAX_BYTES`] (RO-33, schema 30). Null when the
|
|
26
|
+
* request carried none, or when the source records no request at all.
|
|
27
|
+
*/
|
|
28
|
+
description: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* How many members of the publish request's `files` map the library did
|
|
31
|
+
* not keep beside this page (RO-34a, schema 30). Zero when the request
|
|
32
|
+
* named none; null when the source records no request (a delivery link,
|
|
33
|
+
* another agent's presentation), which means unknown.
|
|
34
|
+
*/
|
|
35
|
+
dropped_files: number | null;
|
|
36
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AdmissionCourse } from "./AdmissionCourse.js";
|
|
1
2
|
import type { BackfillState } from "./BackfillState.js";
|
|
2
3
|
/**
|
|
3
4
|
* Cold-start progress for one runtime. Denominators come from discovery's
|
|
@@ -47,4 +48,11 @@ export type RuntimeBackfill = {
|
|
|
47
48
|
* Transcript records parsed so far.
|
|
48
49
|
*/
|
|
49
50
|
records: number;
|
|
51
|
+
/**
|
|
52
|
+
* When this runtime's `Pending` sessions open on the current cold
|
|
53
|
+
* attempt (2026-11-03), kept after it goes live. Null from a daemon that
|
|
54
|
+
* predates it and for serve paths without a cold attempt (warm start,
|
|
55
|
+
* disk-progressive): a client then falls back to what it can infer.
|
|
56
|
+
*/
|
|
57
|
+
admission_course?: AdmissionCourse | null;
|
|
50
58
|
};
|
|
@@ -44,6 +44,14 @@ export type ServerFrame = {
|
|
|
44
44
|
runtimes: Array<RuntimeRow>;
|
|
45
45
|
projects: Array<ProjectRow>;
|
|
46
46
|
sessions: Array<SessionRow>;
|
|
47
|
+
/**
|
|
48
|
+
* The artifact library revision the mirror last read (RO-35), so a
|
|
49
|
+
* subscriber that connects late or is resynced (an overflowed queue
|
|
50
|
+
* drops its events, `artifacts_changed` among them) learns where the
|
|
51
|
+
* library stands. Null before the mirror's first read; daemons
|
|
52
|
+
* before protocol 30 omit it.
|
|
53
|
+
*/
|
|
54
|
+
artifacts_revision?: number | null;
|
|
47
55
|
} | {
|
|
48
56
|
"frame": "mutation";
|
|
49
57
|
stamp: Stamp | null;
|
|
@@ -14,4 +14,12 @@ export type StatusResponse = {
|
|
|
14
14
|
* ingest loop (tests, static serving).
|
|
15
15
|
*/
|
|
16
16
|
daemon: DaemonStatus | null;
|
|
17
|
+
/**
|
|
18
|
+
* The artifact library's revision (RO-35): the value `GET /api/artifacts`
|
|
19
|
+
* cursors bind and `/ws/meta`'s `artifacts_changed` announces, so a
|
|
20
|
+
* client that connects later knows where the library stands. Null while
|
|
21
|
+
* the projection is unpublished or unreadable; daemons before protocol
|
|
22
|
+
* 30 omit it.
|
|
23
|
+
*/
|
|
24
|
+
artifacts_revision?: number | null;
|
|
17
25
|
};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { AssetRef } from "./AssetRef.js";
|
|
2
|
+
import type { HtmlArtifactAvailability } from "./HtmlArtifactAvailability.js";
|
|
2
3
|
export type TimelineMetaArtifactSource = {
|
|
4
|
+
"type": "html_publication";
|
|
5
|
+
publication_id: string;
|
|
6
|
+
timeline_id: string;
|
|
7
|
+
filename: string;
|
|
8
|
+
availability: HtmlArtifactAvailability;
|
|
9
|
+
url: string | null;
|
|
10
|
+
} | {
|
|
3
11
|
"type": "timeline_file";
|
|
4
12
|
timeline_id: string;
|
|
5
13
|
target_index: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,12 +6,25 @@ export type * from "./generated/IngestionControlRequest.js";
|
|
|
6
6
|
export type * from "./generated/IngestionConflict.js";
|
|
7
7
|
export type * from "./generated/ApiError.js";
|
|
8
8
|
export type * from "./generated/AssetRef.js";
|
|
9
|
+
export type * from "./generated/ArtifactEntry.js";
|
|
10
|
+
export type * from "./generated/ArtifactExportRequest.js";
|
|
11
|
+
export type * from "./generated/ArtifactExportResponse.js";
|
|
12
|
+
export type * from "./generated/ExportEnvironment.js";
|
|
13
|
+
export type * from "./generated/ExportMethod.js";
|
|
14
|
+
export type * from "./generated/ExportShell.js";
|
|
15
|
+
export type * from "./generated/ExportedObject.js";
|
|
16
|
+
export type * from "./generated/ExportedShell.js";
|
|
17
|
+
export type * from "./generated/ArtifactListRequest.js";
|
|
18
|
+
export type * from "./generated/ArtifactPage.js";
|
|
19
|
+
export type * from "./generated/HtmlArtifactPublication.js";
|
|
20
|
+
export type * from "./generated/HtmlArtifactAvailability.js";
|
|
9
21
|
export type * from "./generated/CanonicalText.js";
|
|
10
22
|
export type * from "./generated/CommandResponse.js";
|
|
11
23
|
export type * from "./generated/AttachmentKind.js";
|
|
12
24
|
export type * from "./generated/AttachmentRef.js";
|
|
13
25
|
export type * from "./generated/AttachmentSource.js";
|
|
14
26
|
export type * from "./generated/AttachmentUnavailableReason.js";
|
|
27
|
+
export type * from "./generated/AdmissionCourse.js";
|
|
15
28
|
export type * from "./generated/BackfillState.js";
|
|
16
29
|
export type * from "./generated/BoostRequest.js";
|
|
17
30
|
export type * from "./generated/BoostResponse.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Shared wire version; checked against Rust in the wire tests.
|
|
2
|
-
export const PROTOCOL_VERSION =
|
|
2
|
+
export const PROTOCOL_VERSION = 30;
|