deepspace 0.12.0 → 0.14.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/CHANGELOG.md +162 -0
- package/dist/{chunk-ZJ43EK3N.js → chunk-233GQU2H.js} +492 -365
- package/dist/chunk-233GQU2H.js.map +1 -0
- package/dist/cli.js +536 -172
- package/dist/cli.js.map +1 -1
- package/dist/documentation-client-core.d.ts +2 -2
- package/dist/documentation-client-core.js +1 -1
- package/dist/documentation-default-renderer.cjs +34 -34
- package/dist/documentation-react.d.ts +1 -1
- package/dist/documentation-react.js +1 -1
- package/dist/documentation-runtime.js +10 -10
- package/dist/documentation-server-core.d.ts +2 -2
- package/dist/documentation-server-core.js +1 -1
- package/dist/documentation.js +2 -2
- package/dist/documentation.js.map +1 -1
- package/dist/index.d.ts +28 -3
- package/dist/index.js +93 -8
- package/dist/index.js.map +1 -1
- package/dist/{public-BGRX_Cjd.d.ts → public-BtArwbVM.d.ts} +8 -0
- package/dist/server.d.ts +143 -27
- package/dist/server.js +427 -91
- package/dist/server.js.map +1 -1
- package/dist/worker.d.ts +140 -24
- package/dist/worker.js +432 -91
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZJ43EK3N.js.map +0 -1
package/dist/worker.d.ts
CHANGED
|
@@ -2882,31 +2882,109 @@ declare function applyAiToolDefaults(toolName: string, params: Record<string, un
|
|
|
2882
2882
|
declare const BUILT_IN_TOOLS: ToolSchema[];
|
|
2883
2883
|
|
|
2884
2884
|
/**
|
|
2885
|
-
* App-files limits and failure reading
|
|
2886
|
-
* API: the browser hook (`client/storage/useR2Files.ts`),
|
|
2887
|
-
* (`cli/lib/app-files-api.ts`),
|
|
2888
|
-
*
|
|
2889
|
-
*
|
|
2890
|
-
*
|
|
2891
|
-
*
|
|
2892
|
-
* a
|
|
2893
|
-
*
|
|
2894
|
-
*
|
|
2895
|
-
*
|
|
2896
|
-
*
|
|
2885
|
+
* App-files limits, chunk planning, and failure reading — shared by every
|
|
2886
|
+
* caller of the files API: the browser hook (`client/storage/useR2Files.ts`),
|
|
2887
|
+
* the CLI (`cli/lib/app-files-api.ts`), the server handler
|
|
2888
|
+
* (`server/utils/scoped-r2-files.ts`), and the docs that quote them.
|
|
2889
|
+
*
|
|
2890
|
+
* There are three numbers here and they answer three different questions.
|
|
2891
|
+
* Conflating them is what produced the old 25 MiB per-file ceiling: that was
|
|
2892
|
+
* never a product decision, it was the size of one HTTP request leaking out as
|
|
2893
|
+
* a rule about files. A request is bounded by physics — Cloudflare rejects an
|
|
2894
|
+
* oversized body before any worker runs, and the worker's isolate is ~128 MiB.
|
|
2895
|
+
* A FILE is not, once it travels as a sequence of bounded requests.
|
|
2896
|
+
*
|
|
2897
|
+
* The other half of this module is failure reading. An upload refused at the
|
|
2898
|
+
* edge answers with a Cloudflare HTML page, which every caller used to feed
|
|
2899
|
+
* straight into `JSON.parse` and report as "Unexpected token '<' … is not
|
|
2900
|
+
* valid JSON". `describeFilesFailure` exists to make that impossible.
|
|
2897
2901
|
*/
|
|
2898
2902
|
/**
|
|
2899
2903
|
* The largest single file the app-files API accepts.
|
|
2900
2904
|
*
|
|
2901
|
-
*
|
|
2902
|
-
*
|
|
2903
|
-
*
|
|
2904
|
-
*
|
|
2905
|
-
*
|
|
2906
|
-
*
|
|
2907
|
-
*
|
|
2905
|
+
* Reachable only through the multipart transport: a file above
|
|
2906
|
+
* {@link UPLOAD_PART_BYTES} is uploaded as a sequence of parts, so no request
|
|
2907
|
+
* and no isolate ever holds more than one part. Enforced by the shared handler
|
|
2908
|
+
* (`server/utils/scoped-r2-files.ts`) twice — once at init against the
|
|
2909
|
+
* declared total, so an impossible upload fails before a byte moves, and again
|
|
2910
|
+
* at complete against the assembled object, because the declared total is
|
|
2911
|
+
* client-supplied. Callers check it locally too, but only to fail early;
|
|
2912
|
+
* skipping the client check cannot widen what is accepted.
|
|
2908
2913
|
*/
|
|
2909
2914
|
declare const MAX_APP_FILE_BYTES: number;
|
|
2915
|
+
/**
|
|
2916
|
+
* The most any ONE request body may carry — a whole small file on the
|
|
2917
|
+
* single-request path, or one part on the multipart path.
|
|
2918
|
+
*
|
|
2919
|
+
* This is the transport's real physical bound, and the only thing 25 MiB ever
|
|
2920
|
+
* meant. Above it the worker risks exhausting its isolate holding the body;
|
|
2921
|
+
* well above it (~100 MB) Cloudflare refuses the request before the worker
|
|
2922
|
+
* runs at all, which is why callers must read failures as text first.
|
|
2923
|
+
*/
|
|
2924
|
+
declare const MAX_UPLOAD_REQUEST_BYTES: number;
|
|
2925
|
+
/**
|
|
2926
|
+
* The part size clients chunk at, and the threshold above which they must.
|
|
2927
|
+
*
|
|
2928
|
+
* Below the {@link MAX_UPLOAD_REQUEST_BYTES} bound with headroom for the
|
|
2929
|
+
* request envelope, and comfortably inside R2's own part rules: parts must be
|
|
2930
|
+
* at least 5 MiB and every non-final part must be exactly the same size
|
|
2931
|
+
* (R2 errors 10011 / 10048). The server advertises this at init — a client
|
|
2932
|
+
* chunks at the size it is told, not at this constant, so the number can move
|
|
2933
|
+
* without stranding older callers mid-upload.
|
|
2934
|
+
*/
|
|
2935
|
+
declare const UPLOAD_PART_BYTES: number;
|
|
2936
|
+
/**
|
|
2937
|
+
* The highest part number the server accepts.
|
|
2938
|
+
*
|
|
2939
|
+
* The handler holds no per-session state, so this — not the declared total —
|
|
2940
|
+
* is what bounds an in-flight upload. It is computed against
|
|
2941
|
+
* {@link UPLOAD_PART_BYTES}, which is why the server refuses a part larger
|
|
2942
|
+
* than that even though a whole small file may be 25 MiB: admitting 25 MiB
|
|
2943
|
+
* parts would make the real in-flight bound 52 × 25 MiB = 1300 MiB while the
|
|
2944
|
+
* advertised ceiling stayed 1 GiB. With both numbers agreeing, a session's
|
|
2945
|
+
* worst case is 52 × 20 MiB = 1040 MiB — the ceiling plus one part.
|
|
2946
|
+
*
|
|
2947
|
+
* R2 allows 10,000 parts, so this is far inside what the API permits.
|
|
2948
|
+
*/
|
|
2949
|
+
declare const MAX_UPLOAD_PARTS: number;
|
|
2950
|
+
/**
|
|
2951
|
+
* Per-tier storage schedule, in bytes. Product semantics, not a deployment
|
|
2952
|
+
* dial — the one table both storage allocations admit against:
|
|
2953
|
+
*
|
|
2954
|
+
* - the repo store (Git packs + retained bundles + deploy assets), admitted
|
|
2955
|
+
* by the app's Repo DO (`platform/deploy-worker/src/vc/storage-quota.ts`)
|
|
2956
|
+
* - the app-files allocation, admitted by the shared files handler
|
|
2957
|
+
* (`server/utils/scoped-r2-files.ts`)
|
|
2958
|
+
*
|
|
2959
|
+
* Each allocation gets the full amount independently; they are different
|
|
2960
|
+
* buckets with different writers (docs/platform/r2-storage.md). The
|
|
2961
|
+
* customer-visible "storage" number is the app-files allocation — the repo
|
|
2962
|
+
* store is platform bookkeeping that degrades (drops rollback retention)
|
|
2963
|
+
* rather than surfacing here.
|
|
2964
|
+
*/
|
|
2965
|
+
declare const APP_STORAGE_LIMIT_BYTES: {
|
|
2966
|
+
readonly test: 0;
|
|
2967
|
+
readonly free: number;
|
|
2968
|
+
readonly starter: number;
|
|
2969
|
+
readonly premium: number;
|
|
2970
|
+
readonly admin: number;
|
|
2971
|
+
};
|
|
2972
|
+
/** The storage limit for a billing tier; unknown or missing tiers get free. */
|
|
2973
|
+
declare function storageLimitForTier(tier: string | null | undefined): number;
|
|
2974
|
+
/** The one storage-quota refusal sentence. `usedBytes` is net of any object
|
|
2975
|
+
* the upload replaces, so an upsert is charged only for its growth. */
|
|
2976
|
+
declare function storageQuotaMessage(incomingBytes: number, usedBytes: number, limitBytes: number): string;
|
|
2977
|
+
/**
|
|
2978
|
+
* The largest single file a deploy may ship as a static asset.
|
|
2979
|
+
*
|
|
2980
|
+
* Cloudflare Static Assets refuses anything larger, so this is a hard edge of
|
|
2981
|
+
* the platform rather than a policy dial — which is why the CLI may check it
|
|
2982
|
+
* locally. It lives here so the deploy worker and the CLI cannot drift; the
|
|
2983
|
+
* per-DEPLOY total is deliberately NOT here, because it is env-configurable
|
|
2984
|
+
* per environment and only the server can know it.
|
|
2985
|
+
*/
|
|
2986
|
+
declare const MAX_DEPLOY_ASSET_FILE_BYTES: number;
|
|
2987
|
+
declare function formatBytes(bytes: number): string;
|
|
2910
2988
|
|
|
2911
2989
|
/**
|
|
2912
2990
|
* Shared Scoped R2 Files Handler
|
|
@@ -2920,10 +2998,29 @@ declare const MAX_APP_FILE_BYTES: number;
|
|
|
2920
2998
|
* The security invariants are enforced here once — not per-worker.
|
|
2921
2999
|
*
|
|
2922
3000
|
* Routes:
|
|
2923
|
-
* POST /api/files/upload
|
|
2924
|
-
*
|
|
2925
|
-
*
|
|
2926
|
-
*
|
|
3001
|
+
* POST /api/files/upload → upload one file in one request
|
|
3002
|
+
* POST /api/files/multipart → begin a chunked upload
|
|
3003
|
+
* PUT /api/files/multipart/part → send one part
|
|
3004
|
+
* POST /api/files/multipart/complete → assemble the parts
|
|
3005
|
+
* DELETE /api/files/multipart → abandon a chunked upload
|
|
3006
|
+
* GET /api/files → list (prefix + optional user prefix)
|
|
3007
|
+
* GET /api/files/:key → download (validated against prefix)
|
|
3008
|
+
* DELETE /api/files/:key → delete (validated against prefix)
|
|
3009
|
+
*
|
|
3010
|
+
* ## One transport discipline
|
|
3011
|
+
*
|
|
3012
|
+
* Both upload paths obey the rule the deploy asset transport established
|
|
3013
|
+
* (`docs/projects/2026-08-05-deploy-asset-transport/README.md`): nothing here
|
|
3014
|
+
* ever holds more than one bounded request in memory. The single-request path
|
|
3015
|
+
* exists so a small file still costs one round trip; above
|
|
3016
|
+
* {@link UPLOAD_PART_BYTES} a file travels as parts, each streamed into R2
|
|
3017
|
+
* through a `FixedLengthStream` with a required `Content-Length`. That is why
|
|
3018
|
+
* a 1 GiB file is admissible in a ~128 MiB isolate.
|
|
3019
|
+
*
|
|
3020
|
+
* Validation is identical on both paths and on both mounts, because it lives
|
|
3021
|
+
* here: the prefix scoping, the traversal check, the MIME refusals, and both
|
|
3022
|
+
* size bounds. A hand-rolled request that skips every client guard reaches
|
|
3023
|
+
* exactly these checks.
|
|
2927
3024
|
*/
|
|
2928
3025
|
|
|
2929
3026
|
interface ScopeContext {
|
|
@@ -2949,10 +3046,29 @@ interface ScopedR2Config {
|
|
|
2949
3046
|
*/
|
|
2950
3047
|
requireAuthForMutations?: boolean;
|
|
2951
3048
|
}
|
|
3049
|
+
/**
|
|
3050
|
+
* The storage-quota contract for one allocation, supplied per request by the
|
|
3051
|
+
* mount. The handler is the enforcer; the mount only knows whose limit
|
|
3052
|
+
* applies.
|
|
3053
|
+
*/
|
|
3054
|
+
interface StorageAdmission {
|
|
3055
|
+
/** The WHOLE allocation the quota governs — the app prefix, not the
|
|
3056
|
+
* (possibly deeper) scope prefix a request resolved to. */
|
|
3057
|
+
prefix: string;
|
|
3058
|
+
/**
|
|
3059
|
+
* Resolve the owner's limit in bytes. `null` means the lookup failed;
|
|
3060
|
+
* writes then fail closed (503) rather than admitting unmetered storage,
|
|
3061
|
+
* mirroring the repo store's `StorageBillingUnavailableError`.
|
|
3062
|
+
*/
|
|
3063
|
+
limitBytes: () => Promise<number | null>;
|
|
3064
|
+
}
|
|
2952
3065
|
interface ScopedR2Auth {
|
|
2953
3066
|
userId: string | null;
|
|
3067
|
+
/** Absent = no quota on this mount (e.g. an app's own bucket). */
|
|
3068
|
+
storage?: StorageAdmission;
|
|
2954
3069
|
}
|
|
2955
3070
|
type ScopedR2Handler = (request: Request, url: URL, bucket: R2Bucket, auth: ScopedR2Auth) => Promise<Response>;
|
|
3071
|
+
declare function isFilesVerbPath(method: string, subpath: string): boolean;
|
|
2956
3072
|
/**
|
|
2957
3073
|
* Create a scoped R2 files handler.
|
|
2958
3074
|
*
|
|
@@ -5166,4 +5282,4 @@ interface AppLogsResponse {
|
|
|
5166
5282
|
declare const APP_LOG_EVENT_KEYS: readonly ["id", "timestamp", "level", "eventType", "message", "source", "outcome", "request", "exception"];
|
|
5167
5283
|
type AppLogEventKey = (typeof APP_LOG_EVENT_KEYS)[number];
|
|
5168
5284
|
|
|
5169
|
-
export { AI_CHATS_SCHEMA, AI_MESSAGES_SCHEMA, ALLOWED_BINDING_TYPES, APP_ID_RE, APP_LOG_EVENT_KEYS, APP_NAME_RULES, 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 AuthWorkerEnv, Awareness, type AwarenessState, type AwarenessStates, BASE_USERS_SCHEMA, BUILT_IN_TOOLS, type BaseMessage, BaseRoom, CANONICAL_APP_IDENTITY_MIGRATION_ID, 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 GameInput, GameRoom, type GameRoomConfig, 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, 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 Player, type PrefixResult, type PresencePeer, PresenceRoom, type ProtocolMessage, type QueryActionData, REACTIONS_SCHEMA, READ_RECEIPTS_SCHEMA, REGISTRY_INSTANCE, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_NAMES, RESOURCE_ID_RE, ROLE_ADMIN, ROLE_ANONYMOUS, ROLE_DEFAULT, RecordRoom, type RecordRoomConfig, RegistryClientError, type ResolvedColumn, type ResolvedDeepSpaceAgentModel, type ResolvedPermission, type RolePermissions, type RunMigrationsResult, STRICT_APP_ID_RE, SYSTEM_COLLECTIONS, SYSTEM_MANAGED_COLUMNS, SchemaRegistry, type ScopeContext, type ScopedR2Auth, type ScopedR2Config, type ScopedR2Handler, type ScreenshotEnv, type ScreenshotResult, type ServerMessage, type SharedConnection, type StoredRecord, type Summarizer, type SyncResult, TEST_ACCOUNT_EMAIL_SUFFIX, type TokenDebugInfo, type ToolResult, type ToolSchema, USERS_COLUMNS, type User, type UserAttachment, VOTING_SCHEMAS, type ValidationError, type VerifiedAuth, type VerifyOutcome, type VerifyResult, type Viewport, WORKSPACE_SCHEMAS, YjsRoom, analyzePermissions, apiWorkerFetch, appendMessage, applyAiToolDefaults, applySlidingWindow, authWorkerFetch, bindingManifestFromOutputConfig, buildCronContext, buildTableSelect, buildUiParts, callRegistry, canCreate, canDelete, canRead, canUpdate, capToolResultSize, captureScreenshot, checkFieldPermissions, clientBuild, coerceValue, collectionTableName, columnId, composioTools, computeDoMigration, computeHmacHex, createChat, createDecoder, createDeepSpaceAI, createDeepSpaceAuth, createEncoder, createScopedR2Handler, dataToColumnValues, decodeJwtPayload, deepSpaceAgentErrorSummary, deleteChatCascade, dispatch, encode, encodeAwarenessMessage, encodeSyncStep1, encodeSyncStep2, encodeUpdate, enqueueJob, getChat, getDeepSpaceAIModel, getGlobalDOSchemas, getGlobalDOType, getMessageType, getRolePermissions, handleAwarenessMessage, handleClientErrorReport, handleSyncMessage, hasContent, isAutoProvision, isOwner, isTestAccountClaims, isTestAccountEmail, isTestAccountTier, lintSchema, listDeepSpaceAgentModels, loadMessages, makeDefaultSummarizer, matchOrigin, meterAi, meterUsage, meterVectorize, noopPermissionContext, parseQuotaLimit, platformCorsPatterns, platformWorkerFetch, prepareMessagesWithCompaction, priceBindingUsageEvent, readVarUint, readVarUint8Array, registerClientErrorRoute, registerDeepSpaceDocumentation, registryErrorJson, registryStub, resolveAppName, resolveColumn, resolveDeepSpaceAgentModel, rowToData, runMigrations, serverBuild, 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 };
|
|
5285
|
+
export { AI_CHATS_SCHEMA, AI_MESSAGES_SCHEMA, ALLOWED_BINDING_TYPES, APP_ID_RE, APP_LOG_EVENT_KEYS, APP_NAME_RULES, APP_STORAGE_LIMIT_BYTES, 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 AuthWorkerEnv, Awareness, type AwarenessState, type AwarenessStates, BASE_USERS_SCHEMA, BUILT_IN_TOOLS, type BaseMessage, BaseRoom, CANONICAL_APP_IDENTITY_MIGRATION_ID, 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 GameInput, GameRoom, type GameRoomConfig, 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 Player, type PrefixResult, type PresencePeer, PresenceRoom, type ProtocolMessage, type QueryActionData, REACTIONS_SCHEMA, READ_RECEIPTS_SCHEMA, REGISTRY_INSTANCE, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_NAMES, RESOURCE_ID_RE, ROLE_ADMIN, ROLE_ANONYMOUS, ROLE_DEFAULT, RecordRoom, type RecordRoomConfig, RegistryClientError, type ResolvedColumn, type ResolvedDeepSpaceAgentModel, type ResolvedPermission, type RolePermissions, type RunMigrationsResult, STRICT_APP_ID_RE, SYSTEM_COLLECTIONS, 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, UPLOAD_PART_BYTES, USERS_COLUMNS, type User, type UserAttachment, VOTING_SCHEMAS, type ValidationError, type VerifiedAuth, type VerifyOutcome, type VerifyResult, type Viewport, WORKSPACE_SCHEMAS, YjsRoom, analyzePermissions, apiWorkerFetch, appendMessage, applyAiToolDefaults, applySlidingWindow, authWorkerFetch, bindingManifestFromOutputConfig, buildCronContext, buildTableSelect, buildUiParts, callRegistry, canCreate, canDelete, canRead, canUpdate, capToolResultSize, captureScreenshot, checkFieldPermissions, 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, isAutoProvision, isFilesVerbPath, isOwner, isTestAccountClaims, isTestAccountEmail, isTestAccountTier, lintSchema, listDeepSpaceAgentModels, loadMessages, makeDefaultSummarizer, matchOrigin, meterAi, meterUsage, meterVectorize, noopPermissionContext, parseQuotaLimit, platformCorsPatterns, platformWorkerFetch, prepareMessagesWithCompaction, priceBindingUsageEvent, readVarUint, readVarUint8Array, registerClientErrorRoute, registerDeepSpaceDocumentation, registryErrorJson, registryStub, resolveAppName, resolveColumn, 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 };
|