@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,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A theme id. Open string under SPEC-004 because themes are discovered from disk, so
|
|
3
|
+
* the valid set is dynamic.
|
|
4
|
+
* Clients read the current valid ids from `availableThemeIds`.
|
|
5
|
+
*
|
|
6
|
+
* One value is RESERVED and never names a theme: `"none"` (`features/theme`'s `NO_THEME_ID`) means
|
|
7
|
+
* the operator turned the theme off deliberately and the site renders unstyled. A headless client
|
|
8
|
+
* reading `activeThemeId` must treat it as "no theme", not as a theme id to look up — asking for a
|
|
9
|
+
* theme by that id 404s. It deliberately never appears in `availableThemeIds`, which is a catalogue
|
|
10
|
+
* of themes a client can PICK, not a list of values the API will accept. No type change: the
|
|
11
|
+
* sentinel is a legal `HeadlessThemeId` because this alias is an open string.
|
|
12
|
+
*/
|
|
13
|
+
export type HeadlessThemeId = HeadlessThemeSummary["id"];
|
|
14
|
+
/**
|
|
15
|
+
* SPEC-002 (content-entry-authoring) discriminates a blog-style `"post"` from a
|
|
16
|
+
* standalone `"page"` over the same underlying record shape (see
|
|
17
|
+
* `features/post/post.ts`'s `PostKind` doc). Declared locally rather than
|
|
18
|
+
* importing `features/post`'s `PostKind` — `headless` is the wire-contract
|
|
19
|
+
* layer and stays decoupled from feature internals (mirrors `HeadlessThemeId`'s
|
|
20
|
+
* open-string precedent just above); the two are kept in lockstep by
|
|
21
|
+
* `toHeadlessPost`/`toHeadlessContentPost`, the only callers that populate it.
|
|
22
|
+
*/
|
|
23
|
+
export type HeadlessEntryKind = "post" | "page";
|
|
24
|
+
/**
|
|
25
|
+
* SPEC-047/ADR-056 Decision 3 — discriminates which body an `AdminPost` actually carries. Declared
|
|
26
|
+
* locally rather than importing `features/post`'s `PostBodyFormat`, for the same reason
|
|
27
|
+
* `HeadlessEntryKind` is declared locally just above: `headless` is the wire-contract layer and
|
|
28
|
+
* stays decoupled from feature internals; `toHeadlessPost` is the only place the two are kept in
|
|
29
|
+
* lockstep.
|
|
30
|
+
*/
|
|
31
|
+
export type HeadlessBodyFormat = "doc" | "html";
|
|
32
|
+
interface AdminPostFields {
|
|
33
|
+
/** Editable display credit, independent of the creator principal. */
|
|
34
|
+
author?: string | null;
|
|
35
|
+
showAuthor?: boolean;
|
|
36
|
+
id: string;
|
|
37
|
+
workspaceId: string;
|
|
38
|
+
/** SPEC-002 api.spec.md §5 — entry kind. */
|
|
39
|
+
kind: HeadlessEntryKind;
|
|
40
|
+
title: string;
|
|
41
|
+
slug: string;
|
|
42
|
+
status: "draft" | "published";
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
version: number;
|
|
45
|
+
/**
|
|
46
|
+
* SPEC-005 REQ-11/AC-14 — optional plugin extension-field bag,
|
|
47
|
+
* namespaced per plugin (`{ [pluginId]: { …declaredFields } }`). Present only when a plugin has
|
|
48
|
+
* actually written to this entry; an entry with no contributing plugin carries no `ext` key at
|
|
49
|
+
* all.
|
|
50
|
+
*/
|
|
51
|
+
ext?: Record<string, Record<string, unknown>>;
|
|
52
|
+
/**
|
|
53
|
+
* Optional `pages/*.html` filename (of the active static theme's
|
|
54
|
+
* `theme.json` `postTemplate` array) this post renders through. `toHeadlessPost` always populates
|
|
55
|
+
* a real value (`post.templateChoice ?? null`) on every live response, so a consumer only ever
|
|
56
|
+
* sees `undefined` in a hand-built test fixture that predates this field, never from the real API.
|
|
57
|
+
* `null` and `""` are NOT interchangeable — see `PostRecord.templateChoice` for the tri-state.
|
|
58
|
+
*/
|
|
59
|
+
templateChoice?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Optional slug-collision override: `null` means this post never had an explicit opinion set
|
|
62
|
+
* (the resolver's current default policy applies), `true`/`false` is a permanent explicit author
|
|
63
|
+
* choice. `toHeadlessPost` always populates a real value (`post.overridesThemePage ?? null`) on
|
|
64
|
+
* every live response; `undefined` only appears in a pre-feature test fixture.
|
|
65
|
+
*/
|
|
66
|
+
overridesThemePage?: boolean | null;
|
|
67
|
+
/** Scheduled publishing — ISO UTC go-live instant; absent when not scheduled. A
|
|
68
|
+
* `published` post whose `publishAt` is in the future is not yet visible on the public site. */
|
|
69
|
+
publishAt?: string;
|
|
70
|
+
/** Featured image — media asset id; absent when the post has none. */
|
|
71
|
+
featuredMediaId?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* SPEC-047/ADR-056 Decision 3 / REQ-3 — a discriminated union, not one loose type with two optional
|
|
75
|
+
* body fields. The trap this closes: TipTap silently discards markup outside its node vocabulary and
|
|
76
|
+
* saves the loss with no error, so "never build a TipTap editor's props from an `html`-format row"
|
|
77
|
+
* cannot be left to a runtime `if` a future refactor can quietly delete. Narrowing on `bodyFormat`
|
|
78
|
+
* (e.g. `if (post.bodyFormat === "doc")`) is the only way to reach a non-null `bodyJson` — a caller
|
|
79
|
+
* that does not narrow, or narrows on the wrong field, gets a type error, not a runtime surprise. See
|
|
80
|
+
* `admin-post-response.type.test.ts` for the compile-time proof.
|
|
81
|
+
*/
|
|
82
|
+
export type AdminPost = (AdminPostFields & {
|
|
83
|
+
bodyFormat: "doc";
|
|
84
|
+
bodyJson: Record<string, unknown>;
|
|
85
|
+
bodyHtml: null;
|
|
86
|
+
}) | (AdminPostFields & {
|
|
87
|
+
bodyFormat: "html";
|
|
88
|
+
bodyJson: null;
|
|
89
|
+
bodyHtml: string;
|
|
90
|
+
});
|
|
91
|
+
export interface AdminPostEnvelope {
|
|
92
|
+
post: AdminPost;
|
|
93
|
+
}
|
|
94
|
+
interface ContentPostFields {
|
|
95
|
+
author?: string | null;
|
|
96
|
+
showAuthor?: boolean;
|
|
97
|
+
id: string;
|
|
98
|
+
/** SPEC-002 api.spec.md §5 (`CONTENT_ENTRY_BY_SLUG`) — entry kind. */
|
|
99
|
+
kind: HeadlessEntryKind;
|
|
100
|
+
title: string;
|
|
101
|
+
slug: string;
|
|
102
|
+
updatedAt: string;
|
|
103
|
+
}
|
|
104
|
+
/** Document responses retain their original shape; HTML responses carry their actual body. */
|
|
105
|
+
export type ContentPost = (ContentPostFields & {
|
|
106
|
+
bodyFormat?: "doc";
|
|
107
|
+
bodyJson: Record<string, unknown>;
|
|
108
|
+
bodyHtml?: null;
|
|
109
|
+
}) | (ContentPostFields & {
|
|
110
|
+
bodyFormat: "html";
|
|
111
|
+
bodyJson: null;
|
|
112
|
+
bodyHtml: string;
|
|
113
|
+
});
|
|
114
|
+
/**
|
|
115
|
+
* ADR-020 capability tier, mirrored locally from `features/theme`'s `ThemeTier` for the same
|
|
116
|
+
* decoupling reason as `HeadlessEntryKind` above — the wire contract doesn't import feature
|
|
117
|
+
* internals. Kept in lockstep by `toAdminPresentationResponse`, the only place that populates it.
|
|
118
|
+
*/
|
|
119
|
+
export type HeadlessThemeTier = "declarative" | "templated" | "handlebars" | "static" | "code";
|
|
120
|
+
export interface HeadlessThemeSummary {
|
|
121
|
+
/** Existing screenshot URL, or null when the theme has no preview image. */
|
|
122
|
+
previewImageUrl?: string | null;
|
|
123
|
+
id: string;
|
|
124
|
+
/** The theme's display name — `theme.json`'s `name`, or the id when the manifest has none
|
|
125
|
+
* (`ThemeManifest.name`'s own fallback, `theme.ts`). What the admin shows the owner; the id
|
|
126
|
+
* stays the key. */
|
|
127
|
+
name: string;
|
|
128
|
+
tier: HeadlessThemeTier;
|
|
129
|
+
/**
|
|
130
|
+
* The theme's manifest `apiVersion` (`2`, or `undefined` for v1) tells the admin whether page
|
|
131
|
+
* templates live under `pages/` (v1) or `render/pages/` (v2). Mirrors `ThemeManifest.apiVersion`.
|
|
132
|
+
*/
|
|
133
|
+
apiVersion?: 2;
|
|
134
|
+
/** Ships with the package itself (its originals catalog has this id), so the Themes screen does
|
|
135
|
+
* not offer to delete it. A copy of a shipped theme is `false`. Optional for older servers. */
|
|
136
|
+
builtIn?: boolean;
|
|
137
|
+
}
|
|
138
|
+
export interface AdminPresentation {
|
|
139
|
+
settings: {
|
|
140
|
+
workspaceId: string;
|
|
141
|
+
activeThemeId: HeadlessThemeId;
|
|
142
|
+
updatedAt: string;
|
|
143
|
+
};
|
|
144
|
+
availableThemeIds: HeadlessThemeId[];
|
|
145
|
+
/**
|
|
146
|
+
* Themes admin screen — every available theme's id plus its ADR-020 capability
|
|
147
|
+
* tier, so the Themes screen can group cards by tier without a second round trip. Same id set
|
|
148
|
+
* as `availableThemeIds` above (that field stays for callers that only need ids); this is the
|
|
149
|
+
* superset callers that need tier read instead.
|
|
150
|
+
*/
|
|
151
|
+
availableThemes: HeadlessThemeSummary[];
|
|
152
|
+
/**
|
|
153
|
+
* Template picker — the active theme's `theme.json`
|
|
154
|
+
* `templates` array (e.g. `["blog-post.html", "page-shell.html"]`), or `[]` when the active theme
|
|
155
|
+
* doesn't declare one. BOTH the Post editor's and the Pages editor's picker read this SAME field to
|
|
156
|
+
* populate their options. The unified `content` marker makes the template list common;
|
|
157
|
+
* see `ThemeManifest.templates` (`features/theme/theme.ts`) for the
|
|
158
|
+
* historical reasoning). Editor GETs now supply `kind=post` or `kind=page` to filter this
|
|
159
|
+
* array using `ThemeManifest.templateFor`, preserving manifest order. Omitting kind retains the
|
|
160
|
+
* full catalog. An empty array means a picker has nothing to offer and stays hidden unless its
|
|
161
|
+
* content row already has a saved choice, which the editor keeps visible.
|
|
162
|
+
*/
|
|
163
|
+
activeThemeTemplates: string[];
|
|
164
|
+
/**
|
|
165
|
+
* Slug-collision override — every page id (`theme.pages` key) the active theme ships,
|
|
166
|
+
* or `[]` for a non-`static`-tier theme. The Post editor uses this to warn an author when a post's
|
|
167
|
+
* slug matches one of these — that slug's route currently belongs to the theme's own page, not the
|
|
168
|
+
* post, unless the post's `overridesThemePage` is set.
|
|
169
|
+
*/
|
|
170
|
+
activeThemeStaticPageIds: string[];
|
|
171
|
+
}
|
|
172
|
+
export interface ContentPostPayload {
|
|
173
|
+
post: ContentPost;
|
|
174
|
+
presentation: {
|
|
175
|
+
activeThemeId: HeadlessThemeId;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
export {};
|
|
179
|
+
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { FormDeliveryJobStatus } from "../site/cms-forms.js";
|
|
2
|
+
/**
|
|
3
|
+
* @file The read port `forms_delivery_status` uses to report durable form delivery. Declared as a contract,
|
|
4
|
+
* structurally, so the forms feature never imports the database layer; the site composition binds
|
|
5
|
+
* `SqlFormDeliveryRepo`, whose status comes only from each delivery job's outbox row.
|
|
6
|
+
*/
|
|
7
|
+
/** One binding's delivery of one submission: status derived from its outbox job, nothing else.
|
|
8
|
+
* The one definition: `SqlFormDeliveryRepo` returns it and the tool reports it. */
|
|
9
|
+
export type FormDeliveryStatusRow = {
|
|
10
|
+
readonly bindingId: string;
|
|
11
|
+
readonly adapterId: string;
|
|
12
|
+
readonly formId: string;
|
|
13
|
+
readonly submissionId: string;
|
|
14
|
+
} & FormDeliveryJobStatus;
|
|
15
|
+
/** Read side of durable form delivery (`SqlFormDeliveryRepo`); both reads are scoped to `workspaceId`. */
|
|
16
|
+
export interface FormDeliveryStatusPort {
|
|
17
|
+
/** Counts only, never recipient addresses, answers, or provider exception text. */
|
|
18
|
+
notificationSummary?(required: {
|
|
19
|
+
workspaceId: string;
|
|
20
|
+
submissionId: string;
|
|
21
|
+
}, optional?: Record<string, never>): Promise<{
|
|
22
|
+
failed: number;
|
|
23
|
+
pending: number;
|
|
24
|
+
}>;
|
|
25
|
+
forSubmission(required: {
|
|
26
|
+
workspaceId: string;
|
|
27
|
+
submissionId: string;
|
|
28
|
+
}, optional?: Record<string, never>): Promise<readonly FormDeliveryStatusRow[]>;
|
|
29
|
+
recentUnfinished(required: {
|
|
30
|
+
workspaceId: string;
|
|
31
|
+
}, optional?: {
|
|
32
|
+
limit?: number;
|
|
33
|
+
}): Promise<readonly FormDeliveryStatusRow[]>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=form-delivery-status.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SettingsRepoPort } from '../../settings/ports.js';
|
|
2
|
+
export type { OperatorLocaleDeps } from './plugin-host.js';
|
|
3
|
+
/** Structural signature of `@jini-ai/core/settings`'s `getEffective`, narrowed to what is read here. */
|
|
4
|
+
export type GetEffectiveSetting = (required: {
|
|
5
|
+
deps: {
|
|
6
|
+
repo: SettingsRepoPort;
|
|
7
|
+
};
|
|
8
|
+
namespace: string;
|
|
9
|
+
key: string;
|
|
10
|
+
scopeContext: {
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
principalId: string;
|
|
13
|
+
};
|
|
14
|
+
}) => Promise<{
|
|
15
|
+
value: unknown;
|
|
16
|
+
} | null>;
|
|
17
|
+
//# sourceMappingURL=operator-locale.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Workspace-scoped, model-safe catalog shared by the two plugin families through the host. */
|
|
2
|
+
import type { AgentPluginExport } from '../site/agent-plugins-manifest.js';
|
|
3
|
+
/** Public component metadata only; never includes package paths, credentials or render handles. */
|
|
4
|
+
export interface PluginExportCatalogRow {
|
|
5
|
+
readonly plugin: string;
|
|
6
|
+
readonly displayName?: string;
|
|
7
|
+
readonly component: string;
|
|
8
|
+
readonly version: number;
|
|
9
|
+
readonly minVersion: number;
|
|
10
|
+
readonly props: AgentPluginExport['props'];
|
|
11
|
+
readonly consent: AgentPluginExport['consent'];
|
|
12
|
+
readonly availability: string;
|
|
13
|
+
readonly snippet: string | null;
|
|
14
|
+
}
|
|
15
|
+
/** Host binding to the Agent Plugin catalog owner. Read failures reject; callers own degradation. */
|
|
16
|
+
export interface PluginExportCatalogPort {
|
|
17
|
+
catalog(required: {
|
|
18
|
+
workspaceId: string;
|
|
19
|
+
}, options?: Record<string, never>): Promise<ReadonlyMap<string, readonly PluginExportCatalogRow[]>>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=plugin-export-catalog.d.ts.map
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/** Cross-family host contract. Plugins ask the host; they never import another plugin family. */
|
|
2
|
+
import type { PluginIdentityCandidate, PluginLookupPort } from '../site/plugin-directory.js';
|
|
3
|
+
import type { InstalledAgentPlugin, SetAgentPluginEnabledInput as AgentPluginEnableInput, SetAgentPluginEnabledResult } from '../site/agent-plugins-lifecycle.js';
|
|
4
|
+
import type { AccessApprovalResource } from '../../approval.js';
|
|
5
|
+
import type { ToolExecutionContext, ToolExecutionOptions } from '../../tool-registry.js';
|
|
6
|
+
import type { AssistantSurfaceDeps } from '../site/daemon-surface-exchanges.js';
|
|
7
|
+
import type { SettingsRepoPort } from '../../settings/ports.js';
|
|
8
|
+
import type { AuthorizeFn } from '../events.js';
|
|
9
|
+
import type { UninstallAgentPluginRequired as JiniUninstallRequired, UninstallAgentPluginOptional, UninstallAgentPluginResult } from '../site/agent-plugins-lifecycle.js';
|
|
10
|
+
export type { PluginLookupPort, PluginProvider } from '../site/plugin-directory.js';
|
|
11
|
+
/** One workspace's ENTIRE Agent Plugins tree — packages, data, and staging, all rooted under the
|
|
12
|
+
* same `ws/<workspaceId>/` directory, so nothing in it is reachable from another workspace's own
|
|
13
|
+
* layout without walking `..` out of it (see `layout.unit.test.ts`'s disjointness assertion). */
|
|
14
|
+
export interface AgentPluginWorkspaceLayout {
|
|
15
|
+
/** `<instance root>/ws/<workspaceId>` */
|
|
16
|
+
readonly root: string;
|
|
17
|
+
/** `<root>/packages/sha256` — immutable, content-addressed WITHIN this workspace only. */
|
|
18
|
+
/** Legacy flat store: migration input only. */
|
|
19
|
+
readonly packages: string;
|
|
20
|
+
pluginRootDir(required: {
|
|
21
|
+
pluginId: string;
|
|
22
|
+
}, optional?: Record<string, never>): string;
|
|
23
|
+
pluginPackagesDir(required: {
|
|
24
|
+
pluginId: string;
|
|
25
|
+
}, optional?: Record<string, never>): string;
|
|
26
|
+
pluginMemoryDir(required: {
|
|
27
|
+
pluginId: string;
|
|
28
|
+
kind: "learned" | "notes";
|
|
29
|
+
}, optional?: Record<string, never>): string;
|
|
30
|
+
/** `<root>/staging` — private atomic-extraction directories for this workspace's own installs. */
|
|
31
|
+
readonly staging: string;
|
|
32
|
+
/**
|
|
33
|
+
* This workspace's writable `PLUGIN_DATA` root: `<root>/<pluginId>/data/`.
|
|
34
|
+
*
|
|
35
|
+
* @throws {Error} If `pluginId` does not match the Agent Plugins name grammar — used as a raw
|
|
36
|
+
* path segment, so an unvalidated caller must not be able to smuggle a traversal segment through.
|
|
37
|
+
*/
|
|
38
|
+
pluginDataDir(required: {
|
|
39
|
+
pluginId: string;
|
|
40
|
+
}, optional?: Record<string, never>): string;
|
|
41
|
+
}
|
|
42
|
+
export interface AgentPluginLayout {
|
|
43
|
+
/** `<site>/agent-plugins` (or the host's configured override directory) — the whole tree this feature owns. Not,
|
|
44
|
+
* by itself, a usable install/data location for any workspace — see `forWorkspace`. */
|
|
45
|
+
readonly root: string;
|
|
46
|
+
/** `<root>/ws` — the folder holding one `forWorkspace({ workspaceId }).root` per workspace. Exposed so a reader
|
|
47
|
+
* that must visit every workspace (the site backup) enumerates the same folder installs write to. */
|
|
48
|
+
readonly workspacesDir: string;
|
|
49
|
+
/**
|
|
50
|
+
* Resolves the fully workspace-scoped layout for one workspace. This is the ONLY way to reach a
|
|
51
|
+
* `packages`/`staging`/`pluginDataDir` path — there is deliberately no instance-level equivalent
|
|
52
|
+
* of any of them, so a caller cannot accidentally hand `install.ts` a path shared across tenants.
|
|
53
|
+
*
|
|
54
|
+
* @throws {Error} If `workspaceId` is not a bounded, safe path segment.
|
|
55
|
+
*/
|
|
56
|
+
forWorkspace(required: {
|
|
57
|
+
workspaceId: string;
|
|
58
|
+
}, optional?: Record<string, never>): AgentPluginWorkspaceLayout;
|
|
59
|
+
}
|
|
60
|
+
/** The route-deps slice this reads. `settingsRepo` is always present on the composed assistant
|
|
61
|
+
* deps (`SettingsToolDeps`); optional so the many narrow test fixtures that never render copy keep
|
|
62
|
+
* working, and they get English. */
|
|
63
|
+
export interface OperatorLocaleDeps {
|
|
64
|
+
readonly settingsRepo?: SettingsRepoPort;
|
|
65
|
+
}
|
|
66
|
+
/** The narrow slice of the route-deps bag this branch's handler reads. Structurally satisfied by
|
|
67
|
+
* `PluginsToolDeps` (`plugin-runtime/tool-registrations.ts`), which carries both fields among many
|
|
68
|
+
* others — this interface stays narrow so this module does not have to import that wider type. */
|
|
69
|
+
export interface AgentPluginUninstallToolDeps extends OperatorLocaleDeps {
|
|
70
|
+
readonly agentPluginLayout: AgentPluginLayout;
|
|
71
|
+
readonly authorize: AuthorizeFn;
|
|
72
|
+
readonly workspaceId: string;
|
|
73
|
+
/** The lifecycle owner with host-supplied effects, used for the confirmed write. */
|
|
74
|
+
readonly uninstallAgentPlugin?: (input: Omit<JiniUninstallRequired, 'layout'> & {
|
|
75
|
+
readonly layout: AgentPluginLayout;
|
|
76
|
+
}, options?: UninstallAgentPluginOptional) => Promise<UninstallAgentPluginResult>;
|
|
77
|
+
}
|
|
78
|
+
export type SetAgentPluginEnabledInput = AgentPluginEnableInput & {
|
|
79
|
+
agentPluginLayout: AgentPluginLayout;
|
|
80
|
+
};
|
|
81
|
+
/** The lifecycle owner remains responsible for authorization, confirmation and durable writes. */
|
|
82
|
+
export interface AgentPluginHostCapability {
|
|
83
|
+
/** Read the activation owner's off records once for a model-facing catalog request. */
|
|
84
|
+
inactivePluginIds?(required: Record<string, never>, optional?: Record<string, never>): Promise<ReadonlySet<string>>;
|
|
85
|
+
/** Point-read preview binds the plugin enable card to its external source and exact grants. */
|
|
86
|
+
previewEnableAccess?(required: {
|
|
87
|
+
pluginId: string;
|
|
88
|
+
}, optional?: Record<string, never>): Promise<{
|
|
89
|
+
readonly key: string;
|
|
90
|
+
readonly resources?: readonly Omit<AccessApprovalResource, 'scope'>[];
|
|
91
|
+
}>;
|
|
92
|
+
/** Persist a declined source proposal through the same connection decision owner. */
|
|
93
|
+
recordDeclinedAccess?(required: {
|
|
94
|
+
accessKey: string;
|
|
95
|
+
}, optional?: Record<string, never>): Promise<void>;
|
|
96
|
+
listInstalled(required: Record<string, never>, optional?: Record<string, never>): Promise<readonly InstalledAgentPlugin[]>;
|
|
97
|
+
/** The revision-selection owner (bundled digests win): the copies of `installed` the host would use. */
|
|
98
|
+
preferInstalled?(required: {
|
|
99
|
+
installed: readonly InstalledAgentPlugin[];
|
|
100
|
+
}, optional?: Record<string, never>): Promise<readonly InstalledAgentPlugin[]>;
|
|
101
|
+
assertWritable(required: Record<string, never>, optional?: Record<string, never>): Promise<void>;
|
|
102
|
+
setEnabled(required: AgentPluginEnableInput, optional?: Record<string, never>): Promise<SetAgentPluginEnabledResult>;
|
|
103
|
+
provisionMcp(required: {
|
|
104
|
+
pluginId: string;
|
|
105
|
+
principalId: string;
|
|
106
|
+
}, optional?: {
|
|
107
|
+
readonly approvedEnable?: boolean;
|
|
108
|
+
readonly approvedEnableKey?: string;
|
|
109
|
+
}): Promise<void>;
|
|
110
|
+
uninstall(required: {
|
|
111
|
+
surfaces: AssistantSurfaceDeps;
|
|
112
|
+
ctx: ToolExecutionContext;
|
|
113
|
+
pluginId: string;
|
|
114
|
+
executionOptions: ToolExecutionOptions;
|
|
115
|
+
}, optional?: Record<string, never>): Promise<unknown>;
|
|
116
|
+
}
|
|
117
|
+
export interface PluginHostPort extends PluginLookupPort {
|
|
118
|
+
/** Serializes identity admission and publication across plugin kinds. */
|
|
119
|
+
withInstallIdentity<T>(required: {
|
|
120
|
+
candidate: PluginIdentityCandidate;
|
|
121
|
+
run: () => Promise<T>;
|
|
122
|
+
}, optional?: Record<string, never>): Promise<T>;
|
|
123
|
+
/** Lifecycle orchestration is a host capability, separate from installed plugin declarations. */
|
|
124
|
+
getHostCapability(required: {
|
|
125
|
+
capability: 'agent-plugin-lifecycle';
|
|
126
|
+
}, optional?: Record<string, never>): AgentPluginHostCapability | undefined;
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=plugin-host.d.ts.map
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/** Chat attachment input belongs to the host contract, shared by both plugin families. */
|
|
2
|
+
import type { ChatAttachmentReadResult } from '@jini-ai/core/contracts/headless/chat-attachment';
|
|
3
|
+
/** Host-owned byte access: composition scopes opaque refs by principal and accepted message/run. */
|
|
4
|
+
export type InstallAttachmentReader = (required: {
|
|
5
|
+
ref: string;
|
|
6
|
+
ownerId: string;
|
|
7
|
+
runId: string;
|
|
8
|
+
}, optional: {
|
|
9
|
+
maxBytes: number;
|
|
10
|
+
}) => Promise<ChatAttachmentReadResult>;
|
|
11
|
+
export interface PluginInstallRequest {
|
|
12
|
+
readonly kind: "folder" | "zip";
|
|
13
|
+
readonly path?: string;
|
|
14
|
+
readonly attachmentRef?: string;
|
|
15
|
+
readonly replace: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** Composition supplies the shared source reader so plugin families do not load each other. */
|
|
18
|
+
export interface PluginInstallSourcePort {
|
|
19
|
+
readRequest(required: {
|
|
20
|
+
input: unknown;
|
|
21
|
+
}, optional?: Record<string, never>): PluginInstallRequest;
|
|
22
|
+
readArchive(required: {
|
|
23
|
+
request: PluginInstallRequest;
|
|
24
|
+
ownerId: string;
|
|
25
|
+
runId: string;
|
|
26
|
+
maxBytes: number;
|
|
27
|
+
}, optional?: {
|
|
28
|
+
readAttachment?: InstallAttachmentReader;
|
|
29
|
+
files?: InstallArchiveFiles;
|
|
30
|
+
}): Promise<Uint8Array>;
|
|
31
|
+
}
|
|
32
|
+
export interface InstallArchiveFiles {
|
|
33
|
+
stat(required: {
|
|
34
|
+
path: string;
|
|
35
|
+
}, optional?: Record<string, never>): Promise<{
|
|
36
|
+
size: number;
|
|
37
|
+
}>;
|
|
38
|
+
read(required: {
|
|
39
|
+
path: string;
|
|
40
|
+
}, optional?: Record<string, never>): Promise<Uint8Array>;
|
|
41
|
+
}
|
|
42
|
+
export declare function createPluginInstallSourceSchema({ pathDescription }: {
|
|
43
|
+
pathDescription: string;
|
|
44
|
+
}, _optional?: {}): {
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
readonly additionalProperties: false;
|
|
47
|
+
readonly required: readonly ["kind"];
|
|
48
|
+
readonly oneOf: readonly [{
|
|
49
|
+
readonly required: readonly ["path"];
|
|
50
|
+
readonly not: {
|
|
51
|
+
readonly required: readonly ["attachmentRef"];
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
readonly required: readonly ["attachmentRef"];
|
|
55
|
+
readonly not: {
|
|
56
|
+
readonly required: readonly ["path"];
|
|
57
|
+
};
|
|
58
|
+
readonly properties: {
|
|
59
|
+
readonly kind: {
|
|
60
|
+
readonly const: "zip";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}];
|
|
64
|
+
readonly properties: {
|
|
65
|
+
readonly kind: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly enum: readonly ["folder", "zip"];
|
|
68
|
+
readonly description: "folder for an unpacked package; zip for a local ZIP or chat attachment.";
|
|
69
|
+
};
|
|
70
|
+
readonly path: {
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
readonly minLength: 1;
|
|
73
|
+
readonly description: string;
|
|
74
|
+
};
|
|
75
|
+
readonly attachmentRef: {
|
|
76
|
+
readonly type: "string";
|
|
77
|
+
readonly pattern: "^attachment:[A-Za-z0-9-]{8,80}$";
|
|
78
|
+
readonly description: "Opaque attachment:<uuid> for a file on this message: copy it from chat_list_pending_attachments. Not derivable from the file's disk path or folder. ZIP only; exactly one of path/attachmentRef.";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=plugin-install-source.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function createPluginInstallSourceSchema({ pathDescription }, _optional = {}) {
|
|
2
|
+
return {
|
|
3
|
+
type: "object", additionalProperties: false, required: ["kind"],
|
|
4
|
+
oneOf: [{ required: ["path"], not: { required: ["attachmentRef"] } }, { required: ["attachmentRef"], not: { required: ["path"] }, properties: { kind: { const: "zip" } } }],
|
|
5
|
+
properties: {
|
|
6
|
+
kind: { type: "string", enum: ["folder", "zip"], description: "folder for an unpacked package; zip for a local ZIP or chat attachment." },
|
|
7
|
+
path: { type: "string", minLength: 1, description: pathDescription },
|
|
8
|
+
attachmentRef: { type: "string", pattern: "^attachment:[A-Za-z0-9-]{8,80}$", description: "Opaque attachment:<uuid> for a file on this message: copy it from chat_list_pending_attachments. Not derivable from the file's disk path or folder. ZIP only; exactly one of path/attachmentRef." },
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=plugin-install-source.js.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ConsentState, DeclaredScript, RawContribution, RegionResolver } from '../site/cookie-consent.js';
|
|
2
|
+
/** The one switch's payload: present = this engine serves the site. */
|
|
3
|
+
export interface SiteCookieConsentDeps {
|
|
4
|
+
/** The last good published mode; without any successful policy read embeds stay inert. */
|
|
5
|
+
embedConsentOff?: () => boolean;
|
|
6
|
+
/** Refresh the construction-time published snapshot after an owner publication. */
|
|
7
|
+
refresh?: () => Promise<void>;
|
|
8
|
+
exportAssets?: () => Promise<readonly string[]>;
|
|
9
|
+
/** Asked once per export, before it renders: a warning when no policy has ever loaded successfully. */
|
|
10
|
+
exportWarning?: () => Promise<string | undefined>;
|
|
11
|
+
/** This site's region readers (configured ingress plugin + legacy header); empty = strict. */
|
|
12
|
+
regionResolvers: () => Promise<readonly RegionResolver[]>;
|
|
13
|
+
/** Data-only modules from active plugins; the browser mounts them through the shared registry. */
|
|
14
|
+
browserPlugins?: () => Promise<readonly RawContribution[]>;
|
|
15
|
+
/** Active plugin declarations and explicit refusal diagnostics, shared with admin readiness. */
|
|
16
|
+
scriptDeclarations?: () => Promise<{
|
|
17
|
+
scripts: readonly DeclaredScript[];
|
|
18
|
+
problems: readonly string[];
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
/** A same-origin plugin handler (e.g. an analytics adapter's SDK, adapter module and collector). */
|
|
22
|
+
export interface ConsentPluginHttp {
|
|
23
|
+
path: string;
|
|
24
|
+
handle(required: {
|
|
25
|
+
method: string;
|
|
26
|
+
path: string;
|
|
27
|
+
body: Uint8Array;
|
|
28
|
+
contentType: string;
|
|
29
|
+
analyticsLevel?: ConsentState['analyticsLevel'];
|
|
30
|
+
}): Promise<{
|
|
31
|
+
status: number;
|
|
32
|
+
body: string | Uint8Array;
|
|
33
|
+
contentType?: string;
|
|
34
|
+
cacheControl?: string;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
export interface ConsentPluginContribution {
|
|
38
|
+
adapter: RawContribution;
|
|
39
|
+
http?: ConsentPluginHttp;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=site-cookie-consent.d.ts.map
|