mindoodb-app-sdk 0.0.48 → 0.0.51

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.
@@ -738,6 +738,42 @@ interface MindooDBAppRichTextSnapshot {
738
738
  heads?: string[];
739
739
  spans: MindooDBAppRichTextSpan[];
740
740
  }
741
+ /**
742
+ * Where a text cursor should be created: a character index (clamped to the
743
+ * text length), or the start/end of the text.
744
+ */
745
+ type MindooDBAppTextCursorPosition = number | "start" | "end";
746
+ /** Options for `documents.getTextCursors()` and `documents.resolveTextCursors()`. */
747
+ interface MindooDBAppTextCursorOptions {
748
+ /**
749
+ * Address the text as it was at these heads (e.g. the `heads` of the
750
+ * document version your editor rendered) instead of the current version.
751
+ */
752
+ heads?: string[];
753
+ /**
754
+ * Only for `getTextCursors()`: where a cursor goes when the character it
755
+ * points at is deleted. `"after"` (default) or `"before"`.
756
+ */
757
+ move?: "before" | "after";
758
+ /** Read a historical revision from `documents.listHistory()` instead. */
759
+ revisionId?: MindooDBAppDocumentRevisionId;
760
+ }
761
+ /** Result of `documents.getTextCursors()`. */
762
+ interface MindooDBAppTextCursorsResult {
763
+ path: Array<string | number>;
764
+ /** Heads of the document version the positions were read against. */
765
+ heads: string[];
766
+ /** One opaque cursor string per requested position, in request order. */
767
+ cursors: string[];
768
+ }
769
+ /** Result of `documents.resolveTextCursors()`. */
770
+ interface MindooDBAppTextCursorPositionsResult {
771
+ path: Array<string | number>;
772
+ /** Heads of the document version the cursors were resolved against. */
773
+ heads: string[];
774
+ /** One character index per requested cursor, in request order. */
775
+ positions: number[];
776
+ }
741
777
  interface MindooDBAppRichTextGetOptions {
742
778
  /** Stable revision id previously obtained from `documents.listHistory()`. */
743
779
  revisionId?: MindooDBAppDocumentRevisionId;
@@ -785,6 +821,10 @@ interface MindooDBAppAutomergePatchResult {
785
821
  * Creates the field if it does not exist, or replaces the existing value.
786
822
  * `path` addresses a property using object keys and list indices, for example
787
823
  * `["workbook", "worksheetsById", "ws-1", "title"]`.
824
+ *
825
+ * Strings become collaborative text. Use `MindooDBAppValue.atomic()`,
826
+ * `.counter()` or `.timestamp()` for values that need another type; they may
827
+ * also be nested inside objects and arrays.
788
828
  */
789
829
  interface MindooDBAppJsonSetPatch {
790
830
  path: Array<string | number>;
@@ -848,6 +888,22 @@ interface MindooDBAppJsonTextUnmarkPatch {
848
888
  length: number;
849
889
  names: string[];
850
890
  }
891
+ /**
892
+ * Adds `delta` (negative to decrement) to the counter at `path`.
893
+ *
894
+ * Increments made concurrently on different devices are summed when they
895
+ * merge, so two users who each add 1 end at +2 instead of one overwriting the
896
+ * other, which is what a `set` of a plain number would do. A missing field is
897
+ * initialized as a counter holding `delta`; create shared counters up front
898
+ * with `MindooDBAppValue.counter()` instead, because two devices that create
899
+ * the same counter concurrently keep only one creation. Incrementing a field
900
+ * that holds a plain number (not a counter) is rejected by the host. `delta` must be a
901
+ * safe integer.
902
+ */
903
+ interface MindooDBAppJsonCounterIncrementPatch {
904
+ path: Array<string | number>;
905
+ delta: number;
906
+ }
851
907
  interface MindooDBAppJsonPatch {
852
908
  /**
853
909
  * Automerge heads of the document snapshot this JSON patch was authored
@@ -862,6 +918,8 @@ interface MindooDBAppJsonPatch {
862
918
  textSplice?: MindooDBAppJsonTextSplicePatch[];
863
919
  textMark?: MindooDBAppJsonTextMarkPatch[];
864
920
  textUnmark?: MindooDBAppJsonTextUnmarkPatch[];
921
+ /** Increment collaborative counters. Applied last. */
922
+ counterIncrement?: MindooDBAppJsonCounterIncrementPatch[];
865
923
  }
866
924
  /**
867
925
  * Sparse patch payload used when updating an existing document.
@@ -1079,7 +1137,7 @@ interface MindooDBAppBridgeBeforeCloseAck {
1079
1137
  closeId: string;
1080
1138
  }
1081
1139
  /** A Haven-owned keyboard chord the iframe should recognise. */
1082
- type MindooDBAppHostShortcutAction = "open-workspace" | "toggle-app-drawer";
1140
+ type MindooDBAppHostShortcutAction = "open-workspace" | "toggle-app-drawer" | "toggle-workspace-maximize";
1083
1141
  /** One host shortcut, matched against {@link KeyboardEvent.code} plus modifiers. */
1084
1142
  interface MindooDBAppHostShortcutBinding {
1085
1143
  action: MindooDBAppHostShortcutAction;
@@ -1101,8 +1159,38 @@ interface MindooDBAppBridgeShortcutInvokedMessage {
1101
1159
  kind: "shortcut-invoked";
1102
1160
  action: MindooDBAppHostShortcutAction;
1103
1161
  }
1162
+ /** App → host: the user pressed inside this app, so Haven should focus its tile. */
1163
+ interface MindooDBAppBridgeWorkspaceFocusRequestedMessage {
1164
+ protocol: "mindoodb-app-bridge";
1165
+ kind: "workspace-focus-requested";
1166
+ }
1167
+ /** Host → app: whether this launch is the surface the user is looking at. */
1168
+ interface MindooDBAppBridgeHostFocusChangedMessage {
1169
+ protocol: "mindoodb-app-bridge";
1170
+ kind: "host-focus-changed";
1171
+ focused: boolean;
1172
+ }
1173
+ /** Severity of a notice Haven shows for an app. */
1174
+ type MindooDBAppNotificationSeverity = "info" | "warning" | "error";
1175
+ /** One notice the app asks Haven to show. The headline is the app's registration label. */
1176
+ interface MindooDBAppNotifyInput {
1177
+ /** When set, Haven updates that notice instead of adding another row. */
1178
+ id?: string;
1179
+ severity: MindooDBAppNotificationSeverity;
1180
+ text: string;
1181
+ /**
1182
+ * How long the notice stays up, in milliseconds. Omit it and the notice stays
1183
+ * until the user dismisses it or clicks it. Haven clamps a provided value to
1184
+ * a short range so a progress step cannot pin itself on screen.
1185
+ */
1186
+ durationMs?: number;
1187
+ }
1188
+ /** The id Haven stored for this notice. Pass it again to update the same row. */
1189
+ interface MindooDBAppNotifyResult {
1190
+ id: string;
1191
+ }
1104
1192
  /** Any message that can travel across the dedicated bridge MessagePort. */
1105
- type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck | MindooDBAppBridgeShortcutsChangedMessage | MindooDBAppBridgeShortcutInvokedMessage | MindooDBAppBridgeDragOverMessage | MindooDBAppBridgeDragLeaveMessage | MindooDBAppBridgeDragDropMessage;
1193
+ type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck | MindooDBAppBridgeShortcutsChangedMessage | MindooDBAppBridgeShortcutInvokedMessage | MindooDBAppBridgeWorkspaceFocusRequestedMessage | MindooDBAppBridgeHostFocusChangedMessage | MindooDBAppBridgeDragOverMessage | MindooDBAppBridgeDragLeaveMessage | MindooDBAppBridgeDragDropMessage;
1106
1194
  /** Placement hint for a host-rendered overlay menu. */
1107
1195
  type MindooDBAppMenuPlacement = "auto" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "right-start" | "left-start";
1108
1196
  /** Semantic hint allowing Haven to tune menu behavior or styling. */
@@ -1414,6 +1502,36 @@ interface MindooDBAppFulltextSetup {
1414
1502
  /** Per-field cap (approximate bytes) for extracted text. */
1415
1503
  maxFieldBytes?: number;
1416
1504
  }
1505
+ /**
1506
+ * Document summary buffer configuration of a database, stored in the synced
1507
+ * `dbsetup` document (`summarySetup` field) — the app-SDK mirror of
1508
+ * MindooDB's `SummaryConfig`. It decides which document fields
1509
+ * {@link MindooDBAppDocumentApi.query} and summary-backed views can read
1510
+ * without materializing documents. Read/write it via
1511
+ * {@link MindooDBAppDatabase.getSummarySetup} /
1512
+ * {@link MindooDBAppDatabase.setSummarySetup}.
1513
+ */
1514
+ interface MindooDBAppSummarySetup {
1515
+ /**
1516
+ * Copy every non-underscore top-level field whose value is a scalar or an
1517
+ * array of scalars (up to {@link maxValueBytes}). Default: `true`.
1518
+ */
1519
+ autoInclude?: boolean;
1520
+ /** Size cap (approximate, JSON length) for auto-included values. Default: `1024`. */
1521
+ maxValueBytes?: number;
1522
+ /**
1523
+ * Dot-separated paths to include explicitly. Unlike auto-include these may
1524
+ * be nested or non-scalar (e.g. an array of objects) and bypass the size
1525
+ * cap.
1526
+ */
1527
+ include?: string[];
1528
+ /** Dot-separated paths to exclude; wins over auto-include and `include`. */
1529
+ exclude?: string[];
1530
+ /** Store a slim `_attachments` projection. Default: `true`. */
1531
+ includeAttachments?: boolean;
1532
+ /** Store a slim `_encryptFor` projection. Default: `true`. */
1533
+ includeRecipients?: boolean;
1534
+ }
1417
1535
  /**
1418
1536
  * Attachment text extraction configuration of a database, stored in the
1419
1537
  * synced `dbsetup` document (`extractionSetup` field) — the app-SDK
@@ -1670,6 +1788,26 @@ interface MindooDBAppDocumentApi {
1670
1788
  * writing back via `update({ richText: [...] })`.
1671
1789
  */
1672
1790
  getRichText(docId: string, path: Array<string | number>, options?: MindooDBAppRichTextGetOptions): Promise<MindooDBAppRichTextSnapshot>;
1791
+ /**
1792
+ * Create stable cursors for character positions in the text field at
1793
+ * `path`. A cursor identifies a character rather than an index, so it keeps
1794
+ * pointing at the same spot while other users insert or delete text before
1795
+ * it. A cursor names the character at its index: anchor a range on its first
1796
+ * and last character and add 1 to the resolved end. Store cursors in the
1797
+ * document (preferably as `MindooDBAppValue.atomic()`)
1798
+ * to anchor comments, highlights or bookmarks, and turn them back into
1799
+ * indexes with {@link resolveTextCursors}. The field must be collaborative
1800
+ * text (a string written with `set`/text patches, or rich text).
1801
+ * Requires the `read` capability.
1802
+ */
1803
+ getTextCursors(docId: string, path: Array<string | number>, positions: MindooDBAppTextCursorPosition[], options?: MindooDBAppTextCursorOptions): Promise<MindooDBAppTextCursorsResult>;
1804
+ /**
1805
+ * Resolve cursors from {@link getTextCursors} to current character indexes
1806
+ * (or, with `options.heads` / `options.revisionId`, to indexes in that
1807
+ * version). A cursor whose character was deleted resolves to where the
1808
+ * character used to be. Requires the `read` capability.
1809
+ */
1810
+ resolveTextCursors(docId: string, path: Array<string | number>, cursors: string[], options?: Omit<MindooDBAppTextCursorOptions, "move">): Promise<MindooDBAppTextCursorPositionsResult>;
1673
1811
  /**
1674
1812
  * Export the full internal Automerge document as binary.
1675
1813
  *
@@ -1681,11 +1819,23 @@ interface MindooDBAppDocumentApi {
1681
1819
  /**
1682
1820
  * Merge raw Automerge change bytes into the canonical document on Haven.
1683
1821
  *
1684
- * **Discouraged** — prefer `documents.update` patch operations. Escape hatch
1685
- * for apps that host a local Automerge replica when JSON patches are insufficient.
1686
1822
  * Include `replicaHeads` to receive incremental `changesSince` in the response.
1823
+ * Word chunk journals use {@link applyAutomergeChangesBatch} so one save can
1824
+ * write several small documents. Prefer `documents.update` when a JSON patch
1825
+ * already expresses the edit.
1687
1826
  */
1688
1827
  applyAutomergeChanges(docId: string, patch: MindooDBAppAutomergeChangesPatch): Promise<MindooDBAppAutomergePatchResult>;
1828
+ /**
1829
+ * Merge Automerge change bytes for several documents in one call.
1830
+ *
1831
+ * Supported path for Word chunk journals: each chunk is its own document,
1832
+ * and a save sends only the chunks that changed. Hosts without this method
1833
+ * are served by sequential {@link applyAutomergeChanges} calls.
1834
+ */
1835
+ applyAutomergeChangesBatch(items: Array<{
1836
+ docId: string;
1837
+ patch: MindooDBAppAutomergeChangesPatch;
1838
+ }>): Promise<MindooDBAppAutomergePatchResult[]>;
1689
1839
  /**
1690
1840
  * Create a new document from `input.set` (or return the existing one
1691
1841
  * when a caller-provided `input.id` already exists — idempotent create,
@@ -2405,6 +2555,28 @@ interface MindooDBAppDatabase {
2405
2555
  * {@link setFulltextSetup}.
2406
2556
  */
2407
2557
  setExtractionSetup(config: MindooDBAppExtractionSetup | null): Promise<void>;
2558
+ /**
2559
+ * Read the database's document summary buffer configuration from the
2560
+ * synced `dbsetup` document. Resolves to `null` when it has never been
2561
+ * configured (the host then uses the default auto-include config).
2562
+ * Requires the `read` capability.
2563
+ */
2564
+ getSummarySetup(): Promise<MindooDBAppSummarySetup | null>;
2565
+ /**
2566
+ * Write the database's document summary buffer configuration (persisted
2567
+ * in the synced `dbsetup` document, so it applies on every replica). A
2568
+ * change triggers a resumable background re-extraction; documents are
2569
+ * never rewritten, and queries report `coverage: "rebuilding"` until it
2570
+ * finishes. Pass `null` to fall back to the default auto-include config.
2571
+ *
2572
+ * Typical use: `include` nested fields a list UI needs (e.g. an array of
2573
+ * objects), so `documents.query` can return them instead of the app
2574
+ * calling `documents.get` per document.
2575
+ *
2576
+ * Requires the `update` capability; idempotent like
2577
+ * {@link setFulltextSetup}.
2578
+ */
2579
+ setSummarySetup(config: MindooDBAppSummarySetup | null): Promise<void>;
2408
2580
  }
2409
2581
  /** Request to open a host-owned encrypted channel to a tenant-joined service. */
2410
2582
  interface MindooDBAppSealedChannelOpenInput {
@@ -2632,6 +2804,34 @@ interface MindooDBAppSession {
2632
2804
  * still lose whatever was buffered.
2633
2805
  */
2634
2806
  onBeforeClose(listener: () => void | Promise<void>): () => void;
2807
+ /**
2808
+ * Ask Haven to treat this launch as the focused surface.
2809
+ *
2810
+ * A click inside the iframe already does this. Call it when the app should
2811
+ * take focus without a click, for example after the user picks this app
2812
+ * from an in-app list.
2813
+ */
2814
+ requestHostFocus(): Promise<void>;
2815
+ /**
2816
+ * True only when this launch is the surface the user is looking at: the
2817
+ * focused tile on the active workspace page, or this launch open as a
2818
+ * standalone runner. A background tile, another page, or another app is
2819
+ * false. Use this before `notify()` so a long task stays quiet while the
2820
+ * user is already looking at the app.
2821
+ */
2822
+ hasHostFocus(): Promise<boolean>;
2823
+ /**
2824
+ * Fires when {@link hasHostFocus} would change, so a long task can decide
2825
+ * whether to notify without polling. Returns an unsubscribe function.
2826
+ */
2827
+ onHostFocusChange(listener: (focused: boolean) => void): () => void;
2828
+ /**
2829
+ * Ask Haven to show a notice. The headline is the app name Haven already
2830
+ * knows; `text` is the body. Pass the same `id` to update that notice in
2831
+ * place. Omit `id` to add a new notice. A notice from this launch cannot
2832
+ * replace one from another launch.
2833
+ */
2834
+ notify(input: MindooDBAppNotifyInput): Promise<MindooDBAppNotifyResult>;
2635
2835
  /**
2636
2836
  * Tear down the session: close the bridge port and release all host-side
2637
2837
  * resources of this launch (navigators, live queries, streams). The
@@ -2650,4 +2850,4 @@ interface MindooDBAppBridge {
2650
2850
  connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
2651
2851
  }
2652
2852
 
2653
- export { type MindooDBAppBridgeStreamCloseRequest as $, type MindooDBAppAutomergeChangesPatch as A, type MindooDBAppAutomergeChangesSince as B, type MindooDBAppAutomergeGetOptions as C, type MindooDBAppAutomergePatchResult as D, type MindooDBAppAutomergeSnapshot as E, type MindooDBAppBridgeBeforeCloseAck as F, type MindooDBAppBridgeBeforeCloseMessage as G, type MindooDBAppBridgeConnectMessage as H, type MindooDBAppBridgeConnectOptions as I, type MindooDBAppBridgeConnectedMessage as J, type MindooDBAppBridgeDragDropMessage as K, type MindooDBAppBridgeDragLeaveMessage as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppBridgeDragOverMessage as N, type MindooDBAppBridgeErrorPayload as O, type MindooDBAppBridgeHandshakeErrorMessage as P, type MindooDBAppBridgeLocaleChangedMessage as Q, type MindooDBAppBridgePortMessage as R, type MindooDBAppBridgeQueryResultMessage as S, type MindooDBAppBridgeRpcError as T, type MindooDBAppBridgeRpcMessage as U, type MindooDBAppBridgeRpcRequest as V, type MindooDBAppBridgeRpcSuccess as W, type MindooDBAppBridgeShortcutInvokedMessage as X, type MindooDBAppBridgeShortcutsChangedMessage as Y, type MindooDBAppBridgeStreamAbortRequest as Z, type MindooDBAppBridgeStreamAck as _, type MindooDBAppDragBindSourceOptions as a, type MindooDBAppHistoryQuery as a$, type MindooDBAppBridgeStreamError as a0, type MindooDBAppBridgeStreamMessage as a1, type MindooDBAppBridgeStreamOpenResult as a2, type MindooDBAppBridgeStreamReadRequest as a3, type MindooDBAppBridgeStreamWriteRequest as a4, type MindooDBAppBridgeThemeChangedMessage as a5, type MindooDBAppBridgeUiPreferencesChangedMessage as a6, type MindooDBAppBridgeViewChangedMessage as a7, type MindooDBAppBridgeViewportChangedMessage as a8, type MindooDBAppCapability as a9, type MindooDBAppDirectoryEntry as aA, type MindooDBAppDocumentApi as aB, type MindooDBAppDocumentHeadCursorResult as aC, type MindooDBAppDocumentHistoryEntry as aD, type MindooDBAppDocumentListQuery as aE, type MindooDBAppDocumentListResult as aF, type MindooDBAppDocumentQuery as aG, type MindooDBAppDocumentRevisionId as aH, type MindooDBAppDocumentScanPreset as aI, type MindooDBAppDocumentSummary as aJ, type MindooDBAppDragApi as aK, type MindooDBAppDragCancelReason as aL, type MindooDBAppDragDropEvent as aM, type MindooDBAppDragEffect as aN, type MindooDBAppDragHoverResult as aO, type MindooDBAppDragOffer as aP, type MindooDBAppDragOverEvent as aQ, type MindooDBAppDragPointer as aR, type MindooDBAppDragProfile as aS, type MindooDBAppEntryAttachmentRef as aT, type MindooDBAppEntryProvenance as aU, type MindooDBAppExtractDocumentTextInput as aV, type MindooDBAppExtractDocumentTextResult as aW, type MindooDBAppExtractTextFormat as aX, type MindooDBAppExtractionSetup as aY, type MindooDBAppFulltextSetup as aZ, type MindooDBAppHistoricalDocument as a_, type MindooDBAppConfiguredViewCategorizationStyle as aa, type MindooDBAppConfiguredViewColumn as ab, type MindooDBAppConfiguredViewColumnRole as ac, type MindooDBAppConfiguredViewExpressionMode as ad, type MindooDBAppConfiguredViewFieldExpression as ae, type MindooDBAppConfiguredViewFilterDefinition as af, type MindooDBAppConfiguredViewFilterMode as ag, type MindooDBAppConfiguredViewFilterRule as ah, type MindooDBAppConfiguredViewFormulaExpression as ai, type MindooDBAppConfiguredViewFormulaFilterDefinition as aj, type MindooDBAppConfiguredViewPreviewMode as ak, type MindooDBAppConfiguredViewRuleFilterDefinition as al, type MindooDBAppConfiguredViewRuleMatchMode as am, type MindooDBAppConfiguredViewRuleOperator as an, type MindooDBAppConfiguredViewValueExpression as ao, type MindooDBAppCreateDocumentInput as ap, type MindooDBAppCreateKeyInfo as aq, type MindooDBAppCreateViewInput as ar, type MindooDBAppCreateViewNavigatorInput as as, type MindooDBAppDatabaseInfo as at, type MindooDBAppDefinition as au, type MindooDBAppDefinitionDatabase as av, type MindooDBAppDefinitionPermission as aw, type MindooDBAppDefinitionRegistrationPermission as ax, type MindooDBAppDefinitionValidation as ay, type MindooDBAppDirectoryApi as az, type MindooDBAppDragStartInput as b, type MindooDBAppSealedChannelRequestInput as b$, type MindooDBAppHostTheme as b0, type MindooDBAppIdentityApi as b1, type MindooDBAppInaccessibleDocument as b2, type MindooDBAppInaccessibleDocumentListQuery as b3, type MindooDBAppInaccessibleDocumentListResult as b4, type MindooDBAppJsonListDeletePatch as b5, type MindooDBAppJsonListInsertPatch as b6, type MindooDBAppJsonPatch as b7, type MindooDBAppJsonSetPatch as b8, type MindooDBAppJsonTextMarkPatch as b9, type MindooDBAppQuerySortKey as bA, type MindooDBAppQueryTextClause as bB, type MindooDBAppReadableAttachmentStream as bC, type MindooDBAppRecipientOptions as bD, type MindooDBAppResolvedViewDefinition as bE, type MindooDBAppResolvedViewSource as bF, type MindooDBAppRevisionPhase as bG, type MindooDBAppRevisionVerification as bH, type MindooDBAppRichTextBlockSpan as bI, type MindooDBAppRichTextGetOptions as bJ, type MindooDBAppRichTextImmutableString as bK, type MindooDBAppRichTextMarkRange as bL, type MindooDBAppRichTextMaterializeValue as bM, type MindooDBAppRichTextPatch as bN, type MindooDBAppRichTextScalar as bO, type MindooDBAppRichTextSpliceStep as bP, type MindooDBAppRichTextStep as bQ, type MindooDBAppRichTextStepPatch as bR, type MindooDBAppRichTextTextSpan as bS, type MindooDBAppRuntime as bT, type MindooDBAppScanAttachmentOptions as bU, type MindooDBAppScanAttachmentResult as bV, type MindooDBAppScopedDocId as bW, type MindooDBAppScopedDocumentSummary as bX, type MindooDBAppSealIntent as bY, type MindooDBAppSealedChannelOpenInput as bZ, type MindooDBAppSealedChannelOpenResult as b_, type MindooDBAppJsonTextSplicePatch as ba, type MindooDBAppJsonTextUnmarkPatch as bb, type MindooDBAppJsonUnsetPatch as bc, type MindooDBAppLaunchContext as bd, type MindooDBAppLiveQuerySubscription as be, type MindooDBAppMenuAnchor as bf, type MindooDBAppMenuApi as bg, type MindooDBAppMenuCommandItem as bh, type MindooDBAppMenuDismissReason as bi, type MindooDBAppMenuDismissedResult as bj, type MindooDBAppMenuItem as bk, type MindooDBAppMenuKind as bl, type MindooDBAppMenuPlacement as bm, type MindooDBAppMenuPointAnchor as bn, type MindooDBAppMenuRect as bo, type MindooDBAppMenuRectAnchor as bp, type MindooDBAppMenuSelectionResult as bq, type MindooDBAppMenuSeparatorItem as br, type MindooDBAppProposeAppInput as bs, type MindooDBAppProposeAppResult as bt, type MindooDBAppQueryCoverage as bu, type MindooDBAppQueryInclude as bv, type MindooDBAppQueryIncludeCardinality as bw, type MindooDBAppQueryIncludeSlots as bx, type MindooDBAppQueryResult as by, type MindooDBAppQueryRow as bz, type MindooDBAppDragStartResult as c, type MindooDBAppSession as c0, type MindooDBAppShowMenuInput as c1, type MindooDBAppShowMenuResult as c2, type MindooDBAppSignPreview as c3, type MindooDBAppSignPreviewScope as c4, type MindooDBAppSignStatementInput as c5, type MindooDBAppSignStatementResult as c6, type MindooDBAppStorageApi as c7, type MindooDBAppTextEdit as c8, type MindooDBAppTextPatch as c9, type MindooDBAppThemeMode as ca, type MindooDBAppTimestampApi as cb, type MindooDBAppTimestampInput as cc, type MindooDBAppTimestampProvider as cd, type MindooDBAppTimestampResult as ce, type MindooDBAppUiPreferences as cf, type MindooDBAppUpdateDocumentInput as cg, type MindooDBAppViewCursorDocumentListResult as ch, type MindooDBAppViewCursorResult as ci, type MindooDBAppViewEntry as cj, type MindooDBAppViewEntryKind as ck, type MindooDBAppViewNavigator as cl, type MindooDBAppViewNavigatorExpansionState as cm, type MindooDBAppViewNavigatorOpenOptions as cn, type MindooDBAppViewNavigatorPageOptions as co, type MindooDBAppViewNavigatorPageResult as cp, type MindooDBAppViewNavigatorRangeQuery as cq, type MindooDBAppViewNavigatorSelectionState as cr, type MindooDBAppViewUpdateStats as cs, type MindooDBAppViewport as ct, type MindooDBAppWellKnownDragType as cu, type MindooDBAppWritableAttachmentStream as cv, resolveMindooDBAppDefinitionUrl as cw, validateMindooDBAppDefinition as cx, type MindooDBAppDragPreview as d, type MindooDBAppBridge as e, type MindooDBAppHostShortcutBinding as f, type MindooDBAppHostShortcutAction as g, type MindooDBAppHostingMode as h, type MindooDBAppDatabase as i, type MindooDBAppDocument as j, type MindooDBAppRichTextSpan as k, type MindooDBAppRichTextSnapshot as l, MINDOODB_APP_DEFINITION_FILE_NAME as m, MINDOODB_APP_DEFINITION_FORMAT as n, MINDOODB_APP_DEFINITION_PERMISSIONS as o, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as p, MINDOODB_APP_DEFINITION_VERSION as q, MINDOODB_APP_SEAL_SIGNING_DOMAIN as r, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as s, type MindooDBAppAccessDecision as t, type MindooDBAppAccessTier as u, type MindooDBAppAttachmentApi as v, type MindooDBAppAttachmentChunk as w, type MindooDBAppAttachmentInfo as x, type MindooDBAppAttachmentPreviewOptions as y, type MindooDBAppAttachmentPreviewSession as z };
2853
+ export { type MindooDBAppBridgeStreamAbortRequest as $, type MindooDBAppAttachmentPreviewSession as A, type MindooDBAppAutomergeChangesPatch as B, type MindooDBAppAutomergeChangesSince as C, type MindooDBAppAutomergeGetOptions as D, type MindooDBAppAutomergePatchResult as E, type MindooDBAppAutomergeSnapshot as F, type MindooDBAppBridgeBeforeCloseAck as G, type MindooDBAppBridgeBeforeCloseMessage as H, type MindooDBAppBridgeConnectMessage as I, type MindooDBAppBridgeConnectOptions as J, type MindooDBAppBridgeConnectedMessage as K, type MindooDBAppBridgeDragDropMessage as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppBridgeDragLeaveMessage as N, type MindooDBAppBridgeDragOverMessage as O, type MindooDBAppBridgeErrorPayload as P, type MindooDBAppBridgeHandshakeErrorMessage as Q, type MindooDBAppBridgeHostFocusChangedMessage as R, type MindooDBAppBridgeLocaleChangedMessage as S, type MindooDBAppBridgePortMessage as T, type MindooDBAppBridgeQueryResultMessage as U, type MindooDBAppBridgeRpcError as V, type MindooDBAppBridgeRpcMessage as W, type MindooDBAppBridgeRpcRequest as X, type MindooDBAppBridgeRpcSuccess as Y, type MindooDBAppBridgeShortcutInvokedMessage as Z, type MindooDBAppBridgeShortcutsChangedMessage as _, type MindooDBAppDragBindSourceOptions as a, type MindooDBAppFulltextSetup as a$, type MindooDBAppBridgeStreamAck as a0, type MindooDBAppBridgeStreamCloseRequest as a1, type MindooDBAppBridgeStreamError as a2, type MindooDBAppBridgeStreamMessage as a3, type MindooDBAppBridgeStreamOpenResult as a4, type MindooDBAppBridgeStreamReadRequest as a5, type MindooDBAppBridgeStreamWriteRequest as a6, type MindooDBAppBridgeThemeChangedMessage as a7, type MindooDBAppBridgeUiPreferencesChangedMessage as a8, type MindooDBAppBridgeViewChangedMessage as a9, type MindooDBAppDefinitionValidation as aA, type MindooDBAppDirectoryApi as aB, type MindooDBAppDirectoryEntry as aC, type MindooDBAppDocumentApi as aD, type MindooDBAppDocumentHeadCursorResult as aE, type MindooDBAppDocumentHistoryEntry as aF, type MindooDBAppDocumentListQuery as aG, type MindooDBAppDocumentListResult as aH, type MindooDBAppDocumentQuery as aI, type MindooDBAppDocumentRevisionId as aJ, type MindooDBAppDocumentScanPreset as aK, type MindooDBAppDocumentSummary as aL, type MindooDBAppDragApi as aM, type MindooDBAppDragCancelReason as aN, type MindooDBAppDragDropEvent as aO, type MindooDBAppDragEffect as aP, type MindooDBAppDragHoverResult as aQ, type MindooDBAppDragOffer as aR, type MindooDBAppDragOverEvent as aS, type MindooDBAppDragPointer as aT, type MindooDBAppDragProfile as aU, type MindooDBAppEntryAttachmentRef as aV, type MindooDBAppEntryProvenance as aW, type MindooDBAppExtractDocumentTextInput as aX, type MindooDBAppExtractDocumentTextResult as aY, type MindooDBAppExtractTextFormat as aZ, type MindooDBAppExtractionSetup as a_, type MindooDBAppBridgeViewportChangedMessage as aa, type MindooDBAppBridgeWorkspaceFocusRequestedMessage as ab, type MindooDBAppCapability as ac, type MindooDBAppConfiguredViewCategorizationStyle as ad, type MindooDBAppConfiguredViewColumn as ae, type MindooDBAppConfiguredViewColumnRole as af, type MindooDBAppConfiguredViewExpressionMode as ag, type MindooDBAppConfiguredViewFieldExpression as ah, type MindooDBAppConfiguredViewFilterDefinition as ai, type MindooDBAppConfiguredViewFilterMode as aj, type MindooDBAppConfiguredViewFilterRule as ak, type MindooDBAppConfiguredViewFormulaExpression as al, type MindooDBAppConfiguredViewFormulaFilterDefinition as am, type MindooDBAppConfiguredViewPreviewMode as an, type MindooDBAppConfiguredViewRuleFilterDefinition as ao, type MindooDBAppConfiguredViewRuleMatchMode as ap, type MindooDBAppConfiguredViewRuleOperator as aq, type MindooDBAppConfiguredViewValueExpression as ar, type MindooDBAppCreateKeyInfo as as, type MindooDBAppCreateViewInput as at, type MindooDBAppCreateViewNavigatorInput as au, type MindooDBAppDatabaseInfo as av, type MindooDBAppDefinition as aw, type MindooDBAppDefinitionDatabase as ax, type MindooDBAppDefinitionPermission as ay, type MindooDBAppDefinitionRegistrationPermission as az, type MindooDBAppDragStartInput as b, type MindooDBAppScanAttachmentResult as b$, type MindooDBAppHistoricalDocument as b0, type MindooDBAppHistoryQuery as b1, type MindooDBAppHostTheme as b2, type MindooDBAppIdentityApi as b3, type MindooDBAppInaccessibleDocument as b4, type MindooDBAppInaccessibleDocumentListQuery as b5, type MindooDBAppInaccessibleDocumentListResult as b6, type MindooDBAppJsonCounterIncrementPatch as b7, type MindooDBAppJsonListDeletePatch as b8, type MindooDBAppJsonListInsertPatch as b9, type MindooDBAppQueryCoverage as bA, type MindooDBAppQueryInclude as bB, type MindooDBAppQueryIncludeCardinality as bC, type MindooDBAppQueryIncludeSlots as bD, type MindooDBAppQueryResult as bE, type MindooDBAppQueryRow as bF, type MindooDBAppQuerySortKey as bG, type MindooDBAppQueryTextClause as bH, type MindooDBAppReadableAttachmentStream as bI, type MindooDBAppRecipientOptions as bJ, type MindooDBAppResolvedViewDefinition as bK, type MindooDBAppResolvedViewSource as bL, type MindooDBAppRevisionPhase as bM, type MindooDBAppRevisionVerification as bN, type MindooDBAppRichTextBlockSpan as bO, type MindooDBAppRichTextGetOptions as bP, type MindooDBAppRichTextImmutableString as bQ, type MindooDBAppRichTextMarkRange as bR, type MindooDBAppRichTextMaterializeValue as bS, type MindooDBAppRichTextPatch as bT, type MindooDBAppRichTextScalar as bU, type MindooDBAppRichTextSpliceStep as bV, type MindooDBAppRichTextStep as bW, type MindooDBAppRichTextStepPatch as bX, type MindooDBAppRichTextTextSpan as bY, type MindooDBAppRuntime as bZ, type MindooDBAppScanAttachmentOptions as b_, type MindooDBAppJsonPatch as ba, type MindooDBAppJsonSetPatch as bb, type MindooDBAppJsonTextMarkPatch as bc, type MindooDBAppJsonTextSplicePatch as bd, type MindooDBAppJsonTextUnmarkPatch as be, type MindooDBAppJsonUnsetPatch as bf, type MindooDBAppLaunchContext as bg, type MindooDBAppLiveQuerySubscription as bh, type MindooDBAppMenuAnchor as bi, type MindooDBAppMenuApi as bj, type MindooDBAppMenuCommandItem as bk, type MindooDBAppMenuDismissReason as bl, type MindooDBAppMenuDismissedResult as bm, type MindooDBAppMenuItem as bn, type MindooDBAppMenuKind as bo, type MindooDBAppMenuPlacement as bp, type MindooDBAppMenuPointAnchor as bq, type MindooDBAppMenuRect as br, type MindooDBAppMenuRectAnchor as bs, type MindooDBAppMenuSelectionResult as bt, type MindooDBAppMenuSeparatorItem as bu, type MindooDBAppNotificationSeverity as bv, type MindooDBAppNotifyInput as bw, type MindooDBAppNotifyResult as bx, type MindooDBAppProposeAppInput as by, type MindooDBAppProposeAppResult as bz, type MindooDBAppDragStartResult as c, type MindooDBAppScopedDocId as c0, type MindooDBAppScopedDocumentSummary as c1, type MindooDBAppSealIntent as c2, type MindooDBAppSealedChannelOpenInput as c3, type MindooDBAppSealedChannelOpenResult as c4, type MindooDBAppSealedChannelRequestInput as c5, type MindooDBAppSession as c6, type MindooDBAppShowMenuInput as c7, type MindooDBAppShowMenuResult as c8, type MindooDBAppSignPreview as c9, type MindooDBAppViewNavigatorPageResult as cA, type MindooDBAppViewNavigatorRangeQuery as cB, type MindooDBAppViewNavigatorSelectionState as cC, type MindooDBAppViewUpdateStats as cD, type MindooDBAppViewport as cE, type MindooDBAppWellKnownDragType as cF, type MindooDBAppWritableAttachmentStream as cG, resolveMindooDBAppDefinitionUrl as cH, validateMindooDBAppDefinition as cI, type MindooDBAppSignPreviewScope as ca, type MindooDBAppSignStatementInput as cb, type MindooDBAppSignStatementResult as cc, type MindooDBAppStorageApi as cd, type MindooDBAppSummarySetup as ce, type MindooDBAppTextCursorOptions as cf, type MindooDBAppTextCursorPosition as cg, type MindooDBAppTextCursorPositionsResult as ch, type MindooDBAppTextCursorsResult as ci, type MindooDBAppTextEdit as cj, type MindooDBAppTextPatch as ck, type MindooDBAppThemeMode as cl, type MindooDBAppTimestampApi as cm, type MindooDBAppTimestampInput as cn, type MindooDBAppTimestampProvider as co, type MindooDBAppTimestampResult as cp, type MindooDBAppUiPreferences as cq, type MindooDBAppUpdateDocumentInput as cr, type MindooDBAppViewCursorDocumentListResult as cs, type MindooDBAppViewCursorResult as ct, type MindooDBAppViewEntry as cu, type MindooDBAppViewEntryKind as cv, type MindooDBAppViewNavigator as cw, type MindooDBAppViewNavigatorExpansionState as cx, type MindooDBAppViewNavigatorOpenOptions as cy, type MindooDBAppViewNavigatorPageOptions as cz, type MindooDBAppDragPreview as d, type MindooDBAppBridge as e, type MindooDBAppHostShortcutBinding as f, type MindooDBAppHostShortcutAction as g, type MindooDBAppHostingMode as h, type MindooDBAppDatabase as i, type MindooDBAppDocument as j, type MindooDBAppRichTextSpan as k, type MindooDBAppRichTextSnapshot as l, type MindooDBAppCreateDocumentInput as m, MINDOODB_APP_DEFINITION_FILE_NAME as n, MINDOODB_APP_DEFINITION_FORMAT as o, MINDOODB_APP_DEFINITION_PERMISSIONS as p, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as q, MINDOODB_APP_DEFINITION_VERSION as r, MINDOODB_APP_SEAL_SIGNING_DOMAIN as s, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as t, type MindooDBAppAccessDecision as u, type MindooDBAppAccessTier as v, type MindooDBAppAttachmentApi as w, type MindooDBAppAttachmentChunk as x, type MindooDBAppAttachmentInfo as y, type MindooDBAppAttachmentPreviewOptions as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindoodb-app-sdk",
3
- "version": "0.0.48",
3
+ "version": "0.0.51",
4
4
  "engines": {
5
5
  "node": ">=22.13.0"
6
6
  },
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@automerge/automerge": "^3.3.2",
48
- "mindoodb": ">=0.0.64"
48
+ "mindoodb": ">=0.0.67"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "@automerge/automerge": {
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@automerge/automerge": "^3.3.2",
60
- "mindoodb": "^0.0.64",
60
+ "mindoodb": "^0.0.67",
61
61
  "@types/node": "25.5.0",
62
62
  "jsdom": "^29.0.1",
63
63
  "tsup": "^8.5.1",