@neta-art/cohub 8.10.2 → 8.11.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.
@@ -1,5 +1,6 @@
1
- import { BOARD_FONT_STACK } from "../../../protocol/dist/board-constants.js";
2
- import { fileBaseName, filePreviewKind } from "../../core/file-preview.js";
1
+ import { BOARD_FONT_STACK, BOARD_MONO_FONT_STACK } from "../../../protocol/dist/board-constants.js";
2
+ import { fileCategory, fileStem } from "../../core/file-snapshot.js";
3
+ import { fileCategoryAccent, fileMetaLine, filePreviewKind, fileTypeLabel } from "../../core/file-preview.js";
3
4
  import { syncTextResolution } from "../text-resolution.js";
4
5
  import { positionShell } from "./base-card-renderer.js";
5
6
  import { drawFarPlate } from "./far-plate.js";
@@ -31,8 +32,12 @@ const TITLE_LINE = TITLE_SIZE * 1.35;
31
32
  const TITLE_MAX_LINES = 2;
32
33
  const EXCERPT_SIZE = 11;
33
34
  const EXCERPT_LINE = EXCERPT_SIZE * 1.45;
34
- const EXCERPT_MAX_LINES = 4;
35
+ const EXCERPT_MAX_LINES = 3;
36
+ const META_SIZE = 10;
37
+ const META_LINE = 14;
38
+ const TYPE_MARK_SIZE = 28;
35
39
  const GAP = 4;
40
+ const STRIPE = 2;
36
41
  /** Zoom below which the title is dropped (glyphs are sub-pixel). */
37
42
  const LOD_TITLE_ZOOM = .35;
38
43
  /** Zoom below which the excerpt is dropped. */
@@ -168,8 +173,13 @@ function sync(container, item, context) {
168
173
  const coverFailed = Boolean(key && !texture && context.hasError(key));
169
174
  const fileState = context.fileState(item.ref.path);
170
175
  const band = coverHeight(item, height);
176
+ const kind = filePreviewKind(item.snapshot);
177
+ const category = fileCategory(item.ref.path, item.snapshot?.mimeType);
178
+ const accent = fileCategoryAccent(category, context.palette);
171
179
  syncTextResolution(parts.title, parts.titleRes, context.zoom);
172
180
  syncTextResolution(parts.excerpt, parts.excerptRes, context.zoom);
181
+ syncTextResolution(parts.meta, parts.metaRes, context.zoom);
182
+ syncTextResolution(parts.typeMark, parts.typeMarkRes, context.zoom);
173
183
  const visualSig = [
174
184
  key ?? "",
175
185
  width,
@@ -180,9 +190,12 @@ function sync(container, item, context) {
180
190
  texture ? `${texture.width}x${texture.height}` : "none",
181
191
  coverFailed,
182
192
  fileState,
193
+ kind,
194
+ category,
183
195
  context.colorScheme,
184
196
  context.palette.surface,
185
- context.palette.hover
197
+ context.palette.hover,
198
+ accent
186
199
  ].join("|");
187
200
  if (visualSig !== parts.visualSig) {
188
201
  parts.visualSig = visualSig;
@@ -218,41 +231,67 @@ function sync(container, item, context) {
218
231
  }
219
232
  parts.cover.visible = showCover;
220
233
  parts.coverMask.visible = showCover;
221
- if (!band) parts.plate.rect(1, 1, 2, height - 2).fill({
222
- color: context.palette.muted,
223
- alpha: .35
234
+ if (!band) parts.plate.rect(1, 1, STRIPE, height - 2).fill({
235
+ color: accent,
236
+ alpha: .55
224
237
  });
225
238
  parts.title.visible = detail !== "plate";
226
239
  parts.excerpt.visible = detail === "full";
240
+ parts.meta.visible = detail === "full";
241
+ parts.typeMark.visible = kind === "blank" && detail !== "plate";
227
242
  }
228
- if (detail === "plate") return;
229
- const title = item.snapshot?.title || fileBaseName(item.ref.path);
243
+ if (detail === "plate") {
244
+ parts.typeMark.visible = false;
245
+ parts.meta.visible = false;
246
+ return;
247
+ }
248
+ const title = item.snapshot?.title || fileStem(item.ref.path);
230
249
  const excerpt = item.snapshot?.excerpt ?? "";
250
+ const meta = fileMetaLine(item.ref.path, item.snapshot?.size);
251
+ const mark = fileTypeLabel(item.ref.path);
231
252
  const innerWidth = Math.max(1, width - 20);
253
+ const showTypeMark = kind === "blank";
232
254
  const textSig = [
233
255
  title,
234
256
  excerpt,
257
+ meta,
258
+ mark,
235
259
  detail,
236
260
  innerWidth,
237
261
  band,
238
262
  height,
263
+ kind,
239
264
  context.palette.text,
240
- context.palette.muted
265
+ context.palette.muted,
266
+ accent
241
267
  ].join("|");
242
268
  if (textSig === parts.textSig) return;
243
269
  parts.textSig = textSig;
244
270
  const top = band > 0 ? band + PADDING * .8 : PADDING;
245
- const contentBottom = height - PADDING;
246
- const titleLines = linesInRoom(Math.max(0, contentBottom - top), TITLE_LINE, TITLE_MAX_LINES);
271
+ const metaReserve = detail === "full" && meta ? META_LINE : 0;
272
+ const contentBottom = height - PADDING - metaReserve;
273
+ let cursor = top;
274
+ if (showTypeMark) {
275
+ const markSize = Math.max(18, Math.min(TYPE_MARK_SIZE, Math.round(height * .22)));
276
+ parts.typeMark.style.fill = accent;
277
+ parts.typeMark.style.fontSize = markSize;
278
+ parts.typeMark.style.lineHeight = markSize * 1.1;
279
+ if (parts.typeMark.text !== mark) parts.typeMark.text = mark;
280
+ parts.typeMark.position.set(PADDING, cursor);
281
+ parts.typeMark.visible = true;
282
+ cursor += parts.typeMark.height + GAP;
283
+ } else parts.typeMark.visible = false;
284
+ const titleLines = linesInRoom(Math.max(0, contentBottom - cursor), TITLE_LINE, TITLE_MAX_LINES);
247
285
  parts.title.style.fill = context.palette.text;
248
286
  fitTextToLines(parts.title, title, titleLines, innerWidth);
249
- parts.title.position.set(PADDING, top);
287
+ parts.title.position.set(PADDING, cursor);
250
288
  parts.title.visible = titleLines > 0;
251
289
  if (detail !== "full") {
252
290
  parts.excerpt.visible = false;
291
+ parts.meta.visible = false;
253
292
  return;
254
293
  }
255
- const excerptTop = top + (titleLines > 0 ? parts.title.height + GAP : 0);
294
+ const excerptTop = cursor + (titleLines > 0 ? parts.title.height + GAP : 0);
256
295
  const excerptLines = linesInRoom(contentBottom - excerptTop, EXCERPT_LINE, EXCERPT_MAX_LINES);
257
296
  const showExcerpt = Boolean(excerpt) && excerptLines > 0;
258
297
  if (showExcerpt) {
@@ -261,6 +300,12 @@ function sync(container, item, context) {
261
300
  parts.excerpt.position.set(PADDING, excerptTop);
262
301
  }
263
302
  parts.excerpt.visible = showExcerpt;
303
+ if (meta) {
304
+ parts.meta.style.fill = context.palette.muted;
305
+ if (parts.meta.text !== meta) parts.meta.text = meta;
306
+ parts.meta.position.set(PADDING, height - PADDING - META_LINE + 2);
307
+ parts.meta.visible = true;
308
+ } else parts.meta.visible = false;
264
309
  }
265
310
  const fileCardRenderer = {
266
311
  id: "file-card",
@@ -302,8 +347,32 @@ const fileCardRenderer = {
302
347
  resolution,
303
348
  roundPixels: true
304
349
  });
350
+ const meta = new Text({
351
+ text: "",
352
+ style: {
353
+ fill: context.palette.muted,
354
+ fontFamily: BOARD_MONO_FONT_STACK,
355
+ fontSize: META_SIZE,
356
+ fontWeight: "500",
357
+ lineHeight: META_LINE
358
+ },
359
+ resolution,
360
+ roundPixels: true
361
+ });
362
+ const typeMark = new Text({
363
+ text: "",
364
+ style: {
365
+ fill: context.palette.muted,
366
+ fontFamily: BOARD_MONO_FONT_STACK,
367
+ fontSize: TYPE_MARK_SIZE,
368
+ fontWeight: "700",
369
+ lineHeight: TYPE_MARK_SIZE * 1.1
370
+ },
371
+ resolution,
372
+ roundPixels: true
373
+ });
305
374
  body.mask = clip;
306
- body.addChild(cover, coverMask, title, excerpt);
375
+ body.addChild(cover, coverMask, typeMark, title, excerpt, meta);
307
376
  root.addChild(plate, body, clip);
308
377
  partsByContainer.set(root, {
309
378
  root,
@@ -312,12 +381,16 @@ const fileCardRenderer = {
312
381
  clip,
313
382
  cover,
314
383
  coverMask,
384
+ typeMark,
315
385
  title,
316
386
  excerpt,
387
+ meta,
317
388
  visualSig: "",
318
389
  textSig: "",
319
390
  titleRes: { resolution },
320
- excerptRes: { resolution }
391
+ excerptRes: { resolution },
392
+ metaRes: { resolution },
393
+ typeMarkRes: { resolution }
321
394
  });
322
395
  if (item.type === "file") sync(root, item, context);
323
396
  return root;
@@ -330,11 +403,12 @@ const fileCardRenderer = {
330
403
  * would mean one draw call per distinct image and defeat the batch.
331
404
  */
332
405
  renderFar: (graphics, item, context) => {
406
+ const category = fileCategory(item.type === "file" ? item.ref.path : "", item.type === "file" ? item.snapshot?.mimeType : void 0);
333
407
  drawFarPlate(graphics, item.frame, {
334
408
  fill: context.palette.surface,
335
409
  fillAlpha: .96,
336
- accent: context.palette.muted,
337
- accentAlpha: .4
410
+ accent: fileCategoryAccent(category, context.palette),
411
+ accentAlpha: .45
338
412
  });
339
413
  },
340
414
  destroy: (container) => {
@@ -268,15 +268,23 @@ type AppPromotionEventKey = typeof APP_PROMOTION_EVENT_KEYS[number];
268
268
  //#region src/app-runtime.d.ts
269
269
  type AppRuntimeInvocationContext = {
270
270
  surface: "page" | "app" | "background" | "broker";
271
- source?: "desktop_command" | "user" | "route";
271
+ source?: "desktop_command" | "user" | "route" | "embed";
272
272
  spaceId?: string;
273
273
  sessionId?: string;
274
274
  turnId?: string;
275
275
  toolCallId?: string;
276
+ /**
277
+ * The App whose page embeds this one, when `source` is `embed`. Present only
278
+ * when that App's published content is served from the embedding frame.
279
+ */
280
+ embedder?: {
281
+ appId: string;
282
+ slug: string;
283
+ };
276
284
  };
277
285
  /** Current navigation context supplied by the embedding Cohub shell. */
278
286
  type AppRuntimeShellContext = {
279
- surface: "workspace" | "background" | "broker";
287
+ surface: "workspace" | "background" | "broker" | "embed";
280
288
  space: {
281
289
  id: string;
282
290
  name?: string | null;
@@ -348,6 +356,8 @@ interface AppRuntimeTransport {
348
356
  subscribeContextChanged?: (listener: AppContextChangedListener) => () => void;
349
357
  /** Whether this transport can address the embedding Cohub workspace. */
350
358
  supportsNavigation?: boolean;
359
+ /** Posts a one-way message to the host; no reply is expected. */
360
+ notify?: (message: Record<string, unknown>) => void;
351
361
  }
352
362
  /**
353
363
  * Bridge-mode transport: posts messages to `window.parent` (the Cohub host
@@ -360,6 +370,7 @@ declare class ParentBridgeTransport implements AppRuntimeTransport {
360
370
  private contextListeners;
361
371
  private contextListener;
362
372
  subscribeContextChanged(listener: AppContextChangedListener): () => void;
373
+ notify(message: Record<string, unknown>): void;
363
374
  request<T>(message: Record<string, unknown>, options?: AppRuntimeRequestOptions): Promise<T | null>;
364
375
  }
365
376
  /**
@@ -392,9 +403,10 @@ declare class PopupBrokerTransport implements AppRuntimeTransport {
392
403
  private resolveAppId;
393
404
  request<T>(message: Record<string, unknown>, options?: AppRuntimeRequestOptions): Promise<T | null>;
394
405
  }
395
- /** Outcome of {@link AppRuntimeApi.requestSpaceAuthorization}. */
406
+ /** Outcome of {@link AppRuntimeApi.requestSpaceAuthorization} / {@link AppRuntimeApi.requestCreateSpaceAuthorization}. */
396
407
  type AppRuntimeAuthorizationResult = {
397
408
  granted: boolean;
409
+ /** Picked or created Space. Null on deny. Set with `granted: false` when create persisted but did not provision. */
398
410
  space: {
399
411
  id: string;
400
412
  name: string | null;
@@ -426,6 +438,12 @@ declare class AppRuntimeApi {
426
438
  context(): Promise<AppRuntimeContext | null>;
427
439
  onContextChanged(listener: AppContextChangedListener): () => void;
428
440
  navigationOpen(target: AppNavigationTarget, call?: AppNavigationCall): Promise<AppNavigationOpenResponse>;
441
+ /**
442
+ * Asks the host to close this App: a workspace tab closes, an embedded page
443
+ * forwards the request to its embedder, a standalone page closes the tab.
444
+ * No-op in broker mode, where the App owns its own window.
445
+ */
446
+ requestClose(): void;
429
447
  getAccessToken(options?: {
430
448
  forceRefresh?: boolean;
431
449
  }): Promise<string | null>;
@@ -451,6 +469,19 @@ declare class AppRuntimeApi {
451
469
  reason?: string;
452
470
  alwaysAsk?: boolean;
453
471
  }): Promise<AppRuntimeAuthorizationResult>;
472
+ /**
473
+ * One consent: create a viewer-owned Space (full `CreateSpaceInput`, same
474
+ * as `spaces.create`) and grant the scopes on it. Never silent — each
475
+ * confirm mints a new Space. The host creates with the viewer's account
476
+ * token; the app never calls `POST /api/spaces` itself.
477
+ * `{ granted: false, space }` means the Space was created but not provisioned;
478
+ * no grant was issued. A viewer deny is `{ granted: false, space: null }`.
479
+ */
480
+ requestCreateSpaceAuthorization(input: {
481
+ scopes: Permission[];
482
+ space: CreateSpaceInput;
483
+ reason?: string;
484
+ }): Promise<AppRuntimeAuthorizationResult>;
454
485
  purchase(input: {
455
486
  productKey: string;
456
487
  purchaseAttemptId?: string;
package/dist/index.d.ts CHANGED
@@ -55,6 +55,21 @@ declare const parseAppSurfaceReady: (value: unknown) => AppSurfaceReadyMessage |
55
55
  declare const parseAppSurfaceResponse: (value: unknown) => AppSurfaceResponseMessage | null;
56
56
  declare const buildAppSurfaceRequest: (input: Omit<AppSurfaceRequestMessage, keyof SurfaceEnvelope | "type">) => AppSurfaceRequestMessage;
57
57
  //#endregion
58
+ //#region ../protocol/dist/app-embed.d.ts
59
+ /** Shell location the embedder forwards to the embedded App. */
60
+ type AppEmbedShell = {
61
+ space: {
62
+ id: string;
63
+ name?: string | null;
64
+ } | null;
65
+ session: {
66
+ id: string;
67
+ } | null;
68
+ turn: {
69
+ id: string;
70
+ } | null;
71
+ };
72
+ //#endregion
58
73
  //#region src/apis/billing.d.ts
59
74
  declare class BillingApi {
60
75
  private readonly transport;
@@ -292,6 +307,30 @@ declare class AppSurfaceApi {
292
307
  /** @deprecated Use `AppSurfaceApi`. */
293
308
  declare class WorkSurfaceApi extends AppSurfaceApi {}
294
309
  //#endregion
310
+ //#region src/app-embed.d.ts
311
+ type AppEmbedAttachOptions = {
312
+ /** The embedding App's id; exposed as `invocation.embedder` once Cohub verifies it against the frame origin. */
313
+ appId: string;
314
+ /** Shell location to forward; usually the embedder's own `context.shell`. */
315
+ shell?: AppEmbedShell | null;
316
+ /** The embedded App asked to be closed. */
317
+ onCloseRequest?: () => void;
318
+ };
319
+ type AppEmbedHandle = {
320
+ readonly embedId: string;
321
+ /** Forwards a new shell location to the embedded App. */
322
+ setShell: (shell: AppEmbedShell | null) => void;
323
+ dispose: () => void;
324
+ };
325
+ /**
326
+ * Attaches to an iframe that renders a Cohub public App page. The page keeps
327
+ * owning the embedded App's runtime; this only forwards navigation hints and
328
+ * relays the App's close intent back to the embedder. Either side may come up
329
+ * first: the page asks to be attached, and the embedder also announces itself
330
+ * on attach and on every frame load.
331
+ */
332
+ declare function attachAppEmbed(frame: HTMLIFrameElement, options: AppEmbedAttachOptions): AppEmbedHandle;
333
+ //#endregion
295
334
  //#region src/client.d.ts
296
335
  declare class CohubClient {
297
336
  readonly spaces: SpacesApi;
@@ -345,12 +384,24 @@ declare class CohubClient {
345
384
  reason?: string;
346
385
  alwaysAsk?: boolean;
347
386
  }) => Promise<AppRuntimeAuthorizationResult>;
387
+ /** One consent: create a viewer-owned Space and grant the scopes on it. `space` is `CreateSpaceInput`. */
388
+ requestCreateSpace: (input: {
389
+ scopes: Permission[];
390
+ space: CreateSpaceInput;
391
+ reason?: string;
392
+ }) => Promise<AppRuntimeAuthorizationResult>;
348
393
  };
349
394
  readonly app: {
350
395
  realtime: AppRealtimeApi;
351
396
  /** Expose callable methods from inside a published app. */
352
397
  surface: AppSurfaceApi;
353
398
  onContextChanged: (listener: AppContextChangedListener) => () => void;
399
+ /** Ask the host to close this App's surface. */
400
+ requestClose: () => void;
401
+ embed: {
402
+ /** Host another App's public page in an iframe and forward the shell location to it. */
403
+ attach: typeof attachAppEmbed;
404
+ };
354
405
  composer: {
355
406
  /** Attach or update context from this app in the Cohub composer. */
356
407
  setChip: (chip: AppComposerChip) => void;
@@ -467,6 +518,9 @@ type AppAuthorizeSpaceOption = {
467
518
  * resolved by the host (never trusted from the app) for the dialog copy.
468
519
  * `selectSpace` asks the viewer to pick the target space inside the dialog —
469
520
  * one consent covers both the choice and the grant.
521
+ * `createSpace` asks the host to create a viewer-owned Space (same payload as
522
+ * `POST /api/spaces`) and grant the scopes on it — never silent, never mixed
523
+ * with `spaceId` / `selectSpace`.
470
524
  */
471
525
  type AppAuthorizeRequest = {
472
526
  requestId: string;
@@ -478,6 +532,8 @@ type AppAuthorizeRequest = {
478
532
  spaces?: AppAuthorizeSpaceOption[] | null;
479
533
  /** App home space display name, for context on home-space grants. */
480
534
  homeSpaceName?: string | null;
535
+ /** Viewer-owned Space to create as part of this consent. */
536
+ createSpace?: CreateSpaceInput;
481
537
  };
482
538
  /**
483
539
  * A purchase request being processed by the host.
@@ -824,4 +880,4 @@ declare const BOARD_CHANNELS: {
824
880
  };
825
881
  };
826
882
  //#endregion
827
- export { APP_COMPOSER_CHIP_CONTENT_MAX_BYTES, APP_COMPOSER_CHIP_KEY_MAX_LENGTH, APP_COMPOSER_CHIP_LABEL_MAX_LENGTH, APP_SURFACE_READY_TIMEOUT_MS, APP_SURFACE_REQUEST_TIMEOUT_MS, AcceptInvitationResponse, ApiError, type AppActionRunResponse, type AppArtifactDescriptor, type AppArtifactDescriptor as WorkArtifactDescriptor, type AppArtifactDownloadDescriptor, type AppArtifactDownloadDescriptor as WorkArtifactDownloadDescriptor, type AppArtifactManifest, type AppArtifactManifest as WorkArtifactManifest, type AppArtifactManifestFile, type AppArtifactManifestFile as WorkArtifactManifestFile, type AppAuthorizeRequest, type AppAuthorizeRequest as WorkAuthorizeRequest, type AppAuthorizeResponse, type AppBoardArtifactManifest, type AppBoardArtifactManifest as WorkBoardArtifactManifest, type AppBoardAsset, type AppBoardAsset as WorkBoardAsset, type AppBridgeAuthorizationContext, type AppBridgeAuthorizationContext as WorkBridgeAuthorizationContext, type AppBridgeCore, type AppBridgeCore as WorkBridgeCore, type AppBridgeCoreApp, type AppBridgeCoreApp as WorkBridgeCoreWork, type AppBridgeCoreConfig, type AppBridgeCoreConfig as WorkBridgeCoreConfig, type AppBridgeDialogState, type AppBridgeDialogState as WorkBridgeDialogState, type AppBridgeGetAccessToken, type AppBridgeGetAccessToken as WorkBridgeGetAccessToken, type AppBridgeGetViewerUuid, type AppBridgeGetViewerUuid as WorkBridgeGetViewerUuid, type AppBridgeRequestSignIn, type AppBridgeRequestSignIn as WorkBridgeRequestSignIn, type AppCheckoutStarted, type AppCheckoutStarted as WorkCheckoutStarted, AppCommerceApi, type AppCommerceCheckoutStatus, type AppCommerceCreditConsumeResponse, type AppCommerceCreditConsumeStatus, type AppCommerceEntitlement, type AppCommerceEntitlementsResponse, type AppCommerceOrder, type AppCommerceProductResolveResponse, type AppCommercePurchaseResponse, type AppComposerChip, type AppContent, type AppContentDownload, type AppContentKind, type AppContentKind as WorkContentKind, type AppContextChangedListener, type AppCreateInput, type AppDetailResponse, type AppExtractedPageMeta, type AppGetResponse, type AppIdResolver, type AppIdResolver as WorkIdResolver, type AppMeta, type AppNavigationCall, type AppNavigationLaunch, type AppNavigationOpenMessage, type AppNavigationOpenResponse, type AppNavigationTarget, type AppPresentationMeta, type AppPromotionAttributionContext, type AppPromotionAttributionContext as WorkPromotionAttributionContext, type AppPromotionCreateInput, type AppPromotionEventResponse, type AppPromotionProvider, type AppPromotionProviderStatus, type AppPromotionRecord, type AppPromotionStatsResponse, type AppPublicOwnerRecord, type AppPublicRef, type AppPublicSpaceRecord, type AppPurchaseRequest, type AppPurchaseRequest as WorkPurchaseRequest, AppRealtimeApi, type AppRecord, AppRefParseError, type AppResolveResponse, AppRoom, type AppRoomAdmissionResponse, type AppRoomCreateInput, type AppRoomEvent, type AppRoomEventMap, type AppRoomPublishResult, type AppRoomState, AppRuntimeApi, AppRuntimeApi as WorkRuntimeApi, type AppRuntimeCheckoutState, type AppRuntimeCheckoutState as WorkRuntimeCheckoutState, type AppRuntimeCheckoutStatus, type AppRuntimeCheckoutStatus as WorkRuntimeCheckoutStatus, type AppRuntimeContext, type AppRuntimeContext as WorkRuntimeContext, type AppRuntimeInvocationContext, type AppRuntimeInvocationContext as WorkRuntimeInvocationContext, type AppRuntimeModeConfig, type AppRuntimeModeConfig as WorkRuntimeModeConfig, type AppRuntimeRequestOptions, type AppRuntimeRequestOptions as WorkRuntimeRequestOptions, type AppRuntimeShellContext, type AppRuntimeTransport, type AppRuntimeTransport as WorkRuntimeTransport, type AppSessionResponse, type AppStatus, AppSurfaceApi, type AppSurfaceHandler, type AppSurfaceHandler as WorkSurfaceHandler, type AppSurfaceHandlerContext, type AppSurfaceHandlerContext as WorkSurfaceHandlerContext, type AppSurfaceReadyMessage, type AppSurfaceResponseMessage, type AppTargetType, type AppUpdateInput, type AppVersionPublishedEvent, type AppVersionPublishedEvent as WorkVersionPublishedEvent, type AppVersionRecord, type AppViewSource, type AppViewStatsResponse, type AppViewerGrantRecord, type AppVisibility, AppsApi, type AssistantMessageCommit, BILLING_ACCESS_BLOCKED_ERROR_CODE, BOARD_ANIMATION_CHANNEL_CAPABILITIES, BOARD_CHANNELS, BOARD_COLOR_IDS, BOARD_GEO_KINDS, BatchUserProfilesResponse, BillingApi, 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, BoardAuthoringItemSchema, type BoardAuthoringReadInput, type BoardAuthoringSnapshot, type BoardAwarenessGesture, type BoardAwarenessNodePreview, type BoardAwarenessStateUpdate, type BoardAwarenessUpdate, type BoardAwarenessUpdatedEvent, type BoardCameraFocus, type BoardCameraFocusParams, type BoardCameraState, type BoardCapabilities, type BoardCapability, type BoardChangedEvent, BoardClient, type BoardColorId, type BoardComposition, BoardCompositionInputSchema, type BoardCompositionPlayback, BoardCompositionSchema, type BoardCoordinateSpace, type BoardCreateInput, type BoardDiagnostic, type BoardEasing, type BoardEffect, type BoardEffectInput, BoardEffectInputSchema, BoardEffectSchema, type BoardEventName, BoardExtensionDefinition, BoardExtensionRegistry, type BoardGeoKind, type BoardItemPatch, BoardItemPatchSchema, type BoardManifest, type BoardMutationReceipt, type BoardPlaybackChangedEvent, type BoardPlaybackCommand, type BoardPlaybackPolicy, BoardPlaybackPolicySchema, type BoardPlaybackSnapshot, BoardPresetDefinition, type BoardProceduralClip, type BoardRecord, type BoardRenderCost, type BoardSemanticCommand, BoardSemanticCommandSchema, type BoardSemanticMutation, type BoardSubscriptionHandlers, type BoardSummary, type BoardTimeline, type BoardTimelineMarker, type BoardTrack, type BoardTrackInterpolation, type BoardValidationResult, type BuildSpaceInvitePathInput, type BuildSpacePathInput, COHUB_ENVIRONMENTS, COHUB_SOURCE_HEADER, COHUB_SOURCE_HEADER_NAMES, Channel, type ChannelConfig, type ChannelEnvelope, type ChannelHealth, type ChannelHealthReasonCode, type ChannelRuntimeState, CheckpointDiffDelivery, CheckpointDiffFile, CheckpointDiffFileResponse, CheckpointDiffPatchKind, CheckpointDiffPatchLine, CheckpointDiffStats, CheckpointDiffStatus, CheckpointDiffSummary, CheckpointRecord, ClaimReferralResponse, CohubClient, type CohubClientOptions, type CohubContext, type CohubEnvironment, type CohubExecutionContext, CohubHttpClient, type CohubRuntimeKind, type CompletionAssistantMessage, type CompletionMessage, type CompletionMessageRole, type CompletionThinkingLevel, type CompletionUsage, CompositionInput, type ContentBlock, type CreateDesktopCommandInput, type CreateGenerationTaskRequest, type CreateGenerationTaskResponse, CreateInvitationInput, CreateInvitationResponse, type CreatePublicAssetUploadInput, type CreatePublicAssetUploadResponse, type CreateSpaceCompletionInput, CreateSpaceInput, CreateSpaceModInput, CreateSpacePromptInput, CreateSpacePromptResponse, CreateSpaceSessionInput, type CreateUiCommandInput, CronJobPayload, CronJobRecord, CronJobUpdatePatch, CursorPageInfo, DEFAULT_BOARD_LIMITS, DESKTOP_COMMAND_DEFAULT_TIMEOUT_MS, DESKTOP_COMMAND_MAX_TIMEOUT_MS, DESKTOP_COMMAND_PAYLOAD_MAX_BYTES, DESKTOP_COMMAND_PENDING_TTL_SECONDS, DESKTOP_COMMAND_SETTLEMENT_GRACE_SECONDS, DESKTOP_COMMAND_TERMINAL_TTL_SECONDS, DESKTOP_COMMAND_VERSION, type DesktopAppTarget, type DesktopCall, type DesktopCommand, type DesktopCommandDispatchedPayload, type DesktopCommandError, type DesktopCommandRecord, type DesktopCommandStatus, DesktopCommandsApi, type DesktopFileTarget, type DesktopOpenCommand, type DesktopTarget, type DiscordChannelConfig, FEATURE_NOT_ENTITLED_ERROR_CODE, type FeishuChannelConfig, type Fetch, type GenerationContentBlock, type GenerationModelPolicy, type GenerationModelVisibility, type GenerationParameterConstraint, type GenerationPolicy, GenerationPolicyError, type GenerationResult, type GenerationStreamCommitEvent, type GenerationStreamErrorEvent, type GenerationStreamEvent, type GenerationStreamFinalizedEvent, type GenerationStreamIntermediateMessage, type GenerationStreamLifecycleEvent, type GenerationStreamOutOfSyncEvent, type GenerationStreamStateEvent, type GenerationStreamSubscribeOptions, type GenerationStreamSubscriptionHandlers, type GenerationStreamTurnUpdatedEvent, type GenerationTaskResult, type GenerationUsageBilling, GenerationUsageBlock, GenerationUsageHourlyStat, GenerationUsageSummary, GlobalSearchResponse, GlobalSearchResult, GlobalSearchType, GlobalSearchViewerRelation, HttpError, type HttpTraceContext, InvitationDetail, JsonObject, JsonPrimitive, JsonValue, LabelAssignmentListItem, LabelAssignmentPageInfo, LabelAssignmentRecord, type LabelAssignmentsUpdatedEvent, 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, ParentBridgeTransport, type ParsedAppRef, type ParsedWorkRef, PatchResourceLabelsInput, PatchResourceLabelsResponse, Permission, PopupBrokerTransport, ProceduralClipInput, PromptAccessMode, PromptTemplateCatalogEntry, PromptTemplateCatalogResponse, type PublicAssetMimeType, type PublicAssetPurpose, type PublicAssetUploadProgress, type PublicAssetUploadProtocol, type PublicFileCreateUploadInput, type PublicFileCreateUploadResponse, type PublicFileListEntry, type PublicFileListResponse, type PublicFileUploadEntryInput, type PublicFileUploadPlanEntry, type PublicFileUrlResponse, type PublicGenerationDeclaration, PublicReferral, PublicUserAppItem, PublicUserPageResponse, PublicUserProfile, PublicUserSpaceItem, PublicUserWorkItem, QualityProfile, REQUEST_SOURCE_VIA_MAX_LENGTH, type RawHttpResponse, type RealtimeAppRecord, type RealtimeAppRecord as RealtimeWorkRecord, type RealtimeAppVersionRecord, type RealtimeAppVersionRecord as RealtimeWorkVersionRecord, type RealtimeRoomDescriptor, type RealtimeRoomEvent, type RealtimeRoomMember, type RealtimeServerEvent, ReferenceAggregateGroup, ReferenceAggregateGroupBy, ReferenceAggregateResponse, ReferenceDirection, ReferenceKind, ReferenceQueryResponse, ReferenceQueryableType, ReferenceRecord, type ReferenceResourceSelector, ReferenceResourceType, ReferencesApi, ReferralDashboard, ReferralListItem, ReferralReward, ReferralStatus, ReferralsApi, RenderBounds, type RequestSource, type RequestSourceVia, ResourceLabelsResponse, SampledTrack, SandboxSpecId, SendMessageCronJobPayload, SessionBindingRecord, type SessionEventName, type SessionForkRecord, SessionGenerationStreamClient, SessionMessageResponse, SessionMessagesPaginatedResponse, SessionMessagesResponse, type SessionPatchApplyInput, type SessionPatchApplyResult, SessionPatchReducer, type SessionPatchState, type SessionPatchStatus, SessionRecord, type SessionSubscriptionHandlers, 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, type SpaceChannelBindingRecord, SpaceCheckpointDetailResponse, SpaceCommerceBenefit, SpaceCommerceBuyerProfile, SpaceCommerceCreditsBenefit, SpaceCommerceFeatureBenefit, SpaceCommerceOrder, SpaceCommerceProduct, SpaceCommerceProductBenefitBinding, SpaceCommerceProductCreditBenefit, type SpaceCompletionResult, type SpaceCompletionStreamEvent, SpaceConfig, SpaceConfigInput, SpaceConfigResponse, SpaceConfigUpdateResponse, SpaceCreateResponse, SpaceDefaultResponse, SpaceEnvInput, type SpaceEventName, 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, SpacePublicFilesApi, SpacePublicProfile, SpaceRecord, SpaceRole, SpaceSandboxAutoDestroyPolicy, SpaceSandboxConfig, SpaceSandboxProvider, SpaceSessionsResponse, type SpaceStartupResponse, SpaceTurnAuthorFilter, SpaceTurnListItem, type SpaceTurnListOptions, SpaceTurnsResponse, SpaceUsageHourlyStat, SpaceUsageResponse, SpaceUsageSummary, type StoredIntermediateMessage, type StoredToolCall, TaskRunDetailResponse, TaskRunRecord, type TaskWaitOptions, TrackInput, type TurnIntermediateMessagesFile, type UiCommand, type UiCommandError, type UiCommandRecord, type UiCommandStatus, UiCommandsApi, type UnauthorizedContext, type UploadAppSourceInput, type UploadChatAttachmentInput, type UploadChatImageAttachmentInput, type UploadPublicAssetInput, UserActivityQuery, UserActivityRange, UserActivityRankings, UserActivityResponse, UserProfile, UserRulesResponse, UserSessionListItem, UserSessionSpaceSummary, UserSessionsResponse, UsersApi, VoiceApi, type VoiceInputCallbacks, VoiceInputClient, type VoiceInputClientOptions, type VoiceInputCreateOptions, type VoiceInputEvent, type WaitForDesktopCommandOptions, type WaitForUiCommandOptions, type WebSocketConnectionState, WebsocketClient, type WorkAuthorizeResponse, WorkCommerceApi, type WorkCommerceCheckoutStatus, type WorkCommerceCreditConsumeResponse, type WorkCommerceCreditConsumeStatus, type WorkCommerceEntitlement, type WorkCommerceEntitlementsResponse, type WorkCommerceOrder, type WorkCommerceProductResolveResponse, type WorkCommercePurchaseResponse, type WorkContent, type WorkContentDownload, type WorkCreateInput, type WorkDetailResponse, type WorkExtractedPageMeta, type WorkGetResponse, type WorkMeta, type WorkPresentationMeta, type WorkPromotionCreateInput, type WorkPromotionEventResponse, type WorkPromotionProvider, type WorkPromotionProviderStatus, type WorkPromotionRecord, type WorkPromotionStatsResponse, type WorkPublicOwnerRecord, type WorkPublicRef, type WorkPublicSpaceRecord, WorkRealtimeApi, type WorkRecord, WorkRefParseError, type WorkResolveResponse, WorkRoom, type WorkRoomAdmissionResponse, type WorkRoomCreateInput, type WorkRoomEvent, type WorkRoomEventMap, type WorkRoomPublishResult, type WorkRoomState, type WorkSessionResponse, type WorkStatus, WorkSurfaceApi, type WorkTargetType, type WorkUpdateInput, type WorkVersionRecord, type WorkViewSource, type WorkViewStatsResponse, type WorkVisibility, assertGenerationRequestAllowedByPolicy, buildAppSurfaceRequest, buildSpaceInvitePath, buildSpacePath, clearGrantedAppScopes, compileComposition, composition, createAppBridgeCore, createAppBridgeCore as createWorkBridgeCore, createAppRuntime, createAppRuntime as createWorkRuntime, createBoardExtensionRegistry, createCohubClient, createHttpClient, createSessionGenerationStreamClient, createSessionPatchReducer, createSlugAppIdResolver, createSlugAppIdResolver as createSlugWorkIdResolver, createVoiceInputClient, createWebsocketClient, decodeGenerationPolicy, encodeGenerationPolicy, extractBillingPayload, filterDiscoverableGenerationModels, filterGenerationDeclarationsByPolicy, findGenerationModelPolicy, formatAppRef, formatWorkRef, getAllowedGenerationModelIds, getCohubContext, hasGrantedAppScopes, hasRequestSourceIdentity, isAppId, isBillingAccessBlockedCode, isBillingAccessBlockedError, isDesktopCallMethod, isFeatureNotEntitledError, isGenerationModelHidden, isHttpErrorCode, isRequestSourceClientId, isRequestSourceEmpty, isRequestSourceUuid, isTerminalDesktopCommandStatus, isUuid, isWorkId, joinApiUrl, matchesUnauthorizedErrorToken, mergeRequestSourceIntoMeta, normalizeBaseUrl, normalizeGenerationPolicy, normalizeRequestSource, normalizeVoiceInputWebsocketUrl, normalizeWebsocketUrl, parseAppRef, parseAppSurfaceReady, parseAppSurfaceResponse, parseAssistantMessageCommit, parseBoardCompositionInput, parseBoardEffectInput, parseBoardPlaybackPolicy, parseDesktopCommand, parseGenerationPolicyFromEnv, parseRequestSourceFromHeaders, parseWorkRef, proceduralClip, readRequestSourceFromEnv, requestSourceToHeaders, resolveApiBaseUrl, resolveAppTransport, resolveAppTransport as resolveWorkTransport, resolveCohubEnvironment, resolveExecutionAppId, resolveExecutionToken, resolveRequestSourceChannel, resolveVoiceInputWebsocketUrl, resolveWebsocketUrl, sampleCompositionTracks, sampleEasing, sampleTrack, sanitizeAccessToken, scopeListHasPermission, setGrantedAppScopes, track };
883
+ export { APP_COMPOSER_CHIP_CONTENT_MAX_BYTES, APP_COMPOSER_CHIP_KEY_MAX_LENGTH, APP_COMPOSER_CHIP_LABEL_MAX_LENGTH, APP_SURFACE_READY_TIMEOUT_MS, APP_SURFACE_REQUEST_TIMEOUT_MS, AcceptInvitationResponse, ApiError, type AppActionRunResponse, type AppArtifactDescriptor, type AppArtifactDescriptor as WorkArtifactDescriptor, type AppArtifactDownloadDescriptor, type AppArtifactDownloadDescriptor as WorkArtifactDownloadDescriptor, type AppArtifactManifest, type AppArtifactManifest as WorkArtifactManifest, type AppArtifactManifestFile, type AppArtifactManifestFile as WorkArtifactManifestFile, type AppAuthorizeRequest, type AppAuthorizeRequest as WorkAuthorizeRequest, type AppAuthorizeResponse, type AppBoardArtifactManifest, type AppBoardArtifactManifest as WorkBoardArtifactManifest, type AppBoardAsset, type AppBoardAsset as WorkBoardAsset, type AppBridgeAuthorizationContext, type AppBridgeAuthorizationContext as WorkBridgeAuthorizationContext, type AppBridgeCore, type AppBridgeCore as WorkBridgeCore, type AppBridgeCoreApp, type AppBridgeCoreApp as WorkBridgeCoreWork, type AppBridgeCoreConfig, type AppBridgeCoreConfig as WorkBridgeCoreConfig, type AppBridgeDialogState, type AppBridgeDialogState as WorkBridgeDialogState, type AppBridgeGetAccessToken, type AppBridgeGetAccessToken as WorkBridgeGetAccessToken, type AppBridgeGetViewerUuid, type AppBridgeGetViewerUuid as WorkBridgeGetViewerUuid, type AppBridgeRequestSignIn, type AppBridgeRequestSignIn as WorkBridgeRequestSignIn, type AppCheckoutStarted, type AppCheckoutStarted as WorkCheckoutStarted, AppCommerceApi, type AppCommerceCheckoutStatus, type AppCommerceCreditConsumeResponse, type AppCommerceCreditConsumeStatus, type AppCommerceEntitlement, type AppCommerceEntitlementsResponse, type AppCommerceOrder, type AppCommerceProductResolveResponse, type AppCommercePurchaseResponse, type AppComposerChip, type AppContent, type AppContentDownload, type AppContentKind, type AppContentKind as WorkContentKind, type AppContextChangedListener, type AppCreateInput, type AppDetailResponse, type AppEmbedAttachOptions, type AppEmbedHandle, type AppEmbedShell, type AppExtractedPageMeta, type AppGetResponse, type AppIdResolver, type AppIdResolver as WorkIdResolver, type AppMeta, type AppNavigationCall, type AppNavigationLaunch, type AppNavigationOpenMessage, type AppNavigationOpenResponse, type AppNavigationTarget, type AppPresentationMeta, type AppPromotionAttributionContext, type AppPromotionAttributionContext as WorkPromotionAttributionContext, type AppPromotionCreateInput, type AppPromotionEventResponse, type AppPromotionProvider, type AppPromotionProviderStatus, type AppPromotionRecord, type AppPromotionStatsResponse, type AppPublicOwnerRecord, type AppPublicRef, type AppPublicSpaceRecord, type AppPurchaseRequest, type AppPurchaseRequest as WorkPurchaseRequest, AppRealtimeApi, type AppRecord, AppRefParseError, type AppResolveResponse, AppRoom, type AppRoomAdmissionResponse, type AppRoomCreateInput, type AppRoomEvent, type AppRoomEventMap, type AppRoomPublishResult, type AppRoomState, AppRuntimeApi, AppRuntimeApi as WorkRuntimeApi, type AppRuntimeCheckoutState, type AppRuntimeCheckoutState as WorkRuntimeCheckoutState, type AppRuntimeCheckoutStatus, type AppRuntimeCheckoutStatus as WorkRuntimeCheckoutStatus, type AppRuntimeContext, type AppRuntimeContext as WorkRuntimeContext, type AppRuntimeInvocationContext, type AppRuntimeInvocationContext as WorkRuntimeInvocationContext, type AppRuntimeModeConfig, type AppRuntimeModeConfig as WorkRuntimeModeConfig, type AppRuntimeRequestOptions, type AppRuntimeRequestOptions as WorkRuntimeRequestOptions, type AppRuntimeShellContext, type AppRuntimeTransport, type AppRuntimeTransport as WorkRuntimeTransport, type AppSessionResponse, type AppStatus, AppSurfaceApi, type AppSurfaceHandler, type AppSurfaceHandler as WorkSurfaceHandler, type AppSurfaceHandlerContext, type AppSurfaceHandlerContext as WorkSurfaceHandlerContext, type AppSurfaceReadyMessage, type AppSurfaceResponseMessage, type AppTargetType, type AppUpdateInput, type AppVersionPublishedEvent, type AppVersionPublishedEvent as WorkVersionPublishedEvent, type AppVersionRecord, type AppViewSource, type AppViewStatsResponse, type AppViewerGrantRecord, type AppVisibility, AppsApi, type AssistantMessageCommit, BILLING_ACCESS_BLOCKED_ERROR_CODE, BOARD_ANIMATION_CHANNEL_CAPABILITIES, BOARD_CHANNELS, BOARD_COLOR_IDS, BOARD_GEO_KINDS, BatchUserProfilesResponse, BillingApi, 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, BoardAuthoringItemSchema, type BoardAuthoringReadInput, type BoardAuthoringSnapshot, type BoardAwarenessGesture, type BoardAwarenessNodePreview, type BoardAwarenessStateUpdate, type BoardAwarenessUpdate, type BoardAwarenessUpdatedEvent, type BoardCameraFocus, type BoardCameraFocusParams, type BoardCameraState, type BoardCapabilities, type BoardCapability, type BoardChangedEvent, BoardClient, type BoardColorId, type BoardComposition, BoardCompositionInputSchema, type BoardCompositionPlayback, BoardCompositionSchema, type BoardCoordinateSpace, type BoardCreateInput, type BoardDiagnostic, type BoardEasing, type BoardEffect, type BoardEffectInput, BoardEffectInputSchema, BoardEffectSchema, type BoardEventName, BoardExtensionDefinition, BoardExtensionRegistry, type BoardGeoKind, type BoardItemPatch, BoardItemPatchSchema, type BoardManifest, type BoardMutationReceipt, type BoardPlaybackChangedEvent, type BoardPlaybackCommand, type BoardPlaybackPolicy, BoardPlaybackPolicySchema, type BoardPlaybackSnapshot, BoardPresetDefinition, type BoardProceduralClip, type BoardRecord, type BoardRenderCost, type BoardSemanticCommand, BoardSemanticCommandSchema, type BoardSemanticMutation, type BoardSubscriptionHandlers, type BoardSummary, type BoardTimeline, type BoardTimelineMarker, type BoardTrack, type BoardTrackInterpolation, type BoardValidationResult, type BuildSpaceInvitePathInput, type BuildSpacePathInput, COHUB_ENVIRONMENTS, COHUB_SOURCE_HEADER, COHUB_SOURCE_HEADER_NAMES, Channel, type ChannelConfig, type ChannelEnvelope, type ChannelHealth, type ChannelHealthReasonCode, type ChannelRuntimeState, CheckpointDiffDelivery, CheckpointDiffFile, CheckpointDiffFileResponse, CheckpointDiffPatchKind, CheckpointDiffPatchLine, CheckpointDiffStats, CheckpointDiffStatus, CheckpointDiffSummary, CheckpointRecord, ClaimReferralResponse, CohubClient, type CohubClientOptions, type CohubContext, type CohubEnvironment, type CohubExecutionContext, CohubHttpClient, type CohubRuntimeKind, type CompletionAssistantMessage, type CompletionMessage, type CompletionMessageRole, type CompletionThinkingLevel, type CompletionUsage, CompositionInput, type ContentBlock, type CreateDesktopCommandInput, type CreateGenerationTaskRequest, type CreateGenerationTaskResponse, CreateInvitationInput, CreateInvitationResponse, type CreatePublicAssetUploadInput, type CreatePublicAssetUploadResponse, type CreateSpaceCompletionInput, CreateSpaceInput, CreateSpaceModInput, CreateSpacePromptInput, CreateSpacePromptResponse, CreateSpaceSessionInput, type CreateUiCommandInput, CronJobPayload, CronJobRecord, CronJobUpdatePatch, CursorPageInfo, DEFAULT_BOARD_LIMITS, DESKTOP_COMMAND_DEFAULT_TIMEOUT_MS, DESKTOP_COMMAND_MAX_TIMEOUT_MS, DESKTOP_COMMAND_PAYLOAD_MAX_BYTES, DESKTOP_COMMAND_PENDING_TTL_SECONDS, DESKTOP_COMMAND_SETTLEMENT_GRACE_SECONDS, DESKTOP_COMMAND_TERMINAL_TTL_SECONDS, DESKTOP_COMMAND_VERSION, type DesktopAppTarget, type DesktopCall, type DesktopCommand, type DesktopCommandDispatchedPayload, type DesktopCommandError, type DesktopCommandRecord, type DesktopCommandStatus, DesktopCommandsApi, type DesktopFileTarget, type DesktopOpenCommand, type DesktopTarget, type DiscordChannelConfig, FEATURE_NOT_ENTITLED_ERROR_CODE, type FeishuChannelConfig, type Fetch, type GenerationContentBlock, type GenerationModelPolicy, type GenerationModelVisibility, type GenerationParameterConstraint, type GenerationPolicy, GenerationPolicyError, type GenerationResult, type GenerationStreamCommitEvent, type GenerationStreamErrorEvent, type GenerationStreamEvent, type GenerationStreamFinalizedEvent, type GenerationStreamIntermediateMessage, type GenerationStreamLifecycleEvent, type GenerationStreamOutOfSyncEvent, type GenerationStreamStateEvent, type GenerationStreamSubscribeOptions, type GenerationStreamSubscriptionHandlers, type GenerationStreamTurnUpdatedEvent, type GenerationTaskResult, type GenerationUsageBilling, GenerationUsageBlock, GenerationUsageHourlyStat, GenerationUsageSummary, GlobalSearchResponse, GlobalSearchResult, GlobalSearchType, GlobalSearchViewerRelation, HttpError, type HttpTraceContext, InvitationDetail, JsonObject, JsonPrimitive, JsonValue, LabelAssignmentListItem, LabelAssignmentPageInfo, LabelAssignmentRecord, type LabelAssignmentsUpdatedEvent, 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, ParentBridgeTransport, type ParsedAppRef, type ParsedWorkRef, PatchResourceLabelsInput, PatchResourceLabelsResponse, Permission, PopupBrokerTransport, ProceduralClipInput, PromptAccessMode, PromptTemplateCatalogEntry, PromptTemplateCatalogResponse, type PublicAssetMimeType, type PublicAssetPurpose, type PublicAssetUploadProgress, type PublicAssetUploadProtocol, type PublicFileCreateUploadInput, type PublicFileCreateUploadResponse, type PublicFileListEntry, type PublicFileListResponse, type PublicFileUploadEntryInput, type PublicFileUploadPlanEntry, type PublicFileUrlResponse, type PublicGenerationDeclaration, PublicReferral, PublicUserAppItem, PublicUserPageResponse, PublicUserProfile, PublicUserSpaceItem, PublicUserWorkItem, QualityProfile, REQUEST_SOURCE_VIA_MAX_LENGTH, type RawHttpResponse, type RealtimeAppRecord, type RealtimeAppRecord as RealtimeWorkRecord, type RealtimeAppVersionRecord, type RealtimeAppVersionRecord as RealtimeWorkVersionRecord, type RealtimeRoomDescriptor, type RealtimeRoomEvent, type RealtimeRoomMember, type RealtimeServerEvent, ReferenceAggregateGroup, ReferenceAggregateGroupBy, ReferenceAggregateResponse, ReferenceDirection, ReferenceKind, ReferenceQueryResponse, ReferenceQueryableType, ReferenceRecord, type ReferenceResourceSelector, ReferenceResourceType, ReferencesApi, ReferralDashboard, ReferralListItem, ReferralReward, ReferralStatus, ReferralsApi, RenderBounds, type RequestSource, type RequestSourceVia, ResourceLabelsResponse, SampledTrack, SandboxSpecId, SendMessageCronJobPayload, SessionBindingRecord, type SessionEventName, type SessionForkRecord, SessionGenerationStreamClient, SessionMessageResponse, SessionMessagesPaginatedResponse, SessionMessagesResponse, type SessionPatchApplyInput, type SessionPatchApplyResult, SessionPatchReducer, type SessionPatchState, type SessionPatchStatus, SessionRecord, type SessionSubscriptionHandlers, 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, type SpaceChannelBindingRecord, SpaceCheckpointDetailResponse, SpaceCommerceBenefit, SpaceCommerceBuyerProfile, SpaceCommerceCreditsBenefit, SpaceCommerceFeatureBenefit, SpaceCommerceOrder, SpaceCommerceProduct, SpaceCommerceProductBenefitBinding, SpaceCommerceProductCreditBenefit, type SpaceCompletionResult, type SpaceCompletionStreamEvent, SpaceConfig, SpaceConfigInput, SpaceConfigResponse, SpaceConfigUpdateResponse, SpaceCreateResponse, SpaceDefaultResponse, SpaceEnvInput, type SpaceEventName, 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, SpacePublicFilesApi, SpacePublicProfile, SpaceRecord, SpaceRole, SpaceSandboxAutoDestroyPolicy, SpaceSandboxConfig, SpaceSandboxProvider, SpaceSessionsResponse, type SpaceStartupResponse, SpaceTurnAuthorFilter, SpaceTurnListItem, type SpaceTurnListOptions, SpaceTurnsResponse, SpaceUsageHourlyStat, SpaceUsageResponse, SpaceUsageSummary, type StoredIntermediateMessage, type StoredToolCall, TaskRunDetailResponse, TaskRunRecord, type TaskWaitOptions, TrackInput, type TurnIntermediateMessagesFile, type UiCommand, type UiCommandError, type UiCommandRecord, type UiCommandStatus, UiCommandsApi, type UnauthorizedContext, type UploadAppSourceInput, type UploadChatAttachmentInput, type UploadChatImageAttachmentInput, type UploadPublicAssetInput, UserActivityQuery, UserActivityRange, UserActivityRankings, UserActivityResponse, UserProfile, UserRulesResponse, UserSessionListItem, UserSessionSpaceSummary, UserSessionsResponse, UsersApi, VoiceApi, type VoiceInputCallbacks, VoiceInputClient, type VoiceInputClientOptions, type VoiceInputCreateOptions, type VoiceInputEvent, type WaitForDesktopCommandOptions, type WaitForUiCommandOptions, type WebSocketConnectionState, WebsocketClient, type WorkAuthorizeResponse, WorkCommerceApi, type WorkCommerceCheckoutStatus, type WorkCommerceCreditConsumeResponse, type WorkCommerceCreditConsumeStatus, type WorkCommerceEntitlement, type WorkCommerceEntitlementsResponse, type WorkCommerceOrder, type WorkCommerceProductResolveResponse, type WorkCommercePurchaseResponse, type WorkContent, type WorkContentDownload, type WorkCreateInput, type WorkDetailResponse, type WorkExtractedPageMeta, type WorkGetResponse, type WorkMeta, type WorkPresentationMeta, type WorkPromotionCreateInput, type WorkPromotionEventResponse, type WorkPromotionProvider, type WorkPromotionProviderStatus, type WorkPromotionRecord, type WorkPromotionStatsResponse, type WorkPublicOwnerRecord, type WorkPublicRef, type WorkPublicSpaceRecord, WorkRealtimeApi, type WorkRecord, WorkRefParseError, type WorkResolveResponse, WorkRoom, type WorkRoomAdmissionResponse, type WorkRoomCreateInput, type WorkRoomEvent, type WorkRoomEventMap, type WorkRoomPublishResult, type WorkRoomState, type WorkSessionResponse, type WorkStatus, WorkSurfaceApi, type WorkTargetType, type WorkUpdateInput, type WorkVersionRecord, type WorkViewSource, type WorkViewStatsResponse, type WorkVisibility, assertGenerationRequestAllowedByPolicy, attachAppEmbed, buildAppSurfaceRequest, buildSpaceInvitePath, buildSpacePath, clearGrantedAppScopes, compileComposition, composition, createAppBridgeCore, createAppBridgeCore as createWorkBridgeCore, createAppRuntime, createAppRuntime as createWorkRuntime, createBoardExtensionRegistry, createCohubClient, createHttpClient, createSessionGenerationStreamClient, createSessionPatchReducer, createSlugAppIdResolver, createSlugAppIdResolver as createSlugWorkIdResolver, createVoiceInputClient, createWebsocketClient, decodeGenerationPolicy, encodeGenerationPolicy, extractBillingPayload, filterDiscoverableGenerationModels, filterGenerationDeclarationsByPolicy, findGenerationModelPolicy, formatAppRef, formatWorkRef, getAllowedGenerationModelIds, getCohubContext, hasGrantedAppScopes, hasRequestSourceIdentity, isAppId, isBillingAccessBlockedCode, isBillingAccessBlockedError, isDesktopCallMethod, isFeatureNotEntitledError, isGenerationModelHidden, isHttpErrorCode, isRequestSourceClientId, isRequestSourceEmpty, isRequestSourceUuid, isTerminalDesktopCommandStatus, isUuid, isWorkId, joinApiUrl, matchesUnauthorizedErrorToken, mergeRequestSourceIntoMeta, normalizeBaseUrl, normalizeGenerationPolicy, normalizeRequestSource, normalizeVoiceInputWebsocketUrl, normalizeWebsocketUrl, parseAppRef, parseAppSurfaceReady, parseAppSurfaceResponse, parseAssistantMessageCommit, parseBoardCompositionInput, parseBoardEffectInput, parseBoardPlaybackPolicy, parseDesktopCommand, parseGenerationPolicyFromEnv, parseRequestSourceFromHeaders, parseWorkRef, proceduralClip, readRequestSourceFromEnv, requestSourceToHeaders, resolveApiBaseUrl, resolveAppTransport, resolveAppTransport as resolveWorkTransport, resolveCohubEnvironment, resolveExecutionAppId, resolveExecutionToken, resolveRequestSourceChannel, resolveVoiceInputWebsocketUrl, resolveWebsocketUrl, sampleCompositionTracks, sampleEasing, sampleTrack, sanitizeAccessToken, scopeListHasPermission, setGrantedAppScopes, track };