mindoodb-app-sdk 0.0.64 → 0.0.66
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.
- package/README.md +70 -0
- package/TESTING.md +59 -1
- package/dist/{chunk-BE7LLFFE.js → chunk-B3K3I2S2.js} +185 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -1
- package/dist/testing/index.d.ts +138 -3
- package/dist/testing/index.js +1340 -144
- package/dist/{types-BeRUxGKN.d.ts → types-Cuw-0Iou.d.ts} +121 -2
- package/package.json +3 -3
|
@@ -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 {
|
|
@@ -1703,6 +1764,42 @@ interface MindooDBAppEmbed {
|
|
|
1703
1764
|
onClosed(listener: (event: MindooDBAppEmbedClosedEvent) => void): () => void;
|
|
1704
1765
|
/** Settles with the closed event. */
|
|
1705
1766
|
readonly closed: Promise<MindooDBAppEmbedClosedEvent>;
|
|
1767
|
+
/**
|
|
1768
|
+
* Marks this component as the active one of this app's components, e.g. when its
|
|
1769
|
+
* tab comes to the front. When several components of the same app are open (two
|
|
1770
|
+
* text documents side by side), agents reach the active one's tools; the others
|
|
1771
|
+
* keep theirs for when they become active.
|
|
1772
|
+
*/
|
|
1773
|
+
setActive(): Promise<void>;
|
|
1774
|
+
/**
|
|
1775
|
+
* The agent tools the component offers right now (its `document` tools), or null
|
|
1776
|
+
* while it offers none. Its tools reach agents under `prefix`, e.g. `teamedit`.
|
|
1777
|
+
*/
|
|
1778
|
+
readonly agentTools: MindooDBAppEmbedAgentTools | null;
|
|
1779
|
+
/** Called whenever the component's agent tools change. */
|
|
1780
|
+
onAgentToolsChange(listener: (tools: MindooDBAppEmbedAgentTools | null) => void): () => void;
|
|
1781
|
+
/**
|
|
1782
|
+
* Resolves with the component's agent tools once it offers some, e.g. so a host's
|
|
1783
|
+
* "open document" tool can tell the agent which tools to use next; null after
|
|
1784
|
+
* `timeoutMs` (default 10 s) or when the component closes.
|
|
1785
|
+
*/
|
|
1786
|
+
waitForAgentTools(timeoutMs?: number): Promise<MindooDBAppEmbedAgentTools | null>;
|
|
1787
|
+
}
|
|
1788
|
+
/** The agent tools of an embedded component, as its host sees them. */
|
|
1789
|
+
interface MindooDBAppEmbedAgentTools {
|
|
1790
|
+
/** Prefix agents see in front of the tool names, e.g. `teamedit`. */
|
|
1791
|
+
prefix: string;
|
|
1792
|
+
/** Full names as agents see them, e.g. `teamedit_text_insert`. */
|
|
1793
|
+
names: string[];
|
|
1794
|
+
/** Whether this component's tools are the ones agents reach now (the active one of its app). */
|
|
1795
|
+
active: boolean;
|
|
1796
|
+
/** Whether agents may call them (agent tools on in Haven, and allowed for that app). */
|
|
1797
|
+
enabled: boolean;
|
|
1798
|
+
}
|
|
1799
|
+
/** Pushed when an embedded component's agent tools change. */
|
|
1800
|
+
interface MindooDBAppEmbedAgentToolsEvent {
|
|
1801
|
+
embedId: string;
|
|
1802
|
+
agentTools: MindooDBAppEmbedAgentTools | null;
|
|
1706
1803
|
}
|
|
1707
1804
|
/** Components other apps offer (`components` in their haven-app.json). */
|
|
1708
1805
|
interface MindooDBAppComponentsApi {
|
|
@@ -1738,6 +1835,26 @@ interface MindooDBAppEmbeddingApi {
|
|
|
1738
1835
|
* report why it failed. One handler at a time; returns the unregister function.
|
|
1739
1836
|
*/
|
|
1740
1837
|
onSaveRequest(handler: () => void | Promise<void>): () => void;
|
|
1838
|
+
/**
|
|
1839
|
+
* Documents the root may point at through one of the component's `references`
|
|
1840
|
+
* (say the companies a person can belong to), found by Haven in the host's
|
|
1841
|
+
* database: only ones matching the reference's `match`, with only its `show`
|
|
1842
|
+
* fields. `query` searches those fields (case-insensitive substring), `docIds`
|
|
1843
|
+
* fetches given documents (to show the current value). At most `limit` (default
|
|
1844
|
+
* 20, max 100) results.
|
|
1845
|
+
*/
|
|
1846
|
+
lookup(field: string, options?: MindooDBAppEmbeddingLookupOptions): Promise<MindooDBAppEmbeddingLookupResult[]>;
|
|
1847
|
+
}
|
|
1848
|
+
interface MindooDBAppEmbeddingLookupOptions {
|
|
1849
|
+
query?: string;
|
|
1850
|
+
docIds?: string[];
|
|
1851
|
+
limit?: number;
|
|
1852
|
+
}
|
|
1853
|
+
/** A document a reference may point at, as `embedding.lookup` returns it. */
|
|
1854
|
+
interface MindooDBAppEmbeddingLookupResult {
|
|
1855
|
+
docId: string;
|
|
1856
|
+
/** The reference's `show` fields the document has. */
|
|
1857
|
+
fields: Record<string, unknown>;
|
|
1741
1858
|
}
|
|
1742
1859
|
/** Haven → component: the host asked for something (`embed.save()`). */
|
|
1743
1860
|
interface MindooDBAppBridgeEmbeddingRequestMessage {
|
|
@@ -1759,7 +1876,9 @@ interface MindooDBAppBridgeEmbedEventMessage {
|
|
|
1759
1876
|
type: "closed";
|
|
1760
1877
|
} & MindooDBAppEmbedClosedEvent) | ({
|
|
1761
1878
|
type: "dirty";
|
|
1762
|
-
} & MindooDBAppEmbedDirtyEvent)
|
|
1879
|
+
} & MindooDBAppEmbedDirtyEvent) | ({
|
|
1880
|
+
type: "agentTools";
|
|
1881
|
+
} & MindooDBAppEmbedAgentToolsEvent);
|
|
1763
1882
|
}
|
|
1764
1883
|
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
1884
|
/** Placement hint for a host-rendered overlay menu. */
|
|
@@ -3465,4 +3584,4 @@ interface MindooDBAppBridge {
|
|
|
3465
3584
|
connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
|
|
3466
3585
|
}
|
|
3467
3586
|
|
|
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 };
|
|
3587
|
+
export { type MindooDBAppBridgeConnectOptions as $, MINDOODB_APP_SEAL_SIGNING_DOMAIN as A, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as B, type MindooDBAppAcceptSpec as C, type MindooDBAppAccessDecision as D, type MindooDBAppAccessTier as E, type MindooDBAppAgentApi as F, type MindooDBAppAgentRegistration as G, type MindooDBAppAgentTool 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 MindooDBAppJsonSetPatch 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 MindooDBAppEmbeddingLookupResult as bA, type MindooDBAppEmbedsApi as bB, type MindooDBAppEntryAttachmentRef as bC, type MindooDBAppEntryProvenance as bD, type MindooDBAppExtractDocumentTextInput as bE, type MindooDBAppExtractDocumentTextResult as bF, type MindooDBAppExtractTextFormat as bG, type MindooDBAppExtractionSetup as bH, type MindooDBAppFulltextSetup as bI, type MindooDBAppHistoricalDocument as bJ, type MindooDBAppHistoryQuery as bK, type MindooDBAppHostTheme as bL, type MindooDBAppIdentityApi as bM, type MindooDBAppInaccessibleDocument as bN, type MindooDBAppInaccessibleDocumentListQuery as bO, type MindooDBAppInaccessibleDocumentListResult as bP, type MindooDBAppIncomingContent as bQ, type MindooDBAppIncomingContentHandler as bR, type MindooDBAppIncomingContentInfo as bS, type MindooDBAppIncomingItem as bT, type MindooDBAppIncomingItemInfo as bU, type MindooDBAppIncomingResult as bV, type MindooDBAppIncomingSource as bW, type MindooDBAppJsonCounterIncrementPatch as bX, type MindooDBAppJsonListDeletePatch as bY, type MindooDBAppJsonListInsertPatch as bZ, type MindooDBAppJsonPatch 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 MindooDBAppEmbedAgentTools as bq, type MindooDBAppEmbedAgentToolsEvent as br, type MindooDBAppEmbedCloseReason as bs, type MindooDBAppEmbedClosedEvent as bt, type MindooDBAppEmbedContext as bu, type MindooDBAppEmbedDirtyEvent as bv, type MindooDBAppEmbedOpenInput as bw, type MindooDBAppEmbedRect as bx, type MindooDBAppEmbeddingApi as by, type MindooDBAppEmbeddingLookupOptions as bz, type MindooDBAppDragStartResult as c, type MindooDBAppShowMenuResult as c$, type MindooDBAppJsonTextMarkPatch as c0, type MindooDBAppJsonTextSplicePatch as c1, type MindooDBAppJsonTextUnmarkPatch as c2, type MindooDBAppJsonUnsetPatch as c3, type MindooDBAppLaunchContext as c4, type MindooDBAppListUsersOptions as c5, type MindooDBAppListUsersPage as c6, type MindooDBAppLiveQuerySubscription as c7, type MindooDBAppLocalizedText as c8, type MindooDBAppMenuAnchor as c9, type MindooDBAppRecipientOptions as cA, type MindooDBAppResolvedViewDefinition as cB, type MindooDBAppResolvedViewSource as cC, type MindooDBAppRevisionPhase as cD, type MindooDBAppRevisionVerification as cE, type MindooDBAppRichTextBlockSpan as cF, type MindooDBAppRichTextGetOptions as cG, type MindooDBAppRichTextImmutableString as cH, type MindooDBAppRichTextMarkRange as cI, type MindooDBAppRichTextMaterializeValue as cJ, type MindooDBAppRichTextPatch as cK, type MindooDBAppRichTextScalar as cL, type MindooDBAppRichTextSpliceStep as cM, type MindooDBAppRichTextStep as cN, type MindooDBAppRichTextStepPatch as cO, type MindooDBAppRichTextTextSpan as cP, type MindooDBAppRuntime as cQ, type MindooDBAppScanAttachmentOptions as cR, type MindooDBAppScanAttachmentResult as cS, type MindooDBAppScopedDocId as cT, type MindooDBAppScopedDocumentSummary as cU, type MindooDBAppSealIntent as cV, type MindooDBAppSealedChannelOpenInput as cW, type MindooDBAppSealedChannelOpenResult as cX, type MindooDBAppSealedChannelRequestInput as cY, type MindooDBAppSession as cZ, type MindooDBAppShowMenuInput as c_, type MindooDBAppMenuApi as ca, type MindooDBAppMenuCommandItem as cb, type MindooDBAppMenuDismissReason as cc, type MindooDBAppMenuDismissedResult as cd, type MindooDBAppMenuItem as ce, type MindooDBAppMenuKind as cf, type MindooDBAppMenuPlacement as cg, type MindooDBAppMenuPointAnchor as ch, type MindooDBAppMenuRect as ci, type MindooDBAppMenuRectAnchor as cj, type MindooDBAppMenuSelectionResult as ck, type MindooDBAppMenuSeparatorItem as cl, type MindooDBAppNotificationSeverity as cm, type MindooDBAppNotifyInput as cn, type MindooDBAppNotifyResult as co, type MindooDBAppProposeAppInput as cp, type MindooDBAppProposeAppResult as cq, type MindooDBAppQueryCoverage as cr, type MindooDBAppQueryInclude as cs, type MindooDBAppQueryIncludeCardinality as ct, type MindooDBAppQueryIncludeSlots as cu, type MindooDBAppQueryResult as cv, type MindooDBAppQueryRow as cw, type MindooDBAppQuerySortKey as cx, type MindooDBAppQueryTextClause as cy, type MindooDBAppReadableAttachmentStream as cz, type MindooDBAppDragPreview as d, type MindooDBAppSignPreview as d0, type MindooDBAppSignPreviewScope as d1, type MindooDBAppSignStatementInput as d2, type MindooDBAppSignStatementResult as d3, type MindooDBAppStorageApi as d4, type MindooDBAppSummarySetup as d5, type MindooDBAppTextCursorOptions as d6, type MindooDBAppTextCursorPosition as d7, type MindooDBAppTextCursorPositionsResult as d8, type MindooDBAppTextCursorsResult as d9, mindooDBAppComponentFieldsMatch as dA, resolveMindooDBAppDefinitionUrl as dB, resolveMindooDBAppListingAssetUrl as dC, resolveMindooDBAppLocalizedText as dD, validateMindooDBAppAccepts as dE, validateMindooDBAppComponents as dF, validateMindooDBAppDefinition as dG, type MindooDBAppTextEdit as da, type MindooDBAppTextPatch as db, type MindooDBAppThemeMode as dc, type MindooDBAppTimestampApi as dd, type MindooDBAppTimestampInput as de, type MindooDBAppTimestampProvider as df, type MindooDBAppTimestampResult as dg, type MindooDBAppUiPreferences as dh, type MindooDBAppUpdateDocumentInput as di, type MindooDBAppViewCursorDocumentListResult as dj, type MindooDBAppViewCursorResult as dk, type MindooDBAppViewEntry as dl, type MindooDBAppViewEntryKind as dm, type MindooDBAppViewNavigator as dn, type MindooDBAppViewNavigatorExpansionState as dp, type MindooDBAppViewNavigatorOpenOptions as dq, type MindooDBAppViewNavigatorPageOptions as dr, type MindooDBAppViewNavigatorPageResult as ds, type MindooDBAppViewNavigatorRangeQuery as dt, type MindooDBAppViewNavigatorSelectionState as du, type MindooDBAppViewUpdateStats as dv, type MindooDBAppViewport as dw, type MindooDBAppWellKnownDragType as dx, type MindooDBAppWritableAttachmentStream as dy, mindooDBAppAcceptMatchesType as dz, 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_COMPONENT_CONTRACT_PATTERN as r, MINDOODB_APP_DEFINITION_FILE_NAME as s, MINDOODB_APP_DEFINITION_FORMAT as t, MINDOODB_APP_DEFINITION_PERMISSIONS as u, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as v, MINDOODB_APP_DEFINITION_VERSION as w, MINDOODB_APP_LISTING_DESCRIPTION_MAX as x, MINDOODB_APP_LISTING_MAX_SCREENSHOTS as y, MINDOODB_APP_LISTING_SUMMARY_MAX as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mindoodb-app-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
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.
|
|
48
|
+
"mindoodb": ">=0.0.74"
|
|
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.
|
|
60
|
+
"mindoodb": "^0.0.74",
|
|
61
61
|
"@types/node": "25.5.0",
|
|
62
62
|
"jsdom": "^29.0.1",
|
|
63
63
|
"tsup": "^8.5.1",
|