mindoodb-app-sdk 0.0.68 → 0.0.69

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 CHANGED
@@ -687,6 +687,30 @@ Requirements and limits worth knowing before you design around this:
687
687
 
688
688
  There is deliberately no API for decrypting arbitrary data with the user's key. That would be a decryption oracle: doc keys wrapped to the same key are publicly readable in the tenant directory, so an app able to unwrap chosen ciphertext could obtain keys for databases it was never granted.
689
689
 
690
+ ### Signing PDFs with a certificate
691
+
692
+ `session.pdf.sign` signs finished PDF bytes with an X.509 certificate the user picks in Haven, as a PAdES signature that Adobe Acrobat and other readers list as a digital signature. Haven asks for a PKCS#12 file (`.p12`/`.pfx`) and its password, shows holder, issuer and validity, signs, and hands back the signed bytes. The certificate file, the password and the private key never reach your app, and Haven keeps none of them after the dialog: the user chooses the certificate again for every signature.
693
+
694
+ ```ts
695
+ const bytes = await pdfDocument.save();
696
+ const result = await session.pdf.sign({
697
+ pdf: bytes,
698
+ fileName: "Site survey.pdf",
699
+ reason: "Approved",
700
+ visibleSignature: { pageIndex: 0, position: "bottom-right" }, // a proposal; the user can turn it off
701
+ timestamp: true, // RFC 3161 timestamp (PAdES-B-T), also a proposal
702
+ });
703
+ if (!result.ok) {
704
+ // "declined": the user cancelled. "unsupported": older Haven. Not errors.
705
+ return;
706
+ }
707
+ download(result.pdf, "Site survey (signed).pdf");
708
+ ```
709
+
710
+ - Signing is an incremental update: the original bytes stay unchanged and earlier signatures stay valid. Edit the PDF before signing, never after, or the signature breaks.
711
+ - Acrobat shows a green check only for certificates that chain to the Adobe Approved Trust List or that the reader trusts; a self-signed or company certificate shows "validity unknown", which is expected.
712
+ - No capability is needed: nothing is signed without the user choosing a certificate and entering its password in Haven's own dialog.
713
+
690
714
  ### Theme and viewport events
691
715
 
692
716
  Haven pushes two types of live events to your app:
@@ -2142,6 +2166,7 @@ Connect options: `launchId?`, `targetOrigin?`, `connectTimeoutMs?`.
2142
2166
  | `hasHostFocus()` | `Promise<boolean>` |
2143
2167
  | `onHostFocusChange(listener)` | `() => void` (unsubscribe) |
2144
2168
  | `notify(input)` | `Promise<{ id: string }>` |
2169
+ | `pdf.sign(input)` | `Promise<MindooDBAppPdfSignResult>` |
2145
2170
  | `agent?.registerTools(tools)` | `Promise<MindooDBAppAgentRegistration>` |
2146
2171
  | `agent?.setContext(context)` | `Promise<void>` |
2147
2172
  | `agent?.provideFile(data, options)` | `Promise<{ fileRef: string; size: number }>` |
@@ -1977,11 +1977,41 @@ var MindooDBAppIncomingApiImpl = class {
1977
1977
  }
1978
1978
  };
1979
1979
 
1980
+ // src/client/pdf.ts
1981
+ function isUnknownMethod(error) {
1982
+ const code = error?.code;
1983
+ return code === "method-not-found" || code === "unsupported";
1984
+ }
1985
+ var MindooDBAppPdfApiImpl = class {
1986
+ constructor(rpc) {
1987
+ this.rpc = rpc;
1988
+ }
1989
+ rpc;
1990
+ async sign(input) {
1991
+ try {
1992
+ return await this.rpc.call("pdf.sign", {
1993
+ pdf: input.pdf,
1994
+ fileName: input.fileName,
1995
+ reason: input.reason,
1996
+ location: input.location,
1997
+ contactInfo: input.contactInfo,
1998
+ visibleSignature: input.visibleSignature,
1999
+ timestamp: input.timestamp
2000
+ });
2001
+ } catch (error) {
2002
+ if (isUnknownMethod(error)) {
2003
+ return { ok: false, reason: "unsupported" };
2004
+ }
2005
+ throw error;
2006
+ }
2007
+ }
2008
+ };
2009
+
1980
2010
  // src/client/reminders.ts
1981
2011
  function isReminderOpenedMessage(message) {
1982
2012
  return message.kind === "reminder-opened";
1983
2013
  }
1984
- function isUnknownMethod(error) {
2014
+ function isUnknownMethod2(error) {
1985
2015
  const code = error?.code;
1986
2016
  return code === "method-not-found" || code === "unsupported";
1987
2017
  }
@@ -2014,7 +2044,7 @@ var MindooDBAppRemindersApiImpl = class {
2014
2044
  target: request.target
2015
2045
  });
2016
2046
  } catch (error) {
2017
- if (isUnknownMethod(error)) {
2047
+ if (isUnknownMethod2(error)) {
2018
2048
  return { status: "unsupported" };
2019
2049
  }
2020
2050
  throw error;
@@ -2024,7 +2054,7 @@ var MindooDBAppRemindersApiImpl = class {
2024
2054
  try {
2025
2055
  await this.rpc.call("reminders.cancel", { id });
2026
2056
  } catch (error) {
2027
- if (!isUnknownMethod(error)) {
2057
+ if (!isUnknownMethod2(error)) {
2028
2058
  throw error;
2029
2059
  }
2030
2060
  }
@@ -2033,7 +2063,7 @@ var MindooDBAppRemindersApiImpl = class {
2033
2063
  try {
2034
2064
  return await this.rpc.call("reminders.list", {});
2035
2065
  } catch (error) {
2036
- if (isUnknownMethod(error)) {
2066
+ if (isUnknownMethod2(error)) {
2037
2067
  return [];
2038
2068
  }
2039
2069
  throw error;
@@ -3351,6 +3381,7 @@ var MindooDBAppSessionImpl = class {
3351
3381
  this.agent = new MindooDBAppAgentApiImpl(this.rpc);
3352
3382
  this.incoming = new MindooDBAppIncomingApiImpl(this.rpc);
3353
3383
  this.reminders = new MindooDBAppRemindersApiImpl(this.rpc);
3384
+ this.pdf = new MindooDBAppPdfApiImpl(this.rpc);
3354
3385
  this.embedsClient = new MindooDBAppEmbedsClient(this.rpc);
3355
3386
  this.components = this.embedsClient.components;
3356
3387
  this.embeds = this.embedsClient.embeds;
@@ -3420,6 +3451,7 @@ var MindooDBAppSessionImpl = class {
3420
3451
  agent;
3421
3452
  incoming;
3422
3453
  reminders;
3454
+ pdf;
3423
3455
  embedsClient;
3424
3456
  components;
3425
3457
  embeds;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as MindooDBAppAttachmentPreviewMode, a as MindooDBAppDragBindSourceOptions, b as MindooDBAppDragStartInput, c as MindooDBAppDragStartResult, d as MindooDBAppDragPreview, e as MindooDBAppBridge, f as MindooDBAppAgentToolErrorCode, g as MindooDBAppAgentTool, h as MindooDBAppHostShortcutBinding, i as MindooDBAppHostShortcutAction, j as MindooDBAppHostingMode, k as MindooDBAppDefinition, l as MindooDBAppDatabase, m as MindooDBAppDocument, n as MindooDBAppRichTextSpan, o as MindooDBAppRichTextSnapshot, p as MindooDBAppCreateDocumentInput } from './types-BYsO5n5-.js';
2
- export { q as MINDOODB_APP_ACCEPTS_MAX, r as MINDOODB_APP_COMPONENTS_MAX, s as MINDOODB_APP_COMPONENT_CONTRACT_PATTERN, t as MINDOODB_APP_DEFINITION_FILE_NAME, u as MINDOODB_APP_DEFINITION_FORMAT, v as MINDOODB_APP_DEFINITION_PERMISSIONS, w as MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS, x as MINDOODB_APP_DEFINITION_VERSION, y as MINDOODB_APP_LISTING_DESCRIPTION_MAX, z as MINDOODB_APP_LISTING_MAX_SCREENSHOTS, A as MINDOODB_APP_LISTING_SUMMARY_MAX, B as MINDOODB_APP_SEAL_SIGNING_DOMAIN, C as MINDOODB_APP_WELL_KNOWN_DRAG_TYPES, D as MindooDBAppAcceptSpec, E as MindooDBAppAccessDecision, F as MindooDBAppAccessTier, G as MindooDBAppAgentApi, H as MindooDBAppAgentRegistration, I as MindooDBAppAgentToolAnnotations, J as MindooDBAppAgentToolDescriptor, K as MindooDBAppAgentToolScope, L as MindooDBAppAttachmentApi, N as MindooDBAppAttachmentChunk, O as MindooDBAppAttachmentInfo, P as MindooDBAppAttachmentPreviewOptions, Q as MindooDBAppAttachmentPreviewSession, R as MindooDBAppAutomergeChangesPatch, S as MindooDBAppAutomergeChangesSince, T as MindooDBAppAutomergeGetOptions, U as MindooDBAppAutomergePatchResult, V as MindooDBAppAutomergeSnapshot, W as MindooDBAppBridgeAgentInvokeMessage, X as MindooDBAppBridgeAgentResultMessage, Y as MindooDBAppBridgeBeforeCloseAck, Z as MindooDBAppBridgeBeforeCloseMessage, _ as MindooDBAppBridgeConnectMessage, $ as MindooDBAppBridgeConnectOptions, a0 as MindooDBAppBridgeConnectedMessage, a1 as MindooDBAppBridgeDragDropMessage, a2 as MindooDBAppBridgeDragLeaveMessage, a3 as MindooDBAppBridgeDragOverMessage, a4 as MindooDBAppBridgeEmbedEventMessage, a5 as MindooDBAppBridgeEmbeddingRequestMessage, a6 as MindooDBAppBridgeErrorPayload, a7 as MindooDBAppBridgeHandshakeErrorMessage, a8 as MindooDBAppBridgeHostFocusChangedMessage, a9 as MindooDBAppBridgeIncomingContentMessage, aa as MindooDBAppBridgeLocaleChangedMessage, ab as MindooDBAppBridgePortMessage, ac as MindooDBAppBridgeQueryResultMessage, ad as MindooDBAppBridgeReminderOpenedMessage, ae as MindooDBAppBridgeRpcError, af as MindooDBAppBridgeRpcMessage, ag as MindooDBAppBridgeRpcRequest, ah as MindooDBAppBridgeRpcSuccess, ai as MindooDBAppBridgeShortcutInvokedMessage, aj as MindooDBAppBridgeShortcutsChangedMessage, ak as MindooDBAppBridgeStreamAbortRequest, al as MindooDBAppBridgeStreamAck, am as MindooDBAppBridgeStreamCloseRequest, an as MindooDBAppBridgeStreamError, ao as MindooDBAppBridgeStreamMessage, ap as MindooDBAppBridgeStreamOpenResult, aq as MindooDBAppBridgeStreamReadRequest, ar as MindooDBAppBridgeStreamWriteRequest, as as MindooDBAppBridgeThemeChangedMessage, at as MindooDBAppBridgeUiPreferencesChangedMessage, au as MindooDBAppBridgeViewChangedMessage, av as MindooDBAppBridgeViewportChangedMessage, aw as MindooDBAppBridgeWorkspaceFocusRequestedMessage, ax as MindooDBAppBrowserFeatures, ay as MindooDBAppCapability, az as MindooDBAppComponentCategory, aA as MindooDBAppComponentChildren, aB as MindooDBAppComponentContract, aC as MindooDBAppComponentFieldValue, aD as MindooDBAppComponentInfo, aE as MindooDBAppComponentIntent, aF as MindooDBAppComponentQuery, aG as MindooDBAppComponentReference, aH as MindooDBAppComponentSpec, aI as MindooDBAppComponentsApi, aJ as MindooDBAppConfiguredViewCategorizationStyle, aK as MindooDBAppConfiguredViewColumn, aL as MindooDBAppConfiguredViewColumnRole, aM as MindooDBAppConfiguredViewExpressionMode, aN as MindooDBAppConfiguredViewFieldExpression, aO as MindooDBAppConfiguredViewFilterDefinition, aP as MindooDBAppConfiguredViewFilterMode, aQ as MindooDBAppConfiguredViewFilterRule, aR as MindooDBAppConfiguredViewFormulaExpression, aS as MindooDBAppConfiguredViewFormulaFilterDefinition, aT as MindooDBAppConfiguredViewPreviewMode, aU as MindooDBAppConfiguredViewRuleFilterDefinition, aV as MindooDBAppConfiguredViewRuleMatchMode, aW as MindooDBAppConfiguredViewRuleOperator, aX as MindooDBAppConfiguredViewValueExpression, aY as MindooDBAppCreateKeyInfo, aZ as MindooDBAppCreateViewInput, a_ as MindooDBAppCreateViewNavigatorInput, a$ as MindooDBAppDatabaseInfo, b0 as MindooDBAppDefinitionDatabase, b1 as MindooDBAppDefinitionListing, b2 as MindooDBAppDefinitionPermission, b3 as MindooDBAppDefinitionRegistrationPermission, b4 as MindooDBAppDefinitionScreenshot, b5 as MindooDBAppDefinitionValidation, b6 as MindooDBAppDirectoryApi, b7 as MindooDBAppDirectoryEntry, b8 as MindooDBAppDocumentApi, b9 as MindooDBAppDocumentHeadCursorResult, ba as MindooDBAppDocumentHistoryEntry, bb as MindooDBAppDocumentListQuery, bc as MindooDBAppDocumentListResult, bd as MindooDBAppDocumentQuery, be as MindooDBAppDocumentRevisionId, bf as MindooDBAppDocumentScanPreset, bg as MindooDBAppDocumentSummary, bh as MindooDBAppDragApi, bi as MindooDBAppDragCancelReason, bj as MindooDBAppDragDropEvent, bk as MindooDBAppDragEffect, bl as MindooDBAppDragHoverResult, bm as MindooDBAppDragOffer, bn as MindooDBAppDragOverEvent, bo as MindooDBAppDragPointer, bp as MindooDBAppDragProfile, bq as MindooDBAppEmbed, br as MindooDBAppEmbedAccessComponent, bs as MindooDBAppEmbedAccessInput, bt as MindooDBAppEmbedAccessPair, bu as MindooDBAppEmbedAccessResult, bv as MindooDBAppEmbedAgentTools, bw as MindooDBAppEmbedAgentToolsEvent, bx as MindooDBAppEmbedCloseReason, by as MindooDBAppEmbedClosedEvent, bz as MindooDBAppEmbedContext, bA as MindooDBAppEmbedDirtyEvent, bB as MindooDBAppEmbedOpenInput, bC as MindooDBAppEmbedRect, bD as MindooDBAppEmbeddingApi, bE as MindooDBAppEmbeddingLookupOptions, bF as MindooDBAppEmbeddingLookupResult, bG as MindooDBAppEmbedsApi, bH as MindooDBAppEntryAttachmentRef, bI as MindooDBAppEntryProvenance, bJ as MindooDBAppExtractDocumentTextInput, bK as MindooDBAppExtractDocumentTextResult, bL as MindooDBAppExtractTextFormat, bM as MindooDBAppExtractionSetup, bN as MindooDBAppFulltextSetup, bO as MindooDBAppHistoricalDocument, bP as MindooDBAppHistoryQuery, bQ as MindooDBAppHostTheme, bR as MindooDBAppIdentityApi, bS as MindooDBAppInaccessibleDocument, bT as MindooDBAppInaccessibleDocumentListQuery, bU as MindooDBAppInaccessibleDocumentListResult, bV as MindooDBAppIncomingContent, bW as MindooDBAppIncomingContentHandler, bX as MindooDBAppIncomingContentInfo, bY as MindooDBAppIncomingItem, bZ as MindooDBAppIncomingItemInfo, b_ as MindooDBAppIncomingResult, b$ as MindooDBAppIncomingSource, c0 as MindooDBAppJsonCounterIncrementPatch, c1 as MindooDBAppJsonListDeletePatch, c2 as MindooDBAppJsonListInsertPatch, c3 as MindooDBAppJsonPatch, c4 as MindooDBAppJsonSetPatch, c5 as MindooDBAppJsonTextMarkPatch, c6 as MindooDBAppJsonTextSplicePatch, c7 as MindooDBAppJsonTextUnmarkPatch, c8 as MindooDBAppJsonUnsetPatch, c9 as MindooDBAppLaunchContext, ca as MindooDBAppListUsersOptions, cb as MindooDBAppListUsersPage, cc as MindooDBAppLiveQuerySubscription, cd as MindooDBAppLocalizedText, ce as MindooDBAppMenuAnchor, cf as MindooDBAppMenuApi, cg as MindooDBAppMenuCommandItem, ch as MindooDBAppMenuDismissReason, ci as MindooDBAppMenuDismissedResult, cj as MindooDBAppMenuItem, ck as MindooDBAppMenuKind, cl as MindooDBAppMenuPlacement, cm as MindooDBAppMenuPointAnchor, cn as MindooDBAppMenuRect, co as MindooDBAppMenuRectAnchor, cp as MindooDBAppMenuSelectionResult, cq as MindooDBAppMenuSeparatorItem, cr as MindooDBAppNotificationSeverity, cs as MindooDBAppNotifyInput, ct as MindooDBAppNotifyResult, cu as MindooDBAppProposeAppInput, cv as MindooDBAppProposeAppResult, cw as MindooDBAppQueryCoverage, cx as MindooDBAppQueryInclude, cy as MindooDBAppQueryIncludeCardinality, cz as MindooDBAppQueryIncludeSlots, cA as MindooDBAppQueryResult, cB as MindooDBAppQueryRow, cC as MindooDBAppQuerySortKey, cD as MindooDBAppQueryTextClause, cE as MindooDBAppReadableAttachmentStream, cF as MindooDBAppRecipientOptions, cG as MindooDBAppReminder, cH as MindooDBAppReminderOpened, cI as MindooDBAppReminderOpenedHandler, cJ as MindooDBAppReminderRequest, cK as MindooDBAppReminderScheduleResult, cL as MindooDBAppRemindersApi, cM as MindooDBAppResolvedViewDefinition, cN as MindooDBAppResolvedViewSource, cO as MindooDBAppRevisionPhase, cP as MindooDBAppRevisionVerification, cQ as MindooDBAppRichTextBlockSpan, cR as MindooDBAppRichTextGetOptions, cS as MindooDBAppRichTextImmutableString, cT as MindooDBAppRichTextMarkRange, cU as MindooDBAppRichTextMaterializeValue, cV as MindooDBAppRichTextPatch, cW as MindooDBAppRichTextScalar, cX as MindooDBAppRichTextSpliceStep, cY as MindooDBAppRichTextStep, cZ as MindooDBAppRichTextStepPatch, c_ as MindooDBAppRichTextTextSpan, c$ as MindooDBAppRuntime, d0 as MindooDBAppScanAttachmentOptions, d1 as MindooDBAppScanAttachmentResult, d2 as MindooDBAppScopedDocId, d3 as MindooDBAppScopedDocumentSummary, d4 as MindooDBAppSealIntent, d5 as MindooDBAppSealedChannelOpenInput, d6 as MindooDBAppSealedChannelOpenResult, d7 as MindooDBAppSealedChannelRequestInput, d8 as MindooDBAppSession, d9 as MindooDBAppShowMenuInput, da as MindooDBAppShowMenuResult, db as MindooDBAppSignPreview, dc as MindooDBAppSignPreviewScope, dd as MindooDBAppSignStatementInput, de as MindooDBAppSignStatementResult, df as MindooDBAppStorageApi, dg as MindooDBAppSummarySetup, dh as MindooDBAppTextCursorOptions, di as MindooDBAppTextCursorPosition, dj as MindooDBAppTextCursorPositionsResult, dk as MindooDBAppTextCursorsResult, dl as MindooDBAppTextEdit, dm as MindooDBAppTextPatch, dn as MindooDBAppThemeMode, dp as MindooDBAppTimestampApi, dq as MindooDBAppTimestampInput, dr as MindooDBAppTimestampProvider, ds as MindooDBAppTimestampResult, dt as MindooDBAppUiPreferences, du as MindooDBAppUpdateDocumentInput, dv as MindooDBAppViewCursorDocumentListResult, dw as MindooDBAppViewCursorResult, dx as MindooDBAppViewEntry, dy as MindooDBAppViewEntryKind, dz as MindooDBAppViewNavigator, dA as MindooDBAppViewNavigatorExpansionState, dB as MindooDBAppViewNavigatorOpenOptions, dC as MindooDBAppViewNavigatorPageOptions, dD as MindooDBAppViewNavigatorPageResult, dE as MindooDBAppViewNavigatorRangeQuery, dF as MindooDBAppViewNavigatorSelectionState, dG as MindooDBAppViewUpdateStats, dH as MindooDBAppViewport, dI as MindooDBAppWellKnownDragType, dJ as MindooDBAppWritableAttachmentStream, dK as mindooDBAppAcceptMatchesType, dL as mindooDBAppComponentFieldsMatch, dM as resolveMindooDBAppDefinitionUrl, dN as resolveMindooDBAppListingAssetUrl, dO as resolveMindooDBAppLocalizedText, dP as validateMindooDBAppAccepts, dQ as validateMindooDBAppComponents, dR as validateMindooDBAppDefinition } from './types-BYsO5n5-.js';
1
+ import { M as MindooDBAppAttachmentPreviewMode, a as MindooDBAppDragBindSourceOptions, b as MindooDBAppDragStartInput, c as MindooDBAppDragStartResult, d as MindooDBAppDragPreview, e as MindooDBAppBridge, f as MindooDBAppAgentToolErrorCode, g as MindooDBAppAgentTool, h as MindooDBAppHostShortcutBinding, i as MindooDBAppHostShortcutAction, j as MindooDBAppHostingMode, k as MindooDBAppDefinition, l as MindooDBAppDatabase, m as MindooDBAppDocument, n as MindooDBAppRichTextSpan, o as MindooDBAppRichTextSnapshot, p as MindooDBAppCreateDocumentInput } from './types-ERxyAse_.js';
2
+ export { q as MINDOODB_APP_ACCEPTS_MAX, r as MINDOODB_APP_COMPONENTS_MAX, s as MINDOODB_APP_COMPONENT_CONTRACT_PATTERN, t as MINDOODB_APP_DEFINITION_FILE_NAME, u as MINDOODB_APP_DEFINITION_FORMAT, v as MINDOODB_APP_DEFINITION_PERMISSIONS, w as MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS, x as MINDOODB_APP_DEFINITION_VERSION, y as MINDOODB_APP_LISTING_DESCRIPTION_MAX, z as MINDOODB_APP_LISTING_MAX_SCREENSHOTS, A as MINDOODB_APP_LISTING_SUMMARY_MAX, B as MINDOODB_APP_SEAL_SIGNING_DOMAIN, C as MINDOODB_APP_WELL_KNOWN_DRAG_TYPES, D as MindooDBAppAcceptSpec, E as MindooDBAppAccessDecision, F as MindooDBAppAccessTier, G as MindooDBAppAgentApi, H as MindooDBAppAgentRegistration, I as MindooDBAppAgentToolAnnotations, J as MindooDBAppAgentToolDescriptor, K as MindooDBAppAgentToolScope, L as MindooDBAppAttachmentApi, N as MindooDBAppAttachmentChunk, O as MindooDBAppAttachmentInfo, P as MindooDBAppAttachmentPreviewOptions, Q as MindooDBAppAttachmentPreviewSession, R as MindooDBAppAutomergeChangesPatch, S as MindooDBAppAutomergeChangesSince, T as MindooDBAppAutomergeGetOptions, U as MindooDBAppAutomergePatchResult, V as MindooDBAppAutomergeSnapshot, W as MindooDBAppBridgeAgentInvokeMessage, X as MindooDBAppBridgeAgentResultMessage, Y as MindooDBAppBridgeBeforeCloseAck, Z as MindooDBAppBridgeBeforeCloseMessage, _ as MindooDBAppBridgeConnectMessage, $ as MindooDBAppBridgeConnectOptions, a0 as MindooDBAppBridgeConnectedMessage, a1 as MindooDBAppBridgeDragDropMessage, a2 as MindooDBAppBridgeDragLeaveMessage, a3 as MindooDBAppBridgeDragOverMessage, a4 as MindooDBAppBridgeEmbedEventMessage, a5 as MindooDBAppBridgeEmbeddingRequestMessage, a6 as MindooDBAppBridgeErrorPayload, a7 as MindooDBAppBridgeHandshakeErrorMessage, a8 as MindooDBAppBridgeHostFocusChangedMessage, a9 as MindooDBAppBridgeIncomingContentMessage, aa as MindooDBAppBridgeLocaleChangedMessage, ab as MindooDBAppBridgePortMessage, ac as MindooDBAppBridgeQueryResultMessage, ad as MindooDBAppBridgeReminderOpenedMessage, ae as MindooDBAppBridgeRpcError, af as MindooDBAppBridgeRpcMessage, ag as MindooDBAppBridgeRpcRequest, ah as MindooDBAppBridgeRpcSuccess, ai as MindooDBAppBridgeShortcutInvokedMessage, aj as MindooDBAppBridgeShortcutsChangedMessage, ak as MindooDBAppBridgeStreamAbortRequest, al as MindooDBAppBridgeStreamAck, am as MindooDBAppBridgeStreamCloseRequest, an as MindooDBAppBridgeStreamError, ao as MindooDBAppBridgeStreamMessage, ap as MindooDBAppBridgeStreamOpenResult, aq as MindooDBAppBridgeStreamReadRequest, ar as MindooDBAppBridgeStreamWriteRequest, as as MindooDBAppBridgeThemeChangedMessage, at as MindooDBAppBridgeUiPreferencesChangedMessage, au as MindooDBAppBridgeViewChangedMessage, av as MindooDBAppBridgeViewportChangedMessage, aw as MindooDBAppBridgeWorkspaceFocusRequestedMessage, ax as MindooDBAppBrowserFeatures, ay as MindooDBAppCapability, az as MindooDBAppComponentCategory, aA as MindooDBAppComponentChildren, aB as MindooDBAppComponentContract, aC as MindooDBAppComponentFieldValue, aD as MindooDBAppComponentInfo, aE as MindooDBAppComponentIntent, aF as MindooDBAppComponentQuery, aG as MindooDBAppComponentReference, aH as MindooDBAppComponentSpec, aI as MindooDBAppComponentsApi, aJ as MindooDBAppConfiguredViewCategorizationStyle, aK as MindooDBAppConfiguredViewColumn, aL as MindooDBAppConfiguredViewColumnRole, aM as MindooDBAppConfiguredViewExpressionMode, aN as MindooDBAppConfiguredViewFieldExpression, aO as MindooDBAppConfiguredViewFilterDefinition, aP as MindooDBAppConfiguredViewFilterMode, aQ as MindooDBAppConfiguredViewFilterRule, aR as MindooDBAppConfiguredViewFormulaExpression, aS as MindooDBAppConfiguredViewFormulaFilterDefinition, aT as MindooDBAppConfiguredViewPreviewMode, aU as MindooDBAppConfiguredViewRuleFilterDefinition, aV as MindooDBAppConfiguredViewRuleMatchMode, aW as MindooDBAppConfiguredViewRuleOperator, aX as MindooDBAppConfiguredViewValueExpression, aY as MindooDBAppCreateKeyInfo, aZ as MindooDBAppCreateViewInput, a_ as MindooDBAppCreateViewNavigatorInput, a$ as MindooDBAppDatabaseInfo, b0 as MindooDBAppDefinitionDatabase, b1 as MindooDBAppDefinitionListing, b2 as MindooDBAppDefinitionPermission, b3 as MindooDBAppDefinitionRegistrationPermission, b4 as MindooDBAppDefinitionScreenshot, b5 as MindooDBAppDefinitionValidation, b6 as MindooDBAppDirectoryApi, b7 as MindooDBAppDirectoryEntry, b8 as MindooDBAppDocumentApi, b9 as MindooDBAppDocumentHeadCursorResult, ba as MindooDBAppDocumentHistoryEntry, bb as MindooDBAppDocumentListQuery, bc as MindooDBAppDocumentListResult, bd as MindooDBAppDocumentQuery, be as MindooDBAppDocumentRevisionId, bf as MindooDBAppDocumentScanPreset, bg as MindooDBAppDocumentSummary, bh as MindooDBAppDragApi, bi as MindooDBAppDragCancelReason, bj as MindooDBAppDragDropEvent, bk as MindooDBAppDragEffect, bl as MindooDBAppDragHoverResult, bm as MindooDBAppDragOffer, bn as MindooDBAppDragOverEvent, bo as MindooDBAppDragPointer, bp as MindooDBAppDragProfile, bq as MindooDBAppEmbed, br as MindooDBAppEmbedAccessComponent, bs as MindooDBAppEmbedAccessInput, bt as MindooDBAppEmbedAccessPair, bu as MindooDBAppEmbedAccessResult, bv as MindooDBAppEmbedAgentTools, bw as MindooDBAppEmbedAgentToolsEvent, bx as MindooDBAppEmbedCloseReason, by as MindooDBAppEmbedClosedEvent, bz as MindooDBAppEmbedContext, bA as MindooDBAppEmbedDirtyEvent, bB as MindooDBAppEmbedOpenInput, bC as MindooDBAppEmbedRect, bD as MindooDBAppEmbeddingApi, bE as MindooDBAppEmbeddingLookupOptions, bF as MindooDBAppEmbeddingLookupResult, bG as MindooDBAppEmbedsApi, bH as MindooDBAppEntryAttachmentRef, bI as MindooDBAppEntryProvenance, bJ as MindooDBAppExtractDocumentTextInput, bK as MindooDBAppExtractDocumentTextResult, bL as MindooDBAppExtractTextFormat, bM as MindooDBAppExtractionSetup, bN as MindooDBAppFulltextSetup, bO as MindooDBAppHistoricalDocument, bP as MindooDBAppHistoryQuery, bQ as MindooDBAppHostTheme, bR as MindooDBAppIdentityApi, bS as MindooDBAppInaccessibleDocument, bT as MindooDBAppInaccessibleDocumentListQuery, bU as MindooDBAppInaccessibleDocumentListResult, bV as MindooDBAppIncomingContent, bW as MindooDBAppIncomingContentHandler, bX as MindooDBAppIncomingContentInfo, bY as MindooDBAppIncomingItem, bZ as MindooDBAppIncomingItemInfo, b_ as MindooDBAppIncomingResult, b$ as MindooDBAppIncomingSource, c0 as MindooDBAppJsonCounterIncrementPatch, c1 as MindooDBAppJsonListDeletePatch, c2 as MindooDBAppJsonListInsertPatch, c3 as MindooDBAppJsonPatch, c4 as MindooDBAppJsonSetPatch, c5 as MindooDBAppJsonTextMarkPatch, c6 as MindooDBAppJsonTextSplicePatch, c7 as MindooDBAppJsonTextUnmarkPatch, c8 as MindooDBAppJsonUnsetPatch, c9 as MindooDBAppLaunchContext, ca as MindooDBAppListUsersOptions, cb as MindooDBAppListUsersPage, cc as MindooDBAppLiveQuerySubscription, cd as MindooDBAppLocalizedText, ce as MindooDBAppMenuAnchor, cf as MindooDBAppMenuApi, cg as MindooDBAppMenuCommandItem, ch as MindooDBAppMenuDismissReason, ci as MindooDBAppMenuDismissedResult, cj as MindooDBAppMenuItem, ck as MindooDBAppMenuKind, cl as MindooDBAppMenuPlacement, cm as MindooDBAppMenuPointAnchor, cn as MindooDBAppMenuRect, co as MindooDBAppMenuRectAnchor, cp as MindooDBAppMenuSelectionResult, cq as MindooDBAppMenuSeparatorItem, cr as MindooDBAppNotificationSeverity, cs as MindooDBAppNotifyInput, ct as MindooDBAppNotifyResult, cu as MindooDBAppPdfApi, cv as MindooDBAppPdfSignInput, cw as MindooDBAppPdfSignResult, cx as MindooDBAppPdfSignaturePosition, cy as MindooDBAppPdfSigner, cz as MindooDBAppProposeAppInput, cA as MindooDBAppProposeAppResult, cB as MindooDBAppQueryCoverage, cC as MindooDBAppQueryInclude, cD as MindooDBAppQueryIncludeCardinality, cE as MindooDBAppQueryIncludeSlots, cF as MindooDBAppQueryResult, cG as MindooDBAppQueryRow, cH as MindooDBAppQuerySortKey, cI as MindooDBAppQueryTextClause, cJ as MindooDBAppReadableAttachmentStream, cK as MindooDBAppRecipientOptions, cL as MindooDBAppReminder, cM as MindooDBAppReminderOpened, cN as MindooDBAppReminderOpenedHandler, cO as MindooDBAppReminderRequest, cP as MindooDBAppReminderScheduleResult, cQ as MindooDBAppRemindersApi, cR as MindooDBAppResolvedViewDefinition, cS as MindooDBAppResolvedViewSource, cT as MindooDBAppRevisionPhase, cU as MindooDBAppRevisionVerification, cV as MindooDBAppRichTextBlockSpan, cW as MindooDBAppRichTextGetOptions, cX as MindooDBAppRichTextImmutableString, cY as MindooDBAppRichTextMarkRange, cZ as MindooDBAppRichTextMaterializeValue, c_ as MindooDBAppRichTextPatch, c$ as MindooDBAppRichTextScalar, d0 as MindooDBAppRichTextSpliceStep, d1 as MindooDBAppRichTextStep, d2 as MindooDBAppRichTextStepPatch, d3 as MindooDBAppRichTextTextSpan, d4 as MindooDBAppRuntime, d5 as MindooDBAppScanAttachmentOptions, d6 as MindooDBAppScanAttachmentResult, d7 as MindooDBAppScopedDocId, d8 as MindooDBAppScopedDocumentSummary, d9 as MindooDBAppSealIntent, da as MindooDBAppSealedChannelOpenInput, db as MindooDBAppSealedChannelOpenResult, dc as MindooDBAppSealedChannelRequestInput, dd as MindooDBAppSession, de as MindooDBAppShowMenuInput, df as MindooDBAppShowMenuResult, dg as MindooDBAppSignPreview, dh as MindooDBAppSignPreviewScope, di as MindooDBAppSignStatementInput, dj as MindooDBAppSignStatementResult, dk as MindooDBAppStorageApi, dl as MindooDBAppSummarySetup, dm as MindooDBAppTextCursorOptions, dn as MindooDBAppTextCursorPosition, dp as MindooDBAppTextCursorPositionsResult, dq as MindooDBAppTextCursorsResult, dr as MindooDBAppTextEdit, ds as MindooDBAppTextPatch, dt as MindooDBAppThemeMode, du as MindooDBAppTimestampApi, dv as MindooDBAppTimestampInput, dw as MindooDBAppTimestampProvider, dx as MindooDBAppTimestampResult, dy as MindooDBAppUiPreferences, dz as MindooDBAppUpdateDocumentInput, dA as MindooDBAppViewCursorDocumentListResult, dB as MindooDBAppViewCursorResult, dC as MindooDBAppViewEntry, dD as MindooDBAppViewEntryKind, dE as MindooDBAppViewNavigator, dF as MindooDBAppViewNavigatorExpansionState, dG as MindooDBAppViewNavigatorOpenOptions, dH as MindooDBAppViewNavigatorPageOptions, dI as MindooDBAppViewNavigatorPageResult, dJ as MindooDBAppViewNavigatorRangeQuery, dK as MindooDBAppViewNavigatorSelectionState, dL as MindooDBAppViewUpdateStats, dM as MindooDBAppViewport, dN as MindooDBAppWellKnownDragType, dO as MindooDBAppWritableAttachmentStream, dP as mindooDBAppAcceptMatchesType, dQ as mindooDBAppComponentFieldsMatch, dR as resolveMindooDBAppDefinitionUrl, dS as resolveMindooDBAppListingAssetUrl, dT as resolveMindooDBAppLocalizedText, dU as validateMindooDBAppAccepts, dV as validateMindooDBAppComponents, dW as validateMindooDBAppDefinition } from './types-ERxyAse_.js';
3
3
  export { M as MINDOODB_APP_BUNDLE_ARCHIVE_FILE_NAME, a as MINDOODB_APP_BUNDLE_MANIFEST_FILE_NAME, b as MINDOODB_APP_BUNDLE_MANIFEST_FORMAT, c as MINDOODB_APP_BUNDLE_MANIFEST_VERSION, d as MindooDBAppBundleArchive, e as MindooDBAppBundleFileEntry, f as MindooDBAppBundleHash, g as MindooDBAppBundleManifest, h as MindooDBAppBundleManifestValidation, i as buildMindooDBAppBundleContentHashInput, j as isMindooDBAppBundleHash, n as normalizeMindooDBAppBundlePath, v as validateMindooDBAppBundleManifest } from './appBundleManifest-B0xfpaXG.js';
4
4
  import { MindooDBAppBooleanExpression } from 'mindoodb-view-language';
5
5
  export { MindooDBAppBooleanExpression, MindooDBAppExpression, MindooDBAppFilterDefinition, MindooDBAppViewCategoryChildrenPageRequest, MindooDBAppViewColumn, MindooDBAppViewColumnRole, MindooDBAppViewDefinition, MindooDBAppViewExpansionState, MindooDBAppViewExpressionBase, MindooDBAppViewExpressionDatePart, MindooDBAppViewExpressionOperation, MindooDBAppViewFieldExpression, MindooDBAppViewIfExpression, MindooDBAppViewLetExpression, MindooDBAppViewLiteralExpression, MindooDBAppViewLookupByPath, MindooDBAppViewOperationExpression, MindooDBAppViewOriginExpression, MindooDBAppViewPageRequest, MindooDBAppViewPageResult, MindooDBAppViewRow, MindooDBAppViewSortDirection, MindooDBAppViewTotalMode, MindooDBAppViewValueExpressionRef, MindooDBAppViewVariableExpression, createViewLanguage } from 'mindoodb-view-language';
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ import {
48
48
  validateMindooDBAppAccepts,
49
49
  validateMindooDBAppComponents,
50
50
  validateMindooDBAppDefinition
51
- } from "./chunk-44S2R2PT.js";
51
+ } from "./chunk-CPLTKZS3.js";
52
52
  import {
53
53
  MINDOODB_APP_BUNDLE_ARCHIVE_FILE_NAME,
54
54
  MINDOODB_APP_BUNDLE_MANIFEST_FILE_NAME,
@@ -1,4 +1,4 @@
1
- import { aD as MindooDBAppComponentInfo, bC as MindooDBAppEmbedRect, bv as MindooDBAppEmbedAgentTools, bE as MindooDBAppEmbeddingLookupOptions, bF as MindooDBAppEmbeddingLookupResult, bt as MindooDBAppEmbedAccessPair, J as MindooDBAppAgentToolDescriptor, f as MindooDBAppAgentToolErrorCode, X as MindooDBAppBridgeAgentResultMessage, W as MindooDBAppBridgeAgentInvokeMessage, a_ as MindooDBAppCreateViewNavigatorInput, dz as MindooDBAppViewNavigator, ag as MindooDBAppBridgeRpcRequest, bQ as MindooDBAppHostTheme, ay as MindooDBAppCapability, du as MindooDBAppUpdateDocumentInput, m as MindooDBAppDocument, k as MindooDBAppDefinition, L as MindooDBAppAttachmentApi, e as MindooDBAppBridge, d8 as MindooDBAppSession, cu as MindooDBAppProposeAppInput, dH as MindooDBAppViewport, dt as MindooDBAppUiPreferences, cA as MindooDBAppQueryResult, dG as MindooDBAppViewUpdateStats, ab as MindooDBAppBridgePortMessage, a$ as MindooDBAppDatabaseInfo, bs as MindooDBAppEmbedAccessInput, bx as MindooDBAppEmbedCloseReason, a6 as MindooDBAppBridgeErrorPayload, c9 as MindooDBAppLaunchContext, b8 as MindooDBAppDocumentApi, dB as MindooDBAppViewNavigatorOpenOptions, bR as MindooDBAppIdentityApi, dp as MindooDBAppTimestampApi, b6 as MindooDBAppDirectoryApi, bN as MindooDBAppFulltextSetup, bM as MindooDBAppExtractionSetup, dg as MindooDBAppSummarySetup, cv as MindooDBAppProposeAppResult, b$ as MindooDBAppIncomingSource, c as MindooDBAppDragStartResult, bp as MindooDBAppDragProfile, b_ as MindooDBAppIncomingResult, cG as MindooDBAppReminder } from '../types-BYsO5n5-.js';
1
+ import { aD as MindooDBAppComponentInfo, bC as MindooDBAppEmbedRect, bv as MindooDBAppEmbedAgentTools, bE as MindooDBAppEmbeddingLookupOptions, bF as MindooDBAppEmbeddingLookupResult, bt as MindooDBAppEmbedAccessPair, J as MindooDBAppAgentToolDescriptor, f as MindooDBAppAgentToolErrorCode, X as MindooDBAppBridgeAgentResultMessage, W as MindooDBAppBridgeAgentInvokeMessage, a_ as MindooDBAppCreateViewNavigatorInput, dE as MindooDBAppViewNavigator, ag as MindooDBAppBridgeRpcRequest, bQ as MindooDBAppHostTheme, ay as MindooDBAppCapability, dz as MindooDBAppUpdateDocumentInput, m as MindooDBAppDocument, k as MindooDBAppDefinition, L as MindooDBAppAttachmentApi, e as MindooDBAppBridge, dd as MindooDBAppSession, cz as MindooDBAppProposeAppInput, dM as MindooDBAppViewport, dy as MindooDBAppUiPreferences, cF as MindooDBAppQueryResult, dL as MindooDBAppViewUpdateStats, ab as MindooDBAppBridgePortMessage, a$ as MindooDBAppDatabaseInfo, cv as MindooDBAppPdfSignInput, bs as MindooDBAppEmbedAccessInput, bx as MindooDBAppEmbedCloseReason, a6 as MindooDBAppBridgeErrorPayload, c9 as MindooDBAppLaunchContext, b8 as MindooDBAppDocumentApi, dG as MindooDBAppViewNavigatorOpenOptions, bR as MindooDBAppIdentityApi, du as MindooDBAppTimestampApi, b6 as MindooDBAppDirectoryApi, bN as MindooDBAppFulltextSetup, bM as MindooDBAppExtractionSetup, dl as MindooDBAppSummarySetup, cA as MindooDBAppProposeAppResult, b$ as MindooDBAppIncomingSource, c as MindooDBAppDragStartResult, bp as MindooDBAppDragProfile, b_ as MindooDBAppIncomingResult, cL as MindooDBAppReminder } from '../types-ERxyAse_.js';
2
2
  import * as mindoodb from 'mindoodb';
3
3
  import 'mindoodb-view-language';
4
4
 
@@ -442,6 +442,13 @@ type MockDatabaseMethods = {
442
442
  timestamps?: Partial<MindooDBAppTimestampApi>;
443
443
  directory?: Partial<MindooDBAppDirectoryApi>;
444
444
  };
445
+ /**
446
+ * What the mock answers to `session.pdf.sign`: `"signed"` (default) returns the
447
+ * bytes unchanged with a mock signer, as if the user signed — a test host has
448
+ * no certificate, and a fake signature would let a test "verify" something that
449
+ * never held. The other values answer `ok: false` with that reason.
450
+ */
451
+ type MockPdfSignOutcome = "signed" | "declined" | "unsupported" | "invalid";
445
452
  interface MockSeedDocument {
446
453
  id: string;
447
454
  data: Record<string, unknown>;
@@ -638,6 +645,10 @@ interface MockMindooDBAppSessionController {
638
645
  * to `session.reminders.onOpened` (held until registered).
639
646
  */
640
647
  emitReminderOpened(id: string, action?: "open" | "done"): Promise<void>;
648
+ /** Every `session.pdf.sign` request so far, oldest first. */
649
+ getPdfSignRequests(): MindooDBAppPdfSignInput[];
650
+ /** What the next `session.pdf.sign` calls answer; see {@link MockPdfSignOutcome}. */
651
+ setPdfSignOutcome(outcome: MockPdfSignOutcome): void;
641
652
  /** Embeds the app has open (`session.embeds.open`). */
642
653
  listEmbeds(): MockEmbedState[];
643
654
  /** Every `session.embeds.requestAccess` input so far, oldest first. */
@@ -769,6 +780,10 @@ interface FakeBridgeHostController {
769
780
  getDirectoryUsers(): string[];
770
781
  /** See {@link MockMindooDBAppSessionController.applyRemoteUpdate}. */
771
782
  applyRemoteUpdate(databaseId: string, docId: string, input: MindooDBAppUpdateDocumentInput, options?: MockRemoteUpdateOptions): Promise<MindooDBAppDocument>;
783
+ /** Every `session.pdf.sign` request so far, oldest first. */
784
+ getPdfSignRequests(): MindooDBAppPdfSignInput[];
785
+ /** What the next `session.pdf.sign` calls answer; see {@link MockPdfSignOutcome}. */
786
+ setPdfSignOutcome(outcome: MockPdfSignOutcome): void;
772
787
  /** Embeds the app has open (`session.embeds.open`). */
773
788
  listEmbeds(): MockEmbedState[];
774
789
  /** Every `session.embeds.requestAccess` input so far, oldest first. */
@@ -803,4 +818,4 @@ interface FakeBridgeHostController {
803
818
  }
804
819
  declare function createFakeBridgeHost(options?: CreateFakeBridgeHostOptions): FakeBridgeHostController;
805
820
 
806
- export { ALL_CAPABILITIES, type BrowserTestHost, type BrowserTestHostLog, type BrowserTestHostScan, type BrowserTestHostScanMode, type CreateBrowserTestHostOptions, type CreateFakeBridgeHostOptions, type CreateMockMindooDBAppSessionOptions, DEFAULT_TEST_HOST_USERS, type EvaluatingViewDocument, type FakeBridgeHostController, type FakeBridgePortMessageHandler, type FakeBridgeRequestHandler, type FakeBridgeRpcResponse, type MockAgentCall, type MockAgentCallResult, type MockAgentConsent, type MockAgentFile, type MockAgentHost, type MockAgentHostController, type MockAgentHostOptions, type MockDatabaseOverride, type MockDatabasesFromDefinitionOptions, type MockEmbedState, type MockEmbeddingFinish, MockForbiddenError, type MockIncomingContentInput, type MockMindooDBAppDatabaseDefinition, type MockMindooDBAppSessionController, type MockRemoteUpdateOptions, type MockSealedChannelOptions, type MockSeedDocument, type MountHavenTestHostOptions, TEST_HOST_LOCALES, type TestHostUrlSettings, type TestHostUser, type TwoUserTestHost, capabilitiesForDefinitionPermissions, createBrowserTestHost, createEvaluatingViewNavigator, createFakeBridgeHost, createMemoryAttachments, createMockAgentHost, createMockMindooDBAppBridge, createMockMindooDBAppSession, generateDirectoryUsers, loadMindoodbForTesting, mockAgentToolPrefix, mockDatabasesFromDefinition, mockReplicaDifferences, modeSwitch, mountHavenTestHost, mountTwoUserTestHost, previewJson, readTestHostUrlSettings, syncMockReplicas, validateMockAgentTools };
821
+ export { ALL_CAPABILITIES, type BrowserTestHost, type BrowserTestHostLog, type BrowserTestHostScan, type BrowserTestHostScanMode, type CreateBrowserTestHostOptions, type CreateFakeBridgeHostOptions, type CreateMockMindooDBAppSessionOptions, DEFAULT_TEST_HOST_USERS, type EvaluatingViewDocument, type FakeBridgeHostController, type FakeBridgePortMessageHandler, type FakeBridgeRequestHandler, type FakeBridgeRpcResponse, type MockAgentCall, type MockAgentCallResult, type MockAgentConsent, type MockAgentFile, type MockAgentHost, type MockAgentHostController, type MockAgentHostOptions, type MockDatabaseOverride, type MockDatabasesFromDefinitionOptions, type MockEmbedState, type MockEmbeddingFinish, MockForbiddenError, type MockIncomingContentInput, type MockMindooDBAppDatabaseDefinition, type MockMindooDBAppSessionController, type MockPdfSignOutcome, type MockRemoteUpdateOptions, type MockSealedChannelOptions, type MockSeedDocument, type MountHavenTestHostOptions, TEST_HOST_LOCALES, type TestHostUrlSettings, type TestHostUser, type TwoUserTestHost, capabilitiesForDefinitionPermissions, createBrowserTestHost, createEvaluatingViewNavigator, createFakeBridgeHost, createMemoryAttachments, createMockAgentHost, createMockMindooDBAppBridge, createMockMindooDBAppSession, generateDirectoryUsers, loadMindoodbForTesting, mockAgentToolPrefix, mockDatabasesFromDefinition, mockReplicaDifferences, modeSwitch, mountHavenTestHost, mountTwoUserTestHost, previewJson, readTestHostUrlSettings, syncMockReplicas, validateMockAgentTools };
@@ -4,7 +4,7 @@ import {
4
4
  mindooDBAppComponentFieldsMatch,
5
5
  pageUsers,
6
6
  releaseMindooDBAppBridgeSessions
7
- } from "../chunk-44S2R2PT.js";
7
+ } from "../chunk-CPLTKZS3.js";
8
8
 
9
9
  // src/testing/index.ts
10
10
  import * as Automerge from "@automerge/automerge";
@@ -5176,6 +5176,15 @@ function createDatabaseHandle(definition, peers, directoryUsers = () => [], loca
5176
5176
  }
5177
5177
  };
5178
5178
  }
5179
+ var MOCK_PDF_SIGNER = Object.freeze({
5180
+ commonName: "Test Signer",
5181
+ subject: "CN=Test Signer, O=MindooDB test host",
5182
+ issuerCommonName: "Test Signer",
5183
+ validFrom: "2026-01-01T00:00:00.000Z",
5184
+ validTo: "2036-01-01T00:00:00.000Z",
5185
+ fingerprintSha256: "0".repeat(64),
5186
+ selfSigned: true
5187
+ });
5179
5188
  function createMockSessionState(options = {}) {
5180
5189
  let launchContext = createDefaultLaunchContext(options.launchContext);
5181
5190
  const embedHost = createMockEmbedHost(
@@ -5192,6 +5201,8 @@ function createMockSessionState(options = {}) {
5192
5201
  const themeListeners = /* @__PURE__ */ new Set();
5193
5202
  let incomingHandler = null;
5194
5203
  const mockReminders = /* @__PURE__ */ new Map();
5204
+ const pdfSignRequests = [];
5205
+ let pdfSignOutcome = "signed";
5195
5206
  let reminderHandler = null;
5196
5207
  const pendingReminderTaps = [];
5197
5208
  const pendingIncoming = [];
@@ -5589,6 +5600,27 @@ function createMockSessionState(options = {}) {
5589
5600
  };
5590
5601
  }
5591
5602
  },
5603
+ pdf: {
5604
+ async sign(input) {
5605
+ const pdf = input.pdf instanceof Uint8Array ? input.pdf : new Uint8Array(input.pdf);
5606
+ pdfSignRequests.push({ ...input, pdf: pdf.slice() });
5607
+ const header = new TextDecoder("latin1").decode(pdf.subarray(0, 1024));
5608
+ if (!header.includes("%PDF-") || pdf.byteLength > 100 * 1024 * 1024) {
5609
+ return { ok: false, reason: "invalid", message: "Not a PDF, or larger than 100 MB." };
5610
+ }
5611
+ if (pdfSignOutcome !== "signed") {
5612
+ return { ok: false, reason: pdfSignOutcome };
5613
+ }
5614
+ const signedAt = Date.now();
5615
+ return {
5616
+ ok: true,
5617
+ pdf: pdf.slice(),
5618
+ signer: { ...MOCK_PDF_SIGNER },
5619
+ ...input.timestamp === false ? {} : { timestampTime: signedAt },
5620
+ signedAt
5621
+ };
5622
+ }
5623
+ },
5592
5624
  onBeforeClose(listener) {
5593
5625
  beforeCloseListeners.add(listener);
5594
5626
  return () => {
@@ -5688,6 +5720,12 @@ function createMockSessionState(options = {}) {
5688
5720
  listReminders() {
5689
5721
  return [...mockReminders.values()].map((reminder) => ({ ...reminder }));
5690
5722
  },
5723
+ getPdfSignRequests() {
5724
+ return pdfSignRequests.map((request) => ({ ...request }));
5725
+ },
5726
+ setPdfSignOutcome(outcome) {
5727
+ pdfSignOutcome = outcome;
5728
+ },
5691
5729
  async emitReminderOpened(id, action = "open") {
5692
5730
  const reminder = mockReminders.get(id);
5693
5731
  const opened = {
@@ -5892,6 +5930,8 @@ function createMockMindooDBAppSession(options = {}) {
5892
5930
  emitIncomingContent: state.emitIncomingContent,
5893
5931
  listReminders: state.listReminders,
5894
5932
  emitReminderOpened: state.emitReminderOpened,
5933
+ getPdfSignRequests: state.getPdfSignRequests,
5934
+ setPdfSignOutcome: state.setPdfSignOutcome,
5895
5935
  listEmbeds: () => state.embedHost.listEmbeds(),
5896
5936
  getEmbedAccessRequests: () => state.embedHost.getAccessRequests(),
5897
5937
  closeEmbed: (embedId, reason, result) => state.embedHost.closeEmbed(embedId, reason, result),
@@ -6257,6 +6297,8 @@ function createFakeBridgeHost(options = {}) {
6257
6297
  return { ok: true };
6258
6298
  case "apps.propose":
6259
6299
  return await state.session.proposeApp(params);
6300
+ case "pdf.sign":
6301
+ return await state.session.pdf.sign(params);
6260
6302
  case "documents.list":
6261
6303
  return await state.getDatabase(String(params.databaseId)).documents.list(
6262
6304
  params.query
@@ -6847,6 +6889,8 @@ function createFakeBridgeHost(options = {}) {
6847
6889
  setDirectoryUsers: state.setDirectoryUsers,
6848
6890
  getDirectoryUsers: state.getDirectoryUsers,
6849
6891
  applyRemoteUpdate: state.applyRemoteUpdate,
6892
+ getPdfSignRequests: state.getPdfSignRequests,
6893
+ setPdfSignOutcome: state.setPdfSignOutcome,
6850
6894
  listEmbeds: () => state.embedHost.listEmbeds(),
6851
6895
  getEmbedAccessRequests: () => state.embedHost.getAccessRequests(),
6852
6896
  closeEmbed: (embedId, reason, result) => state.embedHost.closeEmbed(embedId, reason, result),
@@ -1719,6 +1719,87 @@ interface MindooDBAppBridgeReminderOpenedMessage {
1719
1719
  kind: "reminder-opened";
1720
1720
  reminder: MindooDBAppReminderOpened;
1721
1721
  }
1722
+ /** Corner of the page for a visible signature stamp, as the viewer displays the page. */
1723
+ type MindooDBAppPdfSignaturePosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
1724
+ /**
1725
+ * Request to sign a PDF with an X.509 certificate the user picks in Haven.
1726
+ *
1727
+ * The app hands over finished PDF bytes; Haven asks the user for a PKCS#12
1728
+ * file (`.p12`/`.pfx`) and its password, shows who the certificate belongs to,
1729
+ * signs and returns the signed bytes. The certificate, password and private
1730
+ * key never reach the app, and Haven keeps none of them after the dialog.
1731
+ */
1732
+ interface MindooDBAppPdfSignInput {
1733
+ /** The complete PDF, e.g. the result of pdf-lib's `save()`. Max. 100 MB. */
1734
+ pdf: Uint8Array;
1735
+ /** Shown in the dialog so the user knows what they sign, e.g. `"Site survey.pdf"`. */
1736
+ fileName?: string;
1737
+ /** Stored in the signature (`/Reason`), e.g. "Approved". Max. 200 characters. */
1738
+ reason?: string;
1739
+ /** Stored in the signature (`/Location`). Max. 200 characters. */
1740
+ location?: string;
1741
+ /** Stored in the signature (`/ContactInfo`). Max. 200 characters. */
1742
+ contactInfo?: string;
1743
+ /**
1744
+ * Proposes a visible stamp (signer name, date, reason) on one page. The user
1745
+ * can turn it off. Omit or pass `false` for a signature that only appears in
1746
+ * the viewer's signature panel.
1747
+ */
1748
+ visibleSignature?: false | {
1749
+ /** Zero-based. @defaultValue 0 */
1750
+ pageIndex?: number;
1751
+ /** @defaultValue "bottom-right" */
1752
+ position?: MindooDBAppPdfSignaturePosition;
1753
+ };
1754
+ /**
1755
+ * Proposes an RFC 3161 timestamp from a trusted authority (PAdES-B-T), so the
1756
+ * signing time is evidence rather than the device's clock. The user can turn
1757
+ * it off. @defaultValue true
1758
+ */
1759
+ timestamp?: boolean;
1760
+ }
1761
+ /** The certificate a PDF was signed with, for display. */
1762
+ interface MindooDBAppPdfSigner {
1763
+ commonName: string;
1764
+ /** Subject as `CN=…, O=…, C=…`. */
1765
+ subject: string;
1766
+ issuerCommonName: string;
1767
+ /** ISO 8601. */
1768
+ validFrom: string;
1769
+ validTo: string;
1770
+ /** Lower-case hex SHA-256 of the certificate. */
1771
+ fingerprintSha256: string;
1772
+ selfSigned: boolean;
1773
+ }
1774
+ /**
1775
+ * Outcome of {@link MindooDBAppPdfApi.sign}. Declining is an ordinary outcome:
1776
+ * `declined` when the user cancelled, `unsupported` when the host cannot sign
1777
+ * PDFs (older Haven), `invalid` when the request broke a limit or the bytes are
1778
+ * not a signable PDF (`message` says which).
1779
+ */
1780
+ type MindooDBAppPdfSignResult = {
1781
+ ok: true;
1782
+ /** The original bytes followed by one signature revision (incremental update). */
1783
+ pdf: Uint8Array;
1784
+ signer: MindooDBAppPdfSigner;
1785
+ /** Time from the timestamp authority, epoch ms, when the user kept the timestamp. */
1786
+ timestampTime?: number;
1787
+ /** Client wall-clock at signing. Not evidence — the timestamp is. */
1788
+ signedAt: number;
1789
+ } | {
1790
+ ok: false;
1791
+ reason: "declined" | "unsupported" | "invalid";
1792
+ message?: string;
1793
+ };
1794
+ /** `session.pdf`: PDF services that need the user, performed by Haven. */
1795
+ interface MindooDBAppPdfApi {
1796
+ /**
1797
+ * Sign a PDF with a certificate the user chooses (PAdES, recognised by Adobe
1798
+ * Acrobat and other readers). Opens a Haven dialog; resolves once the user
1799
+ * signed or cancelled.
1800
+ */
1801
+ sign(input: MindooDBAppPdfSignInput): Promise<MindooDBAppPdfSignResult>;
1802
+ }
1722
1803
  /** A component another app offers, as `session.components.list` returns it. */
1723
1804
  interface MindooDBAppComponentInfo {
1724
1805
  /** Opaque key for `session.embeds.open`. */
@@ -3651,6 +3732,8 @@ interface MindooDBAppSession {
3651
3732
  * elsewhere). See {@link MindooDBAppRemindersApi}.
3652
3733
  */
3653
3734
  reminders: MindooDBAppRemindersApi;
3735
+ /** PDF services that need the user, such as signing with a certificate. */
3736
+ pdf: MindooDBAppPdfApi;
3654
3737
  /**
3655
3738
  * Run work before the host tears this launch down, e.g. flushing buffered writes.
3656
3739
  *
@@ -3713,4 +3796,4 @@ interface MindooDBAppBridge {
3713
3796
  connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
3714
3797
  }
3715
3798
 
3716
- 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 MindooDBAppDatabaseInfo 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 MindooDBAppComponentChildren as aA, type MindooDBAppComponentContract as aB, type MindooDBAppComponentFieldValue as aC, type MindooDBAppComponentInfo as aD, type MindooDBAppComponentIntent as aE, type MindooDBAppComponentQuery as aF, type MindooDBAppComponentReference as aG, type MindooDBAppComponentSpec as aH, type MindooDBAppComponentsApi as aI, type MindooDBAppConfiguredViewCategorizationStyle as aJ, type MindooDBAppConfiguredViewColumn as aK, type MindooDBAppConfiguredViewColumnRole as aL, type MindooDBAppConfiguredViewExpressionMode as aM, type MindooDBAppConfiguredViewFieldExpression as aN, type MindooDBAppConfiguredViewFilterDefinition as aO, type MindooDBAppConfiguredViewFilterMode as aP, type MindooDBAppConfiguredViewFilterRule as aQ, type MindooDBAppConfiguredViewFormulaExpression as aR, type MindooDBAppConfiguredViewFormulaFilterDefinition as aS, type MindooDBAppConfiguredViewPreviewMode as aT, type MindooDBAppConfiguredViewRuleFilterDefinition as aU, type MindooDBAppConfiguredViewRuleMatchMode as aV, type MindooDBAppConfiguredViewRuleOperator as aW, type MindooDBAppConfiguredViewValueExpression as aX, type MindooDBAppCreateKeyInfo as aY, type MindooDBAppCreateViewInput as aZ, type MindooDBAppCreateViewNavigatorInput as a_, type MindooDBAppBridgeLocaleChangedMessage as aa, type MindooDBAppBridgePortMessage as ab, type MindooDBAppBridgeQueryResultMessage as ac, type MindooDBAppBridgeReminderOpenedMessage as ad, type MindooDBAppBridgeRpcError as ae, type MindooDBAppBridgeRpcMessage as af, type MindooDBAppBridgeRpcRequest as ag, type MindooDBAppBridgeRpcSuccess as ah, type MindooDBAppBridgeShortcutInvokedMessage as ai, type MindooDBAppBridgeShortcutsChangedMessage as aj, type MindooDBAppBridgeStreamAbortRequest as ak, type MindooDBAppBridgeStreamAck as al, type MindooDBAppBridgeStreamCloseRequest as am, type MindooDBAppBridgeStreamError as an, type MindooDBAppBridgeStreamMessage as ao, type MindooDBAppBridgeStreamOpenResult as ap, type MindooDBAppBridgeStreamReadRequest as aq, type MindooDBAppBridgeStreamWriteRequest as ar, type MindooDBAppBridgeThemeChangedMessage as as, type MindooDBAppBridgeUiPreferencesChangedMessage as at, type MindooDBAppBridgeViewChangedMessage as au, type MindooDBAppBridgeViewportChangedMessage as av, type MindooDBAppBridgeWorkspaceFocusRequestedMessage as aw, type MindooDBAppBrowserFeatures as ax, type MindooDBAppCapability as ay, type MindooDBAppComponentCategory as az, type MindooDBAppDragStartInput as b, type MindooDBAppIncomingSource as b$, type MindooDBAppDefinitionDatabase as b0, type MindooDBAppDefinitionListing as b1, type MindooDBAppDefinitionPermission as b2, type MindooDBAppDefinitionRegistrationPermission as b3, type MindooDBAppDefinitionScreenshot as b4, type MindooDBAppDefinitionValidation as b5, type MindooDBAppDirectoryApi as b6, type MindooDBAppDirectoryEntry as b7, type MindooDBAppDocumentApi as b8, type MindooDBAppDocumentHeadCursorResult as b9, type MindooDBAppEmbedDirtyEvent as bA, type MindooDBAppEmbedOpenInput as bB, type MindooDBAppEmbedRect as bC, type MindooDBAppEmbeddingApi as bD, type MindooDBAppEmbeddingLookupOptions as bE, type MindooDBAppEmbeddingLookupResult as bF, type MindooDBAppEmbedsApi as bG, type MindooDBAppEntryAttachmentRef as bH, type MindooDBAppEntryProvenance as bI, type MindooDBAppExtractDocumentTextInput as bJ, type MindooDBAppExtractDocumentTextResult as bK, type MindooDBAppExtractTextFormat as bL, type MindooDBAppExtractionSetup as bM, type MindooDBAppFulltextSetup as bN, type MindooDBAppHistoricalDocument as bO, type MindooDBAppHistoryQuery as bP, type MindooDBAppHostTheme as bQ, type MindooDBAppIdentityApi as bR, type MindooDBAppInaccessibleDocument as bS, type MindooDBAppInaccessibleDocumentListQuery as bT, type MindooDBAppInaccessibleDocumentListResult as bU, type MindooDBAppIncomingContent as bV, type MindooDBAppIncomingContentHandler as bW, type MindooDBAppIncomingContentInfo as bX, type MindooDBAppIncomingItem as bY, type MindooDBAppIncomingItemInfo as bZ, type MindooDBAppIncomingResult as b_, type MindooDBAppDocumentHistoryEntry as ba, type MindooDBAppDocumentListQuery as bb, type MindooDBAppDocumentListResult as bc, type MindooDBAppDocumentQuery as bd, type MindooDBAppDocumentRevisionId as be, type MindooDBAppDocumentScanPreset as bf, type MindooDBAppDocumentSummary as bg, type MindooDBAppDragApi as bh, type MindooDBAppDragCancelReason as bi, type MindooDBAppDragDropEvent as bj, type MindooDBAppDragEffect as bk, type MindooDBAppDragHoverResult as bl, type MindooDBAppDragOffer as bm, type MindooDBAppDragOverEvent as bn, type MindooDBAppDragPointer as bo, type MindooDBAppDragProfile as bp, type MindooDBAppEmbed as bq, type MindooDBAppEmbedAccessComponent as br, type MindooDBAppEmbedAccessInput as bs, type MindooDBAppEmbedAccessPair as bt, type MindooDBAppEmbedAccessResult as bu, type MindooDBAppEmbedAgentTools as bv, type MindooDBAppEmbedAgentToolsEvent as bw, type MindooDBAppEmbedCloseReason as bx, type MindooDBAppEmbedClosedEvent as by, type MindooDBAppEmbedContext as bz, type MindooDBAppDragStartResult as c, type MindooDBAppRuntime as c$, type MindooDBAppJsonCounterIncrementPatch as c0, type MindooDBAppJsonListDeletePatch as c1, type MindooDBAppJsonListInsertPatch as c2, type MindooDBAppJsonPatch as c3, type MindooDBAppJsonSetPatch as c4, type MindooDBAppJsonTextMarkPatch as c5, type MindooDBAppJsonTextSplicePatch as c6, type MindooDBAppJsonTextUnmarkPatch as c7, type MindooDBAppJsonUnsetPatch as c8, type MindooDBAppLaunchContext as c9, type MindooDBAppQueryResult as cA, type MindooDBAppQueryRow as cB, type MindooDBAppQuerySortKey as cC, type MindooDBAppQueryTextClause as cD, type MindooDBAppReadableAttachmentStream as cE, type MindooDBAppRecipientOptions as cF, type MindooDBAppReminder as cG, type MindooDBAppReminderOpened as cH, type MindooDBAppReminderOpenedHandler as cI, type MindooDBAppReminderRequest as cJ, type MindooDBAppReminderScheduleResult as cK, type MindooDBAppRemindersApi as cL, type MindooDBAppResolvedViewDefinition as cM, type MindooDBAppResolvedViewSource as cN, type MindooDBAppRevisionPhase as cO, type MindooDBAppRevisionVerification as cP, type MindooDBAppRichTextBlockSpan as cQ, type MindooDBAppRichTextGetOptions as cR, type MindooDBAppRichTextImmutableString as cS, type MindooDBAppRichTextMarkRange as cT, type MindooDBAppRichTextMaterializeValue as cU, type MindooDBAppRichTextPatch as cV, type MindooDBAppRichTextScalar as cW, type MindooDBAppRichTextSpliceStep as cX, type MindooDBAppRichTextStep as cY, type MindooDBAppRichTextStepPatch as cZ, type MindooDBAppRichTextTextSpan as c_, type MindooDBAppListUsersOptions as ca, type MindooDBAppListUsersPage as cb, type MindooDBAppLiveQuerySubscription as cc, type MindooDBAppLocalizedText as cd, type MindooDBAppMenuAnchor as ce, type MindooDBAppMenuApi as cf, type MindooDBAppMenuCommandItem as cg, type MindooDBAppMenuDismissReason as ch, type MindooDBAppMenuDismissedResult as ci, type MindooDBAppMenuItem as cj, type MindooDBAppMenuKind as ck, type MindooDBAppMenuPlacement as cl, type MindooDBAppMenuPointAnchor as cm, type MindooDBAppMenuRect as cn, type MindooDBAppMenuRectAnchor as co, type MindooDBAppMenuSelectionResult as cp, type MindooDBAppMenuSeparatorItem as cq, type MindooDBAppNotificationSeverity as cr, type MindooDBAppNotifyInput as cs, type MindooDBAppNotifyResult as ct, type MindooDBAppProposeAppInput as cu, type MindooDBAppProposeAppResult as cv, type MindooDBAppQueryCoverage as cw, type MindooDBAppQueryInclude as cx, type MindooDBAppQueryIncludeCardinality as cy, type MindooDBAppQueryIncludeSlots as cz, type MindooDBAppDragPreview as d, type MindooDBAppScanAttachmentOptions as d0, type MindooDBAppScanAttachmentResult as d1, type MindooDBAppScopedDocId as d2, type MindooDBAppScopedDocumentSummary as d3, type MindooDBAppSealIntent as d4, type MindooDBAppSealedChannelOpenInput as d5, type MindooDBAppSealedChannelOpenResult as d6, type MindooDBAppSealedChannelRequestInput as d7, type MindooDBAppSession as d8, type MindooDBAppShowMenuInput as d9, type MindooDBAppViewNavigatorExpansionState as dA, type MindooDBAppViewNavigatorOpenOptions as dB, type MindooDBAppViewNavigatorPageOptions as dC, type MindooDBAppViewNavigatorPageResult as dD, type MindooDBAppViewNavigatorRangeQuery as dE, type MindooDBAppViewNavigatorSelectionState as dF, type MindooDBAppViewUpdateStats as dG, type MindooDBAppViewport as dH, type MindooDBAppWellKnownDragType as dI, type MindooDBAppWritableAttachmentStream as dJ, mindooDBAppAcceptMatchesType as dK, mindooDBAppComponentFieldsMatch as dL, resolveMindooDBAppDefinitionUrl as dM, resolveMindooDBAppListingAssetUrl as dN, resolveMindooDBAppLocalizedText as dO, validateMindooDBAppAccepts as dP, validateMindooDBAppComponents as dQ, validateMindooDBAppDefinition as dR, type MindooDBAppShowMenuResult as da, type MindooDBAppSignPreview as db, type MindooDBAppSignPreviewScope as dc, type MindooDBAppSignStatementInput as dd, type MindooDBAppSignStatementResult as de, type MindooDBAppStorageApi as df, type MindooDBAppSummarySetup as dg, type MindooDBAppTextCursorOptions as dh, type MindooDBAppTextCursorPosition as di, type MindooDBAppTextCursorPositionsResult as dj, type MindooDBAppTextCursorsResult as dk, type MindooDBAppTextEdit as dl, type MindooDBAppTextPatch as dm, type MindooDBAppThemeMode as dn, type MindooDBAppTimestampApi as dp, type MindooDBAppTimestampInput as dq, type MindooDBAppTimestampProvider as dr, type MindooDBAppTimestampResult as ds, type MindooDBAppUiPreferences as dt, type MindooDBAppUpdateDocumentInput as du, type MindooDBAppViewCursorDocumentListResult as dv, type MindooDBAppViewCursorResult as dw, type MindooDBAppViewEntry as dx, type MindooDBAppViewEntryKind as dy, type MindooDBAppViewNavigator 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 };
3799
+ 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 MindooDBAppDatabaseInfo 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 MindooDBAppComponentChildren as aA, type MindooDBAppComponentContract as aB, type MindooDBAppComponentFieldValue as aC, type MindooDBAppComponentInfo as aD, type MindooDBAppComponentIntent as aE, type MindooDBAppComponentQuery as aF, type MindooDBAppComponentReference as aG, type MindooDBAppComponentSpec as aH, type MindooDBAppComponentsApi as aI, type MindooDBAppConfiguredViewCategorizationStyle as aJ, type MindooDBAppConfiguredViewColumn as aK, type MindooDBAppConfiguredViewColumnRole as aL, type MindooDBAppConfiguredViewExpressionMode as aM, type MindooDBAppConfiguredViewFieldExpression as aN, type MindooDBAppConfiguredViewFilterDefinition as aO, type MindooDBAppConfiguredViewFilterMode as aP, type MindooDBAppConfiguredViewFilterRule as aQ, type MindooDBAppConfiguredViewFormulaExpression as aR, type MindooDBAppConfiguredViewFormulaFilterDefinition as aS, type MindooDBAppConfiguredViewPreviewMode as aT, type MindooDBAppConfiguredViewRuleFilterDefinition as aU, type MindooDBAppConfiguredViewRuleMatchMode as aV, type MindooDBAppConfiguredViewRuleOperator as aW, type MindooDBAppConfiguredViewValueExpression as aX, type MindooDBAppCreateKeyInfo as aY, type MindooDBAppCreateViewInput as aZ, type MindooDBAppCreateViewNavigatorInput as a_, type MindooDBAppBridgeLocaleChangedMessage as aa, type MindooDBAppBridgePortMessage as ab, type MindooDBAppBridgeQueryResultMessage as ac, type MindooDBAppBridgeReminderOpenedMessage as ad, type MindooDBAppBridgeRpcError as ae, type MindooDBAppBridgeRpcMessage as af, type MindooDBAppBridgeRpcRequest as ag, type MindooDBAppBridgeRpcSuccess as ah, type MindooDBAppBridgeShortcutInvokedMessage as ai, type MindooDBAppBridgeShortcutsChangedMessage as aj, type MindooDBAppBridgeStreamAbortRequest as ak, type MindooDBAppBridgeStreamAck as al, type MindooDBAppBridgeStreamCloseRequest as am, type MindooDBAppBridgeStreamError as an, type MindooDBAppBridgeStreamMessage as ao, type MindooDBAppBridgeStreamOpenResult as ap, type MindooDBAppBridgeStreamReadRequest as aq, type MindooDBAppBridgeStreamWriteRequest as ar, type MindooDBAppBridgeThemeChangedMessage as as, type MindooDBAppBridgeUiPreferencesChangedMessage as at, type MindooDBAppBridgeViewChangedMessage as au, type MindooDBAppBridgeViewportChangedMessage as av, type MindooDBAppBridgeWorkspaceFocusRequestedMessage as aw, type MindooDBAppBrowserFeatures as ax, type MindooDBAppCapability as ay, type MindooDBAppComponentCategory as az, type MindooDBAppDragStartInput as b, type MindooDBAppIncomingSource as b$, type MindooDBAppDefinitionDatabase as b0, type MindooDBAppDefinitionListing as b1, type MindooDBAppDefinitionPermission as b2, type MindooDBAppDefinitionRegistrationPermission as b3, type MindooDBAppDefinitionScreenshot as b4, type MindooDBAppDefinitionValidation as b5, type MindooDBAppDirectoryApi as b6, type MindooDBAppDirectoryEntry as b7, type MindooDBAppDocumentApi as b8, type MindooDBAppDocumentHeadCursorResult as b9, type MindooDBAppEmbedDirtyEvent as bA, type MindooDBAppEmbedOpenInput as bB, type MindooDBAppEmbedRect as bC, type MindooDBAppEmbeddingApi as bD, type MindooDBAppEmbeddingLookupOptions as bE, type MindooDBAppEmbeddingLookupResult as bF, type MindooDBAppEmbedsApi as bG, type MindooDBAppEntryAttachmentRef as bH, type MindooDBAppEntryProvenance as bI, type MindooDBAppExtractDocumentTextInput as bJ, type MindooDBAppExtractDocumentTextResult as bK, type MindooDBAppExtractTextFormat as bL, type MindooDBAppExtractionSetup as bM, type MindooDBAppFulltextSetup as bN, type MindooDBAppHistoricalDocument as bO, type MindooDBAppHistoryQuery as bP, type MindooDBAppHostTheme as bQ, type MindooDBAppIdentityApi as bR, type MindooDBAppInaccessibleDocument as bS, type MindooDBAppInaccessibleDocumentListQuery as bT, type MindooDBAppInaccessibleDocumentListResult as bU, type MindooDBAppIncomingContent as bV, type MindooDBAppIncomingContentHandler as bW, type MindooDBAppIncomingContentInfo as bX, type MindooDBAppIncomingItem as bY, type MindooDBAppIncomingItemInfo as bZ, type MindooDBAppIncomingResult as b_, type MindooDBAppDocumentHistoryEntry as ba, type MindooDBAppDocumentListQuery as bb, type MindooDBAppDocumentListResult as bc, type MindooDBAppDocumentQuery as bd, type MindooDBAppDocumentRevisionId as be, type MindooDBAppDocumentScanPreset as bf, type MindooDBAppDocumentSummary as bg, type MindooDBAppDragApi as bh, type MindooDBAppDragCancelReason as bi, type MindooDBAppDragDropEvent as bj, type MindooDBAppDragEffect as bk, type MindooDBAppDragHoverResult as bl, type MindooDBAppDragOffer as bm, type MindooDBAppDragOverEvent as bn, type MindooDBAppDragPointer as bo, type MindooDBAppDragProfile as bp, type MindooDBAppEmbed as bq, type MindooDBAppEmbedAccessComponent as br, type MindooDBAppEmbedAccessInput as bs, type MindooDBAppEmbedAccessPair as bt, type MindooDBAppEmbedAccessResult as bu, type MindooDBAppEmbedAgentTools as bv, type MindooDBAppEmbedAgentToolsEvent as bw, type MindooDBAppEmbedCloseReason as bx, type MindooDBAppEmbedClosedEvent as by, type MindooDBAppEmbedContext as bz, type MindooDBAppDragStartResult as c, type MindooDBAppRichTextScalar as c$, type MindooDBAppJsonCounterIncrementPatch as c0, type MindooDBAppJsonListDeletePatch as c1, type MindooDBAppJsonListInsertPatch as c2, type MindooDBAppJsonPatch as c3, type MindooDBAppJsonSetPatch as c4, type MindooDBAppJsonTextMarkPatch as c5, type MindooDBAppJsonTextSplicePatch as c6, type MindooDBAppJsonTextUnmarkPatch as c7, type MindooDBAppJsonUnsetPatch as c8, type MindooDBAppLaunchContext as c9, type MindooDBAppProposeAppResult as cA, type MindooDBAppQueryCoverage as cB, type MindooDBAppQueryInclude as cC, type MindooDBAppQueryIncludeCardinality as cD, type MindooDBAppQueryIncludeSlots as cE, type MindooDBAppQueryResult as cF, type MindooDBAppQueryRow as cG, type MindooDBAppQuerySortKey as cH, type MindooDBAppQueryTextClause as cI, type MindooDBAppReadableAttachmentStream as cJ, type MindooDBAppRecipientOptions as cK, type MindooDBAppReminder as cL, type MindooDBAppReminderOpened as cM, type MindooDBAppReminderOpenedHandler as cN, type MindooDBAppReminderRequest as cO, type MindooDBAppReminderScheduleResult as cP, type MindooDBAppRemindersApi as cQ, type MindooDBAppResolvedViewDefinition as cR, type MindooDBAppResolvedViewSource as cS, type MindooDBAppRevisionPhase as cT, type MindooDBAppRevisionVerification as cU, type MindooDBAppRichTextBlockSpan as cV, type MindooDBAppRichTextGetOptions as cW, type MindooDBAppRichTextImmutableString as cX, type MindooDBAppRichTextMarkRange as cY, type MindooDBAppRichTextMaterializeValue as cZ, type MindooDBAppRichTextPatch as c_, type MindooDBAppListUsersOptions as ca, type MindooDBAppListUsersPage as cb, type MindooDBAppLiveQuerySubscription as cc, type MindooDBAppLocalizedText as cd, type MindooDBAppMenuAnchor as ce, type MindooDBAppMenuApi as cf, type MindooDBAppMenuCommandItem as cg, type MindooDBAppMenuDismissReason as ch, type MindooDBAppMenuDismissedResult as ci, type MindooDBAppMenuItem as cj, type MindooDBAppMenuKind as ck, type MindooDBAppMenuPlacement as cl, type MindooDBAppMenuPointAnchor as cm, type MindooDBAppMenuRect as cn, type MindooDBAppMenuRectAnchor as co, type MindooDBAppMenuSelectionResult as cp, type MindooDBAppMenuSeparatorItem as cq, type MindooDBAppNotificationSeverity as cr, type MindooDBAppNotifyInput as cs, type MindooDBAppNotifyResult as ct, type MindooDBAppPdfApi as cu, type MindooDBAppPdfSignInput as cv, type MindooDBAppPdfSignResult as cw, type MindooDBAppPdfSignaturePosition as cx, type MindooDBAppPdfSigner as cy, type MindooDBAppProposeAppInput as cz, type MindooDBAppDragPreview as d, type MindooDBAppRichTextSpliceStep as d0, type MindooDBAppRichTextStep as d1, type MindooDBAppRichTextStepPatch as d2, type MindooDBAppRichTextTextSpan as d3, type MindooDBAppRuntime as d4, type MindooDBAppScanAttachmentOptions as d5, type MindooDBAppScanAttachmentResult as d6, type MindooDBAppScopedDocId as d7, type MindooDBAppScopedDocumentSummary as d8, type MindooDBAppSealIntent 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 dO, mindooDBAppAcceptMatchesType as dP, mindooDBAppComponentFieldsMatch as dQ, resolveMindooDBAppDefinitionUrl as dR, resolveMindooDBAppListingAssetUrl as dS, resolveMindooDBAppLocalizedText as dT, validateMindooDBAppAccepts as dU, validateMindooDBAppComponents as dV, validateMindooDBAppDefinition as dW, type MindooDBAppSealedChannelOpenInput as da, type MindooDBAppSealedChannelOpenResult as db, type MindooDBAppSealedChannelRequestInput as dc, type MindooDBAppSession as dd, type MindooDBAppShowMenuInput as de, type MindooDBAppShowMenuResult as df, type MindooDBAppSignPreview as dg, type MindooDBAppSignPreviewScope as dh, type MindooDBAppSignStatementInput as di, type MindooDBAppSignStatementResult as dj, type MindooDBAppStorageApi as dk, type MindooDBAppSummarySetup as dl, type MindooDBAppTextCursorOptions as dm, type MindooDBAppTextCursorPosition as dn, type MindooDBAppTextCursorPositionsResult as dp, type MindooDBAppTextCursorsResult as dq, type MindooDBAppTextEdit as dr, type MindooDBAppTextPatch as ds, type MindooDBAppThemeMode as dt, type MindooDBAppTimestampApi as du, type MindooDBAppTimestampInput as dv, type MindooDBAppTimestampProvider as dw, type MindooDBAppTimestampResult as dx, type MindooDBAppUiPreferences as dy, type MindooDBAppUpdateDocumentInput 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.68",
3
+ "version": "0.0.69",
4
4
  "engines": {
5
5
  "node": ">=22.13.0"
6
6
  },