deepspace 0.23.0 → 0.23.1
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/CHANGELOG.md +15 -0
- package/dist/build.d.ts +2 -1
- package/dist/build.js +89 -16
- package/dist/build.js.map +1 -1
- package/dist/{chunk-A7VKZRCB.js → chunk-UUCAFDYW.js} +2 -2
- package/dist/{chunk-A7VKZRCB.js.map → chunk-UUCAFDYW.js.map} +1 -1
- package/dist/cli.js +735 -559
- package/dist/cli.js.map +1 -1
- package/dist/documentation-client-core.js +1 -1
- package/dist/documentation-default-renderer.cjs +1 -1
- package/dist/documentation-react.js +1 -1
- package/dist/documentation-runtime.js +1 -1
- package/dist/documentation-server-core.js +1 -1
- package/dist/documentation.js +1 -1
- package/dist/documentation.js.map +1 -1
- package/dist/index.d.ts +20 -2
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +10 -0
- package/dist/schema.js.map +1 -1
- package/dist/server.d.ts +84 -14
- package/dist/server.js +261 -88
- package/dist/server.js.map +1 -1
- package/dist/worker.d.ts +70 -3
- package/dist/worker.js +444 -272
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
package/dist/worker.d.ts
CHANGED
|
@@ -87,6 +87,11 @@ declare const MSG_YJS_SYNC = 22;
|
|
|
87
87
|
declare const MSG_YJS_AWARENESS = 23;
|
|
88
88
|
/** Role assigned to unauthenticated WebSocket connections */
|
|
89
89
|
declare const ROLE_ANONYMOUS = "viewer";
|
|
90
|
+
/** Prefix `base-room` mints anonymous socket ids with. */
|
|
91
|
+
declare const ANONYMOUS_USER_ID_PREFIX = "anon-";
|
|
92
|
+
/** The one test for an anonymous socket identity — `ROLE_ANONYMOUS` cannot be
|
|
93
|
+
* it, since authenticated users can legitimately hold the same role name. */
|
|
94
|
+
declare function isAnonymousUserId(userId: string): boolean;
|
|
90
95
|
/** Default role for newly registered authenticated users */
|
|
91
96
|
declare const ROLE_DEFAULT = "member";
|
|
92
97
|
/** Admin role */
|
|
@@ -1070,6 +1075,16 @@ interface CollectionSchema {
|
|
|
1070
1075
|
permissions: Record<string, RolePermissions>;
|
|
1071
1076
|
/** Default role assigned on the `users` collection. */
|
|
1072
1077
|
defaultRole?: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* `users` collection only: what the `user.list` roster shows a non-admin
|
|
1080
|
+
* whose `read` policy is row-scoped (`'own'`, `'team'`, …). Default
|
|
1081
|
+
* `'public-identity'`: every registered user's id/name/imageUrl/role — the
|
|
1082
|
+
* row policy keeps guarding full-row reads on the records/query path.
|
|
1083
|
+
* `'read-policy'`: the roster contains only the rows the caller's read
|
|
1084
|
+
* policy grants (still projected to public identity) — for apps that scope
|
|
1085
|
+
* users to a tenant/team and must not show names across it.
|
|
1086
|
+
*/
|
|
1087
|
+
roster?: 'public-identity' | 'read-policy';
|
|
1073
1088
|
}
|
|
1074
1089
|
interface Query {
|
|
1075
1090
|
collection: string;
|
|
@@ -1328,6 +1343,17 @@ declare const BASE_USERS_SCHEMA: CollectionSchema;
|
|
|
1328
1343
|
* Returns an array of warning messages. Empty = clean.
|
|
1329
1344
|
*/
|
|
1330
1345
|
declare function lintSchema(schema: CollectionSchema): string[];
|
|
1346
|
+
/**
|
|
1347
|
+
* Lint a whole schema set: every per-schema warning, plus the rules that
|
|
1348
|
+
* need to see the set. The `'team'` permission level resolves membership from
|
|
1349
|
+
* a `team_members` collection (`teamId`, `userId`, `status`); without one it
|
|
1350
|
+
* denies everything, silently — a mistake that presents as a sync bug, not
|
|
1351
|
+
* as a schema error, so name it here.
|
|
1352
|
+
*/
|
|
1353
|
+
declare function lintSchemas(schemas: CollectionSchema[]): string[];
|
|
1354
|
+
/** The rules that need to see the whole schema set (per-schema rules live in
|
|
1355
|
+
* `lintSchema`; `lintSchemas` composes both). */
|
|
1356
|
+
declare function lintSchemaSet(schemas: CollectionSchema[]): string[];
|
|
1331
1357
|
declare class SchemaRegistry {
|
|
1332
1358
|
private trusted;
|
|
1333
1359
|
constructor(schemas?: CollectionSchema[]);
|
|
@@ -2857,6 +2883,17 @@ type ToolResult = {
|
|
|
2857
2883
|
* `actions.query`) stay unbounded.
|
|
2858
2884
|
*/
|
|
2859
2885
|
declare const DEFAULT_QUERY_LIMIT = 50;
|
|
2886
|
+
/**
|
|
2887
|
+
* Page size `records.deleteWhere` uses when the caller omits `limit`, and the
|
|
2888
|
+
* ceiling it clamps any larger `limit` to.
|
|
2889
|
+
*
|
|
2890
|
+
* The tool exists so a cascade costs one subrequest per *page* instead of one
|
|
2891
|
+
* per row (see `deleteChatCascade`); the ceiling keeps a single call's SQL and
|
|
2892
|
+
* delete broadcasts bounded, and callers page by repeating the call until it
|
|
2893
|
+
* reports fewer deletions than the page size.
|
|
2894
|
+
*/
|
|
2895
|
+
declare const DEFAULT_DELETE_WHERE_LIMIT = 100;
|
|
2896
|
+
declare const MAX_DELETE_WHERE_LIMIT = 500;
|
|
2860
2897
|
/**
|
|
2861
2898
|
* Fill in assistant-only parameter defaults for a built-in tool call.
|
|
2862
2899
|
*
|
|
@@ -3704,6 +3741,13 @@ declare function makeDefaultSummarizer(env: DeepSpaceAIEnv, options?: {
|
|
|
3704
3741
|
* that skips it is writing across users, so route new consumers through
|
|
3705
3742
|
* `getChat` first.
|
|
3706
3743
|
*
|
|
3744
|
+
* `updateChat` and `appendMessage` re-run that precheck themselves and report
|
|
3745
|
+
* `false` instead of writing when the chat is gone: `records.update` /
|
|
3746
|
+
* `records.create` are upserts, so a write racing the user's delete would
|
|
3747
|
+
* resurrect the chat as a ghost row or orphan messages under a chat that no
|
|
3748
|
+
* longer exists. The guard lives in the helpers, not the routes, so every copy
|
|
3749
|
+
* of the scaffolded chat routes gets it.
|
|
3750
|
+
*
|
|
3707
3751
|
* The tools API returns records as `{ recordId, data, createdAt, updatedAt }`
|
|
3708
3752
|
* envelopes; helpers below flatten them into ChatRow / ChatMessageRow.
|
|
3709
3753
|
*/
|
|
@@ -3741,9 +3785,32 @@ declare function createChat(stub: DurableObjectStub, userId: string, opts?: {
|
|
|
3741
3785
|
title?: string;
|
|
3742
3786
|
model?: string;
|
|
3743
3787
|
}): Promise<ChatRow>;
|
|
3744
|
-
|
|
3788
|
+
/**
|
|
3789
|
+
* Patch a chat the caller owns. Returns true if the row was written, false if
|
|
3790
|
+
* the chat no longer exists (or never belonged to the caller).
|
|
3791
|
+
*
|
|
3792
|
+
* The `getChat` precheck is not redundant with the route's own: `records.update`
|
|
3793
|
+
* is an upsert on the DO — same code path as create — so an unguarded patch of
|
|
3794
|
+
* a chat the user deleted mid-stream *recreates* it as a title-less ghost whose
|
|
3795
|
+
* messages are already cascaded away. Writing only over a row that still exists
|
|
3796
|
+
* is the one place that can be prevented for every caller, so the guard lives
|
|
3797
|
+
* here rather than at each call site. A tiny TOCTOU window remains between the
|
|
3798
|
+
* read and the write (closing it needs a compare-and-set on the DO); a delete
|
|
3799
|
+
* landing inside that window is the same rare race as before, not the routine
|
|
3800
|
+
* "user deleted the chat while the stream ran" case this closes.
|
|
3801
|
+
*/
|
|
3802
|
+
declare function updateChat(stub: DurableObjectStub, chatId: string, userId: string, patch: Partial<Pick<ChatRow, 'title' | 'model' | 'compactedSummary' | 'compactedThroughId'>>): Promise<boolean>;
|
|
3745
3803
|
declare function deleteChatCascade(stub: DurableObjectStub, chatId: string, userId: string): Promise<void>;
|
|
3746
3804
|
declare function loadMessages(stub: DurableObjectStub, chatId: string, userId: string): Promise<ChatMessageRow[]>;
|
|
3805
|
+
/**
|
|
3806
|
+
* Append one message to a chat the caller owns. Returns true if the row was
|
|
3807
|
+
* written, false if the chat is gone (or never belonged to the caller).
|
|
3808
|
+
*
|
|
3809
|
+
* Same write-after-delete guard as `updateChat`, for the same reason: a turn
|
|
3810
|
+
* that finishes after the user deleted the chat would otherwise write messages
|
|
3811
|
+
* whose parent row no longer exists — invisible in every listing and never
|
|
3812
|
+
* cascaded again.
|
|
3813
|
+
*/
|
|
3747
3814
|
declare function appendMessage(stub: DurableObjectStub, msg: {
|
|
3748
3815
|
id: string;
|
|
3749
3816
|
chatId: string;
|
|
@@ -3751,7 +3818,7 @@ declare function appendMessage(stub: DurableObjectStub, msg: {
|
|
|
3751
3818
|
role: 'user' | 'assistant' | 'system';
|
|
3752
3819
|
content: string;
|
|
3753
3820
|
parts?: unknown[];
|
|
3754
|
-
}): Promise<
|
|
3821
|
+
}): Promise<boolean>;
|
|
3755
3822
|
|
|
3756
3823
|
/**
|
|
3757
3824
|
* Per-binding usage metering — record Vectorize / Workers AI / etc. costs
|
|
@@ -5327,4 +5394,4 @@ interface AppLogsResponse {
|
|
|
5327
5394
|
declare const APP_LOG_EVENT_KEYS: readonly ["id", "timestamp", "level", "eventType", "message", "source", "outcome", "request", "exception"];
|
|
5328
5395
|
type AppLogEventKey = (typeof APP_LOG_EVENT_KEYS)[number];
|
|
5329
5396
|
|
|
5330
|
-
export { ACCOUNT_STORAGE_LIMIT_BYTES, AI_CHATS_SCHEMA, AI_MESSAGES_SCHEMA, ALLOWED_BINDING_TYPES, APP_ID_RE, APP_LOG_EVENT_KEYS, APP_NAME_RULES, ASSET_NOT_FOUND_HANDLING_VALUES, AUTO_PROVISIONABLE_TYPES, AUTO_PROVISION_SENTINEL, type ActionContext, type ActionHandler, type ActionResult, type ActionTools, type ApiWorkerEnv, type AppLogEvent, type AppLogEventKey, type AppLogsResponse, type AppMigrationIdsValidation, type AppNameResolution, type AppNameValidation, type AssetNotFoundHandling, type AuthWorkerEnv, Awareness, type AwarenessState, type AwarenessStates, BASE_USERS_SCHEMA, BROWSER_PROXY_ROUTES, BUILT_IN_TOOLS, type BaseMessage, BaseRoom, CHANNELS_SCHEMA, CHANNEL_INVITATIONS_SCHEMA, CHANNEL_MEMBERS_SCHEMA, CLIENT_LOG_MARKER, CONVERSATION_SCHEMAS, COST_RATES, CanvasRoom, type CanvasShape, type ChatContextConfig, type ChatMessageRow, type ChatRow, type ChatTurn, type ClientErrorKind, type ClientErrorReport, type ClientMessage, type CollectionPermissionSummary, type CollectionSchema, type ColumnDefinition, type ColumnInterpretation, type ComposioToolsOptions, type ConnectionAttachment, 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, DEEPSPACE_AGENT_PROFILES, DEEPSPACE_AI_DEFAULTS, DEEPSPACE_AI_MODELS, DEEPSPACE_MODEL_CATALOG_PROVENANCE, DEFAULT_CONTEXT_CONFIG, DEFAULT_DO_MANIFEST, DEFAULT_QUERY_LIMIT, DEPLOYED_APPS_DEFAULTS, DIRECTORY_SCHEMAS, type DOBindings, type DOManifest, type DOManifestEntry, type DeepSpaceAIEnv, type DeepSpaceAIModel, type DeepSpaceAIModelId, type DeepSpaceAIOptions, type DeepSpaceAIProvider, type DeepSpaceAgentDiagnosticContext, DeepSpaceAgentModelError, type DeepSpaceAgentProfile, DeepSpaceAgentProfileError, type DeepSpaceAgentProfileId, type DeepSpaceAgentStream, type DeepSpaceAgentStreamOptions, type DeepSpaceAgentSupport, type DeepSpaceAuth, type DeepSpaceAuthConfig, type DeepSpaceDocumentationRouteEnv, type DeepSpaceDocumentationRouteOptions, 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 HandlerContext, type Job, type JobContext, JobRoom, type JobRoomConfig, type JobStatus, type JwtClaims, type JwtVerifierConfig, LOG_LEVELS, type LogLevel, MAX_APP_FILE_BYTES, MAX_DEPLOY_ASSET_FILE_BYTES, MAX_UPLOAD_PARTS, MAX_UPLOAD_REQUEST_BYTES, MESSAGES_SCHEMA, MSG, MSG_AWARENESS, MSG_SYNC, MSG_SYNC_STEP1, MSG_SYNC_STEP2, MSG_SYNC_UPDATE, MSG_YJS_AWARENESS, MSG_YJS_SYNC, type MessageHandlers, type MsgType, type MutateActionData, type PermissionAnalysis, type PermissionContext, type PermissionLevel, type PermissionSource, type PlatformWorkerEnv, type PrefixResult, type PresencePeer, PresenceRoom, type ProtocolMessage, type ProxyRoute, type QueryActionData, REACTIONS_SCHEMA, READ_RECEIPTS_SCHEMA, RECORD_NOT_FOUND, REGISTRY_INSTANCE, RELEASE_STAMP_PATH, REPO_STORE_LIMIT_BYTES, REQUIRED_COMPATIBILITY_FLAGS, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_NAMES, RESERVED_RUN_WORKER_FIRST, RESOURCE_ID_RE, ROLE_ADMIN, ROLE_ANONYMOUS, ROLE_DEFAULT, RecordRoom, type RecordRoomConfig, RegistryClientError, type ResolvedColumn, type ResolvedDeepSpaceAgentModel, type ResolvedPermission, type RolePermissions, type RunMigrationsResult, SDK_RUN_WORKER_FIRST, SECURE_ROOM_BOUNDARIES_MIGRATION_ID, STRICT_APP_ID_RE, SYSTEM_ASSIGNED_COLUMNS, SYSTEM_COLLECTIONS, SYSTEM_MAINTAINED_COLUMNS, SYSTEM_MANAGED_COLUMNS, SchemaRegistry, type ScopeContext, type ScopedR2Auth, type ScopedR2Config, type ScopedR2Handler, type ScreenshotEnv, type ScreenshotResult, type ServerMessage, type SharedConnection, type StorageAdmission, type StoredRecord, type Summarizer, type SyncResult, TEST_ACCOUNT_EMAIL_SUFFIX, type TokenDebugInfo, type ToolResult, type ToolSchema, UNDECLARED_ASSET_NOT_FOUND_HANDLING, UPLOAD_PART_BYTES, USERS_COLUMNS, type User, type UserAttachment, VOTING_SCHEMAS, type ValidationError, type VerifiedAuth, type VerifyOutcome, type VerifyResult, type Viewport, WORKER_OWNED_NOT_FOUND_MIGRATION_ID, WORKSPACE_SCHEMAS, YjsRoom, analyzePermissions, apiWorkerFetch, appendMessage, applyAiToolDefaults, applySlidingWindow, authWorkerFetch, authenticatedRoomRequest, bindingManifestFromOutputConfig, buildCronContext, buildTableSelect, buildUiParts, callRegistry, canCreate, canDelete, canRead, canUpdate, capToolResultSize, captureScreenshot, checkFieldPermissions, checkUnclaimedOwnerTransition, clientBuild, coerceValue, collectionTableName, columnId, composioTools, computeDoMigration, computeHmacHex, createChat, createDecoder, createDeepSpaceAI, createDeepSpaceAuth, createEncoder, createScopedR2Handler, dataToColumnValues, decodeJwtPayload, deepSpaceAgentErrorSummary, deleteChatCascade, dispatch, encode, encodeAwarenessMessage, encodeSyncStep1, encodeSyncStep2, encodeUpdate, enqueueJob, formatBytes, getChat, getDeepSpaceAIModel, getGlobalDOSchemas, getGlobalDOType, getMessageType, getRolePermissions, handleAwarenessMessage, handleClientErrorReport, handleSyncMessage, hasContent, isAssetNotFoundHandling, isAutoProvision, isFilesVerbPath, isOwner, isPlatformReservedPath, isTestAccountClaims, isTestAccountEmail, isTestAccountTier, lintSchema, listDeepSpaceAgentModels, loadMessages, makeDefaultSummarizer, matchOrigin, meterAi, meterUsage, meterVectorize, mintAppId, mintUlid, noopPermissionContext, parseQuotaLimit, platformCorsPatterns, platformWorkerFetch, prepareMessagesWithCompaction, priceBindingUsageEvent, readVarUint, readVarUint8Array, registerClientErrorRoute, registerDeepSpaceDocumentation, registryErrorJson, registryStub, resolveAppName, resolveAppRole, resolveColumn, resolveCompatibilityFlags, resolveDeepSpaceAgentModel, rowToData, runMigrations, serverBuild, storageLimitForTier, storageQuotaMessage, streamDeepSpaceAgent, timingSafeEqualHex, timingSafeEqualStrings, toUint8Array, totalChars, truncateOldToolResults, turnsToCoreMessages, unwrapToolOutput, updateChat, validateAppMigrationIds, validateAppName, validateBindingManifest, validateDoManifest, verifyJwt, workspaceAccountsSchema, workspaceContentSharesSchema, workspaceEmailHandlesSchema, workspaceFormResponsesSchema, workspacePeopleSchema, workspaceProjectsSchema, workspaceTagsSchema, workspaceTasksSchema, workspaceTeamMembersSchema, workspaceTeamsSchema, workspaceTransactionsSchema, writeVarUint, writeVarUint8Array };
|
|
5397
|
+
export { ACCOUNT_STORAGE_LIMIT_BYTES, AI_CHATS_SCHEMA, AI_MESSAGES_SCHEMA, ALLOWED_BINDING_TYPES, ANONYMOUS_USER_ID_PREFIX, APP_ID_RE, APP_LOG_EVENT_KEYS, APP_NAME_RULES, ASSET_NOT_FOUND_HANDLING_VALUES, AUTO_PROVISIONABLE_TYPES, AUTO_PROVISION_SENTINEL, type ActionContext, type ActionHandler, type ActionResult, type ActionTools, type ApiWorkerEnv, type AppLogEvent, type AppLogEventKey, type AppLogsResponse, type AppMigrationIdsValidation, type AppNameResolution, type AppNameValidation, type AssetNotFoundHandling, type AuthWorkerEnv, Awareness, type AwarenessState, type AwarenessStates, BASE_USERS_SCHEMA, BROWSER_PROXY_ROUTES, BUILT_IN_TOOLS, type BaseMessage, BaseRoom, CHANNELS_SCHEMA, CHANNEL_INVITATIONS_SCHEMA, CHANNEL_MEMBERS_SCHEMA, CLIENT_LOG_MARKER, CONVERSATION_SCHEMAS, COST_RATES, CanvasRoom, type CanvasShape, type ChatContextConfig, type ChatMessageRow, type ChatRow, type ChatTurn, type ClientErrorKind, type ClientErrorReport, type ClientMessage, type CollectionPermissionSummary, type CollectionSchema, type ColumnDefinition, type ColumnInterpretation, type ComposioToolsOptions, type ConnectionAttachment, 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, DEEPSPACE_AGENT_PROFILES, DEEPSPACE_AI_DEFAULTS, DEEPSPACE_AI_MODELS, DEEPSPACE_MODEL_CATALOG_PROVENANCE, 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 DeepSpaceAIEnv, type DeepSpaceAIModel, type DeepSpaceAIModelId, type DeepSpaceAIOptions, type DeepSpaceAIProvider, type DeepSpaceAgentDiagnosticContext, DeepSpaceAgentModelError, type DeepSpaceAgentProfile, DeepSpaceAgentProfileError, type DeepSpaceAgentProfileId, type DeepSpaceAgentStream, type DeepSpaceAgentStreamOptions, type DeepSpaceAgentSupport, type DeepSpaceAuth, type DeepSpaceAuthConfig, type DeepSpaceDocumentationRouteEnv, type DeepSpaceDocumentationRouteOptions, 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 HandlerContext, type Job, type JobContext, JobRoom, type JobRoomConfig, type JobStatus, type JwtClaims, type JwtVerifierConfig, LOG_LEVELS, type LogLevel, MAX_APP_FILE_BYTES, MAX_DELETE_WHERE_LIMIT, MAX_DEPLOY_ASSET_FILE_BYTES, MAX_UPLOAD_PARTS, MAX_UPLOAD_REQUEST_BYTES, MESSAGES_SCHEMA, MSG, MSG_AWARENESS, MSG_SYNC, MSG_SYNC_STEP1, MSG_SYNC_STEP2, MSG_SYNC_UPDATE, MSG_YJS_AWARENESS, MSG_YJS_SYNC, type MessageHandlers, type MsgType, type MutateActionData, type PermissionAnalysis, type PermissionContext, type PermissionLevel, type PermissionSource, type PlatformWorkerEnv, type PrefixResult, type PresencePeer, PresenceRoom, type ProtocolMessage, type ProxyRoute, type QueryActionData, REACTIONS_SCHEMA, READ_RECEIPTS_SCHEMA, RECORD_NOT_FOUND, REGISTRY_INSTANCE, RELEASE_STAMP_PATH, REPO_STORE_LIMIT_BYTES, REQUIRED_COMPATIBILITY_FLAGS, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_NAMES, RESERVED_RUN_WORKER_FIRST, RESOURCE_ID_RE, ROLE_ADMIN, ROLE_ANONYMOUS, ROLE_DEFAULT, RecordRoom, type RecordRoomConfig, RegistryClientError, type ResolvedColumn, type ResolvedDeepSpaceAgentModel, type ResolvedPermission, type RolePermissions, type RunMigrationsResult, SDK_RUN_WORKER_FIRST, SECURE_ROOM_BOUNDARIES_MIGRATION_ID, STRICT_APP_ID_RE, SYSTEM_ASSIGNED_COLUMNS, SYSTEM_COLLECTIONS, SYSTEM_MAINTAINED_COLUMNS, SYSTEM_MANAGED_COLUMNS, SchemaRegistry, type ScopeContext, type ScopedR2Auth, type ScopedR2Config, type ScopedR2Handler, type ScreenshotEnv, type ScreenshotResult, type ServerMessage, type SharedConnection, type StorageAdmission, type StoredRecord, type Summarizer, type SyncResult, TEST_ACCOUNT_EMAIL_SUFFIX, type TokenDebugInfo, type ToolResult, type ToolSchema, UNDECLARED_ASSET_NOT_FOUND_HANDLING, UPLOAD_PART_BYTES, USERS_COLUMNS, type User, type UserAttachment, VOTING_SCHEMAS, type ValidationError, type VerifiedAuth, type VerifyOutcome, type VerifyResult, type Viewport, WORKER_OWNED_NOT_FOUND_MIGRATION_ID, WORKSPACE_SCHEMAS, YjsRoom, analyzePermissions, apiWorkerFetch, appendMessage, applyAiToolDefaults, applySlidingWindow, authWorkerFetch, authenticatedRoomRequest, bindingManifestFromOutputConfig, buildCronContext, buildTableSelect, buildUiParts, callRegistry, canCreate, canDelete, canRead, canUpdate, capToolResultSize, captureScreenshot, checkFieldPermissions, checkUnclaimedOwnerTransition, clientBuild, coerceValue, collectionTableName, columnId, composioTools, computeDoMigration, computeHmacHex, createChat, createDecoder, createDeepSpaceAI, createDeepSpaceAuth, createEncoder, createScopedR2Handler, dataToColumnValues, decodeJwtPayload, deepSpaceAgentErrorSummary, deleteChatCascade, dispatch, encode, encodeAwarenessMessage, encodeSyncStep1, encodeSyncStep2, encodeUpdate, enqueueJob, formatBytes, getChat, getDeepSpaceAIModel, getGlobalDOSchemas, getGlobalDOType, getMessageType, getRolePermissions, handleAwarenessMessage, handleClientErrorReport, handleSyncMessage, hasContent, isAnonymousUserId, isAssetNotFoundHandling, isAutoProvision, isFilesVerbPath, isOwner, isPlatformReservedPath, isTestAccountClaims, isTestAccountEmail, isTestAccountTier, lintSchema, lintSchemaSet, lintSchemas, listDeepSpaceAgentModels, loadMessages, makeDefaultSummarizer, matchOrigin, meterAi, meterUsage, meterVectorize, mintAppId, mintUlid, noopPermissionContext, parseQuotaLimit, platformCorsPatterns, platformWorkerFetch, prepareMessagesWithCompaction, priceBindingUsageEvent, readVarUint, readVarUint8Array, registerClientErrorRoute, registerDeepSpaceDocumentation, registryErrorJson, registryStub, resolveAppName, resolveAppRole, resolveColumn, resolveCompatibilityFlags, resolveDeepSpaceAgentModel, rowToData, runMigrations, serverBuild, storageLimitForTier, storageQuotaMessage, streamDeepSpaceAgent, timingSafeEqualHex, timingSafeEqualStrings, toUint8Array, totalChars, truncateOldToolResults, turnsToCoreMessages, unwrapToolOutput, updateChat, validateAppMigrationIds, validateAppName, validateBindingManifest, validateDoManifest, verifyJwt, workspaceAccountsSchema, workspaceContentSharesSchema, workspaceEmailHandlesSchema, workspaceFormResponsesSchema, workspacePeopleSchema, workspaceProjectsSchema, workspaceTagsSchema, workspaceTasksSchema, workspaceTeamMembersSchema, workspaceTeamsSchema, workspaceTransactionsSchema, writeVarUint, writeVarUint8Array };
|