@neta-art/cohub 8.10.2 → 8.12.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/dist/board/animation.js +14 -2
- package/dist/board/core/file-preview.d.ts +20 -141
- package/dist/board/core/file-preview.js +25 -202
- package/dist/board/core/file-snapshot.d.ts +106 -0
- package/dist/board/core/file-snapshot.js +503 -0
- package/dist/board/index.d.ts +4 -2
- package/dist/board/index.js +4 -2
- package/dist/board/mutation.js +2 -1
- package/dist/board/render/board-background.d.ts +16 -0
- package/dist/board/render/{themes/clean-theme.js → board-background.js} +28 -35
- package/dist/board/render/index.d.ts +3 -3
- package/dist/board/render/index.js +2 -2
- package/dist/board/render/renderers/file-card-renderer.js +62 -17
- package/dist/board/replay.d.ts +52 -0
- package/dist/board/replay.js +261 -0
- package/dist/board/semantic-document.d.ts +9 -2
- package/dist/board/semantic-document.js +1 -3
- package/dist/chunks/environment.d.ts +272 -7
- package/dist/chunks/environment.js +1 -0
- package/dist/chunks/http.d.ts +109 -7
- package/dist/chunks/http.js +47 -10
- package/dist/chunks/websocket.d.ts +1 -1
- package/dist/http.d.ts +3 -3
- package/dist/index.d.ts +65 -4
- package/dist/index.js +514 -64
- package/dist/protocol/dist/board-animation.d.ts +1 -0
- package/dist/protocol/dist/board-animation.js +34 -0
- package/dist/protocol/dist/board-authoring.d.ts +2 -1
- package/dist/protocol/dist/board-capability-registry.js +53 -3
- package/dist/protocol/dist/board-codec.js +149 -2
- package/dist/protocol/dist/board-constants.js +29 -7
- package/dist/protocol/dist/board-document.d.ts +30 -16
- package/dist/protocol/dist/board-document.js +15 -12
- package/dist/protocol/dist/board-effect.d.ts +4 -2
- package/dist/protocol/dist/board-effect.js +3 -2
- package/dist/protocol/dist/board.d.ts +148 -3
- package/dist/protocol/dist/board.js +7 -0
- package/dist/protocol/dist/index.d.ts +4 -2
- package/dist/protocol/dist/provenance.d.ts +21 -0
- package/dist/types.d.ts +1 -1
- package/docs/app-runtime-guide.md +28 -3
- package/package.json +1 -1
- package/dist/board/render/themes/board-theme-registry.d.ts +0 -22
- package/dist/board/render/themes/board-theme-registry.js +0 -13
- package/dist/board/render/themes/clean-theme.d.ts +0 -5
package/dist/chunks/http.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as SpaceUsageResponse, $t as PublicReferral, Aa as
|
|
1
|
+
import { $o as SpaceCompletionResult, $r as SpaceUsageResponse, $t as PublicReferral, Aa as BoardSummary, An as SessionTurnWindowResponse, Ao as ChannelConfig, Ar as SpaceFsWriteFileInput, Ba as BoardAuthoringSnapshot, Br as SpacePresenceSnapshot, Bt as MeResponse, Cn as SessionMessagesPaginatedResponse, Di as SessionTurnPatchEvent, Dn as SessionTurnResponse, Do as GenerationContentBlock, En as SessionTurnIndexResponse, Eo as BillingPayload, Et as InvitationDetail, Fr as SpaceMember, Ft as LabelListItem, Ga as BoardSemanticMutation, Gn as SpaceCheckpointDetailResponse, Go as TurnIntermediateMessagesFile, Ho as SpaceTurnsResponse, Hr as SpacePublicProfile, In as SpaceAccessPolicy, Io as MessageRecord, Ji as DesktopCommandStatus, Jr as SpaceSessionsResponse, Jt as PatchResourceLabelsResponse, Ki as DesktopCommandError, Kn as SpaceCommerceBenefit, Lo as SessionForkRecord, Lr as SpaceModListItem, Lt as LabelResourceType, Mr as SpaceInvitationListResponse, Mt as LabelAssignmentRecord, Na as BoardTransactionsPage, Nn as SkillCatalogResponse, Nt as LabelItemsResponse, Oa as BoardPlaybackSnapshot, Oi as AppArtifactDescriptor, On as SessionTurnSignedUrlsResponse, Oo as GenerationModelDeclaration, Pa as BoardTransactionsReadInput, Pi as AppContentKind, Qn as SpaceCommerceProductBenefitBinding, Qt as PromptTemplateCatalogResponse, Rr as SpacePendingDiffFileResponse, Sn as SessionMessageResponse, Sr as SpaceFsTreeResponse, St as GlobalSearchResponse, Ta as BoardPlaybackCommand, Tn as SessionRecord, Uo as StoredIntermediateMessage, Ur as SpaceRecord, Ut as PaletteOverviewResponse, Vo as SessionTurnRecord, Vt as ModelCatalogEntry, Wi as DesktopCommand, Wr as SpaceRole, Xn as SpaceCommerceOrder, Yr as SpaceTurnAuthorFilter, Yt as Permission, Z as Channel, Zn as SpaceCommerceProduct, Zo as CreateSpaceCompletionInput, _r as SpaceFsMoveInput, _t as CronJobUpdatePatch, ar as SpaceDefaultResponse, at as CheckpointDiffSummary, ba as BoardCapabilities, ca as BoardAwarenessUpdate, ci as UserRulesResponse, cn as ReferenceDirection, cr as SpaceFsCompleteUploadResponse, ct as CreateInvitationInput, di as UserSessionsResponse, dn as ReferenceQueryableType, dr as SpaceFsCreateUploadResponse, es as SpaceCompletionStreamEvent, et as CheckpointDiffFileResponse, ft as CreateSpacePromptInput, g as AcceptInvitationResponse, gi as BoardPlaybackChangedEvent$1, gr as SpaceFsFileResponse, gt as CronJobRecord, hi as BoardChangedEvent$1, ia as SpacePublicEndpoints, ir as SpaceCreateResponse, jn as SessionTurnsPaginatedResponse, jo as ChannelHealth, kn as SessionTurnStreamSnapshotResponse, kr as SpaceFsUploadResponse, ln as ReferenceKind, lt as CreateInvitationResponse, mi as BoardAwarenessUpdatedEvent$1, mn as ReferralDashboard, mt as CreateSpaceSessionInput, na as NavigationCall, ni as TaskRunRecord, nr as SpaceConfigResponse, ns as ContentBlock, oi as UserActivityResponse, on as ReferenceAggregateGroupBy, or as SpaceEnvInput, os as RequestSource, ot as CheckpointRecord, pt as CreateSpacePromptResponse, qi as DesktopCommandRecord, qn as SpaceCommerceBuyerProfile, qt as PatchResourceLabelsInput, r as CohubEnvironment, ra as NavigationLaunch, ri as UserActivityQuery, rr as SpaceConfigUpdateResponse, si as UserProfile, sn as ReferenceAggregateResponse, sr as SpaceFsCompleteUploadInput, st as ClaimReferralResponse, ti as TaskRunDetailResponse, tn as PublicUserPageResponse, tr as SpaceConfigInput, ts as Usage, un as ReferenceQueryResponse, ur as SpaceFsCreateUploadInput, ut as CreateSpaceInput, v as BatchUserProfilesResponse, vr as SpaceFsPreparingFile, vt as CursorPageInfo, wa as BoardMutationReceipt, wn as SessionMessagesResponse, wt as GlobalSearchType, xa as BoardCreateInput, xi as RealtimePatchOperation, xr as SpaceFsReadFilesResponse, za as BoardAuthoringReadInput, zn as SpaceActivityResponse, zo as MessageToolCallsFile, zr as SpacePendingDiffSummary } 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
4
|
//#region ../protocol/dist/model/status.d.ts
|
|
@@ -50,6 +50,26 @@ type ModelStatusResponse = {
|
|
|
50
50
|
models: Record<string, ModelStatusEntry>;
|
|
51
51
|
};
|
|
52
52
|
//#endregion
|
|
53
|
+
//#region ../protocol/dist/generation/pricing.d.ts
|
|
54
|
+
declare const GENERATION_PRICING_UNITS: readonly ["image", "second", "request", "1m_tokens"];
|
|
55
|
+
type GenerationPricingUnit = (typeof GENERATION_PRICING_UNITS)[number];
|
|
56
|
+
/**
|
|
57
|
+
* Display price for a generation model, maintained in the platform config space
|
|
58
|
+
* and synced from the upstream gateway catalog.
|
|
59
|
+
*
|
|
60
|
+
* `unit` names what one charge covers. `amount` is the exact unit price; use
|
|
61
|
+
* `min`/`max` instead when the price depends on request parameters (resolution,
|
|
62
|
+
* duration, quality) and a single number would mislead.
|
|
63
|
+
*/
|
|
64
|
+
type GenerationModelPricing = {
|
|
65
|
+
unit: GenerationPricingUnit;
|
|
66
|
+
amount?: number;
|
|
67
|
+
min?: number;
|
|
68
|
+
max?: number;
|
|
69
|
+
/** Short qualifier shown with the price, e.g. "std–pro". */
|
|
70
|
+
note?: string;
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
53
73
|
//#region ../protocol/dist/generation/index.d.ts
|
|
54
74
|
declare const GENERATION_TASK_TYPE: "generation";
|
|
55
75
|
type CreateGenerationTaskRequest = {
|
|
@@ -97,7 +117,9 @@ type GenerationTaskResult = {
|
|
|
97
117
|
billing?: GenerationUsageBilling | null;
|
|
98
118
|
meta?: Record<string, unknown>;
|
|
99
119
|
};
|
|
100
|
-
type PublicGenerationDeclaration = Omit<GenerationModelDeclaration, "adapter"
|
|
120
|
+
type PublicGenerationDeclaration = Omit<GenerationModelDeclaration, "adapter"> & {
|
|
121
|
+
pricing?: GenerationModelPricing;
|
|
122
|
+
};
|
|
101
123
|
type ListGenerationModelsResponse = {
|
|
102
124
|
models: PublicGenerationDeclaration[];
|
|
103
125
|
};
|
|
@@ -200,6 +222,43 @@ type PublicFileUrlResponse = {
|
|
|
200
222
|
url: string;
|
|
201
223
|
};
|
|
202
224
|
//#endregion
|
|
225
|
+
//#region ../protocol/dist/app-runtime.d.ts
|
|
226
|
+
declare const APP_RUNTIME_PROTOCOL = "cohub.app.runtime";
|
|
227
|
+
declare const APP_RUNTIME_VERSION = 1;
|
|
228
|
+
type RuntimeEnvelope = {
|
|
229
|
+
protocol: typeof APP_RUNTIME_PROTOCOL;
|
|
230
|
+
version: typeof APP_RUNTIME_VERSION;
|
|
231
|
+
};
|
|
232
|
+
/** Axis-aligned rectangle in CSS pixels, overlay-local (top-left origin). */
|
|
233
|
+
type AppRuntimeRect = {
|
|
234
|
+
x: number;
|
|
235
|
+
y: number;
|
|
236
|
+
width: number;
|
|
237
|
+
height: number;
|
|
238
|
+
};
|
|
239
|
+
/** Which corner of the overlay `geometry.x` / `geometry.y` are measured from. */
|
|
240
|
+
type AppRuntimeAnchor = "top-left" | "top-right" | "bottom-left" | "bottom-right" | "center";
|
|
241
|
+
/**
|
|
242
|
+
* The App asks its overlay host to change where it sits or where it accepts
|
|
243
|
+
* pointer events. The host clamps geometry to the viewport. Absent fields keep
|
|
244
|
+
* their current value; an axis without a size fills the layer.
|
|
245
|
+
*
|
|
246
|
+
* `inputRegion`: `"none"` (default) makes the overlay click-through, `"all"`
|
|
247
|
+
* makes it fully interactive, and a rect list limits interaction to those
|
|
248
|
+
* overlay-local rectangles.
|
|
249
|
+
*/
|
|
250
|
+
type AppRuntimeConfigureRequest = RuntimeEnvelope & {
|
|
251
|
+
type: "configure.request";
|
|
252
|
+
geometry?: {
|
|
253
|
+
anchor?: AppRuntimeAnchor;
|
|
254
|
+
x?: number;
|
|
255
|
+
y?: number;
|
|
256
|
+
width?: number;
|
|
257
|
+
height?: number;
|
|
258
|
+
};
|
|
259
|
+
inputRegion?: "all" | "none" | AppRuntimeRect[];
|
|
260
|
+
};
|
|
261
|
+
//#endregion
|
|
203
262
|
//#region ../protocol/dist/app-navigation.d.ts
|
|
204
263
|
declare const APP_NAVIGATION_PROTOCOL = "cohub.app.navigation";
|
|
205
264
|
declare const APP_NAVIGATION_VERSION = 1;
|
|
@@ -267,16 +326,24 @@ type AppPromotionEventKey = typeof APP_PROMOTION_EVENT_KEYS[number];
|
|
|
267
326
|
//#endregion
|
|
268
327
|
//#region src/app-runtime.d.ts
|
|
269
328
|
type AppRuntimeInvocationContext = {
|
|
270
|
-
surface: "page" | "app" | "background" | "broker";
|
|
271
|
-
source?: "desktop_command" | "user" | "route";
|
|
329
|
+
surface: "page" | "app" | "overlay" | "background" | "broker";
|
|
330
|
+
source?: "desktop_command" | "user" | "route" | "embed";
|
|
272
331
|
spaceId?: string;
|
|
273
332
|
sessionId?: string;
|
|
274
333
|
turnId?: string;
|
|
275
334
|
toolCallId?: string;
|
|
335
|
+
/**
|
|
336
|
+
* The App whose page embeds this one, when `source` is `embed`. Present only
|
|
337
|
+
* when that App's published content is served from the embedding frame.
|
|
338
|
+
*/
|
|
339
|
+
embedder?: {
|
|
340
|
+
appId: string;
|
|
341
|
+
slug: string;
|
|
342
|
+
};
|
|
276
343
|
};
|
|
277
344
|
/** Current navigation context supplied by the embedding Cohub shell. */
|
|
278
345
|
type AppRuntimeShellContext = {
|
|
279
|
-
surface: "workspace" | "background" | "broker";
|
|
346
|
+
surface: "workspace" | "background" | "broker" | "embed";
|
|
280
347
|
space: {
|
|
281
348
|
id: string;
|
|
282
349
|
name?: string | null;
|
|
@@ -348,6 +415,8 @@ interface AppRuntimeTransport {
|
|
|
348
415
|
subscribeContextChanged?: (listener: AppContextChangedListener) => () => void;
|
|
349
416
|
/** Whether this transport can address the embedding Cohub workspace. */
|
|
350
417
|
supportsNavigation?: boolean;
|
|
418
|
+
/** Posts a one-way message to the host; no reply is expected. */
|
|
419
|
+
notify?: (message: Record<string, unknown>) => void;
|
|
351
420
|
}
|
|
352
421
|
/**
|
|
353
422
|
* Bridge-mode transport: posts messages to `window.parent` (the Cohub host
|
|
@@ -360,6 +429,7 @@ declare class ParentBridgeTransport implements AppRuntimeTransport {
|
|
|
360
429
|
private contextListeners;
|
|
361
430
|
private contextListener;
|
|
362
431
|
subscribeContextChanged(listener: AppContextChangedListener): () => void;
|
|
432
|
+
notify(message: Record<string, unknown>): void;
|
|
363
433
|
request<T>(message: Record<string, unknown>, options?: AppRuntimeRequestOptions): Promise<T | null>;
|
|
364
434
|
}
|
|
365
435
|
/**
|
|
@@ -392,9 +462,10 @@ declare class PopupBrokerTransport implements AppRuntimeTransport {
|
|
|
392
462
|
private resolveAppId;
|
|
393
463
|
request<T>(message: Record<string, unknown>, options?: AppRuntimeRequestOptions): Promise<T | null>;
|
|
394
464
|
}
|
|
395
|
-
/** Outcome of {@link AppRuntimeApi.requestSpaceAuthorization}. */
|
|
465
|
+
/** Outcome of {@link AppRuntimeApi.requestSpaceAuthorization} / {@link AppRuntimeApi.requestCreateSpaceAuthorization}. */
|
|
396
466
|
type AppRuntimeAuthorizationResult = {
|
|
397
467
|
granted: boolean;
|
|
468
|
+
/** Picked or created Space. Null on deny. Set with `granted: false` when create persisted but did not provision. */
|
|
398
469
|
space: {
|
|
399
470
|
id: string;
|
|
400
471
|
name: string | null;
|
|
@@ -426,6 +497,18 @@ declare class AppRuntimeApi {
|
|
|
426
497
|
context(): Promise<AppRuntimeContext | null>;
|
|
427
498
|
onContextChanged(listener: AppContextChangedListener): () => void;
|
|
428
499
|
navigationOpen(target: AppNavigationTarget, call?: AppNavigationCall): Promise<AppNavigationOpenResponse>;
|
|
500
|
+
/**
|
|
501
|
+
* Asks the host to close this App: a workspace tab closes, an embedded page
|
|
502
|
+
* forwards the request to its embedder, a standalone page closes the tab.
|
|
503
|
+
* No-op in broker mode, where the App owns its own window.
|
|
504
|
+
*/
|
|
505
|
+
requestClose(): void;
|
|
506
|
+
/**
|
|
507
|
+
* Requests the host to update the overlay's geometry or pointer hit regions.
|
|
508
|
+
* Only meaningful when the App was opened as an `overlay` surface; the host
|
|
509
|
+
* is free to clamp or ignore values that violate its layout policy.
|
|
510
|
+
*/
|
|
511
|
+
requestConfigure(input: Omit<AppRuntimeConfigureRequest, "protocol" | "version" | "type">): void;
|
|
429
512
|
getAccessToken(options?: {
|
|
430
513
|
forceRefresh?: boolean;
|
|
431
514
|
}): Promise<string | null>;
|
|
@@ -451,6 +534,19 @@ declare class AppRuntimeApi {
|
|
|
451
534
|
reason?: string;
|
|
452
535
|
alwaysAsk?: boolean;
|
|
453
536
|
}): Promise<AppRuntimeAuthorizationResult>;
|
|
537
|
+
/**
|
|
538
|
+
* One consent: create a viewer-owned Space (full `CreateSpaceInput`, same
|
|
539
|
+
* as `spaces.create`) and grant the scopes on it. Never silent — each
|
|
540
|
+
* confirm mints a new Space. The host creates with the viewer's account
|
|
541
|
+
* token.
|
|
542
|
+
* `{ granted: false, space }` means the Space was created but not provisioned;
|
|
543
|
+
* no grant was issued. A viewer deny is `{ granted: false, space: null }`.
|
|
544
|
+
*/
|
|
545
|
+
requestCreateSpaceAuthorization(input: {
|
|
546
|
+
scopes: Permission[];
|
|
547
|
+
space: CreateSpaceInput;
|
|
548
|
+
reason?: string;
|
|
549
|
+
}): Promise<AppRuntimeAuthorizationResult>;
|
|
454
550
|
purchase(input: {
|
|
455
551
|
productKey: string;
|
|
456
552
|
purchaseAttemptId?: string;
|
|
@@ -1645,6 +1741,8 @@ declare class BoardClient {
|
|
|
1645
1741
|
capabilities(customFetch?: Fetch): Promise<BoardCapabilities>;
|
|
1646
1742
|
summary(customFetch?: Fetch): Promise<BoardSummary>;
|
|
1647
1743
|
authoring(input?: BoardAuthoringReadInput, customFetch?: Fetch): Promise<BoardAuthoringSnapshot>;
|
|
1744
|
+
/** Read-only transaction log, newest first; the first page carries the current rows. */
|
|
1745
|
+
transactions(input?: BoardTransactionsReadInput, customFetch?: Fetch): Promise<BoardTransactionsPage>;
|
|
1648
1746
|
mutateSemantic(input: Omit<BoardSemanticMutation, "mutationId" | "dryRun"> & {
|
|
1649
1747
|
mutationId?: string;
|
|
1650
1748
|
dryRun?: boolean;
|
|
@@ -1680,6 +1778,7 @@ declare class SpaceBoardsApi {
|
|
|
1680
1778
|
mutateSemantic(boardId: string, mutation: BoardSemanticMutation): Promise<BoardMutationReceipt>;
|
|
1681
1779
|
summary(boardId: string, customFetch?: Fetch): Promise<BoardSummary>;
|
|
1682
1780
|
capabilities(boardId: string, customFetch?: Fetch): Promise<BoardCapabilities>;
|
|
1781
|
+
transactions(boardId: string, input?: BoardTransactionsReadInput, customFetch?: Fetch): Promise<BoardTransactionsPage>;
|
|
1683
1782
|
private playback;
|
|
1684
1783
|
play(boardId: string, command: Omit<Extract<BoardPlaybackCommand, {
|
|
1685
1784
|
type: "play";
|
|
@@ -1924,6 +2023,8 @@ type AppStatus = "published" | "disabled";
|
|
|
1924
2023
|
type AppVisibility = "public" | "space";
|
|
1925
2024
|
type AppPresentationMeta = {
|
|
1926
2025
|
hideCohubBar?: boolean;
|
|
2026
|
+
/** How `cohub desktop open` presents the App when `--as` is not given. */
|
|
2027
|
+
surface?: "window" | "overlay";
|
|
1927
2028
|
};
|
|
1928
2029
|
/** Snapshot of fields extracted from the published page head. */
|
|
1929
2030
|
type AppExtractedPageMeta = {
|
|
@@ -1933,6 +2034,7 @@ type AppExtractedPageMeta = {
|
|
|
1933
2034
|
image?: string | null;
|
|
1934
2035
|
lang?: string | null;
|
|
1935
2036
|
themeColor?: string | null;
|
|
2037
|
+
surface?: "window" | "overlay" | null;
|
|
1936
2038
|
sourcePath?: string | null;
|
|
1937
2039
|
extractedAt?: string | null;
|
|
1938
2040
|
};
|
|
@@ -2462,4 +2564,4 @@ declare class CohubHttpClient {
|
|
|
2462
2564
|
}
|
|
2463
2565
|
declare const createHttpClient: (options?: CohubClientOptions) => CohubHttpClient;
|
|
2464
2566
|
//#endregion
|
|
2465
|
-
export { AppTargetType as $, UnauthorizedContext as $n, WebSocketConnectionState as $t, WaitForUiCommandOptions as A, CreatePublicAssetUploadInput as An,
|
|
2567
|
+
export { AppTargetType as $, UnauthorizedContext as $n, WebSocketConnectionState as $t, WaitForUiCommandOptions as A, CreatePublicAssetUploadInput as An, PublicFileListEntry as Ar, WorkVersionRecord as At, AppPresentationMeta as B, UploadPublicAssetInput as Bn, ListGenerationModelsResponse as Br, BoardChangedEvent as Bt, DesktopCommandsApi as C, SessionPatchState as Cn, AppNavigationOpenResponse as Cr, WorkPublicSpaceRecord as Ct, UiCommandStatus as D, ReferenceResourceSelector as Dn, AppRuntimeRect as Dr, WorkStatus as Dt, UiCommandRecord as E, SessionAccessApi as En, AppRuntimeConfigureRequest as Er, WorkSessionResponse as Et, AppCreateInput as F, PublicAssetUploadProtocol as Fn, SpaceStartupResponse as Fr, UsersApi as Ft, AppPromotionRecord as G, CronJobsApi as Gn, SessionEventName as Gt, AppPromotionEventResponse as H, PromptsApi as Hn, ModelStatusEntry as Hr, BoardEventName as Ht, AppDetailResponse as I, PublicAssetsApi as In, CreateGenerationTaskRequest as Ir, UserApi as It, AppPublicSpaceRecord as J, Fetch as Jn, SpaceClient as Jt, AppPromotionStatsResponse as K, ChannelsApi as Kn, SessionSubscriptionHandlers as Kt, AppExtractedPageMeta as L, UploadAppSourceInput as Ln, CreateGenerationTaskResponse as Lr, TaskWaitOptions as Lt, AppAuthorizeResponse as M, PublicAssetMimeType as Mn, PublicFileUploadEntryInput as Mr, WorkViewStatsResponse as Mt, AppContent as N, PublicAssetPurpose as Nn, PublicFileUploadPlanEntry as Nr, WorkVisibility as Nt, UiCommandsApi as O, ReferencesApi as On, PublicFileCreateUploadInput as Or, WorkTargetType as Ot, AppContentDownload as P, PublicAssetUploadProgress as Pn, PublicFileUrlResponse as Pr, ReferralsApi as Pt, AppStatus as Q, RawHttpResponse as Qn, SpacesApi as Qt, AppGetResponse as R, UploadChatAttachmentInput as Rn, GenerationTaskResult as Rr, TasksApi as Rt, CreateUiCommandInput as S, SessionPatchReducer as Sn, AppNavigationOpenMessage as Sr, WorkPublicOwnerRecord as St, UiCommandError as T, createSessionPatchReducer as Tn, AppRuntimeAnchor as Tr, WorkResolveResponse as Tt, AppPromotionProvider as U, ModelsApi as Un, ModelStatusResponse as Ur, BoardPlaybackChangedEvent as Ut, AppPromotionCreateInput as V, SkillsApi as Vn, PublicGenerationDeclaration as Vr, BoardClient as Vt, AppPromotionProviderStatus as W, GenerationsApi as Wn, BoardSubscriptionHandlers as Wt, AppResolveResponse as X, HttpTraceContext as Xn, SpacePublicFilesApi as Xt, AppRecord as Y, HttpError as Yn, SpaceEventName as Yt, AppSessionResponse as Z, HttpTransport as Zn, SpaceTurnListOptions as Zt, WorkCommerceEntitlementsResponse as _, SessionGenerationStreamClient as _n, createAppRuntime as _r, WorkPromotionEventResponse as _t, AppCommerceCreditConsumeResponse as a, AssistantMessageCommit as an, AppRuntimeApi as ar, AppVisibility as at, WorkCommercePurchaseResponse as b, SessionPatchApplyInput as bn, AppNavigationCall as br, WorkPromotionRecord as bt, AppCommerceEntitlementsResponse as c, GenerationStreamEvent as cn, AppRuntimeCheckoutStatus as cr, WorkContent as ct, AppCommercePurchaseResponse as d, GenerationStreamLifecycleEvent as dn, AppRuntimeModeConfig as dr, WorkDetailResponse as dt, BuildSpaceInvitePathInput as en, joinApiUrl as er, AppUpdateInput as et, WorkCommerceApi as f, GenerationStreamOutOfSyncEvent as fn, AppRuntimeRequestOptions as fr, WorkExtractedPageMeta as ft, WorkCommerceEntitlement as g, GenerationStreamTurnUpdatedEvent as gn, PopupBrokerTransport as gr, WorkPromotionCreateInput as gt, WorkCommerceCreditConsumeStatus as h, GenerationStreamSubscriptionHandlers as hn, ParentBridgeTransport as hr, WorkPresentationMeta as ht, AppCommerceCheckoutStatus as i, buildSpacePath as in, AppIdResolver as ir, AppViewerGrantRecord as it, AppActionRunResponse as j, CreatePublicAssetUploadResponse as jn, PublicFileListResponse as jr, WorkViewSource as jt, WaitForDesktopCommandOptions as k, SearchApi as kn, PublicFileCreateUploadResponse as kr, WorkUpdateInput as kt, AppCommerceOrder as l, GenerationStreamFinalizedEvent as ln, AppRuntimeContext as lr, WorkContentDownload as lt, WorkCommerceCreditConsumeResponse as m, GenerationStreamSubscribeOptions as mn, AppRuntimeTransport as mr, WorkMeta as mt, createHttpClient as n, PublicInviteApi as nn, sanitizeAccessToken as nr, AppViewSource as nt, AppCommerceCreditConsumeStatus as o, GenerationStreamCommitEvent as on, AppRuntimeAuthorizationResult as or, AppsApi as ot, WorkCommerceCheckoutStatus as p, GenerationStreamStateEvent as pn, AppRuntimeShellContext as pr, WorkGetResponse as pt, AppPublicOwnerRecord as q, CohubClientOptions as qn, SpaceChannelBindingRecord as qt, AppCommerceApi as r, buildSpaceInvitePath as rn, AppContextChangedListener as rr, AppViewStatsResponse as rt, AppCommerceEntitlement as s, GenerationStreamErrorEvent as sn, AppRuntimeCheckoutState as sr, WorkAuthorizeResponse as st, CohubHttpClient as t, BuildSpacePathInput as tn, matchesUnauthorizedErrorToken as tr, AppVersionRecord as tt, AppCommerceProductResolveResponse as u, GenerationStreamIntermediateMessage as un, AppRuntimeInvocationContext as ur, WorkCreateInput as ut, WorkCommerceOrder as v, createSessionGenerationStreamClient as vn, createSlugAppIdResolver as vr, WorkPromotionProvider as vt, UiCommand as w, SessionPatchStatus as wn, AppNavigationTarget as wr, WorkRecord as wt, CreateDesktopCommandInput as x, SessionPatchApplyResult as xn, AppNavigationLaunch as xr, WorkPromotionStatsResponse as xt, WorkCommerceProductResolveResponse as y, parseAssistantMessageCommit as yn, resolveAppTransport as yr, WorkPromotionProviderStatus as yt, AppMeta as z, UploadChatImageAttachmentInput as zn, GenerationUsageBilling as zr, BoardAwarenessUpdatedEvent as zt };
|
package/dist/chunks/http.js
CHANGED
|
@@ -450,7 +450,11 @@ const BOARD_BUILTIN_CLIP_KINDS = [
|
|
|
450
450
|
"camera.focus",
|
|
451
451
|
"camera.shake"
|
|
452
452
|
];
|
|
453
|
-
const BOARD_BUILTIN_EFFECT_KINDS = [
|
|
453
|
+
const BOARD_BUILTIN_EFFECT_KINDS = [
|
|
454
|
+
"effects.pulse",
|
|
455
|
+
"effects.float",
|
|
456
|
+
"effects.deal"
|
|
457
|
+
];
|
|
454
458
|
const BOARD_ARROW_STROKE_SIZE = 2.5;
|
|
455
459
|
const BOARD_CONNECTION_STROKE_SIZE = 2.5;
|
|
456
460
|
function clipSchema(id) {
|
|
@@ -482,6 +486,20 @@ function clipSchema(id) {
|
|
|
482
486
|
default: return;
|
|
483
487
|
}
|
|
484
488
|
}
|
|
489
|
+
function effectSchema(id) {
|
|
490
|
+
switch (id) {
|
|
491
|
+
case "effects.deal": return { params: {
|
|
492
|
+
lift: { unit: "board" },
|
|
493
|
+
swing: { unit: "board" },
|
|
494
|
+
curve: { unit: "board" },
|
|
495
|
+
tilt: { unit: "degree" },
|
|
496
|
+
scale: { unit: "ratio" },
|
|
497
|
+
duration: { unit: "ms" },
|
|
498
|
+
landing: { unit: "ms" }
|
|
499
|
+
} };
|
|
500
|
+
default: return;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
485
503
|
const BOARD_BUILTIN_CAPABILITIES = [...BOARD_BUILTIN_CLIP_KINDS.map((id) => {
|
|
486
504
|
const schema = clipSchema(id);
|
|
487
505
|
return {
|
|
@@ -491,12 +509,16 @@ const BOARD_BUILTIN_CAPABILITIES = [...BOARD_BUILTIN_CLIP_KINDS.map((id) => {
|
|
|
491
509
|
renderers: ["webgpu", "webgl"],
|
|
492
510
|
...schema ? { schema } : {}
|
|
493
511
|
};
|
|
494
|
-
}), ...BOARD_BUILTIN_EFFECT_KINDS.map((id) =>
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
512
|
+
}), ...BOARD_BUILTIN_EFFECT_KINDS.map((id) => {
|
|
513
|
+
const schema = effectSchema(id);
|
|
514
|
+
return {
|
|
515
|
+
kind: "effect",
|
|
516
|
+
id,
|
|
517
|
+
version: 1,
|
|
518
|
+
renderers: ["webgpu", "webgl"],
|
|
519
|
+
...schema ? { schema } : {}
|
|
520
|
+
};
|
|
521
|
+
})];
|
|
500
522
|
/**
|
|
501
523
|
* Where a connection meets its node.
|
|
502
524
|
*
|
|
@@ -965,12 +987,13 @@ const BoardEffectSchema = z.object({
|
|
|
965
987
|
itemId: idSchema$1
|
|
966
988
|
}).strict(), z.object({ type: z.literal("board") }).strict()]),
|
|
967
989
|
kind: extensionIdSchema,
|
|
968
|
-
kindVersion: z.number().int().positive(),
|
|
990
|
+
kindVersion: z.number().int().positive().default(1),
|
|
969
991
|
enabled: z.boolean().default(true),
|
|
970
992
|
lifecycle: z.enum([
|
|
971
993
|
"persistent",
|
|
972
994
|
"when-visible",
|
|
973
|
-
"manual"
|
|
995
|
+
"manual",
|
|
996
|
+
"on-enter"
|
|
974
997
|
]),
|
|
975
998
|
timeOrigin: z.enum([
|
|
976
999
|
"board",
|
|
@@ -1466,13 +1489,15 @@ const parseDesktopCommand = (input) => {
|
|
|
1466
1489
|
...callSource.input === void 0 ? {} : { input: callSource.input }
|
|
1467
1490
|
};
|
|
1468
1491
|
}
|
|
1492
|
+
const surface = target.surface === "overlay" ? "overlay" : void 0;
|
|
1469
1493
|
const command = {
|
|
1470
1494
|
type: "desktop.open",
|
|
1471
1495
|
target: {
|
|
1472
1496
|
kind: "app",
|
|
1473
1497
|
appId,
|
|
1474
1498
|
...label ? { label } : {},
|
|
1475
|
-
...launch ? { launch } : {}
|
|
1499
|
+
...launch ? { launch } : {},
|
|
1500
|
+
...surface ? { surface } : {}
|
|
1476
1501
|
},
|
|
1477
1502
|
...call ? { call } : {}
|
|
1478
1503
|
};
|
|
@@ -3605,6 +3630,10 @@ var BoardClient = class {
|
|
|
3605
3630
|
authoring(input = {}, customFetch) {
|
|
3606
3631
|
return this.boards.authoring(this.id, input, customFetch);
|
|
3607
3632
|
}
|
|
3633
|
+
/** Read-only transaction log, newest first; the first page carries the current rows. */
|
|
3634
|
+
transactions(input = {}, customFetch) {
|
|
3635
|
+
return this.boards.transactions(this.id, input, customFetch);
|
|
3636
|
+
}
|
|
3608
3637
|
mutateSemantic(input) {
|
|
3609
3638
|
return this.boards.mutateSemantic(this.id, {
|
|
3610
3639
|
...input,
|
|
@@ -3687,6 +3716,14 @@ var SpaceBoardsApi = class {
|
|
|
3687
3716
|
capabilities(boardId, customFetch) {
|
|
3688
3717
|
return this.transport.request(`/api/spaces/${this.spaceId}/boards/${boardId}/capabilities`, { fetch: customFetch });
|
|
3689
3718
|
}
|
|
3719
|
+
transactions(boardId, input = {}, customFetch) {
|
|
3720
|
+
const params = new URLSearchParams();
|
|
3721
|
+
if (input.before !== void 0) params.set("before", String(input.before));
|
|
3722
|
+
if (input.limit !== void 0) params.set("limit", String(input.limit));
|
|
3723
|
+
if (input.snapshot !== void 0) params.set("snapshot", String(input.snapshot));
|
|
3724
|
+
const query = params.toString();
|
|
3725
|
+
return this.transport.request(`/api/spaces/${this.spaceId}/boards/${boardId}/transactions${query ? `?${query}` : ""}`, { fetch: customFetch });
|
|
3726
|
+
}
|
|
3690
3727
|
playback(boardId, command) {
|
|
3691
3728
|
return this.transport.request(`/api/spaces/${this.spaceId}/boards/${boardId}/playback`, {
|
|
3692
3729
|
method: "POST",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Qo as ModelThinkingLevel, Si as RealtimeRoom, _i as ChannelEnvelope, ca as BoardAwarenessUpdate, ns as ContentBlock, q as BillingResponsePayload, r as CohubEnvironment } from "./environment.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/websocket.d.ts
|
|
4
4
|
type WebsocketEventPayload = ChannelEnvelope;
|
package/dist/http.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as CheckpointDiffFile, $a as
|
|
2
|
-
import { Br as
|
|
3
|
-
export { AcceptInvitationResponse, ApiError, BatchUserProfilesResponse, BillingBalanceActivity, BillingBalanceActivityKind, BillingBalanceActivityList, BillingBalanceActivityStatus, BillingCatalog, BillingCatalogProduct, BillingCheckoutActionState, BillingCheckoutConfirmation, BillingCheckoutResult, BillingConversionIntent, BillingCreditExpiryGroup, BillingCreditGrantStatus, BillingCreditStatus, BillingCreditUnit, BillingDiscountOffer, BillingDiscountOfferRef, BillingDiscountPricing, BillingHistoryPagination, BillingPaymentStatus, BillingPluginStatus, BillingProductBillingInterval, BillingProductCreditBenefit, BillingProductDisplay, BillingProductKind, BillingProductPricing, BillingProductPromotion, BillingPromotionCodePreview, BillingRedemptionResult, BillingResponsePayload, BillingSubscriptionHistoryList, BillingSubscriptionHistoryStatus, BillingSubscriptionSummary, type BoardAnimationTarget, type BoardAssetRef, type BoardAuthoringItem, type BoardAuthoringReadInput, type BoardAuthoringSnapshot, type BoardCameraFocus, type BoardCameraFocusParams, type BoardCameraState, type BoardCapabilities, type BoardCapability, type BoardComposition, type BoardCompositionPlayback, type BoardCoordinateSpace, type BoardCreateInput, type BoardDiagnostic, type BoardEasing, type BoardEffect, type BoardEffectInput, type BoardItemPatch, type BoardManifest, type BoardMutationReceipt, type BoardPlaybackCommand, type BoardPlaybackPolicy, type BoardPlaybackSnapshot, type BoardProceduralClip, type BoardRecord, type BoardRenderCost, type BoardSemanticCommand, type BoardSemanticMutation, type BoardSummary, type BoardTimeline, type BoardTimelineMarker, type BoardTrack, type BoardValidationResult, Channel, type ChannelConfig, type ChannelHealth, type ChannelHealthReasonCode, type ChannelRuntimeState, CheckpointDiffDelivery, CheckpointDiffFile, CheckpointDiffFileResponse, CheckpointDiffPatchKind, CheckpointDiffPatchLine, CheckpointDiffStats, CheckpointDiffStatus, CheckpointDiffSummary, CheckpointRecord, ClaimReferralResponse, type CohubClientOptions, CohubHttpClient, type CompletionAssistantMessage, type CompletionMessage, type CompletionMessageRole, type CompletionThinkingLevel, type CompletionUsage, type ContentBlock, type CreateGenerationTaskRequest, type CreateGenerationTaskResponse, CreateInvitationInput, CreateInvitationResponse, type CreateSpaceCompletionInput, CreateSpaceInput, CreateSpaceModInput, CreateSpacePromptInput, CreateSpacePromptResponse, CreateSpaceSessionInput, CronJobPayload, CronJobRecord, CronJobUpdatePatch, CursorPageInfo, type DiscordChannelConfig, type FeishuChannelConfig, type Fetch, type GenerationContentBlock, type GenerationPolicy, type GenerationResult, type GenerationTaskResult, type GenerationUsageBilling, GenerationUsageBlock, GenerationUsageHourlyStat, GenerationUsageSummary, GlobalSearchResponse, GlobalSearchResult, GlobalSearchType, GlobalSearchViewerRelation, HttpError, HttpTransport, InvitationDetail, JsonObject, JsonPrimitive, JsonValue, LabelAssignmentListItem, LabelAssignmentPageInfo, LabelAssignmentRecord, LabelItemsResponse, LabelItemsSessionFork, LabelListItem, LabelRecord, LabelResourceType, LabelScopeType, LabelSource, type ListGenerationModelsResponse, MeResponse, type MessageRecord, type MessageToolCallsFile, ModelCatalogEntry, type ModelStatusEntry, type ModelStatusResponse, type ModelThinkingLevel, PERMISSIONS, PaletteOverviewResponse, PaletteOverviewSession, PaletteOverviewSpace, PaletteOverviewSpaceRelation, PatchResourceLabelsInput, PatchResourceLabelsResponse, Permission, PromptAccessMode, PromptTemplateCatalogEntry, PromptTemplateCatalogResponse, type PublicGenerationDeclaration, PublicReferral, PublicUserAppItem, PublicUserPageResponse, PublicUserProfile, PublicUserSpaceItem, PublicUserWorkItem, ReferenceAggregateGroup, ReferenceAggregateGroupBy, ReferenceAggregateResponse, ReferenceDirection, ReferenceKind, ReferenceQueryResponse, ReferenceQueryableType, ReferenceRecord, ReferenceResourceType, ReferralDashboard, ReferralListItem, ReferralReward, ReferralStatus, ResourceLabelsResponse, SandboxSpecId, SendMessageCronJobPayload, SessionBindingRecord, type SessionForkRecord, SessionMessageResponse, SessionMessagesPaginatedResponse, SessionMessagesResponse, SessionRecord, type SessionTurnIndexItem, SessionTurnIndexResponse, type SessionTurnRecord, SessionTurnResponse, type SessionTurnSegmentRecord, SessionTurnSignedUrlsResponse, SessionTurnStreamSnapshotResponse, SessionTurnWindowResponse, SessionTurnsPaginatedResponse, SkillCatalogEntry, SkillCatalogResponse, SkillCatalogSource, SpaceAccess, SpaceAccessPolicy, SpaceActivityAppRanking, SpaceActivityContributor, SpaceActivityResponse, SpaceBootstrapMeta, SpaceBootstrapSource, SpaceBootstrapStage, SpaceBootstrapStatus, SpaceChannelBindingInput, SpaceCheckpointDetailResponse, SpaceCommerceBenefit, SpaceCommerceBuyerProfile, SpaceCommerceCreditsBenefit, SpaceCommerceFeatureBenefit, SpaceCommerceOrder, SpaceCommerceProduct, SpaceCommerceProductBenefitBinding, SpaceCommerceProductCreditBenefit, type SpaceCompletionResult, type SpaceCompletionStreamEvent, SpaceConfig, SpaceConfigInput, SpaceConfigResponse, SpaceConfigUpdateResponse, SpaceCreateResponse, SpaceDefaultResponse, SpaceEnvInput, SpaceFsCompleteUploadInput, SpaceFsCompleteUploadResponse, SpaceFsCreateDirectoryInput, SpaceFsCreateUploadInput, SpaceFsCreateUploadResponse, SpaceFsDeleteNodeInput, SpaceFsEncoding, SpaceFsEntry, SpaceFsFileKind, SpaceFsFileResponse, SpaceFsMoveInput, SpaceFsPreparingFile, SpaceFsReadFilesError, SpaceFsReadFilesInput, SpaceFsReadFilesResponse, SpaceFsTreeResponse, SpaceFsUploadDestination, SpaceFsUploadEntry, SpaceFsUploadError, SpaceFsUploadPlanEntry, SpaceFsUploadPlanEntryInput, SpaceFsUploadProgress, SpaceFsUploadResponse, SpaceFsWriteFileInput, SpaceInvitation, SpaceInvitationListResponse, SpaceInvitationLocation, SpaceListItem, SpaceMember, SpaceMeta, SpaceModListItem, SpacePendingDiffFileResponse, SpacePendingDiffSummary, SpacePresenceSnapshot, SpacePresenceUser, SpacePublicProfile, SpaceRecord, SpaceRole, SpaceSandboxAutoDestroyPolicy, SpaceSandboxConfig, SpaceSandboxProvider, SpaceSessionsResponse, type SpaceStartupResponse, SpaceTurnAuthorFilter, SpaceTurnListItem, SpaceTurnsResponse, SpaceUsageHourlyStat, SpaceUsageResponse, SpaceUsageSummary, type StoredIntermediateMessage, type StoredToolCall, TaskRunDetailResponse, TaskRunRecord, type TurnIntermediateMessagesFile, UserActivityQuery, UserActivityRange, UserActivityRankings, UserActivityResponse, UserProfile, UserRulesResponse, UserSessionListItem, UserSessionSpaceSummary, UserSessionsResponse, createHttpClient, scopeListHasPermission };
|
|
1
|
+
import { $ as CheckpointDiffFile, $a as BoardAnimationTarget, $n as SpaceCommerceProductCreditBenefit, $o as SpaceCompletionResult, $r as SpaceUsageResponse, $t as PublicReferral, A as BillingCreditGrantStatus, Aa as BoardSummary, An as SessionTurnWindowResponse, Ao as ChannelConfig, Ar as SpaceFsWriteFileInput, At as LabelAssignmentListItem, B as BillingProductCreditBenefit, Ba as BoardAuthoringSnapshot, Bn as SpaceBootstrapMeta, Bo as SessionTurnIndexItem, Br as SpacePresenceSnapshot, Bt as MeResponse, C as BillingCatalog, Ca as BoardManifest, Cn as SessionMessagesPaginatedResponse, Cr as SpaceFsUploadDestination, Ct as GlobalSearchResult, D as BillingCheckoutResult, Dn as SessionTurnResponse, Do as GenerationContentBlock, Dr as SpaceFsUploadPlanEntryInput, Dt as JsonObject, E as BillingCheckoutConfirmation, Ea as BoardPlaybackPolicy, En as SessionTurnIndexResponse, Er as SpaceFsUploadPlanEntry, Et as InvitationDetail, F as BillingDiscountPricing, Fa as BoardValidationResult, Fn as SpaceAccess, Fo as FeishuChannelConfig, Fr as SpaceMember, Ft as LabelListItem, G as BillingPromotionCodePreview, Ga as BoardSemanticMutation, Gn as SpaceCheckpointDetailResponse, Go as TurnIntermediateMessagesFile, Gr as SpaceSandboxAutoDestroyPolicy, Gt as PaletteOverviewSpace, H as BillingProductKind, Hn as SpaceBootstrapStage, Hr as SpacePublicProfile, Ht as PERMISSIONS, I as BillingHistoryPagination, In as SpaceAccessPolicy, Io as MessageRecord, Ir as SpaceMeta, It as LabelRecord, J as BillingSubscriptionHistoryList, Ja as BoardEffectInput, Jn as SpaceCommerceCreditsBenefit, Jo as CompletionMessageRole, Jr as SpaceSessionsResponse, Jt as PatchResourceLabelsResponse, K as BillingRedemptionResult, Ka as BoardAssetRef, Kn as SpaceCommerceBenefit, Ko as CompletionAssistantMessage, Kr as SpaceSandboxConfig, Kt as PaletteOverviewSpaceRelation, L as BillingPaymentStatus, La as BoardAuthoringItem, Ln as SpaceActivityAppRanking, Lo as SessionForkRecord, Lr as SpaceModListItem, Lt as LabelResourceType, M as BillingCreditUnit, Ma as BoardTransactionRecord, Mn as SkillCatalogEntry, Mo as ChannelHealthReasonCode, Mr as SpaceInvitationListResponse, Mt as LabelAssignmentRecord, N as BillingDiscountOffer, Na as BoardTransactionsPage, Nn as SkillCatalogResponse, No as ChannelRuntimeState, Nr as SpaceInvitationLocation, Nt as LabelItemsResponse, O as BillingConversionIntent, Oa as BoardPlaybackSnapshot, On as SessionTurnSignedUrlsResponse, Or as SpaceFsUploadProgress, Ot as JsonPrimitive, P as BillingDiscountOfferRef, Pa as BoardTransactionsReadInput, Pn as SkillCatalogSource, Po as DiscordChannelConfig, Pr as SpaceListItem, Pt as LabelItemsSessionFork, Q as CheckpointDiffDelivery, Qn as SpaceCommerceProductBenefitBinding, Qo as ModelThinkingLevel, Qr as SpaceUsageHourlyStat, Qt as PromptTemplateCatalogResponse, R as BillingPluginStatus, Rn as SpaceActivityContributor, Ro as SessionTurnSegmentRecord, Rr as SpacePendingDiffFileResponse, Rt as LabelScopeType, S as BillingBalanceActivityStatus, Sa as BoardDiagnostic, Sn as SessionMessageResponse, Sr as SpaceFsTreeResponse, St as GlobalSearchResponse, T as BillingCheckoutActionState, Ta as BoardPlaybackCommand, Tn as SessionRecord, Tr as SpaceFsUploadError, Tt as GlobalSearchViewerRelation, U as BillingProductPricing, Ua as BoardSemanticCommand, Un as SpaceBootstrapStatus, Uo as StoredIntermediateMessage, Ur as SpaceRecord, Ut as PaletteOverviewResponse, V as BillingProductDisplay, Va as BoardItemPatch, Vn as SpaceBootstrapSource, Vo as SessionTurnRecord, Vr as SpacePresenceUser, Vt as ModelCatalogEntry, W as BillingProductPromotion, Wn as SpaceChannelBindingInput, Wo as StoredToolCall, Wr as SpaceRole, Wt as PaletteOverviewSession, X as BillingSubscriptionSummary, Xn as SpaceCommerceOrder, Xo as CompletionUsage, Xr as SpaceTurnListItem, Xt as PromptAccessMode, Y as BillingSubscriptionHistoryStatus, Yn as SpaceCommerceFeatureBenefit, Yo as CompletionThinkingLevel, Yr as SpaceTurnAuthorFilter, Yt as Permission, Z as Channel, Zn as SpaceCommerceProduct, Zo as CreateSpaceCompletionInput, Zr as SpaceTurnsResponse, Zt as PromptTemplateCatalogEntry, _ as ApiError, _a as BoardCameraFocus, _n as ReferralStatus, _r as SpaceFsMoveInput, _t as CronJobUpdatePatch, ai as UserActivityRankings, an as ReferenceAggregateGroup, ao as BoardProceduralClip, ar as SpaceDefaultResponse, at as CheckpointDiffSummary, b as BillingBalanceActivityKind, ba as BoardCapabilities, bn as SendMessageCronJobPayload, br as SpaceFsReadFilesInput, bt as GenerationUsageHourlyStat, ci as UserRulesResponse, cn as ReferenceDirection, co as BoardTrack, cr as SpaceFsCompleteUploadResponse, ct as CreateInvitationInput, di as UserSessionsResponse, dn as ReferenceQueryableType, do as BoardCapability, dr as SpaceFsCreateUploadResponse, dt as CreateSpaceModInput, ei as SpaceUsageSummary, en as PublicUserAppItem, eo as BoardComposition, er as SpaceConfig, es as SpaceCompletionStreamEvent, et as CheckpointDiffFileResponse, fi as scopeListHasPermission, fn as ReferenceRecord, fo as BoardCoordinateSpace, fr as SpaceFsDeleteNodeInput, ft as CreateSpacePromptInput, g as AcceptInvitationResponse, gn as ReferralReward, go as GenerationPolicy, gr as SpaceFsFileResponse, gt as CronJobRecord, ha as BoardDealParams, hn as ReferralListItem, hr as SpaceFsFileKind, ht as CronJobPayload, ii as UserActivityRange, in as PublicUserWorkItem, io as BoardEasing, ir as SpaceCreateResponse, it as CheckpointDiffStatus, j as BillingCreditStatus, ja as BoardTransactionOperation, jn as SessionTurnsPaginatedResponse, jo as ChannelHealth, jr as SpaceInvitation, jt as LabelAssignmentPageInfo, k as BillingCreditExpiryGroup, ka as BoardRecord, kn as SessionTurnStreamSnapshotResponse, ko as GenerationResult, kr as SpaceFsUploadResponse, kt as JsonValue, li as UserSessionListItem, ln as ReferenceKind, lr as SpaceFsCreateDirectoryInput, lt as CreateInvitationResponse, mn as ReferralDashboard, mr as SpaceFsEntry, mt as CreateSpaceSessionInput, ni as TaskRunRecord, nn as PublicUserProfile, no as BoardCompositionPlayback, nr as SpaceConfigResponse, ns as ContentBlock, nt as CheckpointDiffPatchLine, oi as UserActivityResponse, on as ReferenceAggregateGroupBy, oo as BoardTimeline, or as SpaceEnvInput, ot as CheckpointRecord, pa as BoardAnimationSpec, pn as ReferenceResourceType, po as BoardRenderCost, pr as SpaceFsEncoding, pt as CreateSpacePromptResponse, q as BillingResponsePayload, qa as BoardEffect, qn as SpaceCommerceBuyerProfile, qo as CompletionMessage, qr as SpaceSandboxProvider, qt as PatchResourceLabelsInput, ri as UserActivityQuery, rn as PublicUserSpaceItem, rr as SpaceConfigUpdateResponse, rt as CheckpointDiffStats, si as UserProfile, sn as ReferenceAggregateResponse, so as BoardTimelineMarker, sr as SpaceFsCompleteUploadInput, st as ClaimReferralResponse, ti as TaskRunDetailResponse, tn as PublicUserPageResponse, tr as SpaceConfigInput, tt as CheckpointDiffPatchKind, ui as UserSessionSpaceSummary, un as ReferenceQueryResponse, ur as SpaceFsCreateUploadInput, ut as CreateSpaceInput, v as BatchUserProfilesResponse, va as BoardCameraFocusParams, vn as ResourceLabelsResponse, vr as SpaceFsPreparingFile, vt as CursorPageInfo, w as BillingCatalogProduct, wa as BoardMutationReceipt, wn as SessionMessagesResponse, wr as SpaceFsUploadEntry, wt as GlobalSearchType, x as BillingBalanceActivityList, xa as BoardCreateInput, xn as SessionBindingRecord, xr as SpaceFsReadFilesResponse, xt as GenerationUsageSummary, y as BillingBalanceActivity, ya as BoardCameraState, yn as SandboxSpecId, yr as SpaceFsReadFilesError, yt as GenerationUsageBlock, z as BillingProductBillingInterval, za as BoardAuthoringReadInput, zn as SpaceActivityResponse, zo as MessageToolCallsFile, zr as SpacePendingDiffSummary, zt as LabelSource } from "./chunks/environment.js";
|
|
2
|
+
import { Br as ListGenerationModelsResponse, Fr as SpaceStartupResponse, Hr as ModelStatusEntry, Ir as CreateGenerationTaskRequest, Jn as Fetch, Lr as CreateGenerationTaskResponse, Rr as GenerationTaskResult, Ur as ModelStatusResponse, Vr as PublicGenerationDeclaration, Yn as HttpError, Zn as HttpTransport, n as createHttpClient, qn as CohubClientOptions, t as CohubHttpClient, zr as GenerationUsageBilling } from "./chunks/http.js";
|
|
3
|
+
export { AcceptInvitationResponse, ApiError, BatchUserProfilesResponse, BillingBalanceActivity, BillingBalanceActivityKind, BillingBalanceActivityList, BillingBalanceActivityStatus, BillingCatalog, BillingCatalogProduct, BillingCheckoutActionState, BillingCheckoutConfirmation, BillingCheckoutResult, BillingConversionIntent, BillingCreditExpiryGroup, BillingCreditGrantStatus, BillingCreditStatus, BillingCreditUnit, BillingDiscountOffer, BillingDiscountOfferRef, BillingDiscountPricing, BillingHistoryPagination, BillingPaymentStatus, BillingPluginStatus, BillingProductBillingInterval, BillingProductCreditBenefit, BillingProductDisplay, BillingProductKind, BillingProductPricing, BillingProductPromotion, BillingPromotionCodePreview, BillingRedemptionResult, BillingResponsePayload, BillingSubscriptionHistoryList, BillingSubscriptionHistoryStatus, BillingSubscriptionSummary, type BoardAnimationSpec, type BoardAnimationTarget, type BoardAssetRef, type BoardAuthoringItem, type BoardAuthoringReadInput, type BoardAuthoringSnapshot, type BoardCameraFocus, type BoardCameraFocusParams, type BoardCameraState, type BoardCapabilities, type BoardCapability, type BoardComposition, type BoardCompositionPlayback, type BoardCoordinateSpace, type BoardCreateInput, type BoardDealParams, type BoardDiagnostic, type BoardEasing, type BoardEffect, type BoardEffectInput, type BoardItemPatch, type BoardManifest, type BoardMutationReceipt, type BoardPlaybackCommand, type BoardPlaybackPolicy, type BoardPlaybackSnapshot, type BoardProceduralClip, type BoardRecord, type BoardRenderCost, type BoardSemanticCommand, type BoardSemanticMutation, type BoardSummary, type BoardTimeline, type BoardTimelineMarker, type BoardTrack, type BoardTransactionOperation, type BoardTransactionRecord, type BoardTransactionsPage, type BoardTransactionsReadInput, type BoardValidationResult, Channel, type ChannelConfig, type ChannelHealth, type ChannelHealthReasonCode, type ChannelRuntimeState, CheckpointDiffDelivery, CheckpointDiffFile, CheckpointDiffFileResponse, CheckpointDiffPatchKind, CheckpointDiffPatchLine, CheckpointDiffStats, CheckpointDiffStatus, CheckpointDiffSummary, CheckpointRecord, ClaimReferralResponse, type CohubClientOptions, CohubHttpClient, type CompletionAssistantMessage, type CompletionMessage, type CompletionMessageRole, type CompletionThinkingLevel, type CompletionUsage, type ContentBlock, type CreateGenerationTaskRequest, type CreateGenerationTaskResponse, CreateInvitationInput, CreateInvitationResponse, type CreateSpaceCompletionInput, CreateSpaceInput, CreateSpaceModInput, CreateSpacePromptInput, CreateSpacePromptResponse, CreateSpaceSessionInput, CronJobPayload, CronJobRecord, CronJobUpdatePatch, CursorPageInfo, type DiscordChannelConfig, type FeishuChannelConfig, type Fetch, type GenerationContentBlock, type GenerationPolicy, type GenerationResult, type GenerationTaskResult, type GenerationUsageBilling, GenerationUsageBlock, GenerationUsageHourlyStat, GenerationUsageSummary, GlobalSearchResponse, GlobalSearchResult, GlobalSearchType, GlobalSearchViewerRelation, HttpError, HttpTransport, InvitationDetail, JsonObject, JsonPrimitive, JsonValue, LabelAssignmentListItem, LabelAssignmentPageInfo, LabelAssignmentRecord, LabelItemsResponse, LabelItemsSessionFork, LabelListItem, LabelRecord, LabelResourceType, LabelScopeType, LabelSource, type ListGenerationModelsResponse, MeResponse, type MessageRecord, type MessageToolCallsFile, ModelCatalogEntry, type ModelStatusEntry, type ModelStatusResponse, type ModelThinkingLevel, PERMISSIONS, PaletteOverviewResponse, PaletteOverviewSession, PaletteOverviewSpace, PaletteOverviewSpaceRelation, PatchResourceLabelsInput, PatchResourceLabelsResponse, Permission, PromptAccessMode, PromptTemplateCatalogEntry, PromptTemplateCatalogResponse, type PublicGenerationDeclaration, PublicReferral, PublicUserAppItem, PublicUserPageResponse, PublicUserProfile, PublicUserSpaceItem, PublicUserWorkItem, ReferenceAggregateGroup, ReferenceAggregateGroupBy, ReferenceAggregateResponse, ReferenceDirection, ReferenceKind, ReferenceQueryResponse, ReferenceQueryableType, ReferenceRecord, ReferenceResourceType, ReferralDashboard, ReferralListItem, ReferralReward, ReferralStatus, ResourceLabelsResponse, SandboxSpecId, SendMessageCronJobPayload, SessionBindingRecord, type SessionForkRecord, SessionMessageResponse, SessionMessagesPaginatedResponse, SessionMessagesResponse, SessionRecord, type SessionTurnIndexItem, SessionTurnIndexResponse, type SessionTurnRecord, SessionTurnResponse, type SessionTurnSegmentRecord, SessionTurnSignedUrlsResponse, SessionTurnStreamSnapshotResponse, SessionTurnWindowResponse, SessionTurnsPaginatedResponse, SkillCatalogEntry, SkillCatalogResponse, SkillCatalogSource, SpaceAccess, SpaceAccessPolicy, SpaceActivityAppRanking, SpaceActivityContributor, SpaceActivityResponse, SpaceBootstrapMeta, SpaceBootstrapSource, SpaceBootstrapStage, SpaceBootstrapStatus, SpaceChannelBindingInput, SpaceCheckpointDetailResponse, SpaceCommerceBenefit, SpaceCommerceBuyerProfile, SpaceCommerceCreditsBenefit, SpaceCommerceFeatureBenefit, SpaceCommerceOrder, SpaceCommerceProduct, SpaceCommerceProductBenefitBinding, SpaceCommerceProductCreditBenefit, type SpaceCompletionResult, type SpaceCompletionStreamEvent, SpaceConfig, SpaceConfigInput, SpaceConfigResponse, SpaceConfigUpdateResponse, SpaceCreateResponse, SpaceDefaultResponse, SpaceEnvInput, SpaceFsCompleteUploadInput, SpaceFsCompleteUploadResponse, SpaceFsCreateDirectoryInput, SpaceFsCreateUploadInput, SpaceFsCreateUploadResponse, SpaceFsDeleteNodeInput, SpaceFsEncoding, SpaceFsEntry, SpaceFsFileKind, SpaceFsFileResponse, SpaceFsMoveInput, SpaceFsPreparingFile, SpaceFsReadFilesError, SpaceFsReadFilesInput, SpaceFsReadFilesResponse, SpaceFsTreeResponse, SpaceFsUploadDestination, SpaceFsUploadEntry, SpaceFsUploadError, SpaceFsUploadPlanEntry, SpaceFsUploadPlanEntryInput, SpaceFsUploadProgress, SpaceFsUploadResponse, SpaceFsWriteFileInput, SpaceInvitation, SpaceInvitationListResponse, SpaceInvitationLocation, SpaceListItem, SpaceMember, SpaceMeta, SpaceModListItem, SpacePendingDiffFileResponse, SpacePendingDiffSummary, SpacePresenceSnapshot, SpacePresenceUser, SpacePublicProfile, SpaceRecord, SpaceRole, SpaceSandboxAutoDestroyPolicy, SpaceSandboxConfig, SpaceSandboxProvider, SpaceSessionsResponse, type SpaceStartupResponse, SpaceTurnAuthorFilter, SpaceTurnListItem, SpaceTurnsResponse, SpaceUsageHourlyStat, SpaceUsageResponse, SpaceUsageSummary, type StoredIntermediateMessage, type StoredToolCall, TaskRunDetailResponse, TaskRunRecord, type TurnIntermediateMessagesFile, UserActivityQuery, UserActivityRange, UserActivityRankings, UserActivityResponse, UserProfile, UserRulesResponse, UserSessionListItem, UserSessionSpaceSummary, UserSessionsResponse, createHttpClient, scopeListHasPermission };
|