mindoodb-app-sdk 0.0.34 → 0.0.37

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.
@@ -406,6 +406,22 @@ interface MindooDBAppAccessDecision {
406
406
  tier: MindooDBAppAccessTier;
407
407
  matchedRuleId?: string;
408
408
  }
409
+ /**
410
+ * Options for person-bound (`recipients`) encryption.
411
+ *
412
+ * Matches MindooDB `recipientOptions`. The launching user is included as a
413
+ * reader unless {@link includeSelf} is `false`.
414
+ */
415
+ interface MindooDBAppRecipientOptions {
416
+ /**
417
+ * When `false`, the launching user is not added as a reader. Use this to
418
+ * create a document for someone else (a drop box): `set` still writes the
419
+ * initial values, then only `recipients` can decrypt later. Defaults to
420
+ * `true`. Empty `recipients` with `includeSelf: false` is rejected by the
421
+ * host — it would produce a document nobody can read.
422
+ */
423
+ includeSelf?: boolean;
424
+ }
409
425
  /**
410
426
  * Payload used when creating a new document.
411
427
  *
@@ -416,11 +432,22 @@ interface MindooDBAppCreateDocumentInput {
416
432
  set: Record<string, unknown>;
417
433
  /** Optional named document key. Defaults to `"default"` when omitted. */
418
434
  decryptionKeyId?: string;
435
+ /**
436
+ * Usernames to encrypt this new document for (person-bound User-Keys).
437
+ * Mutually exclusive with {@link decryptionKeyId}. The launching user is
438
+ * included by the host unless {@link recipientOptions}.includeSelf is
439
+ * `false`.
440
+ */
441
+ recipients?: string[];
442
+ /** Sealed-create options. Only used when {@link recipients} is set. */
443
+ recipientOptions?: MindooDBAppRecipientOptions;
419
444
  /**
420
445
  * Optional caller-provided document id. When omitted, MindooDB generates a
421
- * UUID7. When provided, the id must match `^[A-Za-z][A-Za-z0-9_]*$`: the
422
- * first character is an ASCII letter and subsequent characters may be ASCII
423
- * letters, ASCII digits, or `_`.
446
+ * MongoDB-style ObjectId (24 lowercase hex characters). When provided, the id
447
+ * must match `^[a-z][a-z0-9_]*$`: the first character is a lowercase ASCII
448
+ * letter and subsequent characters may be lowercase ASCII letters, ASCII
449
+ * digits, or `_`. Uppercase is rejected because ids end up in on-disk
450
+ * filenames, and those file systems are case-insensitive.
424
451
  *
425
452
  * If a document with this id already exists locally, MindooDB returns the
426
453
  * existing document instead of creating a new one (idempotent create), and
@@ -1221,6 +1248,27 @@ interface MindooDBAppDocumentApi {
1221
1248
  * each other. Requires the `update` capability.
1222
1249
  */
1223
1250
  update(docId: string, patch: MindooDBAppUpdateDocumentInput): Promise<MindooDBAppDocument>;
1251
+ /**
1252
+ * Add readers to a document created with {@link MindooDBAppCreateDocumentInput.recipients}.
1253
+ * One key wrap per new user, no rotation — new readers can decrypt the
1254
+ * whole history. The launching user is already on the list and does not
1255
+ * need to be passed. Requires the `update` capability.
1256
+ */
1257
+ addRecipients(docId: string, recipients: string[]): Promise<MindooDBAppDocument>;
1258
+ /**
1259
+ * Drop readers from a sealed document. Rotates the document key so
1260
+ * removed readers keep what they already have and cannot read later
1261
+ * changes. Do not write `_encryptFor` via {@link update}. Requires the
1262
+ * `update` capability.
1263
+ */
1264
+ removeRecipients(docId: string, recipients: string[]): Promise<MindooDBAppDocument>;
1265
+ /**
1266
+ * Replace the extra-recipient list of a sealed document. Diffs against
1267
+ * the current set (additions wrap, removals rotate). The launching user
1268
+ * stays on the list unless {@link MindooDBAppRecipientOptions.includeSelf}
1269
+ * is `false`. Requires the `update` capability.
1270
+ */
1271
+ setRecipients(docId: string, recipients: string[], options?: MindooDBAppRecipientOptions): Promise<MindooDBAppDocument>;
1224
1272
  /**
1225
1273
  * Mark a document as deleted by writing a lifecycle tombstone. The
1226
1274
  * append-only history keeps the document body, so {@link undelete} can
@@ -1257,6 +1305,8 @@ interface MindooDBAppDocumentApi {
1257
1305
  */
1258
1306
  canCreate(input?: {
1259
1307
  decryptionKeyId?: string;
1308
+ recipients?: string[];
1309
+ recipientOptions?: MindooDBAppRecipientOptions;
1260
1310
  }): Promise<MindooDBAppAccessDecision>;
1261
1311
  /**
1262
1312
  * Predict whether `update` would be allowed for the given document, without
@@ -1275,6 +1325,12 @@ interface MindooDBAppDocumentApi {
1275
1325
  * and falls back to `"default"`.
1276
1326
  */
1277
1327
  getDefaultCreateKeyId(): Promise<string>;
1328
+ /**
1329
+ * Shared document keys this user can create with in this database, plus
1330
+ * which one {@link getDefaultCreateKeyId} would pick. Use this to populate a
1331
+ * "New document" key picker. Requires the `create` capability.
1332
+ */
1333
+ listCreateKeys(): Promise<MindooDBAppCreateKeyInfo[]>;
1278
1334
  /**
1279
1335
  * List the document's revision timeline (newest first), including author
1280
1336
  * identity metadata and the stable `revisionId` per entry. Entries are
@@ -1358,6 +1414,13 @@ interface MindooDBAppTimestampApi {
1358
1414
  /** Providers this host can currently reach, best first. */
1359
1415
  listProviders(): Promise<MindooDBAppTimestampProvider[]>;
1360
1416
  }
1417
+ /** A shared document key the launching user can create with. */
1418
+ interface MindooDBAppCreateKeyInfo {
1419
+ /** Key id as stored on the document (`"default"`, `"$publicinfos"`, …). */
1420
+ keyId: string;
1421
+ /** True when this is the database/tenant default for new documents. */
1422
+ isDefault: boolean;
1423
+ }
1361
1424
  /** Read-only lookups against the tenant's user directory. */
1362
1425
  interface MindooDBAppDirectoryApi {
1363
1426
  /**
@@ -1368,6 +1431,11 @@ interface MindooDBAppDirectoryApi {
1368
1431
  * name the keys it could not resolve. Requires the `directory` capability.
1369
1432
  */
1370
1433
  excerpt(publicKeys: string[]): Promise<MindooDBAppDirectoryEntry[]>;
1434
+ /**
1435
+ * Active directory usernames in this tenant, for recipient pickers.
1436
+ * Requires the `directory` capability.
1437
+ */
1438
+ listUsers(): Promise<string[]>;
1371
1439
  }
1372
1440
  /**
1373
1441
  * The only signing domain apps may request today. Domain separation is not
@@ -1733,6 +1801,32 @@ interface MindooDBAppViewNavigator {
1733
1801
  * `timestamp`/`revisionId` options) additionally require `history`, and
1734
1802
  * mutations (`openWriteStream`, `remove`, `scan`) require `update`.
1735
1803
  */
1804
+ /**
1805
+ * Output format for {@link MindooDBAppAttachmentApi.extractText}.
1806
+ * `"markdown"` (default) keeps anydoc's GFM; `"plainText"` strips markup.
1807
+ * OCR / plain-file paths return the same string for either value.
1808
+ */
1809
+ type MindooDBAppExtractTextFormat = "markdown" | "plainText";
1810
+ /** Bytes-in extraction request for {@link MindooDBAppAttachmentApi.extractText}. */
1811
+ interface MindooDBAppExtractDocumentTextInput {
1812
+ bytes: Uint8Array;
1813
+ mimeType: string;
1814
+ fileName?: string;
1815
+ /** Default `"markdown"`. */
1816
+ format?: MindooDBAppExtractTextFormat;
1817
+ /** Optional OCR language hints when the host falls back to OCR. */
1818
+ languages?: string[];
1819
+ }
1820
+ /** Result of {@link MindooDBAppAttachmentApi.extractText}. */
1821
+ interface MindooDBAppExtractDocumentTextResult {
1822
+ text: string;
1823
+ /** False when the host has no extractor for this format. */
1824
+ handled: boolean;
1825
+ /** Resolved output format (defaults to `"markdown"`). */
1826
+ format: MindooDBAppExtractTextFormat;
1827
+ /** Engine label, e.g. `anydoc@0.1.2` or `tesseract`. */
1828
+ engine?: string;
1829
+ }
1736
1830
  interface MindooDBAppAttachmentApi {
1737
1831
  /**
1738
1832
  * Attachment metadata of a document. Pass `options.revisionId` (preferred
@@ -1778,6 +1872,13 @@ interface MindooDBAppAttachmentApi {
1778
1872
  openPreview(docId: string, attachmentName: string, options?: MindooDBAppAttachmentPreviewOptions): Promise<{
1779
1873
  ok: true;
1780
1874
  }>;
1875
+ /**
1876
+ * Extract searchable / displayable text from document bytes the app already
1877
+ * holds (e.g. after {@link openReadStream}). Haven runs anydoc for Office/PDF
1878
+ * (Markdown by default), UTF-8 decode for plain text, and OCR for images /
1879
+ * scanned PDFs. Requires the `attachments` capability.
1880
+ */
1881
+ extractText(input: MindooDBAppExtractDocumentTextInput): Promise<MindooDBAppExtractDocumentTextResult>;
1781
1882
  }
1782
1883
  /** Database handle returned from `session.openDatabase()`. */
1783
1884
  interface MindooDBAppDatabase {
@@ -1925,4 +2026,4 @@ interface MindooDBAppBridge {
1925
2026
  connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
1926
2027
  }
1927
2028
 
1928
- export { type MindooDBAppConfiguredViewFormulaFilterDefinition as $, type MindooDBAppBridgeRpcError as A, type MindooDBAppBridgeRpcMessage as B, type MindooDBAppBridgeRpcRequest as C, type MindooDBAppBridgeRpcSuccess as D, type MindooDBAppBridgeStreamAbortRequest as E, type MindooDBAppBridgeStreamAck as F, type MindooDBAppBridgeStreamCloseRequest as G, type MindooDBAppBridgeStreamError as H, type MindooDBAppBridgeStreamMessage as I, type MindooDBAppBridgeStreamOpenResult as J, type MindooDBAppBridgeStreamReadRequest as K, type MindooDBAppBridgeStreamWriteRequest as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppBridgeThemeChangedMessage as N, type MindooDBAppBridgeUiPreferencesChangedMessage as O, type MindooDBAppBridgeViewChangedMessage as P, type MindooDBAppBridgeViewportChangedMessage as Q, type MindooDBAppCapability as R, type MindooDBAppConfiguredViewCategorizationStyle as S, type MindooDBAppConfiguredViewColumn as T, type MindooDBAppConfiguredViewColumnRole as U, type MindooDBAppConfiguredViewExpressionMode as V, type MindooDBAppConfiguredViewFieldExpression as W, type MindooDBAppConfiguredViewFilterDefinition as X, type MindooDBAppConfiguredViewFilterMode as Y, type MindooDBAppConfiguredViewFilterRule as Z, type MindooDBAppConfiguredViewFormulaExpression as _, type MindooDBAppBridge as a, type MindooDBAppRichTextImmutableString as a$, type MindooDBAppConfiguredViewPreviewMode as a0, type MindooDBAppConfiguredViewRuleFilterDefinition as a1, type MindooDBAppConfiguredViewRuleMatchMode as a2, type MindooDBAppConfiguredViewRuleOperator as a3, type MindooDBAppConfiguredViewValueExpression as a4, type MindooDBAppCreateDocumentInput as a5, type MindooDBAppCreateViewInput as a6, type MindooDBAppCreateViewNavigatorInput as a7, type MindooDBAppDatabaseInfo as a8, type MindooDBAppDirectoryApi as a9, type MindooDBAppLaunchContext as aA, type MindooDBAppLiveQuerySubscription as aB, type MindooDBAppMenuAnchor as aC, type MindooDBAppMenuApi as aD, type MindooDBAppMenuCommandItem as aE, type MindooDBAppMenuDismissReason as aF, type MindooDBAppMenuDismissedResult as aG, type MindooDBAppMenuItem as aH, type MindooDBAppMenuKind as aI, type MindooDBAppMenuPlacement as aJ, type MindooDBAppMenuPointAnchor as aK, type MindooDBAppMenuRect as aL, type MindooDBAppMenuRectAnchor as aM, type MindooDBAppMenuSelectionResult as aN, type MindooDBAppMenuSeparatorItem as aO, type MindooDBAppQueryCoverage as aP, type MindooDBAppQueryResult as aQ, type MindooDBAppQueryRow as aR, type MindooDBAppQuerySortKey as aS, type MindooDBAppQueryTextClause as aT, type MindooDBAppReadableAttachmentStream as aU, type MindooDBAppResolvedViewDefinition as aV, type MindooDBAppResolvedViewSource as aW, type MindooDBAppRevisionPhase as aX, type MindooDBAppRevisionVerification as aY, type MindooDBAppRichTextBlockSpan as aZ, type MindooDBAppRichTextGetOptions as a_, 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 MindooDBAppEntryAttachmentRef as ak, type MindooDBAppEntryProvenance as al, type MindooDBAppExtractionSetup as am, type MindooDBAppFulltextSetup as an, type MindooDBAppHistoricalDocument as ao, type MindooDBAppHistoryQuery as ap, type MindooDBAppHostTheme as aq, type MindooDBAppIdentityApi as ar, type MindooDBAppJsonListDeletePatch as as, type MindooDBAppJsonListInsertPatch as at, type MindooDBAppJsonPatch as au, type MindooDBAppJsonSetPatch as av, type MindooDBAppJsonTextMarkPatch as aw, type MindooDBAppJsonTextSplicePatch as ax, type MindooDBAppJsonTextUnmarkPatch as ay, type MindooDBAppJsonUnsetPatch as az, type MindooDBAppDatabase as b, type MindooDBAppRichTextMarkRange as b0, type MindooDBAppRichTextMaterializeValue as b1, type MindooDBAppRichTextPatch as b2, type MindooDBAppRichTextScalar as b3, type MindooDBAppRichTextSpliceStep as b4, type MindooDBAppRichTextStep as b5, type MindooDBAppRichTextStepPatch as b6, type MindooDBAppRichTextTextSpan as b7, type MindooDBAppRuntime as b8, type MindooDBAppScanAttachmentOptions as b9, type MindooDBAppViewNavigatorOpenOptions as bA, type MindooDBAppViewNavigatorPageOptions as bB, type MindooDBAppViewNavigatorPageResult as bC, type MindooDBAppViewNavigatorRangeQuery as bD, type MindooDBAppViewNavigatorSelectionState as bE, type MindooDBAppViewUpdateStats as bF, type MindooDBAppViewport as bG, type MindooDBAppWritableAttachmentStream as bH, type MindooDBAppScanAttachmentResult as ba, type MindooDBAppScopedDocId as bb, type MindooDBAppScopedDocumentSummary as bc, type MindooDBAppSealIntent as bd, type MindooDBAppSession as be, type MindooDBAppShowMenuInput as bf, type MindooDBAppShowMenuResult as bg, type MindooDBAppSignPreview as bh, type MindooDBAppSignPreviewScope as bi, type MindooDBAppSignStatementInput as bj, type MindooDBAppSignStatementResult as bk, type MindooDBAppTextEdit as bl, type MindooDBAppTextPatch as bm, type MindooDBAppThemeMode as bn, type MindooDBAppTimestampApi as bo, type MindooDBAppTimestampInput as bp, type MindooDBAppTimestampProvider as bq, type MindooDBAppTimestampResult as br, type MindooDBAppUiPreferences as bs, type MindooDBAppUpdateDocumentInput as bt, type MindooDBAppViewCursorDocumentListResult as bu, type MindooDBAppViewCursorResult as bv, type MindooDBAppViewEntry as bw, type MindooDBAppViewEntryKind as bx, type MindooDBAppViewNavigator as by, type MindooDBAppViewNavigatorExpansionState as bz, type MindooDBAppDocument as c, type MindooDBAppRichTextSpan as d, type MindooDBAppRichTextSnapshot as e, MINDOODB_APP_SEAL_SIGNING_DOMAIN as f, type MindooDBAppAccessDecision as g, type MindooDBAppAccessTier as h, type MindooDBAppAttachmentApi as i, type MindooDBAppAttachmentChunk as j, type MindooDBAppAttachmentInfo as k, type MindooDBAppAttachmentPreviewOptions as l, type MindooDBAppAttachmentPreviewSession as m, type MindooDBAppAutomergeChangesPatch as n, type MindooDBAppAutomergeChangesSince as o, type MindooDBAppAutomergeGetOptions as p, type MindooDBAppAutomergePatchResult as q, type MindooDBAppAutomergeSnapshot as r, type MindooDBAppBridgeConnectMessage as s, type MindooDBAppBridgeConnectOptions as t, type MindooDBAppBridgeConnectedMessage as u, type MindooDBAppBridgeErrorPayload as v, type MindooDBAppBridgeHandshakeErrorMessage as w, type MindooDBAppBridgeLocaleChangedMessage as x, type MindooDBAppBridgePortMessage as y, type MindooDBAppBridgeQueryResultMessage as z };
2029
+ export { type MindooDBAppConfiguredViewFormulaFilterDefinition as $, type MindooDBAppBridgeRpcError as A, type MindooDBAppBridgeRpcMessage as B, type MindooDBAppBridgeRpcRequest as C, type MindooDBAppBridgeRpcSuccess as D, type MindooDBAppBridgeStreamAbortRequest as E, type MindooDBAppBridgeStreamAck as F, type MindooDBAppBridgeStreamCloseRequest as G, type MindooDBAppBridgeStreamError as H, type MindooDBAppBridgeStreamMessage as I, type MindooDBAppBridgeStreamOpenResult as J, type MindooDBAppBridgeStreamReadRequest as K, type MindooDBAppBridgeStreamWriteRequest as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppBridgeThemeChangedMessage as N, type MindooDBAppBridgeUiPreferencesChangedMessage as O, type MindooDBAppBridgeViewChangedMessage as P, type MindooDBAppBridgeViewportChangedMessage as Q, type MindooDBAppCapability as R, type MindooDBAppConfiguredViewCategorizationStyle as S, type MindooDBAppConfiguredViewColumn as T, type MindooDBAppConfiguredViewColumnRole as U, type MindooDBAppConfiguredViewExpressionMode as V, type MindooDBAppConfiguredViewFieldExpression as W, type MindooDBAppConfiguredViewFilterDefinition as X, type MindooDBAppConfiguredViewFilterMode as Y, type MindooDBAppConfiguredViewFilterRule as Z, type MindooDBAppConfiguredViewFormulaExpression as _, type MindooDBAppBridge as a, type MindooDBAppResolvedViewSource as a$, type MindooDBAppConfiguredViewPreviewMode as a0, type MindooDBAppConfiguredViewRuleFilterDefinition as a1, type MindooDBAppConfiguredViewRuleMatchMode as a2, type MindooDBAppConfiguredViewRuleOperator as a3, type MindooDBAppConfiguredViewValueExpression as a4, type MindooDBAppCreateDocumentInput as a5, type MindooDBAppCreateKeyInfo as a6, type MindooDBAppCreateViewInput as a7, type MindooDBAppCreateViewNavigatorInput as a8, type MindooDBAppDatabaseInfo as a9, type MindooDBAppJsonTextMarkPatch as aA, type MindooDBAppJsonTextSplicePatch as aB, type MindooDBAppJsonTextUnmarkPatch as aC, type MindooDBAppJsonUnsetPatch as aD, type MindooDBAppLaunchContext as aE, type MindooDBAppLiveQuerySubscription as aF, type MindooDBAppMenuAnchor as aG, type MindooDBAppMenuApi as aH, type MindooDBAppMenuCommandItem as aI, type MindooDBAppMenuDismissReason as aJ, type MindooDBAppMenuDismissedResult as aK, type MindooDBAppMenuItem as aL, type MindooDBAppMenuKind as aM, type MindooDBAppMenuPlacement as aN, type MindooDBAppMenuPointAnchor as aO, type MindooDBAppMenuRect as aP, type MindooDBAppMenuRectAnchor as aQ, type MindooDBAppMenuSelectionResult as aR, type MindooDBAppMenuSeparatorItem as aS, type MindooDBAppQueryCoverage as aT, type MindooDBAppQueryResult as aU, type MindooDBAppQueryRow as aV, type MindooDBAppQuerySortKey as aW, type MindooDBAppQueryTextClause as aX, type MindooDBAppReadableAttachmentStream as aY, type MindooDBAppRecipientOptions as aZ, type MindooDBAppResolvedViewDefinition as a_, type MindooDBAppDirectoryApi as aa, type MindooDBAppDirectoryEntry as ab, type MindooDBAppDocumentApi as ac, type MindooDBAppDocumentHeadCursorResult as ad, type MindooDBAppDocumentHistoryEntry as ae, type MindooDBAppDocumentListQuery as af, type MindooDBAppDocumentListResult as ag, type MindooDBAppDocumentQuery as ah, type MindooDBAppDocumentRevisionId as ai, type MindooDBAppDocumentScanPreset as aj, type MindooDBAppDocumentSummary as ak, type MindooDBAppEntryAttachmentRef as al, type MindooDBAppEntryProvenance as am, type MindooDBAppExtractDocumentTextInput as an, type MindooDBAppExtractDocumentTextResult as ao, type MindooDBAppExtractTextFormat as ap, type MindooDBAppExtractionSetup as aq, type MindooDBAppFulltextSetup as ar, type MindooDBAppHistoricalDocument as as, type MindooDBAppHistoryQuery as at, type MindooDBAppHostTheme as au, type MindooDBAppIdentityApi as av, type MindooDBAppJsonListDeletePatch as aw, type MindooDBAppJsonListInsertPatch as ax, type MindooDBAppJsonPatch as ay, type MindooDBAppJsonSetPatch as az, type MindooDBAppDatabase as b, type MindooDBAppRevisionPhase as b0, type MindooDBAppRevisionVerification as b1, type MindooDBAppRichTextBlockSpan as b2, type MindooDBAppRichTextGetOptions as b3, type MindooDBAppRichTextImmutableString as b4, type MindooDBAppRichTextMarkRange as b5, type MindooDBAppRichTextMaterializeValue as b6, type MindooDBAppRichTextPatch as b7, type MindooDBAppRichTextScalar as b8, type MindooDBAppRichTextSpliceStep as b9, type MindooDBAppViewCursorResult as bA, type MindooDBAppViewEntry as bB, type MindooDBAppViewEntryKind as bC, type MindooDBAppViewNavigator as bD, type MindooDBAppViewNavigatorExpansionState as bE, type MindooDBAppViewNavigatorOpenOptions as bF, type MindooDBAppViewNavigatorPageOptions as bG, type MindooDBAppViewNavigatorPageResult as bH, type MindooDBAppViewNavigatorRangeQuery as bI, type MindooDBAppViewNavigatorSelectionState as bJ, type MindooDBAppViewUpdateStats as bK, type MindooDBAppViewport as bL, type MindooDBAppWritableAttachmentStream as bM, type MindooDBAppRichTextStep as ba, type MindooDBAppRichTextStepPatch as bb, type MindooDBAppRichTextTextSpan as bc, type MindooDBAppRuntime as bd, type MindooDBAppScanAttachmentOptions as be, type MindooDBAppScanAttachmentResult as bf, type MindooDBAppScopedDocId as bg, type MindooDBAppScopedDocumentSummary as bh, type MindooDBAppSealIntent as bi, type MindooDBAppSession as bj, type MindooDBAppShowMenuInput as bk, type MindooDBAppShowMenuResult as bl, type MindooDBAppSignPreview as bm, type MindooDBAppSignPreviewScope as bn, type MindooDBAppSignStatementInput as bo, type MindooDBAppSignStatementResult as bp, type MindooDBAppTextEdit as bq, type MindooDBAppTextPatch as br, type MindooDBAppThemeMode as bs, type MindooDBAppTimestampApi as bt, type MindooDBAppTimestampInput as bu, type MindooDBAppTimestampProvider as bv, type MindooDBAppTimestampResult as bw, type MindooDBAppUiPreferences as bx, type MindooDBAppUpdateDocumentInput as by, type MindooDBAppViewCursorDocumentListResult as bz, type MindooDBAppDocument as c, type MindooDBAppRichTextSpan as d, type MindooDBAppRichTextSnapshot as e, MINDOODB_APP_SEAL_SIGNING_DOMAIN as f, type MindooDBAppAccessDecision as g, type MindooDBAppAccessTier as h, type MindooDBAppAttachmentApi as i, type MindooDBAppAttachmentChunk as j, type MindooDBAppAttachmentInfo as k, type MindooDBAppAttachmentPreviewOptions as l, type MindooDBAppAttachmentPreviewSession as m, type MindooDBAppAutomergeChangesPatch as n, type MindooDBAppAutomergeChangesSince as o, type MindooDBAppAutomergeGetOptions as p, type MindooDBAppAutomergePatchResult as q, type MindooDBAppAutomergeSnapshot as r, type MindooDBAppBridgeConnectMessage as s, type MindooDBAppBridgeConnectOptions as t, type MindooDBAppBridgeConnectedMessage as u, type MindooDBAppBridgeErrorPayload as v, type MindooDBAppBridgeHandshakeErrorMessage as w, type MindooDBAppBridgeLocaleChangedMessage as x, type MindooDBAppBridgePortMessage as y, type MindooDBAppBridgeQueryResultMessage as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindoodb-app-sdk",
3
- "version": "0.0.34",
3
+ "version": "0.0.37",
4
4
  "engines": {
5
5
  "node": ">=22.13.0"
6
6
  },
@@ -36,26 +36,30 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "mindoodb-view-language": "0.0.14"
39
+ "mindoodb-view-language": "0.0.16"
40
40
  },
41
41
  "peerDependencies": {
42
- "@automerge/automerge": "^3.2.1"
42
+ "@automerge/automerge": "^3.3.2",
43
+ "mindoodb": ">=0.0.53"
43
44
  },
44
45
  "peerDependenciesMeta": {
45
46
  "@automerge/automerge": {
46
47
  "optional": true
48
+ },
49
+ "mindoodb": {
50
+ "optional": true
47
51
  }
48
52
  },
49
53
  "devDependencies": {
50
- "@automerge/automerge": "^3.2.1",
51
- "mindoodb": "^0.0.47",
54
+ "@automerge/automerge": "^3.3.2",
55
+ "mindoodb": "^0.0.53",
52
56
  "@types/node": "25.5.0",
53
57
  "tsup": "^8.5.1",
54
58
  "typescript": "^6.0.2",
55
59
  "vitest": "^4.1.2"
56
60
  },
57
61
  "scripts": {
58
- "build": "tsup src/index.ts src/testing/index.ts --format esm --dts --clean --external @automerge/automerge --tsconfig tsconfig.build.json",
62
+ "build": "tsup src/index.ts src/testing/index.ts --format esm --dts --clean --external @automerge/automerge --external mindoodb --tsconfig tsconfig.build.json",
59
63
  "typecheck": "tsc --noEmit -p tsconfig.json",
60
64
  "test": "vitest run",
61
65
  "test:watch": "vitest"