@jini-ai/core 0.7.3-next.2 → 0.7.4
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/CHANGELOG.md +7 -0
- 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/batch-tool-inputs.d.ts +3 -3
- package/dist/batch-tool-inputs.js +18 -6
- 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 +9 -3
- 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 +8 -4
- 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 +464 -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 +30 -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 +170 -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/contracts/vault/vendor-credential-sets.d.ts +12 -0
- package/dist/errors/catalog.js +3 -3
- 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/records.d.ts +1 -1
- package/dist/records.js +1 -1
- package/dist/redaction-collectors.js +84 -40
- 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 +5 -2
- package/dist/redaction-patterns.js +19 -10
- package/dist/redaction-spans.d.ts +5 -1
- package/dist/redaction-spans.js +2 -2
- package/dist/redaction.d.ts +5 -0
- package/dist/redaction.js +5 -0
- package/dist/registration-kit.d.ts +12 -0
- package/dist/registration-kit.js +21 -4
- 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/format-timestamp.js +3 -2
- 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 +25 -0
- package/dist/tool-metadata/media-generation.js +30 -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 +1430 -5
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Admin wire shapes for the publish, custom and Shared Keys credential stores. Shared by the
|
|
3
|
+
* Security screen (`@jini-ai/admin/security`) and the host Deployment feature, so it lives in one
|
|
4
|
+
* neutral owner here. Moved verbatim from the host admin `security-api.types.ts`; only the import changed.
|
|
5
|
+
*/
|
|
6
|
+
import type { CredentialTokenHint } from "./secrets-credential-token.js";
|
|
7
|
+
/** A publish credential's provider id — the deploy target id it publishes with (see
|
|
8
|
+
* {@link AdminStaticPublishTargetId}). An open string: the server's deploy registry owns the set. */
|
|
9
|
+
export type AdminPublishCredentialProviderId = string;
|
|
10
|
+
/**
|
|
11
|
+
* One saved connection as the credential-management UI is allowed to see it — mirrors the server's
|
|
12
|
+
* `GET/POST/PUT .../system/publish/credentials` response shape verbatim, field names included.
|
|
13
|
+
*
|
|
14
|
+
* `configured` is always `true`: every row this list can ever contain already has a sealed secret
|
|
15
|
+
* behind it, so the field exists only to keep this type structurally distinct from a
|
|
16
|
+
* not-yet-configured provider row (there is no "draft" or "pending" state client-side).
|
|
17
|
+
*
|
|
18
|
+
* Nothing here can reconstruct the credential itself, ON PURPOSE — no token, no ciphertext, and
|
|
19
|
+
* deliberately no masked suffix either (the design doc explicitly recommends against even a last-4
|
|
20
|
+
* hint: label + `updatedAt` identify a connection well enough). See `use-publish-credentials.hooks.ts`'s
|
|
21
|
+
* header for what "never readable back" means for the edit flow.
|
|
22
|
+
*/
|
|
23
|
+
export interface AdminPublishCredentialSummary {
|
|
24
|
+
credentialType: "vendor" | "custom";
|
|
25
|
+
worksFor: string[];
|
|
26
|
+
readonly tokenHint?: CredentialTokenHint | null;
|
|
27
|
+
id: string;
|
|
28
|
+
providerId: AdminPublishCredentialProviderId;
|
|
29
|
+
label: string;
|
|
30
|
+
configured: true;
|
|
31
|
+
/** Whether THIS connection is the one `triggerPublish` uses for its `providerId` when a workspace
|
|
32
|
+
* has saved more than one — server-owned, never derived client-side. Exactly one credential per
|
|
33
|
+
* provider is `true` at a time (the server enforces the invariant on every write); a provider with
|
|
34
|
+
* only one saved connection still carries a real value here, it is just never worth showing UI
|
|
35
|
+
* chrome about (see `StaticSiteTab.tsx`'s credential-list header for why). */
|
|
36
|
+
isDefault: boolean;
|
|
37
|
+
/** ISO timestamp. Field name matches the wire contract verbatim (not this file's usual `...AtIso`
|
|
38
|
+
* suffix) — see this interface's own doc for why matching the contract exactly, rather than
|
|
39
|
+
* renaming to local convention, is what keeps this boundary correct against a concurrently-built
|
|
40
|
+
* server. */
|
|
41
|
+
createdAt: string;
|
|
42
|
+
/** ISO timestamp — see {@link createdAt}'s doc for the naming note. This is the one fact the UI
|
|
43
|
+
* leans on to tell two saves of the same connection apart, in place of any secret material. */
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
/** The verified account's public login/username (the host's own account field), healed onto
|
|
46
|
+
* this row server-side (migration `0044`) whenever a verify comes back `"valid"` with one — see
|
|
47
|
+
* `src/features/deployments/publish-credentials/store.ts`'s `healAccountLabel` doc. `null` until
|
|
48
|
+
* the first successful verify, and NEVER cleared by a verify that merely fails to reach the
|
|
49
|
+
* provider (a stale account name is still more useful than none) — only replacing the connection
|
|
50
|
+
* (a new token) resets it, since the old account label may no longer apply. This is what lets
|
|
51
|
+
* `StaticSiteTab.tsx`'s connected-credential row keep showing "connected as X" across a server
|
|
52
|
+
* restart, when the in-memory-only `AdminPublishCredentialVerification` result from a given
|
|
53
|
+
* request is long gone. */
|
|
54
|
+
accountLabel: string | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* One `POST .../credentials/:id/verify` (or the same-shaped best-effort check a create/update already
|
|
58
|
+
* runs) result, as the admin is allowed to see it — mirrors the server's
|
|
59
|
+
* `PublishCredentialVerificationResult` (`src/features/deployments/static-publish/verify.ts`)
|
|
60
|
+
* verbatim. `status` is a closed three-way enum, never a boolean — `"unreachable"` (could not reach
|
|
61
|
+
* the provider at all) must stay distinguishable from `"invalid"` (the provider was reached and
|
|
62
|
+
* rejected the credential) at this boundary too, same reason the server type's own doc gives.
|
|
63
|
+
*/
|
|
64
|
+
export interface AdminPublishCredentialVerification {
|
|
65
|
+
status: "valid" | "invalid" | "unreachable";
|
|
66
|
+
message: string;
|
|
67
|
+
/** ISO timestamp of this specific check — NOT persisted anywhere the row itself carries forward;
|
|
68
|
+
* only `AdminPublishCredentialSummary.accountLabel` survives past this one response. */
|
|
69
|
+
checkedAt: string;
|
|
70
|
+
/** Present only on a `"valid"` result for a provider whose success response carries one — see
|
|
71
|
+
* {@link AdminPublishCredentialSummary.accountLabel}'s doc for how this becomes durable. */
|
|
72
|
+
accountLabel?: string;
|
|
73
|
+
}
|
|
74
|
+
/** The body a create/update sends to configure ONE provider's connection: its id plus the flat
|
|
75
|
+
* string fields that host's credential descriptor declares ({@link AdminPublishTargetCredentialSpec}).
|
|
76
|
+
* The server validates them against the descriptor and drops undeclared keys. */
|
|
77
|
+
export type AdminPublishConnectionInput = {
|
|
78
|
+
providerId: AdminPublishCredentialProviderId;
|
|
79
|
+
} & Readonly<Record<string, string>>;
|
|
80
|
+
/**
|
|
81
|
+
* The server's own execution capability for THIS instance — never derived client-side from
|
|
82
|
+
* `NODE_ENV`, a PATH probe, or any other sniffing. `"self-hosted-cli"` means the operator's own
|
|
83
|
+
* machine already has a working CLI/env path (no token needed here); `"hosted-api-only"` means this
|
|
84
|
+
* workspace cannot reach the operator's terminal at all, so a stored credential is the only way
|
|
85
|
+
* `triggerPublish` can ever succeed. Drives the credential section's disclosure in
|
|
86
|
+
* `StaticSiteTab.tsx` — see that component's own header there.
|
|
87
|
+
*/
|
|
88
|
+
export type AdminPublishExecutionMode = "self-hosted-cli" | "hosted-api-only";
|
|
89
|
+
/** Mirrors `GET .../system/publish/credentials`'s response shape. */
|
|
90
|
+
export interface AdminPublishCredentialsSnapshot {
|
|
91
|
+
credentials: AdminPublishCredentialSummary[];
|
|
92
|
+
executionMode: AdminPublishExecutionMode;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The Access Tokens page's own category-filter ids, minus `"all"` — mirrors
|
|
96
|
+
* the admin Security rules' `AccessTokenRowCategoryId` exactly, and the host server's
|
|
97
|
+
* `CustomCredentialCategoryId` (server code never imports from the admin app, so this is the
|
|
98
|
+
* client-side twin, not a re-export).
|
|
99
|
+
*/
|
|
100
|
+
export type AdminCustomCredentialCategoryId = "source-control" | "hosting" | "media" | "ai" | "ops" | "general";
|
|
101
|
+
/**
|
|
102
|
+
* One saved custom-provider credential's non-secret summary (the host server's custom-credentials
|
|
103
|
+
* system route) — never carries the token or username. Unlike
|
|
104
|
+
* {@link AdminSourceControlCredentialSummary}, `baseUrl`/`category` ARE part of this summary: both
|
|
105
|
+
* are stored in the clear server-side specifically so the Access Tokens list can group/filter a
|
|
106
|
+
* custom row without decrypting it (see the host schema's `customCredentialSets` doc).
|
|
107
|
+
*/
|
|
108
|
+
export interface AdminCustomCredentialSummary {
|
|
109
|
+
readonly scope?: "project" | "site";
|
|
110
|
+
readonly usedBy?: readonly string[];
|
|
111
|
+
readonly usedByThisSite?: boolean;
|
|
112
|
+
readonly credentialType: "vendor" | "custom";
|
|
113
|
+
readonly worksFor: string[];
|
|
114
|
+
readonly tokenHint?: CredentialTokenHint | null;
|
|
115
|
+
readonly id: string;
|
|
116
|
+
readonly label: string;
|
|
117
|
+
readonly category: AdminCustomCredentialCategoryId;
|
|
118
|
+
readonly baseUrl: string;
|
|
119
|
+
/** Extra allowed origins beyond `baseUrl` (e.g. a provider whose API spans two
|
|
120
|
+
* hosts for one account) — mirrors `src/features/custom-credentials/types.ts`'s server-side
|
|
121
|
+
* `CustomCredentialSummary.additionalHosts` (2026-08-31 multi-host widening). Empty, never
|
|
122
|
+
* `undefined` — the server's own read path normalizes a `null` column to `[]`. */
|
|
123
|
+
readonly additionalHosts: readonly string[];
|
|
124
|
+
/** The credential's saved account login, when it has one — mirrors the server's
|
|
125
|
+
* `CustomCredentialSummary.username` (2026-09-01, when the field moved out of the sealed blob
|
|
126
|
+
* onto its own plaintext column). Absent, never `""`, for a credential without one. This is what
|
|
127
|
+
* lets the Access Tokens edit form prefill a saved username instead of rendering it blank. */
|
|
128
|
+
readonly username?: string;
|
|
129
|
+
readonly configured: true;
|
|
130
|
+
readonly createdAt: string;
|
|
131
|
+
readonly updatedAt: string;
|
|
132
|
+
}
|
|
133
|
+
/** What a custom-provider create/update call sends for its secret half — no provider dispatch
|
|
134
|
+
* (unlike {@link AdminSourceControlConnectionInput}): a custom row has no fixed provider identity,
|
|
135
|
+
* the operator-typed `label` already names it. `username` is always optional, never required. */
|
|
136
|
+
export interface AdminCustomConnectionInput {
|
|
137
|
+
readonly token: string;
|
|
138
|
+
readonly username?: string;
|
|
139
|
+
}
|
|
140
|
+
/** Mirrors `GET .../system/custom/credentials`'s response shape. */
|
|
141
|
+
export interface AdminCustomCredentialsSnapshot {
|
|
142
|
+
credentials: AdminCustomCredentialSummary[];
|
|
143
|
+
projectKeysAvailable?: boolean;
|
|
144
|
+
}
|
|
145
|
+
/** C2's safe inventory contract. Eligibility and the minimum hint length remain server-owned. */
|
|
146
|
+
export interface AdminCredentialCopySource {
|
|
147
|
+
siteId: string;
|
|
148
|
+
name: string;
|
|
149
|
+
keys: {
|
|
150
|
+
kind: string;
|
|
151
|
+
id: string;
|
|
152
|
+
label: string;
|
|
153
|
+
provider: string | null;
|
|
154
|
+
worksFor?: string[];
|
|
155
|
+
publishHosts?: string[];
|
|
156
|
+
last4?: string;
|
|
157
|
+
/** Set for a key still saved only on a site; absent for a Shared Key. */
|
|
158
|
+
siteName?: string;
|
|
159
|
+
locked?: string;
|
|
160
|
+
omittedCount?: number;
|
|
161
|
+
}[];
|
|
162
|
+
reasonCode?: string;
|
|
163
|
+
message?: string;
|
|
164
|
+
actionHint?: {
|
|
165
|
+
action: "start-site";
|
|
166
|
+
siteId: string;
|
|
167
|
+
desktopSiteId: string;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
export interface AdminCredentialCopyResult {
|
|
171
|
+
kind: string;
|
|
172
|
+
id: string;
|
|
173
|
+
status: "granted" | "copied" | "skipped" | "failed";
|
|
174
|
+
last4?: string;
|
|
175
|
+
reasonCode?: string;
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=api-security-api-types.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Confirmation cards use the same operator locale codes as the admin language selector. */
|
|
2
|
+
export declare const APPROVAL_COPY: {
|
|
3
|
+
readonly en: readonly ["Confirm action?", "Confirm", "Cancel", "Tool", "Input"];
|
|
4
|
+
readonly es: readonly ["¿Confirmar acción?", "Confirmar", "Cancelar", "Herramienta", "Entrada"];
|
|
5
|
+
readonly id: readonly ["Konfirmasi tindakan?", "Konfirmasi", "Batal", "Alat", "Masukan"];
|
|
6
|
+
readonly de: readonly ["Aktion bestätigen?", "Bestätigen", "Abbrechen", "Werkzeug", "Eingabe"];
|
|
7
|
+
readonly 'zh-CN': readonly ["确认操作?", "确认", "取消", "工具", "输入"];
|
|
8
|
+
readonly 'zh-TW': readonly ["確認操作?", "確認", "取消", "工具", "輸入"];
|
|
9
|
+
readonly 'pt-BR': readonly ["Confirmar ação?", "Confirmar", "Cancelar", "Ferramenta", "Entrada"];
|
|
10
|
+
readonly ru: readonly ["Подтвердить действие?", "Подтвердить", "Отмена", "Инструмент", "Ввод"];
|
|
11
|
+
readonly fa: readonly ["عملیات را تأیید میکنید؟", "تأیید", "لغو", "ابزار", "ورودی"];
|
|
12
|
+
readonly ar: readonly ["تأكيد الإجراء؟", "تأكيد", "إلغاء", "الأداة", "المدخلات"];
|
|
13
|
+
readonly ja: readonly ["操作を確認しますか?", "確認", "キャンセル", "ツール", "入力"];
|
|
14
|
+
readonly ko: readonly ["작업을 확인하시겠습니까?", "확인", "취소", "도구", "입력"];
|
|
15
|
+
readonly pl: readonly ["Potwierdzić działanie?", "Potwierdź", "Anuluj", "Narzędzie", "Dane wejściowe"];
|
|
16
|
+
readonly hu: readonly ["Megerősíti a műveletet?", "Megerősítés", "Mégse", "Eszköz", "Bemenet"];
|
|
17
|
+
readonly fr: readonly ["Confirmer l’action ?", "Confirmer", "Annuler", "Outil", "Entrée"];
|
|
18
|
+
readonly uk: readonly ["Підтвердити дію?", "Підтвердити", "Скасувати", "Інструмент", "Вхідні дані"];
|
|
19
|
+
readonly tr: readonly ["İşlem onaylansın mı?", "Onayla", "İptal", "Araç", "Girdi"];
|
|
20
|
+
readonly th: readonly ["ยืนยันการดำเนินการหรือไม่?", "ยืนยัน", "ยกเลิก", "เครื่องมือ", "ข้อมูลเข้า"];
|
|
21
|
+
readonly it: readonly ["Confermare l’azione?", "Conferma", "Annulla", "Strumento", "Dati in ingresso"];
|
|
22
|
+
readonly hi: readonly ["कार्रवाई की पुष्टि करें?", "पुष्टि करें", "रद्द करें", "टूल", "इनपुट"];
|
|
23
|
+
readonly ur: readonly ["کارروائی کی تصدیق کریں؟", "تصدیق کریں", "منسوخ کریں", "ٹول", "ان پٹ"];
|
|
24
|
+
readonly bn: readonly ["কাজটি নিশ্চিত করবেন?", "নিশ্চিত করুন", "বাতিল করুন", "টুল", "ইনপুট"];
|
|
25
|
+
};
|
|
26
|
+
/** Translate approval chrome and registered catalog copy, falling back to English or the key.
|
|
27
|
+
* @complexity O(k) time for bounded copy-key lookup, O(1) space; no effects. */
|
|
28
|
+
export declare function approvalText({ locale, key }: {
|
|
29
|
+
locale: string;
|
|
30
|
+
key: string;
|
|
31
|
+
}, _optional?: {}): string;
|
|
32
|
+
//# sourceMappingURL=approval-i18n.d.ts.map
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/** Confirmation cards use the same operator locale codes as the admin language selector. */
|
|
2
|
+
export const APPROVAL_COPY = {
|
|
3
|
+
en: ['Confirm action?', 'Confirm', 'Cancel', 'Tool', 'Input'],
|
|
4
|
+
es: ['¿Confirmar acción?', 'Confirmar', 'Cancelar', 'Herramienta', 'Entrada'],
|
|
5
|
+
id: ['Konfirmasi tindakan?', 'Konfirmasi', 'Batal', 'Alat', 'Masukan'],
|
|
6
|
+
de: ['Aktion bestätigen?', 'Bestätigen', 'Abbrechen', 'Werkzeug', 'Eingabe'],
|
|
7
|
+
'zh-CN': ['确认操作?', '确认', '取消', '工具', '输入'],
|
|
8
|
+
'zh-TW': ['確認操作?', '確認', '取消', '工具', '輸入'],
|
|
9
|
+
'pt-BR': ['Confirmar ação?', 'Confirmar', 'Cancelar', 'Ferramenta', 'Entrada'],
|
|
10
|
+
ru: ['Подтвердить действие?', 'Подтвердить', 'Отмена', 'Инструмент', 'Ввод'],
|
|
11
|
+
fa: ['عملیات را تأیید میکنید؟', 'تأیید', 'لغو', 'ابزار', 'ورودی'],
|
|
12
|
+
ar: ['تأكيد الإجراء؟', 'تأكيد', 'إلغاء', 'الأداة', 'المدخلات'],
|
|
13
|
+
ja: ['操作を確認しますか?', '確認', 'キャンセル', 'ツール', '入力'],
|
|
14
|
+
ko: ['작업을 확인하시겠습니까?', '확인', '취소', '도구', '입력'],
|
|
15
|
+
pl: ['Potwierdzić działanie?', 'Potwierdź', 'Anuluj', 'Narzędzie', 'Dane wejściowe'],
|
|
16
|
+
hu: ['Megerősíti a műveletet?', 'Megerősítés', 'Mégse', 'Eszköz', 'Bemenet'],
|
|
17
|
+
fr: ['Confirmer l’action ?', 'Confirmer', 'Annuler', 'Outil', 'Entrée'],
|
|
18
|
+
uk: ['Підтвердити дію?', 'Підтвердити', 'Скасувати', 'Інструмент', 'Вхідні дані'],
|
|
19
|
+
tr: ['İşlem onaylansın mı?', 'Onayla', 'İptal', 'Araç', 'Girdi'],
|
|
20
|
+
th: ['ยืนยันการดำเนินการหรือไม่?', 'ยืนยัน', 'ยกเลิก', 'เครื่องมือ', 'ข้อมูลเข้า'],
|
|
21
|
+
it: ['Confermare l’azione?', 'Conferma', 'Annulla', 'Strumento', 'Dati in ingresso'],
|
|
22
|
+
hi: ['कार्रवाई की पुष्टि करें?', 'पुष्टि करें', 'रद्द करें', 'टूल', 'इनपुट'],
|
|
23
|
+
ur: ['کارروائی کی تصدیق کریں؟', 'تصدیق کریں', 'منسوخ کریں', 'ٹول', 'ان پٹ'],
|
|
24
|
+
bn: ['কাজটি নিশ্চিত করবেন?', 'নিশ্চিত করুন', 'বাতিল করুন', 'টুল', 'ইনপুট'],
|
|
25
|
+
};
|
|
26
|
+
const KEYS = ['Confirm action?', 'Confirm', 'Cancel', 'Tool', 'Input'];
|
|
27
|
+
const TARGET_FOLDER_COPY = {
|
|
28
|
+
en: 'Target folder', es: 'Carpeta de destino', id: 'Folder tujuan', de: 'Zielordner',
|
|
29
|
+
'zh-CN': '目标文件夹', 'zh-TW': '目標資料夾', 'pt-BR': 'Pasta de destino', ru: 'Целевая папка',
|
|
30
|
+
fa: 'پوشه مقصد', ar: 'المجلد الهدف', ja: '保存先フォルダー', ko: '대상 폴더', pl: 'Folder docelowy',
|
|
31
|
+
hu: 'Célmappa', fr: 'Dossier de destination', uk: 'Цільова папка', tr: 'Hedef klasör',
|
|
32
|
+
th: 'โฟลเดอร์ปลายทาง', it: 'Cartella di destinazione', hi: 'लक्ष्य फ़ोल्डर', ur: 'منزل کا فولڈر', bn: 'গন্তব্য ফোল্ডার',
|
|
33
|
+
};
|
|
34
|
+
const HOST_COPY = {
|
|
35
|
+
en: 'Host', es: 'Servidor', id: 'Penyedia hos', de: 'Server',
|
|
36
|
+
'zh-CN': '托管平台', 'zh-TW': '託管平台', 'pt-BR': 'Servidor', ru: 'Хостинг',
|
|
37
|
+
fa: 'میزبان', ar: 'المضيف', ja: 'ホスト', ko: '호스트',
|
|
38
|
+
pl: 'Serwer', hu: 'Kiszolgáló', fr: 'Hébergeur', uk: 'Хостинг',
|
|
39
|
+
tr: 'Sunucu', th: 'โฮสต์', it: 'Server', hi: 'होस्ट',
|
|
40
|
+
ur: 'میزبان', bn: 'হোস্ট',
|
|
41
|
+
};
|
|
42
|
+
const REPOSITORY_COPY = {
|
|
43
|
+
en: 'Repository', es: 'Repositorio', id: 'Repositori', de: 'Codearchiv',
|
|
44
|
+
'zh-CN': '代码仓库', 'zh-TW': '程式碼儲存庫', 'pt-BR': 'Repositório', ru: 'Репозиторий',
|
|
45
|
+
fa: 'مخزن', ar: 'المستودع', ja: 'リポジトリ', ko: '저장소',
|
|
46
|
+
pl: 'Repozytorium', hu: 'Tároló', fr: 'Dépôt', uk: 'Репозиторій',
|
|
47
|
+
tr: 'Depo', th: 'ที่เก็บโค้ด', it: 'Archivio', hi: 'रिपॉज़िटरी',
|
|
48
|
+
ur: 'ریپوزٹری', bn: 'রিপোজিটরি',
|
|
49
|
+
};
|
|
50
|
+
const PROJECT_NAME_COPY = {
|
|
51
|
+
en: 'Project name', es: 'Nombre del proyecto', id: 'Nama proyek', de: 'Projektname',
|
|
52
|
+
'zh-CN': '项目名称', 'zh-TW': '專案名稱', 'pt-BR': 'Nome do projeto', ru: 'Название проекта',
|
|
53
|
+
fa: 'نام پروژه', ar: 'اسم المشروع', ja: 'プロジェクト名', ko: '프로젝트 이름',
|
|
54
|
+
pl: 'Nazwa projektu', hu: 'Projekt neve', fr: 'Nom du projet', uk: 'Назва проєкту',
|
|
55
|
+
tr: 'Proje adı', th: 'ชื่อโครงการ', it: 'Nome del progetto', hi: 'परियोजना का नाम',
|
|
56
|
+
ur: 'منصوبے کا نام', bn: 'প্রকল্পের নাম',
|
|
57
|
+
};
|
|
58
|
+
const SAVED_CONNECTION_COPY = {
|
|
59
|
+
en: 'Saved connection', es: 'Conexión guardada', id: 'Koneksi tersimpan', de: 'Gespeicherte Verbindung',
|
|
60
|
+
'zh-CN': '已保存的连接', 'zh-TW': '已儲存的連線', 'pt-BR': 'Conexão salva', ru: 'Сохранённое подключение',
|
|
61
|
+
fa: 'اتصال ذخیره\u200cشده', ar: 'الاتصال المحفوظ', ja: '保存済みの接続', ko: '저장된 연결',
|
|
62
|
+
pl: 'Zapisane połączenie', hu: 'Mentett kapcsolat', fr: 'Connexion enregistrée', uk: 'Збережене підключення',
|
|
63
|
+
tr: 'Kayıtlı bağlantı', th: 'การเชื่อมต่อที่บันทึกไว้', it: 'Connessione salvata', hi: 'सहेजा गया कनेक्शन',
|
|
64
|
+
ur: 'محفوظ کردہ کنکشن', bn: 'সংরক্ষিত সংযোগ',
|
|
65
|
+
};
|
|
66
|
+
const HOSTING_PROVIDER_COPY = {
|
|
67
|
+
en: 'Hosting provider', es: 'Proveedor de alojamiento', id: 'Penyedia hosting', de: 'Hosting-Anbieter',
|
|
68
|
+
'zh-CN': '托管服务商', 'zh-TW': '託管服務供應商', 'pt-BR': 'Provedor de hospedagem', ru: 'Хостинг-провайдер',
|
|
69
|
+
fa: 'ارائه\u200cدهنده میزبانی', ar: 'مزود الاستضافة', ja: 'ホスティングプロバイダー', ko: '호스팅 제공업체',
|
|
70
|
+
pl: 'Dostawca hostingu', hu: 'Tárhelyszolgáltató', fr: 'Fournisseur d’hébergement', uk: 'Хостинг-провайдер',
|
|
71
|
+
tr: 'Barındırma sağlayıcısı', th: 'ผู้ให้บริการโฮสติ้ง', it: 'Fornitore di hosting', hi: 'होस्टिंग प्रदाता',
|
|
72
|
+
ur: 'ہوسٹنگ فراہم کنندہ', bn: 'হোস্টিং প্রদানকারী',
|
|
73
|
+
};
|
|
74
|
+
const SCHEMA_TITLE_COPY = {
|
|
75
|
+
'Target folder': TARGET_FOLDER_COPY,
|
|
76
|
+
Host: HOST_COPY,
|
|
77
|
+
Repository: REPOSITORY_COPY,
|
|
78
|
+
'Project name': PROJECT_NAME_COPY,
|
|
79
|
+
'Saved connection': SAVED_CONNECTION_COPY,
|
|
80
|
+
'Hosting provider': HOSTING_PROVIDER_COPY,
|
|
81
|
+
};
|
|
82
|
+
const ACTION_KEYS = ['Technical name', '{action}?', 'Publish static site', 'Publish'];
|
|
83
|
+
/** Catalog copy uses exact-key lookup; unknown tool names and schema labels remain verbatim. */
|
|
84
|
+
const ACTION_COPY = {
|
|
85
|
+
en: ['Technical name', '{action}?', 'Publish static site', 'Publish'],
|
|
86
|
+
es: ['Nombre técnico', '¿{action}?', 'Publicar sitio estático', 'Publicar'],
|
|
87
|
+
id: ['Nama teknis', '{action}?', 'Publikasikan situs statis', 'Publikasikan'],
|
|
88
|
+
de: ['Technischer Name', '{action}?', 'Statische Website veröffentlichen', 'Veröffentlichen'],
|
|
89
|
+
'zh-CN': ['技术名称', '{action}?', '发布静态网站', '发布'],
|
|
90
|
+
'zh-TW': ['技術名稱', '{action}?', '發布靜態網站', '發布'],
|
|
91
|
+
'pt-BR': ['Nome técnico', '{action}?', 'Publicar site estático', 'Publicar'],
|
|
92
|
+
ru: ['Техническое имя', '{action}?', 'Опубликовать статический сайт', 'Опубликовать'],
|
|
93
|
+
fa: ['نام فنی', '{action}؟', 'انتشار سایت ایستا', 'انتشار'],
|
|
94
|
+
ar: ['الاسم التقني', '{action}؟', 'نشر موقع ثابت', 'نشر'],
|
|
95
|
+
ja: ['技術名', '{action}しますか?', '静的サイトを公開', '公開'],
|
|
96
|
+
ko: ['기술 이름', '{action}하시겠습니까?', '정적 사이트 게시', '게시'],
|
|
97
|
+
pl: ['Nazwa techniczna', '{action}?', 'Opublikować witrynę statyczną', 'Opublikuj'],
|
|
98
|
+
hu: ['Technikai név', '{action}?', 'Statikus webhely közzététele', 'Közzététel'],
|
|
99
|
+
fr: ['Nom technique', '{action} ?', 'Publier le site statique', 'Publier'],
|
|
100
|
+
uk: ['Технічна назва', '{action}?', 'Опублікувати статичний сайт', 'Опублікувати'],
|
|
101
|
+
tr: ['Teknik ad', '{action}?', 'Statik siteyi yayınla', 'Yayınla'],
|
|
102
|
+
th: ['ชื่อทางเทคนิค', '{action}หรือไม่?', 'เผยแพร่เว็บไซต์แบบคงที่', 'เผยแพร่'],
|
|
103
|
+
it: ['Nome tecnico', '{action}?', 'Pubblicare il sito statico', 'Pubblica'],
|
|
104
|
+
hi: ['तकनीकी नाम', '{action} की पुष्टि करें?', 'स्थिर साइट प्रकाशित करें', 'प्रकाशित करें'],
|
|
105
|
+
ur: ['تکنیکی نام', '{action} کی تصدیق کریں؟', 'جامد سائٹ شائع کریں', 'شائع کریں'],
|
|
106
|
+
bn: ['প্রযুক্তিগত নাম', '{action} নিশ্চিত করবেন?', 'স্থির সাইট প্রকাশ করুন', 'প্রকাশ করুন'],
|
|
107
|
+
};
|
|
108
|
+
const ROUTINE_KEYS = ['Create routine', 'Pause routine', 'Resume routine', 'Delete routine', 'Schedule', 'Prompt', 'Agent', 'Model'];
|
|
109
|
+
/** Routine confirmation cards (P3-T4.T): action titles, field labels and the desktop-availability note, in every approval locale. */
|
|
110
|
+
const ROUTINE_COPY = {
|
|
111
|
+
en: ['Create routine', 'Pause routine', 'Resume routine', 'Delete routine', 'Schedule', 'Prompt', 'Agent', 'Model'],
|
|
112
|
+
es: ['Crear rutina', 'Pausar rutina', 'Reanudar rutina', 'Eliminar rutina', 'Programación', 'Instrucción', 'Agente', 'Modelo'],
|
|
113
|
+
id: ['Buat rutinitas', 'Jeda rutinitas', 'Lanjutkan rutinitas', 'Hapus rutinitas', 'Jadwal', 'Perintah', 'Agen', 'Model'],
|
|
114
|
+
de: ['Routine erstellen', 'Routine pausieren', 'Routine fortsetzen', 'Routine löschen', 'Zeitplan', 'Anweisung', 'Agent', 'Modell'],
|
|
115
|
+
'zh-CN': ['创建例行任务', '暂停例行任务', '恢复例行任务', '删除例行任务', '计划', '提示词', '智能体', '模型'],
|
|
116
|
+
'zh-TW': ['建立例行任務', '暫停例行任務', '恢復例行任務', '刪除例行任務', '排程', '提示詞', '智慧代理', '模型'],
|
|
117
|
+
'pt-BR': ['Criar rotina', 'Pausar rotina', 'Retomar rotina', 'Excluir rotina', 'Agendamento', 'Instrução', 'Agente', 'Modelo'],
|
|
118
|
+
ru: ['Создать рутину', 'Приостановить рутину', 'Возобновить рутину', 'Удалить рутину', 'Расписание', 'Запрос', 'Агент', 'Модель'],
|
|
119
|
+
fa: ['ایجاد روتین', 'توقف روتین', 'ازسرگیری روتین', 'حذف روتین', 'زمانبندی', 'دستور', 'عامل', 'مدل'],
|
|
120
|
+
ar: ['إنشاء روتين', 'إيقاف الروتين مؤقتًا', 'استئناف الروتين', 'حذف الروتين', 'الجدول', 'الموجّه', 'الوكيل', 'النموذج'],
|
|
121
|
+
ja: ['ルーティンを作成', 'ルーティンを一時停止', 'ルーティンを再開', 'ルーティンを削除', 'スケジュール', 'プロンプト', 'エージェント', 'モデル'],
|
|
122
|
+
ko: ['루틴 만들기', '루틴 일시중지', '루틴 다시 시작', '루틴 삭제', '일정', '프롬프트', '에이전트', '모델'],
|
|
123
|
+
pl: ['Utwórz rutynę', 'Wstrzymaj rutynę', 'Wznów rutynę', 'Usuń rutynę', 'Harmonogram', 'Polecenie', 'Agent', 'Model'],
|
|
124
|
+
hu: ['Rutin létrehozása', 'Rutin szüneteltetése', 'Rutin folytatása', 'Rutin törlése', 'Ütemezés', 'Utasítás', 'Ügynök', 'Modell'],
|
|
125
|
+
fr: ['Créer la routine', 'Mettre la routine en pause', 'Reprendre la routine', 'Supprimer la routine', 'Planification', 'Instruction', 'Agent', 'Modèle'],
|
|
126
|
+
uk: ['Створити рутину', 'Призупинити рутину', 'Відновити рутину', 'Видалити рутину', 'Розклад', 'Запит', 'Агент', 'Модель'],
|
|
127
|
+
tr: ['Rutin oluştur', 'Rutini duraklat', 'Rutine devam et', 'Rutini sil', 'Zamanlama', 'İstem', 'Ajan', 'Model'],
|
|
128
|
+
th: ['สร้างรูทีน', 'หยุดรูทีนชั่วคราว', 'เริ่มรูทีนต่อ', 'ลบรูทีน', 'กำหนดเวลา', 'พรอมต์', 'เอเจนต์', 'โมเดล'],
|
|
129
|
+
it: ['Crea routine', 'Metti in pausa la routine', 'Riprendi la routine', 'Elimina routine', 'Pianificazione', 'Istruzione', 'Agente', 'Modello'],
|
|
130
|
+
hi: ['रूटीन बनाएँ', 'रूटीन रोकें', 'रूटीन फिर शुरू करें', 'रूटीन हटाएँ', 'शेड्यूल', 'प्रॉम्प्ट', 'एजेंट', 'मॉडल'],
|
|
131
|
+
ur: ['روٹین بنائیں', 'روٹین روکیں', 'روٹین دوبارہ شروع کریں', 'روٹین حذف کریں', 'شیڈول', 'پرامپٹ', 'ایجنٹ', 'ماڈل'],
|
|
132
|
+
bn: ['রুটিন তৈরি করুন', 'রুটিন বিরতি দিন', 'রুটিন আবার চালু করুন', 'রুটিন মুছুন', 'সময়সূচি', 'প্রম্পট', 'এজেন্ট', 'মডেল'],
|
|
133
|
+
};
|
|
134
|
+
/** Translate approval chrome and registered catalog copy, falling back to English or the key.
|
|
135
|
+
* @complexity O(k) time for bounded copy-key lookup, O(1) space; no effects. */
|
|
136
|
+
export function approvalText({ locale, key }, _optional = {}) {
|
|
137
|
+
const schemaCopy = Object.hasOwn(SCHEMA_TITLE_COPY, key) ? SCHEMA_TITLE_COPY[key] : undefined;
|
|
138
|
+
if (schemaCopy)
|
|
139
|
+
return (Object.hasOwn(schemaCopy, locale) ? schemaCopy[locale] : undefined) ?? schemaCopy.en ?? key;
|
|
140
|
+
return familyText({ locale, key });
|
|
141
|
+
}
|
|
142
|
+
/** Chrome, action and routine copy share one lookup: the first family that knows the key wins, an unknown key stays verbatim. */
|
|
143
|
+
function familyText({ locale, key }) {
|
|
144
|
+
const copy = (Object.hasOwn(APPROVAL_COPY, locale) ? APPROVAL_COPY[locale] : undefined) ?? APPROVAL_COPY.en;
|
|
145
|
+
const actionCopy = (Object.hasOwn(ACTION_COPY, locale) ? ACTION_COPY[locale] : undefined) ?? ACTION_COPY.en;
|
|
146
|
+
const routineCopy = (Object.hasOwn(ROUTINE_COPY, locale) ? ROUTINE_COPY[locale] : undefined) ?? ROUTINE_COPY.en;
|
|
147
|
+
// One table per key family; the first family that knows the key wins, an unknown key stays verbatim.
|
|
148
|
+
const families = [[copy, KEYS], [actionCopy, ACTION_KEYS], [routineCopy, ROUTINE_KEYS]];
|
|
149
|
+
for (const [values, keys] of families) {
|
|
150
|
+
const index = keys.indexOf(key);
|
|
151
|
+
if (index >= 0)
|
|
152
|
+
return values[index] ?? key;
|
|
153
|
+
}
|
|
154
|
+
return key;
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=approval-i18n.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/** A theme as the asset tools see it: its folder and the verdict a reload returns. */
|
|
2
|
+
export interface AssetTheme {
|
|
3
|
+
readonly dir: string;
|
|
4
|
+
readonly status: unknown;
|
|
5
|
+
readonly errors?: unknown;
|
|
6
|
+
}
|
|
7
|
+
export interface AssetFile<B extends Uint8Array> {
|
|
8
|
+
path: string;
|
|
9
|
+
bytes: B;
|
|
10
|
+
sourceUrl?: string;
|
|
11
|
+
}
|
|
12
|
+
export type OverwritePolicy = "skip" | "overwrite" | "rename";
|
|
13
|
+
export type AssetDestination = {
|
|
14
|
+
kind: "theme";
|
|
15
|
+
themeId: string;
|
|
16
|
+
} | {
|
|
17
|
+
kind: "site" | "media" | "library" | "picked";
|
|
18
|
+
};
|
|
19
|
+
export type PreparedAssetBatch<B extends Uint8Array> = {
|
|
20
|
+
readonly folder: string;
|
|
21
|
+
readonly writes: readonly {
|
|
22
|
+
readonly path: string;
|
|
23
|
+
readonly bytes: B;
|
|
24
|
+
readonly overwrite: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
export type PreparedAssets<B extends Uint8Array> = {
|
|
28
|
+
destination: AssetDestination;
|
|
29
|
+
files: AssetFile<B>[];
|
|
30
|
+
skipped: string[];
|
|
31
|
+
batch?: PreparedAssetBatch<B>;
|
|
32
|
+
};
|
|
33
|
+
export interface AssetSourceSchema {
|
|
34
|
+
readonly type: "object";
|
|
35
|
+
readonly additionalProperties: false;
|
|
36
|
+
readonly required: readonly string[];
|
|
37
|
+
readonly properties: {
|
|
38
|
+
readonly root: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
readonly enum: readonly string[];
|
|
41
|
+
};
|
|
42
|
+
readonly path: {
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
readonly minLength: number;
|
|
45
|
+
readonly description: string;
|
|
46
|
+
};
|
|
47
|
+
readonly themeId: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly minLength: number;
|
|
50
|
+
readonly description: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=asset-transfer-tool-ports.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The tool-gaps assistant tool's host dependencies and the gap read port. Types only.
|
|
3
|
+
*
|
|
4
|
+
* `ToolGapReadPort` is the read port shared by the owner HTTP surface and the assistant catalog
|
|
5
|
+
* adapter; `ToolGapsToolDeps` is what the host injects into the owner-only `tool_gaps_list`
|
|
6
|
+
* registration. The registration builder, its catalog and the repo adapter stay with the host.
|
|
7
|
+
*/
|
|
8
|
+
import type { ToolGapEntry } from "./daemon-tool-audit.js";
|
|
9
|
+
/** Read port shared by the owner HTTP surface and assistant catalog adapter. */
|
|
10
|
+
export interface ToolGapReadPort {
|
|
11
|
+
list(required: {
|
|
12
|
+
workspaceId: string;
|
|
13
|
+
principalId: string;
|
|
14
|
+
}, optional?: {
|
|
15
|
+
limit?: number;
|
|
16
|
+
}): Promise<readonly ToolGapEntry[]>;
|
|
17
|
+
}
|
|
18
|
+
export interface ToolGapsToolDeps {
|
|
19
|
+
ownerPrincipalId: Promise<string>;
|
|
20
|
+
workspaceId: string;
|
|
21
|
+
toolGaps?: ToolGapReadPort;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=assistant-host-ports.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Host storage contract for remembered "Allow for this chat" external-tool approvals.
|
|
3
|
+
* This chat grant lives with the conversation and is scoped to the person; naming another
|
|
4
|
+
* person's conversation reuses nothing. Fingerprinting, drift checks and destructive-call locks
|
|
5
|
+
* live in `@jini-ai/mcp/federation`; adapters (in-memory, SQL) stay with the host.
|
|
6
|
+
*/
|
|
7
|
+
/** One saved "Allow for this chat". Same shape as `@jini-ai/mcp/federation`'s
|
|
8
|
+
* `ConversationToolApprovalKey`, which is expected to re-export this declaration. */
|
|
9
|
+
export interface ConversationToolApprovalKey {
|
|
10
|
+
readonly conversationId: string;
|
|
11
|
+
readonly principalId: string;
|
|
12
|
+
readonly connectionId: string;
|
|
13
|
+
readonly toolName: string;
|
|
14
|
+
readonly fingerprint: string;
|
|
15
|
+
}
|
|
16
|
+
/** The conversation grant key and timestamp are passed together at each boundary. */
|
|
17
|
+
export interface ConversationToolApprovalStore {
|
|
18
|
+
has(key: ConversationToolApprovalKey): Promise<boolean>;
|
|
19
|
+
/** Person/identity grant shared across existing chats; used only for native escalations. */
|
|
20
|
+
hasIdentity?(key: Omit<ConversationToolApprovalKey, "conversationId">): Promise<boolean>;
|
|
21
|
+
grant(required: {
|
|
22
|
+
key: ConversationToolApprovalKey;
|
|
23
|
+
grantedAt: string;
|
|
24
|
+
}, optional?: Record<string, never>): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=assistant-mcp-services.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Host storage contract for remembered "Allow for this chat" external-tool approvals.
|
|
3
|
+
* This chat grant lives with the conversation and is scoped to the person; naming another
|
|
4
|
+
* person's conversation reuses nothing. Fingerprinting, drift checks and destructive-call locks
|
|
5
|
+
* live in `@jini-ai/mcp/federation`; adapters (in-memory, SQL) stay with the host.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=assistant-mcp-services.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Resource contribution contracts only: features return data; composition owns registration.
|
|
2
|
+
* Preserve the generic dependency contract rather than binding features to the full tool registry. */
|
|
3
|
+
/**
|
|
4
|
+
* One resource's contract for participating in `content_duplicate`.
|
|
5
|
+
*
|
|
6
|
+
* `permission` is the SINGLE permission `content_duplicate`'s own handler checks before invoking
|
|
7
|
+
* `duplicate` — resolved from the resource's OWN existing declared permission (e.g. `content.write`
|
|
8
|
+
* for `post`/`page`, the same permission `content_post_create`/`content_post_update` already
|
|
9
|
+
* declare), never a single flat permission shared by the whole generic tool. This is what makes
|
|
10
|
+
* "a caller permitted for posts but not media cannot copy media through it" true by construction: a
|
|
11
|
+
* caller lacking THIS resource's permission is refused before `duplicate` is ever called, regardless
|
|
12
|
+
* of what any other resource's permission is.
|
|
13
|
+
*
|
|
14
|
+
* `duplicate` still owns whatever FINER-grained authorization/guard logic the resource's real
|
|
15
|
+
* write-service already applies (e.g. `post`'s own upfront `content.read` check before it will even
|
|
16
|
+
* disclose the source row exists) — this registry's `permission` is the generic tool's own outer
|
|
17
|
+
* gate, not a replacement for a resource's existing internal ones.
|
|
18
|
+
*/
|
|
19
|
+
export interface DuplicateResourceHandler {
|
|
20
|
+
readonly permission: string;
|
|
21
|
+
readonly duplicate: (input: {
|
|
22
|
+
readonly principalId: string;
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly overrides: {
|
|
25
|
+
readonly title?: string;
|
|
26
|
+
readonly slug?: string;
|
|
27
|
+
readonly status?: string;
|
|
28
|
+
};
|
|
29
|
+
}, optional?: Record<string, never>) => Promise<Record<string, unknown>>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* One resource's registry entry: which resource id it answers to, and how to build its real,
|
|
33
|
+
* deps-bound {@link DuplicateResourceHandler} once the composition root's real deps bag exists.
|
|
34
|
+
*
|
|
35
|
+
* `build` is deferred (not a bound handler) for the identical reason `ToolContributor.build` is:
|
|
36
|
+
* `installFirstPartyToolContributors()` (where registration happens) runs once at boot, before any
|
|
37
|
+
* real `routeDeps`/`AssistantToolRegistryDeps` exists; `content_duplicate`'s own `build(routeDeps,
|
|
38
|
+
* surfaces)` (run per real composition, later) is what actually resolves every registered
|
|
39
|
+
* contributor into a real handler.
|
|
40
|
+
*/
|
|
41
|
+
export interface DuplicateResourceHandlerContributor<TDeps> {
|
|
42
|
+
readonly resource: string;
|
|
43
|
+
readonly build: (routeDeps: TDeps, optional?: Record<string, never>) => DuplicateResourceHandler;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=assistant-tool-contributions.d.ts.map
|