@spooky-sync/core 1.0.0-beta.8 → 1.0.0-beta.9
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/AGENTS.md +1 -1
- package/dist/index.d.ts +99 -2
- package/dist/index.js +942 -27
- package/dist/types.d.ts +68 -2
- package/package.json +3 -3
- package/skills/sp00ky-core/SKILL.md +2 -0
- package/src/client/sp00ky-client.test.ts +64 -1
- package/src/client/sp00ky-client.ts +53 -10
- package/src/index.ts +7 -0
- package/src/modules/channel/hub.test.ts +223 -0
- package/src/modules/channel/hub.ts +355 -0
- package/src/modules/channel/index.ts +358 -14
- package/src/modules/channel/room.test.ts +340 -0
- package/src/modules/channel/room.ts +367 -0
- package/src/modules/channel/rooms.fixture.ts +383 -0
- package/src/modules/channel/share.test.ts +535 -0
- package/src/modules/channel/webrtc.ts +2 -2
- package/src/types.ts +5 -0
package/AGENTS.md
CHANGED
|
@@ -45,7 +45,7 @@ re-materialized from state, never patched in place.
|
|
|
45
45
|
- `services/blobs/` — durable cache for bucket bytes: OPFS holds the files, `_00_blob` holds a manifest that reconcile rebuilds from disk (so a wiped local store costs metadata, not the offline cache). Nothing expires on a timer; eviction is LRU under a byte budget only, skipping pinned and on-screen entries. Config: `blobCache` in `types.ts`.
|
|
46
46
|
- `AuthService` — token management, sign-in/sign-out events. `subscribe(cb, { immediate? })` calls `cb` at once with the current user unless `immediate: false`, then on every change.
|
|
47
47
|
- `CrdtManager`, `CrdtField`, `cursorColorFromName`, `CURSOR_COLORS`: collaborative `@crdt` fields on Loro. Client methods: `openCrdtField(table, recordId, field, draft?)` -> `Promise<CrdtField>` (every open of one field in a tab shares one `LoroDoc`; pair each with a close), `closeCrdtField(table, recordId, field)` -> `Promise<void>` (resolves once unsent edits are in the outbox; offline, once they are saved on the device, never waiting on the network), `createCrdtDraft(table, field)` -> a detached `CrdtField` for a record not created yet (`db.create` first, then pass it to `openCrdtField` as `draft`). `CrdtField`: `getDoc()`, `hasContent()`, `pushCursorState(bytes)`, `onCursorUpdate = cb` (a setter). Config: `crdt: true` preloads Loro, `crdtDebounceMs` (the first edit after a quiet spell waits this long, default 50), `crdtSendIntervalMs` (shortest gap between two sends of one field while typing, default 200). Design: `docs/crdt-v2.md` at the repo root.
|
|
48
|
-
- **Peer to peer channels** (`-- @channel` tables, experimental): `client.channel(query, peers)` (a query builder, a built query, or a list, on `@channel` tables; typed from the query; own id skipped; both sides must list each other) opens WebRTC data channels to the peers' tabs and returns `Sp00kyChannel` (`state()`, `subscribe(cb)`, `setPeers`, `setQueries`, `close`, `tables()`, plus scoped `update` / `create` / `delete`). Only the query's `where` counts (`matchesWhere`, pure JS over the plan; `compileScope` throws for `.related()`, link-following paths, `$params`, unknown ops); it is never registered. `orderBy` / `limit` / `offset` / `select` / `.one()` warn once per shape (`unusedArgs`) unless the builder has `.ignoreUnusedArgs()`. Writes go to the peers of every open channel whose filter the row matches: a create checks the new row, an update or delete the stored row (`readRow` saga) before and after the patch. A peer's write is taken only if the sender is listed by a channel whose filter the row matches (an update/delete of a row not held is ignored). Peers fold updates into every subscription showing the row (output only, never the store): normal fields retire once the synced row holds them (or after `channels.confirmTimeoutMs`, default 5000); `-- @ephemeral` fields (optional, never filtered on) never reach the database, last writer wins, vanish when their author disconnects. A peer's create goes into the store and circuit like an own optimistic create minus the outbox (`peerCreate` saga, `state.peerWrites` folded into `overlay()`) and is undone at `confirmTimeoutMs` unless the server body landed (`versions`); a peer's delete hides the row through the overlay until it expires (`peerDelete`, `PeerWriteExpired`). Signaling is raw CREATE/LIVE on the generated server-only `_00_channel_signal` (sender stamped by the DB). Everything beyond identity, filter and field types is `channels.accept: { [table]: ({ kind, from, table, id, row, patch }) => boolean }`. Config also `iceServers`, `transport`. Dart has the same feature on the same wire protocol (`spooky_core` `modules/channel/`, `client.channel(...)`, WebRTC via `spooky_flutter`'s `flutterWebRtc`), so web and Flutter peers interoperate: keep the message shape, signaling rows and offer/answer ordering in step across both. Code: `modules/channel/`. Docs: `/docs/client/channels`.
|
|
48
|
+
- **Peer to peer channels** (`-- @channel` tables, experimental): `client.channel(query, peers)` (a query builder, a built query, or a list, on `@channel` tables; typed from the query; own id skipped; both sides must list each other) opens WebRTC data channels to the peers' tabs and returns `Sp00kyChannel` (`state()`, `subscribe(cb)`, `setPeers`, `setQueries`, `close`, `tables()`, plus scoped `update` / `create` / `delete`). Only the query's `where` counts (`matchesWhere`, pure JS over the plan; `compileScope` throws for `.related()`, link-following paths, `$params`, unknown ops); it is never registered. `orderBy` / `limit` / `offset` / `select` / `.one()` warn once per shape (`unusedArgs`) unless the builder has `.ignoreUnusedArgs()`. Writes go to the peers of every open channel whose filter the row matches: a create checks the new row, an update or delete the stored row (`readRow` saga) before and after the patch. A peer's write is taken only if the sender is listed by a channel whose filter the row matches (an update/delete of a row not held is ignored). Peers fold updates into every subscription showing the row (output only, never the store): normal fields retire once the synced row holds them (or after `channels.confirmTimeoutMs`, default 5000); `-- @ephemeral` fields (optional, never filtered on) never reach the database, last writer wins, vanish when their author disconnects. A peer's create goes into the store and circuit like an own optimistic create minus the outbox (`peerCreate` saga, `state.peerWrites` folded into `overlay()`) and is undone at `confirmTimeoutMs` unless the server body landed (`versions`); a peer's delete hides the row through the overlay until it expires (`peerDelete`, `PeerWriteExpired`). Signaling is raw CREATE/LIVE on the generated server-only `_00_channel_signal` (sender stamped by the DB). Everything beyond identity, filter and field types is `channels.accept: { [table]: ({ kind, from, table, id, row, patch }) => boolean }`. Config also `iceServers`, `transport`. **Sharing with the user's own devices** (`channels.share`, needs `channels.relay`; Dart and Rust have the same on the same wire): `share: { tables: { game: true, note: (row) => !row.draft } }` sends the user's own optimistic writes on those tables (no `-- @channel` needed) to their other devices, which treat them like any peer's write. `ChannelManager` keeps one internal channel whose only user is the signed-in one (`sharing`, `ownState()`, `subscribeOwn`; facade: `client.shareState()`, `client.subscribeShareState(cb)`). Transport: `splitTransport(room, mesh)` routes the own user to the room and everybody else to the WebRTC mesh. The room is `hubTransport` (`modules/channel/hub.ts`: one link per browser, a Web Lock picks the tab that holds it, the others reach it over a `BroadcastChannel`; hubs tell each other which tabs they speak for, so a peer is still one tab; tabs of one browser are not peers) over `roomLink` (`modules/channel/room.ts`: a WebSocket to `sp00ky-relay`, protocol in `apps/relay/README.md`, hello with the session token, reconnect with backoff, plus a direct WebRTC link signaled through the relay while exactly two browsers are in the room). Interest: each tab tells the user's other tabs what its subscriptions can show (`client.subscribe` passes `channels.interestOf(def.plan, def.params)` to `tap`; `queryInterest` / `mergeInterest` / `showsRow`, wire message `{ t: 'interest' }`, only ever between tabs of one user), and `send` skips a tab that shows nothing of the row; a filter the row alone cannot decide, or a table read through `.related()`, counts as the whole table. A native client (Dart `spooky_core` `modules/channel/room.dart`, Rust `core-rs` `modules/channel/room.rs`) is a hub with one tab and no direct link; a change to the relay frames, the hub envelope (`{ h: 'tabs' }`, `{ h: 'm' }`) or the interest message needs all three clients. Dart has the same feature on the same wire protocol (`spooky_core` `modules/channel/`, `client.channel(...)`, WebRTC via `spooky_flutter`'s `flutterWebRtc`), so web and Flutter peers interoperate: keep the message shape, signaling rows and offer/answer ordering in step across both. Code: `modules/channel/`. Docs: `/docs/client/channels`.
|
|
49
49
|
- Types: `Sp00kyConfig` (client-solid wraps it as `SyncedDbConfig`), `QueryTimeToLive`, `PersistenceClient`, `StoreType`, `UpdateOptions`, `RunOptions`, `PreloadOptions`.
|
|
50
50
|
- Subpath: `@spooky-sync/core/otel` — `createOtelTransmit(endpoint)` for piping pino logs to OpenTelemetry.
|
|
51
51
|
- `client.webPush` (`WebPushModule`, `db.webPush` in the Solid bindings) - Web Push on the page: `support()`, `info()`, `subscribe(opts)` (call from a click), `unsubscribe(opts)`, `sync()`, `isSubscribed()`, `update(opts)`, `devices()`, `notify(msg)`, `cancel(id)`, `test()`, `bridge()`, `onMessage(cb)`. Server calls are `fn::push::*`; typed `WebPushError`; config `webPush` in `types.ts`. Sign-out runs through `AuthService.onBeforeSignOut`.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as WebPushInfo, $t as
|
|
1
|
+
import { $ as WebPushInfo, $t as ChannelRelayConfig, A as RecordVersionArray, At as AuthEventTypeMap, B as StorageHealthStatus, Bt as ImpersonationTimerHost, C as QueryState, Ct as AuthService, D as QueryTimings, Dt as SignOutContext, E as QueryTimeToLive, Et as SIGN_OUT_HOOK_TIMEOUT_MS, F as Sp00kyChannel, Ft as SealedQuery, G as TimingPhase, Gt as decodeTokenClaims, H as SyncHealth, Ht as ORIGIN_TOKEN_KEY, I as Sp00kyConfig, It as EventDefinition, J as PushDeviceKind, Jt as sameImpersonation, K as UpdateOptions, Kt as impersonationFromToken, L as Sp00kyQueryResult, Lt as EventSystem, M as RegistrationTimings, Mt as createAuthEventSystem, N as RunOptions, Nt as RemoteDatabaseService, O as QueryUpdateCallback, Ot as SignOutHook, P as ServerViewMeta, Pt as LocalStore, Q as WebPushErrorCode, Qt as ChannelOp, R as Sp00kyQueryResultPromise, Rt as IMPERSONATION_ACCESS, S as QueryHash, St as ActiveImpersonation, T as QueryStatusCallback, Tt as REFUSAL_RECHECK_MIN_MS, U as SyncHealthConfig, Ut as SESSION_POLL_MS, V as StoreType, Vt as ImpersonationTimers, W as SyncHealthStatus, Wt as TokenClaims, X as WebPushDevice, Xt as ChannelHandle, Y as WebPushConfig, Yt as ChannelAcceptRule, Z as WebPushError, Zt as ChannelMessage, _ as PreloadOptions, _t as PushPayload, a as EventSubscriptionOptions, an as ChannelTransport, at as WebPushSyncOptions, b as QueryConfig, bt as WebPushClientMessage, c as LocalWorkers, cn as ChannelsConfig, ct as WebPushUnsupportedReason, d as MutationCallback, dn as TransportHooks, dt as BridgeSignOutMessage, en as ChannelScope, et as WebPushMessage, f as MutationEvent, fn as matchesWhere, ft as BridgeTokenMessage, g as PinoTransmit, gt as PushOp, h as PhaseStat, hn as Logger$1, ht as PushNotificationAction, i as EdgeDelta, in as ChannelStatus, it as WebPushSupport, j as RecordVersionDiff, jt as AuthEventTypes, k as ReconnectConfig, kt as AuthEventSystem, l as MATERIALIZATION_SAMPLE_WINDOW, ln as InterestMessage, lt as WebPushUpdateOptions, m as PersistenceClient, mn as LogTap, mt as PushNotification, n as ConnectionState, nn as ChannelShareRule, nt as WebPushModule, o as InlineRow, on as ChannelTransportFactory, ot as WebPushSyncStatus, p as MutationEventType, pn as unusedArgs, pt as PUSH_PAYLOAD_VERSION, q as PUSH_ENDPOINT_KEY, qt as renewDelayMs, r as DebounceOptions, rn as ChannelState, rt as WebPushSubscribeOptions, s as Level, sn as ChannelWire, st as WebPushUnsubscribeOptions, t as ChannelQuery, tn as ChannelShareConfig, tt as WebPushMessageInput, u as MembershipOutcome, un as PeerRef, ut as detectWebPushSupport, v as PreloadRefresh, vt as PushPayloadKind, w as QueryStatus, wt as ImpersonationCandidate, x as QueryConfigRecord, xt as isPushPayload, y as QueryAuthorityCallback, yt as PushUrgency, z as StorageHealth, zt as ImpersonationInfo } from "./types.js";
|
|
2
2
|
import { BackendNames, BackendRoutes, BucketNames, ChannelPeer, ChannelTableNames, FinalQuery, GetTable, QueryBuilder, QueryOptions, QueryPlan, RecordId, RoutePayload, SchemaStructure, TableModel, TableNames } from "@spooky-sync/query-builder";
|
|
3
3
|
import * as surrealdb0 from "surrealdb";
|
|
4
4
|
import { Duration, RecordId as RecordId$1, Surreal } from "surrealdb";
|
|
@@ -2183,6 +2183,15 @@ declare class Sp00kyClient<S extends SchemaStructure> {
|
|
|
2183
2183
|
* when done.
|
|
2184
2184
|
*/
|
|
2185
2185
|
channel<T extends ChannelTableNames<S>>(queries: ChannelQuery<S, T> | ReadonlyArray<ChannelQuery<S, T>>, peers: Iterable<ChannelPeer>): Sp00kyChannel<S, T>;
|
|
2186
|
+
/**
|
|
2187
|
+
* The link to this user's other devices (`channels.share`): `connected`
|
|
2188
|
+
* with the user's id in `peers` while at least one other tab of theirs, in
|
|
2189
|
+
* another browser, is in the room. `idle` when nothing is shared or nobody
|
|
2190
|
+
* is signed in.
|
|
2191
|
+
*/
|
|
2192
|
+
shareState(): ChannelState;
|
|
2193
|
+
/** Called at once with `shareState()`, then on every change. */
|
|
2194
|
+
subscribeShareState(callback: (state: ChannelState) => void): () => void;
|
|
2186
2195
|
private channelScopes;
|
|
2187
2196
|
deregisterQuery(queryHash: string): void;
|
|
2188
2197
|
subscribeQueryStatus(queryHash: string, callback: QueryStatusCallback, options?: {
|
|
@@ -2251,6 +2260,94 @@ declare class Sp00kyClient<S extends SchemaStructure> {
|
|
|
2251
2260
|
getBlobCacheStats(): BlobCacheStats;
|
|
2252
2261
|
}
|
|
2253
2262
|
//#endregion
|
|
2263
|
+
//#region src/modules/channel/room.d.ts
|
|
2264
|
+
/**
|
|
2265
|
+
* The link between the browsers of one user.
|
|
2266
|
+
*
|
|
2267
|
+
* Every browser keeps one socket to the room relay (`sp00ky-relay`, see
|
|
2268
|
+
* `apps/relay`). The relay proves the user from the session token, puts the
|
|
2269
|
+
* socket into that user's room and forwards what the members send each
|
|
2270
|
+
* other without reading it. So a message is there after one hop to the relay
|
|
2271
|
+
* and one back, whatever network each device sits in, and nothing waits for
|
|
2272
|
+
* a connection to be negotiated.
|
|
2273
|
+
*
|
|
2274
|
+
* Two browsers alone in a room also open a WebRTC data channel to each other
|
|
2275
|
+
* (its offer and answer travel through the relay) and use it while it is up:
|
|
2276
|
+
* on one network that is a millisecond instead of a trip to the relay. A
|
|
2277
|
+
* third browser joining ends that, and everybody talks through the room.
|
|
2278
|
+
*
|
|
2279
|
+
* Nothing here is kept or retried: a message lost on the way is one the
|
|
2280
|
+
* normal sync delivers a moment later.
|
|
2281
|
+
*/
|
|
2282
|
+
/** A browser in the room, by the id it joined with. */
|
|
2283
|
+
type RoomPeer = string;
|
|
2284
|
+
interface RoomLinkHooks {
|
|
2285
|
+
/** Who this browser is, or null while signed out. */
|
|
2286
|
+
self(): {
|
|
2287
|
+
user: string;
|
|
2288
|
+
peer: RoomPeer;
|
|
2289
|
+
} | null;
|
|
2290
|
+
onPeer(peer: RoomPeer, up: boolean): void;
|
|
2291
|
+
onMessage(from: RoomPeer, data: unknown): void;
|
|
2292
|
+
onStatus(status: 'connecting' | 'connected' | 'failed'): void;
|
|
2293
|
+
}
|
|
2294
|
+
interface RoomLink {
|
|
2295
|
+
/** Send to these browsers of the room, or (`null`) to all of them. Fire and forget. */
|
|
2296
|
+
send(to: ReadonlyArray<RoomPeer> | null, data: unknown): void;
|
|
2297
|
+
close(): void;
|
|
2298
|
+
}
|
|
2299
|
+
type RoomLinkFactory = (hooks: RoomLinkHooks) => RoomLink;
|
|
2300
|
+
interface RoomLinkOptions {
|
|
2301
|
+
/** The relay's WebSocket address. */
|
|
2302
|
+
url: string;
|
|
2303
|
+
/** The session token the relay proves the user with; null while there is none. */
|
|
2304
|
+
token: () => string | null;
|
|
2305
|
+
/** `false`: never open the direct link. */
|
|
2306
|
+
direct?: boolean;
|
|
2307
|
+
iceServers?: RTCIceServer[];
|
|
2308
|
+
logger?: Pick<Logger$1, 'debug' | 'warn'>;
|
|
2309
|
+
/** Injectable for tests and non-browser runtimes. */
|
|
2310
|
+
WebSocket?: typeof WebSocket;
|
|
2311
|
+
RTCPeerConnection?: typeof RTCPeerConnection;
|
|
2312
|
+
}
|
|
2313
|
+
declare function roomLink(hooks: RoomLinkHooks, opts: RoomLinkOptions): RoomLink;
|
|
2314
|
+
/**
|
|
2315
|
+
* One transport out of two: the user's own devices are reached through
|
|
2316
|
+
* `own` (the room), everybody else through `others` (the mesh between
|
|
2317
|
+
* users). Without `own`, the user's own devices are simply never reached.
|
|
2318
|
+
*/
|
|
2319
|
+
declare function splitTransport(own: ChannelTransportFactory | null, others: ChannelTransportFactory): ChannelTransportFactory;
|
|
2320
|
+
//#endregion
|
|
2321
|
+
//#region src/modules/channel/hub.d.ts
|
|
2322
|
+
/** The part of `navigator.locks` this needs. */
|
|
2323
|
+
interface HubLocks {
|
|
2324
|
+
request(name: string, callback: () => Promise<void>): Promise<unknown>;
|
|
2325
|
+
request(name: string, options: {
|
|
2326
|
+
mode: 'shared' | 'exclusive';
|
|
2327
|
+
}, callback: () => Promise<void> | void): Promise<unknown>;
|
|
2328
|
+
}
|
|
2329
|
+
/** The part of a `BroadcastChannel` this needs. */
|
|
2330
|
+
interface HubBus {
|
|
2331
|
+
postMessage(message: unknown): void;
|
|
2332
|
+
onmessage: ((event: {
|
|
2333
|
+
data: unknown;
|
|
2334
|
+
}) => void) | null;
|
|
2335
|
+
close(): void;
|
|
2336
|
+
}
|
|
2337
|
+
interface HubOptions {
|
|
2338
|
+
/** Names the room of one user in this browser; the lock and the bus carry it. */
|
|
2339
|
+
scope: (user: string) => string;
|
|
2340
|
+
/** Builds the browser's link. Called in the tab that holds it. */
|
|
2341
|
+
link: RoomLinkFactory;
|
|
2342
|
+
logger?: Pick<Logger$1, 'debug' | 'warn'>;
|
|
2343
|
+
/** `null` forces a link per tab. Default `navigator.locks`. */
|
|
2344
|
+
locks?: HubLocks | null;
|
|
2345
|
+
/** `null` forces a link per tab. Default `BroadcastChannel`. */
|
|
2346
|
+
bus?: ((name: string) => HubBus) | null;
|
|
2347
|
+
supported?: boolean;
|
|
2348
|
+
}
|
|
2349
|
+
declare function hubTransport(hooks: TransportHooks, opts: HubOptions): ChannelTransport;
|
|
2350
|
+
//#endregion
|
|
2254
2351
|
//#region src/modules/channel/webrtc.d.ts
|
|
2255
2352
|
/**
|
|
2256
2353
|
* The default channel transport: one WebRTC data channel per pair of tabs,
|
|
@@ -2353,4 +2450,4 @@ declare class LocalOpTimeoutError extends Error {
|
|
|
2353
2450
|
* select on a throttled tab is seconds, not tens of seconds. */
|
|
2354
2451
|
declare const DEFAULT_LOCAL_OP_TIMEOUT_MS = 30000;
|
|
2355
2452
|
//#endregion
|
|
2356
|
-
export { ActiveImpersonation, AppReleaseHandle, AppReleaseModule, type AppReleaseOptions, type AppReleaseSnapshot, AuthEventSystem, AuthEventTypeMap, AuthEventTypes, AuthService, BLURHASH_IMAGE_EXTENSIONS, type BlobCacheStats, type BlobEntry, type BlobKey, type BlobReadOptions, type BlobUrlLease, type BlurhashEncodeOptions, type BlurhashSetting, type BridgeSignOutMessage, type BridgeTokenMessage, BucketHandle, BucketPutOptions, BucketPutResult, CURSOR_COLORS, type ChannelAcceptRule, type ChannelHandle, type ChannelMessage, type ChannelOp, ChannelQuery, type ChannelScope, type ChannelState, type ChannelStatus, type ChannelTransport, type ChannelTransportFactory, type ChannelsConfig, ConnectionState, CrdtField, CrdtManager, DEFAULT_LOCAL_OP_TIMEOUT_MS, DebounceOptions, EdgeDelta, EventSubscriptionOptions, type FailedMutationRow as FailedMutation, FeatureFlagHandle, FeatureFlagModule, type FeatureFlagOptions, type FeatureFlagOverride, type FeatureFlagSnapshot, IMPERSONATION_ACCESS, ImpersonationCandidate, ImpersonationInfo, ImpersonationTimerHost, ImpersonationTimers, InlineRow, Level, LocalOpTimeoutError, LocalWorkers, MATERIALIZATION_SAMPLE_WINDOW, MembershipOutcome, MutationCallback, MutationEvent, MutationEventType, ORIGIN_TOKEN_KEY, type OutgoingSignal, PUSH_ENDPOINT_KEY, PUSH_PAYLOAD_VERSION, type PeerRef, PersistenceClient, PhaseStat, PinoTransmit, PreloadOptions, PreloadRefresh, type PushDeviceKind, type PushNotification, type PushNotificationAction, type PushOp, type PushPayload, type PushPayloadKind, type PushUrgency, QueryAuthorityCallback, QueryConfig, QueryConfigRecord, QueryHash, QueryState, QueryStatus, QueryStatusCallback, QueryTimeToLive, QueryTimings, QueryUpdateCallback, REFUSAL_RECHECK_MIN_MS, ReconnectConfig, RecordVersionArray, RecordVersionDiff, RegistrationTimings, RunOptions, SESSION_POLL_MS, SIGN_OUT_HOOK_TIMEOUT_MS, ServerViewMeta, SignOutContext, SignOutHook, type Signal, type SignalPort, Sp00kyChannel, Sp00kyClient, Sp00kyClientDeps, Sp00kyConfig, Sp00kyQueryResult, Sp00kyQueryResultPromise, StorageHealth, StorageHealthStatus, StoreType, SyncHealth, SyncHealthConfig, SyncHealthStatus, TimingPhase, TokenClaims, type TransportHooks, UpdateOptions, type WebPushClientMessage, type WebPushConfig, type WebPushDevice, WebPushError, type WebPushErrorCode, type WebPushInfo, type WebPushMessage, type WebPushMessageInput, WebPushModule, type WebPushSubscribeOptions, type WebPushSupport, type WebPushSyncOptions, type WebPushSyncStatus, type WebPushUnsubscribeOptions, type WebPushUnsupportedReason, type WebPushUpdateOptions, blurhashSidecarPath, bucketContentToBlob, createAuthEventSystem, cursorColorFromName, decode as decodeBlurhash, decodeTokenClaims, detectWebPushSupport, encode as encodeBlurhash, encodeImageToBlurhash, fileToUint8Array, impersonationFromToken, isBlurhashValid, isImagePath, isPushPayload, matchesWhere, renewDelayMs, sameImpersonation, semverGt, surrealSignal, textToHtml, unusedArgs, webrtcTransport };
|
|
2453
|
+
export { ActiveImpersonation, AppReleaseHandle, AppReleaseModule, type AppReleaseOptions, type AppReleaseSnapshot, AuthEventSystem, AuthEventTypeMap, AuthEventTypes, AuthService, BLURHASH_IMAGE_EXTENSIONS, type BlobCacheStats, type BlobEntry, type BlobKey, type BlobReadOptions, type BlobUrlLease, type BlurhashEncodeOptions, type BlurhashSetting, type BridgeSignOutMessage, type BridgeTokenMessage, BucketHandle, BucketPutOptions, BucketPutResult, CURSOR_COLORS, type ChannelAcceptRule, type ChannelHandle, type ChannelMessage, type ChannelOp, ChannelQuery, type ChannelRelayConfig, type ChannelScope, type ChannelShareConfig, type ChannelShareRule, type ChannelState, type ChannelStatus, type ChannelTransport, type ChannelTransportFactory, type ChannelWire, type ChannelsConfig, ConnectionState, CrdtField, CrdtManager, DEFAULT_LOCAL_OP_TIMEOUT_MS, DebounceOptions, EdgeDelta, EventSubscriptionOptions, type FailedMutationRow as FailedMutation, FeatureFlagHandle, FeatureFlagModule, type FeatureFlagOptions, type FeatureFlagOverride, type FeatureFlagSnapshot, type HubOptions, IMPERSONATION_ACCESS, ImpersonationCandidate, ImpersonationInfo, ImpersonationTimerHost, ImpersonationTimers, InlineRow, type InterestMessage, Level, LocalOpTimeoutError, LocalWorkers, MATERIALIZATION_SAMPLE_WINDOW, MembershipOutcome, MutationCallback, MutationEvent, MutationEventType, ORIGIN_TOKEN_KEY, type OutgoingSignal, PUSH_ENDPOINT_KEY, PUSH_PAYLOAD_VERSION, type PeerRef, PersistenceClient, PhaseStat, PinoTransmit, PreloadOptions, PreloadRefresh, type PushDeviceKind, type PushNotification, type PushNotificationAction, type PushOp, type PushPayload, type PushPayloadKind, type PushUrgency, QueryAuthorityCallback, QueryConfig, QueryConfigRecord, QueryHash, QueryState, QueryStatus, QueryStatusCallback, QueryTimeToLive, QueryTimings, QueryUpdateCallback, REFUSAL_RECHECK_MIN_MS, ReconnectConfig, RecordVersionArray, RecordVersionDiff, RegistrationTimings, type RoomLink, type RoomLinkHooks, type RoomLinkOptions, RunOptions, SESSION_POLL_MS, SIGN_OUT_HOOK_TIMEOUT_MS, ServerViewMeta, SignOutContext, SignOutHook, type Signal, type SignalPort, Sp00kyChannel, Sp00kyClient, Sp00kyClientDeps, Sp00kyConfig, Sp00kyQueryResult, Sp00kyQueryResultPromise, StorageHealth, StorageHealthStatus, StoreType, SyncHealth, SyncHealthConfig, SyncHealthStatus, TimingPhase, TokenClaims, type TransportHooks, UpdateOptions, type WebPushClientMessage, type WebPushConfig, type WebPushDevice, WebPushError, type WebPushErrorCode, type WebPushInfo, type WebPushMessage, type WebPushMessageInput, WebPushModule, type WebPushSubscribeOptions, type WebPushSupport, type WebPushSyncOptions, type WebPushSyncStatus, type WebPushUnsubscribeOptions, type WebPushUnsupportedReason, type WebPushUpdateOptions, blurhashSidecarPath, bucketContentToBlob, createAuthEventSystem, cursorColorFromName, decode as decodeBlurhash, decodeTokenClaims, detectWebPushSupport, encode as encodeBlurhash, encodeImageToBlurhash, fileToUint8Array, hubTransport, impersonationFromToken, isBlurhashValid, isImagePath, isPushPayload, matchesWhere, renewDelayMs, roomLink, sameImpersonation, semverGt, splitTransport, surrealSignal, textToHtml, unusedArgs, webrtcTransport };
|