mindoodb-app-sdk 0.0.71 → 0.0.73

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.
@@ -282,6 +282,18 @@ interface MindooDBAppComponentSpec {
282
282
  provides?: MindooDBAppComponentContract[];
283
283
  /** Fields of the root document that point at other root documents. */
284
284
  references?: MindooDBAppComponentReference[];
285
+ /**
286
+ * What the component can do for its hosts beyond showing the document, so a host
287
+ * can pick one that fits (`components.list({ requires })`): `inspect:<contract>`
288
+ * (describes its document, e.g. `inspect:mindoo.inspect.document@1`), `validate`
289
+ * (asks before it saves, `session.embedding.validate`), `issues` (shows a host's
290
+ * findings, `embed.showIssues`), `reveal` (scrolls to an anchor, `embed.reveal`),
291
+ * `variables` (offers the host's fields to insert, `embed.setVariables`),
292
+ * `template` (starts a new document from a template, `embeds.open({ template })`),
293
+ * `export:<format>` (hands over a file, `embed.export`, e.g. `export:pdf`).
294
+ * Changing it does not ask users again: it grants no access.
295
+ */
296
+ supports?: string[];
285
297
  }
286
298
  /**
287
299
  * Text in one language, or a map from locale (`de`, `fr`, …) to text. A map must carry
@@ -391,6 +403,425 @@ declare function validateMindooDBAppDefinition(raw: unknown): MindooDBAppDefinit
391
403
  */
392
404
  declare function resolveMindooDBAppDefinitionUrl(baseUrl: string): string;
393
405
 
406
+ /**
407
+ * Typed document values that plain JSON cannot express.
408
+ *
409
+ * Each helper returns a tagged plain object such as
410
+ * `{ $mindoo: "counter", value: 0 }`. Use it anywhere a value is written:
411
+ * `documents.create({ set })`, `documents.update({ set })`, JSON patch `set`
412
+ * and `listInsert` values, also nested inside objects and arrays. Haven turns
413
+ * the tags into the matching collaborative type. Reads return plain JSON:
414
+ * atomic strings as strings, counters as numbers, timestamps as ISO 8601
415
+ * strings.
416
+ *
417
+ * The object key `$mindoo` is reserved; an object carrying it must be one of
418
+ * these values, otherwise the write is rejected.
419
+ */
420
+ /** Reserved object key that marks a typed value. */
421
+ declare const MINDOODB_APP_VALUE_TAG = "$mindoo";
422
+ /** A string that is replaced as a whole on concurrent writes. */
423
+ interface MindooDBAppAtomicValue {
424
+ $mindoo: "atomic";
425
+ value: string;
426
+ }
427
+ /** A number whose concurrent increments are summed on merge. */
428
+ interface MindooDBAppCounterValue {
429
+ $mindoo: "counter";
430
+ value: number;
431
+ }
432
+ /** A point in time: epoch milliseconds or an ISO 8601 date-time string. */
433
+ interface MindooDBAppTimestampValue {
434
+ $mindoo: "timestamp";
435
+ value: number | string;
436
+ }
437
+ type MindooDBAppTypedValue = MindooDBAppAtomicValue | MindooDBAppCounterValue | MindooDBAppTimestampValue;
438
+ declare const MindooDBAppValue: {
439
+ /**
440
+ * An atomic string for identifiers, status and enum values, URLs, hashes
441
+ * and stored text cursors. Plain strings are collaborative text, where two
442
+ * concurrent changes of `"open"` to `"closed"` and `"blocked"` can
443
+ * interleave into a mix of both words.
444
+ */
445
+ readonly atomic: (value: string) => MindooDBAppAtomicValue;
446
+ /**
447
+ * A collaborative counter with an initial value (a safe integer). Create it
448
+ * once, then change it only with `json.counterIncrement`: writing a new
449
+ * counter is an assignment that does not merge with concurrent increments.
450
+ */
451
+ readonly counter: (value?: number) => MindooDBAppCounterValue;
452
+ /** A timestamp from a `Date`, epoch milliseconds or an ISO 8601 string. */
453
+ readonly timestamp: (value: Date | number | string) => MindooDBAppTimestampValue;
454
+ /** Whether `value` is a tagged typed value (any kind). */
455
+ readonly isTyped: (value: unknown) => value is MindooDBAppTypedValue;
456
+ };
457
+
458
+ /**
459
+ * Checking an embedded component's document before it is saved.
460
+ *
461
+ * A component that declares `supports: ["inspect:<contract>"]` describes its
462
+ * document on request in a shape every host can read without knowing the app:
463
+ * a Word or Markdown document as {@link MindooDBAppDocumentInspection}, a
464
+ * workbook as {@link MindooDBAppSpreadsheetInspection}, a deck as
465
+ * {@link MindooDBAppSlidesInspection}. A host asks for that (`embed.inspect`)
466
+ * or checks it before every save (`embed.onBeforeSave`), answering with
467
+ * {@link MindooDBAppIssue}s. The same checks can run on the small summary each
468
+ * component writes to its root document (`inspection` field), so a host can
469
+ * judge documents it does not have open.
470
+ *
471
+ * Rules that work on both: {@link defineDocumentRules}.
472
+ */
473
+
474
+ /** Word and Markdown documents. */
475
+ declare const MINDOODB_INSPECT_DOCUMENT = "mindoo.inspect.document@1";
476
+ /** Workbooks. */
477
+ declare const MINDOODB_INSPECT_SPREADSHEET = "mindoo.inspect.spreadsheet@1";
478
+ /** Presentations. */
479
+ declare const MINDOODB_INSPECT_SLIDES = "mindoo.inspect.slides@1";
480
+ /** Root document field holding the summary a component writes on every save. */
481
+ declare const MINDOODB_APP_INSPECTION_FIELD = "inspection";
482
+ /** Upper bound of the root summary, as JSON. */
483
+ declare const MINDOODB_APP_INSPECTION_SUMMARY_MAX_BYTES: number;
484
+ /** Upper bound of a full inspection Haven passes between apps, as JSON. */
485
+ declare const MINDOODB_APP_INSPECTION_MAX_BYTES: number;
486
+ /** At most this many issues per check. */
487
+ declare const MINDOODB_APP_ISSUES_MAX = 100;
488
+ /**
489
+ * A place in the component's document, for `embed.reveal` and issues: a heading
490
+ * (its id from the outline), a cell (`Sheet1!B3`, or `B3` on the first sheet) or
491
+ * a slide (0-based).
492
+ */
493
+ type MindooDBAppInspectAnchor = {
494
+ kind: "heading";
495
+ id: string;
496
+ } | {
497
+ kind: "cell";
498
+ ref: string;
499
+ } | {
500
+ kind: "slide";
501
+ index: number;
502
+ };
503
+ type MindooDBAppIssueSeverity = "error" | "warning" | "info";
504
+ /**
505
+ * A finding about the document. Before a save, `error` stops it, `warning` asks
506
+ * the user whether to save anyway, `info` is only shown.
507
+ */
508
+ interface MindooDBAppIssue {
509
+ severity: MindooDBAppIssueSeverity;
510
+ /** For the user, in their language. At most 500 characters. */
511
+ message: string;
512
+ /** Where in the document, so the component can show it (`embed.reveal`). */
513
+ anchor?: MindooDBAppInspectAnchor;
514
+ /** Stable id of the rule, e.g. `open-placeholders`. */
515
+ code?: string;
516
+ }
517
+ /** What a host asks a component to describe (`embed.inspect`, `onBeforeSave`). */
518
+ interface MindooDBAppInspectRequest {
519
+ /** One of the component's `inspect:` contracts. Default: its first one. */
520
+ contract?: string;
521
+ /**
522
+ * Optional parts: `text` (plain text of a document, see `maxTextLength`). Other
523
+ * parts of the contracts are always there.
524
+ */
525
+ include?: string[];
526
+ /** Spreadsheets: cells whose values to return, `Sheet1!B3` or `B3` (first sheet). At most 200. */
527
+ cells?: string[];
528
+ /** With `include: ["text"]`: at most this many characters (default 4000, max 50000). */
529
+ maxTextLength?: number;
530
+ }
531
+ /** What every inspection carries. */
532
+ interface MindooDBAppInspectionBase {
533
+ contract: string;
534
+ /** Title of the document (the root's `subject`). */
535
+ subject?: string;
536
+ /** Set when lists or text were shortened, e.g. in the root summary. */
537
+ truncated?: boolean;
538
+ }
539
+ /** `mindoo.inspect.document@1`: a Word or Markdown document. */
540
+ interface MindooDBAppDocumentInspection extends MindooDBAppInspectionBase {
541
+ contract: typeof MINDOODB_INSPECT_DOCUMENT;
542
+ /** Plain text, shortened to `maxTextLength`; only with `include: ["text"]`. */
543
+ text?: string;
544
+ /** Headings in document order. */
545
+ outline: Array<{
546
+ level: number;
547
+ text: string;
548
+ anchor: {
549
+ kind: "heading";
550
+ id: string;
551
+ };
552
+ }>;
553
+ /** Placeholders and Word MERGEFIELDs that were not filled in yet. */
554
+ placeholders: Array<{
555
+ name: string;
556
+ kind: "placeholder" | "mergefield";
557
+ anchor?: MindooDBAppInspectAnchor;
558
+ }>;
559
+ /** Comments that are not resolved. */
560
+ openComments: number;
561
+ /** Tracked changes that were neither accepted nor rejected. */
562
+ openTrackedChanges: number;
563
+ wordCount: number;
564
+ }
565
+ /** A cell value as `mindoo.inspect.spreadsheet@1` reports it. */
566
+ interface MindooDBAppInspectedCell {
567
+ value: string | number | boolean | null;
568
+ formula?: string;
569
+ /** Formula error such as `#REF!` or `#DIV/0!`. */
570
+ error?: string;
571
+ }
572
+ /** `mindoo.inspect.spreadsheet@1`: a workbook. */
573
+ interface MindooDBAppSpreadsheetInspection extends MindooDBAppInspectionBase {
574
+ contract: typeof MINDOODB_INSPECT_SPREADSHEET;
575
+ sheets: Array<{
576
+ name: string;
577
+ rows?: number;
578
+ columns?: number;
579
+ }>;
580
+ namedRanges: Array<{
581
+ name: string;
582
+ ref: string;
583
+ }>;
584
+ /** The requested `cells`, keyed by the ref as requested. */
585
+ cells?: Record<string, MindooDBAppInspectedCell>;
586
+ /** Cells whose formula evaluates to an error. */
587
+ formulaErrors: Array<{
588
+ ref: string;
589
+ error: string;
590
+ formula?: string;
591
+ }>;
592
+ }
593
+ /** `mindoo.inspect.slides@1`: a presentation. */
594
+ interface MindooDBAppSlidesInspection extends MindooDBAppInspectionBase {
595
+ contract: typeof MINDOODB_INSPECT_SLIDES;
596
+ slideCount: number;
597
+ slides: Array<{
598
+ index: number;
599
+ title?: string;
600
+ }>;
601
+ /** Layout placeholders nobody filled, e.g. an empty title. */
602
+ emptyPlaceholders: Array<{
603
+ slide: number;
604
+ placeholder: string;
605
+ anchor: {
606
+ kind: "slide";
607
+ index: number;
608
+ };
609
+ }>;
610
+ }
611
+ type MindooDBAppInspection = MindooDBAppDocumentInspection | MindooDBAppSpreadsheetInspection | MindooDBAppSlidesInspection;
612
+ /** What a component passes to `session.embedding.complete`. */
613
+ interface MindooDBAppEmbeddingResult {
614
+ /** Title of the document after the edit. */
615
+ subject: string;
616
+ /** One or two sentences for the host to show. */
617
+ summary?: string;
618
+ /** Small preview, a `data:image/png` or `data:image/jpeg` URL (the whole result stays below 64 KiB). */
619
+ thumbnail?: string;
620
+ /** Counts such as words, sheets or slides. */
621
+ stats?: Record<string, number>;
622
+ }
623
+ /** The outcome of `session.embedding.validate`. */
624
+ interface MindooDBAppEmbedValidation {
625
+ /** False: do not save (an error, or the user did not confirm a warning). */
626
+ ok: boolean;
627
+ issues: MindooDBAppIssue[];
628
+ /** The host did not answer in time; Haven let the save go ahead. */
629
+ timedOut?: boolean;
630
+ }
631
+ /** Thrown by `session.embedding.save` when the host's checks stopped the save. */
632
+ declare class MindooDBAppEmbedValidationError extends Error {
633
+ readonly issues: MindooDBAppIssue[];
634
+ constructor(issues: MindooDBAppIssue[]);
635
+ }
636
+ /**
637
+ * Whether a component's `supports` list covers `requirement`: `inspect` is met by
638
+ * any `inspect:…` entry, `inspect:mindoo.inspect.document@1` only by that one.
639
+ */
640
+ declare function mindooDBAppComponentSupports(supports: readonly string[] | undefined, requirement: string): boolean;
641
+ /** The contracts of a component's `inspect:` entries, in declared order. */
642
+ declare function mindooDBAppInspectContracts(supports: readonly string[] | undefined): string[];
643
+ /** A valid anchor, or undefined. */
644
+ declare function normalizeMindooDBAppInspectAnchor(raw: unknown): MindooDBAppInspectAnchor | undefined;
645
+ /**
646
+ * Issues as they may cross between apps: known severities, messages and codes
647
+ * shortened, invalid anchors dropped, at most {@link MINDOODB_APP_ISSUES_MAX}.
648
+ * Anything that is not an issue is left out.
649
+ */
650
+ declare function normalizeMindooDBAppIssues(raw: unknown): MindooDBAppIssue[];
651
+ /** An inspect request as it may cross between apps. */
652
+ declare function normalizeMindooDBAppInspectRequest(raw: unknown): MindooDBAppInspectRequest;
653
+ /**
654
+ * An inspection as it may cross between apps: plain JSON with a `contract`, at
655
+ * most {@link MINDOODB_APP_INSPECTION_MAX_BYTES}. Throws otherwise.
656
+ */
657
+ declare function normalizeMindooDBAppInspection(raw: unknown): MindooDBAppInspectionBase & Record<string, unknown>;
658
+ /**
659
+ * The small summary of an inspection a component keeps on its root document:
660
+ * no requested cells, text and lists shortened (`truncated: true` then) until it
661
+ * fits {@link MINDOODB_APP_INSPECTION_SUMMARY_MAX_BYTES}. Counts stay exact, so
662
+ * rules like "no open placeholders" give the same answer on it.
663
+ */
664
+ declare function summarizeMindooDBAppInspection<T extends MindooDBAppInspectionBase>(inspection: T, maxBytes?: number): T;
665
+ /**
666
+ * The summary as a value to write to the root (`set: { inspection: … }`): one
667
+ * atomic string of JSON, so concurrent saves replace it instead of merging text.
668
+ */
669
+ declare function mindooDBAppInspectionSummaryValue(inspection: MindooDBAppInspectionBase): MindooDBAppAtomicValue;
670
+ /** The summary a component wrote to this root document, or null. */
671
+ declare function readMindooDBAppInspectionSummary<T extends MindooDBAppInspectionBase = MindooDBAppInspection>(root: Readonly<Record<string, unknown>> | null | undefined): T | null;
672
+ /** What a rule's `check` may return: a message, issues, or nothing for "fine". */
673
+ type MindooDBAppDocumentRuleOutcome = string | MindooDBAppIssue | MindooDBAppIssue[] | null | undefined | false;
674
+ /** One check on an inspection. */
675
+ interface MindooDBAppDocumentRule<T extends MindooDBAppInspectionBase = MindooDBAppInspection> {
676
+ /** Stable id; becomes the issue's `code`. */
677
+ code: string;
678
+ /** For a message returned as a string. Default `error`. */
679
+ severity?: MindooDBAppIssueSeverity;
680
+ check(inspection: T): MindooDBAppDocumentRuleOutcome;
681
+ }
682
+ /** What {@link defineDocumentRules} returns. */
683
+ interface MindooDBAppDocumentRules {
684
+ /** What to ask the component for (`embed.onBeforeSave(handler, { inspect: rules.request })`). */
685
+ readonly request: MindooDBAppInspectRequest;
686
+ /** Issues of a full inspection; none for an inspection of another contract. */
687
+ check(inspection: MindooDBAppInspectionBase | null | undefined): MindooDBAppIssue[];
688
+ /** The same rules on a root document's summary (`inspection` field); none without one. */
689
+ checkRoot(root: Readonly<Record<string, unknown>> | null | undefined): MindooDBAppIssue[];
690
+ /** A ready `embed.onBeforeSave` handler. */
691
+ beforeSave(input: {
692
+ inspection: MindooDBAppInspectionBase | null;
693
+ }): {
694
+ issues: MindooDBAppIssue[];
695
+ };
696
+ /** Checks every save of this embed; returns the function that stops it. */
697
+ attach(embed: {
698
+ onBeforeSave(handler: (input: {
699
+ inspection: MindooDBAppInspectionBase | null;
700
+ }) => {
701
+ issues: MindooDBAppIssue[];
702
+ }, options?: {
703
+ inspect?: MindooDBAppInspectRequest;
704
+ }): () => void;
705
+ }): () => void;
706
+ }
707
+ /**
708
+ * Rules a host applies to a component's document, before a save (on the full
709
+ * inspection) and when reading (on the root's summary):
710
+ *
711
+ * ```ts
712
+ * const rules = defineDocumentRules<MindooDBAppDocumentInspection>({
713
+ * contract: MINDOODB_INSPECT_DOCUMENT,
714
+ * rules: [mindooDBAppInspectRules.noOpenPlaceholders(), mindooDBAppInspectRules.noOpenTrackedChanges("warning")],
715
+ * });
716
+ * rules.attach(embed);
717
+ * const issues = rules.checkRoot(document.data);
718
+ * ```
719
+ *
720
+ * The summary is shortened, so rules that look at text or long lists may see
721
+ * less on it than on the full inspection; counts are always exact.
722
+ */
723
+ declare function defineDocumentRules<T extends MindooDBAppInspectionBase = MindooDBAppInspection>(definition: {
724
+ /** Only inspections of this contract are checked. */
725
+ contract?: string;
726
+ include?: string[];
727
+ cells?: string[];
728
+ maxTextLength?: number;
729
+ rules: Array<MindooDBAppDocumentRule<T>>;
730
+ }): MindooDBAppDocumentRules;
731
+ /** Common rules for {@link defineDocumentRules}; pass `message` to word them yourself. */
732
+ declare const mindooDBAppInspectRules: {
733
+ /** Documents: no placeholder or MERGEFIELD left open. */
734
+ noOpenPlaceholders(severity?: MindooDBAppIssueSeverity, message?: (names: string[]) => string): MindooDBAppDocumentRule<MindooDBAppDocumentInspection>;
735
+ /** Documents: every comment resolved. */
736
+ noOpenComments(severity?: MindooDBAppIssueSeverity, message?: (count: number) => string): MindooDBAppDocumentRule<MindooDBAppDocumentInspection>;
737
+ /** Documents: every tracked change accepted or rejected. */
738
+ noOpenTrackedChanges(severity?: MindooDBAppIssueSeverity, message?: (count: number) => string): MindooDBAppDocumentRule<MindooDBAppDocumentInspection>;
739
+ /** Spreadsheets: no formula evaluates to an error; one issue per cell. */
740
+ noFormulaErrors(severity?: MindooDBAppIssueSeverity): MindooDBAppDocumentRule<MindooDBAppSpreadsheetInspection>;
741
+ /** Presentations: no layout placeholder left empty; one issue per slide. */
742
+ noEmptySlidePlaceholders(severity?: MindooDBAppIssueSeverity): MindooDBAppDocumentRule<MindooDBAppSlidesInspection>;
743
+ };
744
+ /**
745
+ * How Haven turns a host's answer into the component's `validate` result: an error
746
+ * stops the save, warnings stop it unless the user confirms (`confirm`), or
747
+ * nothing asks (`interactive: false`).
748
+ */
749
+ declare function resolveMindooDBAppEmbedValidation(issues: MindooDBAppIssue[], interactive: boolean, confirm: (warnings: MindooDBAppIssue[]) => boolean | Promise<boolean>): Promise<MindooDBAppEmbedValidation>;
750
+
751
+ /**
752
+ * What a host hands to an embedded component and gets back, beyond the document:
753
+ *
754
+ * - **Variables** (`embeds.open({ variables })`, `embed.setVariables`): named values
755
+ * the user can insert as fields ("Insert field ▸"), e.g. a contact's name and
756
+ * address. Word keeps them as MERGEFIELDs, text editors as `{{key}}`. Components
757
+ * that offer this declare `supports: ["variables"]`.
758
+ * - **Templates** (`embeds.open({ template })`): a new document starts as a copy of
759
+ * another one; the component copies it (it knows its format). `supports: ["template"]`.
760
+ * - **Export** (`embed.export({ format })`): the document as a file, e.g. a PDF to
761
+ * file with the record or a PNG preview. `supports: ["export:pdf", "export:png"]`.
762
+ */
763
+ /** A value a host offers to insert, e.g. `{ key: "company.name", label: "Company", value: "Müller GmbH" }`. */
764
+ interface MindooDBAppEmbedVariable {
765
+ /** Stable name: letters, digits, `_` and `.`; how fields refer to it (`{{company.name}}`, `MERGEFIELD company.name`). */
766
+ key: string;
767
+ /** For the user, in their language. */
768
+ label: string;
769
+ /** The current value; `""` when the host has none (the field stays visible as a field). */
770
+ value: string;
771
+ /** For grouping in menus, e.g. "Company" or "Contact person". */
772
+ group?: string;
773
+ }
774
+ declare const MINDOODB_APP_EMBED_VARIABLES_MAX = 200;
775
+ /**
776
+ * Variables as they may cross between apps: valid keys only, each once (the last
777
+ * wins), texts shortened, at most {@link MINDOODB_APP_EMBED_VARIABLES_MAX}.
778
+ */
779
+ declare function normalizeMindooDBAppEmbedVariables(raw: unknown): MindooDBAppEmbedVariable[];
780
+ /**
781
+ * `{{key}}` placeholders in `text` replaced by the variables' values; unknown keys
782
+ * (and keys whose value is empty, unless `keepEmpty`) stay as they are.
783
+ */
784
+ declare function resolveMindooDBAppVariables(text: string, variables: readonly MindooDBAppEmbedVariable[], options?: {
785
+ keepEmpty?: boolean;
786
+ }): string;
787
+ /** A template for `embeds.open`: the document a new one starts as a copy of. */
788
+ interface MindooDBAppEmbedTemplate {
789
+ /** Host database that holds the template; default the database of the new document. */
790
+ databaseId?: string;
791
+ docId: string;
792
+ }
793
+ /** Formats `embed.export` knows by name; components may offer others (`export:<format>`). */
794
+ type MindooDBAppEmbedExportFormat = "pdf" | "docx" | "xlsx" | "pptx" | "png" | "md" | "csv" | (string & {});
795
+ /** What a host asks `embed.export` for. */
796
+ interface MindooDBAppEmbedExportRequest {
797
+ format: MindooDBAppEmbedExportFormat;
798
+ /** `png`: the largest width and height in CSS pixels (a preview); the component keeps the aspect ratio. */
799
+ maxWidth?: number;
800
+ maxHeight?: number;
801
+ }
802
+ /** What a component's export provider returns: the file, or the bytes with name and type. */
803
+ type MindooDBAppEmbeddingExport = Blob | {
804
+ data: Blob | ArrayBuffer | Uint8Array;
805
+ name?: string;
806
+ mimeType?: string;
807
+ };
808
+ /** The export as it crosses between apps (Haven forwards it unchanged). */
809
+ interface MindooDBAppEmbedExportPayload {
810
+ data: ArrayBuffer;
811
+ name: string;
812
+ mimeType: string;
813
+ }
814
+ /** Exports larger than this are refused. */
815
+ declare const MINDOODB_APP_EMBED_EXPORT_MAX_BYTES: number;
816
+ /** The media type a format stands for (`application/octet-stream` for unknown ones). */
817
+ declare function mindooDBAppExportMimeType(format: string): string;
818
+ /** An export request as it may cross between apps. Throws without a usable format. */
819
+ declare function normalizeMindooDBAppEmbedExportRequest(raw: unknown): MindooDBAppEmbedExportRequest;
820
+ /** A provider's result as a payload: bytes, a name with the format's extension, the media type. */
821
+ declare function mindooDBAppExportPayload(result: MindooDBAppEmbeddingExport, request: MindooDBAppEmbedExportRequest, baseName?: string): Promise<MindooDBAppEmbedExportPayload>;
822
+ /** The payload as a `File` for the host. */
823
+ declare function mindooDBAppExportFile(payload: MindooDBAppEmbedExportPayload): File;
824
+
394
825
  /** Launch target used by the Haven when opening an app. */
395
826
  type MindooDBAppRuntime = "iframe" | "window";
396
827
  /**
@@ -628,6 +1059,15 @@ interface MindooDBAppEmbedContext {
628
1059
  /** Opening other documents. Always false: the sandbox only holds this one. */
629
1060
  open: boolean;
630
1061
  };
1062
+ /**
1063
+ * Set when the host wants the new document to start as a copy of a template
1064
+ * (`embeds.open({ template })`): the template's root document id in the sandbox.
1065
+ * It and its children are there to read only; copy them into `docId` while it is
1066
+ * still empty. Absent otherwise.
1067
+ */
1068
+ template?: {
1069
+ docId: string;
1070
+ };
631
1071
  }
632
1072
  /** Attachment metadata returned by the attachment APIs. */
633
1073
  interface MindooDBAppAttachmentInfo {
@@ -1912,12 +2352,20 @@ interface MindooDBAppComponentInfo {
1912
2352
  provides?: MindooDBAppComponentContract[];
1913
2353
  /** Fields of its root documents that point at other root documents. */
1914
2354
  references?: MindooDBAppComponentReference[];
2355
+ /** What it can do beyond showing the document, e.g. `inspect:mindoo.inspect.document@1`, `validate`. */
2356
+ supports?: string[];
1915
2357
  }
1916
2358
  /** Filter for `session.components.list`. */
1917
2359
  interface MindooDBAppComponentQuery {
1918
2360
  intent?: MindooDBAppComponentIntent;
1919
2361
  /** Only components whose `match` fits these root document fields. */
1920
2362
  document?: Record<string, unknown>;
2363
+ /**
2364
+ * Only components that support all of these (`supports` in their haven-app.json):
2365
+ * `inspect` matches any `inspect:…` entry, `inspect:mindoo.inspect.document@1`
2366
+ * only that contract.
2367
+ */
2368
+ requires?: string[];
1921
2369
  }
1922
2370
  /** Rectangle in the host app's viewport, CSS pixels. */
1923
2371
  type MindooDBAppEmbedRect = MindooDBAppMenuRect;
@@ -1949,6 +2397,19 @@ interface MindooDBAppEmbedOpenInput {
1949
2397
  rect?: MindooDBAppEmbedRect;
1950
2398
  /** Default true. */
1951
2399
  visible?: boolean;
2400
+ /**
2401
+ * Values the user can insert as fields, e.g. the linked contact's name and address
2402
+ * (components with `supports: ["variables"]`). Change them later with
2403
+ * `embed.setVariables`.
2404
+ */
2405
+ variables?: MindooDBAppEmbedVariable[];
2406
+ /**
2407
+ * Start the (new, empty) document as a copy of this one (components with
2408
+ * `supports: ["template"]`). The template must match the component, and this app
2409
+ * must be allowed to read its database. Haven hands it to the component to read;
2410
+ * nothing is written back to it.
2411
+ */
2412
+ template?: MindooDBAppEmbedTemplate;
1952
2413
  }
1953
2414
  /** One component a host app wants to show, for `session.embeds.requestAccess`. */
1954
2415
  interface MindooDBAppEmbedAccessComponent {
@@ -2062,6 +2523,63 @@ interface MindooDBAppEmbed {
2062
2523
  * `timeoutMs` (default 10 s) or when the component closes.
2063
2524
  */
2064
2525
  waitForAgentTools(timeoutMs?: number): Promise<MindooDBAppEmbedAgentTools | null>;
2526
+ /** What the component supports (`supports` in its haven-app.json); empty on older Havens. */
2527
+ readonly supports: readonly string[];
2528
+ /**
2529
+ * Asks the component to describe its document (it must support `inspect:<contract>`),
2530
+ * e.g. to show the open placeholders of a letter. Rejects with `unsupported` when it
2531
+ * does not.
2532
+ */
2533
+ inspect<T extends MindooDBAppInspectionBase = MindooDBAppInspectionBase>(request?: MindooDBAppInspectRequest): Promise<T>;
2534
+ /**
2535
+ * Checks every save of the component before it happens (components that support
2536
+ * `validate` ask before they save, `session.embedding.validate`). `handler` gets the
2537
+ * component's inspection, asked for with `options.inspect` (null when the component
2538
+ * cannot describe its document), plus the root document as saved last time, and
2539
+ * answers with issues: an `error` stops the save, a `warning` makes Haven ask the
2540
+ * user. Saves the user, this app (`save()`) or an agent start alike. Without an
2541
+ * answer within about 5 s the component saves and the user is told. One handler at
2542
+ * a time; returns the function that removes it.
2543
+ */
2544
+ onBeforeSave(handler: (input: MindooDBAppEmbedBeforeSaveInput) => MindooDBAppEmbedBeforeSaveResult | Promise<MindooDBAppEmbedBeforeSaveResult>, options?: {
2545
+ inspect?: MindooDBAppInspectRequest;
2546
+ }): () => void;
2547
+ /** Called after the component saved (it reports that through `session.embedding.save`). */
2548
+ onAfterSave(listener: (event: MindooDBAppEmbedSavedEvent) => void): () => void;
2549
+ /** Shows issues in the component (it must support `issues`), e.g. after this app checked it. */
2550
+ showIssues(issues: MindooDBAppIssue[]): Promise<void>;
2551
+ /** Scrolls the component to a place in its document (it must support `reveal`). */
2552
+ reveal(anchor: MindooDBAppInspectAnchor): Promise<void>;
2553
+ /**
2554
+ * Runs one of the component's document agent tools (`scope: "document"`), e.g.
2555
+ * `text_insert`, with or without its prefix. For what the other methods do not
2556
+ * cover; agent tools need not be switched on. Resolves with the tool's result.
2557
+ */
2558
+ callTool(name: string, input?: Record<string, unknown>): Promise<unknown>;
2559
+ /** Replaces the values the user can insert as fields (`supports: ["variables"]`). */
2560
+ setVariables(variables: MindooDBAppEmbedVariable[]): Promise<void>;
2561
+ /**
2562
+ * The document as a file in `format` (the component must support `export:<format>`),
2563
+ * e.g. a PDF to keep with the record or a PNG preview. Edits the component has not
2564
+ * saved yet are included as it shows them.
2565
+ */
2566
+ export(request: MindooDBAppEmbedExportRequest): Promise<File>;
2567
+ }
2568
+ /** What an `embed.onBeforeSave` handler gets. */
2569
+ interface MindooDBAppEmbedBeforeSaveInput {
2570
+ embedId: string;
2571
+ /** The component's description of the document as it is about to be saved; null if it has none. */
2572
+ inspection: MindooDBAppInspectionBase | null;
2573
+ /** The root document's fields as last saved (large fields may be missing). */
2574
+ root: Record<string, unknown> | null;
2575
+ }
2576
+ /** What an `embed.onBeforeSave` handler answers. */
2577
+ interface MindooDBAppEmbedBeforeSaveResult {
2578
+ issues: MindooDBAppIssue[];
2579
+ }
2580
+ /** Pushed after an embedded component saved. */
2581
+ interface MindooDBAppEmbedSavedEvent {
2582
+ embedId: string;
2065
2583
  }
2066
2584
  /** The agent tools of an embedded component, as its host sees them. */
2067
2585
  interface MindooDBAppEmbedAgentTools {
@@ -2135,6 +2653,60 @@ interface MindooDBAppEmbeddingApi {
2135
2653
  * 20, max 100) results.
2136
2654
  */
2137
2655
  lookup(field: string, options?: MindooDBAppEmbeddingLookupOptions): Promise<MindooDBAppEmbeddingLookupResult[]>;
2656
+ /**
2657
+ * Describes the document when the host asks (`embed.inspect`, its save checks),
2658
+ * following one of the contracts in `supports` (`inspect:<contract>`). Also used
2659
+ * by `save` for the root summary. One provider at a time; returns the unregister
2660
+ * function.
2661
+ */
2662
+ provideInspection(provider: (request: MindooDBAppInspectRequest) => MindooDBAppInspectionBase | Promise<MindooDBAppInspectionBase>): () => void;
2663
+ /**
2664
+ * Lets the host check the document before this component saves it: Haven asks the
2665
+ * host's `onBeforeSave` (with this app's inspection) and, for warnings, the user
2666
+ * (unless `interactive: false`, e.g. for an agent's save; then warnings do not
2667
+ * stop it). Resolves `ok: true` right away when not embedded or the host has no
2668
+ * checks. Prefer {@link save}, which also writes the root summary.
2669
+ */
2670
+ validate(options?: {
2671
+ interactive?: boolean;
2672
+ }): Promise<MindooDBAppEmbedValidation>;
2673
+ /**
2674
+ * Saving with the host's checks: `validate`, then `flush` (write the pending
2675
+ * changes; put `context.inspection` into the root's `inspection` field when it is
2676
+ * set), then tells the host it saved. Throws a `MindooDBAppEmbedValidationError`
2677
+ * without calling `flush` when the checks stopped it, after passing the issues to
2678
+ * the `onShowIssues` handler. Works the same standalone, without checks.
2679
+ */
2680
+ save(flush: (context: MindooDBAppEmbeddingSaveContext) => void | Promise<void>, options?: {
2681
+ interactive?: boolean;
2682
+ }): Promise<MindooDBAppEmbedValidation>;
2683
+ /** Shows the host's issues (`embed.showIssues`, and failed saves). Returns the unregister function. */
2684
+ onShowIssues(handler: (issues: MindooDBAppIssue[]) => void | Promise<void>): () => void;
2685
+ /** Scrolls to a place in the document (`embed.reveal`). Returns the unregister function. */
2686
+ onReveal(handler: (anchor: MindooDBAppInspectAnchor) => void | Promise<void>): () => void;
2687
+ /**
2688
+ * The values the host offers to insert as fields (`embeds.open({ variables })`);
2689
+ * empty when it offers none, when not embedded, and on older Havens.
2690
+ */
2691
+ getVariables(): Promise<MindooDBAppEmbedVariable[]>;
2692
+ /** Called with the new list whenever the host changes it (`embed.setVariables`). */
2693
+ onVariablesChange(listener: (variables: MindooDBAppEmbedVariable[]) => void): () => void;
2694
+ /**
2695
+ * Hands the document over as a file when the host asks (`embed.export`), in one of
2696
+ * the formats in `supports` (`export:<format>`). Throw for a format you do not
2697
+ * offer. One provider at a time; returns the unregister function.
2698
+ */
2699
+ provideExport(provider: (request: MindooDBAppEmbedExportRequest) => MindooDBAppEmbeddingExport | Promise<MindooDBAppEmbeddingExport>): () => void;
2700
+ }
2701
+ /** What `session.embedding.save` hands to `flush`. */
2702
+ interface MindooDBAppEmbeddingSaveContext {
2703
+ /**
2704
+ * The summary of this app's inspection (see `provideInspection`), ready to write as
2705
+ * the root's `inspection` field; null without a provider.
2706
+ */
2707
+ inspection: MindooDBAppAtomicValue | null;
2708
+ /** What the host's checks found but let pass (warnings the user confirmed, infos). */
2709
+ issues: MindooDBAppIssue[];
2138
2710
  }
2139
2711
  interface MindooDBAppEmbeddingLookupOptions {
2140
2712
  query?: string;
@@ -2147,12 +2719,32 @@ interface MindooDBAppEmbeddingLookupResult {
2147
2719
  /** The reference's `show` fields the document has. */
2148
2720
  fields: Record<string, unknown>;
2149
2721
  }
2150
- /** Haven → component: the host asked for something (`embed.save()`). */
2722
+ /**
2723
+ * Haven → component: the host asked for something (`embed.save()`, `embed.inspect()`,
2724
+ * …). The component answers with `embedding.respond`.
2725
+ */
2151
2726
  interface MindooDBAppBridgeEmbeddingRequestMessage {
2152
2727
  protocol: "mindoodb-app-bridge";
2153
2728
  kind: "embedding-request";
2154
2729
  requestId: string;
2155
- request: "save";
2730
+ request: "save" | "inspect" | "showIssues" | "reveal" | "variables" | "export";
2731
+ /**
2732
+ * `inspect`: `{ request }`, `showIssues`: `{ issues }`, `reveal`: `{ anchor }`,
2733
+ * `variables`: `{ variables }`, `export`: `{ request }`.
2734
+ */
2735
+ params?: Record<string, unknown>;
2736
+ }
2737
+ /** Haven → host: a question about an embed the host has to answer (`embeds.respond`). */
2738
+ interface MindooDBAppBridgeEmbedRequestMessage {
2739
+ protocol: "mindoodb-app-bridge";
2740
+ kind: "embed-request";
2741
+ requestId: string;
2742
+ embedId: string;
2743
+ request: "beforeSave";
2744
+ params: {
2745
+ inspection: MindooDBAppInspectionBase | null;
2746
+ root: Record<string, unknown> | null;
2747
+ };
2156
2748
  }
2157
2749
  /** The component reported whether it has unsaved changes. */
2158
2750
  interface MindooDBAppEmbedDirtyEvent {
@@ -2169,9 +2761,11 @@ interface MindooDBAppBridgeEmbedEventMessage {
2169
2761
  type: "dirty";
2170
2762
  } & MindooDBAppEmbedDirtyEvent) | ({
2171
2763
  type: "agentTools";
2172
- } & MindooDBAppEmbedAgentToolsEvent);
2764
+ } & MindooDBAppEmbedAgentToolsEvent) | ({
2765
+ type: "saved";
2766
+ } & MindooDBAppEmbedSavedEvent);
2173
2767
  }
2174
- type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck | MindooDBAppBridgeShortcutsChangedMessage | MindooDBAppBridgeShortcutInvokedMessage | MindooDBAppBridgeWorkspaceFocusRequestedMessage | MindooDBAppBridgeHostFocusChangedMessage | MindooDBAppBridgeAgentInvokeMessage | MindooDBAppBridgeAgentResultMessage | MindooDBAppBridgeDragOverMessage | MindooDBAppBridgeDragLeaveMessage | MindooDBAppBridgeDragDropMessage | MindooDBAppBridgeIncomingContentMessage | MindooDBAppBridgeReminderOpenedMessage | MindooDBAppBridgeEmbedEventMessage | MindooDBAppBridgeEmbeddingRequestMessage;
2768
+ type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck | MindooDBAppBridgeShortcutsChangedMessage | MindooDBAppBridgeShortcutInvokedMessage | MindooDBAppBridgeWorkspaceFocusRequestedMessage | MindooDBAppBridgeHostFocusChangedMessage | MindooDBAppBridgeAgentInvokeMessage | MindooDBAppBridgeAgentResultMessage | MindooDBAppBridgeDragOverMessage | MindooDBAppBridgeDragLeaveMessage | MindooDBAppBridgeDragDropMessage | MindooDBAppBridgeIncomingContentMessage | MindooDBAppBridgeReminderOpenedMessage | MindooDBAppBridgeEmbedEventMessage | MindooDBAppBridgeEmbedRequestMessage | MindooDBAppBridgeEmbeddingRequestMessage;
2175
2769
  /** Placement hint for a host-rendered overlay menu. */
2176
2770
  type MindooDBAppMenuPlacement = "auto" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "right-start" | "left-start";
2177
2771
  /** Semantic hint allowing Haven to tune menu behavior or styling. */
@@ -3882,4 +4476,4 @@ interface MindooDBAppBridge {
3882
4476
  connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
3883
4477
  }
3884
4478
 
3885
- export { type MindooDBAppAttachmentPreviewSession as $, MINDOODB_APP_COMPONENTS_MAX as A, MINDOODB_APP_COMPONENT_CONTRACT_PATTERN as B, MINDOODB_APP_DEFINITION_FILE_NAME as C, MINDOODB_APP_DEFINITION_FORMAT as D, MINDOODB_APP_DEFINITION_PERMISSIONS as E, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as F, MINDOODB_APP_DEFINITION_VERSION as G, MINDOODB_APP_LISTING_DESCRIPTION_MAX as H, MINDOODB_APP_LISTING_MAX_SCREENSHOTS as I, MINDOODB_APP_LISTING_SUMMARY_MAX as J, MINDOODB_APP_SEAL_SIGNING_DOMAIN as K, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppAcceptSpec as N, type MindooDBAppAccessDecision as O, type MindooDBAppAccessTier as P, type MindooDBAppAgentApi as Q, type MindooDBAppAgentCapability as R, type MindooDBAppAgentProfile as S, type MindooDBAppAgentRegistration as T, type MindooDBAppAgentToolAnnotations as U, type MindooDBAppAgentToolDescriptor as V, type MindooDBAppAgentToolScope as W, type MindooDBAppAttachmentApi as X, type MindooDBAppAttachmentChunk as Y, type MindooDBAppAttachmentInfo as Z, type MindooDBAppAttachmentPreviewOptions as _, type MindooDBAppDragBindSourceOptions as a, type MindooDBAppConfiguredViewFilterRule as a$, type MindooDBAppAutomergeChangesPatch as a0, type MindooDBAppAutomergeChangesSince as a1, type MindooDBAppAutomergeGetOptions as a2, type MindooDBAppAutomergePatchResult as a3, type MindooDBAppAutomergeSnapshot as a4, type MindooDBAppBridgeAgentInvokeMessage as a5, type MindooDBAppBridgeAgentResultMessage as a6, type MindooDBAppBridgeBeforeCloseAck as a7, type MindooDBAppBridgeBeforeCloseMessage as a8, type MindooDBAppBridgeConnectMessage as a9, type MindooDBAppBridgeStreamOpenResult as aA, type MindooDBAppBridgeStreamReadRequest as aB, type MindooDBAppBridgeStreamWriteRequest as aC, type MindooDBAppBridgeThemeChangedMessage as aD, type MindooDBAppBridgeUiPreferencesChangedMessage as aE, type MindooDBAppBridgeViewChangedMessage as aF, type MindooDBAppBridgeViewportChangedMessage as aG, type MindooDBAppBridgeWorkspaceFocusRequestedMessage as aH, type MindooDBAppBrowserFeatures as aI, type MindooDBAppCapability as aJ, type MindooDBAppComponentCategory as aK, type MindooDBAppComponentChildren as aL, type MindooDBAppComponentContract as aM, type MindooDBAppComponentFieldValue as aN, type MindooDBAppComponentInfo as aO, type MindooDBAppComponentIntent as aP, type MindooDBAppComponentQuery as aQ, type MindooDBAppComponentReference as aR, type MindooDBAppComponentSpec as aS, type MindooDBAppComponentsApi as aT, type MindooDBAppConfiguredViewCategorizationStyle as aU, type MindooDBAppConfiguredViewColumn as aV, type MindooDBAppConfiguredViewColumnRole as aW, type MindooDBAppConfiguredViewExpressionMode as aX, type MindooDBAppConfiguredViewFieldExpression as aY, type MindooDBAppConfiguredViewFilterDefinition as aZ, type MindooDBAppConfiguredViewFilterMode as a_, type MindooDBAppBridgeConnectOptions as aa, type MindooDBAppBridgeConnectedMessage as ab, type MindooDBAppBridgeDragDropMessage as ac, type MindooDBAppBridgeDragLeaveMessage as ad, type MindooDBAppBridgeDragOverMessage as ae, type MindooDBAppBridgeEmbedEventMessage as af, type MindooDBAppBridgeEmbeddingRequestMessage as ag, type MindooDBAppBridgeErrorPayload as ah, type MindooDBAppBridgeHandshakeErrorMessage as ai, type MindooDBAppBridgeHostFocusChangedMessage as aj, type MindooDBAppBridgeIncomingContentMessage as ak, type MindooDBAppBridgeLocaleChangedMessage as al, type MindooDBAppBridgePortMessage as am, type MindooDBAppBridgeQueryResultMessage as an, type MindooDBAppBridgeReminderOpenedMessage as ao, type MindooDBAppBridgeRpcError as ap, type MindooDBAppBridgeRpcMessage as aq, type MindooDBAppBridgeRpcRequest as ar, type MindooDBAppBridgeRpcSuccess as as, type MindooDBAppBridgeShortcutInvokedMessage as at, type MindooDBAppBridgeShortcutsChangedMessage as au, type MindooDBAppBridgeStreamAbortRequest as av, type MindooDBAppBridgeStreamAck as aw, type MindooDBAppBridgeStreamCloseRequest as ax, type MindooDBAppBridgeStreamError as ay, type MindooDBAppBridgeStreamMessage as az, type MindooDBAppDragStartInput as b, type MindooDBAppHostTheme as b$, type MindooDBAppConfiguredViewFormulaExpression as b0, type MindooDBAppConfiguredViewFormulaFilterDefinition as b1, type MindooDBAppConfiguredViewPreviewMode as b2, type MindooDBAppConfiguredViewRuleFilterDefinition as b3, type MindooDBAppConfiguredViewRuleMatchMode as b4, type MindooDBAppConfiguredViewRuleOperator as b5, type MindooDBAppConfiguredViewValueExpression as b6, type MindooDBAppCreateKeyInfo as b7, type MindooDBAppCreateViewInput as b8, type MindooDBAppCreateViewNavigatorInput as b9, type MindooDBAppDragProfile as bA, type MindooDBAppEmbed as bB, type MindooDBAppEmbedAccessComponent as bC, type MindooDBAppEmbedAccessInput as bD, type MindooDBAppEmbedAccessPair as bE, type MindooDBAppEmbedAccessResult as bF, type MindooDBAppEmbedAgentTools as bG, type MindooDBAppEmbedAgentToolsEvent as bH, type MindooDBAppEmbedCloseReason as bI, type MindooDBAppEmbedClosedEvent as bJ, type MindooDBAppEmbedContext as bK, type MindooDBAppEmbedDirtyEvent as bL, type MindooDBAppEmbedOpenInput as bM, type MindooDBAppEmbedRect as bN, type MindooDBAppEmbeddingApi as bO, type MindooDBAppEmbeddingLookupOptions as bP, type MindooDBAppEmbeddingLookupResult as bQ, type MindooDBAppEmbedsApi as bR, type MindooDBAppEntryAttachmentRef as bS, type MindooDBAppEntryProvenance as bT, type MindooDBAppExtractDocumentTextInput as bU, type MindooDBAppExtractDocumentTextResult as bV, type MindooDBAppExtractTextFormat as bW, type MindooDBAppExtractionSetup as bX, type MindooDBAppFulltextSetup as bY, type MindooDBAppHistoricalDocument as bZ, type MindooDBAppHistoryQuery as b_, type MindooDBAppDatabaseInfo as ba, type MindooDBAppDefinitionDatabase as bb, type MindooDBAppDefinitionListing as bc, type MindooDBAppDefinitionPermission as bd, type MindooDBAppDefinitionRegistrationPermission as be, type MindooDBAppDefinitionScreenshot as bf, type MindooDBAppDefinitionValidation as bg, type MindooDBAppDirectoryApi as bh, type MindooDBAppDirectoryEntry as bi, type MindooDBAppDocumentApi as bj, type MindooDBAppDocumentHeadCursorResult as bk, type MindooDBAppDocumentHistoryEntry as bl, type MindooDBAppDocumentListQuery as bm, type MindooDBAppDocumentListResult as bn, type MindooDBAppDocumentQuery as bo, type MindooDBAppDocumentRevisionId as bp, type MindooDBAppDocumentScanPreset as bq, type MindooDBAppDocumentSummary as br, type MindooDBAppDragApi as bs, type MindooDBAppDragCancelReason as bt, type MindooDBAppDragDropEvent as bu, type MindooDBAppDragEffect as bv, type MindooDBAppDragHoverResult as bw, type MindooDBAppDragOffer as bx, type MindooDBAppDragOverEvent as by, type MindooDBAppDragPointer as bz, type MindooDBAppDragStartResult as c, type MindooDBAppReminderScheduleResult as c$, type MindooDBAppIdentityApi as c0, type MindooDBAppInaccessibleDocument as c1, type MindooDBAppInaccessibleDocumentListQuery as c2, type MindooDBAppInaccessibleDocumentListResult as c3, type MindooDBAppIncomingContent as c4, type MindooDBAppIncomingContentHandler as c5, type MindooDBAppIncomingContentInfo as c6, type MindooDBAppIncomingItem as c7, type MindooDBAppIncomingItemInfo as c8, type MindooDBAppIncomingResult as c9, 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 MindooDBAppPdfApi as cG, type MindooDBAppPdfSignInput as cH, type MindooDBAppPdfSignResult as cI, type MindooDBAppPdfSignaturePosition as cJ, type MindooDBAppPdfSigner as cK, type MindooDBAppProposeAppInput as cL, type MindooDBAppProposeAppResult as cM, type MindooDBAppQueryCoverage as cN, type MindooDBAppQueryInclude as cO, type MindooDBAppQueryIncludeCardinality as cP, type MindooDBAppQueryIncludeSlots as cQ, type MindooDBAppQueryResult as cR, type MindooDBAppQueryRow as cS, type MindooDBAppQuerySortKey as cT, type MindooDBAppQueryTextClause as cU, type MindooDBAppReadableAttachmentStream as cV, type MindooDBAppRecipientOptions as cW, type MindooDBAppReminder as cX, type MindooDBAppReminderOpened as cY, type MindooDBAppReminderOpenedHandler as cZ, type MindooDBAppReminderRequest as c_, type MindooDBAppIncomingSource as ca, type MindooDBAppJsonCounterIncrementPatch as cb, type MindooDBAppJsonListDeletePatch as cc, type MindooDBAppJsonListInsertPatch as cd, type MindooDBAppJsonPatch as ce, type MindooDBAppJsonSetPatch as cf, type MindooDBAppJsonTextMarkPatch as cg, type MindooDBAppJsonTextSplicePatch as ch, type MindooDBAppJsonTextUnmarkPatch as ci, type MindooDBAppJsonUnsetPatch as cj, type MindooDBAppLaunchContext as ck, type MindooDBAppListUsersOptions as cl, type MindooDBAppListUsersPage as cm, type MindooDBAppLiveQuerySubscription as cn, type MindooDBAppLocaleMap as co, type MindooDBAppLocalizedText as cp, type MindooDBAppMenuAnchor as cq, type MindooDBAppMenuApi as cr, type MindooDBAppMenuCommandItem as cs, type MindooDBAppMenuDismissReason as ct, type MindooDBAppMenuDismissedResult as cu, type MindooDBAppMenuItem as cv, type MindooDBAppMenuKind as cw, type MindooDBAppMenuPlacement as cx, type MindooDBAppMenuPointAnchor as cy, type MindooDBAppMenuRect as cz, type MindooDBAppDragPreview as d, mindooDBAppAcceptMatchesType as d$, type MindooDBAppRemindersApi as d0, type MindooDBAppResolvedViewDefinition as d1, type MindooDBAppResolvedViewSource as d2, type MindooDBAppRevisionPhase as d3, type MindooDBAppRevisionVerification as d4, type MindooDBAppRichTextBlockSpan as d5, type MindooDBAppRichTextGetOptions as d6, type MindooDBAppRichTextImmutableString as d7, type MindooDBAppRichTextMarkRange as d8, type MindooDBAppRichTextMaterializeValue as d9, type MindooDBAppTextCursorPosition as dA, type MindooDBAppTextCursorPositionsResult as dB, type MindooDBAppTextCursorsResult as dC, type MindooDBAppTextEdit as dD, type MindooDBAppTextPatch as dE, type MindooDBAppThemeMode as dF, type MindooDBAppTimestampApi as dG, type MindooDBAppTimestampInput as dH, type MindooDBAppTimestampProvider as dI, type MindooDBAppTimestampResult as dJ, type MindooDBAppUiPreferences as dK, type MindooDBAppUpdateDocumentInput as dL, type MindooDBAppViewCursorDocumentListResult as dM, type MindooDBAppViewCursorResult as dN, type MindooDBAppViewEntry as dO, type MindooDBAppViewEntryKind as dP, type MindooDBAppViewNavigator as dQ, type MindooDBAppViewNavigatorExpansionState as dR, type MindooDBAppViewNavigatorOpenOptions as dS, type MindooDBAppViewNavigatorPageOptions as dT, type MindooDBAppViewNavigatorPageResult as dU, type MindooDBAppViewNavigatorRangeQuery as dV, type MindooDBAppViewNavigatorSelectionState as dW, type MindooDBAppViewUpdateStats as dX, type MindooDBAppViewport as dY, type MindooDBAppWellKnownDragType as dZ, type MindooDBAppWritableAttachmentStream as d_, type MindooDBAppRichTextPatch as da, type MindooDBAppRichTextScalar as db, type MindooDBAppRichTextSpliceStep as dc, type MindooDBAppRichTextStep as dd, type MindooDBAppRichTextStepPatch as de, type MindooDBAppRichTextTextSpan as df, type MindooDBAppRuntime as dg, type MindooDBAppScanAttachmentOptions as dh, type MindooDBAppScanAttachmentResult as di, type MindooDBAppScopedDocId as dj, type MindooDBAppScopedDocumentSummary as dk, type MindooDBAppSealIntent as dl, type MindooDBAppSealedChannelOpenInput as dm, type MindooDBAppSealedChannelOpenResult as dn, type MindooDBAppSealedChannelRequestInput as dp, type MindooDBAppSession as dq, type MindooDBAppShowMenuInput as dr, type MindooDBAppShowMenuResult as ds, type MindooDBAppSignPreview as dt, type MindooDBAppSignPreviewScope as du, type MindooDBAppSignStatementInput as dv, type MindooDBAppSignStatementResult as dw, type MindooDBAppStorageApi as dx, type MindooDBAppSummarySetup as dy, type MindooDBAppTextCursorOptions as dz, type MindooDBAppBridge as e, mindooDBAppComponentFieldsMatch as e0, resolveMindooDBAppDefinitionUrl as e1, resolveMindooDBAppListingAssetUrl as e2, resolveMindooDBAppLocalizedText as e3, validateMindooDBAppAccepts as e4, validateMindooDBAppAgentProfile as e5, validateMindooDBAppComponents as e6, validateMindooDBAppDefinition as e7, 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_AGENT_CAPABILITIES_MAX as r, MINDOODB_APP_AGENT_CAPABILITY_TITLE_MAX as s, MINDOODB_APP_AGENT_CAPABILITY_TOOLS_MAX as t, MINDOODB_APP_AGENT_EXAMPLE_MAX as u, MINDOODB_APP_AGENT_GUIDE_MAX_BYTES as v, MINDOODB_APP_AGENT_LIMIT_MAX as w, MINDOODB_APP_AGENT_LIST_MAX as x, MINDOODB_APP_AGENT_SUMMARY_MAX as y, MINDOODB_APP_AGENT_TOOL_NAME_PATTERN as z };
4479
+ export { type MindooDBAppAgentCapability as $, MINDOODB_APP_COMPONENTS_MAX as A, MINDOODB_APP_COMPONENT_CONTRACT_PATTERN as B, MINDOODB_APP_DEFINITION_FILE_NAME as C, MINDOODB_APP_DEFINITION_FORMAT as D, MINDOODB_APP_DEFINITION_PERMISSIONS as E, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as F, MINDOODB_APP_DEFINITION_VERSION as G, MINDOODB_APP_EMBED_EXPORT_MAX_BYTES as H, MINDOODB_APP_EMBED_VARIABLES_MAX as I, MINDOODB_APP_INSPECTION_FIELD as J, MINDOODB_APP_INSPECTION_MAX_BYTES as K, MINDOODB_APP_INSPECTION_SUMMARY_MAX_BYTES as L, type MindooDBAppAttachmentPreviewMode as M, MINDOODB_APP_ISSUES_MAX as N, MINDOODB_APP_LISTING_DESCRIPTION_MAX as O, MINDOODB_APP_LISTING_MAX_SCREENSHOTS as P, MINDOODB_APP_LISTING_SUMMARY_MAX as Q, MINDOODB_APP_SEAL_SIGNING_DOMAIN as R, MINDOODB_APP_VALUE_TAG as S, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as T, MINDOODB_INSPECT_DOCUMENT as U, MINDOODB_INSPECT_SLIDES as V, MINDOODB_INSPECT_SPREADSHEET as W, type MindooDBAppAcceptSpec as X, type MindooDBAppAccessDecision as Y, type MindooDBAppAccessTier as Z, type MindooDBAppAgentApi as _, type MindooDBAppDragBindSourceOptions as a, type MindooDBAppComponentIntent as a$, type MindooDBAppAgentProfile as a0, type MindooDBAppAgentRegistration as a1, type MindooDBAppAgentToolAnnotations as a2, type MindooDBAppAgentToolDescriptor as a3, type MindooDBAppAgentToolScope as a4, type MindooDBAppAtomicValue as a5, type MindooDBAppAttachmentApi as a6, type MindooDBAppAttachmentChunk as a7, type MindooDBAppAttachmentInfo as a8, type MindooDBAppAttachmentPreviewOptions as a9, type MindooDBAppBridgeReminderOpenedMessage 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 MindooDBAppComponentCategory as aW, type MindooDBAppComponentChildren as aX, type MindooDBAppComponentContract as aY, type MindooDBAppComponentFieldValue as aZ, type MindooDBAppComponentInfo as a_, type MindooDBAppAttachmentPreviewSession as aa, type MindooDBAppAutomergeChangesPatch as ab, type MindooDBAppAutomergeChangesSince as ac, type MindooDBAppAutomergeGetOptions as ad, type MindooDBAppAutomergePatchResult as ae, type MindooDBAppAutomergeSnapshot as af, type MindooDBAppBridgeAgentInvokeMessage as ag, type MindooDBAppBridgeAgentResultMessage as ah, type MindooDBAppBridgeBeforeCloseAck as ai, type MindooDBAppBridgeBeforeCloseMessage as aj, type MindooDBAppBridgeConnectMessage as ak, type MindooDBAppBridgeConnectOptions as al, type MindooDBAppBridgeConnectedMessage as am, type MindooDBAppBridgeDragDropMessage as an, type MindooDBAppBridgeDragLeaveMessage as ao, type MindooDBAppBridgeDragOverMessage as ap, type MindooDBAppBridgeEmbedEventMessage as aq, type MindooDBAppBridgeEmbedRequestMessage as ar, type MindooDBAppBridgeEmbeddingRequestMessage as as, type MindooDBAppBridgeErrorPayload as at, type MindooDBAppBridgeHandshakeErrorMessage as au, type MindooDBAppBridgeHostFocusChangedMessage as av, type MindooDBAppBridgeIncomingContentMessage as aw, type MindooDBAppBridgeLocaleChangedMessage as ax, type MindooDBAppBridgePortMessage as ay, type MindooDBAppBridgeQueryResultMessage as az, type MindooDBAppDragStartInput as b, type MindooDBAppEmbedCloseReason as b$, type MindooDBAppComponentQuery as b0, type MindooDBAppComponentReference as b1, type MindooDBAppComponentSpec as b2, type MindooDBAppComponentsApi as b3, type MindooDBAppConfiguredViewCategorizationStyle as b4, type MindooDBAppConfiguredViewColumn as b5, type MindooDBAppConfiguredViewColumnRole as b6, type MindooDBAppConfiguredViewExpressionMode as b7, type MindooDBAppConfiguredViewFieldExpression as b8, type MindooDBAppConfiguredViewFilterDefinition as b9, type MindooDBAppDocumentListQuery as bA, type MindooDBAppDocumentListResult as bB, type MindooDBAppDocumentQuery as bC, type MindooDBAppDocumentRevisionId as bD, type MindooDBAppDocumentRule as bE, type MindooDBAppDocumentRuleOutcome as bF, type MindooDBAppDocumentRules as bG, type MindooDBAppDocumentScanPreset as bH, type MindooDBAppDocumentSummary as bI, type MindooDBAppDragApi as bJ, type MindooDBAppDragCancelReason as bK, type MindooDBAppDragDropEvent as bL, type MindooDBAppDragEffect as bM, type MindooDBAppDragHoverResult as bN, type MindooDBAppDragOffer as bO, type MindooDBAppDragOverEvent as bP, type MindooDBAppDragPointer as bQ, type MindooDBAppDragProfile as bR, type MindooDBAppEmbed as bS, type MindooDBAppEmbedAccessComponent as bT, type MindooDBAppEmbedAccessInput as bU, type MindooDBAppEmbedAccessPair as bV, type MindooDBAppEmbedAccessResult as bW, type MindooDBAppEmbedAgentTools as bX, type MindooDBAppEmbedAgentToolsEvent as bY, type MindooDBAppEmbedBeforeSaveInput as bZ, type MindooDBAppEmbedBeforeSaveResult as b_, type MindooDBAppConfiguredViewFilterMode as ba, type MindooDBAppConfiguredViewFilterRule as bb, type MindooDBAppConfiguredViewFormulaExpression as bc, type MindooDBAppConfiguredViewFormulaFilterDefinition as bd, type MindooDBAppConfiguredViewPreviewMode as be, type MindooDBAppConfiguredViewRuleFilterDefinition as bf, type MindooDBAppConfiguredViewRuleMatchMode as bg, type MindooDBAppConfiguredViewRuleOperator as bh, type MindooDBAppConfiguredViewValueExpression as bi, type MindooDBAppCounterValue as bj, type MindooDBAppCreateKeyInfo as bk, type MindooDBAppCreateViewInput as bl, type MindooDBAppCreateViewNavigatorInput as bm, type MindooDBAppDatabaseInfo as bn, type MindooDBAppDefinitionDatabase as bo, type MindooDBAppDefinitionListing as bp, type MindooDBAppDefinitionPermission as bq, type MindooDBAppDefinitionRegistrationPermission as br, type MindooDBAppDefinitionScreenshot as bs, type MindooDBAppDefinitionValidation as bt, type MindooDBAppDirectoryApi as bu, type MindooDBAppDirectoryEntry as bv, type MindooDBAppDocumentApi as bw, type MindooDBAppDocumentHeadCursorResult as bx, type MindooDBAppDocumentHistoryEntry as by, type MindooDBAppDocumentInspection as bz, type MindooDBAppDragStartResult as c, type MindooDBAppMenuAnchor as c$, type MindooDBAppEmbedClosedEvent as c0, type MindooDBAppEmbedContext as c1, type MindooDBAppEmbedDirtyEvent as c2, type MindooDBAppEmbedExportFormat as c3, type MindooDBAppEmbedExportPayload as c4, type MindooDBAppEmbedExportRequest as c5, type MindooDBAppEmbedOpenInput as c6, type MindooDBAppEmbedRect as c7, type MindooDBAppEmbedSavedEvent as c8, type MindooDBAppEmbedTemplate as c9, type MindooDBAppIncomingContentInfo as cA, type MindooDBAppIncomingItem as cB, type MindooDBAppIncomingItemInfo as cC, type MindooDBAppIncomingResult as cD, type MindooDBAppIncomingSource as cE, type MindooDBAppInspectAnchor as cF, type MindooDBAppInspectRequest as cG, type MindooDBAppInspectedCell as cH, type MindooDBAppInspection as cI, type MindooDBAppInspectionBase as cJ, type MindooDBAppIssue as cK, type MindooDBAppIssueSeverity as cL, type MindooDBAppJsonCounterIncrementPatch as cM, type MindooDBAppJsonListDeletePatch as cN, type MindooDBAppJsonListInsertPatch as cO, type MindooDBAppJsonPatch as cP, type MindooDBAppJsonSetPatch as cQ, type MindooDBAppJsonTextMarkPatch as cR, type MindooDBAppJsonTextSplicePatch as cS, type MindooDBAppJsonTextUnmarkPatch as cT, type MindooDBAppJsonUnsetPatch as cU, type MindooDBAppLaunchContext as cV, type MindooDBAppListUsersOptions as cW, type MindooDBAppListUsersPage as cX, type MindooDBAppLiveQuerySubscription as cY, type MindooDBAppLocaleMap as cZ, type MindooDBAppLocalizedText as c_, type MindooDBAppEmbedValidation as ca, MindooDBAppEmbedValidationError as cb, type MindooDBAppEmbedVariable as cc, type MindooDBAppEmbeddingApi as cd, type MindooDBAppEmbeddingExport as ce, type MindooDBAppEmbeddingLookupOptions as cf, type MindooDBAppEmbeddingLookupResult as cg, type MindooDBAppEmbeddingResult as ch, type MindooDBAppEmbeddingSaveContext as ci, type MindooDBAppEmbedsApi as cj, type MindooDBAppEntryAttachmentRef as ck, type MindooDBAppEntryProvenance as cl, type MindooDBAppExtractDocumentTextInput as cm, type MindooDBAppExtractDocumentTextResult as cn, type MindooDBAppExtractTextFormat as co, type MindooDBAppExtractionSetup as cp, type MindooDBAppFulltextSetup as cq, type MindooDBAppHistoricalDocument as cr, type MindooDBAppHistoryQuery as cs, type MindooDBAppHostTheme as ct, type MindooDBAppIdentityApi as cu, type MindooDBAppInaccessibleDocument as cv, type MindooDBAppInaccessibleDocumentListQuery as cw, type MindooDBAppInaccessibleDocumentListResult as cx, type MindooDBAppIncomingContent as cy, type MindooDBAppIncomingContentHandler as cz, type MindooDBAppDragPreview as d, type MindooDBAppSession as d$, type MindooDBAppMenuApi as d0, type MindooDBAppMenuCommandItem as d1, type MindooDBAppMenuDismissReason as d2, type MindooDBAppMenuDismissedResult as d3, type MindooDBAppMenuItem as d4, type MindooDBAppMenuKind as d5, type MindooDBAppMenuPlacement as d6, type MindooDBAppMenuPointAnchor as d7, type MindooDBAppMenuRect as d8, type MindooDBAppMenuRectAnchor as d9, type MindooDBAppReminderRequest as dA, type MindooDBAppReminderScheduleResult as dB, type MindooDBAppRemindersApi as dC, type MindooDBAppResolvedViewDefinition as dD, type MindooDBAppResolvedViewSource as dE, type MindooDBAppRevisionPhase as dF, type MindooDBAppRevisionVerification as dG, type MindooDBAppRichTextBlockSpan as dH, type MindooDBAppRichTextGetOptions as dI, type MindooDBAppRichTextImmutableString as dJ, type MindooDBAppRichTextMarkRange as dK, type MindooDBAppRichTextMaterializeValue as dL, type MindooDBAppRichTextPatch as dM, type MindooDBAppRichTextScalar as dN, type MindooDBAppRichTextSpliceStep as dO, type MindooDBAppRichTextStep as dP, type MindooDBAppRichTextStepPatch as dQ, type MindooDBAppRichTextTextSpan as dR, type MindooDBAppRuntime as dS, type MindooDBAppScanAttachmentOptions as dT, type MindooDBAppScanAttachmentResult as dU, type MindooDBAppScopedDocId as dV, type MindooDBAppScopedDocumentSummary as dW, type MindooDBAppSealIntent as dX, type MindooDBAppSealedChannelOpenInput as dY, type MindooDBAppSealedChannelOpenResult as dZ, type MindooDBAppSealedChannelRequestInput as d_, type MindooDBAppMenuSelectionResult as da, type MindooDBAppMenuSeparatorItem as db, type MindooDBAppNotificationSeverity as dc, type MindooDBAppNotifyInput as dd, type MindooDBAppNotifyResult as de, type MindooDBAppPdfApi as df, type MindooDBAppPdfSignInput as dg, type MindooDBAppPdfSignResult as dh, type MindooDBAppPdfSignaturePosition as di, type MindooDBAppPdfSigner as dj, type MindooDBAppProposeAppInput as dk, type MindooDBAppProposeAppResult as dl, type MindooDBAppQueryCoverage as dm, type MindooDBAppQueryInclude as dn, type MindooDBAppQueryIncludeCardinality as dp, type MindooDBAppQueryIncludeSlots as dq, type MindooDBAppQueryResult as dr, type MindooDBAppQueryRow as ds, type MindooDBAppQuerySortKey as dt, type MindooDBAppQueryTextClause as du, type MindooDBAppReadableAttachmentStream as dv, type MindooDBAppRecipientOptions as dw, type MindooDBAppReminder as dx, type MindooDBAppReminderOpened as dy, type MindooDBAppReminderOpenedHandler as dz, type MindooDBAppBridge as e, summarizeMindooDBAppInspection as e$, type MindooDBAppShowMenuInput as e0, type MindooDBAppShowMenuResult as e1, type MindooDBAppSignPreview as e2, type MindooDBAppSignPreviewScope as e3, type MindooDBAppSignStatementInput as e4, type MindooDBAppSignStatementResult as e5, type MindooDBAppSlidesInspection as e6, type MindooDBAppSpreadsheetInspection as e7, type MindooDBAppStorageApi as e8, type MindooDBAppSummarySetup as e9, type MindooDBAppViewNavigatorSelectionState as eA, type MindooDBAppViewUpdateStats as eB, type MindooDBAppViewport as eC, type MindooDBAppWellKnownDragType as eD, type MindooDBAppWritableAttachmentStream as eE, defineDocumentRules as eF, mindooDBAppAcceptMatchesType as eG, mindooDBAppComponentFieldsMatch as eH, mindooDBAppComponentSupports as eI, mindooDBAppExportFile as eJ, mindooDBAppExportMimeType as eK, mindooDBAppExportPayload as eL, mindooDBAppInspectContracts as eM, mindooDBAppInspectRules as eN, mindooDBAppInspectionSummaryValue as eO, normalizeMindooDBAppEmbedExportRequest as eP, normalizeMindooDBAppEmbedVariables as eQ, normalizeMindooDBAppInspectAnchor as eR, normalizeMindooDBAppInspectRequest as eS, normalizeMindooDBAppInspection as eT, normalizeMindooDBAppIssues as eU, readMindooDBAppInspectionSummary as eV, resolveMindooDBAppDefinitionUrl as eW, resolveMindooDBAppEmbedValidation as eX, resolveMindooDBAppListingAssetUrl as eY, resolveMindooDBAppLocalizedText as eZ, resolveMindooDBAppVariables as e_, type MindooDBAppTextCursorOptions as ea, type MindooDBAppTextCursorPosition as eb, type MindooDBAppTextCursorPositionsResult as ec, type MindooDBAppTextCursorsResult as ed, type MindooDBAppTextEdit as ee, type MindooDBAppTextPatch as ef, type MindooDBAppThemeMode as eg, type MindooDBAppTimestampApi as eh, type MindooDBAppTimestampInput as ei, type MindooDBAppTimestampProvider as ej, type MindooDBAppTimestampResult as ek, type MindooDBAppTimestampValue as el, type MindooDBAppTypedValue as em, type MindooDBAppUiPreferences as en, type MindooDBAppUpdateDocumentInput as eo, MindooDBAppValue as ep, type MindooDBAppViewCursorDocumentListResult as eq, type MindooDBAppViewCursorResult as er, type MindooDBAppViewEntry as es, type MindooDBAppViewEntryKind as et, type MindooDBAppViewNavigator as eu, type MindooDBAppViewNavigatorExpansionState as ev, type MindooDBAppViewNavigatorOpenOptions as ew, type MindooDBAppViewNavigatorPageOptions as ex, type MindooDBAppViewNavigatorPageResult as ey, type MindooDBAppViewNavigatorRangeQuery as ez, type MindooDBAppAgentToolErrorCode as f, validateMindooDBAppAccepts as f0, validateMindooDBAppAgentProfile as f1, validateMindooDBAppComponents as f2, validateMindooDBAppDefinition as f3, 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_AGENT_CAPABILITIES_MAX as r, MINDOODB_APP_AGENT_CAPABILITY_TITLE_MAX as s, MINDOODB_APP_AGENT_CAPABILITY_TOOLS_MAX as t, MINDOODB_APP_AGENT_EXAMPLE_MAX as u, MINDOODB_APP_AGENT_GUIDE_MAX_BYTES as v, MINDOODB_APP_AGENT_LIMIT_MAX as w, MINDOODB_APP_AGENT_LIST_MAX as x, MINDOODB_APP_AGENT_SUMMARY_MAX as y, MINDOODB_APP_AGENT_TOOL_NAME_PATTERN as z };