mindoodb-app-sdk 0.0.65 → 0.0.67

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.
@@ -158,6 +158,43 @@ interface MindooDBAppComponentChildren {
158
158
  /** Fields every child carries, e.g. `{ "type": "wordChunk" }`. */
159
159
  match?: Record<string, MindooDBAppComponentFieldValue>;
160
160
  }
161
+ /**
162
+ * What kind of component this is, so a host can pick what fits its purpose: an
163
+ * `editor` edits content (a Word document, a spreadsheet, a mind map), a `form` a
164
+ * record (a company, a person). Other values are allowed for kinds to come.
165
+ */
166
+ type MindooDBAppComponentCategory = "editor" | "form" | (string & {});
167
+ /**
168
+ * A contract the component's documents fulfil, so a host can rely on their shape
169
+ * without knowing the app: e.g. `mindoo.contacts.person@1`. Another app offering the
170
+ * same contract can take this one's place.
171
+ */
172
+ interface MindooDBAppComponentContract {
173
+ /** `<namespace>.<name>@<major version>`, e.g. `mindoo.contacts.company@1`. */
174
+ contract: string;
175
+ /**
176
+ * Where the contract's fields are on this component's root documents: contract
177
+ * field → top-level document field, e.g. `{ "parents": "companyIds" }`. Fields not
178
+ * named here have the contract's own names.
179
+ */
180
+ fields?: Record<string, string>;
181
+ }
182
+ /**
183
+ * A field of the root document that points at other root documents (not parts of
184
+ * this one, unlike `children`): e.g. a person's company. Embedded, the component can
185
+ * look up the documents it may point at (`session.embedding.lookup`), and Haven only
186
+ * lets it write ids of such documents into the field.
187
+ */
188
+ interface MindooDBAppComponentReference {
189
+ /** Top-level field holding the ids of the referenced documents (a string array). */
190
+ field: string;
191
+ /** Contract of the referenced documents, e.g. `mindoo.contacts.company@1` (for hosts). */
192
+ to?: string;
193
+ /** Fields every referenced document carries, e.g. `{ "form": "contactcompany" }`. At least one. */
194
+ match: Record<string, MindooDBAppComponentFieldValue>;
195
+ /** Fields of a referenced document a lookup returns besides its id, e.g. `["subject"]`. 1-8. */
196
+ show: string[];
197
+ }
161
198
  /**
162
199
  * An editor this app offers to other apps, declared in `components` of haven-app.json.
163
200
  *
@@ -187,6 +224,12 @@ interface MindooDBAppComponentSpec {
187
224
  create?: Record<string, unknown>;
188
225
  /** Child documents that belong to a root, e.g. the chunks of a Word document. */
189
226
  children?: MindooDBAppComponentChildren;
227
+ /** What kind of component this is (hosts may treat one without as an `editor`). */
228
+ category?: MindooDBAppComponentCategory;
229
+ /** Contracts its root documents fulfil. */
230
+ provides?: MindooDBAppComponentContract[];
231
+ /** Fields of the root document that point at other root documents. */
232
+ references?: MindooDBAppComponentReference[];
190
233
  }
191
234
  /**
192
235
  * Text in one language, or a map from locale (`de`, `fr`, …) to text. A map must carry
@@ -240,6 +283,8 @@ declare function validateMindooDBAppAccepts(value: unknown): {
240
283
  /** Whether `type` (e.g. `image/png`) matches a pattern like `image/*` or `*\/*`. */
241
284
  declare function mindooDBAppAcceptMatchesType(pattern: string, type: string): boolean;
242
285
  declare const MINDOODB_APP_COMPONENTS_MAX = 16;
286
+ /** `mindoo.contacts.company@1`: dotted lowercase name, `@` and the major version. */
287
+ declare const MINDOODB_APP_COMPONENT_CONTRACT_PATTERN: RegExp;
243
288
  /**
244
289
  * Validates a `components` list on its own, for hosts that read it from another
245
290
  * manifest format (Haven's app store catalog).
@@ -1439,6 +1484,14 @@ interface MindooDBAppAgentToolAnnotations {
1439
1484
  /** The result carries text other people wrote (names, notes, document content). */
1440
1485
  untrustedContentHint?: boolean;
1441
1486
  }
1487
+ /**
1488
+ * Where a tool makes sense. `app` (the default): the app's own operations, such as
1489
+ * "list documents" or "create a map". `document`: operations on the document the
1490
+ * app shows, such as "write this paragraph". Embedded as a component in another
1491
+ * app, an app only offers its `document` tools: it sees just that one document,
1492
+ * and the host app has its own tools for everything else.
1493
+ */
1494
+ type MindooDBAppAgentToolScope = "app" | "document";
1442
1495
  /** What an app tells Haven about one agent tool; everything but the implementation. */
1443
1496
  interface MindooDBAppAgentToolDescriptor {
1444
1497
  /**
@@ -1451,6 +1504,8 @@ interface MindooDBAppAgentToolDescriptor {
1451
1504
  /** JSON Schema of the input object. */
1452
1505
  inputSchema: Record<string, unknown>;
1453
1506
  annotations?: MindooDBAppAgentToolAnnotations;
1507
+ /** Default `app`; see {@link MindooDBAppAgentToolScope}. */
1508
+ scope?: MindooDBAppAgentToolScope;
1454
1509
  }
1455
1510
  /** One agent tool an app offers. `execute` runs inside the app; its result must be JSON. */
1456
1511
  interface MindooDBAppAgentTool extends MindooDBAppAgentToolDescriptor {
@@ -1603,6 +1658,12 @@ interface MindooDBAppComponentInfo {
1603
1658
  /** All fields of a new, empty root document: `create` plus `match`. */
1604
1659
  createFields: Record<string, unknown>;
1605
1660
  children?: MindooDBAppComponentChildren;
1661
+ /** As declared; hosts may treat a component without one as an `editor`. */
1662
+ category?: MindooDBAppComponentCategory;
1663
+ /** Contracts its root documents fulfil, e.g. `mindoo.contacts.person@1`. */
1664
+ provides?: MindooDBAppComponentContract[];
1665
+ /** Fields of its root documents that point at other root documents. */
1666
+ references?: MindooDBAppComponentReference[];
1606
1667
  }
1607
1668
  /** Filter for `session.components.list`. */
1608
1669
  interface MindooDBAppComponentQuery {
@@ -1641,6 +1702,36 @@ interface MindooDBAppEmbedOpenInput {
1641
1702
  /** Default true. */
1642
1703
  visible?: boolean;
1643
1704
  }
1705
+ /** One component a host app wants to show, for `session.embeds.requestAccess`. */
1706
+ interface MindooDBAppEmbedAccessComponent {
1707
+ componentKey: string;
1708
+ /**
1709
+ * Host databases it will show documents of. Default: every database of this app
1710
+ * that it may update (`edit`) or read (`view`).
1711
+ */
1712
+ databaseIds?: string[];
1713
+ /** Default `edit`. */
1714
+ intent?: "edit" | "view";
1715
+ }
1716
+ /** Input of `session.embeds.requestAccess`. */
1717
+ interface MindooDBAppEmbedAccessInput {
1718
+ components: MindooDBAppEmbedAccessComponent[];
1719
+ }
1720
+ /** A component in one host database. */
1721
+ interface MindooDBAppEmbedAccessPair {
1722
+ componentKey: string;
1723
+ databaseId: string;
1724
+ }
1725
+ /** What `session.embeds.requestAccess` settled on. */
1726
+ interface MindooDBAppEmbedAccessResult {
1727
+ /** Allowed, now or before: `embeds.open` shows these without asking. */
1728
+ granted: MindooDBAppEmbedAccessPair[];
1729
+ /**
1730
+ * Not allowed (the user unticked them or chose "Not now"): Haven asks again when
1731
+ * `embeds.open` shows one of them, and `requestAccess` does not ask for them again.
1732
+ */
1733
+ pending: MindooDBAppEmbedAccessPair[];
1734
+ }
1644
1735
  /** Why an embedded component went away. */
1645
1736
  type MindooDBAppEmbedCloseReason = "completed" | "cancelled" | "closed" | "error";
1646
1737
  /** Delivered once when an embedded component closes. */
@@ -1703,6 +1794,42 @@ interface MindooDBAppEmbed {
1703
1794
  onClosed(listener: (event: MindooDBAppEmbedClosedEvent) => void): () => void;
1704
1795
  /** Settles with the closed event. */
1705
1796
  readonly closed: Promise<MindooDBAppEmbedClosedEvent>;
1797
+ /**
1798
+ * Marks this component as the active one of this app's components, e.g. when its
1799
+ * tab comes to the front. When several components of the same app are open (two
1800
+ * text documents side by side), agents reach the active one's tools; the others
1801
+ * keep theirs for when they become active.
1802
+ */
1803
+ setActive(): Promise<void>;
1804
+ /**
1805
+ * The agent tools the component offers right now (its `document` tools), or null
1806
+ * while it offers none. Its tools reach agents under `prefix`, e.g. `teamedit`.
1807
+ */
1808
+ readonly agentTools: MindooDBAppEmbedAgentTools | null;
1809
+ /** Called whenever the component's agent tools change. */
1810
+ onAgentToolsChange(listener: (tools: MindooDBAppEmbedAgentTools | null) => void): () => void;
1811
+ /**
1812
+ * Resolves with the component's agent tools once it offers some, e.g. so a host's
1813
+ * "open document" tool can tell the agent which tools to use next; null after
1814
+ * `timeoutMs` (default 10 s) or when the component closes.
1815
+ */
1816
+ waitForAgentTools(timeoutMs?: number): Promise<MindooDBAppEmbedAgentTools | null>;
1817
+ }
1818
+ /** The agent tools of an embedded component, as its host sees them. */
1819
+ interface MindooDBAppEmbedAgentTools {
1820
+ /** Prefix agents see in front of the tool names, e.g. `teamedit`. */
1821
+ prefix: string;
1822
+ /** Full names as agents see them, e.g. `teamedit_text_insert`. */
1823
+ names: string[];
1824
+ /** Whether this component's tools are the ones agents reach now (the active one of its app). */
1825
+ active: boolean;
1826
+ /** Whether agents may call them (agent tools on in Haven, and allowed for that app). */
1827
+ enabled: boolean;
1828
+ }
1829
+ /** Pushed when an embedded component's agent tools change. */
1830
+ interface MindooDBAppEmbedAgentToolsEvent {
1831
+ embedId: string;
1832
+ agentTools: MindooDBAppEmbedAgentTools | null;
1706
1833
  }
1707
1834
  /** Components other apps offer (`components` in their haven-app.json). */
1708
1835
  interface MindooDBAppComponentsApi {
@@ -1717,6 +1844,19 @@ interface MindooDBAppEmbedsApi {
1717
1844
  * update. The first time, Haven asks the user to allow the pairing.
1718
1845
  */
1719
1846
  open(input: MindooDBAppEmbedOpenInput): Promise<MindooDBAppEmbed>;
1847
+ /**
1848
+ * Asks the user once for all components this app is going to show, e.g. right
1849
+ * after `components.list`, instead of one prompt per component and database on
1850
+ * `open`. Haven shows a single list of what is not allowed yet (the user may
1851
+ * untick entries) and skips what the user allowed or put off before, so calling
1852
+ * this on every start is fine. Unknown components and databases this app may not
1853
+ * use are left out of the result.
1854
+ *
1855
+ * Havens that predate this answer with `method-not-found`; the SDK then resolves
1856
+ * with nothing granted and the pairs named in `databaseIds` pending, and `open`
1857
+ * asks as before.
1858
+ */
1859
+ requestAccess(input: MindooDBAppEmbedAccessInput): Promise<MindooDBAppEmbedAccessResult>;
1720
1860
  }
1721
1861
  /** For an app running as an embedded component (check `launchContext.embed`). */
1722
1862
  interface MindooDBAppEmbeddingApi {
@@ -1738,6 +1878,26 @@ interface MindooDBAppEmbeddingApi {
1738
1878
  * report why it failed. One handler at a time; returns the unregister function.
1739
1879
  */
1740
1880
  onSaveRequest(handler: () => void | Promise<void>): () => void;
1881
+ /**
1882
+ * Documents the root may point at through one of the component's `references`
1883
+ * (say the companies a person can belong to), found by Haven in the host's
1884
+ * database: only ones matching the reference's `match`, with only its `show`
1885
+ * fields. `query` searches those fields (case-insensitive substring), `docIds`
1886
+ * fetches given documents (to show the current value). At most `limit` (default
1887
+ * 20, max 100) results.
1888
+ */
1889
+ lookup(field: string, options?: MindooDBAppEmbeddingLookupOptions): Promise<MindooDBAppEmbeddingLookupResult[]>;
1890
+ }
1891
+ interface MindooDBAppEmbeddingLookupOptions {
1892
+ query?: string;
1893
+ docIds?: string[];
1894
+ limit?: number;
1895
+ }
1896
+ /** A document a reference may point at, as `embedding.lookup` returns it. */
1897
+ interface MindooDBAppEmbeddingLookupResult {
1898
+ docId: string;
1899
+ /** The reference's `show` fields the document has. */
1900
+ fields: Record<string, unknown>;
1741
1901
  }
1742
1902
  /** Haven → component: the host asked for something (`embed.save()`). */
1743
1903
  interface MindooDBAppBridgeEmbeddingRequestMessage {
@@ -1759,7 +1919,9 @@ interface MindooDBAppBridgeEmbedEventMessage {
1759
1919
  type: "closed";
1760
1920
  } & MindooDBAppEmbedClosedEvent) | ({
1761
1921
  type: "dirty";
1762
- } & MindooDBAppEmbedDirtyEvent);
1922
+ } & MindooDBAppEmbedDirtyEvent) | ({
1923
+ type: "agentTools";
1924
+ } & MindooDBAppEmbedAgentToolsEvent);
1763
1925
  }
1764
1926
  type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck | MindooDBAppBridgeShortcutsChangedMessage | MindooDBAppBridgeShortcutInvokedMessage | MindooDBAppBridgeWorkspaceFocusRequestedMessage | MindooDBAppBridgeHostFocusChangedMessage | MindooDBAppBridgeAgentInvokeMessage | MindooDBAppBridgeAgentResultMessage | MindooDBAppBridgeDragOverMessage | MindooDBAppBridgeDragLeaveMessage | MindooDBAppBridgeDragDropMessage | MindooDBAppBridgeIncomingContentMessage | MindooDBAppBridgeEmbedEventMessage | MindooDBAppBridgeEmbeddingRequestMessage;
1765
1927
  /** Placement hint for a host-rendered overlay menu. */
@@ -3465,4 +3627,4 @@ interface MindooDBAppBridge {
3465
3627
  connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
3466
3628
  }
3467
3629
 
3468
- export { type MindooDBAppBridgeDragDropMessage as $, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as A, type MindooDBAppAcceptSpec as B, type MindooDBAppAccessDecision as C, type MindooDBAppAccessTier as D, type MindooDBAppAgentApi as E, type MindooDBAppAgentRegistration as F, type MindooDBAppAgentTool as G, type MindooDBAppAgentToolAnnotations as H, type MindooDBAppAgentToolDescriptor as I, type MindooDBAppAttachmentApi as J, type MindooDBAppAttachmentChunk as K, type MindooDBAppAttachmentInfo as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppAttachmentPreviewOptions as N, type MindooDBAppAttachmentPreviewSession as O, type MindooDBAppAutomergeChangesPatch as P, type MindooDBAppAutomergeChangesSince as Q, type MindooDBAppAutomergeGetOptions as R, type MindooDBAppAutomergePatchResult as S, type MindooDBAppAutomergeSnapshot as T, type MindooDBAppBridgeAgentInvokeMessage as U, type MindooDBAppBridgeAgentResultMessage as V, type MindooDBAppBridgeBeforeCloseAck as W, type MindooDBAppBridgeBeforeCloseMessage as X, type MindooDBAppBridgeConnectMessage as Y, type MindooDBAppBridgeConnectOptions as Z, type MindooDBAppBridgeConnectedMessage as _, type MindooDBAppDragBindSourceOptions as a, type MindooDBAppDefinitionValidation as a$, type MindooDBAppBridgeDragLeaveMessage as a0, type MindooDBAppBridgeDragOverMessage as a1, type MindooDBAppBridgeEmbedEventMessage as a2, type MindooDBAppBridgeEmbeddingRequestMessage as a3, type MindooDBAppBridgeErrorPayload as a4, type MindooDBAppBridgeHandshakeErrorMessage as a5, type MindooDBAppBridgeHostFocusChangedMessage as a6, type MindooDBAppBridgeIncomingContentMessage as a7, type MindooDBAppBridgeLocaleChangedMessage as a8, type MindooDBAppBridgePortMessage as a9, type MindooDBAppComponentQuery as aA, type MindooDBAppComponentSpec as aB, type MindooDBAppComponentsApi 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 MindooDBAppDefinitionDatabase as aW, type MindooDBAppDefinitionListing as aX, type MindooDBAppDefinitionPermission as aY, type MindooDBAppDefinitionRegistrationPermission as aZ, type MindooDBAppDefinitionScreenshot as a_, type MindooDBAppBridgeQueryResultMessage as aa, type MindooDBAppBridgeRpcError as ab, type MindooDBAppBridgeRpcMessage as ac, type MindooDBAppBridgeRpcRequest as ad, type MindooDBAppBridgeRpcSuccess as ae, type MindooDBAppBridgeShortcutInvokedMessage as af, type MindooDBAppBridgeShortcutsChangedMessage as ag, type MindooDBAppBridgeStreamAbortRequest as ah, type MindooDBAppBridgeStreamAck as ai, type MindooDBAppBridgeStreamCloseRequest as aj, type MindooDBAppBridgeStreamError as ak, type MindooDBAppBridgeStreamMessage as al, type MindooDBAppBridgeStreamOpenResult as am, type MindooDBAppBridgeStreamReadRequest as an, type MindooDBAppBridgeStreamWriteRequest as ao, type MindooDBAppBridgeThemeChangedMessage as ap, type MindooDBAppBridgeUiPreferencesChangedMessage as aq, type MindooDBAppBridgeViewChangedMessage as ar, type MindooDBAppBridgeViewportChangedMessage as as, type MindooDBAppBridgeWorkspaceFocusRequestedMessage as at, type MindooDBAppBrowserFeatures as au, type MindooDBAppCapability as av, type MindooDBAppComponentChildren as aw, type MindooDBAppComponentFieldValue as ax, type MindooDBAppComponentInfo as ay, type MindooDBAppComponentIntent as az, type MindooDBAppDragStartInput as b, type MindooDBAppLocalizedText as b$, type MindooDBAppDirectoryApi as b0, type MindooDBAppDirectoryEntry as b1, type MindooDBAppDocumentApi as b2, type MindooDBAppDocumentHeadCursorResult as b3, type MindooDBAppDocumentHistoryEntry as b4, type MindooDBAppDocumentListQuery as b5, type MindooDBAppDocumentListResult as b6, type MindooDBAppDocumentQuery as b7, type MindooDBAppDocumentRevisionId as b8, type MindooDBAppDocumentScanPreset as b9, type MindooDBAppHistoricalDocument as bA, type MindooDBAppHistoryQuery as bB, type MindooDBAppHostTheme as bC, type MindooDBAppIdentityApi as bD, type MindooDBAppInaccessibleDocument as bE, type MindooDBAppInaccessibleDocumentListQuery as bF, type MindooDBAppInaccessibleDocumentListResult as bG, type MindooDBAppIncomingContent as bH, type MindooDBAppIncomingContentHandler as bI, type MindooDBAppIncomingContentInfo as bJ, type MindooDBAppIncomingItem as bK, type MindooDBAppIncomingItemInfo as bL, type MindooDBAppIncomingResult as bM, type MindooDBAppIncomingSource as bN, type MindooDBAppJsonCounterIncrementPatch as bO, type MindooDBAppJsonListDeletePatch as bP, type MindooDBAppJsonListInsertPatch as bQ, type MindooDBAppJsonPatch as bR, type MindooDBAppJsonSetPatch as bS, type MindooDBAppJsonTextMarkPatch as bT, type MindooDBAppJsonTextSplicePatch as bU, type MindooDBAppJsonTextUnmarkPatch as bV, type MindooDBAppJsonUnsetPatch as bW, type MindooDBAppLaunchContext as bX, type MindooDBAppListUsersOptions as bY, type MindooDBAppListUsersPage as bZ, type MindooDBAppLiveQuerySubscription as b_, type MindooDBAppDocumentSummary as ba, type MindooDBAppDragApi as bb, type MindooDBAppDragCancelReason as bc, type MindooDBAppDragDropEvent as bd, type MindooDBAppDragEffect as be, type MindooDBAppDragHoverResult as bf, type MindooDBAppDragOffer as bg, type MindooDBAppDragOverEvent as bh, type MindooDBAppDragPointer as bi, type MindooDBAppDragProfile as bj, type MindooDBAppEmbed as bk, type MindooDBAppEmbedCloseReason as bl, type MindooDBAppEmbedClosedEvent as bm, type MindooDBAppEmbedContext as bn, type MindooDBAppEmbedDirtyEvent as bo, type MindooDBAppEmbedOpenInput as bp, type MindooDBAppEmbedRect as bq, type MindooDBAppEmbeddingApi as br, type MindooDBAppEmbedsApi as bs, type MindooDBAppEntryAttachmentRef as bt, type MindooDBAppEntryProvenance as bu, type MindooDBAppExtractDocumentTextInput as bv, type MindooDBAppExtractDocumentTextResult as bw, type MindooDBAppExtractTextFormat as bx, type MindooDBAppExtractionSetup as by, type MindooDBAppFulltextSetup as bz, type MindooDBAppDragStartResult as c, type MindooDBAppTextCursorPositionsResult as c$, type MindooDBAppMenuAnchor as c0, type MindooDBAppMenuApi as c1, type MindooDBAppMenuCommandItem as c2, type MindooDBAppMenuDismissReason as c3, type MindooDBAppMenuDismissedResult as c4, type MindooDBAppMenuItem as c5, type MindooDBAppMenuKind as c6, type MindooDBAppMenuPlacement as c7, type MindooDBAppMenuPointAnchor as c8, type MindooDBAppMenuRect as c9, type MindooDBAppRichTextMaterializeValue as cA, type MindooDBAppRichTextPatch as cB, type MindooDBAppRichTextScalar as cC, type MindooDBAppRichTextSpliceStep as cD, type MindooDBAppRichTextStep as cE, type MindooDBAppRichTextStepPatch as cF, type MindooDBAppRichTextTextSpan as cG, type MindooDBAppRuntime as cH, type MindooDBAppScanAttachmentOptions as cI, type MindooDBAppScanAttachmentResult as cJ, type MindooDBAppScopedDocId as cK, type MindooDBAppScopedDocumentSummary as cL, type MindooDBAppSealIntent as cM, type MindooDBAppSealedChannelOpenInput as cN, type MindooDBAppSealedChannelOpenResult as cO, type MindooDBAppSealedChannelRequestInput as cP, type MindooDBAppSession as cQ, type MindooDBAppShowMenuInput as cR, type MindooDBAppShowMenuResult as cS, type MindooDBAppSignPreview as cT, type MindooDBAppSignPreviewScope as cU, type MindooDBAppSignStatementInput as cV, type MindooDBAppSignStatementResult as cW, type MindooDBAppStorageApi as cX, type MindooDBAppSummarySetup as cY, type MindooDBAppTextCursorOptions as cZ, type MindooDBAppTextCursorPosition as c_, type MindooDBAppMenuRectAnchor as ca, type MindooDBAppMenuSelectionResult as cb, type MindooDBAppMenuSeparatorItem as cc, type MindooDBAppNotificationSeverity as cd, type MindooDBAppNotifyInput as ce, type MindooDBAppNotifyResult as cf, type MindooDBAppProposeAppInput as cg, type MindooDBAppProposeAppResult as ch, type MindooDBAppQueryCoverage as ci, type MindooDBAppQueryInclude as cj, type MindooDBAppQueryIncludeCardinality as ck, type MindooDBAppQueryIncludeSlots as cl, type MindooDBAppQueryResult as cm, type MindooDBAppQueryRow as cn, type MindooDBAppQuerySortKey as co, type MindooDBAppQueryTextClause as cp, type MindooDBAppReadableAttachmentStream as cq, type MindooDBAppRecipientOptions as cr, type MindooDBAppResolvedViewDefinition as cs, type MindooDBAppResolvedViewSource as ct, type MindooDBAppRevisionPhase as cu, type MindooDBAppRevisionVerification as cv, type MindooDBAppRichTextBlockSpan as cw, type MindooDBAppRichTextGetOptions as cx, type MindooDBAppRichTextImmutableString as cy, type MindooDBAppRichTextMarkRange as cz, type MindooDBAppDragPreview as d, type MindooDBAppTextCursorsResult as d0, type MindooDBAppTextEdit as d1, type MindooDBAppTextPatch as d2, type MindooDBAppThemeMode as d3, type MindooDBAppTimestampApi as d4, type MindooDBAppTimestampInput as d5, type MindooDBAppTimestampProvider as d6, type MindooDBAppTimestampResult as d7, type MindooDBAppUiPreferences as d8, type MindooDBAppUpdateDocumentInput as d9, type MindooDBAppViewCursorDocumentListResult as da, type MindooDBAppViewCursorResult as db, type MindooDBAppViewEntry as dc, type MindooDBAppViewEntryKind as dd, type MindooDBAppViewNavigator as de, type MindooDBAppViewNavigatorExpansionState as df, type MindooDBAppViewNavigatorOpenOptions as dg, type MindooDBAppViewNavigatorPageOptions as dh, type MindooDBAppViewNavigatorPageResult as di, type MindooDBAppViewNavigatorRangeQuery as dj, type MindooDBAppViewNavigatorSelectionState as dk, type MindooDBAppViewUpdateStats as dl, type MindooDBAppViewport as dm, type MindooDBAppWellKnownDragType as dn, type MindooDBAppWritableAttachmentStream as dp, mindooDBAppAcceptMatchesType as dq, mindooDBAppComponentFieldsMatch as dr, resolveMindooDBAppDefinitionUrl as ds, resolveMindooDBAppListingAssetUrl as dt, resolveMindooDBAppLocalizedText as du, validateMindooDBAppAccepts as dv, validateMindooDBAppComponents as dw, validateMindooDBAppDefinition as dx, type MindooDBAppBridge as e, type MindooDBAppAgentToolErrorCode as f, type MindooDBAppHostShortcutBinding as g, type MindooDBAppHostShortcutAction as h, type MindooDBAppHostingMode as i, type MindooDBAppDefinition as j, type MindooDBAppDatabase as k, type MindooDBAppDocument as l, type MindooDBAppRichTextSpan as m, type MindooDBAppRichTextSnapshot as n, type MindooDBAppCreateDocumentInput as o, MINDOODB_APP_ACCEPTS_MAX as p, MINDOODB_APP_COMPONENTS_MAX as q, MINDOODB_APP_DEFINITION_FILE_NAME as r, MINDOODB_APP_DEFINITION_FORMAT as s, MINDOODB_APP_DEFINITION_PERMISSIONS as t, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as u, MINDOODB_APP_DEFINITION_VERSION as v, MINDOODB_APP_LISTING_DESCRIPTION_MAX as w, MINDOODB_APP_LISTING_MAX_SCREENSHOTS as x, MINDOODB_APP_LISTING_SUMMARY_MAX as y, MINDOODB_APP_SEAL_SIGNING_DOMAIN as z };
3630
+ export { type MindooDBAppBridgeConnectOptions as $, MINDOODB_APP_LISTING_SUMMARY_MAX as A, MINDOODB_APP_SEAL_SIGNING_DOMAIN as B, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as C, type MindooDBAppAcceptSpec as D, type MindooDBAppAccessDecision as E, type MindooDBAppAccessTier as F, type MindooDBAppAgentApi as G, type MindooDBAppAgentRegistration as H, type MindooDBAppAgentToolAnnotations as I, type MindooDBAppAgentToolDescriptor as J, type MindooDBAppAgentToolScope as K, type MindooDBAppAttachmentApi as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppAttachmentChunk as N, type MindooDBAppAttachmentInfo as O, type MindooDBAppAttachmentPreviewOptions as P, type MindooDBAppAttachmentPreviewSession as Q, type MindooDBAppAutomergeChangesPatch as R, type MindooDBAppAutomergeChangesSince as S, type MindooDBAppAutomergeGetOptions as T, type MindooDBAppAutomergePatchResult as U, type MindooDBAppAutomergeSnapshot as V, type MindooDBAppBridgeAgentInvokeMessage as W, type MindooDBAppBridgeAgentResultMessage as X, type MindooDBAppBridgeBeforeCloseAck as Y, type MindooDBAppBridgeBeforeCloseMessage as Z, type MindooDBAppBridgeConnectMessage as _, type MindooDBAppDragBindSourceOptions as a, type MindooDBAppDefinitionDatabase as a$, type MindooDBAppBridgeConnectedMessage as a0, type MindooDBAppBridgeDragDropMessage as a1, type MindooDBAppBridgeDragLeaveMessage as a2, type MindooDBAppBridgeDragOverMessage as a3, type MindooDBAppBridgeEmbedEventMessage as a4, type MindooDBAppBridgeEmbeddingRequestMessage as a5, type MindooDBAppBridgeErrorPayload as a6, type MindooDBAppBridgeHandshakeErrorMessage as a7, type MindooDBAppBridgeHostFocusChangedMessage as a8, type MindooDBAppBridgeIncomingContentMessage as a9, type MindooDBAppComponentContract as aA, type MindooDBAppComponentFieldValue as aB, type MindooDBAppComponentInfo as aC, type MindooDBAppComponentIntent as aD, type MindooDBAppComponentQuery as aE, type MindooDBAppComponentReference as aF, type MindooDBAppComponentSpec as aG, type MindooDBAppComponentsApi as aH, type MindooDBAppConfiguredViewCategorizationStyle as aI, type MindooDBAppConfiguredViewColumn as aJ, type MindooDBAppConfiguredViewColumnRole as aK, type MindooDBAppConfiguredViewExpressionMode as aL, type MindooDBAppConfiguredViewFieldExpression as aM, type MindooDBAppConfiguredViewFilterDefinition as aN, type MindooDBAppConfiguredViewFilterMode as aO, type MindooDBAppConfiguredViewFilterRule as aP, type MindooDBAppConfiguredViewFormulaExpression as aQ, type MindooDBAppConfiguredViewFormulaFilterDefinition as aR, type MindooDBAppConfiguredViewPreviewMode as aS, type MindooDBAppConfiguredViewRuleFilterDefinition as aT, type MindooDBAppConfiguredViewRuleMatchMode as aU, type MindooDBAppConfiguredViewRuleOperator as aV, type MindooDBAppConfiguredViewValueExpression as aW, type MindooDBAppCreateKeyInfo as aX, type MindooDBAppCreateViewInput as aY, type MindooDBAppCreateViewNavigatorInput as aZ, type MindooDBAppDatabaseInfo as a_, type MindooDBAppBridgeLocaleChangedMessage as aa, type MindooDBAppBridgePortMessage as ab, type MindooDBAppBridgeQueryResultMessage as ac, type MindooDBAppBridgeRpcError as ad, type MindooDBAppBridgeRpcMessage as ae, type MindooDBAppBridgeRpcRequest as af, type MindooDBAppBridgeRpcSuccess as ag, type MindooDBAppBridgeShortcutInvokedMessage as ah, type MindooDBAppBridgeShortcutsChangedMessage as ai, type MindooDBAppBridgeStreamAbortRequest as aj, type MindooDBAppBridgeStreamAck as ak, type MindooDBAppBridgeStreamCloseRequest as al, type MindooDBAppBridgeStreamError as am, type MindooDBAppBridgeStreamMessage as an, type MindooDBAppBridgeStreamOpenResult as ao, type MindooDBAppBridgeStreamReadRequest as ap, type MindooDBAppBridgeStreamWriteRequest as aq, type MindooDBAppBridgeThemeChangedMessage as ar, type MindooDBAppBridgeUiPreferencesChangedMessage as as, type MindooDBAppBridgeViewChangedMessage as at, type MindooDBAppBridgeViewportChangedMessage as au, type MindooDBAppBridgeWorkspaceFocusRequestedMessage as av, type MindooDBAppBrowserFeatures as aw, type MindooDBAppCapability as ax, type MindooDBAppComponentCategory as ay, type MindooDBAppComponentChildren as az, type MindooDBAppDragStartInput as b, type MindooDBAppJsonCounterIncrementPatch as b$, type MindooDBAppDefinitionListing as b0, type MindooDBAppDefinitionPermission as b1, type MindooDBAppDefinitionRegistrationPermission as b2, type MindooDBAppDefinitionScreenshot as b3, type MindooDBAppDefinitionValidation as b4, type MindooDBAppDirectoryApi as b5, type MindooDBAppDirectoryEntry as b6, type MindooDBAppDocumentApi as b7, type MindooDBAppDocumentHeadCursorResult as b8, type MindooDBAppDocumentHistoryEntry as b9, type MindooDBAppEmbedOpenInput as bA, type MindooDBAppEmbedRect as bB, type MindooDBAppEmbeddingApi as bC, type MindooDBAppEmbeddingLookupOptions as bD, type MindooDBAppEmbeddingLookupResult as bE, type MindooDBAppEmbedsApi as bF, type MindooDBAppEntryAttachmentRef as bG, type MindooDBAppEntryProvenance as bH, type MindooDBAppExtractDocumentTextInput as bI, type MindooDBAppExtractDocumentTextResult as bJ, type MindooDBAppExtractTextFormat as bK, type MindooDBAppExtractionSetup as bL, type MindooDBAppFulltextSetup as bM, type MindooDBAppHistoricalDocument as bN, type MindooDBAppHistoryQuery as bO, type MindooDBAppHostTheme as bP, type MindooDBAppIdentityApi as bQ, type MindooDBAppInaccessibleDocument as bR, type MindooDBAppInaccessibleDocumentListQuery as bS, type MindooDBAppInaccessibleDocumentListResult as bT, type MindooDBAppIncomingContent as bU, type MindooDBAppIncomingContentHandler as bV, type MindooDBAppIncomingContentInfo as bW, type MindooDBAppIncomingItem as bX, type MindooDBAppIncomingItemInfo as bY, type MindooDBAppIncomingResult as bZ, type MindooDBAppIncomingSource as b_, type MindooDBAppDocumentListQuery as ba, type MindooDBAppDocumentListResult as bb, type MindooDBAppDocumentQuery as bc, type MindooDBAppDocumentRevisionId as bd, type MindooDBAppDocumentScanPreset as be, type MindooDBAppDocumentSummary as bf, type MindooDBAppDragApi as bg, type MindooDBAppDragCancelReason as bh, type MindooDBAppDragDropEvent as bi, type MindooDBAppDragEffect as bj, type MindooDBAppDragHoverResult as bk, type MindooDBAppDragOffer as bl, type MindooDBAppDragOverEvent as bm, type MindooDBAppDragPointer as bn, type MindooDBAppDragProfile as bo, type MindooDBAppEmbed as bp, type MindooDBAppEmbedAccessComponent as bq, type MindooDBAppEmbedAccessInput as br, type MindooDBAppEmbedAccessPair as bs, type MindooDBAppEmbedAccessResult as bt, type MindooDBAppEmbedAgentTools as bu, type MindooDBAppEmbedAgentToolsEvent as bv, type MindooDBAppEmbedCloseReason as bw, type MindooDBAppEmbedClosedEvent as bx, type MindooDBAppEmbedContext as by, type MindooDBAppEmbedDirtyEvent as bz, type MindooDBAppDragStartResult as c, type MindooDBAppSealedChannelOpenResult as c$, type MindooDBAppJsonListDeletePatch as c0, type MindooDBAppJsonListInsertPatch as c1, type MindooDBAppJsonPatch as c2, type MindooDBAppJsonSetPatch as c3, type MindooDBAppJsonTextMarkPatch as c4, type MindooDBAppJsonTextSplicePatch as c5, type MindooDBAppJsonTextUnmarkPatch as c6, type MindooDBAppJsonUnsetPatch as c7, type MindooDBAppLaunchContext as c8, type MindooDBAppListUsersOptions as c9, type MindooDBAppQueryRow as cA, type MindooDBAppQuerySortKey as cB, type MindooDBAppQueryTextClause as cC, type MindooDBAppReadableAttachmentStream as cD, type MindooDBAppRecipientOptions as cE, type MindooDBAppResolvedViewDefinition as cF, type MindooDBAppResolvedViewSource as cG, type MindooDBAppRevisionPhase as cH, type MindooDBAppRevisionVerification as cI, type MindooDBAppRichTextBlockSpan as cJ, type MindooDBAppRichTextGetOptions as cK, type MindooDBAppRichTextImmutableString as cL, type MindooDBAppRichTextMarkRange as cM, type MindooDBAppRichTextMaterializeValue as cN, type MindooDBAppRichTextPatch as cO, type MindooDBAppRichTextScalar as cP, type MindooDBAppRichTextSpliceStep as cQ, type MindooDBAppRichTextStep as cR, type MindooDBAppRichTextStepPatch as cS, type MindooDBAppRichTextTextSpan as cT, type MindooDBAppRuntime as cU, type MindooDBAppScanAttachmentOptions as cV, type MindooDBAppScanAttachmentResult as cW, type MindooDBAppScopedDocId as cX, type MindooDBAppScopedDocumentSummary as cY, type MindooDBAppSealIntent as cZ, type MindooDBAppSealedChannelOpenInput as c_, type MindooDBAppListUsersPage as ca, type MindooDBAppLiveQuerySubscription as cb, type MindooDBAppLocalizedText as cc, type MindooDBAppMenuAnchor as cd, type MindooDBAppMenuApi as ce, type MindooDBAppMenuCommandItem as cf, type MindooDBAppMenuDismissReason as cg, type MindooDBAppMenuDismissedResult as ch, type MindooDBAppMenuItem as ci, type MindooDBAppMenuKind as cj, type MindooDBAppMenuPlacement as ck, type MindooDBAppMenuPointAnchor as cl, type MindooDBAppMenuRect as cm, type MindooDBAppMenuRectAnchor as cn, type MindooDBAppMenuSelectionResult as co, type MindooDBAppMenuSeparatorItem as cp, type MindooDBAppNotificationSeverity as cq, type MindooDBAppNotifyInput as cr, type MindooDBAppNotifyResult as cs, type MindooDBAppProposeAppInput as ct, type MindooDBAppProposeAppResult as cu, type MindooDBAppQueryCoverage as cv, type MindooDBAppQueryInclude as cw, type MindooDBAppQueryIncludeCardinality as cx, type MindooDBAppQueryIncludeSlots as cy, type MindooDBAppQueryResult as cz, type MindooDBAppDragPreview as d, type MindooDBAppSealedChannelRequestInput as d0, type MindooDBAppSession as d1, type MindooDBAppShowMenuInput as d2, type MindooDBAppShowMenuResult as d3, type MindooDBAppSignPreview as d4, type MindooDBAppSignPreviewScope as d5, type MindooDBAppSignStatementInput as d6, type MindooDBAppSignStatementResult as d7, type MindooDBAppStorageApi as d8, type MindooDBAppSummarySetup as d9, type MindooDBAppViewport as dA, type MindooDBAppWellKnownDragType as dB, type MindooDBAppWritableAttachmentStream as dC, mindooDBAppAcceptMatchesType as dD, mindooDBAppComponentFieldsMatch as dE, resolveMindooDBAppDefinitionUrl as dF, resolveMindooDBAppListingAssetUrl as dG, resolveMindooDBAppLocalizedText as dH, validateMindooDBAppAccepts as dI, validateMindooDBAppComponents as dJ, validateMindooDBAppDefinition as dK, type MindooDBAppTextCursorOptions as da, type MindooDBAppTextCursorPosition as db, type MindooDBAppTextCursorPositionsResult as dc, type MindooDBAppTextCursorsResult as dd, type MindooDBAppTextEdit as de, type MindooDBAppTextPatch as df, type MindooDBAppThemeMode as dg, type MindooDBAppTimestampApi as dh, type MindooDBAppTimestampInput as di, type MindooDBAppTimestampProvider as dj, type MindooDBAppTimestampResult as dk, type MindooDBAppUiPreferences as dl, type MindooDBAppUpdateDocumentInput as dm, type MindooDBAppViewCursorDocumentListResult as dn, type MindooDBAppViewCursorResult as dp, type MindooDBAppViewEntry as dq, type MindooDBAppViewEntryKind as dr, type MindooDBAppViewNavigator as ds, type MindooDBAppViewNavigatorExpansionState as dt, type MindooDBAppViewNavigatorOpenOptions as du, type MindooDBAppViewNavigatorPageOptions as dv, type MindooDBAppViewNavigatorPageResult as dw, type MindooDBAppViewNavigatorRangeQuery as dx, type MindooDBAppViewNavigatorSelectionState as dy, type MindooDBAppViewUpdateStats as dz, type MindooDBAppBridge as e, type MindooDBAppAgentToolErrorCode as f, type MindooDBAppAgentTool as g, type MindooDBAppHostShortcutBinding as h, type MindooDBAppHostShortcutAction as i, type MindooDBAppHostingMode as j, type MindooDBAppDefinition as k, type MindooDBAppDatabase as l, type MindooDBAppDocument as m, type MindooDBAppRichTextSpan as n, type MindooDBAppRichTextSnapshot as o, type MindooDBAppCreateDocumentInput as p, MINDOODB_APP_ACCEPTS_MAX as q, MINDOODB_APP_COMPONENTS_MAX as r, MINDOODB_APP_COMPONENT_CONTRACT_PATTERN as s, MINDOODB_APP_DEFINITION_FILE_NAME as t, MINDOODB_APP_DEFINITION_FORMAT as u, MINDOODB_APP_DEFINITION_PERMISSIONS as v, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as w, MINDOODB_APP_DEFINITION_VERSION as x, MINDOODB_APP_LISTING_DESCRIPTION_MAX as y, MINDOODB_APP_LISTING_MAX_SCREENSHOTS as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindoodb-app-sdk",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
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.71"
48
+ "mindoodb": ">=0.0.75"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "@automerge/automerge": {
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@automerge/automerge": "^3.5.0",
60
- "mindoodb": "^0.0.71",
60
+ "mindoodb": "^0.0.75",
61
61
  "@types/node": "25.5.0",
62
62
  "jsdom": "^29.0.1",
63
63
  "tsup": "^8.5.1",