mindoodb-app-sdk 0.0.20 → 0.0.27

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.
@@ -1,888 +0,0 @@
1
- import { MindooDBAppBooleanExpression, MindooDBAppExpression, MindooDBAppViewSortDirection, MindooDBAppViewTotalMode, MindooDBAppViewDefinition } from 'mindoodb-view-language';
2
-
3
- /** Launch target used by the Haven when opening an app. */
4
- type MindooDBAppRuntime = "iframe" | "window";
5
- /** Theme mode currently active in the Haven host UI. */
6
- type MindooDBAppThemeMode = "light" | "dark";
7
- /** Host theme snapshot exposed to running apps. */
8
- interface MindooDBAppHostTheme {
9
- mode: MindooDBAppThemeMode;
10
- preset: string;
11
- }
12
- /** Iframe viewport dimensions reported by the Haven host. */
13
- interface MindooDBAppViewport {
14
- width: number;
15
- height: number;
16
- }
17
- /** Host-controlled UI preferences exposed to embedded apps. */
18
- interface MindooDBAppUiPreferences {
19
- iosMultitaskingOptimized: boolean;
20
- }
21
- /** Saved categorization mode for Haven-managed view mappings delivered at launch time. */
22
- type MindooDBAppConfiguredViewCategorizationStyle = "document_then_category" | "category_then_document";
23
- /** Preferred preview layout for a Haven-managed view mapping. */
24
- type MindooDBAppConfiguredViewPreviewMode = "tree" | "table";
25
- /** Column role used by Haven-managed view mappings. */
26
- type MindooDBAppConfiguredViewColumnRole = "category" | "sort" | "display" | "total";
27
- /** Filter authoring mode used by Haven-managed view mappings. */
28
- type MindooDBAppConfiguredViewFilterMode = "rules" | "formula";
29
- /** Rule match mode used by visual-rule filters. */
30
- type MindooDBAppConfiguredViewRuleMatchMode = "all" | "any";
31
- /** Visual-rule operator supported by Haven-managed view mappings. */
32
- type MindooDBAppConfiguredViewRuleOperator = "eq" | "neq" | "contains" | "notContains" | "gt" | "gte" | "lt" | "lte" | "exists" | "notExists";
33
- /** Field/formula authoring modes for Haven-managed view columns. */
34
- type MindooDBAppConfiguredViewExpressionMode = "field" | "formula";
35
- /** One visual filter rule inside a Haven-managed view mapping. */
36
- interface MindooDBAppConfiguredViewFilterRule {
37
- id: string;
38
- field: string;
39
- operator: MindooDBAppConfiguredViewRuleOperator;
40
- value?: string;
41
- }
42
- /** Field-based value expression used by Haven-managed view mappings. */
43
- interface MindooDBAppConfiguredViewFieldExpression {
44
- mode: "field";
45
- field: string;
46
- }
47
- /** Formula-based value expression used by Haven-managed view mappings. */
48
- interface MindooDBAppConfiguredViewFormulaExpression {
49
- mode: "formula";
50
- expression: MindooDBAppExpression;
51
- }
52
- /** Column expression authoring shape used by Haven-managed view mappings. */
53
- type MindooDBAppConfiguredViewValueExpression = MindooDBAppConfiguredViewFieldExpression | MindooDBAppConfiguredViewFormulaExpression;
54
- /** Rule-based filter stored by Haven for app-owned view mappings. */
55
- interface MindooDBAppConfiguredViewRuleFilterDefinition {
56
- mode: "rules";
57
- match: MindooDBAppConfiguredViewRuleMatchMode;
58
- rules: MindooDBAppConfiguredViewFilterRule[];
59
- }
60
- /** Formula-based filter stored by Haven for app-owned view mappings. */
61
- interface MindooDBAppConfiguredViewFormulaFilterDefinition {
62
- mode: "formula";
63
- expression: MindooDBAppBooleanExpression;
64
- }
65
- /** Full filter authoring shape stored for Haven-managed app view mappings. */
66
- type MindooDBAppConfiguredViewFilterDefinition = MindooDBAppConfiguredViewRuleFilterDefinition | MindooDBAppConfiguredViewFormulaFilterDefinition;
67
- /** Column definition stored for a Haven-managed app view mapping. */
68
- interface MindooDBAppConfiguredViewColumn {
69
- id: string;
70
- title: string;
71
- name: string;
72
- role: MindooDBAppConfiguredViewColumnRole;
73
- expression: MindooDBAppConfiguredViewValueExpression;
74
- sorting: MindooDBAppViewSortDirection;
75
- totalMode: MindooDBAppViewTotalMode;
76
- hidden: boolean;
77
- }
78
- /** One resolved source binding for an app-owned Haven view mapping. */
79
- interface MindooDBAppResolvedViewSource {
80
- origin: string;
81
- databaseId: string;
82
- title: string;
83
- targetMode: "local" | "server";
84
- connectionId?: string;
85
- tenantId: string;
86
- databaseName: string;
87
- }
88
- /** Full Haven-managed view mapping delivered to the running application at launch time. */
89
- interface MindooDBAppResolvedViewDefinition {
90
- id: string;
91
- description?: string;
92
- categorizationStyle: MindooDBAppConfiguredViewCategorizationStyle;
93
- previewMode: MindooDBAppConfiguredViewPreviewMode;
94
- sources: MindooDBAppResolvedViewSource[];
95
- filter: MindooDBAppConfiguredViewFilterDefinition;
96
- columns: MindooDBAppConfiguredViewColumn[];
97
- }
98
- /** Permission/capability flags exposed for a database binding inside the app session. */
99
- type MindooDBAppCapability = "read" | "create" | "update" | "delete" | "history" | "attachments" | "views";
100
- /** Metadata about the current app launch supplied by the Haven host. */
101
- interface MindooDBAppLaunchContext {
102
- appId: string;
103
- appInstanceId: string;
104
- appVersion?: string;
105
- launchId: string;
106
- runtime: MindooDBAppRuntime;
107
- theme: MindooDBAppHostTheme;
108
- viewport: MindooDBAppViewport | null;
109
- uiPreferences: MindooDBAppUiPreferences;
110
- tenantId?: string;
111
- preferredDatabaseId?: string;
112
- /**
113
- * Epoch-millisecond cutoff when the host opened app databases in time travel
114
- * read-only mode. Absent/null means the app is looking at live data.
115
- */
116
- timeTravelDate?: number | null;
117
- user: {
118
- id: string;
119
- username: string;
120
- };
121
- launchParameters: Record<string, string>;
122
- databases: MindooDBAppDatabaseInfo[];
123
- views: MindooDBAppResolvedViewDefinition[];
124
- }
125
- /** Attachment metadata returned by the attachment APIs. */
126
- interface MindooDBAppAttachmentInfo {
127
- attachmentId: string;
128
- fileName: string;
129
- mimeType: string;
130
- size: number;
131
- }
132
- /** Preview modes supported by the Haven-hosted attachment preview dialog. */
133
- type MindooDBAppAttachmentPreviewMode = "image" | "pdf" | "text" | "markdown" | "docx" | "pptx" | "spreadsheet" | "video" | "audio";
134
- /** Optional parameters for opening an attachment preview in Haven. */
135
- interface MindooDBAppAttachmentPreviewOptions {
136
- /** Historical snapshot timestamp previously obtained from `documents.history.getAtTimestamp()`. */
137
- timestamp?: number;
138
- /** Stable revision id previously obtained from `documents.listHistory()`. */
139
- revisionId?: MindooDBAppDocumentRevisionId;
140
- }
141
- type MindooDBAppDocumentScanPreset = "auto" | "a4-portrait" | "a4-landscape" | "letter-portrait" | "letter-landscape";
142
- interface MindooDBAppScanAttachmentOptions {
143
- defaultFileName?: string;
144
- preset?: MindooDBAppDocumentScanPreset;
145
- mimeType?: "image/jpeg" | "image/png" | "application/pdf";
146
- }
147
- interface MindooDBAppScanAttachmentResult {
148
- ok: boolean;
149
- attachment?: MindooDBAppAttachmentInfo | null;
150
- }
151
- /** Resolved Haven preview session prepared for opening in a separate tab or window. */
152
- interface MindooDBAppAttachmentPreviewSession {
153
- sessionId: string;
154
- previewUrl: string;
155
- }
156
- /** Database entry visible to the app during launch and database listing. */
157
- interface MindooDBAppDatabaseInfo {
158
- id: string;
159
- title: string;
160
- role?: string;
161
- capabilities: MindooDBAppCapability[];
162
- }
163
- /** Lightweight document row returned by list operations. */
164
- interface MindooDBAppDocumentSummary {
165
- id: string;
166
- data?: Record<string, unknown>;
167
- attachmentCount?: number;
168
- createdAt?: string;
169
- updatedAt?: string;
170
- identityLabel?: string;
171
- publicKeyFingerprint?: string;
172
- isDeleted?: boolean;
173
- }
174
- /** Fully loaded document returned by `get()`, `create()`, or `update()`. */
175
- interface MindooDBAppDocument {
176
- id: string;
177
- data: Record<string, unknown>;
178
- /** Current Automerge heads for causal text edit reconciliation. */
179
- heads?: string[];
180
- attachments?: MindooDBAppAttachmentInfo[];
181
- createdAt?: string;
182
- updatedAt?: string;
183
- }
184
- /** Opaque persisted id for a document revision in the MindooDB DAG. */
185
- type MindooDBAppDocumentRevisionId = string;
186
- /** One entry in the document history timeline. */
187
- interface MindooDBAppDocumentHistoryEntry {
188
- revisionId: MindooDBAppDocumentRevisionId;
189
- timestamp: number;
190
- heads?: string[];
191
- publicKey: string;
192
- publicKeyFingerprint?: string;
193
- identityLabel?: string;
194
- isDeleted: boolean;
195
- isCurrent: boolean;
196
- summary?: string;
197
- }
198
- /** Historical snapshot returned for a document at a specific timestamp. */
199
- interface MindooDBAppHistoricalDocument {
200
- id: string;
201
- revisionId?: MindooDBAppDocumentRevisionId;
202
- timestamp: number;
203
- heads?: string[];
204
- state: "missing" | "deleted" | "exists";
205
- data: Record<string, unknown> | null;
206
- attachments?: MindooDBAppAttachmentInfo[];
207
- attachmentSnapshotRevisionId?: MindooDBAppDocumentRevisionId | null;
208
- }
209
- /** Query options for paging through changefeed-backed document listings in a database. */
210
- interface MindooDBAppDocumentListQuery {
211
- cursor?: string | null;
212
- limit?: number;
213
- skip?: number;
214
- status?: "all" | "existing" | "deleted";
215
- metadataOnly?: boolean;
216
- fields?: string[];
217
- filter?: Record<string, unknown>;
218
- }
219
- /** Paged result returned by `documents.list()`. */
220
- interface MindooDBAppDocumentListResult {
221
- items: MindooDBAppDocumentSummary[];
222
- nextCursor: string | null;
223
- }
224
- /** Latest known changefeed cursor for a database. */
225
- interface MindooDBAppDocumentHeadCursorResult {
226
- cursor: string | null;
227
- }
228
- /** Opaque cursor representing the DB state reflected in a bridge-built view snapshot. */
229
- interface MindooDBAppViewCursorResult {
230
- viewCursor: string | null;
231
- }
232
- /** Lightweight document row returned by multi-source view-cursor delta queries. */
233
- interface MindooDBAppScopedDocumentSummary extends MindooDBAppDocumentSummary {
234
- origin: string;
235
- databaseId: string;
236
- }
237
- /** Result returned when querying document changes since a view snapshot cursor. */
238
- interface MindooDBAppViewCursorDocumentListResult {
239
- items: MindooDBAppScopedDocumentSummary[];
240
- nextCursor: string | null;
241
- }
242
- /**
243
- * Payload used when creating a new document.
244
- *
245
- * `set` becomes the initial top-level document state, mirroring the update
246
- * API's field-assignment language while still creating a brand-new document.
247
- */
248
- interface MindooDBAppCreateDocumentInput {
249
- set: Record<string, unknown>;
250
- /** Optional named document key. Defaults to `"default"` when omitted. */
251
- decryptionKeyId?: string;
252
- /**
253
- * Optional caller-provided document id. When omitted, MindooDB generates a
254
- * UUID7. When provided, the id must match `^[A-Za-z][A-Za-z0-9_]*$`: the
255
- * first character is an ASCII letter and subsequent characters may be ASCII
256
- * letters, ASCII digits, or `_`.
257
- *
258
- * If a document with this id already exists locally, MindooDB returns the
259
- * existing document instead of creating a new one (idempotent create), and
260
- * the values in `set` are NOT applied. Caller-provided ids are useful for
261
- * loading a known well-known document directly without first building a
262
- * view, and for migrations that want to preserve external ids.
263
- *
264
- * Documents created with the same caller-provided id on independent replicas
265
- * share Automerge ancestry, so subsequent edits on either replica still
266
- * merge correctly when the replicas sync.
267
- */
268
- id?: string;
269
- }
270
- interface MindooDBAppTextEdit {
271
- index: number;
272
- deleteCount: number;
273
- insert?: string;
274
- }
275
- interface MindooDBAppTextPatch {
276
- path: Array<string | number>;
277
- baseHeads?: string[];
278
- edits: MindooDBAppTextEdit[];
279
- }
280
- type MindooDBAppRichTextScalar = string | number | boolean | null;
281
- interface MindooDBAppRichTextImmutableString {
282
- type: "immutableString";
283
- value: string;
284
- }
285
- type MindooDBAppRichTextMaterializeValue = MindooDBAppRichTextScalar | MindooDBAppRichTextImmutableString | MindooDBAppRichTextMaterializeValue[] | {
286
- [key: string]: MindooDBAppRichTextMaterializeValue;
287
- };
288
- interface MindooDBAppRichTextTextSpan {
289
- type: "text";
290
- value: string;
291
- marks?: Record<string, MindooDBAppRichTextMaterializeValue>;
292
- }
293
- interface MindooDBAppRichTextBlockSpan {
294
- type: "block";
295
- value: Record<string, MindooDBAppRichTextMaterializeValue>;
296
- }
297
- type MindooDBAppRichTextSpan = MindooDBAppRichTextTextSpan | MindooDBAppRichTextBlockSpan;
298
- interface MindooDBAppRichTextMarkRange {
299
- index: number;
300
- length: number;
301
- marks: Record<string, MindooDBAppRichTextMaterializeValue>;
302
- }
303
- interface MindooDBAppRichTextSpliceStep {
304
- type: "splice";
305
- index: number;
306
- deleteCount: number;
307
- insert?: string;
308
- marks?: MindooDBAppRichTextMarkRange[];
309
- }
310
- type MindooDBAppRichTextStep = MindooDBAppRichTextSpliceStep;
311
- interface MindooDBAppRichTextStepPatch {
312
- /** Path to the Automerge rich-text field inside the document payload. */
313
- path: Array<string | number>;
314
- /** Automerge heads of the document state these positional steps were based on. */
315
- baseHeads?: string[];
316
- /** Ordered rich-text positional operations to apply with Automerge splice/mark. */
317
- steps: MindooDBAppRichTextStep[];
318
- }
319
- interface MindooDBAppRichTextPatch {
320
- /** Path to the Automerge rich-text field inside the document payload. */
321
- path: Array<string | number>;
322
- /** Automerge heads of the document state this rich-text snapshot was based on. */
323
- baseHeads?: string[];
324
- /** Full JSON-safe span snapshot to apply with Automerge `updateSpans`. */
325
- spans?: MindooDBAppRichTextSpan[];
326
- /** Ordered snapshots to apply one-by-one so each `updateSpans` diff stays transaction-sized. */
327
- spansSequence?: MindooDBAppRichTextSpan[][];
328
- /** Optional Automerge `updateSpans` configuration, kept JSON-safe over the bridge. */
329
- updateSpansConfig?: Record<string, unknown>;
330
- }
331
- interface MindooDBAppRichTextSnapshot {
332
- path: Array<string | number>;
333
- heads?: string[];
334
- spans: MindooDBAppRichTextSpan[];
335
- }
336
- interface MindooDBAppRichTextGetOptions {
337
- /** Stable revision id previously obtained from `documents.listHistory()`. */
338
- revisionId?: MindooDBAppDocumentRevisionId;
339
- }
340
- /** Binary Automerge snapshot of the full internal document. */
341
- interface MindooDBAppAutomergeSnapshot {
342
- binary: Uint8Array;
343
- heads: string[];
344
- }
345
- interface MindooDBAppAutomergeGetOptions {
346
- /** Stable revision id previously obtained from `documents.listHistory()`. */
347
- revisionId?: MindooDBAppDocumentRevisionId;
348
- }
349
- /** Raw Automerge change bytes produced by a local replica. */
350
- interface MindooDBAppAutomergeChangesPatch {
351
- /** Heads the client had when authoring `changes`; optional, for correlation only. */
352
- baseHeads?: string[];
353
- /**
354
- * Heads of the local replica after authoring `changes`. When provided, the
355
- * apply response includes `changesSince` for incremental reconciliation.
356
- */
357
- replicaHeads?: string[];
358
- /** Change bytes from `Automerge.getChangesSince`; merged into Haven's current doc. */
359
- changes: Uint8Array[];
360
- }
361
- /** Incremental catch-up bytes for a local replica after an apply merge. */
362
- interface MindooDBAppAutomergeChangesSince {
363
- /** Echo of `replicaHeads` from the request. */
364
- sinceHeads: string[];
365
- /** Changes on the merged canonical doc that the replica is missing. */
366
- changes: Uint8Array[];
367
- }
368
- interface MindooDBAppAutomergePatchResult {
369
- document: MindooDBAppDocument;
370
- heads: string[];
371
- /**
372
- * Present when the request included `replicaHeads`. Apply locally with
373
- * `Automerge.applyChanges` instead of reloading a full snapshot.
374
- */
375
- changesSince?: MindooDBAppAutomergeChangesSince;
376
- }
377
- /**
378
- * Sets the value at `path` inside the document payload.
379
- *
380
- * Creates the field if it does not exist, or replaces the existing value.
381
- * `path` addresses a property using object keys and list indices, for example
382
- * `["workbook", "worksheetsById", "ws-1", "title"]`.
383
- */
384
- interface MindooDBAppJsonSetPatch {
385
- path: Array<string | number>;
386
- value: unknown;
387
- }
388
- /**
389
- * Removes the value at `path` from the document payload.
390
- *
391
- * For object properties this deletes the key; for list entries the host
392
- * decides whether unset is supported and may reject the patch.
393
- */
394
- interface MindooDBAppJsonUnsetPatch {
395
- path: Array<string | number>;
396
- }
397
- /**
398
- * Inserts one or more values into the list located at `path`.
399
- *
400
- * `index` is the insertion point within the current list, where `0` prepends
401
- * and `list.length` appends. Existing entries at or after `index` shift right.
402
- */
403
- interface MindooDBAppJsonListInsertPatch {
404
- path: Array<string | number>;
405
- index: number;
406
- values: unknown[];
407
- }
408
- /**
409
- * Deletes a contiguous run of entries from the list located at `path`.
410
- *
411
- * Removes `deleteCount` entries starting at `index`. Subsequent entries shift
412
- * left to fill the gap.
413
- */
414
- interface MindooDBAppJsonListDeletePatch {
415
- path: Array<string | number>;
416
- index: number;
417
- deleteCount: number;
418
- }
419
- /**
420
- * Splices text at `path` using Automerge text semantics.
421
- */
422
- interface MindooDBAppJsonTextSplicePatch {
423
- path: Array<string | number>;
424
- index: number;
425
- deleteCount: number;
426
- insert?: string;
427
- }
428
- /**
429
- * Applies one or more marks to a text range at `path`.
430
- */
431
- interface MindooDBAppJsonTextMarkPatch {
432
- path: Array<string | number>;
433
- index: number;
434
- length: number;
435
- marks: Record<string, MindooDBAppRichTextMaterializeValue>;
436
- }
437
- /**
438
- * Removes marks from a text range at `path`.
439
- */
440
- interface MindooDBAppJsonTextUnmarkPatch {
441
- path: Array<string | number>;
442
- index: number;
443
- length: number;
444
- names: string[];
445
- }
446
- interface MindooDBAppJsonPatch {
447
- /**
448
- * Automerge heads of the document snapshot this JSON patch was authored
449
- * against. Hosts can use this to apply order-sensitive edits at the original
450
- * causal version and merge them with concurrent changes.
451
- */
452
- baseHeads?: string[];
453
- set?: MindooDBAppJsonSetPatch[];
454
- unset?: MindooDBAppJsonUnsetPatch[];
455
- listInsert?: MindooDBAppJsonListInsertPatch[];
456
- listDelete?: MindooDBAppJsonListDeletePatch[];
457
- textSplice?: MindooDBAppJsonTextSplicePatch[];
458
- textMark?: MindooDBAppJsonTextMarkPatch[];
459
- textUnmark?: MindooDBAppJsonTextUnmarkPatch[];
460
- }
461
- /**
462
- * Sparse patch payload used when updating an existing document.
463
- *
464
- * Prefer targeted `set` / `unset` operations over whole-document rewrites so
465
- * MindooDB can preserve more meaningful change history and Automerge can merge
466
- * smaller, more intentional updates.
467
- */
468
- interface MindooDBAppUpdateDocumentInput {
469
- /** Top-level fields to assign on the document. */
470
- set?: Record<string, unknown>;
471
- /** Top-level fields to remove from the document entirely. */
472
- unset?: string[];
473
- /** Granular JSON operations to apply at document paths. */
474
- json?: MindooDBAppJsonPatch;
475
- /** Granular text edits to apply at document paths. */
476
- text?: MindooDBAppTextPatch[];
477
- /** Rich-text span snapshots to apply at document paths. */
478
- richText?: MindooDBAppRichTextPatch[];
479
- /** Rich-text positional steps to apply at document paths. */
480
- richTextSteps?: MindooDBAppRichTextStepPatch[];
481
- }
482
- /** Query used for history lookups at a specific timestamp. */
483
- interface MindooDBAppHistoryQuery {
484
- timestamp: number;
485
- }
486
- /** Optional parameters for establishing the app bridge connection. */
487
- interface MindooDBAppBridgeConnectOptions {
488
- launchId?: string;
489
- targetOrigin?: string;
490
- connectTimeoutMs?: number;
491
- }
492
- /** Initial postMessage handshake sent from the app to the Haven. */
493
- interface MindooDBAppBridgeConnectMessage {
494
- protocol: "mindoodb-app-bridge";
495
- type: "mindoodb-app:connect";
496
- launchId: string;
497
- }
498
- /** Handshake acknowledgement returned by the Haven host. */
499
- interface MindooDBAppBridgeConnectedMessage {
500
- protocol: "mindoodb-app-bridge";
501
- type: "mindoodb-app:connected";
502
- }
503
- /** Handshake error returned when the Haven host rejects a launch. */
504
- interface MindooDBAppBridgeHandshakeErrorMessage {
505
- protocol: "mindoodb-app-bridge";
506
- type: "mindoodb-app:error";
507
- error: string;
508
- }
509
- /** Structured error payload transported over bridge RPC or stream messages. */
510
- interface MindooDBAppBridgeErrorPayload {
511
- code: string;
512
- message: string;
513
- }
514
- /** Request envelope used by the port-based RPC transport. */
515
- interface MindooDBAppBridgeRpcRequest<TParams = unknown> {
516
- protocol: "mindoodb-app-bridge";
517
- kind: "request";
518
- id: string;
519
- method: string;
520
- params: TParams;
521
- }
522
- /** Successful RPC response envelope. */
523
- interface MindooDBAppBridgeRpcSuccess<TResult = unknown> {
524
- protocol: "mindoodb-app-bridge";
525
- kind: "success";
526
- id: string;
527
- result: TResult;
528
- }
529
- /** Failed RPC response envelope. */
530
- interface MindooDBAppBridgeRpcError {
531
- protocol: "mindoodb-app-bridge";
532
- kind: "error";
533
- id: string;
534
- error: MindooDBAppBridgeErrorPayload;
535
- }
536
- /** Union of all RPC-level bridge messages. */
537
- type MindooDBAppBridgeRpcMessage = MindooDBAppBridgeRpcRequest | MindooDBAppBridgeRpcSuccess | MindooDBAppBridgeRpcError;
538
- /** Result returned when the host opens a streamed attachment channel. */
539
- interface MindooDBAppBridgeStreamOpenResult {
540
- streamId: string;
541
- }
542
- /** Request asking the host for the next chunk on a read stream. */
543
- interface MindooDBAppBridgeStreamReadRequest {
544
- protocol: "mindoodb-app-bridge";
545
- kind: "stream-read";
546
- streamId: string;
547
- }
548
- /** Request sending one chunk over a write stream. */
549
- interface MindooDBAppBridgeStreamWriteRequest {
550
- protocol: "mindoodb-app-bridge";
551
- kind: "stream-write";
552
- streamId: string;
553
- chunk: ArrayBuffer;
554
- }
555
- /** Request closing a stream gracefully. */
556
- interface MindooDBAppBridgeStreamCloseRequest {
557
- protocol: "mindoodb-app-bridge";
558
- kind: "stream-close";
559
- streamId: string;
560
- }
561
- /** Request aborting a stream due to cancellation or failure. */
562
- interface MindooDBAppBridgeStreamAbortRequest {
563
- protocol: "mindoodb-app-bridge";
564
- kind: "stream-abort";
565
- streamId: string;
566
- }
567
- /** Streamed attachment payload delivered over the message port. */
568
- interface MindooDBAppAttachmentChunk {
569
- protocol: "mindoodb-app-bridge";
570
- kind: "stream-chunk";
571
- streamId: string;
572
- chunk?: ArrayBuffer;
573
- done: boolean;
574
- }
575
- /** Host acknowledgement for a write/close/abort stream request. */
576
- interface MindooDBAppBridgeStreamAck {
577
- protocol: "mindoodb-app-bridge";
578
- kind: "stream-ack";
579
- streamId: string;
580
- }
581
- /** Stream-level error message. */
582
- interface MindooDBAppBridgeStreamError {
583
- protocol: "mindoodb-app-bridge";
584
- kind: "stream-error";
585
- streamId: string;
586
- error: MindooDBAppBridgeErrorPayload;
587
- }
588
- /** Union of all non-RPC stream transport messages. */
589
- type MindooDBAppBridgeStreamMessage = MindooDBAppBridgeStreamReadRequest | MindooDBAppBridgeStreamWriteRequest | MindooDBAppBridgeStreamCloseRequest | MindooDBAppBridgeStreamAbortRequest | MindooDBAppAttachmentChunk | MindooDBAppBridgeStreamAck | MindooDBAppBridgeStreamError;
590
- /** Host-pushed event emitted when the Haven theme changes. */
591
- interface MindooDBAppBridgeThemeChangedMessage {
592
- protocol: "mindoodb-app-bridge";
593
- kind: "theme-changed";
594
- theme: MindooDBAppHostTheme;
595
- }
596
- /** Host-pushed event emitted when the Haven iframe viewport changes. */
597
- interface MindooDBAppBridgeViewportChangedMessage {
598
- protocol: "mindoodb-app-bridge";
599
- kind: "viewport-changed";
600
- viewport: MindooDBAppViewport;
601
- }
602
- /** Host-pushed event emitted when host-controlled UI preferences change. */
603
- interface MindooDBAppBridgeUiPreferencesChangedMessage {
604
- protocol: "mindoodb-app-bridge";
605
- kind: "ui-preferences-changed";
606
- uiPreferences: MindooDBAppUiPreferences;
607
- }
608
- /** Any message that can travel across the dedicated bridge MessagePort. */
609
- type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage;
610
- /** Placement hint for a host-rendered overlay menu. */
611
- type MindooDBAppMenuPlacement = "auto" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "right-start" | "left-start";
612
- /** Semantic hint allowing Haven to tune menu behavior or styling. */
613
- type MindooDBAppMenuKind = "context" | "dropdown" | "picker";
614
- /** Rectangle expressed in app-viewport coordinates. */
615
- interface MindooDBAppMenuRect {
616
- left: number;
617
- top: number;
618
- width: number;
619
- height: number;
620
- }
621
- /** Point anchor used for context menus or other click-triggered overlays. */
622
- interface MindooDBAppMenuPointAnchor {
623
- type: "point";
624
- x: number;
625
- y: number;
626
- }
627
- /** Rectangle anchor used for toolbar menus or picker buttons. */
628
- interface MindooDBAppMenuRectAnchor {
629
- type: "rect";
630
- rect: MindooDBAppMenuRect;
631
- }
632
- /** Anchor describing where the host should position the rendered menu. */
633
- type MindooDBAppMenuAnchor = MindooDBAppMenuPointAnchor | MindooDBAppMenuRectAnchor;
634
- /** Visual separator between menu groups. */
635
- interface MindooDBAppMenuSeparatorItem {
636
- separator: true;
637
- }
638
- /** One actionable entry in a structured host-rendered menu. */
639
- interface MindooDBAppMenuCommandItem {
640
- id: string;
641
- label: string;
642
- enabled?: boolean;
643
- destructive?: boolean;
644
- checked?: boolean;
645
- items?: MindooDBAppMenuItem[];
646
- }
647
- /** Structured menu item transported over the app bridge. */
648
- type MindooDBAppMenuItem = MindooDBAppMenuSeparatorItem | MindooDBAppMenuCommandItem;
649
- /** Request payload for a host-rendered overlay menu. */
650
- interface MindooDBAppShowMenuInput {
651
- anchor: MindooDBAppMenuAnchor;
652
- placement?: MindooDBAppMenuPlacement;
653
- kind?: MindooDBAppMenuKind;
654
- items: MindooDBAppMenuItem[];
655
- dismissOnOutsideClick?: boolean;
656
- dismissOnEscape?: boolean;
657
- dismissOnViewportChange?: boolean;
658
- }
659
- /** Reason why a host-rendered menu was dismissed without a selection. */
660
- type MindooDBAppMenuDismissReason = "outside_click" | "escape" | "app_blur" | "viewport_change" | "hide" | "replaced";
661
- /** Successful selection result returned from a host-rendered menu. */
662
- interface MindooDBAppMenuSelectionResult {
663
- action: "selected";
664
- itemId: string;
665
- }
666
- /** Dismissal result returned from a host-rendered menu. */
667
- interface MindooDBAppMenuDismissedResult {
668
- action: "dismissed";
669
- reason: MindooDBAppMenuDismissReason;
670
- }
671
- /** Result returned when Haven closes or resolves a host-rendered menu. */
672
- type MindooDBAppShowMenuResult = MindooDBAppMenuSelectionResult | MindooDBAppMenuDismissedResult;
673
- /** Overlay menu operations exposed by the host session. */
674
- interface MindooDBAppMenuApi {
675
- show(input: MindooDBAppShowMenuInput): Promise<MindooDBAppShowMenuResult>;
676
- hide(): Promise<void>;
677
- }
678
- /** Pull-based read stream for document attachments. */
679
- interface MindooDBAppReadableAttachmentStream {
680
- read(): Promise<Uint8Array | null>;
681
- close(): Promise<void>;
682
- }
683
- /** Push-based write stream for document attachments. */
684
- interface MindooDBAppWritableAttachmentStream {
685
- write(chunk: Uint8Array): Promise<void>;
686
- close(): Promise<void>;
687
- abort(): Promise<void>;
688
- }
689
- /** Document operations exposed by an opened database handle. */
690
- interface MindooDBAppDocumentApi {
691
- list(query?: MindooDBAppDocumentListQuery): Promise<MindooDBAppDocumentListResult>;
692
- getHeadCursor(): Promise<MindooDBAppDocumentHeadCursorResult>;
693
- get(docId: string): Promise<MindooDBAppDocument | null>;
694
- getRichText(docId: string, path: Array<string | number>, options?: MindooDBAppRichTextGetOptions): Promise<MindooDBAppRichTextSnapshot>;
695
- /**
696
- * Export the full internal Automerge document as binary.
697
- *
698
- * **Discouraged** — prefer `getRichText`, `get`, and `documents.update` (`set`,
699
- * `unset`, `text`, `richText`, `json`) unless those APIs cannot express your
700
- * edits. Added for TeamEdit Word/.docx (local Automerge replica + binary flush).
701
- */
702
- getAutomergeSnapshot(docId: string, options?: MindooDBAppAutomergeGetOptions): Promise<MindooDBAppAutomergeSnapshot>;
703
- /**
704
- * Merge raw Automerge change bytes into the canonical document on Haven.
705
- *
706
- * **Discouraged** — prefer `documents.update` patch operations. Escape hatch
707
- * for apps that host a local Automerge replica when JSON patches are insufficient.
708
- * Include `replicaHeads` to receive incremental `changesSince` in the response.
709
- */
710
- applyAutomergeChanges(docId: string, patch: MindooDBAppAutomergeChangesPatch): Promise<MindooDBAppAutomergePatchResult>;
711
- create(input: MindooDBAppCreateDocumentInput): Promise<MindooDBAppDocument>;
712
- update(docId: string, patch: MindooDBAppUpdateDocumentInput): Promise<MindooDBAppDocument>;
713
- delete(docId: string): Promise<{
714
- ok: true;
715
- }>;
716
- undelete(docId: string): Promise<{
717
- ok: true;
718
- }>;
719
- listHistory(docId: string): Promise<MindooDBAppDocumentHistoryEntry[]>;
720
- getAtTimestamp(docId: string, timestamp: number): Promise<MindooDBAppHistoricalDocument>;
721
- getAtRevision(docId: string, revisionId: MindooDBAppDocumentRevisionId): Promise<MindooDBAppHistoricalDocument>;
722
- }
723
- type MindooDBAppViewEntryKind = "category" | "document";
724
- /** Unique document identity within a multi-source view. */
725
- interface MindooDBAppScopedDocId {
726
- origin: string;
727
- docId: string;
728
- }
729
- /** Serialized view entry returned by the navigator APIs. */
730
- interface MindooDBAppViewEntry {
731
- /** Unique occurrence key within the current navigator session. */
732
- key: string;
733
- kind: MindooDBAppViewEntryKind;
734
- origin: string;
735
- docId: string | null;
736
- level: number;
737
- parentKey: string | null;
738
- categoryPath: unknown[];
739
- categoryValue: unknown | null;
740
- columnValues: Record<string, unknown>;
741
- childCount?: number;
742
- descendantDocumentCount?: number;
743
- descendantCount?: number;
744
- descendantCategoryCount?: number;
745
- childCategoryCount?: number;
746
- childDocumentCount?: number;
747
- siblingCount?: number;
748
- /** Stable continuation token for the current occurrence. */
749
- position: string | null;
750
- expanded: boolean;
751
- selected: boolean;
752
- isVisible: boolean;
753
- }
754
- /** Options that shape which subtree and entry kinds a navigator exposes. */
755
- interface MindooDBAppViewNavigatorOpenOptions {
756
- includeCategories?: boolean;
757
- includeDocuments?: boolean;
758
- hideEmptyCategories?: boolean;
759
- rootCategoryPath?: unknown[];
760
- rootEntryKey?: string;
761
- }
762
- /** Input used when creating a dynamic view and immediately opening a navigator. */
763
- interface MindooDBAppCreateViewNavigatorInput {
764
- databaseIds: string[];
765
- definition: MindooDBAppViewDefinition;
766
- categorizationStyle?: MindooDBAppConfiguredViewCategorizationStyle;
767
- options?: MindooDBAppViewNavigatorOpenOptions;
768
- }
769
- /** @deprecated Use `MindooDBAppCreateViewNavigatorInput`. */
770
- type MindooDBAppCreateViewInput = MindooDBAppCreateViewNavigatorInput;
771
- /** Range query options for key and key-range lookups within a category. */
772
- interface MindooDBAppViewNavigatorRangeQuery {
773
- startKey?: unknown;
774
- endKey?: unknown;
775
- descending?: boolean;
776
- exact?: boolean;
777
- }
778
- /** Options for batched navigator reads. */
779
- interface MindooDBAppViewNavigatorPageOptions {
780
- limit?: number;
781
- selectedOnly?: boolean;
782
- startPosition?: string | null;
783
- }
784
- /** Paged batch of navigator entries. */
785
- interface MindooDBAppViewNavigatorPageResult {
786
- entries: MindooDBAppViewEntry[];
787
- nextPosition: string | null;
788
- hasMore: boolean;
789
- }
790
- /** Serializable selection state for restoring a navigator session. */
791
- interface MindooDBAppViewNavigatorSelectionState {
792
- selectAllByDefault: boolean;
793
- entryKeys: string[];
794
- }
795
- /** Serializable expansion state for restoring a navigator session. */
796
- interface MindooDBAppViewNavigatorExpansionState {
797
- expandAllByDefault: boolean;
798
- expandLevel: number;
799
- entryKeys: string[];
800
- }
801
- /** Stateful view navigator that closely mirrors the core VirtualViewNavigator. */
802
- interface MindooDBAppViewNavigator {
803
- getDefinition(): Promise<MindooDBAppViewDefinition>;
804
- getViewCursor(): Promise<string | null>;
805
- refresh(): Promise<string | null>;
806
- getCurrentEntry(): Promise<MindooDBAppViewEntry | null>;
807
- gotoFirst(): Promise<boolean>;
808
- gotoLast(): Promise<boolean>;
809
- gotoNext(): Promise<boolean>;
810
- gotoPrev(): Promise<boolean>;
811
- gotoNextSibling(): Promise<boolean>;
812
- gotoPrevSibling(): Promise<boolean>;
813
- gotoParent(): Promise<boolean>;
814
- gotoFirstChild(): Promise<boolean>;
815
- gotoLastChild(): Promise<boolean>;
816
- gotoPos(position: string): Promise<boolean>;
817
- getPos(position: string): Promise<MindooDBAppViewEntry | null>;
818
- findCategoryEntryByParts(parts: unknown[]): Promise<MindooDBAppViewEntry | null>;
819
- entriesForward(options?: MindooDBAppViewNavigatorPageOptions): Promise<MindooDBAppViewNavigatorPageResult>;
820
- entriesBackward(options?: MindooDBAppViewNavigatorPageOptions): Promise<MindooDBAppViewNavigatorPageResult>;
821
- gotoNextSelected(): Promise<boolean>;
822
- gotoPrevSelected(): Promise<boolean>;
823
- select(origin: string, docId: string, selectParentCategories?: boolean): Promise<void>;
824
- deselect(origin: string, docId: string): Promise<void>;
825
- selectAllEntries(): Promise<void>;
826
- deselectAllEntries(): Promise<void>;
827
- isSelected(origin: string, docId: string): Promise<boolean>;
828
- getSelectionState(): Promise<MindooDBAppViewNavigatorSelectionState>;
829
- setSelectionState(state: MindooDBAppViewNavigatorSelectionState): Promise<void>;
830
- expand(origin: string, docId: string): Promise<void>;
831
- collapse(origin: string, docId: string): Promise<void>;
832
- expandAll(): Promise<void>;
833
- collapseAll(): Promise<void>;
834
- expandToLevel(level: number): Promise<void>;
835
- isExpanded(entryKey: string): Promise<boolean>;
836
- getExpansionState(): Promise<MindooDBAppViewNavigatorExpansionState>;
837
- setExpansionState(state: MindooDBAppViewNavigatorExpansionState): Promise<void>;
838
- childEntries(entryKey: string, descending?: boolean): Promise<MindooDBAppViewEntry[]>;
839
- childCategories(entryKey: string, descending?: boolean): Promise<MindooDBAppViewEntry[]>;
840
- childDocuments(entryKey: string, descending?: boolean): Promise<MindooDBAppViewEntry[]>;
841
- childCategoriesByKey(entryKey: string, key: unknown, exact?: boolean, descending?: boolean): Promise<MindooDBAppViewEntry[]>;
842
- childDocumentsByKey(entryKey: string, key: unknown, exact?: boolean, descending?: boolean): Promise<MindooDBAppViewEntry[]>;
843
- childCategoriesBetween(entryKey: string, range: MindooDBAppViewNavigatorRangeQuery): Promise<MindooDBAppViewEntry[]>;
844
- childDocumentsBetween(entryKey: string, range: MindooDBAppViewNavigatorRangeQuery): Promise<MindooDBAppViewEntry[]>;
845
- getSortedDocIds(descending?: boolean): Promise<MindooDBAppScopedDocId[]>;
846
- getSortedDocIdsScoped(entryKey: string, descending?: boolean): Promise<MindooDBAppScopedDocId[]>;
847
- dispose(): Promise<void>;
848
- }
849
- /** Attachment operations exposed by an opened database handle. */
850
- interface MindooDBAppAttachmentApi {
851
- list(docId: string, options?: MindooDBAppAttachmentPreviewOptions): Promise<MindooDBAppAttachmentInfo[]>;
852
- remove(docId: string, attachmentName: string): Promise<{
853
- ok: true;
854
- }>;
855
- openReadStream(docId: string, attachmentName: string, options?: MindooDBAppAttachmentPreviewOptions): Promise<MindooDBAppReadableAttachmentStream>;
856
- openWriteStream(docId: string, attachmentName: string, contentType?: string): Promise<MindooDBAppWritableAttachmentStream>;
857
- scan(docId: string, options?: MindooDBAppScanAttachmentOptions): Promise<MindooDBAppScanAttachmentResult>;
858
- preparePreviewSession(docId: string, attachmentName: string, options?: MindooDBAppAttachmentPreviewOptions): Promise<MindooDBAppAttachmentPreviewSession>;
859
- openPreview(docId: string, attachmentName: string, options?: MindooDBAppAttachmentPreviewOptions): Promise<{
860
- ok: true;
861
- }>;
862
- }
863
- /** Database handle returned from `session.openDatabase()`. */
864
- interface MindooDBAppDatabase {
865
- info(): Promise<MindooDBAppDatabaseInfo>;
866
- documents: MindooDBAppDocumentApi;
867
- attachments: MindooDBAppAttachmentApi;
868
- }
869
- /** Connected session between the running app and the Haven host. */
870
- interface MindooDBAppSession {
871
- getLaunchContext(): Promise<MindooDBAppLaunchContext>;
872
- listDatabases(): Promise<MindooDBAppDatabaseInfo[]>;
873
- openDatabase(databaseId: string): Promise<MindooDBAppDatabase>;
874
- listDocumentsSinceViewCursor(cursor: string | null): Promise<MindooDBAppViewCursorDocumentListResult>;
875
- createViewNavigator(input: MindooDBAppCreateViewNavigatorInput): Promise<MindooDBAppViewNavigator>;
876
- openViewNavigator(viewId: string, options?: MindooDBAppViewNavigatorOpenOptions): Promise<MindooDBAppViewNavigator>;
877
- menus: MindooDBAppMenuApi;
878
- onThemeChange(listener: (theme: MindooDBAppHostTheme) => void): () => void;
879
- onViewportChange(listener: (viewport: MindooDBAppViewport) => void): () => void;
880
- onUiPreferencesChange(listener: (uiPreferences: MindooDBAppUiPreferences) => void): () => void;
881
- disconnect(): Promise<void>;
882
- }
883
- /** Root SDK bridge object used to establish a session. */
884
- interface MindooDBAppBridge {
885
- connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
886
- }
887
-
888
- export type { MindooDBAppCreateDocumentInput as $, MindooDBAppBridgeStreamAck as A, MindooDBAppBridgeStreamCloseRequest as B, MindooDBAppBridgeStreamError as C, MindooDBAppBridgeStreamMessage as D, MindooDBAppBridgeStreamOpenResult as E, MindooDBAppBridgeStreamReadRequest as F, MindooDBAppBridgeStreamWriteRequest as G, MindooDBAppBridgeThemeChangedMessage as H, MindooDBAppBridgeUiPreferencesChangedMessage as I, MindooDBAppBridgeViewportChangedMessage as J, MindooDBAppCapability as K, MindooDBAppConfiguredViewCategorizationStyle as L, MindooDBAppAttachmentPreviewMode as M, MindooDBAppConfiguredViewColumn as N, MindooDBAppConfiguredViewColumnRole as O, MindooDBAppConfiguredViewExpressionMode as P, MindooDBAppConfiguredViewFieldExpression as Q, MindooDBAppConfiguredViewFilterDefinition as R, MindooDBAppConfiguredViewFilterMode as S, MindooDBAppConfiguredViewFilterRule as T, MindooDBAppConfiguredViewFormulaExpression as U, MindooDBAppConfiguredViewFormulaFilterDefinition as V, MindooDBAppConfiguredViewPreviewMode as W, MindooDBAppConfiguredViewRuleFilterDefinition as X, MindooDBAppConfiguredViewRuleMatchMode as Y, MindooDBAppConfiguredViewRuleOperator as Z, MindooDBAppConfiguredViewValueExpression as _, MindooDBAppBridge as a, MindooDBAppViewCursorDocumentListResult as a$, MindooDBAppCreateViewInput as a0, MindooDBAppCreateViewNavigatorInput as a1, MindooDBAppDatabaseInfo as a2, MindooDBAppDocumentApi as a3, MindooDBAppDocumentHeadCursorResult as a4, MindooDBAppDocumentHistoryEntry as a5, MindooDBAppDocumentListQuery as a6, MindooDBAppDocumentListResult as a7, MindooDBAppDocumentRevisionId as a8, MindooDBAppDocumentScanPreset as a9, MindooDBAppReadableAttachmentStream as aA, MindooDBAppResolvedViewDefinition as aB, MindooDBAppResolvedViewSource as aC, MindooDBAppRichTextBlockSpan as aD, MindooDBAppRichTextGetOptions as aE, MindooDBAppRichTextImmutableString as aF, MindooDBAppRichTextMarkRange as aG, MindooDBAppRichTextMaterializeValue as aH, MindooDBAppRichTextPatch as aI, MindooDBAppRichTextScalar as aJ, MindooDBAppRichTextSpliceStep as aK, MindooDBAppRichTextStep as aL, MindooDBAppRichTextStepPatch as aM, MindooDBAppRichTextTextSpan as aN, MindooDBAppRuntime as aO, MindooDBAppScanAttachmentOptions as aP, MindooDBAppScanAttachmentResult as aQ, MindooDBAppScopedDocId as aR, MindooDBAppScopedDocumentSummary as aS, MindooDBAppSession as aT, MindooDBAppShowMenuInput as aU, MindooDBAppShowMenuResult as aV, MindooDBAppTextEdit as aW, MindooDBAppTextPatch as aX, MindooDBAppThemeMode as aY, MindooDBAppUiPreferences as aZ, MindooDBAppUpdateDocumentInput as a_, MindooDBAppDocumentSummary as aa, MindooDBAppHistoricalDocument as ab, MindooDBAppHistoryQuery as ac, MindooDBAppHostTheme as ad, MindooDBAppJsonListDeletePatch as ae, MindooDBAppJsonListInsertPatch as af, MindooDBAppJsonPatch as ag, MindooDBAppJsonSetPatch as ah, MindooDBAppJsonTextMarkPatch as ai, MindooDBAppJsonTextSplicePatch as aj, MindooDBAppJsonTextUnmarkPatch as ak, MindooDBAppJsonUnsetPatch as al, MindooDBAppLaunchContext as am, MindooDBAppMenuAnchor as an, MindooDBAppMenuApi as ao, MindooDBAppMenuCommandItem as ap, MindooDBAppMenuDismissReason as aq, MindooDBAppMenuDismissedResult as ar, MindooDBAppMenuItem as as, MindooDBAppMenuKind as at, MindooDBAppMenuPlacement as au, MindooDBAppMenuPointAnchor as av, MindooDBAppMenuRect as aw, MindooDBAppMenuRectAnchor as ax, MindooDBAppMenuSelectionResult as ay, MindooDBAppMenuSeparatorItem as az, MindooDBAppDatabase as b, MindooDBAppViewCursorResult as b0, MindooDBAppViewEntry as b1, MindooDBAppViewEntryKind as b2, MindooDBAppViewNavigator as b3, MindooDBAppViewNavigatorExpansionState as b4, MindooDBAppViewNavigatorOpenOptions as b5, MindooDBAppViewNavigatorPageOptions as b6, MindooDBAppViewNavigatorPageResult as b7, MindooDBAppViewNavigatorRangeQuery as b8, MindooDBAppViewNavigatorSelectionState as b9, MindooDBAppViewport as ba, MindooDBAppWritableAttachmentStream as bb, MindooDBAppDocument as c, MindooDBAppRichTextSpan as d, MindooDBAppRichTextSnapshot as e, MindooDBAppAttachmentApi as f, MindooDBAppAttachmentChunk as g, MindooDBAppAttachmentInfo as h, MindooDBAppAttachmentPreviewOptions as i, MindooDBAppAttachmentPreviewSession as j, MindooDBAppAutomergeChangesPatch as k, MindooDBAppAutomergeChangesSince as l, MindooDBAppAutomergeGetOptions as m, MindooDBAppAutomergePatchResult as n, MindooDBAppAutomergeSnapshot as o, MindooDBAppBridgeConnectMessage as p, MindooDBAppBridgeConnectOptions as q, MindooDBAppBridgeConnectedMessage as r, MindooDBAppBridgeErrorPayload as s, MindooDBAppBridgeHandshakeErrorMessage as t, MindooDBAppBridgePortMessage as u, MindooDBAppBridgeRpcError as v, MindooDBAppBridgeRpcMessage as w, MindooDBAppBridgeRpcRequest as x, MindooDBAppBridgeRpcSuccess as y, MindooDBAppBridgeStreamAbortRequest as z };