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/CHANGELOG.md +29 -0
- package/README.md +6 -2
- package/dist/build.js +11 -0
- package/dist/build.js.map +1 -1
- package/dist/{chunk-UUCAFDYW.js → chunk-2U2VG6L5.js} +2 -2
- package/dist/{chunk-UUCAFDYW.js.map → chunk-2U2VG6L5.js.map} +1 -1
- package/dist/chunk-OFDOJGFS.js +1957 -0
- package/dist/chunk-OFDOJGFS.js.map +1 -0
- package/dist/cli.js +1714 -1797
- 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 +30 -4
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +3 -19
- package/dist/schema.js +1 -207
- package/dist/schema.js.map +1 -1
- package/dist/server.d.ts +153 -48
- package/dist/server.js +516 -380
- package/dist/server.js.map +1 -1
- package/dist/worker.d.ts +178 -48
- package/dist/worker.js +576 -434
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
package/dist/worker.d.ts
CHANGED
|
@@ -1078,7 +1078,8 @@ interface CollectionSchema {
|
|
|
1078
1078
|
/**
|
|
1079
1079
|
* `users` collection only: what the `user.list` roster shows a non-admin
|
|
1080
1080
|
* whose `read` policy is row-scoped (`'own'`, `'team'`, …). Default
|
|
1081
|
-
* `'public-identity'`: every registered user's id/name/imageUrl/role
|
|
1081
|
+
* `'public-identity'`: every registered user's id/name/imageUrl/role/lastSeenAt
|
|
1082
|
+
* (`lastSeenAt` is what `usePresence` reads) — the
|
|
1082
1083
|
* row policy keeps guarding full-row reads on the records/query path.
|
|
1083
1084
|
* `'read-policy'`: the roster contains only the rows the caller's read
|
|
1084
1085
|
* policy grants (still projected to public identity) — for apps that scope
|
|
@@ -1256,6 +1257,8 @@ declare function resolveColumn(col: ColumnDefinition): ResolvedColumn;
|
|
|
1256
1257
|
declare function rowToData(row: Record<string, unknown>, columns: ResolvedColumn[]): Record<string, unknown>;
|
|
1257
1258
|
declare function dataToColumnValues(data: Record<string, unknown>, columns: ResolvedColumn[]): Record<string, unknown>;
|
|
1258
1259
|
declare function coerceValue(value: unknown, storage: 'number' | 'text', interpretation: ColumnInterpretation): unknown;
|
|
1260
|
+
/** Canonical numeric representation for date/datetime storage and triggers. */
|
|
1261
|
+
declare function epochSeconds(date?: Date): number;
|
|
1259
1262
|
declare function buildTableSelect(collectionName: string, columns: ResolvedColumn[]): string;
|
|
1260
1263
|
interface User {
|
|
1261
1264
|
id: string;
|
|
@@ -1678,6 +1681,7 @@ declare abstract class CronRoom<E = Record<string, unknown>> extends BaseRoom<E>
|
|
|
1678
1681
|
constructor(state: DurableObjectState, env: unknown, config: CronRoomConfig);
|
|
1679
1682
|
private ensureInitialized;
|
|
1680
1683
|
fetch(request: Request): Promise<Response>;
|
|
1684
|
+
protected handleInternalRequest(request: Request, url: URL): Promise<Response | null>;
|
|
1681
1685
|
protected onConnect(ws: WebSocket, user: UserAttachment): CronAttachment;
|
|
1682
1686
|
protected onMessage(ws: WebSocket, user: UserAttachment, message: {
|
|
1683
1687
|
type: string;
|
|
@@ -1705,6 +1709,20 @@ declare abstract class CronRoom<E = Record<string, unknown>> extends BaseRoom<E>
|
|
|
1705
1709
|
*/
|
|
1706
1710
|
protected abstract onTask(taskName: string): void | Promise<void>;
|
|
1707
1711
|
}
|
|
1712
|
+
/**
|
|
1713
|
+
* Wake the app's CronRoom so its alarm is armed.
|
|
1714
|
+
*
|
|
1715
|
+
* A Durable Object does not exist until something fetches it, and CronRoom
|
|
1716
|
+
* arms its alarm inside that first fetch — so a deployed schedule that no
|
|
1717
|
+
* client has opened yet runs nothing, and nothing reports it. The app worker
|
|
1718
|
+
* calls this from its request path (once per isolate is enough); the first
|
|
1719
|
+
* request the worker handles after a deploy then arms the schedule. A no-op
|
|
1720
|
+
* when the app declares no tasks. The wake runs under `ctx.waitUntil`, so it
|
|
1721
|
+
* never delays the response.
|
|
1722
|
+
*/
|
|
1723
|
+
declare function armCronRoom(ctx: {
|
|
1724
|
+
waitUntil(promise: Promise<unknown>): void;
|
|
1725
|
+
}, namespace: DurableObjectNamespace, roomId: string, tasks: readonly CronTask[]): void;
|
|
1708
1726
|
|
|
1709
1727
|
/**
|
|
1710
1728
|
* JobRoom — Per-app durable background-job execution Durable Object.
|
|
@@ -1954,6 +1972,12 @@ declare function validateDoManifest(manifest: unknown): {
|
|
|
1954
1972
|
* ignored by WfP.
|
|
1955
1973
|
*/
|
|
1956
1974
|
type CustomBinding = {
|
|
1975
|
+
/** Managed by DeepSpace; never forwarded into the customer Worker env. */
|
|
1976
|
+
type: 'ai_search';
|
|
1977
|
+
name: string;
|
|
1978
|
+
/** Only the untrusted `auto` sentinel is accepted from wrangler.toml. */
|
|
1979
|
+
instance_name: string;
|
|
1980
|
+
} | {
|
|
1957
1981
|
type: 'vectorize';
|
|
1958
1982
|
name: string;
|
|
1959
1983
|
/** Either a pre-existing index name or the literal `"auto"`. */
|
|
@@ -2250,50 +2274,6 @@ declare const VOTING_SCHEMAS: CollectionSchema[];
|
|
|
2250
2274
|
/** All directory schemas for the `dir:{appName}` global DO type. */
|
|
2251
2275
|
declare const DIRECTORY_SCHEMAS: CollectionSchema[];
|
|
2252
2276
|
|
|
2253
|
-
/**
|
|
2254
|
-
* Workspace DO Schemas
|
|
2255
|
-
*
|
|
2256
|
-
* All collections for the workspace:default Durable Object.
|
|
2257
|
-
* This DO consolidates shared, cross-app business data:
|
|
2258
|
-
*
|
|
2259
|
-
* - teams / team_members — workspace-wide team management (replaces built-in teams)
|
|
2260
|
-
* - tasks / projects / tags — team-scoped task management
|
|
2261
|
-
* - people — shared contacts directory
|
|
2262
|
-
* - transactions / accounts — shared financial ledger
|
|
2263
|
-
*
|
|
2264
|
-
* Team-scoped collections use teamField RBAC: members see only
|
|
2265
|
-
* their team's records; admins see everything.
|
|
2266
|
-
*/
|
|
2267
|
-
|
|
2268
|
-
declare const workspaceTeamsSchema: CollectionSchema;
|
|
2269
|
-
declare const workspaceTeamMembersSchema: CollectionSchema;
|
|
2270
|
-
declare const workspaceTasksSchema: CollectionSchema;
|
|
2271
|
-
declare const workspaceProjectsSchema: CollectionSchema;
|
|
2272
|
-
declare const workspaceTagsSchema: CollectionSchema;
|
|
2273
|
-
declare const workspacePeopleSchema: CollectionSchema;
|
|
2274
|
-
declare const workspaceTransactionsSchema: CollectionSchema;
|
|
2275
|
-
declare const workspaceAccountsSchema: CollectionSchema;
|
|
2276
|
-
/**
|
|
2277
|
-
* Universal sharing index. Any app can create share records for any content type.
|
|
2278
|
-
*
|
|
2279
|
-
* ContentType: 'document' | 'slide' | 'spreadsheet' | ... (extensible)
|
|
2280
|
-
* ShareType: 'channel' | 'team' | 'direct' | 'link' | 'org' (extensible)
|
|
2281
|
-
* ShareTarget: the ID of the target (channelId, teamId, userId, linkId, orgId)
|
|
2282
|
-
* Permission: 'view' | 'edit' — what the share grants
|
|
2283
|
-
*
|
|
2284
|
-
* Content itself lives in the owner's app DO.
|
|
2285
|
-
* This table is the discovery layer: "what has been shared, with whom, and how".
|
|
2286
|
-
*/
|
|
2287
|
-
declare const workspaceContentSharesSchema: CollectionSchema;
|
|
2288
|
-
declare const workspaceFormResponsesSchema: CollectionSchema;
|
|
2289
|
-
/**
|
|
2290
|
-
* Maps DeepSpace users to their claimed @app.space email handles.
|
|
2291
|
-
* Shared across all apps so any app can look up a user's email address.
|
|
2292
|
-
* All handles are under the @app.space domain.
|
|
2293
|
-
*/
|
|
2294
|
-
declare const workspaceEmailHandlesSchema: CollectionSchema;
|
|
2295
|
-
declare const WORKSPACE_SCHEMAS: CollectionSchema[];
|
|
2296
|
-
|
|
2297
2277
|
/**
|
|
2298
2278
|
* Shared Durable Object Schemas
|
|
2299
2279
|
*
|
|
@@ -2304,8 +2284,10 @@ declare const WORKSPACE_SCHEMAS: CollectionSchema[];
|
|
|
2304
2284
|
* Scope tiers:
|
|
2305
2285
|
* - App DO (app:{appHandle}) — private to each app, app defines tables
|
|
2306
2286
|
* - Dir DO (dir:{appHandle}) — cross-app directory (conversations, communities, posts)
|
|
2307
|
-
* - Workspace DO (workspace:default) — shared business data (teams, tasks, people, ledger)
|
|
2308
2287
|
* - Conv DO (conv:{id}) — single conversation (messages, reactions, members)
|
|
2288
|
+
*
|
|
2289
|
+
* There is no platform-wide singleton scope: every global room is keyed by
|
|
2290
|
+
* a conversation or an app, so no one DO holds data shared by all apps.
|
|
2309
2291
|
*/
|
|
2310
2292
|
|
|
2311
2293
|
interface SharedConnection {
|
|
@@ -2466,6 +2448,16 @@ declare function getMessageType(data: Uint8Array): number;
|
|
|
2466
2448
|
declare const WORKER_OWNED_NOT_FOUND_MIGRATION_ID = "2026-08-worker-owned-not-found";
|
|
2467
2449
|
/** Room identity moved to internal headers and privileged room routes gained app-role checks. */
|
|
2468
2450
|
declare const SECURE_ROOM_BOUNDARIES_MIGRATION_ID = "2026-08-secure-room-boundaries";
|
|
2451
|
+
/** `ActionTools` gained `deleteWhere`, so the app's own tools factory — which
|
|
2452
|
+
* declares that interface as its return type — has to supply it. */
|
|
2453
|
+
declare const ACTION_TOOLS_DELETE_WHERE_MIGRATION_ID = "2026-08-action-tools-delete-where";
|
|
2454
|
+
/** The browser's app id moved off a scaffold-time literal onto a build-time
|
|
2455
|
+
* define that `deepspace/build` reads from the wrangler config being built. */
|
|
2456
|
+
declare const BUILD_INJECTED_APP_ID_MIGRATION_ID = "2026-08-build-injected-app-id";
|
|
2457
|
+
/** The action route refuses a call without a bearer token as 401 (a cookie
|
|
2458
|
+
* session has none) instead of crashing on a non-null assertion, and the
|
|
2459
|
+
* file states the trust model actions run under. */
|
|
2460
|
+
declare const ACTION_ROUTES_BEARER_GUARD_MIGRATION_ID = "2026-08-action-routes-bearer-guard";
|
|
2469
2461
|
type AppMigrationIdsValidation = {
|
|
2470
2462
|
valid: true;
|
|
2471
2463
|
ids: string[];
|
|
@@ -3181,6 +3173,20 @@ interface ActionTools {
|
|
|
3181
3173
|
create<T extends Record<string, unknown> = Record<string, unknown>>(collection: string, data: T, recordId?: string): Promise<ActionResult<MutateActionData>>;
|
|
3182
3174
|
update<T extends Record<string, unknown> = Record<string, unknown>>(collection: string, recordId: string, data: Partial<T>): Promise<ActionResult<MutateActionData>>;
|
|
3183
3175
|
remove(collection: string, recordId: string): Promise<ActionResult<MutateActionData>>;
|
|
3176
|
+
/**
|
|
3177
|
+
* Delete every record matching `where`, in one bounded batch — the cascade
|
|
3178
|
+
* primitive, so draining a set costs one subrequest per page instead of one
|
|
3179
|
+
* per row. Deletes at most `limit` (default 100, max 500) and returns
|
|
3180
|
+
* `{ deleted }`; repeat the same call until `deleted` is below the limit to
|
|
3181
|
+
* drain a larger set.
|
|
3182
|
+
*
|
|
3183
|
+
* `where` must be non-empty and every key must name a real field
|
|
3184
|
+
* (`recordId`, `createdBy`, or a schema column) — an unknown key is refused,
|
|
3185
|
+
* not ignored, so this can never truncate a whole collection.
|
|
3186
|
+
*/
|
|
3187
|
+
deleteWhere(collection: string, where: Record<string, unknown>, limit?: number): Promise<ActionResult<{
|
|
3188
|
+
deleted: number;
|
|
3189
|
+
}>>;
|
|
3184
3190
|
get<T extends Record<string, unknown> = Record<string, unknown>>(collection: string, recordId: string): Promise<ActionResult<GetActionData<T>>>;
|
|
3185
3191
|
query<T extends Record<string, unknown> = Record<string, unknown>>(collection: string, options?: {
|
|
3186
3192
|
where?: Record<string, unknown>;
|
|
@@ -3942,6 +3948,13 @@ declare const COST_RATES: {
|
|
|
3942
3948
|
/** USD per stored dimension per month. */
|
|
3943
3949
|
readonly storedPerDimPerMonth: number;
|
|
3944
3950
|
};
|
|
3951
|
+
readonly aiSearch: {
|
|
3952
|
+
readonly ingestPerToken: number;
|
|
3953
|
+
readonly ingestImagePerToken: number;
|
|
3954
|
+
readonly storagePerByteMonth: number;
|
|
3955
|
+
readonly hybridOrSemanticPerQuery: number;
|
|
3956
|
+
readonly fulltextPerQuery: number;
|
|
3957
|
+
};
|
|
3945
3958
|
};
|
|
3946
3959
|
/**
|
|
3947
3960
|
* Price a single rolled-up `deepspace_binding_usage` row. Lives next to
|
|
@@ -3958,6 +3971,108 @@ declare const COST_RATES: {
|
|
|
3958
3971
|
*/
|
|
3959
3972
|
declare function priceBindingUsageEvent(kind: string, op: string, units: number): number;
|
|
3960
3973
|
|
|
3974
|
+
/**
|
|
3975
|
+
* App-identity headers for platform calls (api-worker, platform-worker).
|
|
3976
|
+
*
|
|
3977
|
+
* The pair is `x-app-identity-token` (HMAC(PLATFORM_IDENTITY_SECRET, appId),
|
|
3978
|
+
* minted at deploy time and injected as a binding) + `x-app-id`. Pre-first-
|
|
3979
|
+
* deploy the token binding is ABSENT — `deepspace dev start` can only fetch it once
|
|
3980
|
+
* the app is in the deploy registry. Attaching headers built from an undefined
|
|
3981
|
+
* binding sends the literal string "undefined", which upstream identity
|
|
3982
|
+
* verification rejects as a *tampered* token (401 invalid) instead of the
|
|
3983
|
+
* truthful "missing app identity" — so this helper fails closed by attaching
|
|
3984
|
+
* nothing when the token is unset. The starter's worker.ts proxies follow the
|
|
3985
|
+
* same policy (see reassertAppIdentity there).
|
|
3986
|
+
*/
|
|
3987
|
+
interface AppIdentityEnv {
|
|
3988
|
+
/** The app's immutable id (wrangler.toml [vars] DEEPSPACE_APP_ID). */
|
|
3989
|
+
DEEPSPACE_APP_ID: string;
|
|
3990
|
+
/** Absent until the app's first deploy injects it. */
|
|
3991
|
+
APP_IDENTITY_TOKEN?: string;
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
interface KnowledgeEnv extends ApiWorkerEnv, AppIdentityEnv {
|
|
3995
|
+
}
|
|
3996
|
+
type KnowledgeStatus = 'queued' | 'running' | 'completed' | 'error' | 'skipped' | 'outdated';
|
|
3997
|
+
interface KnowledgeItem {
|
|
3998
|
+
id: string;
|
|
3999
|
+
key: string;
|
|
4000
|
+
status: KnowledgeStatus;
|
|
4001
|
+
fileSize?: number;
|
|
4002
|
+
chunksCount?: number;
|
|
4003
|
+
createdAt?: string;
|
|
4004
|
+
updatedAt?: string;
|
|
4005
|
+
error?: string;
|
|
4006
|
+
}
|
|
4007
|
+
interface KnowledgeAddOptions {
|
|
4008
|
+
folder?: string;
|
|
4009
|
+
}
|
|
4010
|
+
interface KnowledgeListOptions {
|
|
4011
|
+
folder?: string;
|
|
4012
|
+
page?: number;
|
|
4013
|
+
perPage?: number;
|
|
4014
|
+
status?: KnowledgeStatus;
|
|
4015
|
+
search?: string;
|
|
4016
|
+
}
|
|
4017
|
+
interface KnowledgeSearchOptions {
|
|
4018
|
+
folder?: string;
|
|
4019
|
+
mode?: 'hybrid' | 'semantic' | 'fulltext';
|
|
4020
|
+
limit?: number;
|
|
4021
|
+
matchThreshold?: number;
|
|
4022
|
+
queryRewrite?: boolean;
|
|
4023
|
+
}
|
|
4024
|
+
interface KnowledgeAddResult {
|
|
4025
|
+
items: KnowledgeItem[];
|
|
4026
|
+
}
|
|
4027
|
+
interface KnowledgeListResult {
|
|
4028
|
+
items: KnowledgeItem[];
|
|
4029
|
+
page: number;
|
|
4030
|
+
perPage: number;
|
|
4031
|
+
total?: number;
|
|
4032
|
+
totalPages?: number;
|
|
4033
|
+
}
|
|
4034
|
+
interface KnowledgeSearchChunk {
|
|
4035
|
+
id: string;
|
|
4036
|
+
score: number;
|
|
4037
|
+
text: string;
|
|
4038
|
+
key?: string;
|
|
4039
|
+
filename?: string;
|
|
4040
|
+
folder?: string;
|
|
4041
|
+
timestamp?: string;
|
|
4042
|
+
}
|
|
4043
|
+
interface KnowledgeSearchResult {
|
|
4044
|
+
chunks: KnowledgeSearchChunk[];
|
|
4045
|
+
queryKind?: string;
|
|
4046
|
+
}
|
|
4047
|
+
interface ScopedKnowledgeClient {
|
|
4048
|
+
add(file: File): Promise<KnowledgeAddResult>;
|
|
4049
|
+
list(options?: Omit<KnowledgeListOptions, 'folder'>): Promise<KnowledgeListResult>;
|
|
4050
|
+
search(query: string, options?: Omit<KnowledgeSearchOptions, 'folder'>): Promise<KnowledgeSearchResult>;
|
|
4051
|
+
}
|
|
4052
|
+
interface KnowledgeClient extends ScopedKnowledgeClient {
|
|
4053
|
+
add(file: File, options?: KnowledgeAddOptions): Promise<KnowledgeAddResult>;
|
|
4054
|
+
list(options?: KnowledgeListOptions): Promise<KnowledgeListResult>;
|
|
4055
|
+
remove(itemId: string): Promise<void>;
|
|
4056
|
+
search(query: string, options?: KnowledgeSearchOptions): Promise<KnowledgeSearchResult>;
|
|
4057
|
+
scoped(scope: {
|
|
4058
|
+
folder: string;
|
|
4059
|
+
}): ScopedKnowledgeClient;
|
|
4060
|
+
}
|
|
4061
|
+
declare class KnowledgeError extends Error {
|
|
4062
|
+
readonly status: number;
|
|
4063
|
+
readonly code: string;
|
|
4064
|
+
readonly uploadedItems?: KnowledgeItem[] | undefined;
|
|
4065
|
+
constructor(status: number, code: string, message: string, uploadedItems?: KnowledgeItem[] | undefined);
|
|
4066
|
+
}
|
|
4067
|
+
declare function normalizeKnowledgeFolder(folder: string): string;
|
|
4068
|
+
declare function folderFilter(folder: string): {
|
|
4069
|
+
folder: {
|
|
4070
|
+
$gte: string;
|
|
4071
|
+
$lt: string;
|
|
4072
|
+
};
|
|
4073
|
+
};
|
|
4074
|
+
declare function knowledge(env: KnowledgeEnv): KnowledgeClient;
|
|
4075
|
+
|
|
3961
4076
|
/**
|
|
3962
4077
|
* Lightweight D1 schema bootstrapping for apps that use auto-provisioned
|
|
3963
4078
|
* `[[d1_databases]]` bindings.
|
|
@@ -5356,13 +5471,28 @@ interface AppLogEvent {
|
|
|
5356
5471
|
* branch on `source === 'client'`, never on a truthy/other check.
|
|
5357
5472
|
*/
|
|
5358
5473
|
source?: 'client';
|
|
5359
|
-
/**
|
|
5474
|
+
/**
|
|
5475
|
+
* The runtime's verdict on the invocation (`ok`, `exception`, `exceededCpu`,
|
|
5476
|
+
* `canceled`, …) — present on `request` and other invocation-summary events
|
|
5477
|
+
* only, never on a `log` line. It says whether the Worker RETURNED, not
|
|
5478
|
+
* whether the app succeeded: an action that throws inside the app's own
|
|
5479
|
+
* error handling and answers 500 is `ok` here. Triage failures on
|
|
5480
|
+
* `request.status`, `level`, and `eventType === 'exception'` (an exception
|
|
5481
|
+
* that escaped the Worker), not on `outcome !== 'ok'` alone.
|
|
5482
|
+
*/
|
|
5360
5483
|
outcome?: string;
|
|
5361
5484
|
request?: {
|
|
5362
5485
|
method: string;
|
|
5363
5486
|
path: string;
|
|
5364
5487
|
status?: number;
|
|
5365
5488
|
};
|
|
5489
|
+
/**
|
|
5490
|
+
* The exception that ESCAPED the Worker (`eventType: 'exception'`), or a
|
|
5491
|
+
* browser-reported one (`source: 'client'`). An error the app catches and
|
|
5492
|
+
* `console.error`s is a plain `log` line — and the Workers runtime renders a
|
|
5493
|
+
* logged Error object as its stack frames without the message, so log the
|
|
5494
|
+
* message text yourself (`console.error(\`… ${err.message}\`, err.stack)`).
|
|
5495
|
+
*/
|
|
5366
5496
|
exception?: {
|
|
5367
5497
|
name: string;
|
|
5368
5498
|
message: string;
|
|
@@ -5394,4 +5524,4 @@ interface AppLogsResponse {
|
|
|
5394
5524
|
declare const APP_LOG_EVENT_KEYS: readonly ["id", "timestamp", "level", "eventType", "message", "source", "outcome", "request", "exception"];
|
|
5395
5525
|
type AppLogEventKey = (typeof APP_LOG_EVENT_KEYS)[number];
|
|
5396
5526
|
|
|
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,
|
|
5527
|
+
export { ACCOUNT_STORAGE_LIMIT_BYTES, ACTION_ROUTES_BEARER_GUARD_MIGRATION_ID, ACTION_TOOLS_DELETE_WHERE_MIGRATION_ID, 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, BUILD_INJECTED_APP_ID_MIGRATION_ID, 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, type KnowledgeAddOptions, type KnowledgeAddResult, type KnowledgeClient, type KnowledgeEnv, KnowledgeError, type KnowledgeItem, type KnowledgeListOptions, type KnowledgeListResult, type KnowledgeSearchChunk, type KnowledgeSearchOptions, type KnowledgeSearchResult, type KnowledgeStatus, 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 ScopedKnowledgeClient, 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, YjsRoom, analyzePermissions, apiWorkerFetch, appendMessage, applyAiToolDefaults, applySlidingWindow, armCronRoom, 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, epochSeconds, folderFilter, formatBytes, getChat, getDeepSpaceAIModel, getGlobalDOSchemas, getGlobalDOType, getMessageType, getRolePermissions, handleAwarenessMessage, handleClientErrorReport, handleSyncMessage, hasContent, isAnonymousUserId, isAssetNotFoundHandling, isAutoProvision, isFilesVerbPath, isOwner, isPlatformReservedPath, isTestAccountClaims, isTestAccountEmail, isTestAccountTier, knowledge, lintSchema, lintSchemaSet, lintSchemas, listDeepSpaceAgentModels, loadMessages, makeDefaultSummarizer, matchOrigin, meterAi, meterUsage, meterVectorize, mintAppId, mintUlid, noopPermissionContext, normalizeKnowledgeFolder, 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, writeVarUint, writeVarUint8Array };
|