@anchrd/intel 0.59.0
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 +496 -0
- package/bin/intel.mjs +134 -0
- package/dist/adapters/cloudflare/cloudflare-flow-workflow.d.ts +42 -0
- package/dist/adapters/cloudflare/cloudflare-flow-workflow.js +89 -0
- package/dist/adapters/cloudflare/cloudflare.d.ts +29 -0
- package/dist/adapters/cloudflare/cloudflare.js +416 -0
- package/dist/adapters/cloudflare/cloudflare.types.d.ts +31 -0
- package/dist/adapters/cloudflare/cloudflare.types.js +1 -0
- package/dist/adapters/content/content.d.ts +3 -0
- package/dist/adapters/content/content.js +128 -0
- package/dist/adapters/content/content.types.d.ts +38 -0
- package/dist/adapters/content/content.types.js +1 -0
- package/dist/adapters/db/db-audit.d.ts +62 -0
- package/dist/adapters/db/db-audit.js +150 -0
- package/dist/adapters/db/db-boards.d.ts +6 -0
- package/dist/adapters/db/db-boards.js +324 -0
- package/dist/adapters/db/db-feed.d.ts +30 -0
- package/dist/adapters/db/db-feed.js +276 -0
- package/dist/adapters/db/db-flows.d.ts +42 -0
- package/dist/adapters/db/db-flows.js +1311 -0
- package/dist/adapters/db/db-grants.d.ts +133 -0
- package/dist/adapters/db/db-grants.js +269 -0
- package/dist/adapters/db/db-indexing.d.ts +3 -0
- package/dist/adapters/db/db-indexing.js +200 -0
- package/dist/adapters/db/db-oauth.d.ts +3 -0
- package/dist/adapters/db/db-oauth.js +26 -0
- package/dist/adapters/db/db-prompts.d.ts +46 -0
- package/dist/adapters/db/db-prompts.js +144 -0
- package/dist/adapters/db/db.d.ts +6 -0
- package/dist/adapters/db/db.js +1687 -0
- package/dist/adapters/db/db.types.d.ts +16 -0
- package/dist/adapters/db/db.types.js +1 -0
- package/dist/adapters/document-converter/document-converter.d.ts +2 -0
- package/dist/adapters/document-converter/document-converter.js +26 -0
- package/dist/adapters/document-converter/document-converter.types.d.ts +17 -0
- package/dist/adapters/document-converter/document-converter.types.js +1 -0
- package/dist/adapters/flow-runtime/flow-runtime.d.ts +3 -0
- package/dist/adapters/flow-runtime/flow-runtime.js +22 -0
- package/dist/adapters/flow-runtime/flow-runtime.types.d.ts +19 -0
- package/dist/adapters/flow-runtime/flow-runtime.types.js +1 -0
- package/dist/adapters/index-queue/index-queue.d.ts +10 -0
- package/dist/adapters/index-queue/index-queue.js +12 -0
- package/dist/adapters/index-queue/index-queue.types.d.ts +11 -0
- package/dist/adapters/index-queue/index-queue.types.js +1 -0
- package/dist/adapters/json-schema/json-schema.d.ts +2 -0
- package/dist/adapters/json-schema/json-schema.js +77 -0
- package/dist/adapters/openid/openid.d.ts +5 -0
- package/dist/adapters/openid/openid.js +301 -0
- package/dist/adapters/portal-tokens/portal-tokens.d.ts +8 -0
- package/dist/adapters/portal-tokens/portal-tokens.js +79 -0
- package/dist/adapters/remote-tools/remote-tools.d.ts +5 -0
- package/dist/adapters/remote-tools/remote-tools.js +129 -0
- package/dist/adapters/semantic-index/semantic-index.d.ts +2 -0
- package/dist/adapters/semantic-index/semantic-index.js +139 -0
- package/dist/adapters/semantic-index/semantic-index.types.d.ts +56 -0
- package/dist/adapters/semantic-index/semantic-index.types.js +1 -0
- package/dist/adapters/session-cookie/session-cookie.d.ts +5 -0
- package/dist/adapters/session-cookie/session-cookie.js +87 -0
- package/dist/adapters/tool-source-policy/tool-source-policy.d.ts +1 -0
- package/dist/adapters/tool-source-policy/tool-source-policy.js +22 -0
- package/dist/audit/audit.d.ts +2 -0
- package/dist/audit/audit.js +87 -0
- package/dist/audit/audit.types.d.ts +23 -0
- package/dist/audit/audit.types.js +1 -0
- package/dist/auth/auth.d.ts +2 -0
- package/dist/auth/auth.js +284 -0
- package/dist/auth/auth.types.d.ts +108 -0
- package/dist/auth/auth.types.js +1 -0
- package/dist/boards/boards.d.ts +44 -0
- package/dist/boards/boards.js +447 -0
- package/dist/boards/boards.types.d.ts +117 -0
- package/dist/boards/boards.types.js +1 -0
- package/dist/build/build.d.ts +2 -0
- package/dist/build/build.js +192 -0
- package/dist/build/build.types.d.ts +17 -0
- package/dist/build/build.types.js +1 -0
- package/dist/bundle/bundle.d.ts +4 -0
- package/dist/bundle/bundle.js +1194 -0
- package/dist/bundle/bundle.types.d.ts +33 -0
- package/dist/bundle/bundle.types.js +1 -0
- package/dist/cli/cli.d.ts +4 -0
- package/dist/cli/cli.js +262 -0
- package/dist/cli/cli.types.d.ts +14 -0
- package/dist/cli/cli.types.js +1 -0
- package/dist/contract/audit.d.ts +50 -0
- package/dist/contract/audit.js +72 -0
- package/dist/contract/board.d.ts +150 -0
- package/dist/contract/board.js +262 -0
- package/dist/contract/bundle.d.ts +147 -0
- package/dist/contract/bundle.js +139 -0
- package/dist/contract/contract.d.ts +112 -0
- package/dist/contract/contract.js +143 -0
- package/dist/contract/feed.d.ts +126 -0
- package/dist/contract/feed.js +149 -0
- package/dist/contract/flow-run.d.ts +346 -0
- package/dist/contract/flow-run.js +194 -0
- package/dist/contract/flow.d.ts +1057 -0
- package/dist/contract/flow.js +552 -0
- package/dist/contract/node.d.ts +551 -0
- package/dist/contract/node.js +456 -0
- package/dist/contract/share.d.ts +216 -0
- package/dist/contract/share.js +134 -0
- package/dist/contract/table.d.ts +171 -0
- package/dist/contract/table.js +117 -0
- package/dist/contract/tool.d.ts +122 -0
- package/dist/contract/tool.js +172 -0
- package/dist/feed/feed.d.ts +2 -0
- package/dist/feed/feed.js +77 -0
- package/dist/feed/feed.types.d.ts +23 -0
- package/dist/feed/feed.types.js +1 -0
- package/dist/flows/flows.d.ts +41 -0
- package/dist/flows/flows.js +2216 -0
- package/dist/flows/flows.types.d.ts +339 -0
- package/dist/flows/flows.types.js +1 -0
- package/dist/http/http.d.ts +9 -0
- package/dist/http/http.js +874 -0
- package/dist/http/http.types.d.ts +22 -0
- package/dist/http/http.types.js +1 -0
- package/dist/indexing/indexing.d.ts +6 -0
- package/dist/indexing/indexing.js +239 -0
- package/dist/indexing/indexing.types.d.ts +11 -0
- package/dist/indexing/indexing.types.js +1 -0
- package/dist/intel/intel.d.ts +3 -0
- package/dist/intel/intel.js +194 -0
- package/dist/intel/intel.types.d.ts +24 -0
- package/dist/intel/intel.types.js +1 -0
- package/dist/mcp/mcp.d.ts +2 -0
- package/dist/mcp/mcp.js +1292 -0
- package/dist/mcp/mcp.types.d.ts +25 -0
- package/dist/mcp/mcp.types.js +1 -0
- package/dist/nodes/document-links/document-links.d.ts +20 -0
- package/dist/nodes/document-links/document-links.js +57 -0
- package/dist/nodes/nodes.d.ts +2 -0
- package/dist/nodes/nodes.js +1667 -0
- package/dist/nodes/nodes.types.d.ts +511 -0
- package/dist/nodes/nodes.types.js +1 -0
- package/dist/prepare/prepare.d.ts +4 -0
- package/dist/prepare/prepare.js +16 -0
- package/dist/prepare/prepare.types.d.ts +9 -0
- package/dist/prepare/prepare.types.js +1 -0
- package/dist/prompts/prompts.d.ts +2 -0
- package/dist/prompts/prompts.js +65 -0
- package/dist/prompts/prompts.types.d.ts +71 -0
- package/dist/prompts/prompts.types.js +1 -0
- package/dist/shared/callers/callers.d.ts +28 -0
- package/dist/shared/callers/callers.js +30 -0
- package/dist/shared/csv/csv.d.ts +13 -0
- package/dist/shared/csv/csv.js +85 -0
- package/dist/shared/document-text/document-text.d.ts +21 -0
- package/dist/shared/document-text/document-text.js +31 -0
- package/dist/shared/gate-authorization/gate-authorization.d.ts +5 -0
- package/dist/shared/gate-authorization/gate-authorization.js +26 -0
- package/dist/shared/grant-expiry/grant-expiry.d.ts +19 -0
- package/dist/shared/grant-expiry/grant-expiry.js +26 -0
- package/dist/shared/intel-error/intel-error.d.ts +22 -0
- package/dist/shared/intel-error/intel-error.js +27 -0
- package/dist/shared/plain-title/plain-title.d.ts +16 -0
- package/dist/shared/plain-title/plain-title.js +45 -0
- package/dist/shared/problem-details/problem-details.d.ts +30 -0
- package/dist/shared/problem-details/problem-details.js +18 -0
- package/dist/shared/report-unexpected-error/report-unexpected-error.d.ts +1 -0
- package/dist/shared/report-unexpected-error/report-unexpected-error.js +37 -0
- package/dist/shared/safe-return-path/safe-return-path.d.ts +2 -0
- package/dist/shared/safe-return-path/safe-return-path.js +11 -0
- package/dist/shared/sha256/sha256.d.ts +2 -0
- package/dist/shared/sha256/sha256.js +14 -0
- package/dist/tools/tool-servers/tool-servers.d.ts +46 -0
- package/dist/tools/tool-servers/tool-servers.js +177 -0
- package/dist/tools/tools.d.ts +2 -0
- package/dist/tools/tools.js +207 -0
- package/dist/tools/tools.types.d.ts +56 -0
- package/dist/tools/tools.types.js +1 -0
- package/examples/branding/favicon.svg +5 -0
- package/examples/branding/logo.svg +5 -0
- package/examples/branding/theme.css +16 -0
- package/examples/dev.vars.example +7 -0
- package/examples/intel.json +9 -0
- package/migrations/0000_intel_foundation.sql +203 -0
- package/migrations/0001_portal_native_tools.sql +21 -0
- package/migrations/0002_flows_in_the_knowledge_tree.sql +34 -0
- package/migrations/0003_folder_permissions.sql +211 -0
- package/migrations/0004_subflow_runs.sql +14 -0
- package/migrations/0005_flow_node_cleanup.sql +28 -0
- package/migrations/0005_tables_in_the_knowledge_tree.sql +68 -0
- package/migrations/0006_links_are_written_in_the_text.sql +20 -0
- package/migrations/0007_no_node_waits.sql +69 -0
- package/migrations/0008_three_layers.sql +130 -0
- package/migrations/0009_no_context_policy.sql +48 -0
- package/migrations/0010_no_run_waits_a_year.sql +27 -0
- package/migrations/0011_one_name_for_the_tree.sql +53 -0
- package/migrations/0012_table_snapshots.sql +29 -0
- package/migrations/0017_a_vector_per_card.sql +38 -0
- package/migrations/0018_no_context_policy_at_last.sql +97 -0
- package/migrations/0019_one_name_for_the_grants.sql +52 -0
- package/migrations/0020_cascade_purge_replay.sql +11 -0
- package/migrations/0021_a_flow_carries_its_own_grant.sql +44 -0
- package/migrations/0022_a_cursor_over_the_journal.sql +14 -0
- package/migrations/0023_a_board_and_its_tasks.sql +116 -0
- package/migrations/0024_the_archive_is_a_column.sql +33 -0
- package/migrations/0025_archiving_takes_the_subtree.sql +29 -0
- package/migrations/0026_one_feed_over_two_kinds.sql +23 -0
- package/migrations/0027_the_runs_of_every_flow.sql +27 -0
- package/migrations/0028_a_prompt_name_over_two_kinds.sql +70 -0
- package/package.json +118 -0
- package/src/contract/CLAUDE.md +152 -0
- package/src/contract/README.md +102 -0
- package/src/contract/audit.ts +85 -0
- package/src/contract/board.ts +306 -0
- package/src/contract/bundle.ts +157 -0
- package/src/contract/contract.ts +161 -0
- package/src/contract/feed.ts +165 -0
- package/src/contract/flow-run.ts +241 -0
- package/src/contract/flow.ts +675 -0
- package/src/contract/node.ts +583 -0
- package/src/contract/share.ts +196 -0
- package/src/contract/table.ts +178 -0
- package/src/contract/tool.ts +202 -0
- package/ui/README.md +110 -0
- package/ui/components.json +21 -0
- package/ui/index.html +13 -0
- package/ui/package.json +11 -0
- package/ui/scripts/lint-tokens.mjs +187 -0
- package/ui/src/access-summary/access-summary.tsx +385 -0
- package/ui/src/app/action-slot/action-slot.tsx +27 -0
- package/ui/src/app/app-sidebar/app-sidebar.tsx +71 -0
- package/ui/src/app/app-tree/app-tree.tsx +1175 -0
- package/ui/src/app/app.tsx +87 -0
- package/ui/src/app/header-search/header-search.tsx +294 -0
- package/ui/src/app/reindex-dialog/reindex-dialog.tsx +79 -0
- package/ui/src/app/settings-dialog/settings-dialog.tsx +135 -0
- package/ui/src/app/sidebar-preferences/sidebar-preferences.ts +68 -0
- package/ui/src/app/sidebar-preferences/sidebar-preferences.types.ts +15 -0
- package/ui/src/app/sidebar-resize-handle/sidebar-resize-handle.tsx +86 -0
- package/ui/src/app/tree-expansion/tree-expansion.ts +107 -0
- package/ui/src/app/tree-expansion/tree-expansion.types.ts +31 -0
- package/ui/src/app/tree-move/tree-move.tsx +427 -0
- package/ui/src/app/tree-reveal/tree-reveal.ts +64 -0
- package/ui/src/app/tree-reveal/tree-reveal.types.ts +16 -0
- package/ui/src/app/user-footer/user-footer.tsx +188 -0
- package/ui/src/app/view-menu/view-menu.tsx +115 -0
- package/ui/src/app-root/app-root.tsx +109 -0
- package/ui/src/app-root/app-root.types.ts +27 -0
- package/ui/src/archive/archive.tsx +417 -0
- package/ui/src/attachment-detail/attachment-detail.ts +52 -0
- package/ui/src/attachment-viewer/attachment-viewer.tsx +166 -0
- package/ui/src/blocknote-view/blocknote-view.tsx +30 -0
- package/ui/src/board/board-assignee/board-assignee-picker.tsx +132 -0
- package/ui/src/board/board-assignee/board-assignee.ts +48 -0
- package/ui/src/board/board-assignee/board-assignee.tsx +75 -0
- package/ui/src/board/board-chip/board-chip.tsx +46 -0
- package/ui/src/board/board-crumbs/board-crumbs.ts +56 -0
- package/ui/src/board/board-crumbs/board-crumbs.tsx +111 -0
- package/ui/src/board/board-data/board-data.ts +195 -0
- package/ui/src/board/board-data/board-data.types.ts +38 -0
- package/ui/src/board/board-dates/board-dates.ts +40 -0
- package/ui/src/board/board-dates/board-dates.tsx +105 -0
- package/ui/src/board/board-kanban/board-kanban.ts +162 -0
- package/ui/src/board/board-kanban/board-kanban.tsx +680 -0
- package/ui/src/board/board-open-task/board-open-task.ts +32 -0
- package/ui/src/board/board-panel/board-panel.tsx +259 -0
- package/ui/src/board/board-settings/board-settings.tsx +226 -0
- package/ui/src/board/board-status/board-status.tsx +60 -0
- package/ui/src/board/board-stripes/board-stripes.ts +128 -0
- package/ui/src/board/board-table/board-table.ts +53 -0
- package/ui/src/board/board-table/board-table.tsx +610 -0
- package/ui/src/board/board-task/board-task.ts +108 -0
- package/ui/src/board/board-task/board-task.tsx +335 -0
- package/ui/src/board/board-title-row/board-title-row.tsx +66 -0
- package/ui/src/branding/branding.tsx +17 -0
- package/ui/src/branding/custom-logo.ts +1 -0
- package/ui/src/branding/favicon.default.svg +5 -0
- package/ui/src/branding/favicon.svg +5 -0
- package/ui/src/components/ui/avatar.tsx +39 -0
- package/ui/src/components/ui/button.tsx +64 -0
- package/ui/src/components/ui/collapsible.tsx +20 -0
- package/ui/src/components/ui/command.tsx +160 -0
- package/ui/src/components/ui/dialog.tsx +143 -0
- package/ui/src/components/ui/dropdown-menu.tsx +187 -0
- package/ui/src/components/ui/input.tsx +21 -0
- package/ui/src/components/ui/popover.tsx +41 -0
- package/ui/src/components/ui/select.tsx +163 -0
- package/ui/src/components/ui/separator.tsx +26 -0
- package/ui/src/components/ui/sheet.tsx +136 -0
- package/ui/src/components/ui/sidebar.tsx +693 -0
- package/ui/src/components/ui/skeleton.tsx +13 -0
- package/ui/src/components/ui/switch.tsx +25 -0
- package/ui/src/components/ui/table.tsx +82 -0
- package/ui/src/components/ui/tabs.tsx +52 -0
- package/ui/src/components/ui/tooltip.tsx +51 -0
- package/ui/src/data/intel-data-provider/intel-data-provider.ts +685 -0
- package/ui/src/data/intel-data-provider/intel-data-provider.types.ts +266 -0
- package/ui/src/data/query-client.ts +18 -0
- package/ui/src/data/request-refusal/refusal-notice.tsx +36 -0
- package/ui/src/data/request-refusal/request-refusal.ts +51 -0
- package/ui/src/data/sign-in/sign-in.ts +97 -0
- package/ui/src/data/sign-in/sign-in.types.ts +15 -0
- package/ui/src/document-link/document-link.tsx +114 -0
- package/ui/src/document-markdown/document-markdown.ts +195 -0
- package/ui/src/editor-schema/editor-schema.ts +23 -0
- package/ui/src/entry-picker/entry-picker.tsx +238 -0
- package/ui/src/feed/feed.tsx +344 -0
- package/ui/src/file-preview/file-preview-view.tsx +496 -0
- package/ui/src/file-preview/file-preview.tsx +28 -0
- package/ui/src/file-preview/pdf-file-preview.tsx +5 -0
- package/ui/src/file-preview/presentation-file-preview.tsx +21 -0
- package/ui/src/file-preview/spreadsheet-file-preview.tsx +5 -0
- package/ui/src/file-preview/word-file-preview.tsx +5 -0
- package/ui/src/flow-runs/flow-runs.tsx +238 -0
- package/ui/src/flows/flows.tsx +1646 -0
- package/ui/src/flows/node-icon/node-icon.ts +34 -0
- package/ui/src/flows/node-palette/node-palette.tsx +214 -0
- package/ui/src/flows/node-palette/node-palette.types.ts +15 -0
- package/ui/src/folder-contents/folder-contents.tsx +321 -0
- package/ui/src/folder-index/folder-index.ts +55 -0
- package/ui/src/frontmatter/frontmatter.tsx +193 -0
- package/ui/src/graph-pane/graph-pane.tsx +53 -0
- package/ui/src/hooks/use-mobile.ts +19 -0
- package/ui/src/i18n/custom.json +4 -0
- package/ui/src/i18n/de.json +609 -0
- package/ui/src/i18n/en.json +609 -0
- package/ui/src/i18n/es.json +609 -0
- package/ui/src/i18n/i18n-context.tsx +65 -0
- package/ui/src/i18n/i18n-languages/i18n-languages.ts +83 -0
- package/ui/src/i18n/i18n.ts +32 -0
- package/ui/src/i18n/i18n.types.ts +49 -0
- package/ui/src/kind-icon.ts +97 -0
- package/ui/src/lib/utils.ts +6 -0
- package/ui/src/main.tsx +68 -0
- package/ui/src/modal/modal.tsx +53 -0
- package/ui/src/node-details/node-details.tsx +545 -0
- package/ui/src/node-editor/node-editor.tsx +304 -0
- package/ui/src/node-graph/graph-notice.tsx +21 -0
- package/ui/src/node-graph/node-graph.ts +214 -0
- package/ui/src/node-graph/node-graph.tsx +295 -0
- package/ui/src/node-import/node-import.tsx +418 -0
- package/ui/src/node-save-error.ts +46 -0
- package/ui/src/node-source/node-source.tsx +128 -0
- package/ui/src/node-table/node-table.tsx +107 -0
- package/ui/src/nodes/nodes.tsx +240 -0
- package/ui/src/rename-resource/rename-resource.ts +80 -0
- package/ui/src/resolved-names/resolved-names.tsx +67 -0
- package/ui/src/resource-error.ts +33 -0
- package/ui/src/resource-menu/resource-menu.tsx +1156 -0
- package/ui/src/router/router-context.ts +6 -0
- package/ui/src/router/router.tsx +67 -0
- package/ui/src/router/router.types.ts +8 -0
- package/ui/src/router/selection-search.ts +88 -0
- package/ui/src/save-button/save-button.tsx +94 -0
- package/ui/src/section-hint/section-hint.tsx +40 -0
- package/ui/src/sign-in-refused/sign-in-refused.tsx +35 -0
- package/ui/src/styles.css +189 -0
- package/ui/src/table-columns/table-columns.tsx +379 -0
- package/ui/src/theme/custom.css +1 -0
- package/ui/src/theme/theme-context.tsx +89 -0
- package/ui/src/theme/theme.ts +70 -0
- package/ui/src/time/relative-time.tsx +41 -0
- package/ui/src/time/time-context.tsx +78 -0
- package/ui/src/time/time.ts +165 -0
- package/ui/src/title-row/title-row.tsx +185 -0
- package/ui/src/tools/tools.tsx +546 -0
- package/ui/src/user-name/user-name.ts +61 -0
- package/ui/src/verbatim/verbatim.tsx +68 -0
- package/ui/tsconfig.json +17 -0
- package/ui/vite.config.ts +129 -0
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const NodeKind: z.ZodEnum<{
|
|
3
|
+
folder: "folder";
|
|
4
|
+
document: "document";
|
|
5
|
+
attachment: "attachment";
|
|
6
|
+
table: "table";
|
|
7
|
+
board: "board";
|
|
8
|
+
task: "task";
|
|
9
|
+
}>;
|
|
10
|
+
export type NodeKind = z.infer<typeof NodeKind>;
|
|
11
|
+
export declare const Node: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
14
|
+
kind: z.ZodEnum<{
|
|
15
|
+
folder: "folder";
|
|
16
|
+
document: "document";
|
|
17
|
+
attachment: "attachment";
|
|
18
|
+
table: "table";
|
|
19
|
+
board: "board";
|
|
20
|
+
task: "task";
|
|
21
|
+
}>;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
description: z.ZodNullable<z.ZodString>;
|
|
24
|
+
ownerId: z.ZodString;
|
|
25
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
createdAt: z.ZodISODateTime;
|
|
27
|
+
updatedAt: z.ZodISODateTime;
|
|
28
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
29
|
+
promptName: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
export type Node = z.infer<typeof Node>;
|
|
32
|
+
export declare const NodeVersionSegment: z.ZodEnum<{
|
|
33
|
+
append: "append";
|
|
34
|
+
snapshot: "snapshot";
|
|
35
|
+
}>;
|
|
36
|
+
export type NodeVersionSegment = z.infer<typeof NodeVersionSegment>;
|
|
37
|
+
export declare const NodeVersion: z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
nodeId: z.ZodString;
|
|
40
|
+
sequence: z.ZodNumber;
|
|
41
|
+
contentKey: z.ZodString;
|
|
42
|
+
mediaType: z.ZodString;
|
|
43
|
+
contentHash: z.ZodString;
|
|
44
|
+
size: z.ZodNumber;
|
|
45
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
46
|
+
append: "append";
|
|
47
|
+
snapshot: "snapshot";
|
|
48
|
+
}>>;
|
|
49
|
+
createdBy: z.ZodString;
|
|
50
|
+
createdAt: z.ZodISODateTime;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export type NodeVersion = z.infer<typeof NodeVersion>;
|
|
53
|
+
export declare const ListNodesInput: z.ZodObject<{
|
|
54
|
+
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
includeArchived: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
+
archivedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
export type ListNodesInput = z.infer<typeof ListNodesInput>;
|
|
59
|
+
export declare const GetNodeInput: z.ZodObject<{
|
|
60
|
+
nodeId: z.ZodString;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
export type GetNodeInput = z.infer<typeof GetNodeInput>;
|
|
63
|
+
/**
|
|
64
|
+
* An attachment, with the option of its bytes.
|
|
65
|
+
*
|
|
66
|
+
* ⚠️ One tool rather than a second one beside `node_attachment_get`, because the grammar in
|
|
67
|
+
* `packages/intel/CLAUDE.md` gives one verb one meaning: `get` reads one, and metadata and bytes are
|
|
68
|
+
* two halves of the same one. It mirrors HTTP, where `GET /nodes/:nodeId/attachment` and its
|
|
69
|
+
* `/meta` sibling have always been the same tool.
|
|
70
|
+
*
|
|
71
|
+
* ⚠️ The default is `false` on purpose. The bytes travel as base64 in the answer, so asking for
|
|
72
|
+
* them by accident would put a whole file into a model's context; a caller that wants the file says
|
|
73
|
+
* so. `SaveAttachmentInput` has carried bytes the other way since the beginning — this closes the
|
|
74
|
+
* asymmetry that let a model upload a PDF it could never read back (#773).
|
|
75
|
+
*/
|
|
76
|
+
export declare const GetAttachmentInput: z.ZodObject<{
|
|
77
|
+
nodeId: z.ZodString;
|
|
78
|
+
includeContent: z.ZodDefault<z.ZodBoolean>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
export type GetAttachmentInput = z.infer<typeof GetAttachmentInput>;
|
|
81
|
+
export declare const GetNodeVersionInput: z.ZodObject<{
|
|
82
|
+
nodeId: z.ZodString;
|
|
83
|
+
versionId: z.ZodString;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
export type GetNodeVersionInput = z.infer<typeof GetNodeVersionInput>;
|
|
86
|
+
export declare const CreateNodeInput: z.ZodObject<{
|
|
87
|
+
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
kind: z.ZodEnum<{
|
|
89
|
+
folder: "folder";
|
|
90
|
+
document: "document";
|
|
91
|
+
attachment: "attachment";
|
|
92
|
+
table: "table";
|
|
93
|
+
board: "board";
|
|
94
|
+
task: "task";
|
|
95
|
+
}>;
|
|
96
|
+
title: z.ZodString;
|
|
97
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
idempotencyKey: z.ZodString;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
export type CreateNodeInput = z.infer<typeof CreateNodeInput>;
|
|
101
|
+
export declare const SaveNodeVersionInput: z.ZodObject<{
|
|
102
|
+
nodeId: z.ZodString;
|
|
103
|
+
baseVersionId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
104
|
+
content: z.ZodString;
|
|
105
|
+
mediaType: z.ZodDefault<z.ZodString>;
|
|
106
|
+
idempotencyKey: z.ZodString;
|
|
107
|
+
}, z.core.$strict>;
|
|
108
|
+
export type SaveNodeVersionInput = z.infer<typeof SaveNodeVersionInput>;
|
|
109
|
+
export declare const SaveAttachmentInput: z.ZodObject<{
|
|
110
|
+
nodeId: z.ZodString;
|
|
111
|
+
baseVersionId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
112
|
+
contentBase64: z.ZodString;
|
|
113
|
+
mediaType: z.ZodString;
|
|
114
|
+
idempotencyKey: z.ZodString;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
export type SaveAttachmentInput = z.infer<typeof SaveAttachmentInput>;
|
|
117
|
+
/**
|
|
118
|
+
* How many bytes an attachment may carry through the streaming door (#821).
|
|
119
|
+
*
|
|
120
|
+
* ⚠️ **This is our number, not the platform's.** A Worker refuses a request body over 100 MB on the
|
|
121
|
+
* Free and Pro plans (200 MB on Business, 500 MB on Enterprise by default), and the isolate that
|
|
122
|
+
* receives it has 128 MB of memory for everything it does at once. 50 MB is the presentation and
|
|
123
|
+
* PDF size this was raised for, and it leaves the hard ceiling a factor of two away — which is what
|
|
124
|
+
* makes a file over the limit a sentence the reader gets rather than a connection that drops.
|
|
125
|
+
*
|
|
126
|
+
* ⚠️ It is not the limit of the base64 door beside it. That one stays where it was, because there
|
|
127
|
+
* the file exists twice in memory before a single byte is stored; `contentBase64` says so.
|
|
128
|
+
*/
|
|
129
|
+
/**
|
|
130
|
+
* The name a document takes to become the TEXT OF ITS FOLDER (#824).
|
|
131
|
+
*
|
|
132
|
+
* ⚠️ It is a convention that already existed: nearly every folder in this installation holds a
|
|
133
|
+
* document called `index` describing what is in it, and every person had to be told so. A surface
|
|
134
|
+
* that serves the convention makes the telling unnecessary — and nothing about the model changes:
|
|
135
|
+
* the document stays a document, in full text and in the vectors, with its versions, without a
|
|
136
|
+
* length limit and with version-pinned citations.
|
|
137
|
+
*
|
|
138
|
+
* ⚠️ **The comparison is case-insensitive, and `index.md` counts too.** The three spellings the
|
|
139
|
+
* decision names — `index`, `Index`, `index.md` — are all covered by it, and so are the ones nobody
|
|
140
|
+
* thought of. A list of exact spellings would make `INDEX` a different document from `index` for no
|
|
141
|
+
* reason a reader could guess.
|
|
142
|
+
*
|
|
143
|
+
* ⚠️ It lives in the contract because three surfaces need the same answer: the browser hides the
|
|
144
|
+
* row, the MCP tool description explains the name to a model, and neither may disagree with the
|
|
145
|
+
* other about what counts.
|
|
146
|
+
*/
|
|
147
|
+
export declare function isFolderIndexTitle(title: string): boolean;
|
|
148
|
+
export declare const MaxAttachmentBytes = 50000000;
|
|
149
|
+
/**
|
|
150
|
+
* The largest attachment whose CONTENTS are read and converted for the index (#821).
|
|
151
|
+
*
|
|
152
|
+
* ⚠️ A bigger file is stored, opened and downloaded exactly like any other; what it does not get is
|
|
153
|
+
* a search over its text. The indexing pass reads an attachment into memory whole and hands it to
|
|
154
|
+
* the converter as a blob beside it, so at 50 MB it would meet the isolate's 128 MB — and an upload
|
|
155
|
+
* that succeeds and then dies while being indexed is the worst of both: the file is filed and
|
|
156
|
+
* cannot be found.
|
|
157
|
+
*
|
|
158
|
+
* ⚠️ The number is 15 MB because that is what the old upload limit was. Every file that could be
|
|
159
|
+
* uploaded before this ticket therefore behaves exactly as it did; only the sizes that were
|
|
160
|
+
* impossible until now fall into the new case. Raising it is a measurement, not a decision to take
|
|
161
|
+
* in passing.
|
|
162
|
+
*/
|
|
163
|
+
export declare const MaxIndexedAttachmentBytes = 15000000;
|
|
164
|
+
/**
|
|
165
|
+
* The streaming door for one attachment: everything ABOUT the bytes, while the bytes are the
|
|
166
|
+
* request body (#821).
|
|
167
|
+
*
|
|
168
|
+
* ⚠️ It has no MCP twin, and that is the one place where "every capability has an MCP equivalent"
|
|
169
|
+
* is answered by the door beside it instead: MCP carries JSON, so a tool cannot hand over a body.
|
|
170
|
+
* `SaveAttachmentInput` IS the MCP form of this capability, and the size is what separates them.
|
|
171
|
+
*
|
|
172
|
+
* ⚠️ `mediaType` travels as the request's own `content-type`, and `size` as its `content-length`.
|
|
173
|
+
* Both are read from the headers rather than invented here, because the body they describe is the
|
|
174
|
+
* body being sent; a second, hand-written statement about the same bytes is a second truth.
|
|
175
|
+
*/
|
|
176
|
+
export declare const SaveAttachmentBytesInput: z.ZodObject<{
|
|
177
|
+
nodeId: z.ZodString;
|
|
178
|
+
baseVersionId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
179
|
+
mediaType: z.ZodString;
|
|
180
|
+
size: z.ZodNumber;
|
|
181
|
+
idempotencyKey: z.ZodString;
|
|
182
|
+
}, z.core.$strict>;
|
|
183
|
+
export type SaveAttachmentBytesInput = z.infer<typeof SaveAttachmentBytesInput>;
|
|
184
|
+
export declare const UpdateNodeInput: z.ZodObject<{
|
|
185
|
+
nodeId: z.ZodString;
|
|
186
|
+
baseUpdatedAt: z.ZodISODateTime;
|
|
187
|
+
title: z.ZodOptional<z.ZodString>;
|
|
188
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
189
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
|
+
promptName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
191
|
+
idempotencyKey: z.ZodString;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
export type UpdateNodeInput = z.infer<typeof UpdateNodeInput>;
|
|
194
|
+
export declare const ArchiveNodeInput: z.ZodObject<{
|
|
195
|
+
nodeId: z.ZodString;
|
|
196
|
+
baseUpdatedAt: z.ZodISODateTime;
|
|
197
|
+
archived: z.ZodBoolean;
|
|
198
|
+
idempotencyKey: z.ZodString;
|
|
199
|
+
}, z.core.$strict>;
|
|
200
|
+
export type ArchiveNodeInput = z.infer<typeof ArchiveNodeInput>;
|
|
201
|
+
export declare const PurgeNodeInput: z.ZodObject<{
|
|
202
|
+
nodeId: z.ZodString;
|
|
203
|
+
idempotencyKey: z.ZodString;
|
|
204
|
+
}, z.core.$strict>;
|
|
205
|
+
export type PurgeNodeInput = z.infer<typeof PurgeNodeInput>;
|
|
206
|
+
export declare const PurgeNodePreviewInput: z.ZodObject<{
|
|
207
|
+
nodeId: z.ZodString;
|
|
208
|
+
}, z.core.$strict>;
|
|
209
|
+
export type PurgeNodePreviewInput = z.infer<typeof PurgeNodePreviewInput>;
|
|
210
|
+
/**
|
|
211
|
+
* ⚠️ **A count is not an answer before a deletion that cannot be undone** (D71, #733). `totalItems`
|
|
212
|
+
* alone reads as "82 items" for a folder holding somebody's whole memory, and `destructive.md` asks
|
|
213
|
+
* for the number to be named BEFORE the confirmation — one step more precise is the difference
|
|
214
|
+
* between a number and something a person can decide on.
|
|
215
|
+
*
|
|
216
|
+
* `items` is capped, and the cap is visible rather than silent: `totalItems` keeps counting past it,
|
|
217
|
+
* so a caller can always say "and 40 more". A list of ten thousand rows would be an answer nobody
|
|
218
|
+
* reads and a response nobody can render.
|
|
219
|
+
*/
|
|
220
|
+
export declare const PurgeNodePreview: z.ZodObject<{
|
|
221
|
+
inboundLinks: z.ZodNumber;
|
|
222
|
+
totalItems: z.ZodNumber;
|
|
223
|
+
items: z.ZodArray<z.ZodObject<{
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
226
|
+
folder: "folder";
|
|
227
|
+
document: "document";
|
|
228
|
+
attachment: "attachment";
|
|
229
|
+
table: "table";
|
|
230
|
+
board: "board";
|
|
231
|
+
task: "task";
|
|
232
|
+
}>, z.ZodLiteral<"flow">]>;
|
|
233
|
+
title: z.ZodString;
|
|
234
|
+
}, z.core.$strict>>;
|
|
235
|
+
}, z.core.$strict>;
|
|
236
|
+
export type PurgeNodePreview = z.infer<typeof PurgeNodePreview>;
|
|
237
|
+
export declare const PurgeNodeResult: z.ZodObject<{
|
|
238
|
+
purged: z.ZodLiteral<true>;
|
|
239
|
+
title: z.ZodString;
|
|
240
|
+
}, z.core.$strict>;
|
|
241
|
+
export type PurgeNodeResult = z.infer<typeof PurgeNodeResult>;
|
|
242
|
+
export declare const NodeList: z.ZodObject<{
|
|
243
|
+
items: z.ZodArray<z.ZodObject<{
|
|
244
|
+
id: z.ZodString;
|
|
245
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
246
|
+
kind: z.ZodEnum<{
|
|
247
|
+
folder: "folder";
|
|
248
|
+
document: "document";
|
|
249
|
+
attachment: "attachment";
|
|
250
|
+
table: "table";
|
|
251
|
+
board: "board";
|
|
252
|
+
task: "task";
|
|
253
|
+
}>;
|
|
254
|
+
title: z.ZodString;
|
|
255
|
+
description: z.ZodNullable<z.ZodString>;
|
|
256
|
+
ownerId: z.ZodString;
|
|
257
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
258
|
+
createdAt: z.ZodISODateTime;
|
|
259
|
+
updatedAt: z.ZodISODateTime;
|
|
260
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
261
|
+
promptName: z.ZodNullable<z.ZodString>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
withChildren: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
export type NodeList = z.infer<typeof NodeList>;
|
|
266
|
+
export declare const NodeVersionList: z.ZodObject<{
|
|
267
|
+
items: z.ZodArray<z.ZodObject<{
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
nodeId: z.ZodString;
|
|
270
|
+
sequence: z.ZodNumber;
|
|
271
|
+
contentKey: z.ZodString;
|
|
272
|
+
mediaType: z.ZodString;
|
|
273
|
+
contentHash: z.ZodString;
|
|
274
|
+
size: z.ZodNumber;
|
|
275
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
276
|
+
append: "append";
|
|
277
|
+
snapshot: "snapshot";
|
|
278
|
+
}>>;
|
|
279
|
+
createdBy: z.ZodString;
|
|
280
|
+
createdAt: z.ZodISODateTime;
|
|
281
|
+
}, z.core.$strict>>;
|
|
282
|
+
}, z.core.$strict>;
|
|
283
|
+
export type NodeVersionList = z.infer<typeof NodeVersionList>;
|
|
284
|
+
export declare const NodeDocument: z.ZodObject<{
|
|
285
|
+
node: z.ZodObject<{
|
|
286
|
+
id: z.ZodString;
|
|
287
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
288
|
+
kind: z.ZodEnum<{
|
|
289
|
+
folder: "folder";
|
|
290
|
+
document: "document";
|
|
291
|
+
attachment: "attachment";
|
|
292
|
+
table: "table";
|
|
293
|
+
board: "board";
|
|
294
|
+
task: "task";
|
|
295
|
+
}>;
|
|
296
|
+
title: z.ZodString;
|
|
297
|
+
description: z.ZodNullable<z.ZodString>;
|
|
298
|
+
ownerId: z.ZodString;
|
|
299
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
300
|
+
createdAt: z.ZodISODateTime;
|
|
301
|
+
updatedAt: z.ZodISODateTime;
|
|
302
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
303
|
+
promptName: z.ZodNullable<z.ZodString>;
|
|
304
|
+
}, z.core.$strict>;
|
|
305
|
+
version: z.ZodNullable<z.ZodObject<{
|
|
306
|
+
id: z.ZodString;
|
|
307
|
+
nodeId: z.ZodString;
|
|
308
|
+
sequence: z.ZodNumber;
|
|
309
|
+
contentKey: z.ZodString;
|
|
310
|
+
mediaType: z.ZodString;
|
|
311
|
+
contentHash: z.ZodString;
|
|
312
|
+
size: z.ZodNumber;
|
|
313
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
314
|
+
append: "append";
|
|
315
|
+
snapshot: "snapshot";
|
|
316
|
+
}>>;
|
|
317
|
+
createdBy: z.ZodString;
|
|
318
|
+
createdAt: z.ZodISODateTime;
|
|
319
|
+
}, z.core.$strict>>;
|
|
320
|
+
content: z.ZodNullable<z.ZodString>;
|
|
321
|
+
}, z.core.$strict>;
|
|
322
|
+
export type NodeDocument = z.infer<typeof NodeDocument>;
|
|
323
|
+
export declare const NodeAttachment: z.ZodObject<{
|
|
324
|
+
node: z.ZodObject<{
|
|
325
|
+
id: z.ZodString;
|
|
326
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
327
|
+
kind: z.ZodEnum<{
|
|
328
|
+
folder: "folder";
|
|
329
|
+
document: "document";
|
|
330
|
+
attachment: "attachment";
|
|
331
|
+
table: "table";
|
|
332
|
+
board: "board";
|
|
333
|
+
task: "task";
|
|
334
|
+
}>;
|
|
335
|
+
title: z.ZodString;
|
|
336
|
+
description: z.ZodNullable<z.ZodString>;
|
|
337
|
+
ownerId: z.ZodString;
|
|
338
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
339
|
+
createdAt: z.ZodISODateTime;
|
|
340
|
+
updatedAt: z.ZodISODateTime;
|
|
341
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
342
|
+
promptName: z.ZodNullable<z.ZodString>;
|
|
343
|
+
}, z.core.$strict>;
|
|
344
|
+
version: z.ZodObject<{
|
|
345
|
+
id: z.ZodString;
|
|
346
|
+
nodeId: z.ZodString;
|
|
347
|
+
sequence: z.ZodNumber;
|
|
348
|
+
contentKey: z.ZodString;
|
|
349
|
+
mediaType: z.ZodString;
|
|
350
|
+
contentHash: z.ZodString;
|
|
351
|
+
size: z.ZodNumber;
|
|
352
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
353
|
+
append: "append";
|
|
354
|
+
snapshot: "snapshot";
|
|
355
|
+
}>>;
|
|
356
|
+
createdBy: z.ZodString;
|
|
357
|
+
createdAt: z.ZodISODateTime;
|
|
358
|
+
}, z.core.$strict>;
|
|
359
|
+
resourceUri: z.ZodString;
|
|
360
|
+
}, z.core.$strict>;
|
|
361
|
+
export type NodeAttachment = z.infer<typeof NodeAttachment>;
|
|
362
|
+
export declare const NodeTable: z.ZodObject<{
|
|
363
|
+
node: z.ZodObject<{
|
|
364
|
+
id: z.ZodString;
|
|
365
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
366
|
+
kind: z.ZodEnum<{
|
|
367
|
+
folder: "folder";
|
|
368
|
+
document: "document";
|
|
369
|
+
attachment: "attachment";
|
|
370
|
+
table: "table";
|
|
371
|
+
board: "board";
|
|
372
|
+
task: "task";
|
|
373
|
+
}>;
|
|
374
|
+
title: z.ZodString;
|
|
375
|
+
description: z.ZodNullable<z.ZodString>;
|
|
376
|
+
ownerId: z.ZodString;
|
|
377
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
378
|
+
createdAt: z.ZodISODateTime;
|
|
379
|
+
updatedAt: z.ZodISODateTime;
|
|
380
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
381
|
+
promptName: z.ZodNullable<z.ZodString>;
|
|
382
|
+
}, z.core.$strict>;
|
|
383
|
+
columns: z.ZodArray<z.ZodString>;
|
|
384
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
385
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
386
|
+
}, z.core.$strict>;
|
|
387
|
+
export type NodeTable = z.infer<typeof NodeTable>;
|
|
388
|
+
export declare const NodeLinkRelation: z.ZodEnum<{
|
|
389
|
+
references: "references";
|
|
390
|
+
related: "related";
|
|
391
|
+
depends_on: "depends_on";
|
|
392
|
+
implements: "implements";
|
|
393
|
+
}>;
|
|
394
|
+
export type NodeLinkRelation = z.infer<typeof NodeLinkRelation>;
|
|
395
|
+
export declare const NodeLinkOrigin: z.ZodEnum<{
|
|
396
|
+
text: "text";
|
|
397
|
+
manual: "manual";
|
|
398
|
+
}>;
|
|
399
|
+
export type NodeLinkOrigin = z.infer<typeof NodeLinkOrigin>;
|
|
400
|
+
export declare const NodeLink: z.ZodObject<{
|
|
401
|
+
id: z.ZodString;
|
|
402
|
+
sourceNodeId: z.ZodString;
|
|
403
|
+
targetNodeId: z.ZodString;
|
|
404
|
+
relation: z.ZodEnum<{
|
|
405
|
+
references: "references";
|
|
406
|
+
related: "related";
|
|
407
|
+
depends_on: "depends_on";
|
|
408
|
+
implements: "implements";
|
|
409
|
+
}>;
|
|
410
|
+
origin: z.ZodEnum<{
|
|
411
|
+
text: "text";
|
|
412
|
+
manual: "manual";
|
|
413
|
+
}>;
|
|
414
|
+
label: z.ZodNullable<z.ZodString>;
|
|
415
|
+
createdBy: z.ZodString;
|
|
416
|
+
createdAt: z.ZodISODateTime;
|
|
417
|
+
}, z.core.$strict>;
|
|
418
|
+
export type NodeLink = z.infer<typeof NodeLink>;
|
|
419
|
+
export declare const NodeLinkList: z.ZodObject<{
|
|
420
|
+
items: z.ZodArray<z.ZodObject<{
|
|
421
|
+
id: z.ZodString;
|
|
422
|
+
sourceNodeId: z.ZodString;
|
|
423
|
+
targetNodeId: z.ZodString;
|
|
424
|
+
relation: z.ZodEnum<{
|
|
425
|
+
references: "references";
|
|
426
|
+
related: "related";
|
|
427
|
+
depends_on: "depends_on";
|
|
428
|
+
implements: "implements";
|
|
429
|
+
}>;
|
|
430
|
+
origin: z.ZodEnum<{
|
|
431
|
+
text: "text";
|
|
432
|
+
manual: "manual";
|
|
433
|
+
}>;
|
|
434
|
+
label: z.ZodNullable<z.ZodString>;
|
|
435
|
+
createdBy: z.ZodString;
|
|
436
|
+
createdAt: z.ZodISODateTime;
|
|
437
|
+
}, z.core.$strict>>;
|
|
438
|
+
}, z.core.$strict>;
|
|
439
|
+
export type NodeLinkList = z.infer<typeof NodeLinkList>;
|
|
440
|
+
export declare const DocumentLinkInlineType = "documentLink";
|
|
441
|
+
export declare const ResolveNodeLinksInput: z.ZodObject<{
|
|
442
|
+
nodeIds: z.ZodArray<z.ZodString>;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
export type ResolveNodeLinksInput = z.infer<typeof ResolveNodeLinksInput>;
|
|
445
|
+
export declare const ResolvedNodeLink: z.ZodObject<{
|
|
446
|
+
nodeId: z.ZodString;
|
|
447
|
+
title: z.ZodString;
|
|
448
|
+
}, z.core.$strict>;
|
|
449
|
+
export type ResolvedNodeLink = z.infer<typeof ResolvedNodeLink>;
|
|
450
|
+
export declare const ResolveNodeLinksResult: z.ZodObject<{
|
|
451
|
+
items: z.ZodArray<z.ZodObject<{
|
|
452
|
+
nodeId: z.ZodString;
|
|
453
|
+
title: z.ZodString;
|
|
454
|
+
}, z.core.$strict>>;
|
|
455
|
+
}, z.core.$strict>;
|
|
456
|
+
export type ResolveNodeLinksResult = z.infer<typeof ResolveNodeLinksResult>;
|
|
457
|
+
export declare const NodeGraphInput: z.ZodObject<{
|
|
458
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
459
|
+
}, z.core.$strict>;
|
|
460
|
+
export type NodeGraphInput = z.infer<typeof NodeGraphInput>;
|
|
461
|
+
export declare const NodeGraph: z.ZodObject<{
|
|
462
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
463
|
+
id: z.ZodString;
|
|
464
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
465
|
+
kind: z.ZodEnum<{
|
|
466
|
+
folder: "folder";
|
|
467
|
+
document: "document";
|
|
468
|
+
attachment: "attachment";
|
|
469
|
+
table: "table";
|
|
470
|
+
board: "board";
|
|
471
|
+
task: "task";
|
|
472
|
+
}>;
|
|
473
|
+
title: z.ZodString;
|
|
474
|
+
description: z.ZodNullable<z.ZodString>;
|
|
475
|
+
ownerId: z.ZodString;
|
|
476
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
477
|
+
createdAt: z.ZodISODateTime;
|
|
478
|
+
updatedAt: z.ZodISODateTime;
|
|
479
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
480
|
+
promptName: z.ZodNullable<z.ZodString>;
|
|
481
|
+
}, z.core.$strict>>;
|
|
482
|
+
links: z.ZodArray<z.ZodObject<{
|
|
483
|
+
id: z.ZodString;
|
|
484
|
+
sourceNodeId: z.ZodString;
|
|
485
|
+
targetNodeId: z.ZodString;
|
|
486
|
+
relation: z.ZodEnum<{
|
|
487
|
+
references: "references";
|
|
488
|
+
related: "related";
|
|
489
|
+
depends_on: "depends_on";
|
|
490
|
+
implements: "implements";
|
|
491
|
+
}>;
|
|
492
|
+
origin: z.ZodEnum<{
|
|
493
|
+
text: "text";
|
|
494
|
+
manual: "manual";
|
|
495
|
+
}>;
|
|
496
|
+
label: z.ZodNullable<z.ZodString>;
|
|
497
|
+
createdBy: z.ZodString;
|
|
498
|
+
createdAt: z.ZodISODateTime;
|
|
499
|
+
}, z.core.$strict>>;
|
|
500
|
+
}, z.core.$strict>;
|
|
501
|
+
export type NodeGraph = z.infer<typeof NodeGraph>;
|
|
502
|
+
export declare const BlockNoteMediaType = "application/vnd.anchrd.intel.blocknote+json";
|
|
503
|
+
export declare const BlockNoteDocument: z.ZodObject<{
|
|
504
|
+
format: z.ZodLiteral<"blocknote">;
|
|
505
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
506
|
+
blocks: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
507
|
+
markdown: z.ZodString;
|
|
508
|
+
}, z.core.$strict>;
|
|
509
|
+
export type BlockNoteDocument = z.infer<typeof BlockNoteDocument>;
|
|
510
|
+
export declare const SearchInput: z.ZodObject<{
|
|
511
|
+
query: z.ZodString;
|
|
512
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
513
|
+
scopeId: z.ZodOptional<z.ZodString>;
|
|
514
|
+
}, z.core.$strict>;
|
|
515
|
+
export type SearchInput = z.infer<typeof SearchInput>;
|
|
516
|
+
export declare const NodeCitation: z.ZodObject<{
|
|
517
|
+
nodeId: z.ZodString;
|
|
518
|
+
versionId: z.ZodString;
|
|
519
|
+
title: z.ZodString;
|
|
520
|
+
passage: z.ZodString;
|
|
521
|
+
source: z.ZodString;
|
|
522
|
+
freshness: z.ZodISODateTime;
|
|
523
|
+
score: z.ZodNumber;
|
|
524
|
+
match: z.ZodEnum<{
|
|
525
|
+
lexical: "lexical";
|
|
526
|
+
semantic: "semantic";
|
|
527
|
+
hybrid: "hybrid";
|
|
528
|
+
}>;
|
|
529
|
+
}, z.core.$strict>;
|
|
530
|
+
export type NodeCitation = z.infer<typeof NodeCitation>;
|
|
531
|
+
export declare const SearchResult: z.ZodObject<{
|
|
532
|
+
items: z.ZodArray<z.ZodObject<{
|
|
533
|
+
nodeId: z.ZodString;
|
|
534
|
+
versionId: z.ZodString;
|
|
535
|
+
title: z.ZodString;
|
|
536
|
+
passage: z.ZodString;
|
|
537
|
+
source: z.ZodString;
|
|
538
|
+
freshness: z.ZodISODateTime;
|
|
539
|
+
score: z.ZodNumber;
|
|
540
|
+
match: z.ZodEnum<{
|
|
541
|
+
lexical: "lexical";
|
|
542
|
+
semantic: "semantic";
|
|
543
|
+
hybrid: "hybrid";
|
|
544
|
+
}>;
|
|
545
|
+
}, z.core.$strict>>;
|
|
546
|
+
}, z.core.$strict>;
|
|
547
|
+
export type SearchResult = z.infer<typeof SearchResult>;
|
|
548
|
+
export declare const ReindexResult: z.ZodObject<{
|
|
549
|
+
queued: z.ZodNumber;
|
|
550
|
+
}, z.core.$strict>;
|
|
551
|
+
export type ReindexResult = z.infer<typeof ReindexResult>;
|