@asaidimu/hestia-mock 1.15.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/index.d.ts ADDED
@@ -0,0 +1,563 @@
1
+ import { DispatchInput, HestiaClient, HestiaResponse, RequestOptions, StreamHandlers, StreamOptions, Transport } from "@asaidimu/hestia";
2
+ import { SystemError } from "@asaidimu/utils-error";
3
+ import { SimplePersistence } from "@asaidimu/utils-persistence";
4
+ import { QueryDSL, QueryFilter, SortConfiguration } from "@asaidimu/query";
5
+ //#region src/bus.d.ts
6
+ /**
7
+ * In-memory pub/sub event bus.
8
+ *
9
+ * The real server pushes Server-Sent Events over HTTP; the mock pushes the
10
+ * same payloads through this bus. `openStream()` subscribes to a topic and
11
+ * renders SSE-framed messages, so consuming code (notifications, audit
12
+ * streams, workflow run streams) behaves identically.
13
+ */
14
+ type BusListener = (payload: unknown) => void;
15
+ declare class EventBus {
16
+ private topics;
17
+ subscribe(topic: string, listener: BusListener): () => void;
18
+ emit(topic: string, payload: unknown): void;
19
+ listenerCount(topic?: string): number;
20
+ clear(): void;
21
+ }
22
+ /** Canonical topic names used by the mock server. */
23
+ declare const Topics: {
24
+ readonly notifications: (userId: string) => string;
25
+ readonly notificationsAll: "notifications:all";
26
+ readonly audit: "audit";
27
+ readonly logs: (level?: string) => string;
28
+ readonly workflowRun: (runId: string) => string;
29
+ readonly collections: (name: string) => string;
30
+ };
31
+ //#endregion
32
+ //#region src/idb.d.ts
33
+ /**
34
+ * Minimal promise-based IndexedDB wrapper.
35
+ *
36
+ * Zero dependencies, works in browsers, Node (via `fake-indexeddb`), and any
37
+ * environment exposing the standard `indexedDB` global. Deliberately thin —
38
+ * every operation opens a short-lived transaction so concurrent callers never
39
+ * fight over aborted transactions.
40
+ */
41
+ type Key = string | number | Date | BufferSource | IDBValidKey[];
42
+ /** Typed helpers bound to one object store within an existing transaction. */
43
+ declare class Store {
44
+ private readonly tx;
45
+ readonly name: string;
46
+ constructor(tx: IDBTransaction, name: string);
47
+ private get raw();
48
+ get(key: IDBValidKey): Promise<any>;
49
+ getAll(query?: IDBValidKey | IDBKeyRange, count?: number): Promise<any[]>;
50
+ getAllByIndex(index: string, query?: IDBValidKey | IDBKeyRange, count?: number): Promise<any[]>;
51
+ count(query?: IDBValidKey | IDBKeyRange): Promise<number>;
52
+ getKey(query: IDBValidKey | IDBKeyRange): Promise<IDBValidKey | undefined>;
53
+ put(value: any, key?: IDBValidKey): Promise<IDBValidKey>;
54
+ add(value: any, key?: IDBValidKey): Promise<IDBValidKey>;
55
+ delete(key: IDBValidKey): Promise<undefined>;
56
+ clear(): Promise<undefined>;
57
+ /** Iterate all values with a cursor (supports range + direction). */
58
+ forEach(opts: {
59
+ query?: IDBValidKey | IDBKeyRange;
60
+ direction?: IDBCursorDirection;
61
+ index?: string;
62
+ }, visit: (value: any, cursorKey: IDBValidKey) => void | Promise<void>): Promise<void>;
63
+ }
64
+ /** A thin typed table facade over one object store. */
65
+ declare class Table<T = any, K extends Key = Key> {
66
+ private readonly db;
67
+ readonly name: string;
68
+ constructor(db: IDBDatabase, name: string);
69
+ get(key: K): Promise<T | undefined>;
70
+ getAll(): Promise<T[]>;
71
+ getAllByIndex<R = T>(index: string, query?: IDBValidKey | IDBKeyRange): Promise<R[]>;
72
+ count(query?: IDBValidKey | IDBKeyRange): Promise<number>;
73
+ put(value: T): Promise<void>;
74
+ delete(key: K): Promise<void>;
75
+ clear(): Promise<void>;
76
+ /** Low-level access for multi-store transactions. */
77
+ store(tx: IDBTransaction): Store;
78
+ }
79
+ //#endregion
80
+ //#region src/schema.d.ts
81
+ declare const DEFAULT_DB_NAME = "hestia-mock";
82
+ /** Every object store in the mock server, with its key configuration. */
83
+ declare const STORES: {
84
+ /** Generic key-value store (seed flags, update state, pointers). */
85
+ readonly kv: {
86
+ readonly keyPath: "k";
87
+ };
88
+ /** Active sessions: {token, user_id, created_at, expires_at}. */
89
+ readonly sessions: {
90
+ readonly keyPath: "token";
91
+ readonly indexes: readonly [{
92
+ readonly name: "by_user";
93
+ readonly keyPath: "user_id";
94
+ }];
95
+ };
96
+ /** Collection metadata (anansi SchemaDefinition documents). */
97
+ readonly collections: {
98
+ readonly keyPath: "name";
99
+ };
100
+ /** Every document in every collection — system and user — keyed [collection, _id_]. */
101
+ readonly documents: {
102
+ readonly keyPath: readonly ["collection", "_id_"];
103
+ readonly indexes: readonly [{
104
+ readonly name: "by_collection";
105
+ readonly keyPath: "collection";
106
+ }];
107
+ };
108
+ /** Blob namespaces. */
109
+ readonly namespaces: {
110
+ readonly keyPath: "ns";
111
+ };
112
+ /** Stored blobs: {ns, key, meta, data}. */
113
+ readonly blobs: {
114
+ readonly keyPath: readonly ["ns", "key"];
115
+ readonly indexes: readonly [{
116
+ readonly name: "by_ns";
117
+ readonly keyPath: "ns";
118
+ }];
119
+ };
120
+ /** Resumable/staged upload sessions. */
121
+ readonly upload_sessions: {
122
+ readonly keyPath: "session_id";
123
+ };
124
+ /** IAM policy rules (raw PolicyRule records). */
125
+ readonly rules: {
126
+ readonly keyPath: "id";
127
+ };
128
+ /** In-app notifications. */
129
+ readonly notifications: {
130
+ readonly keyPath: "_id_";
131
+ readonly indexes: readonly [{
132
+ readonly name: "by_user";
133
+ readonly keyPath: "user_id";
134
+ }];
135
+ };
136
+ /** Application log entries. */
137
+ readonly logs: {
138
+ readonly keyPath: "id";
139
+ readonly indexes: readonly [{
140
+ readonly name: "by_level";
141
+ readonly keyPath: "level";
142
+ }];
143
+ };
144
+ /** Cron schedules. */
145
+ readonly schedules: {
146
+ readonly keyPath: "_id_";
147
+ readonly indexes: readonly [{
148
+ readonly name: "by_user";
149
+ readonly keyPath: "user_id";
150
+ }];
151
+ };
152
+ /** Workflow definitions. */
153
+ readonly workflows: {
154
+ readonly keyPath: "_id_";
155
+ };
156
+ /** Workflow runs. */
157
+ readonly runs: {
158
+ readonly keyPath: "run_id";
159
+ };
160
+ /** Workflow timeline events keyed [run_id, seq]. */
161
+ readonly run_events: {
162
+ readonly keyPath: readonly ["run_id", "seq"];
163
+ readonly indexes: readonly [{
164
+ readonly name: "by_run";
165
+ readonly keyPath: "run_id";
166
+ }];
167
+ };
168
+ /** Platform capabilities. */
169
+ readonly capabilities: {
170
+ readonly keyPath: "name";
171
+ };
172
+ /** Password reset tokens. */
173
+ readonly password_resets: {
174
+ readonly keyPath: "token";
175
+ readonly indexes: readonly [{
176
+ readonly name: "by_email";
177
+ readonly keyPath: "email";
178
+ }];
179
+ };
180
+ };
181
+ /** Convenience accessor grouping typed tables. */
182
+ interface MockTables {
183
+ kv: Table<{
184
+ k: string;
185
+ v: unknown;
186
+ }, string>;
187
+ sessions: Table<SessionRecord, string>;
188
+ collections: Table<Record<string, unknown>, string>;
189
+ documents: Table<StoredDocument, [string, string]>;
190
+ namespaces: Table<NamespaceRecord, string>;
191
+ blobs: Table<BlobRecord, [string, string]>;
192
+ upload_sessions: Table<UploadSessionRecord, string>;
193
+ rules: Table<RuleRecord, string>;
194
+ notifications: Table<Record<string, unknown>, string>;
195
+ logs: Table<LogRecord, string>;
196
+ schedules: Table<Record<string, unknown>, string>;
197
+ workflows: Table<Record<string, unknown>, string>;
198
+ runs: Table<RunRecord, string>;
199
+ run_events: Table<RunEventRecord, [string, number]>;
200
+ capabilities: Table<Record<string, unknown>, string>;
201
+ password_resets: Table<ResetTokenRecord, string>;
202
+ }
203
+ interface SessionRecord {
204
+ token: string;
205
+ user_id: string;
206
+ created_at: number;
207
+ expires_at: number;
208
+ }
209
+ interface StoredDocument {
210
+ collection: string;
211
+ _id_: string;
212
+ _metadata_: {
213
+ checksum: string;
214
+ created: string;
215
+ updated: string;
216
+ version: number;
217
+ };
218
+ [field: string]: unknown;
219
+ }
220
+ interface NamespaceRecord {
221
+ ns: string;
222
+ id: string;
223
+ display_name: string;
224
+ custom?: Record<string, string>;
225
+ created_at: string;
226
+ }
227
+ interface BlobRecord {
228
+ ns: string;
229
+ key: string;
230
+ meta: {
231
+ key: string;
232
+ namespace_id: string;
233
+ content_type: string;
234
+ size: number;
235
+ created_at: string;
236
+ updated_at?: string;
237
+ custom?: Record<string, any>;
238
+ };
239
+ data: Uint8Array;
240
+ }
241
+ interface UploadSessionRecord {
242
+ session_id: string;
243
+ ns: string;
244
+ key: string;
245
+ expected_size: number;
246
+ content_type: string;
247
+ block_size: number;
248
+ overwrite: boolean;
249
+ chunks: {
250
+ offset: number;
251
+ data: Uint8Array;
252
+ }[];
253
+ received: number;
254
+ created_at: number;
255
+ }
256
+ interface RuleRecord {
257
+ id: string;
258
+ name: string;
259
+ ruleType?: string;
260
+ syntax?: string;
261
+ expression?: string;
262
+ rules?: unknown;
263
+ description?: string;
264
+ protected?: boolean;
265
+ created_at: string;
266
+ updated_at: string;
267
+ }
268
+ interface LogRecord {
269
+ id: string;
270
+ level: string;
271
+ ts: number;
272
+ caller: string;
273
+ msg: string;
274
+ fields?: Record<string, unknown>;
275
+ [extra: string]: unknown;
276
+ }
277
+ interface RunRecord {
278
+ run_id: string;
279
+ pipeline_id: string;
280
+ start_time: number;
281
+ end_time?: number;
282
+ event_count: number;
283
+ status: "recording" | "complete" | "failed" | "paused";
284
+ metadata?: Record<string, unknown>;
285
+ final_state?: Record<string, unknown>;
286
+ error?: string;
287
+ }
288
+ interface RunEventRecord {
289
+ run_id: string;
290
+ seq: number;
291
+ timestamp: number;
292
+ source: string;
293
+ type: string;
294
+ payload: Record<string, unknown>;
295
+ delta?: Record<string, unknown>;
296
+ }
297
+ interface ResetTokenRecord {
298
+ token: string;
299
+ email: string;
300
+ created_at: number;
301
+ expires_at: number;
302
+ }
303
+ /** Open (and lazily create) the mock server database. */
304
+ declare function openMockDatabase(name?: string): Promise<{
305
+ db: IDBDatabase;
306
+ tables: MockTables;
307
+ }>;
308
+ /** Wipe every object store (used by `system:core:reset` and tests). */
309
+ declare function wipeAllStores(db: IDBDatabase): Promise<void>;
310
+ //#endregion
311
+ //#region src/seed.d.ts
312
+ interface SeedConfig {
313
+ email: string;
314
+ password: string;
315
+ name?: string;
316
+ /** Grant the seeded user the `root` permission (default true). */
317
+ admin?: boolean;
318
+ permissions?: string[];
319
+ tenantId?: string;
320
+ }
321
+ declare const DEFAULT_SEED: SeedConfig;
322
+ /** Seed a fresh database. Idempotent: skips when the admin user exists. */
323
+ declare function seedDatabase(tables: MockTables, config: SeedConfig): Promise<void>;
324
+ //#endregion
325
+ //#region src/envelope.d.ts
326
+ /**
327
+ * Response envelope helpers mirroring the Go HTTP transport
328
+ * (`{data: ..., metadata: {timestamp, request, page?}}`).
329
+ */
330
+ interface PaginationInfo {
331
+ number: number;
332
+ size: number;
333
+ count: number;
334
+ total: number;
335
+ pages: number;
336
+ }
337
+ interface Envelope<T> {
338
+ data: T;
339
+ metadata?: {
340
+ timestamp: string;
341
+ request: string;
342
+ page?: PaginationInfo;
343
+ [key: string]: unknown;
344
+ };
345
+ }
346
+ interface ServerResponse {
347
+ status: number;
348
+ body: Envelope<unknown> | undefined;
349
+ }
350
+ //#endregion
351
+ //#region src/server/context.d.ts
352
+ interface ResolvedIdentity {
353
+ /** Full `_user_` document (including the password hash — handlers must not leak it). */
354
+ user: StoredDocument;
355
+ auth_method: "password" | "api_key" | "bootstrap_key";
356
+ session_id?: string;
357
+ api_key_id?: string;
358
+ is_admin: boolean;
359
+ }
360
+ interface RequestContext {
361
+ /** Route name, e.g. `system:collections:document:create`. */
362
+ route: string;
363
+ /** Route arguments (`{name}`, `{doc_id}`, ...). */
364
+ args: Record<string, string>;
365
+ /** Query-string style modifiers. */
366
+ modifiers: Record<string, string | string[]>;
367
+ /** JSON or binary payload. */
368
+ payload: unknown;
369
+ /** Request headers (case-insensitive lookup via `header()`). */
370
+ headers: Record<string, string>;
371
+ /** Resolved identity, or null for anonymous requests. */
372
+ identity: ResolvedIdentity | null;
373
+ request_id: string;
374
+ }
375
+ //#endregion
376
+ //#region src/server/deps.d.ts
377
+ interface MockServerOptions {
378
+ /** Simulated latency in ms, or a randomizer returning ms. */
379
+ latency?: number | (() => number);
380
+ /** Version string reported by the updates subsystem. */
381
+ serverVersion?: string;
382
+ /** When set, `updates:check` reports this as an available version. */
383
+ updateAvailable?: string | null;
384
+ /** Execute workflow runs with the stub engine (default true). */
385
+ executeWorkflows?: boolean;
386
+ }
387
+ //#endregion
388
+ //#region src/server/server.d.ts
389
+ interface MockHestiaServerConfig {
390
+ database?: string;
391
+ seed?: SeedConfig | false;
392
+ /** Wipe the database before opening (fresh server every time). */
393
+ reset?: boolean;
394
+ options?: MockServerOptions;
395
+ }
396
+ declare class MockHestiaServer {
397
+ readonly tables: MockTables;
398
+ readonly bus: EventBus;
399
+ readonly options: MockServerOptions;
400
+ readonly databaseName: string;
401
+ private readonly db;
402
+ private routes;
403
+ private booted;
404
+ private schedulerTimer;
405
+ private constructor();
406
+ /** Open (or attach to) the database, seed on first run, and wire routes. */
407
+ static create(config?: MockHestiaServerConfig): Promise<MockHestiaServer>;
408
+ ready(): Promise<void>;
409
+ /** Dispatch a named route — the heart of the mock server. */
410
+ dispatch(route: string, input?: {
411
+ arguments?: Record<string, string>;
412
+ modifiers?: Record<string, string | string[]>;
413
+ payload?: unknown;
414
+ headers?: Record<string, string>;
415
+ }): Promise<ServerResponse>;
416
+ /** Resolve the user id of the persisted current session (used by streams). */
417
+ currentUserId(): Promise<string | null>;
418
+ /** Fire a schedule manually (the mock has no cron daemon). */
419
+ fireSchedule(scheduleId: string): Promise<void>;
420
+ /** Push an application log entry (visible to `appLogs.query`). */
421
+ pushLog(entry: {
422
+ level: string;
423
+ msg: string;
424
+ caller?: string;
425
+ fields?: Record<string, unknown>;
426
+ }): Promise<void>;
427
+ /** Manually write an audit entry (tests / custom instrumentation). */
428
+ writeAuditEntry(ctx: RequestContext, startedAt: number, failure: unknown): Promise<void>;
429
+ /** Simulated latency, if configured. */
430
+ applyLatency(): Promise<void>;
431
+ /** Close the database connection and stop background timers. */
432
+ close(): Promise<void>;
433
+ /** Start auto-ticking `@every` schedules (opt-in via options). */
434
+ private startScheduler;
435
+ private stopScheduler;
436
+ /** Fire every enabled `@every <n><unit>` schedule whose interval elapsed. */
437
+ tickSchedules(): Promise<void>;
438
+ private buildDeps;
439
+ private buildRoutes;
440
+ /** Route names the mock answers, useful for tests and diagnostics. */
441
+ routeNames(): string[];
442
+ /** Number of live store names (diagnostics). */
443
+ get storeNames(): string[];
444
+ }
445
+ //#endregion
446
+ //#region src/transport.d.ts
447
+ interface IndexedDbTransportOptions {
448
+ baseUrl?: string;
449
+ apiPrefix?: string;
450
+ /** Invoked when a dispatch fails with 401 while auth-state notification is enabled. */
451
+ onUnauthorized?: () => void;
452
+ }
453
+ declare class IndexedDbTransport implements Transport<string> {
454
+ private readonly server;
455
+ private baseUrl;
456
+ private apiPrefix;
457
+ private onUnauthorizedCb?;
458
+ constructor(server: MockHestiaServer, options?: IndexedDbTransportOptions);
459
+ setOnUnauthorized(cb: () => void): void;
460
+ base(): string;
461
+ prefix(): string;
462
+ routeUrl(name: string, args?: Record<string, string>): string;
463
+ ready(): Promise<void>;
464
+ dispatch<T>(name: string, input?: DispatchInput): Promise<HestiaResponse<T>>;
465
+ get<T>(path: string, options?: RequestOptions): Promise<HestiaResponse<T>>;
466
+ post<T>(path: string, body?: unknown, options?: RequestOptions): Promise<HestiaResponse<T>>;
467
+ patch<T>(path: string, body?: unknown, options?: RequestOptions): Promise<HestiaResponse<T>>;
468
+ put<T>(path: string, body?: unknown, options?: RequestOptions): Promise<HestiaResponse<T>>;
469
+ delete<T>(path: string, body?: unknown, options?: RequestOptions): Promise<HestiaResponse<T>>;
470
+ check<T>(path: string, body?: unknown, options?: RequestOptions): Promise<HestiaResponse<T>>;
471
+ private dispatchPath;
472
+ private resolvePath;
473
+ private substituteArgs;
474
+ /**
475
+ * Subscribes to a server event stream. Message payloads are rendered as
476
+ * SSE `data:` frames exactly like the Go transport (`data: {"data": ...}\n\n`),
477
+ * and delivered through `handlers.onMessage` as the JSON string.
478
+ */
479
+ openStream(path: string, handlers: StreamHandlers, options?: StreamOptions): Promise<void>;
480
+ /** Replay persisted run events, then forward live ones. Returns null when the stream closed during replay. */
481
+ private subscribeWorkflowRun;
482
+ }
483
+ //#endregion
484
+ //#region src/client.d.ts
485
+ interface MockHestiaOptions extends MockHestiaServerConfig {
486
+ /** Options forwarded to the mock server (latency, updates, workflows...). */
487
+ serverOptions?: MockServerOptions;
488
+ }
489
+ interface MockHestia {
490
+ /** The real SDK client — `api.auth`, `api.users`, `api.collection(...)` etc. */
491
+ client: HestiaClient;
492
+ /** The transport implementing the SDK `Transport` interface. */
493
+ transport: IndexedDbTransport;
494
+ /** The IndexedDB-backed mock server. */
495
+ server: MockHestiaServer;
496
+ /** Convenience passthrough to `server.bus` for injecting stream events. */
497
+ destroy: () => Promise<void>;
498
+ }
499
+ /**
500
+ * Create a mock-backed Hestia client.
501
+ *
502
+ * Every call the client makes is served from IndexedDB; sessions, documents,
503
+ * blobs, and streams all behave like the real server. When the mock answers
504
+ * 401 the client's identity is cleared automatically (mirroring HttpTransport).
505
+ */
506
+ declare function createMockHestia(options?: MockHestiaOptions): Promise<MockHestia>;
507
+ //#endregion
508
+ //#region src/persistence.d.ts
509
+ interface IdbPersistenceConfig {
510
+ /** App id embedded in the persistence metadata (default "hestia-mock"). */
511
+ app?: string;
512
+ /** Schema version reported to the store (default "1.0.0"). */
513
+ version?: string;
514
+ }
515
+ /**
516
+ * Create a `SimplePersistence<T>` backed by the mock server's `kv` store.
517
+ *
518
+ * @typeParam T the persisted state shape (typically `AuthState`).
519
+ */
520
+ declare function createIdbPersistence<T extends object>(server: MockHestiaServer, config?: IdbPersistenceConfig): SimplePersistence<T>;
521
+ //#endregion
522
+ //#region src/query.d.ts
523
+ /** Resolve a possibly-dotted path against a document. */
524
+ declare function getField(doc: unknown, path: string): unknown;
525
+ declare function evaluateFilter(doc: Record<string, unknown>, filter: QueryFilter): boolean;
526
+ /** Multi-field sort. Missing values sort last regardless of direction. */
527
+ declare function sortDocs<T extends Record<string, unknown>>(docs: T[], sort: SortConfiguration[] | undefined): T[];
528
+ interface QueryOutcome<T> {
529
+ items: T[];
530
+ total: number;
531
+ }
532
+ /** Execute a full DSL query against an in-memory array of documents. */
533
+ declare function executeQuery<T extends Record<string, unknown>>(docs: T[], dsl: QueryDSL<T> | Record<string, unknown> | undefined | null): QueryOutcome<T>;
534
+ //#endregion
535
+ //#region src/errors.d.ts
536
+ type MockErrorCode = "SYNC-001-NF" | "SYNC-002-DUP" | "SYNC-003-VC" | "VAL-001" | "VAL-002" | "AUTH-001-DENIED" | "AUTH-002-UNAUTH" | "AUTH-003-CRED" | "NOT_FOUND" | "NO_ACTIVE_SESSION" | "ROUTE_NOT_FOUND" | "NOT_IMPLEMENTED" | "RESTART_REQUIRED" | "INTERNAL_ERROR";
537
+ /** HTTP status the mock would have answered with for this error code. */
538
+ declare function statusForError(err: unknown): number;
539
+ declare class MockHttpError extends SystemError {
540
+ /** HTTP status the mock transport associates with this error. */
541
+ readonly httpStatus: number;
542
+ constructor(code: MockErrorCode, message: string, issues?: unknown[]);
543
+ }
544
+ declare const err: {
545
+ notFound: (what: string) => MockHttpError;
546
+ /** Blob-store style not found (the SDK's blob client checks `NOT_FOUND`). */
547
+ blobNotFound: (what: string) => MockHttpError;
548
+ duplicate: (what: string) => MockHttpError;
549
+ conflict: (message: string) => MockHttpError;
550
+ validation: (message: string, issues?: unknown[]) => MockHttpError;
551
+ required: (field: string) => MockHttpError;
552
+ denied: (operation?: string) => MockHttpError;
553
+ unauthenticated: () => MockHttpError;
554
+ invalidCredentials: () => MockHttpError;
555
+ noActiveSession: () => MockHttpError;
556
+ routeNotFound: (name: string) => MockHttpError;
557
+ notImplemented: (what: string) => MockHttpError;
558
+ restartRequired: (message?: string) => MockHttpError;
559
+ internal: (message: string, cause?: unknown) => MockHttpError;
560
+ };
561
+ //#endregion
562
+ export { DEFAULT_DB_NAME, DEFAULT_SEED, EventBus, type IdbPersistenceConfig, IndexedDbTransport, type IndexedDbTransportOptions, type MockHestia, type MockHestiaOptions, MockHestiaServer, type MockHestiaServerConfig, MockHttpError, type MockServerOptions, type MockTables, STORES, type SeedConfig, type StoredDocument, Topics, createIdbPersistence, createMockHestia, evaluateFilter, executeQuery, getField, err as mockErrors, openMockDatabase, seedDatabase, sortDocs, statusForError, wipeAllStores };
563
+ //# sourceMappingURL=index.d.ts.map