@jini-ai/core 0.7.3-next.2 → 0.7.3-next.3
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 +68 -0
- package/dist/admin-runtime/admin-http.d.ts +43 -0
- package/dist/admin-runtime/admin-http.js +11 -0
- package/dist/admin-runtime/index.d.ts +1 -0
- package/dist/config/env-schema.d.ts +31 -0
- package/dist/config/env-schema.js +29 -0
- package/dist/contracts/agents/definition.d.ts +9 -1
- package/dist/contracts/agents/index.d.ts +1 -0
- package/dist/contracts/agents/inventory.d.ts +29 -0
- package/dist/contracts/agents/inventory.js +8 -0
- package/dist/contracts/agents/provider-ports.d.ts +117 -0
- package/dist/contracts/agents/provider-ports.js +2 -0
- package/dist/contracts/agents/proxy-provider-kit.d.ts +122 -0
- package/dist/contracts/agents/proxy-provider-kit.js +119 -0
- package/dist/contracts/agents/proxy-provider.d.ts +34 -0
- package/dist/contracts/agents/proxy-provider.js +2 -0
- package/dist/contracts/blob-gc.d.ts +69 -0
- package/dist/contracts/blob-gc.js +13 -0
- package/dist/contracts/credentials.d.ts +5 -19
- package/dist/contracts/desktop-zoom.d.ts +7 -0
- package/dist/contracts/desktop-zoom.js +6 -0
- package/dist/contracts/events/change-set.d.ts +12 -3
- package/dist/contracts/events/command.d.ts +11 -5
- package/dist/contracts/events/ports.d.ts +38 -0
- package/dist/contracts/events/ports.js +8 -1
- package/dist/contracts/events.d.ts +2 -1
- package/dist/contracts/events.js +1 -1
- package/dist/contracts/execution.d.ts +541 -0
- package/dist/contracts/execution.js +2 -0
- package/dist/contracts/find-in-page.d.ts +12 -0
- package/dist/contracts/find-in-page.js +7 -0
- package/dist/contracts/headless/chart-providers.d.ts +12 -0
- package/dist/contracts/headless/chart-providers.js +2 -0
- package/dist/contracts/headless/chat-attachment.d.ts +21 -0
- package/dist/contracts/headless/chat-attachment.js +9 -0
- package/dist/contracts/headless/contracts.d.ts +179 -0
- package/dist/contracts/headless/contracts.js +2 -0
- package/dist/contracts/headless/form-delivery-status.d.ts +35 -0
- package/dist/contracts/headless/form-delivery-status.js +2 -0
- package/dist/contracts/headless/member-login.d.ts +3 -0
- package/dist/contracts/headless/member-login.js +3 -0
- package/dist/contracts/headless/operator-locale.d.ts +17 -0
- package/dist/contracts/headless/operator-locale.js +2 -0
- package/dist/contracts/headless/plugin-export-catalog.d.ts +21 -0
- package/dist/contracts/headless/plugin-export-catalog.js +2 -0
- package/dist/contracts/headless/plugin-host.d.ts +128 -0
- package/dist/contracts/headless/plugin-host.js +2 -0
- package/dist/contracts/headless/plugin-install-source.d.ts +82 -0
- package/dist/contracts/headless/plugin-install-source.js +12 -0
- package/dist/contracts/headless/site-cookie-consent.d.ts +41 -0
- package/dist/contracts/headless/site-cookie-consent.js +2 -0
- package/dist/contracts/hosted-mcp/admissions.d.ts +125 -0
- package/dist/contracts/hosted-mcp/admissions.js +3 -0
- package/dist/contracts/hosted-mcp/record.d.ts +7 -2
- package/dist/contracts/hosted-mcp.d.ts +1 -0
- package/dist/contracts/mail.d.ts +28 -2
- package/dist/contracts/mail.js +3 -0
- package/dist/contracts/observability.d.ts +12 -0
- package/dist/contracts/run-attempt.d.ts +14 -0
- package/dist/contracts/run-attempt.js +7 -0
- package/dist/contracts/server/api-error.js +1 -0
- package/dist/contracts/server/client-facing-error.d.ts +25 -0
- package/dist/contracts/server/client-facing-error.js +21 -0
- package/dist/contracts/server/deferred-body.d.ts +65 -0
- package/dist/contracts/server/deferred-body.js +2 -0
- package/dist/contracts/server/failure-copy.d.ts +19 -0
- package/dist/contracts/server/failure-copy.js +26 -0
- package/dist/contracts/server/json-route.d.ts +52 -26
- package/dist/contracts/server/json-route.js +128 -32
- package/dist/contracts/server/request-body.d.ts +12 -0
- package/dist/contracts/server/request-body.js +7 -3
- package/dist/contracts/server/route-reply.d.ts +32 -0
- package/dist/contracts/server/route-reply.js +26 -0
- package/dist/contracts/server.d.ts +4 -0
- package/dist/contracts/server.js +4 -0
- package/dist/contracts/site/admin-sites.d.ts +134 -0
- package/dist/contracts/site/admin-sites.js +7 -0
- package/dist/contracts/site/admin-surfaces-connections.d.ts +128 -0
- package/dist/contracts/site/admin-surfaces-connections.js +2 -0
- package/dist/contracts/site/agent-plugins-admin-surfaces.d.ts +218 -0
- package/dist/contracts/site/agent-plugins-admin-surfaces.js +2 -0
- package/dist/contracts/site/agent-plugins-connect.d.ts +25 -0
- package/dist/contracts/site/agent-plugins-connect.js +2 -0
- package/dist/contracts/site/agent-plugins-lifecycle.d.ts +151 -0
- package/dist/contracts/site/agent-plugins-lifecycle.js +2 -0
- package/dist/contracts/site/agent-plugins-manifest.d.ts +41 -0
- package/dist/contracts/site/agent-plugins-manifest.js +11 -0
- package/dist/contracts/site/agent-runtime.d.ts +110 -0
- package/dist/contracts/site/agent-runtime.js +2 -0
- package/dist/contracts/site/agentic-core.d.ts +44 -0
- package/dist/contracts/site/agentic-core.js +9 -0
- package/dist/contracts/site/agentic-dom.d.ts +27 -0
- package/dist/contracts/site/agentic-dom.js +2 -0
- package/dist/contracts/site/agentic.d.ts +37 -0
- package/dist/contracts/site/agentic.js +8 -0
- package/dist/contracts/site/analytics.d.ts +81 -0
- package/dist/contracts/site/analytics.js +2 -0
- package/dist/contracts/site/api-ai-assistant-api-types.d.ts +182 -0
- package/dist/contracts/site/api-ai-assistant-api-types.js +2 -0
- package/dist/contracts/site/api-connections-hosted-mcp.d.ts +176 -0
- package/dist/contracts/site/api-connections-hosted-mcp.js +2 -0
- package/dist/contracts/site/api-security-api-types.d.ts +177 -0
- package/dist/contracts/site/api-security-api-types.js +2 -0
- package/dist/contracts/site/approval-i18n.d.ts +32 -0
- package/dist/contracts/site/approval-i18n.js +156 -0
- package/dist/contracts/site/asset-transfer-tool-ports.d.ts +54 -0
- package/dist/contracts/site/asset-transfer-tool-ports.js +2 -0
- package/dist/contracts/site/assistant-host-ports.d.ts +23 -0
- package/dist/contracts/site/assistant-host-ports.js +2 -0
- package/dist/contracts/site/assistant-mcp-services.d.ts +26 -0
- package/dist/contracts/site/assistant-mcp-services.js +8 -0
- package/dist/contracts/site/assistant-tool-contributions.d.ts +45 -0
- package/dist/contracts/site/assistant-tool-contributions.js +2 -0
- package/dist/contracts/site/chat-core.d.ts +93 -0
- package/dist/contracts/site/chat-core.js +13 -0
- package/dist/contracts/site/client-directives.d.ts +21 -0
- package/dist/contracts/site/client-directives.js +8 -0
- package/dist/contracts/site/cms-admin-media.d.ts +61 -0
- package/dist/contracts/site/cms-admin-media.js +7 -0
- package/dist/contracts/site/cms-agent-plugins.d.ts +114 -0
- package/dist/contracts/site/cms-agent-plugins.js +17 -0
- package/dist/contracts/site/cms-assistant.d.ts +74 -0
- package/dist/contracts/site/cms-assistant.js +17 -0
- package/dist/contracts/site/cms-core.d.ts +17 -0
- package/dist/contracts/site/cms-core.js +12 -0
- package/dist/contracts/site/cms-external-mcp.d.ts +206 -0
- package/dist/contracts/site/cms-external-mcp.js +13 -0
- package/dist/contracts/site/cms-forms.d.ts +192 -0
- package/dist/contracts/site/cms-forms.js +15 -0
- package/dist/contracts/site/cms-integrations.d.ts +47 -0
- package/dist/contracts/site/cms-integrations.js +8 -0
- package/dist/contracts/site/cms-mail.d.ts +39 -0
- package/dist/contracts/site/cms-mail.js +12 -0
- package/dist/contracts/site/cms-media.d.ts +449 -0
- package/dist/contracts/site/cms-media.js +3 -0
- package/dist/contracts/site/cms-menus.d.ts +109 -0
- package/dist/contracts/site/cms-menus.js +13 -0
- package/dist/contracts/site/cms-plugins.d.ts +81 -0
- package/dist/contracts/site/cms-plugins.js +13 -0
- package/dist/contracts/site/cms-publish-content.d.ts +129 -0
- package/dist/contracts/site/cms-publish-content.js +13 -0
- package/dist/contracts/site/cms-recovery.d.ts +37 -0
- package/dist/contracts/site/cms-recovery.js +13 -0
- package/dist/contracts/site/cms-seo.d.ts +124 -0
- package/dist/contracts/site/cms-seo.js +17 -0
- package/dist/contracts/site/cms-settings.d.ts +47 -0
- package/dist/contracts/site/cms-settings.js +15 -0
- package/dist/contracts/site/cms-sites.d.ts +24 -0
- package/dist/contracts/site/cms-sites.js +12 -0
- package/dist/contracts/site/cms-system-deploy.d.ts +37 -0
- package/dist/contracts/site/cms-system-deploy.js +9 -0
- package/dist/contracts/site/cms-trash.d.ts +235 -0
- package/dist/contracts/site/cms-trash.js +10 -0
- package/dist/contracts/site/cms-workspace.d.ts +14 -0
- package/dist/contracts/site/cms-workspace.js +7 -0
- package/dist/contracts/site/comments-providers.d.ts +187 -0
- package/dist/contracts/site/comments-providers.js +2 -0
- package/dist/contracts/site/commerce.d.ts +35 -0
- package/dist/contracts/site/commerce.js +12 -0
- package/dist/contracts/site/composition-provider-config-source.d.ts +46 -0
- package/dist/contracts/site/composition-provider-config-source.js +2 -0
- package/dist/contracts/site/content-editor-ports.d.ts +239 -0
- package/dist/contracts/site/content-editor-ports.js +2 -0
- package/dist/contracts/site/contracts-resources.d.ts +21 -0
- package/dist/contracts/site/contracts-resources.js +7 -0
- package/dist/contracts/site/cookie-consent-react.d.ts +44 -0
- package/dist/contracts/site/cookie-consent-react.js +8 -0
- package/dist/contracts/site/cookie-consent.d.ts +100 -0
- package/dist/contracts/site/cookie-consent.js +9 -0
- package/dist/contracts/site/core-commands.d.ts +66 -0
- package/dist/contracts/site/core-commands.js +15 -0
- package/dist/contracts/site/core-consent-refusal.d.ts +7 -0
- package/dist/contracts/site/core-consent-refusal.js +2 -0
- package/dist/contracts/site/core-custom-credential-categories.d.ts +14 -0
- package/dist/contracts/site/core-custom-credential-categories.js +7 -0
- package/dist/contracts/site/core-public-page-security-headers.d.ts +13 -0
- package/dist/contracts/site/core-public-page-security-headers.js +3 -0
- package/dist/contracts/site/core-run-events.d.ts +49 -0
- package/dist/contracts/site/core-run-events.js +11 -0
- package/dist/contracts/site/core-runtime-mode.d.ts +9 -0
- package/dist/contracts/site/core-runtime-mode.js +2 -0
- package/dist/contracts/site/core-theme-slots.d.ts +31 -0
- package/dist/contracts/site/core-theme-slots.js +3 -0
- package/dist/contracts/site/credential-project-half.d.ts +18 -0
- package/dist/contracts/site/credential-project-half.js +2 -0
- package/dist/contracts/site/custom-credential-publish-compatibility.d.ts +11 -0
- package/dist/contracts/site/custom-credential-publish-compatibility.js +2 -0
- package/dist/contracts/site/daemon-core-rpc.d.ts +114 -0
- package/dist/contracts/site/daemon-core-rpc.js +2 -0
- package/dist/contracts/site/daemon-http.d.ts +197 -0
- package/dist/contracts/site/daemon-http.js +11 -0
- package/dist/contracts/site/daemon-surface-exchanges.d.ts +46 -0
- package/dist/contracts/site/daemon-surface-exchanges.js +2 -0
- package/dist/contracts/site/daemon-tool-audit.d.ts +43 -0
- package/dist/contracts/site/daemon-tool-audit.js +9 -0
- package/dist/contracts/site/daemon-tool-recovery.d.ts +36 -0
- package/dist/contracts/site/daemon-tool-recovery.js +9 -0
- package/dist/contracts/site/daemon.d.ts +45 -0
- package/dist/contracts/site/daemon.js +2 -0
- package/dist/contracts/site/database-introspection.d.ts +46 -0
- package/dist/contracts/site/database-introspection.js +2 -0
- package/dist/contracts/site/db-data-modules.d.ts +61 -0
- package/dist/contracts/site/db-data-modules.js +6 -0
- package/dist/contracts/site/deployment-admin.d.ts +74 -0
- package/dist/contracts/site/deployment-admin.js +2 -0
- package/dist/contracts/site/dev-supervisor-dev-restart.d.ts +26 -0
- package/dist/contracts/site/dev-supervisor-dev-restart.js +10 -0
- package/dist/contracts/site/devops-deploy.d.ts +77 -0
- package/dist/contracts/site/devops-deploy.js +9 -0
- package/dist/contracts/site/diagnostics-domain-dns.d.ts +10 -0
- package/dist/contracts/site/diagnostics-domain-dns.js +7 -0
- package/dist/contracts/site/diagnostics-observability.d.ts +66 -0
- package/dist/contracts/site/diagnostics-observability.js +2 -0
- package/dist/contracts/site/events-outbox.d.ts +56 -0
- package/dist/contracts/site/events-outbox.js +10 -0
- package/dist/contracts/site/export-run.d.ts +54 -0
- package/dist/contracts/site/export-run.js +9 -0
- package/dist/contracts/site/external-mcp-tool-ports.d.ts +28 -0
- package/dist/contracts/site/external-mcp-tool-ports.js +2 -0
- package/dist/contracts/site/fs-durable-json.d.ts +22 -0
- package/dist/contracts/site/fs-durable-json.js +7 -0
- package/dist/contracts/site/gated-mutations/watermark.d.ts +44 -0
- package/dist/contracts/site/gated-mutations/watermark.js +37 -0
- package/dist/contracts/site/gated-mutations-ports.d.ts +45 -0
- package/dist/contracts/site/gated-mutations-ports.js +6 -0
- package/dist/contracts/site/gated-results.d.ts +17 -0
- package/dist/contracts/site/gated-results.js +8 -0
- package/dist/contracts/site/headless-assistant-permanent-deletes-policy.d.ts +16 -0
- package/dist/contracts/site/headless-assistant-permanent-deletes-policy.js +8 -0
- package/dist/contracts/site/hooks-sites-port-hooks.d.ts +151 -0
- package/dist/contracts/site/hooks-sites-port-hooks.js +7 -0
- package/dist/contracts/site/host-node.d.ts +213 -0
- package/dist/contracts/site/host-node.js +2 -0
- package/dist/contracts/site/html-region-ports.d.ts +103 -0
- package/dist/contracts/site/html-region-ports.js +2 -0
- package/dist/contracts/site/http-kit-rate-limit.d.ts +21 -0
- package/dist/contracts/site/http-kit-rate-limit.js +8 -0
- package/dist/contracts/site/http-kit-settings.d.ts +12 -0
- package/dist/contracts/site/http-kit-settings.js +8 -0
- package/dist/contracts/site/human-confirm.d.ts +42 -0
- package/dist/contracts/site/human-confirm.js +2 -0
- package/dist/contracts/site/installed-skill.d.ts +16 -0
- package/dist/contracts/site/installed-skill.js +2 -0
- package/dist/contracts/site/integrations-api-connections.d.ts +19 -0
- package/dist/contracts/site/integrations-api-connections.js +7 -0
- package/dist/contracts/site/integrations-credentialed-http.d.ts +16 -0
- package/dist/contracts/site/integrations-credentialed-http.js +8 -0
- package/dist/contracts/site/legacy-owner-store.d.ts +15 -0
- package/dist/contracts/site/legacy-owner-store.js +5 -0
- package/dist/contracts/site/lifecycle-boot-lifecycle.d.ts +27 -0
- package/dist/contracts/site/lifecycle-boot-lifecycle.js +10 -0
- package/dist/contracts/site/lifecycle-host-tools.d.ts +64 -0
- package/dist/contracts/site/lifecycle-host-tools.js +2 -0
- package/dist/contracts/site/media-provider-contribution.d.ts +118 -0
- package/dist/contracts/site/media-provider-contribution.js +3 -0
- package/dist/contracts/site/media-providers-catalog.d.ts +42 -0
- package/dist/contracts/site/media-providers-catalog.js +7 -0
- package/dist/contracts/site/media-tool-ports.d.ts +166 -0
- package/dist/contracts/site/media-tool-ports.js +2 -0
- package/dist/contracts/site/media-upload-limits.d.ts +6 -0
- package/dist/contracts/site/media-upload-limits.js +7 -0
- package/dist/contracts/site/nav.d.ts +46 -0
- package/dist/contracts/site/nav.js +10 -0
- package/dist/contracts/site/oauth-callback-page.d.ts +47 -0
- package/dist/contracts/site/oauth-callback-page.js +31 -0
- package/dist/contracts/site/packaging-electron.d.ts +20 -0
- package/dist/contracts/site/packaging-electron.js +7 -0
- package/dist/contracts/site/page-html-store.d.ts +138 -0
- package/dist/contracts/site/page-html-store.js +2 -0
- package/dist/contracts/site/platform-mail.d.ts +221 -0
- package/dist/contracts/site/platform-mail.js +2 -0
- package/dist/contracts/site/platform-process.d.ts +23 -0
- package/dist/contracts/site/platform-process.js +7 -0
- package/dist/contracts/site/platform-server-logs.d.ts +51 -0
- package/dist/contracts/site/platform-server-logs.js +15 -0
- package/dist/contracts/site/platform-site-dir.d.ts +58 -0
- package/dist/contracts/site/platform-site-dir.js +7 -0
- package/dist/contracts/site/plugin-directory.d.ts +29 -0
- package/dist/contracts/site/plugin-directory.js +2 -0
- package/dist/contracts/site/plugins-host.d.ts +92 -0
- package/dist/contracts/site/plugins-host.js +2 -0
- package/dist/contracts/site/post-author.d.ts +8 -0
- package/dist/contracts/site/post-author.js +5 -0
- package/dist/contracts/site/post-kind.d.ts +10 -0
- package/dist/contracts/site/post-kind.js +2 -0
- package/dist/contracts/site/post-revision-lock.d.ts +17 -0
- package/dist/contracts/site/post-revision-lock.js +16 -0
- package/dist/contracts/site/project-key-attachments.d.ts +78 -0
- package/dist/contracts/site/project-key-attachments.js +2 -0
- package/dist/contracts/site/protocol-mcp-ui.d.ts +37 -0
- package/dist/contracts/site/protocol-mcp-ui.js +12 -0
- package/dist/contracts/site/public-origin.d.ts +9 -0
- package/dist/contracts/site/public-origin.js +22 -0
- package/dist/contracts/site/publish-ports.d.ts +42 -0
- package/dist/contracts/site/publish-ports.js +31 -0
- package/dist/contracts/site/recovery-operation-lock.d.ts +27 -0
- package/dist/contracts/site/recovery-operation-lock.js +11 -0
- package/dist/contracts/site/recovery-reconcile-interrupted-migration.d.ts +16 -0
- package/dist/contracts/site/recovery-reconcile-interrupted-migration.js +12 -0
- package/dist/contracts/site/request-facts.d.ts +28 -0
- package/dist/contracts/site/request-facts.js +28 -0
- package/dist/contracts/site/routines.d.ts +64 -0
- package/dist/contracts/site/routines.js +2 -0
- package/dist/contracts/site/sandbox-node-worker.d.ts +15 -0
- package/dist/contracts/site/sandbox-node-worker.js +9 -0
- package/dist/contracts/site/search.d.ts +181 -0
- package/dist/contracts/site/search.js +2 -0
- package/dist/contracts/site/secrets-credential-sets.d.ts +117 -0
- package/dist/contracts/site/secrets-credential-sets.js +2 -0
- package/dist/contracts/site/secrets-credential-token.d.ts +11 -0
- package/dist/contracts/site/secrets-credential-token.js +7 -0
- package/dist/contracts/site/seo-content-analysis.d.ts +18 -0
- package/dist/contracts/site/seo-content-analysis.js +7 -0
- package/dist/contracts/site/site-assistant-visitor-tools-management.d.ts +85 -0
- package/dist/contracts/site/site-assistant-visitor-tools-management.js +8 -0
- package/dist/contracts/site/site-import-history.d.ts +67 -0
- package/dist/contracts/site/site-import-history.js +2 -0
- package/dist/contracts/site/site-key.d.ts +133 -0
- package/dist/contracts/site/site-key.js +9 -0
- package/dist/contracts/site/site-serving-gate.d.ts +13 -0
- package/dist/contracts/site/site-serving-gate.js +22 -0
- package/dist/contracts/site/skill-install.d.ts +17 -0
- package/dist/contracts/site/skill-install.js +2 -0
- package/dist/contracts/site/skills-install.d.ts +21 -0
- package/dist/contracts/site/skills-install.js +7 -0
- package/dist/contracts/site/soft-delete.d.ts +13 -0
- package/dist/contracts/site/soft-delete.js +13 -0
- package/dist/contracts/site/source-control-credentials.d.ts +197 -0
- package/dist/contracts/site/source-control-credentials.js +2 -0
- package/dist/contracts/site/strict-base64.d.ts +30 -0
- package/dist/contracts/site/strict-base64.js +33 -0
- package/dist/contracts/site/tool-metadata-approval-policy.d.ts +13 -0
- package/dist/contracts/site/tool-metadata-approval-policy.js +2 -0
- package/dist/contracts/site/ui-sections.d.ts +27 -0
- package/dist/contracts/site/ui-sections.js +13 -0
- package/dist/contracts/site/user-management-react.d.ts +276 -0
- package/dist/contracts/site/user-management-react.js +9 -0
- package/dist/contracts/site/user-management-server.d.ts +104 -0
- package/dist/contracts/site/user-management-server.js +2 -0
- package/dist/contracts/site/user-management.d.ts +379 -0
- package/dist/contracts/site/user-management.js +2 -0
- package/dist/contracts/site/vault-context.d.ts +15 -0
- package/dist/contracts/site/vault-context.js +6 -0
- package/dist/contracts/site/vendor-credentials.d.ts +37 -0
- package/dist/contracts/site/vendor-credentials.js +2 -0
- package/dist/contracts/site/web-evidence-capture-budget.d.ts +16 -0
- package/dist/contracts/site/web-evidence-capture-budget.js +7 -0
- package/dist/contracts/site/web-evidence-playwright.d.ts +38 -0
- package/dist/contracts/site/web-evidence-playwright.js +9 -0
- package/dist/contracts/site/web-screenshot.d.ts +58 -0
- package/dist/contracts/site/web-screenshot.js +7 -0
- package/dist/contracts/site/widgets-html.d.ts +40 -0
- package/dist/contracts/site/widgets-html.js +7 -0
- package/dist/contracts/speech-transcription.d.ts +27 -0
- package/dist/contracts/speech-transcription.js +8 -0
- package/dist/contracts/standing-draft.d.ts +38 -0
- package/dist/contracts/standing-draft.js +2 -0
- package/dist/contracts/storage/cleanup-preview.d.ts +23 -0
- package/dist/contracts/storage/cleanup-preview.js +2 -0
- package/dist/contracts/storage/rows.d.ts +6 -2
- package/dist/contracts/storage/rows.js +3 -3
- package/dist/contracts/storage/sqlite-compaction.d.ts +108 -0
- package/dist/contracts/storage/sqlite-compaction.js +7 -0
- package/dist/contracts/storage.d.ts +2 -0
- package/dist/contracts/tool-result-block.d.ts +21 -0
- package/dist/contracts/tool-result-block.js +8 -0
- package/dist/errors/catalog.js +2 -2
- package/dist/errors/reporter.d.ts +81 -13
- package/dist/errors/reporter.js +220 -32
- package/dist/errors/route-refusal.d.ts +29 -0
- package/dist/errors/route-refusal.js +25 -0
- package/dist/errors/testing.d.ts +6 -7
- package/dist/errors/testing.js +7 -4
- package/dist/extension-capability-vocabulary.d.ts +29 -0
- package/dist/extension-capability-vocabulary.js +31 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/keyset-cursor.d.ts +25 -0
- package/dist/keyset-cursor.js +20 -0
- package/dist/native-approval-memory.d.ts +22 -0
- package/dist/native-approval-memory.js +32 -0
- package/dist/net/public-dns-vocabulary.d.ts +17 -0
- package/dist/net/public-dns-vocabulary.js +14 -0
- package/dist/object-store.d.ts +7 -0
- package/dist/object-store.js +1 -0
- package/dist/operator-locale.d.ts +29 -0
- package/dist/operator-locale.js +27 -0
- package/dist/optimistic-concurrency.d.ts +23 -0
- package/dist/origin-validation.d.ts +7 -0
- package/dist/origin-validation.js +8 -1
- package/dist/primitives/creator-kind.d.ts +27 -0
- package/dist/primitives/creator-kind.js +20 -0
- package/dist/primitives/index.d.ts +2 -0
- package/dist/primitives/index.js +2 -0
- package/dist/primitives/lazy-proxy.d.ts +5 -0
- package/dist/primitives/lazy-proxy.js +17 -0
- package/dist/redaction-collectors.js +60 -39
- package/dist/redaction-exact-secrets.js +4 -4
- package/dist/redaction-labels.d.ts +3 -1
- package/dist/redaction-labels.js +3 -3
- package/dist/redaction-patterns.d.ts +3 -1
- package/dist/redaction-patterns.js +1 -1
- package/dist/redaction-spans.d.ts +5 -1
- package/dist/redaction-spans.js +2 -2
- package/dist/registration-kit.d.ts +12 -0
- package/dist/registration-kit.js +14 -0
- package/dist/scheduled-publish.d.ts +57 -0
- package/dist/scheduled-publish.js +33 -0
- package/dist/settings/ensure-definitions.d.ts +8 -0
- package/dist/settings/guarded-reads.d.ts +58 -0
- package/dist/settings/guarded-reads.js +48 -0
- package/dist/settings/index.d.ts +3 -2
- package/dist/settings/index.js +1 -0
- package/dist/settings/settings.d.ts +8 -0
- package/dist/settings/write-definition-rename.js +2 -2
- package/dist/settings/write-definition-retype.js +4 -4
- package/dist/settings/write-definition-status.js +4 -4
- package/dist/settings/write-service.d.ts +14 -6
- package/dist/settings/write-service.js +2 -2
- package/dist/surface-exchanges.d.ts +32 -1
- package/dist/text/descriptor-i18n.d.ts +4 -1
- package/dist/text/descriptor-i18n.js +4 -1
- package/dist/text/index.d.ts +3 -0
- package/dist/text/index.js +2 -0
- package/dist/text/merge-locale-overlays.d.ts +25 -0
- package/dist/text/merge-locale-overlays.js +23 -0
- package/dist/text/upload-limit-message.d.ts +19 -0
- package/dist/text/upload-limit-message.js +29 -0
- package/dist/tool-access-change.d.ts +12 -0
- package/dist/tool-access-change.js +6 -0
- package/dist/tool-metadata/agent-pause.d.ts +21 -0
- package/dist/tool-metadata/agent-pause.js +9 -0
- package/dist/tool-metadata/agent-plugins.d.ts +72 -0
- package/dist/tool-metadata/agent-plugins.js +54 -0
- package/dist/tool-metadata/analytics.d.ts +14 -0
- package/dist/tool-metadata/analytics.js +17 -0
- package/dist/tool-metadata/change-sets.d.ts +24 -0
- package/dist/tool-metadata/change-sets.js +19 -0
- package/dist/tool-metadata/comments.d.ts +105 -0
- package/dist/tool-metadata/comments.js +106 -0
- package/dist/tool-metadata/commerce.d.ts +30 -0
- package/dist/tool-metadata/commerce.js +11 -0
- package/dist/tool-metadata/consent.d.ts +57 -0
- package/dist/tool-metadata/consent.js +16 -0
- package/dist/tool-metadata/content-duplication.d.ts +13 -0
- package/dist/tool-metadata/content-duplication.js +14 -0
- package/dist/tool-metadata/content-types.d.ts +74 -0
- package/dist/tool-metadata/content-types.js +96 -0
- package/dist/tool-metadata/custom-credentials.d.ts +117 -0
- package/dist/tool-metadata/custom-credentials.js +105 -0
- package/dist/tool-metadata/database-transfer.d.ts +48 -0
- package/dist/tool-metadata/database-transfer.js +32 -0
- package/dist/tool-metadata/database.d.ts +90 -0
- package/dist/tool-metadata/database.js +111 -0
- package/dist/tool-metadata/deploy-ops.d.ts +99 -0
- package/dist/tool-metadata/deploy-ops.js +96 -0
- package/dist/tool-metadata/deployments.d.ts +101 -0
- package/dist/tool-metadata/deployments.js +81 -0
- package/dist/tool-metadata/domain-dns.d.ts +84 -0
- package/dist/tool-metadata/domain-dns.js +99 -0
- package/dist/tool-metadata/email-templates.d.ts +54 -0
- package/dist/tool-metadata/email-templates.js +41 -0
- package/dist/tool-metadata/entries.d.ts +54 -0
- package/dist/tool-metadata/entries.js +70 -0
- package/dist/tool-metadata/external-mcp.d.ts +86 -0
- package/dist/tool-metadata/external-mcp.js +80 -0
- package/dist/tool-metadata/files-copy.d.ts +14 -0
- package/dist/tool-metadata/files-copy.js +18 -0
- package/dist/tool-metadata/forms.d.ts +94 -0
- package/dist/tool-metadata/forms.js +117 -0
- package/dist/tool-metadata/frontend-control.d.ts +118 -0
- package/dist/tool-metadata/frontend-control.js +78 -0
- package/dist/tool-metadata/fs-files.d.ts +36 -0
- package/dist/tool-metadata/fs-files.js +46 -0
- package/dist/tool-metadata/identity.d.ts +184 -0
- package/dist/tool-metadata/identity.js +226 -0
- package/dist/tool-metadata/image-transform.d.ts +14 -0
- package/dist/tool-metadata/image-transform.js +18 -0
- package/dist/tool-metadata/mail-status.d.ts +132 -0
- package/dist/tool-metadata/mail-status.js +104 -0
- package/dist/tool-metadata/media-generation.d.ts +24 -0
- package/dist/tool-metadata/media-generation.js +29 -0
- package/dist/tool-metadata/media-import.d.ts +34 -0
- package/dist/tool-metadata/media-import.js +40 -0
- package/dist/tool-metadata/media-video-conversion.d.ts +19 -0
- package/dist/tool-metadata/media-video-conversion.js +20 -0
- package/dist/tool-metadata/media.d.ts +106 -0
- package/dist/tool-metadata/media.js +103 -0
- package/dist/tool-metadata/members.d.ts +71 -0
- package/dist/tool-metadata/members.js +69 -0
- package/dist/tool-metadata/navigation.d.ts +54 -0
- package/dist/tool-metadata/navigation.js +71 -0
- package/dist/tool-metadata/newsletter.d.ts +190 -0
- package/dist/tool-metadata/newsletter.js +246 -0
- package/dist/tool-metadata/observability.d.ts +13 -0
- package/dist/tool-metadata/observability.js +8 -0
- package/dist/tool-metadata/pages.d.ts +47 -0
- package/dist/tool-metadata/pages.js +67 -0
- package/dist/tool-metadata/permanent-delete.d.ts +139 -0
- package/dist/tool-metadata/permanent-delete.js +121 -0
- package/dist/tool-metadata/plugin-runtime.d.ts +144 -0
- package/dist/tool-metadata/plugin-runtime.js +88 -0
- package/dist/tool-metadata/post.d.ts +87 -0
- package/dist/tool-metadata/post.js +117 -0
- package/dist/tool-metadata/recovery.d.ts +65 -0
- package/dist/tool-metadata/recovery.js +78 -0
- package/dist/tool-metadata/redirects.d.ts +73 -0
- package/dist/tool-metadata/redirects.js +93 -0
- package/dist/tool-metadata/routines.d.ts +61 -0
- package/dist/tool-metadata/routines.js +40 -0
- package/dist/tool-metadata/search.d.ts +49 -0
- package/dist/tool-metadata/search.js +33 -0
- package/dist/tool-metadata/seo.d.ts +64 -0
- package/dist/tool-metadata/seo.js +83 -0
- package/dist/tool-metadata/server-logs.d.ts +14 -0
- package/dist/tool-metadata/server-logs.js +11 -0
- package/dist/tool-metadata/settings.d.ts +90 -0
- package/dist/tool-metadata/settings.js +117 -0
- package/dist/tool-metadata/site-backup.d.ts +84 -0
- package/dist/tool-metadata/site-backup.js +30 -0
- package/dist/tool-metadata/site-evidence.d.ts +13 -0
- package/dist/tool-metadata/site-evidence.js +10 -0
- package/dist/tool-metadata/site-guide.d.ts +18 -0
- package/dist/tool-metadata/site-guide.js +15 -0
- package/dist/tool-metadata/site-inspection.d.ts +44 -0
- package/dist/tool-metadata/site-inspection.js +53 -0
- package/dist/tool-metadata/site-update.d.ts +30 -0
- package/dist/tool-metadata/site-update.js +22 -0
- package/dist/tool-metadata/sites.d.ts +52 -0
- package/dist/tool-metadata/sites.js +55 -0
- package/dist/tool-metadata/skills.d.ts +13 -0
- package/dist/tool-metadata/skills.js +10 -0
- package/dist/tool-metadata/source-control.d.ts +26 -0
- package/dist/tool-metadata/source-control.js +23 -0
- package/dist/tool-metadata/trash.d.ts +32 -0
- package/dist/tool-metadata/trash.js +27 -0
- package/dist/tool-metadata/visitor-tools.d.ts +49 -0
- package/dist/tool-metadata/visitor-tools.js +12 -0
- package/dist/tool-metadata/web-screenshot.d.ts +14 -0
- package/dist/tool-metadata/web-screenshot.js +23 -0
- package/dist/tool-metadata/web.d.ts +14 -0
- package/dist/tool-metadata/web.js +21 -0
- package/dist/tool-metadata/webhooks.d.ts +65 -0
- package/dist/tool-metadata/webhooks.js +77 -0
- package/dist/tool-metadata/widgets.d.ts +124 -0
- package/dist/tool-metadata/widgets.js +161 -0
- package/dist/tool-metadata/workspace.d.ts +43 -0
- package/dist/tool-metadata/workspace.js +49 -0
- package/dist/tool-read-cards.d.ts +88 -0
- package/dist/tool-read-cards.js +158 -0
- package/dist/tool-registry.d.ts +25 -0
- package/package.json +1381 -5
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Page-navigation metadata and the host entity-lookup seam.
|
|
3
|
+
*
|
|
4
|
+
* Additive verbatim copy of the declarations in `@jini-ai/agentic` (`core/page-navigation.ts`);
|
|
5
|
+
* agentic keeps its identical declarations and exports until the paired cutover.
|
|
6
|
+
*/
|
|
7
|
+
/** Published navigation metadata. Hosts own routes and entity lookup; this module only projects
|
|
8
|
+
* validated destinations. Entity navigation never executes a follow-up control. */
|
|
9
|
+
export interface AgentEntityTarget {
|
|
10
|
+
readonly type: string;
|
|
11
|
+
readonly routeTemplate: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AgentNavigationScreen {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly label: string;
|
|
16
|
+
readonly description: string;
|
|
17
|
+
readonly path: string;
|
|
18
|
+
readonly routeTemplates: readonly string[];
|
|
19
|
+
readonly allowedQueryParams: Readonly<Record<string, readonly string[] | null>>;
|
|
20
|
+
readonly entityTargets: readonly AgentEntityTarget[];
|
|
21
|
+
}
|
|
22
|
+
export interface ResolvedPageEntity {
|
|
23
|
+
readonly params: Readonly<Record<string, string>>;
|
|
24
|
+
readonly query?: Readonly<Record<string, string>>;
|
|
25
|
+
/** Search the destination's published controls, then click the discovered handle separately. */
|
|
26
|
+
readonly control?: {
|
|
27
|
+
readonly query: string;
|
|
28
|
+
readonly role: 'button';
|
|
29
|
+
readonly intent: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export type PageEntityLookup = (required: {
|
|
33
|
+
page: string;
|
|
34
|
+
type: string;
|
|
35
|
+
id: string;
|
|
36
|
+
}, optional?: Record<string, never>) => Promise<ResolvedPageEntity | null>;
|
|
37
|
+
//# sourceMappingURL=agentic.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Page-navigation metadata and the host entity-lookup seam.
|
|
3
|
+
*
|
|
4
|
+
* Additive verbatim copy of the declarations in `@jini-ai/agentic` (`core/page-navigation.ts`);
|
|
5
|
+
* agentic keeps its identical declarations and exports until the paired cutover.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=agentic.js.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The analytics ingest shapes a host's beacon route and sink adapters share, as types only.
|
|
3
|
+
*
|
|
4
|
+
* An additive copy of the declarations in `@jini-ai/analytics` (`types.ts`); that package keeps its
|
|
5
|
+
* identical declarations and exports until the paired cutover.
|
|
6
|
+
*/
|
|
7
|
+
import type { ISODateTime } from '../../primitives/time.js';
|
|
8
|
+
import type { JsonObject } from '../../primitives/json.js';
|
|
9
|
+
import type { UUID } from '../../primitives/ids.js';
|
|
10
|
+
/** Kind of a recorded hit. `event` covers custom/goal events; `pageview` is the default. */
|
|
11
|
+
export type HitKind = "pageview" | "event";
|
|
12
|
+
/** Coarse device classification derived from UA at ingest (UA then discarded). */
|
|
13
|
+
export type DeviceClass = "desktop" | "mobile" | "tablet" | "bot" | "unknown";
|
|
14
|
+
/** Allowlisted UTM campaign parameters (the only query-string data retained). */
|
|
15
|
+
export interface UtmParams {
|
|
16
|
+
source: string | null;
|
|
17
|
+
medium: string | null;
|
|
18
|
+
campaign: string | null;
|
|
19
|
+
term: string | null;
|
|
20
|
+
content: string | null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The minimal payload the first-party, cookie-less client beacon sends (`navigator.sendBeacon`).
|
|
24
|
+
* Deliberately small and non-identifying: no cookies, no localStorage id, no fingerprint.
|
|
25
|
+
* The server derives everything else; the client never sends an IP/UA (the request carries those).
|
|
26
|
+
*/
|
|
27
|
+
export interface IngestBeacon {
|
|
28
|
+
/** Site host the hit belongs to; resolved server-side → workspaceId. */
|
|
29
|
+
host: string;
|
|
30
|
+
/** URL path only; query string dropped except allowlisted UTMs (extracted server-side). */
|
|
31
|
+
path: string;
|
|
32
|
+
/** Full referrer URL as seen by the client; reduced to a host server-side. */
|
|
33
|
+
referrer: string | null;
|
|
34
|
+
/** Kind of hit; defaults to `pageview`. */
|
|
35
|
+
kind: HitKind;
|
|
36
|
+
/** Custom event/goal name when `kind === "event"`. */
|
|
37
|
+
eventName?: string;
|
|
38
|
+
/** Bounded, validated, non-PII event properties. Rejected if they carry PII shapes. */
|
|
39
|
+
eventProps?: JsonObject;
|
|
40
|
+
/** Client-declared Do-Not-Track / Global-Privacy-Control signals, honored server-side. */
|
|
41
|
+
dnt?: boolean;
|
|
42
|
+
gpc?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Transient per-request signals used ONLY during normalization and then discarded.
|
|
46
|
+
* NEVER persisted, never placed on a row. Present in the type to make the boundary explicit.
|
|
47
|
+
*/
|
|
48
|
+
export interface IngestContext {
|
|
49
|
+
/** Remote IP — used for country/region lookup and exclusion checks, then dropped. */
|
|
50
|
+
readonly ip: string;
|
|
51
|
+
/** User-Agent — used for device/browser/os classification, then dropped. */
|
|
52
|
+
readonly userAgent: string;
|
|
53
|
+
/** Accept-Language — advisory locale hint, then dropped. */
|
|
54
|
+
readonly acceptLanguage: string | null;
|
|
55
|
+
/** Request receipt time. */
|
|
56
|
+
readonly receivedAt: ISODateTime;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A fully normalized, PII-free hit produced by the ingest seam. This is the ONLY shape that
|
|
60
|
+
* crosses the `AnalyticsSinkPort` — the boundary at which the design guarantees no PII.
|
|
61
|
+
*/
|
|
62
|
+
export interface NormalizedHit {
|
|
63
|
+
workspaceId: UUID;
|
|
64
|
+
occurredAt: ISODateTime;
|
|
65
|
+
kind: HitKind;
|
|
66
|
+
path: string;
|
|
67
|
+
referrerHost: string | null;
|
|
68
|
+
utm: UtmParams;
|
|
69
|
+
country: string | null;
|
|
70
|
+
region: string | null;
|
|
71
|
+
deviceClass: DeviceClass;
|
|
72
|
+
browserFamily: string | null;
|
|
73
|
+
osFamily: string | null;
|
|
74
|
+
/** Daily-rotating, per-site, salted, non-reversible visitor digest (cookie-less). */
|
|
75
|
+
visitorHash: string;
|
|
76
|
+
/** Derived session id = fn(visitorHash + bounded session window). Not cross-day linkable. */
|
|
77
|
+
sessionId: string;
|
|
78
|
+
eventName: string | null;
|
|
79
|
+
eventProps: JsonObject | null;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Admin wire shapes for the AI Assistant settings screen: the two stored assistant provider
|
|
3
|
+
* credentials — the site's (answers anonymous visitors) and one admin's own (powers that admin's
|
|
4
|
+
* execution BYOK), both write-only by design — plus the detected-agent list, the public assistant
|
|
5
|
+
* switch and the visitor-tools view. The host's stores produce them and its admin client reads them.
|
|
6
|
+
*/
|
|
7
|
+
import type { CredentialTokenHint } from "./secrets-credential-token.js";
|
|
8
|
+
/**
|
|
9
|
+
* Mirrors the host's site credential store view (`SiteAssistantCredentialView`) — the SITE's
|
|
10
|
+
* provider credential, the one a DEPLOYED server uses to answer anonymous visitors.
|
|
11
|
+
*
|
|
12
|
+
* Write-only by design: there is no field here that could carry key material back to the browser,
|
|
13
|
+
* and that is the point rather than an omission. `isSet` answers "is a key stored", `masked` answers
|
|
14
|
+
* "which one" (last 4 characters behind `••••`), and neither is reversible. If a future route ever
|
|
15
|
+
* needs to return the key itself, it needs its own type — do not widen this one.
|
|
16
|
+
*/
|
|
17
|
+
export interface SiteAssistantCredential {
|
|
18
|
+
isSet: boolean;
|
|
19
|
+
masked: string | null;
|
|
20
|
+
tokenHint?: CredentialTokenHint | null;
|
|
21
|
+
provider: string;
|
|
22
|
+
baseUrl: string | null;
|
|
23
|
+
model: string | null;
|
|
24
|
+
updatedAt: string | null;
|
|
25
|
+
}
|
|
26
|
+
/** PUT body for the site credential. Every field is optional and OMITTED MEANS "leave alone" — an
|
|
27
|
+
* absent `apiKey` preserves the stored key, which is what lets a caller persist a model or base-URL
|
|
28
|
+
* change without re-sending the secret. An empty-string `apiKey` is REJECTED by the server (400);
|
|
29
|
+
* clearing the key is the host's delete call, not an empty PUT. */
|
|
30
|
+
export interface SiteAssistantCredentialPatch {
|
|
31
|
+
apiKey?: string;
|
|
32
|
+
provider?: string;
|
|
33
|
+
baseUrl?: string;
|
|
34
|
+
model?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Mirrors the host's execution credential store view (`AdminExecutionCredentialView`) — the
|
|
38
|
+
* ADMIN's OWN BYOK credential, scoped to `(workspace, this admin)`. A DIFFERENT credential from
|
|
39
|
+
* {@link SiteAssistantCredential} (that one is per-workspace and answers anonymous visitors; this
|
|
40
|
+
* one is per-admin and only ever powers this admin's own dock/Execution-mode BYOK). The host's
|
|
41
|
+
* execution credential store documents why the two must never merge.
|
|
42
|
+
*
|
|
43
|
+
* Write-only by design, same as `SiteAssistantCredential`: no field here can carry key material
|
|
44
|
+
* back to the browser. `protocol`/`providerId`/`baseUrl`/`model`/`maxTokens` mirror `ByokConfig`
|
|
45
|
+
* (minus `apiKey`/`savedByProviderId`) so the stored view maps onto the form with no translation.
|
|
46
|
+
*/
|
|
47
|
+
export interface AdminExecutionCredential {
|
|
48
|
+
isSet: boolean;
|
|
49
|
+
masked: string | null;
|
|
50
|
+
tokenHint?: CredentialTokenHint | null;
|
|
51
|
+
protocol: string;
|
|
52
|
+
providerId: string | null;
|
|
53
|
+
baseUrl: string | null;
|
|
54
|
+
model: string | null;
|
|
55
|
+
maxTokens: number | null;
|
|
56
|
+
updatedAt: string | null;
|
|
57
|
+
}
|
|
58
|
+
/** PUT body for the admin's own execution credential. Same "omitted means leave alone, empty
|
|
59
|
+
* `apiKey` is rejected" contract as {@link SiteAssistantCredentialPatch} — see that type's doc. */
|
|
60
|
+
export interface AdminExecutionCredentialPatch {
|
|
61
|
+
apiKey?: string;
|
|
62
|
+
protocol?: string;
|
|
63
|
+
providerId?: string | null;
|
|
64
|
+
baseUrl?: string;
|
|
65
|
+
model?: string;
|
|
66
|
+
maxTokens?: number;
|
|
67
|
+
}
|
|
68
|
+
/** Mirrors `@jini-ai/ui`'s `ExecutionTab` `DetectedAgent` shape — see the host's detect-agents
|
|
69
|
+
* admin route and its `toExecutionTabAgent` projection.
|
|
70
|
+
*
|
|
71
|
+
* Each model's `reasoning` mirrors `@jini-ai/agent-runtime`'s `RuntimeModelOption.reasoning`
|
|
72
|
+
* (`packages/agent-runtime/src/types.ts` in Jini) — a model's OWN effort levels, narrowed to
|
|
73
|
+
* `{id,label}` the same way every other field on this interface narrows its Jini counterpart.
|
|
74
|
+
* `undefined` means the runtime doesn't report per-model levels for this agent (Codex today);
|
|
75
|
+
* it is never defaulted to `[]`, which would misreport "unknown" as "this model supports zero" —
|
|
76
|
+
* see `toExecutionTabAgent`'s `projectModelReasoning` for the same rule on the wire side. No
|
|
77
|
+
* `@jini-ai/ui` picker reads this yet; it exists so a future one can narrow the "Reasoning effort"
|
|
78
|
+
* control to the SELECTED model instead of `reasoningOptions`' agent-wide union. */
|
|
79
|
+
export interface AdminExecutionDetectedAgent {
|
|
80
|
+
discoveryPending?: boolean;
|
|
81
|
+
id: string;
|
|
82
|
+
label: string;
|
|
83
|
+
installed: boolean;
|
|
84
|
+
version?: string;
|
|
85
|
+
path?: string;
|
|
86
|
+
models?: Array<{
|
|
87
|
+
id: string;
|
|
88
|
+
label: string;
|
|
89
|
+
reasoning?: Array<{
|
|
90
|
+
id: string;
|
|
91
|
+
label: string;
|
|
92
|
+
}>;
|
|
93
|
+
}>;
|
|
94
|
+
modelsSource?: "live" | "fallback";
|
|
95
|
+
reasoningOptions?: Array<{
|
|
96
|
+
id: string;
|
|
97
|
+
label: string;
|
|
98
|
+
}>;
|
|
99
|
+
reasoningInModelId?: {
|
|
100
|
+
levels: Array<{
|
|
101
|
+
id: string;
|
|
102
|
+
label: string;
|
|
103
|
+
}>;
|
|
104
|
+
};
|
|
105
|
+
authStatus?: "ok" | "missing" | "unknown";
|
|
106
|
+
authMessage?: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Mirrors the host's public assistant settings module's `PublicAssistantSettings`.
|
|
110
|
+
*
|
|
111
|
+
* `publicEnabled: false` is a hard off — the public page ships no assistant bundle and exposes no
|
|
112
|
+
* assistant endpoint. It is NOT a client-side visibility flag, and nothing in this admin app should
|
|
113
|
+
* ever treat it as one; see that module's header for the contract in full.
|
|
114
|
+
*/
|
|
115
|
+
export interface PublicAssistantSettings {
|
|
116
|
+
publicEnabled: boolean;
|
|
117
|
+
/** Optional while older servers and cached responses still carry only the switch. */
|
|
118
|
+
widget?: "react" | "vanilla";
|
|
119
|
+
}
|
|
120
|
+
/** The one owner of the visitor-tools management view `VisitorToolsView`: the host's management
|
|
121
|
+
* service returns it and the admin page reads it.
|
|
122
|
+
* The admin page and the assistant chat's `visitor_tools_list` read the same service, so this shape
|
|
123
|
+
* is the server's, field for field. `policyState: "invalid"` means the saved policy is unreadable and
|
|
124
|
+
* every tool is effectively Off until the site-wide Off repair succeeds. */
|
|
125
|
+
export type VisitorToolMode = "auto" | "ask" | "off";
|
|
126
|
+
export interface VisitorToolLimits {
|
|
127
|
+
perIpPerHour: number;
|
|
128
|
+
perSitePerDay: number;
|
|
129
|
+
}
|
|
130
|
+
export interface VisitorToolView {
|
|
131
|
+
id: string;
|
|
132
|
+
source: "builtin" | "plugin" | "created" | "unavailable";
|
|
133
|
+
sourceRevision: string;
|
|
134
|
+
title: string;
|
|
135
|
+
description: string;
|
|
136
|
+
displayTitle?: string;
|
|
137
|
+
displayDescription?: string;
|
|
138
|
+
effect: "read" | "write";
|
|
139
|
+
availability: {
|
|
140
|
+
available: boolean;
|
|
141
|
+
reason?: string;
|
|
142
|
+
};
|
|
143
|
+
publication?: {
|
|
144
|
+
endpoint: string;
|
|
145
|
+
credentialId: string;
|
|
146
|
+
returnedFields: readonly string[];
|
|
147
|
+
};
|
|
148
|
+
mode: VisitorToolMode;
|
|
149
|
+
limits: VisitorToolLimits;
|
|
150
|
+
}
|
|
151
|
+
export interface VisitorToolsView {
|
|
152
|
+
revisionSeq: number;
|
|
153
|
+
/** Unreadable stored policy: every catalog tool is Off; only a site-wide Off reset is accepted. */
|
|
154
|
+
policyState?: "invalid";
|
|
155
|
+
defaults: VisitorToolLimits;
|
|
156
|
+
callsPerTurn: number;
|
|
157
|
+
tools: VisitorToolView[];
|
|
158
|
+
}
|
|
159
|
+
/** `toolId: "site"` patches every available tool at once (the invalid-policy repair uses it). */
|
|
160
|
+
export interface VisitorToolConfigureInput {
|
|
161
|
+
toolId: string;
|
|
162
|
+
expectedRevisionSeq: number;
|
|
163
|
+
mode?: VisitorToolMode;
|
|
164
|
+
limits?: Partial<VisitorToolLimits>;
|
|
165
|
+
}
|
|
166
|
+
export interface VisitorToolsPort {
|
|
167
|
+
list(required: Record<string, never>, optional?: Record<string, never>): Promise<VisitorToolsView>;
|
|
168
|
+
configure(required: VisitorToolConfigureInput, optional?: Record<string, never>): Promise<VisitorToolsView>;
|
|
169
|
+
}
|
|
170
|
+
/** The BYOK model-discovery probe's answer: only the discovered model ids, plus a message when the
|
|
171
|
+
* provider (or the host's empty-key copy) gave one. */
|
|
172
|
+
export interface AdminExecutionListModelsResponse {
|
|
173
|
+
ok: boolean;
|
|
174
|
+
models: string[];
|
|
175
|
+
message?: string;
|
|
176
|
+
}
|
|
177
|
+
/** The BYOK connection probe's answer: a failed probe is a 200 with `ok: false`, never an HTTP error. */
|
|
178
|
+
export interface AdminExecutionTestConnectionResponse {
|
|
179
|
+
ok: boolean;
|
|
180
|
+
message: string;
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=api-ai-assistant-api-types.d.ts.map
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Hosted-MCP sign-in service contracts. Types only; this module owns the declarations that
|
|
3
|
+
* `@jini-ai/integrations/api-connections/hosted-mcp` (`contracts.ts`) used to declare. That package
|
|
4
|
+
* imports them from here and keeps its runtime values.
|
|
5
|
+
*/
|
|
6
|
+
import type { Clock as ClockPort, UUID } from '../../primitives/index.js';
|
|
7
|
+
import type { KeyringPort, SecretSealerPort } from '../vault.js';
|
|
8
|
+
import type { AuthorizationCallbackParams, DeviceAuthorization, OAuthHttpPorts, OAuthProviderDescriptor, OAuthProviderRegistry } from '../oauth.js';
|
|
9
|
+
import type { ExternalMcpConnectStart, ExternalMcpOAuthTokenResolverPort, ExternalMcpServerRepoPort } from '../hosted-mcp.js';
|
|
10
|
+
/**
|
|
11
|
+
* One device authorization awaiting the operator's approval.
|
|
12
|
+
*
|
|
13
|
+
* `Promise`-returning so the host's durable adapter can persist and seal `deviceCode` through
|
|
14
|
+
* its sealer/keyring. The in-memory `createDeviceAuthorizationStore` is useful for tests and
|
|
15
|
+
* compositions where the entire handshake stays in one process.
|
|
16
|
+
* "Worthless after a restart" was never the reason durability matters: the agent daemon starts the
|
|
17
|
+
* handshake and the web server completes it in a different process, and a process-local Map cannot
|
|
18
|
+
* join those two legs. Memory stores remain useful only where the whole handshake stays in one process.
|
|
19
|
+
*/
|
|
20
|
+
/** @agent-note Fulfilled by the host (durable store in production, memory only when one process runs the whole handshake). The service that starts a device grant and the one that polls it must share this store. Durable adapters seal the secret `deviceCode` with the host's sealer/keyring; it must never be persisted as plaintext. */
|
|
21
|
+
export interface DeviceAuthorizationStore {
|
|
22
|
+
/** @agent-note Replaces any pending authorization for the server id. */
|
|
23
|
+
put(serverId: string, authorization: DeviceAuthorization): Promise<void>;
|
|
24
|
+
/** @agent-note `undefined` when none is pending or it was deleted. */
|
|
25
|
+
get(serverId: string): Promise<DeviceAuthorization | undefined>;
|
|
26
|
+
/** @agent-note Idempotent. */
|
|
27
|
+
delete(serverId: string): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
/** @agent-note `Shared` is the host's shared-owner storage port (for example a desktop shared-owner storage type); absent keeps site-local sign-in. `repo` must be the store's repository instance; `httpPorts` is required guarded transport; `onConnected` runs once after durable success and its failure never fails sign-in. */
|
|
30
|
+
export interface ExternalMcpOAuthDeps<Shared = never> {
|
|
31
|
+
/** Host owner storage is optional; absence retains existing site-local sign-in. */
|
|
32
|
+
readonly shared?: Shared;
|
|
33
|
+
readonly workspaceId: UUID;
|
|
34
|
+
readonly repo: ExternalMcpServerRepoPort;
|
|
35
|
+
readonly sealer: SecretSealerPort;
|
|
36
|
+
readonly keyring: KeyringPort;
|
|
37
|
+
readonly clock: ClockPort;
|
|
38
|
+
/** @agent-note ONE device store per host composition, shared by the service that starts a device grant and the one that polls it. */
|
|
39
|
+
readonly devices: DeviceAuthorizationStore;
|
|
40
|
+
/** Required guarded transport and endpoint policy: no raw-fetch fallback can send a credential. */
|
|
41
|
+
readonly httpPorts: OAuthHttpPorts;
|
|
42
|
+
/** Host-owned registration; separate services do not mutate a process-wide provider map.
|
|
43
|
+
* @agent-note ONE registry per service instance, built by the host; never a process-wide map. */
|
|
44
|
+
readonly providers?: OAuthProviderRegistry;
|
|
45
|
+
/** Resolves a REGISTERED provider descriptor. Injected so a test can register its own without
|
|
46
|
+
* mutating another service's registry. Defaults to this service's host-owned instance. */
|
|
47
|
+
readonly lookupProvider?: (providerId: string) => OAuthProviderDescriptor;
|
|
48
|
+
/** Runs after a sign-in succeeds (redirect callback or device poll), once the token is durable.
|
|
49
|
+
* The host wires its post-connect defaults here. A throw is logged and never fails the
|
|
50
|
+
* sign-in: the connection itself already succeeded. */
|
|
51
|
+
/** @agent-note Called exactly ONCE per successful sign-in, after the token write is durable; its rejection is logged by the host and never changes the sign-in result. */
|
|
52
|
+
readonly onConnected?: (serverId: string) => Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
/** @agent-note One instance per host composition; its `tokenResolver` is what the store receives. OAuth errors keep their original class identity; validation refusals are the canonical `ExternalMcpValidationError` from `@jini-ai/mcp/federation/hosted`.
|
|
55
|
+
* The host owns browser routes: authenticate the hosted sign-in hop, validate callback browser bindings, escape displayed content, check popup message origins and bound public callback traffic. Route inputs must not bypass these checks through the in-process unbound callback contract.
|
|
56
|
+
*/
|
|
57
|
+
export interface ExternalMcpOAuthService {
|
|
58
|
+
/**
|
|
59
|
+
* Starts an authorization for one connection.
|
|
60
|
+
*
|
|
61
|
+
* @param input.redirectUri - The absolute public callback URL, built by the route from the
|
|
62
|
+
* request so a reverse-proxied deployment gets the origin the browser actually used.
|
|
63
|
+
*
|
|
64
|
+
* OPTIONAL, because whether one is needed at all is a property of the GRANT, and only this
|
|
65
|
+
* function knows the grant: `device_code` never uses a redirect URI (RFC 8628 — the human types
|
|
66
|
+
* a code at the provider; nothing redirects back), while `authorization_code` cannot proceed
|
|
67
|
+
* without one. Requiring it here pushed that decision up to every caller, and the caller with no
|
|
68
|
+
* live HTTP request to derive an origin from (`external_mcp_oauth_connect`) consequently refused
|
|
69
|
+
* EVERY grant whenever the host's public-URL setting was unset — including the one that needed nothing. So:
|
|
70
|
+
* omit it when there is genuinely no origin. Never pass one built from anything the CALLER
|
|
71
|
+
* supplied (a form field, a tool-call argument) — only from operator configuration or this
|
|
72
|
+
* process's own known bind origin, resolved by the host. A redirect URI the provider was
|
|
73
|
+
* not registered with still fails at the vendor with an error about the client, so this is not a
|
|
74
|
+
* license to guess from arbitrary caller input — it is what makes a value trustworthy enough to
|
|
75
|
+
* pass at all.
|
|
76
|
+
* @throws {ExternalMcpValidationError} When the server is unknown, is not OAuth-authenticated, or
|
|
77
|
+
* uses a grant that requires a redirect URI and none was supplied.
|
|
78
|
+
* @throws {OAuthError} Bounded, terminal, never retried — see this file's header.
|
|
79
|
+
* @param input.delivery - Browser-facing callers use `hosted`: only the authenticated host hop
|
|
80
|
+
* reveals the provider URL and sets the browser cookie. Device grants keep their existing shape.
|
|
81
|
+
* @param input.browserBinding - Host-issued cookie proof when that browser hop mints provider state.
|
|
82
|
+
*/
|
|
83
|
+
/** @agent-note The redirect URI comes only from host configuration or its own bind origin, never from caller input. */
|
|
84
|
+
beginConnect(input: {
|
|
85
|
+
serverId: string;
|
|
86
|
+
redirectUri?: string;
|
|
87
|
+
delivery?: "hosted";
|
|
88
|
+
browserBinding?: string;
|
|
89
|
+
destination?: "shared";
|
|
90
|
+
actorId?: string;
|
|
91
|
+
}): Promise<ExternalMcpConnectStart>;
|
|
92
|
+
/**
|
|
93
|
+
* Finishes an authorization-code handshake from the public callback route.
|
|
94
|
+
*
|
|
95
|
+
* @param input.params - The callback's query parameters, already narrowed to strings. Untrusted.
|
|
96
|
+
* @param input.redirectUri - Canonical callback URI from the host's existing trusted origin policy.
|
|
97
|
+
* @param input.browserBinding - Public callbacks must supply the validated browser cookie.
|
|
98
|
+
* Direct in-process callers retain the legacy unbound contract; HTTP never falls back to it.
|
|
99
|
+
*/
|
|
100
|
+
/** @agent-note Public callbacks must pass the host-validated browser binding. */
|
|
101
|
+
completeAuthorizationCallback(input: {
|
|
102
|
+
serverId: string;
|
|
103
|
+
redirectUri: string;
|
|
104
|
+
params: AuthorizationCallbackParams;
|
|
105
|
+
browserBinding?: string;
|
|
106
|
+
}, optionalArgs?: Record<string, never>): Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Polls a device authorization exactly once.
|
|
109
|
+
*
|
|
110
|
+
* @returns `"pending"` with the interval to wait, or `"connected"` once the token is stored.
|
|
111
|
+
* @throws {OAuthError} On any terminal outcome — declined, expired, or a provider failure.
|
|
112
|
+
*/
|
|
113
|
+
/** @agent-note Exactly one provider poll per call. */
|
|
114
|
+
pollDeviceAuthorization(input: {
|
|
115
|
+
serverId: string;
|
|
116
|
+
}): Promise<{
|
|
117
|
+
readonly status: "pending";
|
|
118
|
+
readonly retryAfterSeconds: number;
|
|
119
|
+
} | {
|
|
120
|
+
readonly status: "connected";
|
|
121
|
+
}>;
|
|
122
|
+
/** Clears the stored token and returns the connection to `disconnected`. */
|
|
123
|
+
/** @agent-note Clears the stored token; the row stays. */
|
|
124
|
+
disconnect(input: {
|
|
125
|
+
serverId: string;
|
|
126
|
+
}): Promise<void>;
|
|
127
|
+
/**
|
|
128
|
+
* Reacts to a live federated call failing because the remote rejected our authorization (HTTP
|
|
129
|
+
* 401/403), discovered mid-session rather than at boot — wired as
|
|
130
|
+
* the federation's `FederationDeps.onAuthFailed`.
|
|
131
|
+
*
|
|
132
|
+
* For an OAuth-authenticated row this records `needs_reauth` durably, the same state
|
|
133
|
+
* `tokenResolver.resolveAccessToken` reaches at boot, so the NEXT call is refused cheaply by
|
|
134
|
+
* the host's connection-gate row read instead of reaching the network again — and
|
|
135
|
+
* replaces the transport-shaped error with the same terminal, non-retryable
|
|
136
|
+
* {@link ExternalMcpReauthRequiredError} that path already throws.
|
|
137
|
+
*
|
|
138
|
+
* A row that is not OAuth-authenticated (or no longer exists) has no reauth state to record;
|
|
139
|
+
* `error` propagates unchanged.
|
|
140
|
+
* @throws Always — either the original `error`, or {@link ExternalMcpReauthRequiredError}.
|
|
141
|
+
*/
|
|
142
|
+
/** @agent-note Always throws: the original error, or the host's canonical re-authorization error. */
|
|
143
|
+
reportAuthFailure(serverId: string, error: Error): Promise<never>;
|
|
144
|
+
/** The port `readEnabledExternalMcpConfigs` takes, wired to this service's refresher. */
|
|
145
|
+
/** @agent-note The same object the store's token resolver port receives. */
|
|
146
|
+
readonly tokenResolver: ExternalMcpOAuthTokenResolverPort;
|
|
147
|
+
/** True when a shared binding was checked; throws if its current grant is unavailable. */
|
|
148
|
+
listSharedConnections?(input: {
|
|
149
|
+
serverId: string;
|
|
150
|
+
actorId: string;
|
|
151
|
+
}): Promise<{
|
|
152
|
+
available: boolean;
|
|
153
|
+
connections: readonly {
|
|
154
|
+
credentialId: string;
|
|
155
|
+
label: string;
|
|
156
|
+
}[];
|
|
157
|
+
current: {
|
|
158
|
+
credentialId: string;
|
|
159
|
+
status: string;
|
|
160
|
+
granted: boolean;
|
|
161
|
+
} | null;
|
|
162
|
+
}>;
|
|
163
|
+
assertSharedAuthorized?(input: {
|
|
164
|
+
serverId: string;
|
|
165
|
+
}): Promise<boolean>;
|
|
166
|
+
useLocalConnection?(input: {
|
|
167
|
+
serverId: string;
|
|
168
|
+
actorId: string;
|
|
169
|
+
}): Promise<void>;
|
|
170
|
+
useSharedConnection?(input: {
|
|
171
|
+
serverId: string;
|
|
172
|
+
credentialId: string;
|
|
173
|
+
actorId: string;
|
|
174
|
+
}): Promise<void>;
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=api-connections-hosted-mcp.d.ts.map
|