deepspace 0.23.1 → 0.24.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/server.d.ts CHANGED
@@ -464,7 +464,8 @@ interface CollectionSchema {
464
464
  /**
465
465
  * `users` collection only: what the `user.list` roster shows a non-admin
466
466
  * whose `read` policy is row-scoped (`'own'`, `'team'`, …). Default
467
- * `'public-identity'`: every registered user's id/name/imageUrl/role — the
467
+ * `'public-identity'`: every registered user's id/name/imageUrl/role/lastSeenAt
468
+ * (`lastSeenAt` is what `usePresence` reads) — the
468
469
  * row policy keeps guarding full-row reads on the records/query path.
469
470
  * `'read-policy'`: the roster contains only the rows the caller's read
470
471
  * policy grants (still projected to public identity) — for apps that scope
@@ -667,6 +668,20 @@ interface ActionTools {
667
668
  create<T extends Record<string, unknown> = Record<string, unknown>>(collection: string, data: T, recordId?: string): Promise<ActionResult<MutateActionData>>;
668
669
  update<T extends Record<string, unknown> = Record<string, unknown>>(collection: string, recordId: string, data: Partial<T>): Promise<ActionResult<MutateActionData>>;
669
670
  remove(collection: string, recordId: string): Promise<ActionResult<MutateActionData>>;
671
+ /**
672
+ * Delete every record matching `where`, in one bounded batch — the cascade
673
+ * primitive, so draining a set costs one subrequest per page instead of one
674
+ * per row. Deletes at most `limit` (default 100, max 500) and returns
675
+ * `{ deleted }`; repeat the same call until `deleted` is below the limit to
676
+ * drain a larger set.
677
+ *
678
+ * `where` must be non-empty and every key must name a real field
679
+ * (`recordId`, `createdBy`, or a schema column) — an unknown key is refused,
680
+ * not ignored, so this can never truncate a whole collection.
681
+ */
682
+ deleteWhere(collection: string, where: Record<string, unknown>, limit?: number): Promise<ActionResult<{
683
+ deleted: number;
684
+ }>>;
670
685
  get<T extends Record<string, unknown> = Record<string, unknown>>(collection: string, recordId: string): Promise<ActionResult<GetActionData<T>>>;
671
686
  query<T extends Record<string, unknown> = Record<string, unknown>>(collection: string, options?: {
672
687
  where?: Record<string, unknown>;
@@ -1468,6 +1483,13 @@ declare const COST_RATES: {
1468
1483
  /** USD per stored dimension per month. */
1469
1484
  readonly storedPerDimPerMonth: number;
1470
1485
  };
1486
+ readonly aiSearch: {
1487
+ readonly ingestPerToken: number;
1488
+ readonly ingestImagePerToken: number;
1489
+ readonly storagePerByteMonth: number;
1490
+ readonly hybridOrSemanticPerQuery: number;
1491
+ readonly fulltextPerQuery: number;
1492
+ };
1471
1493
  };
1472
1494
  /**
1473
1495
  * Price a single rolled-up `deepspace_binding_usage` row. Lives next to
@@ -1484,6 +1506,108 @@ declare const COST_RATES: {
1484
1506
  */
1485
1507
  declare function priceBindingUsageEvent(kind: string, op: string, units: number): number;
1486
1508
 
1509
+ /**
1510
+ * App-identity headers for platform calls (api-worker, platform-worker).
1511
+ *
1512
+ * The pair is `x-app-identity-token` (HMAC(PLATFORM_IDENTITY_SECRET, appId),
1513
+ * minted at deploy time and injected as a binding) + `x-app-id`. Pre-first-
1514
+ * deploy the token binding is ABSENT — `deepspace dev start` can only fetch it once
1515
+ * the app is in the deploy registry. Attaching headers built from an undefined
1516
+ * binding sends the literal string "undefined", which upstream identity
1517
+ * verification rejects as a *tampered* token (401 invalid) instead of the
1518
+ * truthful "missing app identity" — so this helper fails closed by attaching
1519
+ * nothing when the token is unset. The starter's worker.ts proxies follow the
1520
+ * same policy (see reassertAppIdentity there).
1521
+ */
1522
+ interface AppIdentityEnv {
1523
+ /** The app's immutable id (wrangler.toml [vars] DEEPSPACE_APP_ID). */
1524
+ DEEPSPACE_APP_ID: string;
1525
+ /** Absent until the app's first deploy injects it. */
1526
+ APP_IDENTITY_TOKEN?: string;
1527
+ }
1528
+
1529
+ interface KnowledgeEnv extends ApiWorkerEnv, AppIdentityEnv {
1530
+ }
1531
+ type KnowledgeStatus = 'queued' | 'running' | 'completed' | 'error' | 'skipped' | 'outdated';
1532
+ interface KnowledgeItem {
1533
+ id: string;
1534
+ key: string;
1535
+ status: KnowledgeStatus;
1536
+ fileSize?: number;
1537
+ chunksCount?: number;
1538
+ createdAt?: string;
1539
+ updatedAt?: string;
1540
+ error?: string;
1541
+ }
1542
+ interface KnowledgeAddOptions {
1543
+ folder?: string;
1544
+ }
1545
+ interface KnowledgeListOptions {
1546
+ folder?: string;
1547
+ page?: number;
1548
+ perPage?: number;
1549
+ status?: KnowledgeStatus;
1550
+ search?: string;
1551
+ }
1552
+ interface KnowledgeSearchOptions {
1553
+ folder?: string;
1554
+ mode?: 'hybrid' | 'semantic' | 'fulltext';
1555
+ limit?: number;
1556
+ matchThreshold?: number;
1557
+ queryRewrite?: boolean;
1558
+ }
1559
+ interface KnowledgeAddResult {
1560
+ items: KnowledgeItem[];
1561
+ }
1562
+ interface KnowledgeListResult {
1563
+ items: KnowledgeItem[];
1564
+ page: number;
1565
+ perPage: number;
1566
+ total?: number;
1567
+ totalPages?: number;
1568
+ }
1569
+ interface KnowledgeSearchChunk {
1570
+ id: string;
1571
+ score: number;
1572
+ text: string;
1573
+ key?: string;
1574
+ filename?: string;
1575
+ folder?: string;
1576
+ timestamp?: string;
1577
+ }
1578
+ interface KnowledgeSearchResult {
1579
+ chunks: KnowledgeSearchChunk[];
1580
+ queryKind?: string;
1581
+ }
1582
+ interface ScopedKnowledgeClient {
1583
+ add(file: File): Promise<KnowledgeAddResult>;
1584
+ list(options?: Omit<KnowledgeListOptions, 'folder'>): Promise<KnowledgeListResult>;
1585
+ search(query: string, options?: Omit<KnowledgeSearchOptions, 'folder'>): Promise<KnowledgeSearchResult>;
1586
+ }
1587
+ interface KnowledgeClient extends ScopedKnowledgeClient {
1588
+ add(file: File, options?: KnowledgeAddOptions): Promise<KnowledgeAddResult>;
1589
+ list(options?: KnowledgeListOptions): Promise<KnowledgeListResult>;
1590
+ remove(itemId: string): Promise<void>;
1591
+ search(query: string, options?: KnowledgeSearchOptions): Promise<KnowledgeSearchResult>;
1592
+ scoped(scope: {
1593
+ folder: string;
1594
+ }): ScopedKnowledgeClient;
1595
+ }
1596
+ declare class KnowledgeError extends Error {
1597
+ readonly status: number;
1598
+ readonly code: string;
1599
+ readonly uploadedItems?: KnowledgeItem[] | undefined;
1600
+ constructor(status: number, code: string, message: string, uploadedItems?: KnowledgeItem[] | undefined);
1601
+ }
1602
+ declare function normalizeKnowledgeFolder(folder: string): string;
1603
+ declare function folderFilter(folder: string): {
1604
+ folder: {
1605
+ $gte: string;
1606
+ $lt: string;
1607
+ };
1608
+ };
1609
+ declare function knowledge(env: KnowledgeEnv): KnowledgeClient;
1610
+
1487
1611
  /**
1488
1612
  * Lightweight D1 schema bootstrapping for apps that use auto-provisioned
1489
1613
  * `[[d1_databases]]` bindings.
@@ -1997,6 +2121,8 @@ declare function resolveColumn(col: ColumnDefinition): ResolvedColumn;
1997
2121
  declare function rowToData(row: Record<string, unknown>, columns: ResolvedColumn[]): Record<string, unknown>;
1998
2122
  declare function dataToColumnValues(data: Record<string, unknown>, columns: ResolvedColumn[]): Record<string, unknown>;
1999
2123
  declare function coerceValue(value: unknown, storage: 'number' | 'text', interpretation: ColumnInterpretation): unknown;
2124
+ /** Canonical numeric representation for date/datetime storage and triggers. */
2125
+ declare function epochSeconds(date?: Date): number;
2000
2126
  declare function buildTableSelect(collectionName: string, columns: ResolvedColumn[]): string;
2001
2127
  interface User {
2002
2128
  id: string;
@@ -2419,6 +2545,7 @@ declare abstract class CronRoom<E = Record<string, unknown>> extends BaseRoom<E>
2419
2545
  constructor(state: DurableObjectState, env: unknown, config: CronRoomConfig);
2420
2546
  private ensureInitialized;
2421
2547
  fetch(request: Request): Promise<Response>;
2548
+ protected handleInternalRequest(request: Request, url: URL): Promise<Response | null>;
2422
2549
  protected onConnect(ws: WebSocket, user: UserAttachment): CronAttachment;
2423
2550
  protected onMessage(ws: WebSocket, user: UserAttachment, message: {
2424
2551
  type: string;
@@ -2446,6 +2573,20 @@ declare abstract class CronRoom<E = Record<string, unknown>> extends BaseRoom<E>
2446
2573
  */
2447
2574
  protected abstract onTask(taskName: string): void | Promise<void>;
2448
2575
  }
2576
+ /**
2577
+ * Wake the app's CronRoom so its alarm is armed.
2578
+ *
2579
+ * A Durable Object does not exist until something fetches it, and CronRoom
2580
+ * arms its alarm inside that first fetch — so a deployed schedule that no
2581
+ * client has opened yet runs nothing, and nothing reports it. The app worker
2582
+ * calls this from its request path (once per isolate is enough); the first
2583
+ * request the worker handles after a deploy then arms the schedule. A no-op
2584
+ * when the app declares no tasks. The wake runs under `ctx.waitUntil`, so it
2585
+ * never delays the response.
2586
+ */
2587
+ declare function armCronRoom(ctx: {
2588
+ waitUntil(promise: Promise<unknown>): void;
2589
+ }, namespace: DurableObjectNamespace, roomId: string, tasks: readonly CronTask[]): void;
2449
2590
 
2450
2591
  /**
2451
2592
  * JobRoom — Per-app durable background-job execution Durable Object.
@@ -2695,6 +2836,12 @@ declare function validateDoManifest(manifest: unknown): {
2695
2836
  * ignored by WfP.
2696
2837
  */
2697
2838
  type CustomBinding = {
2839
+ /** Managed by DeepSpace; never forwarded into the customer Worker env. */
2840
+ type: 'ai_search';
2841
+ name: string;
2842
+ /** Only the untrusted `auto` sentinel is accepted from wrangler.toml. */
2843
+ instance_name: string;
2844
+ } | {
2698
2845
  type: 'vectorize';
2699
2846
  name: string;
2700
2847
  /** Either a pre-existing index name or the literal `"auto"`. */
@@ -2991,50 +3138,6 @@ declare const VOTING_SCHEMAS: CollectionSchema[];
2991
3138
  /** All directory schemas for the `dir:{appName}` global DO type. */
2992
3139
  declare const DIRECTORY_SCHEMAS: CollectionSchema[];
2993
3140
 
2994
- /**
2995
- * Workspace DO Schemas
2996
- *
2997
- * All collections for the workspace:default Durable Object.
2998
- * This DO consolidates shared, cross-app business data:
2999
- *
3000
- * - teams / team_members — workspace-wide team management (replaces built-in teams)
3001
- * - tasks / projects / tags — team-scoped task management
3002
- * - people — shared contacts directory
3003
- * - transactions / accounts — shared financial ledger
3004
- *
3005
- * Team-scoped collections use teamField RBAC: members see only
3006
- * their team's records; admins see everything.
3007
- */
3008
-
3009
- declare const workspaceTeamsSchema: CollectionSchema;
3010
- declare const workspaceTeamMembersSchema: CollectionSchema;
3011
- declare const workspaceTasksSchema: CollectionSchema;
3012
- declare const workspaceProjectsSchema: CollectionSchema;
3013
- declare const workspaceTagsSchema: CollectionSchema;
3014
- declare const workspacePeopleSchema: CollectionSchema;
3015
- declare const workspaceTransactionsSchema: CollectionSchema;
3016
- declare const workspaceAccountsSchema: CollectionSchema;
3017
- /**
3018
- * Universal sharing index. Any app can create share records for any content type.
3019
- *
3020
- * ContentType: 'document' | 'slide' | 'spreadsheet' | ... (extensible)
3021
- * ShareType: 'channel' | 'team' | 'direct' | 'link' | 'org' (extensible)
3022
- * ShareTarget: the ID of the target (channelId, teamId, userId, linkId, orgId)
3023
- * Permission: 'view' | 'edit' — what the share grants
3024
- *
3025
- * Content itself lives in the owner's app DO.
3026
- * This table is the discovery layer: "what has been shared, with whom, and how".
3027
- */
3028
- declare const workspaceContentSharesSchema: CollectionSchema;
3029
- declare const workspaceFormResponsesSchema: CollectionSchema;
3030
- /**
3031
- * Maps DeepSpace users to their claimed @app.space email handles.
3032
- * Shared across all apps so any app can look up a user's email address.
3033
- * All handles are under the @app.space domain.
3034
- */
3035
- declare const workspaceEmailHandlesSchema: CollectionSchema;
3036
- declare const WORKSPACE_SCHEMAS: CollectionSchema[];
3037
-
3038
3141
  /**
3039
3142
  * Shared Durable Object Schemas
3040
3143
  *
@@ -3045,8 +3148,10 @@ declare const WORKSPACE_SCHEMAS: CollectionSchema[];
3045
3148
  * Scope tiers:
3046
3149
  * - App DO (app:{appHandle}) — private to each app, app defines tables
3047
3150
  * - Dir DO (dir:{appHandle}) — cross-app directory (conversations, communities, posts)
3048
- * - Workspace DO (workspace:default) — shared business data (teams, tasks, people, ledger)
3049
3151
  * - Conv DO (conv:{id}) — single conversation (messages, reactions, members)
3152
+ *
3153
+ * There is no platform-wide singleton scope: every global room is keyed by
3154
+ * a conversation or an app, so no one DO holds data shared by all apps.
3050
3155
  */
3051
3156
 
3052
3157
  interface SharedConnection {
@@ -3080,7 +3185,7 @@ interface SubscriptionContext {
3080
3185
  state: DurableObjectState;
3081
3186
  /**
3082
3187
  * The scope this room was addressed by — `app:{appId}`, `chat:{channelId}`,
3083
- * `conv:{convId}`, `workspace:default`, … Records are sharded across rooms
3188
+ * `conv:{convId}`, `dir:{appId}`, … Records are sharded across rooms
3084
3189
  * by scope, so the scope is what names the room in an unknown-collection
3085
3190
  * failure. Undefined only for rooms addressed by a unique id rather than a
3086
3191
  * name (`idFromName` populates `DurableObjectId.name`).
@@ -4702,4 +4807,4 @@ declare class RefundError extends Error {
4702
4807
  constructor(message: string, status: number);
4703
4808
  }
4704
4809
 
4705
- export { ACCOUNT_STORAGE_LIMIT_BYTES, AI_CHATS_SCHEMA, AI_MESSAGES_SCHEMA, ALLOWED_BINDING_TYPES, APP_ID_RE, APP_NAME_RULES, AUTO_PROVISIONABLE_TYPES, AUTO_PROVISION_SENTINEL, type ActionContext, type ActionHandler, type ActionResult, type ActionTools, type ApiWorkerEnv, type AppNameResolution, type AppNameValidation, type AuthWorkerEnv, BASE_USERS_SCHEMA, BUILT_IN_TOOLS, BaseRoom, CHANNELS_SCHEMA, CHANNEL_INVITATIONS_SCHEMA, CHANNEL_MEMBERS_SCHEMA, CONVERSATION_SCHEMAS, COST_RATES, CancelSubscriptionError, type CancelSubscriptionOpts, type CancelSubscriptionResult, CanvasRoom, type CanvasShape, type ChatContextConfig, type ChatMessageRow, type ChatRow, type ChatTurn, type CollectionPermissionSummary, type CollectionSchema, type ColumnDefinition, type ColumnInterpretation, type ComposioToolsOptions, type ConvMemberData, type ConvMessageData, type ConvReactionData, type ConvReadCursorData, type ConvVoteData, type ConversationStateData, type CronContext, type CronExecution, CronRoom, type CronRoomConfig, type CronTask, type CustomBinding, type CustomBindingManifest, DEFAULT_CONTEXT_CONFIG, DEFAULT_DELETE_WHERE_LIMIT, DEFAULT_DO_MANIFEST, DEFAULT_QUERY_LIMIT, DEPLOYED_APPS_DEFAULTS, DIRECTORY_SCHEMAS, type DOBindings, type DOManifest, type DOManifestEntry, type DebugApiContext, type DeepSpaceAIEnv, type DeepSpaceAIOptions, type DeepSpaceAgentDiagnosticContext, DeepSpaceAgentModelError, DeepSpaceAgentProfileError, type DeepSpaceAgentStream, type DeepSpaceAgentStreamOptions, type DeepSpaceAuth, type DeepSpaceAuthConfig, type DirectoryCommunityData, type DirectoryConversationData, type DirectoryMembershipData, type DirectoryPostData, type DoMigrationDirective, type DoMigrationPlan, type ExistingDOBinding, GLOBAL_DO_TYPES, GLOBAL_DO_TYPE_NAMES, type GetActionData, type GlobalDOType, type Job, type JobContext, JobRoom, type JobRoomConfig, type JobStatus, type JwtClaims, type JwtVerifierConfig, MAX_APP_FILE_BYTES, MAX_DELETE_WHERE_LIMIT, MAX_DEPLOY_ASSET_FILE_BYTES, MAX_UPLOAD_PARTS, MAX_UPLOAD_REQUEST_BYTES, MESSAGES_SCHEMA, type MutateActionData, type PermissionAnalysis, type PermissionContext, type PermissionLevel, type PermissionSource, type PlanInfo, type PlatformWorkerEnv, type PrefixResult, type PresencePeer, PresenceRoom, type QueryActionData, REACTIONS_SCHEMA, READ_RECEIPTS_SCHEMA, REGISTRY_INSTANCE, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_NAMES, RESOURCE_ID_RE, type RecordContext, RecordRoom, type RecordRoomConfig, RefundError, type RefundOpts, type RefundResult, RegistryClientError, type ResolvedColumn, type ResolvedPermission, type RolePermissions, type RunMigrationsResult, STRICT_APP_ID_RE, SYSTEM_ASSIGNED_COLUMNS, SYSTEM_COLLECTION_SCHEMAS, SYSTEM_MAINTAINED_COLUMNS, SYSTEM_MANAGED_COLUMNS, SchemaRegistry, type ScopeContext, type ScopedR2Auth, type ScopedR2Config, type ScopedR2Handler, type ScreenshotEnv, type ScreenshotResult, type SharedConnection, type StorageAdmission, type StoredRecord, SubscriptionAuthError, type SubscriptionContext, type SubscriptionRead, SubscriptionRequiredError, type SubscriptionStatus, type Summarizer, TEST_ACCOUNT_EMAIL_SUFFIX, type TokenDebugInfo, type ToolResult, type ToolSchema, type ToolsApiContext, UPLOAD_PART_BYTES, USERS_COLUMNS, type User, type UserAttachment, type UserContext, VOTING_SCHEMAS, type ValidationError, type VerifiedAuth, type VerifyOutcome, type VerifyResult, type Viewport, WORKSPACE_SCHEMAS, type YjsContext, YjsRoom, analyzePermissions, apiWorkerFetch, appendMessage, applyAiToolDefaults, applySlidingWindow, authWorkerFetch, bindingManifestFromOutputConfig, broadcastChange, broadcastUserList, broadcastYjsUpdate, buildCronContext, buildTableSelect, buildUiParts, callRegistry, canCreate, canDelete, canRead, canUpdate, cancelSubscription, capToolResultSize, captureScreenshot, checkFieldPermissions, checkUnclaimedOwnerTransition, coerceValue, collectionTableName, columnId, composioTools, computeDoMigration, computeHmacHex, createChat, createDeepSpaceAI, createDeepSpaceAuth, createScopedR2Handler, dataToColumnValues, decodeJwtPayload, deepSpaceAgentErrorSummary, deleteChatCascade, deleteRecord, enqueueJob, executeQuery, formatBytes, getAllUsers, getChat, getGlobalDOSchemas, getGlobalDOType, getOrCreateYjsDoc, getRecord, getRolePermissions, getSubscription, getUser, getYjsDocKey, handleApiRequest, handleDelete, handlePut, handleSetRole, handleSubscribe, handleToolsRequest, handleUnsubscribe, handleUserList, handleUserUpdate, handleYjsBinaryMessage, handleYjsJoin, handleYjsLeave, isAutoProvision, isFilesVerbPath, isOwner, isTestAccountClaims, isTestAccountEmail, isTestAccountTier, lintSchema, lintSchemaSet, lintSchemas, loadMessages, makeDefaultSummarizer, matchOrigin, meterAi, meterUsage, meterVectorize, mintAppId, mintUlid, noopPermissionContext, parseQuotaLimit, platformCorsPatterns, platformWorkerFetch, prepareMessagesWithCompaction, priceBindingUsageEvent, putRecord, readRecord, recordMatchesSubscription, refundInvoice, registerUser, registryErrorJson, registryStub, requireSubscription, resolveAppName, resolveAppRole, resolveColumn, rowToData, runMigrations, saveYjsDoc, storageLimitForTier, storageQuotaMessage, streamDeepSpaceAgent, timingSafeEqualHex, timingSafeEqualStrings, totalChars, truncateOldToolResults, turnsToCoreMessages, unwrapToolOutput, updateChat, validateAppName, validateBindingManifest, validateDoManifest, verifyJwt, workspaceAccountsSchema, workspaceContentSharesSchema, workspaceEmailHandlesSchema, workspaceFormResponsesSchema, workspacePeopleSchema, workspaceProjectsSchema, workspaceTagsSchema, workspaceTasksSchema, workspaceTeamMembersSchema, workspaceTeamsSchema, workspaceTransactionsSchema };
4810
+ export { ACCOUNT_STORAGE_LIMIT_BYTES, AI_CHATS_SCHEMA, AI_MESSAGES_SCHEMA, ALLOWED_BINDING_TYPES, APP_ID_RE, APP_NAME_RULES, AUTO_PROVISIONABLE_TYPES, AUTO_PROVISION_SENTINEL, type ActionContext, type ActionHandler, type ActionResult, type ActionTools, type ApiWorkerEnv, type AppNameResolution, type AppNameValidation, type AuthWorkerEnv, BASE_USERS_SCHEMA, BUILT_IN_TOOLS, BaseRoom, CHANNELS_SCHEMA, CHANNEL_INVITATIONS_SCHEMA, CHANNEL_MEMBERS_SCHEMA, CONVERSATION_SCHEMAS, COST_RATES, CancelSubscriptionError, type CancelSubscriptionOpts, type CancelSubscriptionResult, CanvasRoom, type CanvasShape, type ChatContextConfig, type ChatMessageRow, type ChatRow, type ChatTurn, type CollectionPermissionSummary, type CollectionSchema, type ColumnDefinition, type ColumnInterpretation, type ComposioToolsOptions, type ConvMemberData, type ConvMessageData, type ConvReactionData, type ConvReadCursorData, type ConvVoteData, type ConversationStateData, type CronContext, type CronExecution, CronRoom, type CronRoomConfig, type CronTask, type CustomBinding, type CustomBindingManifest, DEFAULT_CONTEXT_CONFIG, DEFAULT_DELETE_WHERE_LIMIT, DEFAULT_DO_MANIFEST, DEFAULT_QUERY_LIMIT, DEPLOYED_APPS_DEFAULTS, DIRECTORY_SCHEMAS, type DOBindings, type DOManifest, type DOManifestEntry, type DebugApiContext, type DeepSpaceAIEnv, type DeepSpaceAIOptions, type DeepSpaceAgentDiagnosticContext, DeepSpaceAgentModelError, DeepSpaceAgentProfileError, type DeepSpaceAgentStream, type DeepSpaceAgentStreamOptions, type DeepSpaceAuth, type DeepSpaceAuthConfig, type DirectoryCommunityData, type DirectoryConversationData, type DirectoryMembershipData, type DirectoryPostData, type DoMigrationDirective, type DoMigrationPlan, type ExistingDOBinding, GLOBAL_DO_TYPES, GLOBAL_DO_TYPE_NAMES, type GetActionData, type GlobalDOType, type Job, type JobContext, JobRoom, type JobRoomConfig, type JobStatus, type JwtClaims, type JwtVerifierConfig, type KnowledgeAddOptions, type KnowledgeAddResult, type KnowledgeClient, type KnowledgeEnv, KnowledgeError, type KnowledgeItem, type KnowledgeListOptions, type KnowledgeListResult, type KnowledgeSearchChunk, type KnowledgeSearchOptions, type KnowledgeSearchResult, type KnowledgeStatus, MAX_APP_FILE_BYTES, MAX_DELETE_WHERE_LIMIT, MAX_DEPLOY_ASSET_FILE_BYTES, MAX_UPLOAD_PARTS, MAX_UPLOAD_REQUEST_BYTES, MESSAGES_SCHEMA, type MutateActionData, type PermissionAnalysis, type PermissionContext, type PermissionLevel, type PermissionSource, type PlanInfo, type PlatformWorkerEnv, type PrefixResult, type PresencePeer, PresenceRoom, type QueryActionData, REACTIONS_SCHEMA, READ_RECEIPTS_SCHEMA, REGISTRY_INSTANCE, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_NAMES, RESOURCE_ID_RE, type RecordContext, RecordRoom, type RecordRoomConfig, RefundError, type RefundOpts, type RefundResult, RegistryClientError, type ResolvedColumn, type ResolvedPermission, type RolePermissions, type RunMigrationsResult, STRICT_APP_ID_RE, SYSTEM_ASSIGNED_COLUMNS, SYSTEM_COLLECTION_SCHEMAS, SYSTEM_MAINTAINED_COLUMNS, SYSTEM_MANAGED_COLUMNS, SchemaRegistry, type ScopeContext, type ScopedKnowledgeClient, type ScopedR2Auth, type ScopedR2Config, type ScopedR2Handler, type ScreenshotEnv, type ScreenshotResult, type SharedConnection, type StorageAdmission, type StoredRecord, SubscriptionAuthError, type SubscriptionContext, type SubscriptionRead, SubscriptionRequiredError, type SubscriptionStatus, type Summarizer, TEST_ACCOUNT_EMAIL_SUFFIX, type TokenDebugInfo, type ToolResult, type ToolSchema, type ToolsApiContext, UPLOAD_PART_BYTES, USERS_COLUMNS, type User, type UserAttachment, type UserContext, VOTING_SCHEMAS, type ValidationError, type VerifiedAuth, type VerifyOutcome, type VerifyResult, type Viewport, type YjsContext, YjsRoom, analyzePermissions, apiWorkerFetch, appendMessage, applyAiToolDefaults, applySlidingWindow, armCronRoom, authWorkerFetch, bindingManifestFromOutputConfig, broadcastChange, broadcastUserList, broadcastYjsUpdate, buildCronContext, buildTableSelect, buildUiParts, callRegistry, canCreate, canDelete, canRead, canUpdate, cancelSubscription, capToolResultSize, captureScreenshot, checkFieldPermissions, checkUnclaimedOwnerTransition, coerceValue, collectionTableName, columnId, composioTools, computeDoMigration, computeHmacHex, createChat, createDeepSpaceAI, createDeepSpaceAuth, createScopedR2Handler, dataToColumnValues, decodeJwtPayload, deepSpaceAgentErrorSummary, deleteChatCascade, deleteRecord, enqueueJob, epochSeconds, executeQuery, folderFilter, formatBytes, getAllUsers, getChat, getGlobalDOSchemas, getGlobalDOType, getOrCreateYjsDoc, getRecord, getRolePermissions, getSubscription, getUser, getYjsDocKey, handleApiRequest, handleDelete, handlePut, handleSetRole, handleSubscribe, handleToolsRequest, handleUnsubscribe, handleUserList, handleUserUpdate, handleYjsBinaryMessage, handleYjsJoin, handleYjsLeave, isAutoProvision, isFilesVerbPath, isOwner, isTestAccountClaims, isTestAccountEmail, isTestAccountTier, knowledge, lintSchema, lintSchemaSet, lintSchemas, loadMessages, makeDefaultSummarizer, matchOrigin, meterAi, meterUsage, meterVectorize, mintAppId, mintUlid, noopPermissionContext, normalizeKnowledgeFolder, parseQuotaLimit, platformCorsPatterns, platformWorkerFetch, prepareMessagesWithCompaction, priceBindingUsageEvent, putRecord, readRecord, recordMatchesSubscription, refundInvoice, registerUser, registryErrorJson, registryStub, requireSubscription, resolveAppName, resolveAppRole, resolveColumn, rowToData, runMigrations, saveYjsDoc, storageLimitForTier, storageQuotaMessage, streamDeepSpaceAgent, timingSafeEqualHex, timingSafeEqualStrings, totalChars, truncateOldToolResults, turnsToCoreMessages, unwrapToolOutput, updateChat, validateAppName, validateBindingManifest, validateDoManifest, verifyJwt };