mindoodb-app-sdk 0.0.59 → 0.0.61

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.
@@ -115,6 +115,13 @@ interface MindooDBAppDefinition {
115
115
  * `session.onIncomingContent` with the entry's `id` as `acceptId`.
116
116
  */
117
117
  accepts?: MindooDBAppAcceptSpec[];
118
+ /**
119
+ * Editors this app offers to other apps. A host app (a CRM, a project file) asks
120
+ * Haven for the components that fit a document and shows one embedded in its own
121
+ * page; Haven runs this app in a sandbox that holds only that document and its
122
+ * children. See {@link MindooDBAppComponentSpec}.
123
+ */
124
+ components?: MindooDBAppComponentSpec[];
118
125
  /**
119
126
  * What a person sees before installing: the app's landing page when its URL is
120
127
  * opened directly, and Haven's setup wizard when it arrives through a shared link.
@@ -140,6 +147,47 @@ interface MindooDBAppAcceptSpec {
140
147
  /** Largest total size the app handles; larger deliveries are not offered. */
141
148
  maxBytes?: number;
142
149
  }
150
+ /** What a host may ask a component for. */
151
+ type MindooDBAppComponentIntent = "create" | "edit" | "view";
152
+ /** A plain field value a component matches documents on. */
153
+ type MindooDBAppComponentFieldValue = string | number | boolean;
154
+ /** How a component's child documents point at their root document. */
155
+ interface MindooDBAppComponentChildren {
156
+ /** Top-level field on a child that holds the root document's id, e.g. `parentId`. */
157
+ linkField: string;
158
+ /** Fields every child carries, e.g. `{ "type": "wordChunk" }`. */
159
+ match?: Record<string, MindooDBAppComponentFieldValue>;
160
+ }
161
+ /**
162
+ * An editor this app offers to other apps, declared in `components` of haven-app.json.
163
+ *
164
+ * A component works on one **root document** (the spreadsheet, the Word file) plus,
165
+ * optionally, child documents that point at it through `children.linkField`. The host
166
+ * app owns the root document's database; Haven copies just the root and its children
167
+ * into an in-memory sandbox, hands the sandbox to this app as its only database and
168
+ * writes the changes back. The app cannot see anything else in the host's database,
169
+ * and it may only create documents that are children of the root.
170
+ */
171
+ interface MindooDBAppComponentSpec {
172
+ /** Stable id, unique within the app. Lowercase letters, digits, `-` and `_`. */
173
+ id: string;
174
+ /** Shown in the host's "New" and "Open with" menus, e.g. "Spreadsheet". */
175
+ label: MindooDBAppLocalizedText;
176
+ description?: MindooDBAppLocalizedText;
177
+ /** Icon path relative to the app origin, or an `https:` URL. */
178
+ icon?: string;
179
+ /** What hosts may ask for. `create` makes the component appear under "New". */
180
+ intents: MindooDBAppComponentIntent[];
181
+ /** Top-level fields a root document carries, e.g. `{ "form": "teamgrid" }`. At least one. */
182
+ match: Record<string, MindooDBAppComponentFieldValue>;
183
+ /**
184
+ * Further top-level fields of a new, empty root document (`create` intent). The
185
+ * host writes these plus `match` and then opens the component on it.
186
+ */
187
+ create?: Record<string, unknown>;
188
+ /** Child documents that belong to a root, e.g. the chunks of a Word document. */
189
+ children?: MindooDBAppComponentChildren;
190
+ }
143
191
  /**
144
192
  * Text in one language, or a map from locale (`de`, `fr`, …) to text. A map must carry
145
193
  * `en`, the fallback for every locale it does not name.
@@ -191,6 +239,17 @@ declare function validateMindooDBAppAccepts(value: unknown): {
191
239
  };
192
240
  /** Whether `type` (e.g. `image/png`) matches a pattern like `image/*` or `*\/*`. */
193
241
  declare function mindooDBAppAcceptMatchesType(pattern: string, type: string): boolean;
242
+ declare const MINDOODB_APP_COMPONENTS_MAX = 16;
243
+ /**
244
+ * Validates a `components` list on its own, for hosts that read it from another
245
+ * manifest format (Haven's app store catalog).
246
+ */
247
+ declare function validateMindooDBAppComponents(value: unknown): {
248
+ components: MindooDBAppComponentSpec[] | undefined;
249
+ errors: string[];
250
+ };
251
+ /** Whether every field in `match` has exactly that value in `data`. */
252
+ declare function mindooDBAppComponentFieldsMatch(match: Readonly<Record<string, MindooDBAppComponentFieldValue>>, data: Readonly<Record<string, unknown>> | null | undefined): boolean;
194
253
  /**
195
254
  * Picks the text for `locale` out of a localized value: the exact locale, then its
196
255
  * language (`de` for `de-CH`), then `en`.
@@ -418,6 +477,33 @@ interface MindooDBAppLaunchContext {
418
477
  launchParameters: Record<string, string>;
419
478
  databases: MindooDBAppDatabaseInfo[];
420
479
  views: MindooDBAppResolvedViewDefinition[];
480
+ /**
481
+ * Set when another app embeds this one as a component (see `components` in
482
+ * haven-app.json). The app then has exactly one database, a sandbox holding the
483
+ * document it should open, and should hide navigation that leads elsewhere
484
+ * ("New", "Open"). Absent for ordinary launches.
485
+ */
486
+ embed?: MindooDBAppEmbedContext;
487
+ }
488
+ /** What an embedded component launch is for. */
489
+ interface MindooDBAppEmbedContext {
490
+ embedId: string;
491
+ /** `id` of the component in this app's haven-app.json. */
492
+ componentId: string;
493
+ intent: "edit" | "view";
494
+ /** The sandbox database; also the only entry of `databases`. */
495
+ databaseId: string;
496
+ /** The root document to open. */
497
+ docId: string;
498
+ /** Name of the app that embeds this one, e.g. "CRM". */
499
+ hostAppLabel: string;
500
+ /** Which of the app's own navigation makes sense inside the host. */
501
+ features: {
502
+ /** Creating further root documents. Always false: the host decides what exists. */
503
+ create: boolean;
504
+ /** Opening other documents. Always false: the sandbox only holds this one. */
505
+ open: boolean;
506
+ };
421
507
  }
422
508
  /** Attachment metadata returned by the attachment APIs. */
423
509
  interface MindooDBAppAttachmentInfo {
@@ -1497,7 +1583,136 @@ interface MindooDBAppBridgeIncomingContentMessage {
1497
1583
  kind: "incoming-content";
1498
1584
  content: MindooDBAppIncomingContentInfo;
1499
1585
  }
1500
- type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck | MindooDBAppBridgeShortcutsChangedMessage | MindooDBAppBridgeShortcutInvokedMessage | MindooDBAppBridgeWorkspaceFocusRequestedMessage | MindooDBAppBridgeHostFocusChangedMessage | MindooDBAppBridgeAgentInvokeMessage | MindooDBAppBridgeAgentResultMessage | MindooDBAppBridgeDragOverMessage | MindooDBAppBridgeDragLeaveMessage | MindooDBAppBridgeDragDropMessage | MindooDBAppBridgeIncomingContentMessage;
1586
+ /** A component another app offers, as `session.components.list` returns it. */
1587
+ interface MindooDBAppComponentInfo {
1588
+ /** Opaque key for `session.embeds.open`. */
1589
+ key: string;
1590
+ appInstanceId: string;
1591
+ appId: string;
1592
+ /** Name of the app that provides the component, e.g. "TeamGrid". */
1593
+ appLabel: string;
1594
+ componentId: string;
1595
+ /** Label in the user's language. */
1596
+ label: string;
1597
+ description?: string;
1598
+ /** Absolute icon URL, when the component declares one. */
1599
+ iconUrl?: string;
1600
+ intents: MindooDBAppComponentIntent[];
1601
+ /** Fields a root document for this component carries. */
1602
+ match: Record<string, MindooDBAppComponentFieldValue>;
1603
+ /** All fields of a new, empty root document: `create` plus `match`. */
1604
+ createFields: Record<string, unknown>;
1605
+ children?: MindooDBAppComponentChildren;
1606
+ }
1607
+ /** Filter for `session.components.list`. */
1608
+ interface MindooDBAppComponentQuery {
1609
+ intent?: MindooDBAppComponentIntent;
1610
+ /** Only components whose `match` fits these root document fields. */
1611
+ document?: Record<string, unknown>;
1612
+ }
1613
+ /** Rectangle in the host app's viewport, CSS pixels. */
1614
+ type MindooDBAppEmbedRect = MindooDBAppMenuRect;
1615
+ /** Input of `session.embeds.open`. */
1616
+ interface MindooDBAppEmbedOpenInput {
1617
+ componentKey: string;
1618
+ /** Host database that holds the root document. */
1619
+ databaseId: string;
1620
+ /** Root document; it must match the component's `match` fields. */
1621
+ docId: string;
1622
+ /** Default `edit`. `view` gives the component read access only. */
1623
+ intent?: "edit" | "view";
1624
+ /**
1625
+ * The element to show the component in (recommended). The SDK puts a frame into
1626
+ * it that fills it (`position: absolute; inset: 0`, so give the element a
1627
+ * position), and the component then belongs to this app's page: it scrolls,
1628
+ * clips and stacks with it, and this app's menus and dialogs cover it as usual.
1629
+ * The frame holds a page of Haven's that loads the component, so this app never
1630
+ * reaches into the component or its connection.
1631
+ *
1632
+ * Havens that predate this lay the component over the element instead; the SDK
1633
+ * then keeps the rectangle in step with the element itself.
1634
+ */
1635
+ container?: HTMLElement;
1636
+ /**
1637
+ * Without `container`: where Haven lays the component over this app, in this
1638
+ * app's viewport. Keep it current with `setRect`.
1639
+ */
1640
+ rect?: MindooDBAppEmbedRect;
1641
+ /** Default true. */
1642
+ visible?: boolean;
1643
+ }
1644
+ /** Why an embedded component went away. */
1645
+ type MindooDBAppEmbedCloseReason = "completed" | "cancelled" | "closed" | "error";
1646
+ /** Delivered once when an embedded component closes. */
1647
+ interface MindooDBAppEmbedClosedEvent {
1648
+ embedId: string;
1649
+ reason: MindooDBAppEmbedCloseReason;
1650
+ /** What the component passed to `session.embedding.complete`, as plain JSON. */
1651
+ result?: unknown;
1652
+ message?: string;
1653
+ }
1654
+ /** A component shown inside this app. */
1655
+ interface MindooDBAppEmbed {
1656
+ readonly embedId: string;
1657
+ readonly componentKey: string;
1658
+ readonly databaseId: string;
1659
+ readonly docId: string;
1660
+ /**
1661
+ * `frame`: the component is a frame in `container` and stacks like any element
1662
+ * of this page. `overlay`: Haven lays it over this page, above everything in it,
1663
+ * so hide it (`setVisible(false)`) while a menu or dialog of this app would
1664
+ * overlap it.
1665
+ */
1666
+ readonly placement: "frame" | "overlay";
1667
+ /** The component's frame in `container` (`frame` placement), else null. */
1668
+ readonly frame: HTMLIFrameElement | null;
1669
+ /**
1670
+ * Move or resize; coordinates are in this app's viewport. Not needed with a
1671
+ * `container`, whose rectangle the SDK follows itself.
1672
+ */
1673
+ setRect(rect: MindooDBAppEmbedRect): Promise<void>;
1674
+ /** Hide without closing, e.g. while a dialog of the host covers it. */
1675
+ setVisible(visible: boolean): Promise<void>;
1676
+ /** Let the component save, then close it. Resolves with the closed event. */
1677
+ close(): Promise<MindooDBAppEmbedClosedEvent>;
1678
+ /** Called once when the component closes, whoever closed it. */
1679
+ onClosed(listener: (event: MindooDBAppEmbedClosedEvent) => void): () => void;
1680
+ /** Settles with the closed event. */
1681
+ readonly closed: Promise<MindooDBAppEmbedClosedEvent>;
1682
+ }
1683
+ /** Components other apps offer (`components` in their haven-app.json). */
1684
+ interface MindooDBAppComponentsApi {
1685
+ list(query?: MindooDBAppComponentQuery): Promise<MindooDBAppComponentInfo[]>;
1686
+ }
1687
+ /** Show another app's component inside this app. */
1688
+ interface MindooDBAppEmbedsApi {
1689
+ /**
1690
+ * Shows the component in `container` (or over `rect`). Haven copies the root document and its
1691
+ * children into a sandbox, runs the component against it and writes the changes
1692
+ * back to `databaseId`, which this app must be allowed to read and (for `edit`)
1693
+ * update. The first time, Haven asks the user to allow the pairing.
1694
+ */
1695
+ open(input: MindooDBAppEmbedOpenInput): Promise<MindooDBAppEmbed>;
1696
+ }
1697
+ /** For an app running as an embedded component (check `launchContext.embed`). */
1698
+ interface MindooDBAppEmbeddingApi {
1699
+ /**
1700
+ * Done: Haven closes the component and hands `result` (plain JSON) to the host.
1701
+ * Flush pending writes before calling this.
1702
+ */
1703
+ complete(result?: unknown): Promise<void>;
1704
+ /** Closes without a result, e.g. when the user cancels. */
1705
+ cancel(message?: string): Promise<void>;
1706
+ }
1707
+ /** Host → app: something happened to an embed this app opened. */
1708
+ interface MindooDBAppBridgeEmbedEventMessage {
1709
+ protocol: "mindoodb-app-bridge";
1710
+ kind: "embed-event";
1711
+ event: {
1712
+ type: "closed";
1713
+ } & MindooDBAppEmbedClosedEvent;
1714
+ }
1715
+ type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck | MindooDBAppBridgeShortcutsChangedMessage | MindooDBAppBridgeShortcutInvokedMessage | MindooDBAppBridgeWorkspaceFocusRequestedMessage | MindooDBAppBridgeHostFocusChangedMessage | MindooDBAppBridgeAgentInvokeMessage | MindooDBAppBridgeAgentResultMessage | MindooDBAppBridgeDragOverMessage | MindooDBAppBridgeDragLeaveMessage | MindooDBAppBridgeDragDropMessage | MindooDBAppBridgeIncomingContentMessage | MindooDBAppBridgeEmbedEventMessage;
1501
1716
  /** Placement hint for a host-rendered overlay menu. */
1502
1717
  type MindooDBAppMenuPlacement = "auto" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "right-start" | "left-start";
1503
1718
  /** Semantic hint allowing Haven to tune menu behavior or styling. */
@@ -3091,6 +3306,12 @@ interface MindooDBAppSession {
3091
3306
  */
3092
3307
  proposeApp(input: MindooDBAppProposeAppInput): Promise<MindooDBAppProposeAppResult>;
3093
3308
  menus: MindooDBAppMenuApi;
3309
+ /** Components (embeddable editors) that installed apps offer. */
3310
+ components: MindooDBAppComponentsApi;
3311
+ /** Show another app's component inside this app. */
3312
+ embeds: MindooDBAppEmbedsApi;
3313
+ /** Only meaningful when this launch is itself an embedded component. */
3314
+ embedding: MindooDBAppEmbeddingApi;
3094
3315
  /** Host-owned cross-iframe drag. Iframe-only; copy-only in v1. */
3095
3316
  drag: MindooDBAppDragApi;
3096
3317
  /**
@@ -3195,4 +3416,4 @@ interface MindooDBAppBridge {
3195
3416
  connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
3196
3417
  }
3197
3418
 
3198
- export { type MindooDBAppBridgeDragLeaveMessage as $, type MindooDBAppAcceptSpec as A, type MindooDBAppAccessDecision as B, type MindooDBAppAccessTier as C, type MindooDBAppAgentApi as D, type MindooDBAppAgentRegistration as E, type MindooDBAppAgentTool as F, type MindooDBAppAgentToolAnnotations as G, type MindooDBAppAgentToolDescriptor as H, type MindooDBAppAttachmentApi as I, type MindooDBAppAttachmentChunk as J, type MindooDBAppAttachmentInfo as K, type MindooDBAppAttachmentPreviewOptions as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppAttachmentPreviewSession as N, type MindooDBAppAutomergeChangesPatch as O, type MindooDBAppAutomergeChangesSince as P, type MindooDBAppAutomergeGetOptions as Q, type MindooDBAppAutomergePatchResult as R, type MindooDBAppAutomergeSnapshot as S, type MindooDBAppBridgeAgentInvokeMessage as T, type MindooDBAppBridgeAgentResultMessage as U, type MindooDBAppBridgeBeforeCloseAck as V, type MindooDBAppBridgeBeforeCloseMessage as W, type MindooDBAppBridgeConnectMessage as X, type MindooDBAppBridgeConnectOptions as Y, type MindooDBAppBridgeConnectedMessage as Z, type MindooDBAppBridgeDragDropMessage as _, type MindooDBAppDragBindSourceOptions as a, type MindooDBAppDocumentScanPreset as a$, type MindooDBAppBridgeDragOverMessage as a0, type MindooDBAppBridgeErrorPayload as a1, type MindooDBAppBridgeHandshakeErrorMessage as a2, type MindooDBAppBridgeHostFocusChangedMessage as a3, type MindooDBAppBridgeIncomingContentMessage as a4, type MindooDBAppBridgeLocaleChangedMessage as a5, type MindooDBAppBridgePortMessage as a6, type MindooDBAppBridgeQueryResultMessage as a7, type MindooDBAppBridgeRpcError as a8, type MindooDBAppBridgeRpcMessage as a9, type MindooDBAppConfiguredViewFilterRule as aA, type MindooDBAppConfiguredViewFormulaExpression as aB, type MindooDBAppConfiguredViewFormulaFilterDefinition as aC, type MindooDBAppConfiguredViewPreviewMode as aD, type MindooDBAppConfiguredViewRuleFilterDefinition as aE, type MindooDBAppConfiguredViewRuleMatchMode as aF, type MindooDBAppConfiguredViewRuleOperator as aG, type MindooDBAppConfiguredViewValueExpression as aH, type MindooDBAppCreateKeyInfo as aI, type MindooDBAppCreateViewInput as aJ, type MindooDBAppCreateViewNavigatorInput as aK, type MindooDBAppDatabaseInfo as aL, type MindooDBAppDefinitionDatabase as aM, type MindooDBAppDefinitionListing as aN, type MindooDBAppDefinitionPermission as aO, type MindooDBAppDefinitionRegistrationPermission as aP, type MindooDBAppDefinitionScreenshot as aQ, type MindooDBAppDefinitionValidation as aR, type MindooDBAppDirectoryApi as aS, type MindooDBAppDirectoryEntry as aT, type MindooDBAppDocumentApi as aU, type MindooDBAppDocumentHeadCursorResult as aV, type MindooDBAppDocumentHistoryEntry as aW, type MindooDBAppDocumentListQuery as aX, type MindooDBAppDocumentListResult as aY, type MindooDBAppDocumentQuery as aZ, type MindooDBAppDocumentRevisionId as a_, type MindooDBAppBridgeRpcRequest as aa, type MindooDBAppBridgeRpcSuccess as ab, type MindooDBAppBridgeShortcutInvokedMessage as ac, type MindooDBAppBridgeShortcutsChangedMessage as ad, type MindooDBAppBridgeStreamAbortRequest as ae, type MindooDBAppBridgeStreamAck as af, type MindooDBAppBridgeStreamCloseRequest as ag, type MindooDBAppBridgeStreamError as ah, type MindooDBAppBridgeStreamMessage as ai, type MindooDBAppBridgeStreamOpenResult as aj, type MindooDBAppBridgeStreamReadRequest as ak, type MindooDBAppBridgeStreamWriteRequest as al, type MindooDBAppBridgeThemeChangedMessage as am, type MindooDBAppBridgeUiPreferencesChangedMessage as an, type MindooDBAppBridgeViewChangedMessage as ao, type MindooDBAppBridgeViewportChangedMessage as ap, type MindooDBAppBridgeWorkspaceFocusRequestedMessage as aq, type MindooDBAppBrowserFeatures as ar, type MindooDBAppCapability as as, type MindooDBAppConfiguredViewCategorizationStyle as at, type MindooDBAppConfiguredViewColumn as au, type MindooDBAppConfiguredViewColumnRole as av, type MindooDBAppConfiguredViewExpressionMode as aw, type MindooDBAppConfiguredViewFieldExpression as ax, type MindooDBAppConfiguredViewFilterDefinition as ay, type MindooDBAppConfiguredViewFilterMode as az, type MindooDBAppDragStartInput as b, type MindooDBAppQueryCoverage as b$, type MindooDBAppDocumentSummary as b0, type MindooDBAppDragApi as b1, type MindooDBAppDragCancelReason as b2, type MindooDBAppDragDropEvent as b3, type MindooDBAppDragEffect as b4, type MindooDBAppDragHoverResult as b5, type MindooDBAppDragOffer as b6, type MindooDBAppDragOverEvent as b7, type MindooDBAppDragPointer as b8, type MindooDBAppDragProfile as b9, type MindooDBAppJsonTextMarkPatch as bA, type MindooDBAppJsonTextSplicePatch as bB, type MindooDBAppJsonTextUnmarkPatch as bC, type MindooDBAppJsonUnsetPatch as bD, type MindooDBAppLaunchContext as bE, type MindooDBAppListUsersOptions as bF, type MindooDBAppListUsersPage as bG, type MindooDBAppLiveQuerySubscription as bH, type MindooDBAppLocalizedText as bI, type MindooDBAppMenuAnchor as bJ, type MindooDBAppMenuApi as bK, type MindooDBAppMenuCommandItem as bL, type MindooDBAppMenuDismissReason as bM, type MindooDBAppMenuDismissedResult as bN, type MindooDBAppMenuItem as bO, type MindooDBAppMenuKind as bP, type MindooDBAppMenuPlacement as bQ, type MindooDBAppMenuPointAnchor as bR, type MindooDBAppMenuRect as bS, type MindooDBAppMenuRectAnchor as bT, type MindooDBAppMenuSelectionResult as bU, type MindooDBAppMenuSeparatorItem as bV, type MindooDBAppNotificationSeverity as bW, type MindooDBAppNotifyInput as bX, type MindooDBAppNotifyResult as bY, type MindooDBAppProposeAppInput as bZ, type MindooDBAppProposeAppResult as b_, type MindooDBAppEntryAttachmentRef as ba, type MindooDBAppEntryProvenance as bb, type MindooDBAppExtractDocumentTextInput as bc, type MindooDBAppExtractDocumentTextResult as bd, type MindooDBAppExtractTextFormat as be, type MindooDBAppExtractionSetup as bf, type MindooDBAppFulltextSetup as bg, type MindooDBAppHistoricalDocument as bh, type MindooDBAppHistoryQuery as bi, type MindooDBAppHostTheme as bj, type MindooDBAppIdentityApi as bk, type MindooDBAppInaccessibleDocument as bl, type MindooDBAppInaccessibleDocumentListQuery as bm, type MindooDBAppInaccessibleDocumentListResult as bn, type MindooDBAppIncomingContent as bo, type MindooDBAppIncomingContentHandler as bp, type MindooDBAppIncomingContentInfo as bq, type MindooDBAppIncomingItem as br, type MindooDBAppIncomingItemInfo as bs, type MindooDBAppIncomingResult as bt, type MindooDBAppIncomingSource as bu, type MindooDBAppJsonCounterIncrementPatch as bv, type MindooDBAppJsonListDeletePatch as bw, type MindooDBAppJsonListInsertPatch as bx, type MindooDBAppJsonPatch as by, type MindooDBAppJsonSetPatch as bz, type MindooDBAppDragStartResult as c, type MindooDBAppViewNavigatorPageResult as c$, type MindooDBAppQueryInclude as c0, type MindooDBAppQueryIncludeCardinality as c1, type MindooDBAppQueryIncludeSlots as c2, type MindooDBAppQueryResult as c3, type MindooDBAppQueryRow as c4, type MindooDBAppQuerySortKey as c5, type MindooDBAppQueryTextClause as c6, type MindooDBAppReadableAttachmentStream as c7, type MindooDBAppRecipientOptions as c8, type MindooDBAppResolvedViewDefinition as c9, type MindooDBAppSignPreview as cA, type MindooDBAppSignPreviewScope as cB, type MindooDBAppSignStatementInput as cC, type MindooDBAppSignStatementResult as cD, type MindooDBAppStorageApi as cE, type MindooDBAppSummarySetup as cF, type MindooDBAppTextCursorOptions as cG, type MindooDBAppTextCursorPosition as cH, type MindooDBAppTextCursorPositionsResult as cI, type MindooDBAppTextCursorsResult as cJ, type MindooDBAppTextEdit as cK, type MindooDBAppTextPatch as cL, type MindooDBAppThemeMode as cM, type MindooDBAppTimestampApi as cN, type MindooDBAppTimestampInput as cO, type MindooDBAppTimestampProvider as cP, type MindooDBAppTimestampResult as cQ, type MindooDBAppUiPreferences as cR, type MindooDBAppUpdateDocumentInput as cS, type MindooDBAppViewCursorDocumentListResult as cT, type MindooDBAppViewCursorResult as cU, type MindooDBAppViewEntry as cV, type MindooDBAppViewEntryKind as cW, type MindooDBAppViewNavigator as cX, type MindooDBAppViewNavigatorExpansionState as cY, type MindooDBAppViewNavigatorOpenOptions as cZ, type MindooDBAppViewNavigatorPageOptions as c_, type MindooDBAppResolvedViewSource as ca, type MindooDBAppRevisionPhase as cb, type MindooDBAppRevisionVerification as cc, type MindooDBAppRichTextBlockSpan as cd, type MindooDBAppRichTextGetOptions as ce, type MindooDBAppRichTextImmutableString as cf, type MindooDBAppRichTextMarkRange as cg, type MindooDBAppRichTextMaterializeValue as ch, type MindooDBAppRichTextPatch as ci, type MindooDBAppRichTextScalar as cj, type MindooDBAppRichTextSpliceStep as ck, type MindooDBAppRichTextStep as cl, type MindooDBAppRichTextStepPatch as cm, type MindooDBAppRichTextTextSpan as cn, type MindooDBAppRuntime as co, type MindooDBAppScanAttachmentOptions as cp, type MindooDBAppScanAttachmentResult as cq, type MindooDBAppScopedDocId as cr, type MindooDBAppScopedDocumentSummary as cs, type MindooDBAppSealIntent as ct, type MindooDBAppSealedChannelOpenInput as cu, type MindooDBAppSealedChannelOpenResult as cv, type MindooDBAppSealedChannelRequestInput as cw, type MindooDBAppSession as cx, type MindooDBAppShowMenuInput as cy, type MindooDBAppShowMenuResult as cz, type MindooDBAppDragPreview as d, type MindooDBAppViewNavigatorRangeQuery as d0, type MindooDBAppViewNavigatorSelectionState as d1, type MindooDBAppViewUpdateStats as d2, type MindooDBAppViewport as d3, type MindooDBAppWellKnownDragType as d4, type MindooDBAppWritableAttachmentStream as d5, mindooDBAppAcceptMatchesType as d6, resolveMindooDBAppDefinitionUrl as d7, resolveMindooDBAppListingAssetUrl as d8, resolveMindooDBAppLocalizedText as d9, validateMindooDBAppAccepts as da, validateMindooDBAppDefinition as db, 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_DEFINITION_FILE_NAME as q, MINDOODB_APP_DEFINITION_FORMAT as r, MINDOODB_APP_DEFINITION_PERMISSIONS as s, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as t, MINDOODB_APP_DEFINITION_VERSION as u, MINDOODB_APP_LISTING_DESCRIPTION_MAX as v, MINDOODB_APP_LISTING_MAX_SCREENSHOTS as w, MINDOODB_APP_LISTING_SUMMARY_MAX as x, MINDOODB_APP_SEAL_SIGNING_DOMAIN as y, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as z };
3419
+ 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 MindooDBAppDirectoryApi as a$, type MindooDBAppBridgeDragLeaveMessage as a0, type MindooDBAppBridgeDragOverMessage as a1, type MindooDBAppBridgeEmbedEventMessage as a2, type MindooDBAppBridgeErrorPayload as a3, type MindooDBAppBridgeHandshakeErrorMessage as a4, type MindooDBAppBridgeHostFocusChangedMessage as a5, type MindooDBAppBridgeIncomingContentMessage as a6, type MindooDBAppBridgeLocaleChangedMessage as a7, type MindooDBAppBridgePortMessage as a8, type MindooDBAppBridgeQueryResultMessage as a9, type MindooDBAppComponentSpec as aA, type MindooDBAppComponentsApi as aB, type MindooDBAppConfiguredViewCategorizationStyle as aC, type MindooDBAppConfiguredViewColumn as aD, type MindooDBAppConfiguredViewColumnRole as aE, type MindooDBAppConfiguredViewExpressionMode as aF, type MindooDBAppConfiguredViewFieldExpression as aG, type MindooDBAppConfiguredViewFilterDefinition as aH, type MindooDBAppConfiguredViewFilterMode as aI, type MindooDBAppConfiguredViewFilterRule as aJ, type MindooDBAppConfiguredViewFormulaExpression as aK, type MindooDBAppConfiguredViewFormulaFilterDefinition as aL, type MindooDBAppConfiguredViewPreviewMode as aM, type MindooDBAppConfiguredViewRuleFilterDefinition as aN, type MindooDBAppConfiguredViewRuleMatchMode as aO, type MindooDBAppConfiguredViewRuleOperator as aP, type MindooDBAppConfiguredViewValueExpression as aQ, type MindooDBAppCreateKeyInfo as aR, type MindooDBAppCreateViewInput as aS, type MindooDBAppCreateViewNavigatorInput as aT, type MindooDBAppDatabaseInfo as aU, type MindooDBAppDefinitionDatabase as aV, type MindooDBAppDefinitionListing as aW, type MindooDBAppDefinitionPermission as aX, type MindooDBAppDefinitionRegistrationPermission as aY, type MindooDBAppDefinitionScreenshot as aZ, type MindooDBAppDefinitionValidation as a_, type MindooDBAppBridgeRpcError as aa, type MindooDBAppBridgeRpcMessage as ab, type MindooDBAppBridgeRpcRequest as ac, type MindooDBAppBridgeRpcSuccess as ad, type MindooDBAppBridgeShortcutInvokedMessage as ae, type MindooDBAppBridgeShortcutsChangedMessage as af, type MindooDBAppBridgeStreamAbortRequest as ag, type MindooDBAppBridgeStreamAck as ah, type MindooDBAppBridgeStreamCloseRequest as ai, type MindooDBAppBridgeStreamError as aj, type MindooDBAppBridgeStreamMessage as ak, type MindooDBAppBridgeStreamOpenResult as al, type MindooDBAppBridgeStreamReadRequest as am, type MindooDBAppBridgeStreamWriteRequest as an, type MindooDBAppBridgeThemeChangedMessage as ao, type MindooDBAppBridgeUiPreferencesChangedMessage as ap, type MindooDBAppBridgeViewChangedMessage as aq, type MindooDBAppBridgeViewportChangedMessage as ar, type MindooDBAppBridgeWorkspaceFocusRequestedMessage as as, type MindooDBAppBrowserFeatures as at, type MindooDBAppCapability as au, type MindooDBAppComponentChildren as av, type MindooDBAppComponentFieldValue as aw, type MindooDBAppComponentInfo as ax, type MindooDBAppComponentIntent as ay, type MindooDBAppComponentQuery as az, type MindooDBAppDragStartInput as b, type MindooDBAppMenuApi as b$, type MindooDBAppDirectoryEntry as b0, type MindooDBAppDocumentApi as b1, type MindooDBAppDocumentHeadCursorResult as b2, type MindooDBAppDocumentHistoryEntry as b3, type MindooDBAppDocumentListQuery as b4, type MindooDBAppDocumentListResult as b5, type MindooDBAppDocumentQuery as b6, type MindooDBAppDocumentRevisionId as b7, type MindooDBAppDocumentScanPreset as b8, type MindooDBAppDocumentSummary as b9, type MindooDBAppHostTheme as bA, type MindooDBAppIdentityApi as bB, type MindooDBAppInaccessibleDocument as bC, type MindooDBAppInaccessibleDocumentListQuery as bD, type MindooDBAppInaccessibleDocumentListResult as bE, type MindooDBAppIncomingContent as bF, type MindooDBAppIncomingContentHandler as bG, type MindooDBAppIncomingContentInfo as bH, type MindooDBAppIncomingItem as bI, type MindooDBAppIncomingItemInfo as bJ, type MindooDBAppIncomingResult as bK, type MindooDBAppIncomingSource as bL, type MindooDBAppJsonCounterIncrementPatch as bM, type MindooDBAppJsonListDeletePatch as bN, type MindooDBAppJsonListInsertPatch as bO, type MindooDBAppJsonPatch as bP, type MindooDBAppJsonSetPatch as bQ, type MindooDBAppJsonTextMarkPatch as bR, type MindooDBAppJsonTextSplicePatch as bS, type MindooDBAppJsonTextUnmarkPatch as bT, type MindooDBAppJsonUnsetPatch as bU, type MindooDBAppLaunchContext as bV, type MindooDBAppListUsersOptions as bW, type MindooDBAppListUsersPage as bX, type MindooDBAppLiveQuerySubscription as bY, type MindooDBAppLocalizedText as bZ, type MindooDBAppMenuAnchor as b_, type MindooDBAppDragApi as ba, type MindooDBAppDragCancelReason as bb, type MindooDBAppDragDropEvent as bc, type MindooDBAppDragEffect as bd, type MindooDBAppDragHoverResult as be, type MindooDBAppDragOffer as bf, type MindooDBAppDragOverEvent as bg, type MindooDBAppDragPointer as bh, type MindooDBAppDragProfile as bi, type MindooDBAppEmbed as bj, type MindooDBAppEmbedCloseReason as bk, type MindooDBAppEmbedClosedEvent as bl, type MindooDBAppEmbedContext as bm, type MindooDBAppEmbedOpenInput as bn, type MindooDBAppEmbedRect as bo, type MindooDBAppEmbeddingApi as bp, type MindooDBAppEmbedsApi as bq, type MindooDBAppEntryAttachmentRef as br, type MindooDBAppEntryProvenance as bs, type MindooDBAppExtractDocumentTextInput as bt, type MindooDBAppExtractDocumentTextResult as bu, type MindooDBAppExtractTextFormat as bv, type MindooDBAppExtractionSetup as bw, type MindooDBAppFulltextSetup as bx, type MindooDBAppHistoricalDocument as by, type MindooDBAppHistoryQuery as bz, type MindooDBAppDragStartResult as c, type MindooDBAppTextEdit as c$, type MindooDBAppMenuCommandItem as c0, type MindooDBAppMenuDismissReason as c1, type MindooDBAppMenuDismissedResult as c2, type MindooDBAppMenuItem as c3, type MindooDBAppMenuKind as c4, type MindooDBAppMenuPlacement as c5, type MindooDBAppMenuPointAnchor as c6, type MindooDBAppMenuRect as c7, type MindooDBAppMenuRectAnchor as c8, type MindooDBAppMenuSelectionResult as c9, type MindooDBAppRichTextScalar as cA, type MindooDBAppRichTextSpliceStep as cB, type MindooDBAppRichTextStep as cC, type MindooDBAppRichTextStepPatch as cD, type MindooDBAppRichTextTextSpan as cE, type MindooDBAppRuntime as cF, type MindooDBAppScanAttachmentOptions as cG, type MindooDBAppScanAttachmentResult as cH, type MindooDBAppScopedDocId as cI, type MindooDBAppScopedDocumentSummary as cJ, type MindooDBAppSealIntent as cK, type MindooDBAppSealedChannelOpenInput as cL, type MindooDBAppSealedChannelOpenResult as cM, type MindooDBAppSealedChannelRequestInput as cN, type MindooDBAppSession as cO, type MindooDBAppShowMenuInput as cP, type MindooDBAppShowMenuResult as cQ, type MindooDBAppSignPreview as cR, type MindooDBAppSignPreviewScope as cS, type MindooDBAppSignStatementInput as cT, type MindooDBAppSignStatementResult as cU, type MindooDBAppStorageApi as cV, type MindooDBAppSummarySetup as cW, type MindooDBAppTextCursorOptions as cX, type MindooDBAppTextCursorPosition as cY, type MindooDBAppTextCursorPositionsResult as cZ, type MindooDBAppTextCursorsResult as c_, type MindooDBAppMenuSeparatorItem as ca, type MindooDBAppNotificationSeverity as cb, type MindooDBAppNotifyInput as cc, type MindooDBAppNotifyResult as cd, type MindooDBAppProposeAppInput as ce, type MindooDBAppProposeAppResult as cf, type MindooDBAppQueryCoverage as cg, type MindooDBAppQueryInclude as ch, type MindooDBAppQueryIncludeCardinality as ci, type MindooDBAppQueryIncludeSlots as cj, type MindooDBAppQueryResult as ck, type MindooDBAppQueryRow as cl, type MindooDBAppQuerySortKey as cm, type MindooDBAppQueryTextClause as cn, type MindooDBAppReadableAttachmentStream as co, type MindooDBAppRecipientOptions as cp, type MindooDBAppResolvedViewDefinition as cq, type MindooDBAppResolvedViewSource as cr, type MindooDBAppRevisionPhase as cs, type MindooDBAppRevisionVerification as ct, type MindooDBAppRichTextBlockSpan as cu, type MindooDBAppRichTextGetOptions as cv, type MindooDBAppRichTextImmutableString as cw, type MindooDBAppRichTextMarkRange as cx, type MindooDBAppRichTextMaterializeValue as cy, type MindooDBAppRichTextPatch as cz, type MindooDBAppDragPreview as d, type MindooDBAppTextPatch as d0, type MindooDBAppThemeMode as d1, type MindooDBAppTimestampApi as d2, type MindooDBAppTimestampInput as d3, type MindooDBAppTimestampProvider as d4, type MindooDBAppTimestampResult as d5, type MindooDBAppUiPreferences as d6, type MindooDBAppUpdateDocumentInput as d7, type MindooDBAppViewCursorDocumentListResult as d8, type MindooDBAppViewCursorResult as d9, type MindooDBAppViewEntry as da, type MindooDBAppViewEntryKind as db, type MindooDBAppViewNavigator as dc, type MindooDBAppViewNavigatorExpansionState as dd, type MindooDBAppViewNavigatorOpenOptions as de, type MindooDBAppViewNavigatorPageOptions as df, type MindooDBAppViewNavigatorPageResult as dg, type MindooDBAppViewNavigatorRangeQuery as dh, type MindooDBAppViewNavigatorSelectionState as di, type MindooDBAppViewUpdateStats as dj, type MindooDBAppViewport as dk, type MindooDBAppWellKnownDragType as dl, type MindooDBAppWritableAttachmentStream as dm, mindooDBAppAcceptMatchesType as dn, mindooDBAppComponentFieldsMatch as dp, resolveMindooDBAppDefinitionUrl as dq, resolveMindooDBAppListingAssetUrl as dr, resolveMindooDBAppLocalizedText as ds, validateMindooDBAppAccepts as dt, validateMindooDBAppComponents as du, validateMindooDBAppDefinition as dv, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindoodb-app-sdk",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
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.70"
48
+ "mindoodb": ">=0.0.71"
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.70",
60
+ "mindoodb": "^0.0.71",
61
61
  "@types/node": "25.5.0",
62
62
  "jsdom": "^29.0.1",
63
63
  "tsup": "^8.5.1",