@vibefield/rosetta-protocol 0.1.1 → 0.1.3
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 +27 -2
- package/dist/client.js +40 -6
- package/dist/generated/AdmissionCourse.d.ts +6 -0
- package/dist/generated/AdmissionCourse.js +2 -0
- package/dist/generated/ApiError.d.ts +2 -0
- package/dist/generated/ArtifactEntry.d.ts +15 -0
- package/dist/generated/ArtifactEntry.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/DiscoveryRow.d.ts +8 -0
- package/dist/generated/ErrorCode.d.ts +1 -1
- package/dist/generated/HtmlArtifactAvailability.d.ts +1 -0
- package/dist/generated/HtmlArtifactAvailability.js +2 -0
- package/dist/generated/HtmlArtifactPublication.d.ts +23 -0
- package/dist/generated/HtmlArtifactPublication.js +2 -0
- package/dist/generated/IngestPhase.d.ts +5 -4
- package/dist/generated/IngestProgress.d.ts +17 -1
- package/dist/generated/Ingestion.d.ts +27 -0
- package/dist/generated/Ingestion.js +1 -0
- package/dist/generated/IngestionAction.d.ts +1 -0
- package/dist/generated/IngestionAction.js +2 -0
- package/dist/generated/IngestionConflict.d.ts +4 -0
- package/dist/generated/IngestionConflict.js +2 -0
- package/dist/generated/IngestionControlRequest.d.ts +3 -0
- package/dist/generated/IngestionControlRequest.js +2 -0
- package/dist/generated/IngestionPhase.d.ts +1 -0
- package/dist/generated/IngestionPhase.js +2 -0
- package/dist/generated/IngestionState.d.ts +1 -0
- package/dist/generated/IngestionState.js +2 -0
- package/dist/generated/RuntimeBackfill.d.ts +8 -0
- package/dist/generated/TimelineMetaArtifactSource.d.ts +8 -0
- package/dist/index.d.ts +12 -0
- package/dist/protocol-version.mjs +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
export { PROTOCOL_VERSION } from "./protocol-version.mjs";
|
|
2
2
|
import type { TimelineEntryResponse } from "./generated/TimelineEntryResponse.js";
|
|
3
|
+
import type { Ingestion } from "./generated/Ingestion.js";
|
|
4
|
+
import type { IngestionConflict } from "./generated/IngestionConflict.js";
|
|
5
|
+
import type { IngestionControlRequest } from "./generated/IngestionControlRequest.js";
|
|
3
6
|
import type { ApiError } from "./generated/ApiError.js";
|
|
4
7
|
import type { ImageVariant } from "./generated/ImageVariant.js";
|
|
5
8
|
import type { AssetRef } from "./generated/AssetRef.js";
|
|
9
|
+
import type { ArtifactListRequest } from "./generated/ArtifactListRequest.js";
|
|
10
|
+
import type { ArtifactPage } from "./generated/ArtifactPage.js";
|
|
6
11
|
import type { BoostResponse } from "./generated/BoostResponse.js";
|
|
7
12
|
import type { ContributionResponse } from "./generated/ContributionResponse.js";
|
|
8
13
|
import type { CommandResponse } from "./generated/CommandResponse.js";
|
|
@@ -69,10 +74,16 @@ export interface RosettaClientOptions {
|
|
|
69
74
|
/** Presented on every request and upgrade; see {@link RosettaCredential}. */
|
|
70
75
|
credential?: RosettaCredential;
|
|
71
76
|
}
|
|
77
|
+
/** Pin these values for the lifetime of one user intent, including retries. */
|
|
78
|
+
export interface IngestionCommand extends IngestionControlRequest {
|
|
79
|
+
readonly indexId: string;
|
|
80
|
+
readonly idempotencyKey: string;
|
|
81
|
+
}
|
|
72
82
|
export declare class ApiRequestError extends Error {
|
|
73
83
|
readonly status: number;
|
|
74
84
|
readonly code: ErrorCode | null;
|
|
75
|
-
|
|
85
|
+
readonly details: IngestionConflict | null;
|
|
86
|
+
constructor(status: number, code: ErrorCode | null, message: string, details?: IngestionConflict | null);
|
|
76
87
|
}
|
|
77
88
|
/** The bound watermark no longer matches: refetch from the head. */
|
|
78
89
|
export declare class CursorExpiredError extends ApiRequestError {
|
|
@@ -131,6 +142,13 @@ export declare class RosettaClient {
|
|
|
131
142
|
private response;
|
|
132
143
|
private request;
|
|
133
144
|
status(signal?: AbortSignal): Promise<StatusResponse>;
|
|
145
|
+
/** Finite cold runs; live-watcher controls are a separate capability. */
|
|
146
|
+
readonly ingestions: {
|
|
147
|
+
get: (id: string, signal?: AbortSignal) => Promise<Ingestion>;
|
|
148
|
+
pause: (id: string, command: IngestionCommand, signal?: AbortSignal) => Promise<Ingestion>;
|
|
149
|
+
resume: (id: string, command: IngestionCommand, signal?: AbortSignal) => Promise<Ingestion>;
|
|
150
|
+
};
|
|
151
|
+
private ingestionCommand;
|
|
134
152
|
/** The roll call's census — what discovery found, content-free. */
|
|
135
153
|
discoveries(signal?: AbortSignal): Promise<DiscoveriesResponse>;
|
|
136
154
|
/** Consent: enroll the chosen agent kinds. Grantable exactly once, while
|
|
@@ -174,7 +192,11 @@ export declare class RosettaClient {
|
|
|
174
192
|
* supplies identities and an index, never a path; the daemon resolves the
|
|
175
193
|
* exact path already stored on that timeline row. */
|
|
176
194
|
/** Direct image URLs let the browser share compressed and decoded resources.
|
|
177
|
-
* Recipes are finite, versioned and enforced by the daemon.
|
|
195
|
+
* Recipes are finite, versioned and enforced by the daemon. Every address is
|
|
196
|
+
* a WebP the daemon encoded: a legacy bundle names its own members, and a
|
|
197
|
+
* recorded original (any image member without a WebP bundle) is drawn only
|
|
198
|
+
* through `?image=<variant>&v=1`, `full` included. Its plain URL returns the
|
|
199
|
+
* recorded bytes for opening or saving, never for display. */
|
|
178
200
|
imageAssetUrl(asset: AssetRef, variant: ImageVariant): string;
|
|
179
201
|
imageFileTargetUrl(sessionId: string, timelineId: string, targetIndex: number, variant: ImageVariant): string;
|
|
180
202
|
readFileTarget(sessionId: string, timelineId: string, targetIndex: number, signal?: AbortSignal): Promise<Uint8Array>;
|
|
@@ -185,6 +207,9 @@ export declare class RosettaClient {
|
|
|
185
207
|
readAsset(asset: AssetRef, signal?: AbortSignal): Promise<Uint8Array>;
|
|
186
208
|
/** Read one exact plan document selected from timeline_meta. */
|
|
187
209
|
readPlan(sessionId: string, source: TimelineMetaPlanSource, signal?: AbortSignal): Promise<Uint8Array>;
|
|
210
|
+
artifacts(request: ArtifactListRequest, signal?: AbortSignal): Promise<ArtifactPage>;
|
|
211
|
+
/** Exact captured bytes, authorized through the publication's session. */
|
|
212
|
+
readArtifact(sessionId: string, publicationId: string, signal?: AbortSignal): Promise<Uint8Array>;
|
|
188
213
|
search(request: SearchRequest, signal?: AbortSignal): Promise<SearchResponse>;
|
|
189
214
|
heatmap(projectId: string, options?: {
|
|
190
215
|
sinceMs?: number;
|
package/dist/client.js
CHANGED
|
@@ -44,11 +44,13 @@ export function webSocketProtocols(credential) {
|
|
|
44
44
|
export class ApiRequestError extends Error {
|
|
45
45
|
status;
|
|
46
46
|
code;
|
|
47
|
-
|
|
47
|
+
details;
|
|
48
|
+
constructor(status, code, message, details = null) {
|
|
48
49
|
super(message);
|
|
49
50
|
this.name = "ApiRequestError";
|
|
50
51
|
this.status = status;
|
|
51
52
|
this.code = code;
|
|
53
|
+
this.details = details;
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
/** The bound watermark no longer matches: refetch from the head. */
|
|
@@ -175,11 +177,13 @@ export class RosettaClient {
|
|
|
175
177
|
}
|
|
176
178
|
if (!response.ok) {
|
|
177
179
|
let code = null;
|
|
180
|
+
let details = null;
|
|
178
181
|
let message = `${response.status} on ${path}`;
|
|
179
182
|
try {
|
|
180
183
|
const body = (await response.json());
|
|
181
184
|
if (body.error) {
|
|
182
185
|
code = body.error.code;
|
|
186
|
+
details = body.error.details ?? null;
|
|
183
187
|
message = body.error.message;
|
|
184
188
|
}
|
|
185
189
|
}
|
|
@@ -189,7 +193,7 @@ export class RosettaClient {
|
|
|
189
193
|
if (code === "cursor_expired") {
|
|
190
194
|
throw new CursorExpiredError(message);
|
|
191
195
|
}
|
|
192
|
-
throw new ApiRequestError(response.status, code, message);
|
|
196
|
+
throw new ApiRequestError(response.status, code, message, details);
|
|
193
197
|
}
|
|
194
198
|
return response;
|
|
195
199
|
}
|
|
@@ -199,6 +203,20 @@ export class RosettaClient {
|
|
|
199
203
|
status(signal) {
|
|
200
204
|
return this.request("/api/status", withSignal(signal));
|
|
201
205
|
}
|
|
206
|
+
/** Finite cold runs; live-watcher controls are a separate capability. */
|
|
207
|
+
ingestions = {
|
|
208
|
+
get: (id, signal) => this.request(`/api/ingestions/${encodeURIComponent(id)}`, withSignal(signal)),
|
|
209
|
+
pause: (id, command, signal) => this.ingestionCommand(id, "pause", command, signal),
|
|
210
|
+
resume: (id, command, signal) => this.ingestionCommand(id, "resume", command, signal),
|
|
211
|
+
};
|
|
212
|
+
ingestionCommand(id, action, command, signal) {
|
|
213
|
+
return this.request(`/api/ingestions/${encodeURIComponent(id)}/${action}`, {
|
|
214
|
+
method: "POST", ...withSignal(signal),
|
|
215
|
+
headers: { "content-type": "application/json", "x-rosetta-index-id": command.indexId,
|
|
216
|
+
"idempotency-key": command.idempotencyKey },
|
|
217
|
+
body: JSON.stringify({ expected_revision: command.expected_revision }),
|
|
218
|
+
});
|
|
219
|
+
}
|
|
202
220
|
/** The roll call's census — what discovery found, content-free. */
|
|
203
221
|
discoveries(signal) {
|
|
204
222
|
return this.request("/api/discoveries", withSignal(signal));
|
|
@@ -273,16 +291,23 @@ export class RosettaClient {
|
|
|
273
291
|
* supplies identities and an index, never a path; the daemon resolves the
|
|
274
292
|
* exact path already stored on that timeline row. */
|
|
275
293
|
/** Direct image URLs let the browser share compressed and decoded resources.
|
|
276
|
-
* 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. */
|
|
277
299
|
imageAssetUrl(asset, variant) {
|
|
278
300
|
const base = new URL(`${this.baseUrl}/`);
|
|
279
|
-
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;
|
|
280
305
|
const url = new URL((rendition ?? asset).url, base);
|
|
281
306
|
if (url.origin !== base.origin || !["http:", "https:"].includes(url.protocol)) {
|
|
282
307
|
throw new Error("the stored image has an unsupported address");
|
|
283
308
|
}
|
|
284
|
-
//
|
|
285
|
-
// 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.
|
|
286
311
|
if (!rendition) {
|
|
287
312
|
url.searchParams.set("image", variant);
|
|
288
313
|
url.searchParams.set("v", "1");
|
|
@@ -325,6 +350,15 @@ export class RosettaClient {
|
|
|
325
350
|
const response = await this.response(path, withSignal(signal));
|
|
326
351
|
return new Uint8Array(await response.arrayBuffer());
|
|
327
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
|
+
// @atlas step search-query.client
|
|
328
362
|
search(request, signal) {
|
|
329
363
|
return this.request(`/api/search${queryString({
|
|
330
364
|
q: request.q,
|
|
@@ -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,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 {};
|
|
@@ -13,6 +13,14 @@ export type DiscoveryRow = {
|
|
|
13
13
|
*/
|
|
14
14
|
installed: boolean;
|
|
15
15
|
files: number;
|
|
16
|
+
/**
|
|
17
|
+
* Content-free session estimate: one per authoritative transcript file,
|
|
18
|
+
* including child sessions. May differ from the admitted session count.
|
|
19
|
+
* Null for layouts without a file-based estimate or a truncated census;
|
|
20
|
+
* zero when a complete supported census finds no transcripts. Older
|
|
21
|
+
* daemons omit this field; consumers must treat absence as unknown too.
|
|
22
|
+
*/
|
|
23
|
+
sessions?: number | null;
|
|
16
24
|
bytes: number;
|
|
17
25
|
newest_modified_ms: number;
|
|
18
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ErrorCode = "incompatible_protocol" | "not_found" | "bad_request" | "not_ready" | "cursor_expired" | "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" | "internal";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type HtmlArtifactAvailability = "captured" | "not_captured" | "missing" | "too_large" | "unsupported" | "changed_during_read";
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Where the daemon's ingest is in its life. `AwaitingConsent` means the
|
|
3
3
|
* census is on the board and nothing has been read — the USER decides
|
|
4
|
-
* which runtimes enroll. `MetadataReady` is the
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* which runtimes enroll. `MetadataReady` is the audit phase after every
|
|
5
|
+
* bounded skim has committed, before complete-record streaming begins.
|
|
6
|
+
* Parallel cold starts may already be streaming at that boundary; use
|
|
7
|
+
* [`IngestProgress::metadata_ready_at`] to observe it in any phase. `Live`
|
|
8
|
+
* means the watch loop owns the store and the cold backfill is history.
|
|
8
9
|
*/
|
|
9
10
|
export type IngestPhase = "discovering" | "awaiting_consent" | "backfilling" | "metadata_ready" | "restoring" | "finalizing" | "publishing" | "live";
|
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import type { IngestPhase } from "./IngestPhase.js";
|
|
2
|
+
import type { Ingestion } from "./Ingestion.js";
|
|
2
3
|
import type { ProjectBackfill } from "./ProjectBackfill.js";
|
|
3
4
|
import type { RuntimeBackfill } from "./RuntimeBackfill.js";
|
|
4
5
|
/**
|
|
5
|
-
* The ingest block on [`DaemonStatus`]: phase
|
|
6
|
+
* The ingest block on [`DaemonStatus`]: phase, first-pass boundary, and meters.
|
|
6
7
|
*/
|
|
7
8
|
export type IngestProgress = {
|
|
8
9
|
phase: IngestPhase;
|
|
10
|
+
/**
|
|
11
|
+
* Cold-run controls and execution state, independent of work phase.
|
|
12
|
+
* Absent on older daemons, static readers, and metadata-audit mode.
|
|
13
|
+
*/
|
|
14
|
+
run?: Ingestion | null;
|
|
15
|
+
/**
|
|
16
|
+
* Unix milliseconds when this process finished publishing the first
|
|
17
|
+
* bounded metadata pass for all active runtimes. Sessions and projects
|
|
18
|
+
* can be listed; transcript, aggregate, and search readiness are separate.
|
|
19
|
+
* Sticky through later phases and live work, even when streaming began
|
|
20
|
+
* before the last skim. A restart establishes a new stamp after its own
|
|
21
|
+
* metadata pass, including on warm starts. Null until that boundary;
|
|
22
|
+
* older daemons omit the field, which means the boundary is unknown.
|
|
23
|
+
*/
|
|
24
|
+
metadata_ready_at?: number | null;
|
|
9
25
|
/**
|
|
10
26
|
* Installed runtimes in serve order.
|
|
11
27
|
*/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { IngestionAction } from "./IngestionAction.js";
|
|
2
|
+
import type { IngestionPhase } from "./IngestionPhase.js";
|
|
3
|
+
import type { IngestionState } from "./IngestionState.js";
|
|
4
|
+
/**
|
|
5
|
+
* One auto-started cold run. The same resource is returned by the control
|
|
6
|
+
* routes and `daemon.ingest.run`. Ordinary progress stays in that existing
|
|
7
|
+
* ingest block; it is not persisted in the control receipt.
|
|
8
|
+
*/
|
|
9
|
+
export type Ingestion = {
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Stable logical-index identity; pin it when creating a command.
|
|
13
|
+
*/
|
|
14
|
+
index_id: string;
|
|
15
|
+
revision: number;
|
|
16
|
+
state: IngestionState;
|
|
17
|
+
phase: IngestionPhase | null;
|
|
18
|
+
created_at: number;
|
|
19
|
+
updated_at: number;
|
|
20
|
+
/**
|
|
21
|
+
* Changes whenever recovery resets the RAM progress baseline.
|
|
22
|
+
*/
|
|
23
|
+
progress_epoch: string;
|
|
24
|
+
runtime_ids: Array<string>;
|
|
25
|
+
allowed_actions: Array<IngestionAction>;
|
|
26
|
+
error: string | null;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IngestionAction = "pause" | "resume";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IngestionPhase = "discovering" | "restoring" | "capturing" | "finalizing" | "publishing";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IngestionState = "running" | "pausing" | "paused" | "succeeded" | "failed";
|
|
@@ -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
|
};
|
|
@@ -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
|
@@ -1,11 +1,23 @@
|
|
|
1
|
+
export type * from "./generated/Ingestion.js";
|
|
2
|
+
export type * from "./generated/IngestionState.js";
|
|
3
|
+
export type * from "./generated/IngestionPhase.js";
|
|
4
|
+
export type * from "./generated/IngestionAction.js";
|
|
5
|
+
export type * from "./generated/IngestionControlRequest.js";
|
|
6
|
+
export type * from "./generated/IngestionConflict.js";
|
|
1
7
|
export type * from "./generated/ApiError.js";
|
|
2
8
|
export type * from "./generated/AssetRef.js";
|
|
9
|
+
export type * from "./generated/ArtifactEntry.js";
|
|
10
|
+
export type * from "./generated/ArtifactListRequest.js";
|
|
11
|
+
export type * from "./generated/ArtifactPage.js";
|
|
12
|
+
export type * from "./generated/HtmlArtifactPublication.js";
|
|
13
|
+
export type * from "./generated/HtmlArtifactAvailability.js";
|
|
3
14
|
export type * from "./generated/CanonicalText.js";
|
|
4
15
|
export type * from "./generated/CommandResponse.js";
|
|
5
16
|
export type * from "./generated/AttachmentKind.js";
|
|
6
17
|
export type * from "./generated/AttachmentRef.js";
|
|
7
18
|
export type * from "./generated/AttachmentSource.js";
|
|
8
19
|
export type * from "./generated/AttachmentUnavailableReason.js";
|
|
20
|
+
export type * from "./generated/AdmissionCourse.js";
|
|
9
21
|
export type * from "./generated/BackfillState.js";
|
|
10
22
|
export type * from "./generated/BoostRequest.js";
|
|
11
23
|
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 = 29;
|