@neta-art/cohub 12.5.0 → 13.0.0
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/README.md +35 -13
- package/dist/board/editor/editor.d.ts +7 -5
- package/dist/board/editor/index.js +1 -1
- package/dist/board/editor/interaction.js +1 -1
- package/dist/board/export/index.d.ts +1 -6
- package/dist/board/export/index.js +16 -10
- package/dist/board/export/node/index.d.ts +2 -7
- package/dist/board/export/node/index.js +2 -5
- package/dist/board/export/scene.d.ts +3 -7
- package/dist/board/export/scene.js +22 -26
- package/dist/board/model/asset-key.d.ts +5 -2
- package/dist/board/model/asset-key.js +13 -5
- package/dist/board/model/index.d.ts +5 -4
- package/dist/board/model/index.js +4 -3
- package/dist/board/model/media-playback.d.ts +4 -6
- package/dist/board/model/media-playback.js +4 -4
- package/dist/board/model/read.d.ts +7 -0
- package/dist/board/model/read.js +18 -0
- package/dist/board/model/themes.d.ts +50 -0
- package/dist/board/model/themes.js +44 -6
- package/dist/board/render/backdrop-layer.d.ts +21 -0
- package/dist/board/render/backdrop-layer.js +227 -0
- package/dist/board/render/backdrop.d.ts +45 -0
- package/dist/board/render/backdrop.js +62 -0
- package/dist/board/render/index.d.ts +3 -2
- package/dist/board/render/index.js +7 -6
- package/dist/board/render/renderers/arrow-card-renderer.js +1 -1
- package/dist/board/render/renderers/audio-card-renderer.js +2 -2
- package/dist/board/render/renderers/file-card-renderer.js +1 -1
- package/dist/board/render/renderers/frame-card-renderer.js +1 -1
- package/dist/board/render/renderers/model-card-renderer.js +1 -1
- package/dist/board/render/renderers/shape-card-renderer.js +1 -1
- package/dist/board/render/renderers/task-card-renderer.js +2 -2
- package/dist/board/render/renderers/text-card-renderer.js +2 -2
- package/dist/board/render/renderers/video-card-renderer.js +1 -1
- package/dist/board/render/theme.d.ts +2 -0
- package/dist/board/render/theme.js +4 -2
- package/dist/board/replica/index.d.ts +3 -2
- package/dist/board/replica/index.js +34 -24
- package/dist/board/replica/indexeddb.js +14 -85
- package/dist/board/stage/assets.d.ts +4 -3
- package/dist/board/stage/assets.js +186 -83
- package/dist/board/stage/backdrop.d.ts +25 -0
- package/dist/board/stage/backdrop.js +104 -0
- package/dist/board/stage/index.d.ts +2 -1
- package/dist/board/stage/scene.js +12 -5
- package/dist/board/stage/stage.d.ts +7 -2
- package/dist/board/stage/stage.js +44 -24
- package/dist/board/stage/texture-pool.d.ts +1 -1
- package/dist/board/stage/texture-pool.js +4 -5
- package/dist/chunks/app-realtime.js +1 -1
- package/dist/chunks/environment.d.ts +34 -21
- package/dist/chunks/environment.js +4 -3
- package/dist/chunks/http-error.js +28 -5
- package/dist/chunks/http.d.ts +87 -18
- package/dist/chunks/http.js +1855 -59
- package/dist/chunks/websocket.d.ts +9 -1
- package/dist/http.d.ts +2 -2
- package/dist/http.js +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/index.js +6 -1080
- package/dist/indexeddb.js +79 -0
- package/dist/media.d.ts +18 -32
- package/dist/media.js +81 -67
- package/dist/protocol/dist/board-model.d.ts +33 -26
- package/dist/protocol/dist/board-model.js +21 -18
- package/dist/protocol/dist/board.d.ts +21 -1
- package/dist/protocol/dist/board.js +5 -1
- package/dist/protocol/dist/core/media.d.ts +32 -9
- package/dist/protocol/dist/core/media.js +203 -48
- package/dist/protocol/dist/index.d.ts +3 -3
- package/dist/voice-input.js +1 -1
- package/dist/websocket.js +37 -5
- package/package.json +1 -1
- package/dist/board/render/board-background.d.ts +0 -18
- package/dist/board/render/board-background.js +0 -104
package/dist/chunks/http.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { $a as SpacePublicEndpoints, $i as RealtimePatchOperation, $n as SpaceCommerceProduct, $t as PromptTemplateCatalogResponse,
|
|
1
|
+
import { $a as SpacePublicEndpoints, $c as DisplayCapture, $i as RealtimePatchOperation, $n as SpaceCommerceProduct, $t as PromptTemplateCatalogResponse, An as SessionTurnSignedUrlsResponse, Ba as DesktopCommandRecord, Bo as RuntimeSessionRecoveryStatus, Br as SpaceListOptions, Co as MessageToolCallsFile, Dn as SessionRecord, Do as StoredIntermediateMessage, En as SessionMessagesResponse, Eo as SpaceTurnsResponse, Er as SpaceFsTreeResponse, Et as GlobalSearchType, Fn as SkillCatalogResponse, Ft as LabelItemsResponse, Gc as BillingPayload, Gr as SpacePendingDiffFileResponse, Gs as RuntimeArchivePage, Gt as PaletteOverviewResponse, Hi as GenerationContentBlock, Ho as RuntimeStopConfirmation, Hr as SpaceMember, Ht as MeResponse, Ir as SpaceInvitationListResponse, Jc as AppAuthorizationResult, Ji as BoardPlaybackChangedEvent$1, Jn as SpaceCommerceBenefit, Jt as PatchResourceLabelsInput, Ki as BoardAwarenessUpdatedEvent$1, Kr as SpacePendingDiffSummary, La as DesktopCommand, Lt as LabelListItem, Mc as BoardDelta, Mn as SessionTurnWindowResponse, Nn as SessionTurnsPaginatedResponse, Nr as SpaceFsUploadResponse, O as BillingCheckoutResult, On as SessionTurnIndexResponse, Ot as InvitationDetail, Pc as BoardDocument, Pr as SpaceFsWriteFileInput, Pt as LabelAssignmentRecord, Q as Channel, Qa as NavigationLaunch, Qn as SpaceCommerceOrder, Rc as BoardPatch, Rn as SpaceAccessPolicy, Sc as BoardReadResult, Sl as SandboxSetupInfo, T as BillingCatalogProduct, Ta as AppVersionSource, Ti as ChannelHealth, Tn as SessionMessagesPaginatedResponse, To as SessionTurnRecord, Tr as SpaceFsTreePage, Ui as GenerationModelDeclaration, Us as HarnessArchiveIndex, Ut as ModelCatalogEntry, Va as DesktopCommandStatus, Vn as SpaceActivityResponse, Vo as RuntimeStatus, Vr as SpaceListPage, Wr as SpaceModListItem, Xr as SpaceRecord, Xt as Permission, Yn as SpaceCommerceBuyerProfile, Yr as SpacePublicProfile, Yt as PatchResourceLabelsResponse, Za as NavigationCall, Zr as SpaceRole, _ as AcceptInvitationResponse, _c as BoardHistoryPage, _i as UserRulesResponse, _l as RtcIceServers, _o as SessionForkRecord, _t as CronJobRecord, aa as RealtimeRoomMember, ac as SpaceCompletionResult, al as DisplaySession, ao as SpaceFsCopyResult, ar as SpaceConfigUpdateResponse, bc as BoardPlaybackSnapshot, br as SpaceFsMoveInput, cc as Usage, ci as TaskRunDetailResponse, cl as DisplayTreeParams, cn as ReferenceAggregateResponse, cr as SpaceEnvInput, ct as ClaimReferralResponse, dn as ReferenceQueryResponse, dt as CreateSpaceInput, el as DisplayCaptureParams, en as PublicReferral, eo as SpaceFsChangedPayload, er as SpaceCommerceProductBenefitBinding, fc as BoardApplyInput, fi as UserActivityQuery, fl as AppRtcDelivery, fn as ReferenceQueryableType, fo as BoardAwarenessUpdate, fr as SpaceFsCreateUploadInput, gc as BoardHistoryInput, gi as UserProfile, go as SessionFilesResponse, hc as BoardCreateInput, hi as UserActivityResponse, hl as AppRtcQuality, hn as ReferralDashboard, ht as CreateSpaceSessionInput, ia as RealtimeRoomHistoryEvent, il as DisplayList, io as SpaceFsCopyResponse, ir as SpaceConfigResponse, jn as SessionTurnStreamSnapshotResponse, kl as RequestSource, kn as SessionTurnResponse, ko as TurnIntermediateMessagesFile, la as SessionTurnPatchEvent, lc as ContentBlock, li as TaskRunRecord, ln as ReferenceDirection, lr as SpaceFsCompleteUploadInput, lt as CreateInvitationInput, ma as AppDomainRecord, mt as CreateSpacePromptResponse, ni as SpaceTurnAuthorFilter, nl as DisplayInfo, nn as PublicUserPageResponse, no as SpaceFsCopyInput, oc as SpaceCompletionStreamEvent, oi as SpaceUsageResponse, or as SpaceCreateResponse, ot as CheckpointDiffSummary, pa as AppDomainListResponse, pc as BoardApplyResult, pl as AppRtcMediaKind, po as MessageRecord, pr as SpaceFsCreateUploadResponse, pt as CreateSpacePromptInput, qc as AppAuthorizationRequest$1, qi as BoardChangedEvent$1, qn as SpaceCheckpointDetailResponse, qr as SpacePresenceSnapshot, qs as RuntimeArchiveUpload, r as CohubEnvironment, rc as CreateSpaceCompletionInput, rl as DisplayInputEvent, rn as PublicUserProfile, rr as SpaceConfigInput, sc as MediaFacts, sn as ReferenceAggregateGroupBy, so as SpaceFsCopyStats, sr as SpaceDefaultResponse, st as CheckpointRecord, ta as RealtimeRoomDescriptor, ti as SpaceSessionsResponse, tt as CheckpointDiffFileResponse, ul as DisplayVirtualStart, un as ReferenceKind, ur as SpaceFsCompleteUploadResponse, ut as CreateInvitationResponse, va as AppArtifactDescriptor, vr as SpaceFsFileResponse, vt as CronJobUpdatePatch, wa as AppContentKind, wi as ChannelConfig, wn as SessionMessageResponse, wr as SpaceFsReadFilesResponse, wt as GlobalSearchResponse, xc as BoardReadInput, xi as UserSessionsResponse, xo as SessionStats, xr as SpaceFsPreparingFile, y as BatchUserProfilesResponse, yi as UserSessionSourceKey, yr as SpaceFsListOptions, yt as CursorPageInfo, za as DesktopCommandError, zt as LabelResourceType } from "./environment.js";
|
|
2
2
|
import { a as WebsocketClientOptions, r as WebsocketClient, s as WebsocketEventPayload } from "./websocket.js";
|
|
3
3
|
import { a as VoiceInputCreateOptions } from "./voice-input.js";
|
|
4
|
+
import { z } from "zod";
|
|
4
5
|
//#region ../protocol/dist/space-wallet.d.ts
|
|
5
6
|
type SpaceWalletSummary = {
|
|
6
7
|
spaceId: string;
|
|
@@ -248,6 +249,7 @@ type PublicFileUploadEntryInput = {
|
|
|
248
249
|
relativePath: string;
|
|
249
250
|
size: number;
|
|
250
251
|
mimeType?: string | null;
|
|
252
|
+
media?: MediaFacts;
|
|
251
253
|
};
|
|
252
254
|
type PublicFileCreateUploadInput = {
|
|
253
255
|
entries: PublicFileUploadEntryInput[];
|
|
@@ -873,6 +875,8 @@ type RequestInitWithFetch = RequestInit & {
|
|
|
873
875
|
fetch?: Fetch;
|
|
874
876
|
/** When true, 401 responses throw without invoking onUnauthorized (e.g. session bootstrap). */
|
|
875
877
|
skipUnauthorizedHandler?: boolean;
|
|
878
|
+
/** Fixed credential; 401 skips session refresh and unauthorized callbacks. */
|
|
879
|
+
accessToken?: string | null;
|
|
876
880
|
};
|
|
877
881
|
type RawHttpResponse = {
|
|
878
882
|
response: Response;
|
|
@@ -956,8 +960,11 @@ declare class HttpTransport {
|
|
|
956
960
|
private readonly getAuthSessionVersion?;
|
|
957
961
|
private readonly onUnauthorized?;
|
|
958
962
|
private readonly requestSource?;
|
|
963
|
+
private scopedToken;
|
|
959
964
|
private refreshInFlight;
|
|
960
965
|
constructor(options?: CohubClientOptions);
|
|
966
|
+
credential(): Promise<string | null>;
|
|
967
|
+
cacheScope(): Promise<string | null>;
|
|
961
968
|
private resolveRequestSource;
|
|
962
969
|
private applyRequestSourceHeaders;
|
|
963
970
|
private readAuthSessionVersion;
|
|
@@ -1229,6 +1236,23 @@ type FileListOptions = SpaceFsListOptions & {
|
|
|
1229
1236
|
signal?: AbortSignal;
|
|
1230
1237
|
};
|
|
1231
1238
|
//#endregion
|
|
1239
|
+
//#region src/media.d.ts
|
|
1240
|
+
type ResolvedFile = {
|
|
1241
|
+
url: string;
|
|
1242
|
+
media?: MediaFacts;
|
|
1243
|
+
};
|
|
1244
|
+
type ResolveFileOptions = {
|
|
1245
|
+
/** `playback` needs a streamable URL; `preview` (the default) may take an inline one. */
|
|
1246
|
+
purpose?: "preview" | "playback";
|
|
1247
|
+
fresh?: boolean;
|
|
1248
|
+
};
|
|
1249
|
+
//#endregion
|
|
1250
|
+
//#region src/board/model/media-playback.d.ts
|
|
1251
|
+
type BoardAssetSource = {
|
|
1252
|
+
resolveFile: (path: string, options?: ResolveFileOptions) => Promise<ResolvedFile | null>;
|
|
1253
|
+
subscribe?: (listener: (path: string) => void) => () => void;
|
|
1254
|
+
};
|
|
1255
|
+
//#endregion
|
|
1232
1256
|
//#region src/board/replica/index.d.ts
|
|
1233
1257
|
type BoardChangedPayload = {
|
|
1234
1258
|
mutationId: string;
|
|
@@ -1237,7 +1261,8 @@ type BoardChangedPayload = {
|
|
|
1237
1261
|
after?: BoardDelta;
|
|
1238
1262
|
};
|
|
1239
1263
|
type BoardRemote = {
|
|
1240
|
-
|
|
1264
|
+
/** `since` asks only for the changes after that version; remotes may return the full Board. */
|
|
1265
|
+
get(read?: Pick<BoardReadInput, "since">): Promise<BoardReadResult>;
|
|
1241
1266
|
apply(patch: BoardPatch, options: {
|
|
1242
1267
|
mutationId: string;
|
|
1243
1268
|
clientId?: string;
|
|
@@ -1267,6 +1292,10 @@ type BoardSubscriptionHandlers = {
|
|
|
1267
1292
|
event?: (event: BoardChangedEvent | BoardAwarenessUpdatedEvent | BoardPlaybackChangedEvent) => void;
|
|
1268
1293
|
resync?: () => void;
|
|
1269
1294
|
};
|
|
1295
|
+
type BoardSyncResult = Pick<BoardReadResult, "id" | "title" | "version" | "updatedAt" | "playback"> & {
|
|
1296
|
+
document: BoardDocument;
|
|
1297
|
+
changed: boolean;
|
|
1298
|
+
};
|
|
1270
1299
|
type BoardClientOptions = {
|
|
1271
1300
|
http: HttpTransport;
|
|
1272
1301
|
websocket: WebsocketClient | null;
|
|
@@ -1293,6 +1322,11 @@ declare class BoardClient implements BoardRemote {
|
|
|
1293
1322
|
private get path();
|
|
1294
1323
|
/** Read the Board, or part of it. Every value is complete, defaults included. */
|
|
1295
1324
|
get(input?: BoardReadInput, customFetch?: Fetch): Promise<BoardReadResult>;
|
|
1325
|
+
/** Bring a cached document up to date in one request that carries only what changed since its version. */
|
|
1326
|
+
sync(cached?: {
|
|
1327
|
+
version: number;
|
|
1328
|
+
document: BoardDocument;
|
|
1329
|
+
} | null, customFetch?: Fetch): Promise<BoardSyncResult>;
|
|
1296
1330
|
/** Merge a patch into the Board: fields merge, `null` deletes. */
|
|
1297
1331
|
apply(patch: BoardPatch, options?: Omit<BoardApplyInput, "patch">): Promise<BoardApplyResult>;
|
|
1298
1332
|
/** Transactions newest first, each with the before/after state of what it changed. */
|
|
@@ -1318,16 +1352,19 @@ declare class BoardClient implements BoardRemote {
|
|
|
1318
1352
|
on(type: "awareness", handler: (event: BoardAwarenessUpdatedEvent) => void): () => void;
|
|
1319
1353
|
on(type: "playback", handler: (event: BoardPlaybackChangedEvent) => void): () => void;
|
|
1320
1354
|
}
|
|
1321
|
-
type
|
|
1355
|
+
type BoardFiles = {
|
|
1322
1356
|
read(path: string, customFetch?: Fetch): Promise<SpaceFsFileResponse | SpaceFsPreparingFile>;
|
|
1357
|
+
resolve(path: string, options?: ResolveFileOptions): Promise<ResolvedFile | null>;
|
|
1358
|
+
onUrlChange(listener: (path: string) => void): () => void;
|
|
1323
1359
|
};
|
|
1324
1360
|
declare class SpaceBoardsApi {
|
|
1325
1361
|
private readonly http;
|
|
1326
1362
|
private readonly spaceId;
|
|
1327
1363
|
private readonly websocket;
|
|
1328
1364
|
private readonly files;
|
|
1329
|
-
constructor(http: HttpTransport, spaceId: string, websocket: WebsocketClient | null, files:
|
|
1365
|
+
constructor(http: HttpTransport, spaceId: string, websocket: WebsocketClient | null, files: BoardFiles);
|
|
1330
1366
|
byId(boardId: string): BoardClient;
|
|
1367
|
+
assetSource(): BoardAssetSource;
|
|
1331
1368
|
open(target: string, customFetch?: Fetch): Promise<BoardClient>;
|
|
1332
1369
|
resolveId(path: string, customFetch?: Fetch): Promise<string>;
|
|
1333
1370
|
/** Create a `.board` file and its Board, optionally with an initial document. */
|
|
@@ -1724,6 +1761,43 @@ type BuildSpaceInvitePathInput = BuildSpacePathInput & {
|
|
|
1724
1761
|
declare function buildSpacePath(input: BuildSpacePathInput): string;
|
|
1725
1762
|
declare function buildSpaceInvitePath(input: BuildSpaceInvitePathInput): string;
|
|
1726
1763
|
//#endregion
|
|
1764
|
+
//#region src/apis/space-file-reads.d.ts
|
|
1765
|
+
type SpaceFileRead = SpaceFsFileResponse | SpaceFsPreparingFile;
|
|
1766
|
+
declare function createSpaceFileReads(transport: HttpTransport): {
|
|
1767
|
+
read(spaceId: string, path: string, options?: {
|
|
1768
|
+
background?: boolean;
|
|
1769
|
+
signal?: AbortSignal;
|
|
1770
|
+
token?: string | null;
|
|
1771
|
+
}): Promise<SpaceFileRead>;
|
|
1772
|
+
invalidate(spaceId: string, paths: Iterable<string>): void;
|
|
1773
|
+
};
|
|
1774
|
+
type SpaceFileReads = ReturnType<typeof createSpaceFileReads>;
|
|
1775
|
+
//#endregion
|
|
1776
|
+
//#region src/apis/space-file-urls.d.ts
|
|
1777
|
+
type ResolveSpaceFileOptions = ResolveFileOptions & {
|
|
1778
|
+
/** Maximum time to wait while CDN delivery is being prepared. */
|
|
1779
|
+
timeoutMs?: number;
|
|
1780
|
+
signal?: AbortSignal;
|
|
1781
|
+
fetch?: Fetch;
|
|
1782
|
+
};
|
|
1783
|
+
declare function createSpaceFileUrls(options: {
|
|
1784
|
+
reads: SpaceFileReads;
|
|
1785
|
+
credential: () => Promise<string | null>;
|
|
1786
|
+
scope: () => Promise<string | null>;
|
|
1787
|
+
watched: (spaceId: string) => boolean;
|
|
1788
|
+
cache: boolean;
|
|
1789
|
+
now?: () => number;
|
|
1790
|
+
}): {
|
|
1791
|
+
resolve(spaceId: string, path: string, request?: ResolveSpaceFileOptions): Promise<ResolvedFile | null>;
|
|
1792
|
+
applyFsChange(spaceId: string, payload: Pick<SpaceFsChangedPayload, "changes" | "resync">): void;
|
|
1793
|
+
subscribe(listener: (spaceId: string, path: string) => void): () => void;
|
|
1794
|
+
};
|
|
1795
|
+
type SpaceFileUrls = ReturnType<typeof createSpaceFileUrls>;
|
|
1796
|
+
type SpaceFileServices = {
|
|
1797
|
+
reads: SpaceFileReads;
|
|
1798
|
+
urls: SpaceFileUrls;
|
|
1799
|
+
};
|
|
1800
|
+
//#endregion
|
|
1727
1801
|
//#region src/apis/spaces.d.ts
|
|
1728
1802
|
type SessionSubscriptionHandlers = {
|
|
1729
1803
|
patch?: (event: WebsocketEventPayload) => void;
|
|
@@ -1737,7 +1811,7 @@ type SessionSubscriptionHandlers = {
|
|
|
1737
1811
|
event?: (event: WebsocketEventPayload) => void;
|
|
1738
1812
|
};
|
|
1739
1813
|
type SessionEventName = "created" | "updated" | "turn.created" | "turn.patch" | "turn.lifecycle" | "turn.updated" | "turn.finalized" | "turn.error" | "message.persisted";
|
|
1740
|
-
type SpaceEventName = SessionEventName | "fs.changed" | "ports.changed" | "presence.updated" | "
|
|
1814
|
+
type SpaceEventName = SessionEventName | "fs.changed" | "ports.changed" | "presence.updated" | "app.version.published" | "app.domain.updated" | "app.domain.removed" | "task.created" | "task.updated" | "event";
|
|
1741
1815
|
declare class SpacesApi {
|
|
1742
1816
|
private readonly transport;
|
|
1743
1817
|
constructor(transport: HttpTransport);
|
|
@@ -1752,15 +1826,6 @@ declare class SpacesApi {
|
|
|
1752
1826
|
ensureHome(customFetch?: Fetch): Promise<SpaceRecord>;
|
|
1753
1827
|
create(input: CreateSpaceInput, headers?: Record<string, string>): Promise<SpaceCreateResponse>;
|
|
1754
1828
|
}
|
|
1755
|
-
type SpaceFileUrlPurpose = "preview" | "playback";
|
|
1756
|
-
type ResolveSpaceFileUrlOptions = {
|
|
1757
|
-
/** Playback only accepts a streamable URL; previews may fall back to a data URL. */
|
|
1758
|
-
purpose?: SpaceFileUrlPurpose;
|
|
1759
|
-
/** Maximum time to wait while CDN delivery is being prepared. */
|
|
1760
|
-
timeoutMs?: number;
|
|
1761
|
-
signal?: AbortSignal;
|
|
1762
|
-
fetch?: Fetch;
|
|
1763
|
-
};
|
|
1764
1829
|
type OpenSpaceFileOptions = {
|
|
1765
1830
|
timeoutMs?: number;
|
|
1766
1831
|
signal?: AbortSignal;
|
|
@@ -1794,12 +1859,15 @@ declare class SpacePublicFilesApi {
|
|
|
1794
1859
|
declare class SpaceFilesApi {
|
|
1795
1860
|
private readonly transport;
|
|
1796
1861
|
private readonly spaceId;
|
|
1797
|
-
|
|
1862
|
+
private readonly services;
|
|
1863
|
+
constructor(transport: HttpTransport, spaceId: string, services: SpaceFileServices);
|
|
1798
1864
|
list(path?: string, customFetch?: Fetch): Promise<SpaceFsTreeResponse>;
|
|
1799
1865
|
list(path: string, options: FileListOptions): Promise<SpaceFsTreePage>;
|
|
1800
1866
|
read(path: string, customFetch?: Fetch, signal?: AbortSignal): Promise<SpaceFsFileResponse | SpaceFsPreparingFile>;
|
|
1801
1867
|
/** Resolve a browser-ready file URL, waiting for CDN delivery when necessary. */
|
|
1802
|
-
|
|
1868
|
+
resolve(path: string, options?: ResolveSpaceFileOptions): Promise<ResolvedFile | null>;
|
|
1869
|
+
onUrlChange(listener: (path: string) => void): () => void;
|
|
1870
|
+
private resolveThrough;
|
|
1803
1871
|
/** Pending workspace changes vs the space head checkpoint. */
|
|
1804
1872
|
diff(customFetch?: Fetch): Promise<SpacePendingDiffSummary>;
|
|
1805
1873
|
/** Per-file pending workspace diff vs the space head checkpoint. */
|
|
@@ -2397,7 +2465,7 @@ declare class SpaceClient {
|
|
|
2397
2465
|
readonly boards: SpaceBoardsApi;
|
|
2398
2466
|
readonly wallet: SpaceWalletApi;
|
|
2399
2467
|
readonly commerce: SpaceCommerceApi;
|
|
2400
|
-
constructor(id: string, transport: HttpTransport, websocketClient: WebsocketClient | null);
|
|
2468
|
+
constructor(id: string, transport: HttpTransport, websocketClient: WebsocketClient | null, fileServices: SpaceFileServices);
|
|
2401
2469
|
get(customFetch?: Fetch): Promise<SpaceRecord>;
|
|
2402
2470
|
prepareRuntimeArchive(index: HarnessArchiveIndex, options?: {
|
|
2403
2471
|
signal?: AbortSignal;
|
|
@@ -3604,9 +3672,10 @@ declare class CohubHttpClient {
|
|
|
3604
3672
|
/** @deprecated Use `desktop`. */
|
|
3605
3673
|
get ui(): DesktopCommandsApi;
|
|
3606
3674
|
private readonly transport;
|
|
3675
|
+
private readonly fileServices;
|
|
3607
3676
|
constructor(options?: CohubClientOptions);
|
|
3608
3677
|
space(spaceId: string): SpaceClient;
|
|
3609
3678
|
}
|
|
3610
3679
|
declare const createHttpClient: (options?: CohubClientOptions) => CohubHttpClient;
|
|
3611
3680
|
//#endregion
|
|
3612
|
-
export { WorkCommerceEntitlement as $,
|
|
3681
|
+
export { WorkCommerceEntitlement as $, PublicFileUploadEntryInput as $i, GenerationStreamSubscriptionHandlers as $n, HttpTransport as $r, WorkPresentationMeta as $t, AppRtcChannel as A, APP_DEVICES as Ai, SpacePublicFilesApi as An, SearchApi as Ar, AppPublicOwnerRecord as At, AppCommerceApi as B, AppAppearanceToken as Bi, PublicInviteApi as Bn, UploadChatImageAttachmentInput as Br, AppViewStatsResponse as Bt, WorkRoomCreateInput as C, OriginBrokerTransport as Ci, OpenSpaceFileOptions as Cn, BoardSubscriptionHandlers as Cr, AppPresentationMeta as Ct, WorkRoomState as D, createOriginAppResolver as Di, SpaceClient as Dn, SessionAccessApi as Dr, AppPromotionProviderStatus as Dt, WorkRoomPublishResult as E, createAppRuntime as Ei, SpaceChannelBindingRecord as En, ResolvedFile as Er, AppPromotionProvider as Et, AppRtcMessage as F, AppNavigationOpenMessage as Fi, WaitForSpaceFsCopyOptions as Fn, PublicAssetUploadProgress as Fr, AppStatus as Ft, AppCommerceEntitlementsResponse as G, AppRuntimeRect as Gi, GenerationStreamErrorEvent as Gn, ModelsApi as Gr, WorkAuthorizeResponse as Gt, AppCommerceCreditConsumeResponse as H, AppDropResourceType as Hi, buildSpacePath as Hn, UploadPublicAssetInput as Hr, AppVisibility as Ht, AppRtcPeerEvent as I, AppNavigationOpenResponse as Ii, WebSocketConnectionState as In, PublicAssetUploadProtocol as Ir, AppTargetType as It, AppCommercePurchaseResponse as J, appAppearanceVar as Ji, GenerationStreamIntermediateMessage as Jn, ChannelsApi as Jr, WorkCreateInput as Jt, AppCommerceOrder as K, AppWindowState as Ki, GenerationStreamEvent as Kn, GenerationsApi as Kr, WorkContent as Kt, AppRtcRemoteTrack as L, AppNavigationTarget as Li, ResolveSpaceFileOptions as Ln, PublicAssetsApi as Lr, AppUpdateInput as Lt, AppRtcError as M, AppDevicesStatus as Mi, SpaceTurnListOptions as Mn, CreatePublicAssetUploadResponse as Mr, AppRecord as Mt, AppRtcErrorCode as N, AppNavigationCall as Ni, SpaceWebhooksApi as Nn, PublicAssetMimeType as Nr, AppResolveResponse as Nt, AppRoomRtc as O, createSlugAppIdResolver as Oi, SpaceEventName as On, ReferenceResourceSelector as Or, AppPromotionRecord as Ot, AppRtcLocalTrack as P, AppNavigationLaunch as Pi, SpacesApi as Pn, PublicAssetPurpose as Pr, AppSessionResponse as Pt, WorkCommerceCreditConsumeStatus as Q, PublicFileListResponse as Qi, GenerationStreamSubscribeOptions as Qn, HttpTraceContext as Qr, WorkMeta as Qt, AppRtcState as R, APP_APPEARANCE_TOKENS as Ri, BuildSpaceInvitePathInput as Rn, UploadAppSourceInput as Rr, AppVersionRecord as Rt, WorkRoomAdmissionResponse as S, AppRuntimeTransport as Si, TasksApi as Sn, BoardPlaybackChangedEvent as Sr, AppMeta as St, WorkRoomEventMap as T, PopupBrokerTransport as Ti, SessionSubscriptionHandlers as Tn, ResolveFileOptions as Tr, AppPromotionEventResponse as Tt, AppCommerceCreditConsumeStatus as U, AppRuntimeAnchor as Ui, AssistantMessageCommit as Un, SkillsApi as Ur, AppsApi as Ut, AppCommerceCheckoutStatus as V, AppDropResource as Vi, buildSpaceInvitePath as Vn, UploadGenerationInputInput as Vr, AppViewerGrantRecord as Vt, AppCommerceEntitlement as W, AppRuntimeConfigureRequest as Wi, GenerationStreamCommitEvent as Wn, PromptsApi as Wr, PublicAppVersionSummary as Wt, WorkCommerceCheckoutStatus as X, PublicFileCreateUploadResponse as Xi, GenerationStreamOutOfSyncEvent as Xn, Fetch as Xr, WorkExtractedPageMeta as Xt, WorkCommerceApi as Y, PublicFileCreateUploadInput as Yi, GenerationStreamLifecycleEvent as Yn, CohubClientOptions as Yr, WorkDetailResponse as Yt, WorkCommerceCreditConsumeResponse as Z, PublicFileListEntry as Zi, GenerationStreamStateEvent as Zn, HttpError as Zr, WorkGetResponse as Zt, AppRoomInvite as _, DecisionStateImage as _a, AppRuntimeInvocationContext as _i, WorkVisibility as _n, BoardAwarenessUpdatedEvent as _r, AppContentDownload as _t, RoomEvents as a, CreateGenerationTaskRequest as aa, AppAuthorizationRequest as ai, WorkPromotionStatsResponse as an, SessionPatchApplyResult as ar, CreateUiCommandInput as at, WorkRealtimeApi as b, SpaceWalletActivityPage as ba, AppRuntimeResolvedApp as bi, UserApi as bn, BoardClientOptions as br, AppExtractedPageMeta as bt, RoomView as c, GenerationUsageBilling as ca, AppDiagnosticListener as ci, WorkRecord as cn, SessionPatchStatus as cr, UiCommandError as ct, AppRoom as d, ModelStatusEntry as da, AppRuntimeAppResolver as di, WorkStatus as dn, ConnectDisplayOptions as dr, UiCommandsApi as dt, PublicFileUploadPlanEntry as ea, RawHttpResponse as ei, WorkPromotionCreateInput as en, GenerationStreamTurnUpdatedEvent as er, WorkCommerceEntitlementsResponse as et, AppRoomAdmissionResponse as f, ModelStatusResponse as fa, AppRuntimeAuthorizationResult as fi, WorkTargetType as fn, DisplayConnection as fr, WaitForDesktopCommandOptions as ft, AppRoomHistory as g, DecisionState as ga, AppRuntimeError as gi, WorkViewStatsResponse as gn, RtcTransportStats as gr, AppContent as gt, AppRoomEventMap as h, DecisionQuestion as ha, AppRuntimeContext as hi, WorkViewSource as hn, DisplayConnectionStats as hr, AppAuthorizeResponse as ht, RoomEvent as i, SpaceStartupResponse as ia, sanitizeAccessToken as ii, WorkPromotionRecord as in, SessionPatchApplyInput as ir, CreateDesktopCommandInput as it, AppRtcChannelOptions as j, AppDevice as ji, SpaceSandboxRecord as jn, CreatePublicAssetUploadInput as jr, AppPublicSpaceRecord as jt, AppRtcCandidate as k, resolveAppTransport as ki, SpaceFileStream as kn, ReferencesApi as kr, AppPromotionStatsResponse as kt, RoomsApi as l, ListGenerationModelsResponse as la, AppIdResolver as li, WorkResolveResponse as ln, createSessionPatchReducer as lr, UiCommandRecord as lt, AppRoomEvent as m, DecisionAnswer as ma, AppRuntimeCheckoutStatus as mi, WorkVersionRecord as mn, connectDisplay as mr, AppActionRunResponse as mt, createHttpClient as n, SpaceWebhookListItem as na, joinApiUrl as ni, WorkPromotionProvider as nn, createSessionGenerationStreamClient as nr, WorkCommerceProductResolveResponse as nt, RoomEventsQuery as o, CreateGenerationTaskResponse as oa, AppContextChangedListener as oi, WorkPublicOwnerRecord as on, SessionPatchReducer as or, DesktopCommandsApi as ot, AppRoomCreateInput as p, CreateSpaceDecisionInput as pa, AppRuntimeCheckoutState as pi, WorkUpdateInput as pn, DisplayConnectionState as pr, WaitForUiCommandOptions as pt, AppCommerceProductResolveResponse as q, AppWindowStatus as qi, GenerationStreamFinalizedEvent as qn, CronJobsApi as qr, WorkContentDownload as qt, RoomCreated as r, SpaceWebhookTriggerResponse as ra, matchesUnauthorizedErrorToken as ri, WorkPromotionProviderStatus as rn, parseAssistantMessageCommit as rr, WorkCommercePurchaseResponse as rt, RoomInvite as s, GenerationTaskResult as sa, AppDiagnostic as si, WorkPublicSpaceRecord as sn, SessionPatchState as sr, UiCommand as st, CohubHttpClient as t, PublicFileUrlResponse as ta, UnauthorizedContext as ti, WorkPromotionEventResponse as tn, SessionGenerationStreamClient as tr, WorkCommerceOrder as tt, AppRealtimeApi as u, PublicGenerationDeclaration as ua, AppRuntimeApi as ui, WorkSessionResponse as un, SpaceDisplaysApi as ur, UiCommandStatus as ut, AppRoomPublishResult as v, SpaceDecisionResult as va, AppRuntimeModeConfig as vi, ReferralsApi as vn, BoardChangedEvent as vr, AppCreateInput as vt, WorkRoomEvent as w, ParentBridgeTransport as wi, SessionEventName as wn, BoardSyncResult as wr, AppPromotionCreateInput as wt, WorkRoom as x, SpaceWalletSummary as xa, AppRuntimeShellContext as xi, TaskWaitOptions as xn, BoardEventName as xr, AppGetResponse as xt, AppRoomState as y, SpaceWalletActivity as ya, AppRuntimeRequestOptions as yi, UsersApi as yn, BoardClient as yr, AppDetailResponse as yt, AppRtcTrackInput as z, AppAppearance as zi, BuildSpacePathInput as zn, UploadChatAttachmentInput as zr, AppViewSource as zt };
|