@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,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Site-key wire shapes: the admin's view of the key that seals a site's stored credentials.
|
|
3
|
+
*
|
|
4
|
+
* Types only. The dashboard and the security screens both read these, so they live in one
|
|
5
|
+
* neutral contract instead of two hand-kept copies. The host owns the routes, the key material
|
|
6
|
+
* and the runtime list of states; this module only names the JSON each route returns.
|
|
7
|
+
*/
|
|
8
|
+
/** Mirrors the host's `resolveRuntimeMode()` closed union — the site key tab's own copy of "is
|
|
9
|
+
* this a production deployment" (the fact that decides whether the generate action can matter at
|
|
10
|
+
* all — see `AdminSiteKeyStatus`'s doc). */
|
|
11
|
+
export type AdminSiteKeyRuntimeMode = "production" | "local";
|
|
12
|
+
/**
|
|
13
|
+
* `GET .../system/site-key`'s `state` field — the one union both the host's server route (its
|
|
14
|
+
* `siteKeyState`) and the admin client type that field with. Written as a literal union here
|
|
15
|
+
* because a contract module carries no runtime values; the host keeps the runtime list (and a
|
|
16
|
+
* parity test that pins it to this union), so the two can never silently drift apart. Keep both
|
|
17
|
+
* edited together.
|
|
18
|
+
*
|
|
19
|
+
* - `"active"` — a valid key resolves, and either nothing is stamped in the site's metadata file yet
|
|
20
|
+
* or the stamped site-key fingerprint matches the resolved key's own fingerprint.
|
|
21
|
+
* - `"missing"` — no source resolves to usable material, and this site's store holds no data
|
|
22
|
+
* that only a site key could decrypt or verify.
|
|
23
|
+
* - `"missing-with-data"` — no source resolves, but this site's store (any storage kind, or its
|
|
24
|
+
* sealed storage secret) DOES hold such data — a materially more urgent banner than plain
|
|
25
|
+
* `"missing"`: something the operator saved is stuck behind a key that no longer resolves.
|
|
26
|
+
* - `"mismatch"` — a valid key resolves, but its fingerprint differs from the site metadata's own
|
|
27
|
+
* stamped fingerprint — the physical key file was substituted for a different one after the
|
|
28
|
+
* stamp was written (the ensure-site-key "mismatch" outcome, surfaced here independently for the
|
|
29
|
+
* read path).
|
|
30
|
+
* - `"invalid"` — a source was found (env var set, or a key file present) but its content fails hex
|
|
31
|
+
* validation.
|
|
32
|
+
*/
|
|
33
|
+
export type AdminSiteKeyState = "active" | "missing" | "missing-with-data" | "mismatch" | "invalid";
|
|
34
|
+
/** Mirrors `GET .../system/site-key`'s response shape (`inspectSiteKeyMaterial`, server-side).
|
|
35
|
+
* NEVER carries the key value itself — only whether one is active, which of the two possible
|
|
36
|
+
* sources it came from, and a one-way `fingerprint` a human can use to recognize "same key as
|
|
37
|
+
* before" across a reload without revealing it. Call the host's explicit reveal action
|
|
38
|
+
* (`AdminRevealedSiteKey`) for the actual value. */
|
|
39
|
+
export interface AdminSiteKeyStatus {
|
|
40
|
+
envVarName?: string;
|
|
41
|
+
reason?: "empty" | "not-hex" | "odd-length" | "too-short";
|
|
42
|
+
active: boolean;
|
|
43
|
+
source: "env" | "file" | "none";
|
|
44
|
+
fingerprint?: string;
|
|
45
|
+
/** `true` when a source was found but is not valid hex — `active` is `false` in this case too. */
|
|
46
|
+
invalid?: boolean;
|
|
47
|
+
/** Where a generated file lives (or would live) — not secret, a fixed filesystem convention.
|
|
48
|
+
* Always present, even when `source` isn't `"file"`, so a `"none"` status can still say where
|
|
49
|
+
* Generate would write. */
|
|
50
|
+
keyFilePath: string;
|
|
51
|
+
runtimeMode: AdminSiteKeyRuntimeMode;
|
|
52
|
+
/** The host's site-key state — see {@link AdminSiteKeyState}'s own doc for what it mirrors. */
|
|
53
|
+
state: AdminSiteKeyState;
|
|
54
|
+
}
|
|
55
|
+
/** `POST .../system/site-key/generate`'s success outcomes: `already-active` (200, a key matching
|
|
56
|
+
* the site's stamp was already in place, nothing written), `recovered` (200, the stamped key was
|
|
57
|
+
* found in another source and adopted), `created` (201, no sealed data, a new key minted). */
|
|
58
|
+
export type AdminSiteKeyGenerateOutcome = "already-active" | "recovered" | "created";
|
|
59
|
+
/** Mirrors `POST .../system/site-key/generate`'s `200`/`201` response shape. Deliberately has NO
|
|
60
|
+
* `hex` field (sol finding 3-2, 2026-09-16 fix): the admin's `generate()` only ever reads
|
|
61
|
+
* `fingerprint`/`keyFilePath`/`runtimeMode` from this response, so the server stopped sending the
|
|
62
|
+
* raw key value here — it had no consumer and was pure exposure. The reveal call
|
|
63
|
+
* ({@link AdminRevealedSiteKey}) stays the one, explicit, on-purpose call that returns the value;
|
|
64
|
+
* `AdminSiteKeyStatus` (the plain `GET`) never carries it either. */
|
|
65
|
+
export interface AdminGeneratedSiteKey {
|
|
66
|
+
outcome: AdminSiteKeyGenerateOutcome;
|
|
67
|
+
fingerprint: string;
|
|
68
|
+
keyFilePath: string;
|
|
69
|
+
runtimeMode: AdminSiteKeyRuntimeMode;
|
|
70
|
+
}
|
|
71
|
+
/** `POST .../system/site-key/import`'s 200: the pasted token is now this site's key. `resealed`
|
|
72
|
+
* counts credentials saved under the key that was in place and moved onto the token. */
|
|
73
|
+
export interface AdminImportedSiteKey {
|
|
74
|
+
outcome: "unlocked";
|
|
75
|
+
fingerprint: string;
|
|
76
|
+
keyFilePath: string;
|
|
77
|
+
resealed: number;
|
|
78
|
+
restorePointId?: string;
|
|
79
|
+
runtimeMode: AdminSiteKeyRuntimeMode;
|
|
80
|
+
}
|
|
81
|
+
/** A webhook whose signing secret changes when the site starts fresh. */
|
|
82
|
+
export interface AdminSiteKeyAffectedWebhook {
|
|
83
|
+
label: string;
|
|
84
|
+
targetUrl: string;
|
|
85
|
+
}
|
|
86
|
+
/** `GET .../system/site-key/start-fresh`: what confirming would do, in one plain sentence. */
|
|
87
|
+
export interface AdminSiteKeyStartFreshPreview {
|
|
88
|
+
removes: number;
|
|
89
|
+
affectedWebhooks: AdminSiteKeyAffectedWebhook[];
|
|
90
|
+
detail: string;
|
|
91
|
+
runtimeMode: AdminSiteKeyRuntimeMode;
|
|
92
|
+
}
|
|
93
|
+
/** `POST .../system/site-key/start-fresh`'s 200. The new key is never in the body. */
|
|
94
|
+
export interface AdminStartedFreshSiteKey {
|
|
95
|
+
outcome: "started-fresh";
|
|
96
|
+
fingerprint: string;
|
|
97
|
+
keyFilePath: string;
|
|
98
|
+
discarded: number;
|
|
99
|
+
kept: number;
|
|
100
|
+
restorePointId: string;
|
|
101
|
+
affectedWebhooks: AdminSiteKeyAffectedWebhook[];
|
|
102
|
+
runtimeMode: AdminSiteKeyRuntimeMode;
|
|
103
|
+
}
|
|
104
|
+
/** Mirrors `POST .../system/site-key/reveal`'s response shape — {@link AdminSiteKeyStatus}
|
|
105
|
+
* plus the raw value when one is active. `hex` is absent when `active` is `false` (nothing to
|
|
106
|
+
* reveal). */
|
|
107
|
+
export interface AdminRevealedSiteKey extends AdminSiteKeyStatus {
|
|
108
|
+
hex?: string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* What `useSiteKey` needs from the outside world, as an interface rather than a direct
|
|
112
|
+
* `lib/api` import — same shape as `access-tokens-port.hooks.ts`/`other-credentials-port.hooks.ts`.
|
|
113
|
+
* No rotate/replace (see `SiteKeyTab.tsx`'s own header); the last three methods are the locked
|
|
114
|
+
* site's recovery ("Paste your old site key", "Start fresh").
|
|
115
|
+
*/
|
|
116
|
+
export interface SiteKeyPort {
|
|
117
|
+
status(): Promise<AdminSiteKeyStatus>;
|
|
118
|
+
/** The raw key value, on demand — see `lib/api.ts`'s `revealSiteKey` doc. */
|
|
119
|
+
reveal(): Promise<AdminRevealedSiteKey>;
|
|
120
|
+
/** Throws (an `ApiError`) on a 409 refusal — see `lib/api.ts`'s `generateSiteKey` doc for the
|
|
121
|
+
* outcomes and codes. */
|
|
122
|
+
generate(): Promise<AdminGeneratedSiteKey>;
|
|
123
|
+
/** See `lib/api.ts`'s `importSiteKey`. Throws an `ApiError` on a refusal. */
|
|
124
|
+
importSiteKey(required: {
|
|
125
|
+
siteKey: string;
|
|
126
|
+
}, optional?: Record<string, never>): Promise<AdminImportedSiteKey>;
|
|
127
|
+
previewStartFresh(): Promise<AdminSiteKeyStartFreshPreview>;
|
|
128
|
+
/** See `lib/api.ts`'s `startFreshSiteKey`. Throws an `ApiError` on a refusal. */
|
|
129
|
+
startFresh(required: {
|
|
130
|
+
confirm: string;
|
|
131
|
+
}, optional?: Record<string, never>): Promise<AdminStartedFreshSiteKey>;
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=site-key.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Site-key wire shapes: the admin's view of the key that seals a site's stored credentials.
|
|
3
|
+
*
|
|
4
|
+
* Types only. The dashboard and the security screens both read these, so they live in one
|
|
5
|
+
* neutral contract instead of two hand-kept copies. The host owns the routes, the key material
|
|
6
|
+
* and the runtime list of states; this module only names the JSON each route returns.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=site-key.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SiteServeStatus } from './recovery-reconcile-interrupted-migration.js';
|
|
2
|
+
export declare function siteServingDecision({ path, exactPaths, prefixes, readStatus }: {
|
|
3
|
+
path: string;
|
|
4
|
+
exactPaths: ReadonlySet<string>;
|
|
5
|
+
prefixes: readonly string[];
|
|
6
|
+
readStatus: () => Promise<SiteServeStatus>;
|
|
7
|
+
}, _optional?: {}): Promise<'serve' | 'blocked'>;
|
|
8
|
+
export declare function dispatchSiteServingGate(required: Parameters<typeof siteServingDecision>[0] & {
|
|
9
|
+
serve: () => void;
|
|
10
|
+
blocked: () => void;
|
|
11
|
+
failure: (error: unknown) => void;
|
|
12
|
+
}, _optional?: {}): Promise<void>;
|
|
13
|
+
//# sourceMappingURL=site-serving-gate.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export async function siteServingDecision({ path, exactPaths, prefixes, readStatus }, _optional = {}) {
|
|
2
|
+
if (exactPaths.has(path))
|
|
3
|
+
return 'serve';
|
|
4
|
+
if (prefixes.some((prefix) => path.startsWith(prefix)))
|
|
5
|
+
return 'serve';
|
|
6
|
+
const status = await readStatus();
|
|
7
|
+
return status !== 'BLOCKED_PENDING_RECOVERY' ? 'serve' : 'blocked';
|
|
8
|
+
}
|
|
9
|
+
export async function dispatchSiteServingGate(required, _optional = {}) {
|
|
10
|
+
try {
|
|
11
|
+
const decision = await siteServingDecision(required);
|
|
12
|
+
if (decision === 'serve') {
|
|
13
|
+
required.serve();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
required.blocked();
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
required.failure(error);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=site-serving-gate.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The skill-install request body an admin screen prepares and the host's install route reads:
|
|
3
|
+
* a GitHub URL, one ZIP archive, or a folder's files, each file's bytes base64-encoded under its
|
|
4
|
+
* folder-relative path. Type-only, so both the admin package's upload encoder and the host's
|
|
5
|
+
* transport read one declaration.
|
|
6
|
+
*/
|
|
7
|
+
export type SkillInstallPayload = {
|
|
8
|
+
githubUrl: string;
|
|
9
|
+
} | {
|
|
10
|
+
archiveBase64: string;
|
|
11
|
+
} | {
|
|
12
|
+
files: {
|
|
13
|
+
path: string;
|
|
14
|
+
contentBase64: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=skill-install.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Skill-install request shapes. Types only; this module owns the declarations that
|
|
3
|
+
* `@jini-ai/agentic/skills/install` (`install-service.ts`, `validation.ts`) used to declare. That
|
|
4
|
+
* package imports them from here and keeps its runtime values.
|
|
5
|
+
*/
|
|
6
|
+
export interface SkillUploadFile {
|
|
7
|
+
readonly path: string;
|
|
8
|
+
readonly contentBase64: string;
|
|
9
|
+
}
|
|
10
|
+
export type SkillInstallInput = {
|
|
11
|
+
readonly workspaceId: string;
|
|
12
|
+
} & ({
|
|
13
|
+
readonly url: string;
|
|
14
|
+
} | {
|
|
15
|
+
readonly githubUrl: string;
|
|
16
|
+
} | {
|
|
17
|
+
readonly files: readonly SkillUploadFile[];
|
|
18
|
+
} | {
|
|
19
|
+
readonly archiveBase64: string;
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=skills-install.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Skill-install request shapes. Types only; this module owns the declarations that
|
|
3
|
+
* `@jini-ai/agentic/skills/install` (`install-service.ts`, `validation.ts`) used to declare. That
|
|
4
|
+
* package imports them from here and keeps its runtime values.
|
|
5
|
+
*/
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=skills-install.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The soft-delete ("in the trash") predicate for records carrying a `deletedAt` stamp.
|
|
3
|
+
*
|
|
4
|
+
* Routing and the post store must use one predicate. This neutral contract avoids a
|
|
5
|
+
* platform -> features/post dependency cycle for the same null check.
|
|
6
|
+
*/
|
|
7
|
+
/** True when a row is in the trash — the single predicate every trash-aware read below applies.
|
|
8
|
+
* Lives in `contracts/core/soft-delete.ts` so `platform/routing` can share it without importing this feature. */
|
|
9
|
+
/** True when a row is in the trash — the single predicate every trash-aware read applies. */
|
|
10
|
+
export declare function isTrashed(record: {
|
|
11
|
+
readonly deletedAt?: string | null;
|
|
12
|
+
}): boolean;
|
|
13
|
+
//# sourceMappingURL=soft-delete.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The soft-delete ("in the trash") predicate for records carrying a `deletedAt` stamp.
|
|
3
|
+
*
|
|
4
|
+
* Routing and the post store must use one predicate. This neutral contract avoids a
|
|
5
|
+
* platform -> features/post dependency cycle for the same null check.
|
|
6
|
+
*/
|
|
7
|
+
/** True when a row is in the trash — the single predicate every trash-aware read below applies.
|
|
8
|
+
* Lives in `contracts/core/soft-delete.ts` so `platform/routing` can share it without importing this feature. */
|
|
9
|
+
/** True when a row is in the trash — the single predicate every trash-aware read applies. */
|
|
10
|
+
export function isTrashed(record) {
|
|
11
|
+
return record.deletedAt !== undefined && record.deletedAt !== null;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=soft-delete.js.map
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { Clock, ISODateTime, UUID } from "../../primitives/index.js";
|
|
2
|
+
import type { VaultContext, VaultRepoPort, VaultSummary, KeyringPort, SecretSealerPort, SealedSecret } from "../vault.js";
|
|
3
|
+
import type { SecretsVaultService } from "./secrets-credential-sets.js";
|
|
4
|
+
import type { CredentialTokenHint, CredentialConnection } from "./secrets-credential-token.js";
|
|
5
|
+
import type { CredentialProjectHalf } from "./credential-project-half.js";
|
|
6
|
+
/** Source-control identities are separate from deploy targets: they carry authentication,
|
|
7
|
+
* never a repository, owner or branch. The store seals the complete connection as one blob.
|
|
8
|
+
* Provider ids and saved fields remain opaque when their plugin is absent. */
|
|
9
|
+
export type SourceControlProviderId = string;
|
|
10
|
+
/** New writes follow the provider's existing credential declaration; persisted fields survive reads. */
|
|
11
|
+
export interface SourceControlConnectionInput {
|
|
12
|
+
readonly providerId: SourceControlProviderId;
|
|
13
|
+
readonly token: string;
|
|
14
|
+
readonly [field: string]: string;
|
|
15
|
+
}
|
|
16
|
+
/** A `source_control_credential_sets` row, decrypted-shape (`sealed` is the DB's opaque
|
|
17
|
+
* `SealedSecret` — nothing in this feature decrypts it yet; see this file's header on the
|
|
18
|
+
* connect-an-identity-only scope). */
|
|
19
|
+
export interface SourceControlCredentialSetRecord {
|
|
20
|
+
readonly tokenHint?: CredentialTokenHint | null;
|
|
21
|
+
readonly workspaceId: UUID;
|
|
22
|
+
readonly id: UUID;
|
|
23
|
+
readonly providerId: SourceControlProviderId;
|
|
24
|
+
readonly label: string;
|
|
25
|
+
readonly sealed: SealedSecret;
|
|
26
|
+
/** At most one `TRUE` per `(workspaceId, providerId)`, maintained by `store.ts`'s write path —
|
|
27
|
+
* see `src/platform/db/schema.sqlite.ts`'s `sourceControlCredentialSets.isDefault` doc. */
|
|
28
|
+
readonly isDefault: boolean;
|
|
29
|
+
/** Verified account label, or null when no provider identity probe succeeds. */
|
|
30
|
+
readonly accountLabel: string | null;
|
|
31
|
+
readonly createdAt: ISODateTime;
|
|
32
|
+
readonly updatedAt: ISODateTime;
|
|
33
|
+
}
|
|
34
|
+
/** The read model every route in this feature returns — see `store.ts`'s `toSummary`. NEVER
|
|
35
|
+
* contains `sealed`, a token, or any `SourceControlConnectionInput` field — enforced by
|
|
36
|
+
* construction: this type has no field capable of carrying one. */
|
|
37
|
+
export interface SourceControlCredentialSummary {
|
|
38
|
+
readonly tokenHint?: CredentialTokenHint | null;
|
|
39
|
+
readonly connection?: CredentialConnection;
|
|
40
|
+
readonly id: UUID;
|
|
41
|
+
readonly providerId: SourceControlProviderId;
|
|
42
|
+
readonly label: string;
|
|
43
|
+
readonly configured: true;
|
|
44
|
+
readonly isDefault: boolean;
|
|
45
|
+
/** See `SourceControlCredentialSetRecord.accountLabel`'s own doc — carried through unchanged. */
|
|
46
|
+
readonly accountLabel: string | null;
|
|
47
|
+
/** Where the row lives — present only where a project store is attached (local web + desktop):
|
|
48
|
+
* `"project"` is visible to attached sites only, `"site"` is this site's own (an override). */
|
|
49
|
+
readonly scope?: "site" | "project";
|
|
50
|
+
readonly createdAt: ISODateTime;
|
|
51
|
+
readonly updatedAt: ISODateTime;
|
|
52
|
+
}
|
|
53
|
+
/** Workspace-scoped persistence for {@link SourceControlCredentialSetRecord} (ADR-007 §1). `insert`
|
|
54
|
+
* assumes the caller already checked/accepted the `(workspaceId, providerId, label)` UNIQUE
|
|
55
|
+
* constraint may reject it — see `store.ts`'s `isUniqueLabelViolation` for how that DB error is
|
|
56
|
+
* turned into `SourceControlCredentialDuplicateLabelError` rather than propagated as a raw driver
|
|
57
|
+
* error.
|
|
58
|
+
*
|
|
59
|
+
* `insert`/`update`/`delete` ALSO own the `isDefault` invariant, mirroring
|
|
60
|
+
* `VendorCredentialSetRepoPort`'s own contract exactly: if the written `record.isDefault` is
|
|
61
|
+
* `true`, `insert`/`update` atomically clear `isDefault` on every OTHER row sharing
|
|
62
|
+
* `(workspaceId, providerId)`, in the SAME transaction as the write. `delete` promotes the group's
|
|
63
|
+
* most-recently-updated remaining row to default if the deleted row WAS the default. */
|
|
64
|
+
/** The host binds provider-declared API-key identities once for every source-control reader. */
|
|
65
|
+
export interface CanonicalSourceControlKeys {
|
|
66
|
+
supports(input: {
|
|
67
|
+
providerId: string;
|
|
68
|
+
}, options?: Record<string, never>): boolean;
|
|
69
|
+
describe(input: {
|
|
70
|
+
workspaceId: string;
|
|
71
|
+
providerId: string;
|
|
72
|
+
}, options?: Record<string, never>): Promise<Pick<SourceControlCredentialSetRecord, "id" | "label" | "providerId"> | null>;
|
|
73
|
+
resolve(input: {
|
|
74
|
+
workspaceId: string;
|
|
75
|
+
providerId: string;
|
|
76
|
+
}, options?: Record<string, never>): Promise<{
|
|
77
|
+
id: string;
|
|
78
|
+
label: string;
|
|
79
|
+
connection: SourceControlConnectionInput;
|
|
80
|
+
} | null>;
|
|
81
|
+
create?(input: {
|
|
82
|
+
workspaceId: string;
|
|
83
|
+
connection: SourceControlConnectionInput;
|
|
84
|
+
}, options?: {
|
|
85
|
+
signal?: AbortSignal;
|
|
86
|
+
}): Promise<SourceControlCredentialSummary>;
|
|
87
|
+
/** The site's own and granted canonical keys, one safe row per stable id; never opens a key. */
|
|
88
|
+
list(input: {
|
|
89
|
+
workspaceId: string;
|
|
90
|
+
}, options?: Record<string, never>): Promise<SourceControlCredentialSummary[]>;
|
|
91
|
+
/** `owned: false` only when this store holds no canonical key with that id for the site. An owned key
|
|
92
|
+
* that is refused or fails throws, so the caller never retries it as a legacy row. */
|
|
93
|
+
update(input: {
|
|
94
|
+
workspaceId: string;
|
|
95
|
+
id: string;
|
|
96
|
+
patch: SourceControlCredentialPatch;
|
|
97
|
+
}, options?: Record<string, never>): Promise<CanonicalSourceControlUpdate>;
|
|
98
|
+
/** Same ownership contract as {@link CanonicalSourceControlKeys.update}; key-deletion rules still apply. */
|
|
99
|
+
remove(input: {
|
|
100
|
+
workspaceId: string;
|
|
101
|
+
id: string;
|
|
102
|
+
}, options?: Record<string, never>): Promise<{
|
|
103
|
+
readonly owned: boolean;
|
|
104
|
+
}>;
|
|
105
|
+
}
|
|
106
|
+
/** The vault/scope/hint collaborator a credential repo carries, bound to that repo's own vault rows where the
|
|
107
|
+
* host composition root builds the repo. Policy (the host's credential kinds, owner key, typed storage errors) lives with
|
|
108
|
+
* the binding's owner; this store only says which typed error a storage failure becomes. */
|
|
109
|
+
export interface CredentialVaultBinding {
|
|
110
|
+
open(required: {
|
|
111
|
+
repo: {
|
|
112
|
+
vault?: VaultRepoPort;
|
|
113
|
+
};
|
|
114
|
+
sealer?: SecretSealerPort;
|
|
115
|
+
keyring?: KeyringPort;
|
|
116
|
+
clock?: Clock;
|
|
117
|
+
idGen?: {
|
|
118
|
+
newId(): string;
|
|
119
|
+
};
|
|
120
|
+
storageError: () => Error;
|
|
121
|
+
}, optional?: Record<string, never>): SecretsVaultService;
|
|
122
|
+
scope(required: {
|
|
123
|
+
workspaceId: string;
|
|
124
|
+
kind: "vendor" | "custom" | "source-control";
|
|
125
|
+
id?: string;
|
|
126
|
+
}, optional?: Record<string, never>): VaultContext & {
|
|
127
|
+
id?: string;
|
|
128
|
+
};
|
|
129
|
+
hint(required: {
|
|
130
|
+
record: Pick<VaultSummary, "tokenLength" | "last4">;
|
|
131
|
+
}, optional?: Record<string, never>): CredentialTokenHint | null;
|
|
132
|
+
}
|
|
133
|
+
/** The editable fields of a Source Control credential, as the update route receives them. */
|
|
134
|
+
export type SourceControlCredentialPatch = {
|
|
135
|
+
label?: unknown;
|
|
136
|
+
connection?: unknown;
|
|
137
|
+
isDefault?: unknown;
|
|
138
|
+
};
|
|
139
|
+
/** "Not owned by this store" is the only result that may fall back to the legacy table. */
|
|
140
|
+
export type CanonicalSourceControlUpdate = {
|
|
141
|
+
readonly owned: false;
|
|
142
|
+
} | {
|
|
143
|
+
readonly owned: true;
|
|
144
|
+
readonly summary: SourceControlCredentialSummary;
|
|
145
|
+
};
|
|
146
|
+
export interface SourceControlCredentialSetRepoPort {
|
|
147
|
+
/** Absent only on a hand-built fake; every store read or write then refuses as an unconfigured vault. */
|
|
148
|
+
readonly credentialVault?: CredentialVaultBinding;
|
|
149
|
+
readonly canonical?: CanonicalSourceControlKeys;
|
|
150
|
+
readonly vault?: VaultRepoPort;
|
|
151
|
+
/** The project store this site's rows fall back to (`store.ts`'s scope rule, shared in
|
|
152
|
+
* `@jini-ai/integrations/vendor-credentials/project-scope`: site first, then attached project rows; new rows go to the project
|
|
153
|
+
* unless saved "only for this site"). Absent = site only (Fly/production). */
|
|
154
|
+
readonly project?: CredentialProjectHalf<SourceControlCredentialSetRepoPort>;
|
|
155
|
+
insert(record: SourceControlCredentialSetRecord): Promise<void>;
|
|
156
|
+
/** Full-row replace by `(workspaceId, id)` — used for both a label rename and a connection
|
|
157
|
+
* rotation. Same UNIQUE-violation possibility as `insert` (renaming into another row's label). */
|
|
158
|
+
update(record: SourceControlCredentialSetRecord): Promise<void>;
|
|
159
|
+
/** Probe metadata must never replace a token rotated while the network request was pending.
|
|
160
|
+
* Adapters may omit this best-effort capability; a save still returns the verified label. */
|
|
161
|
+
updateAccountLabel?(input: {
|
|
162
|
+
workspaceId: UUID;
|
|
163
|
+
id: UUID;
|
|
164
|
+
accountLabel: string;
|
|
165
|
+
expectedSealed?: SealedSecret;
|
|
166
|
+
}, optional?: {}): Promise<void>;
|
|
167
|
+
findById(input: {
|
|
168
|
+
workspaceId: UUID;
|
|
169
|
+
id: UUID;
|
|
170
|
+
}): Promise<SourceControlCredentialSetRecord | null>;
|
|
171
|
+
/** The current default row for one `(workspaceId, providerId)` pair — `null` if that provider has
|
|
172
|
+
* no rows at all for this workspace. */
|
|
173
|
+
findDefaultByProvider(input: {
|
|
174
|
+
workspaceId: UUID;
|
|
175
|
+
providerId: SourceControlProviderId;
|
|
176
|
+
}): Promise<SourceControlCredentialSetRecord | null>;
|
|
177
|
+
/** Every row for one `(workspaceId, providerId)` pair — used by `store.ts`'s write path to decide
|
|
178
|
+
* "is this the group's first row" (create-time auto-default) and, ahead of `delete`, to reason
|
|
179
|
+
* about the promotion candidate. */
|
|
180
|
+
listByProvider(input: {
|
|
181
|
+
workspaceId: UUID;
|
|
182
|
+
providerId: SourceControlProviderId;
|
|
183
|
+
}): Promise<SourceControlCredentialSetRecord[]>;
|
|
184
|
+
/** Every credential set a workspace has saved, across all providers — inherently small (bounded
|
|
185
|
+
* by how many connections a human bothers to save through this exact form), so no
|
|
186
|
+
* pagination/cap is added here. */
|
|
187
|
+
listByWorkspace(input: {
|
|
188
|
+
workspaceId: UUID;
|
|
189
|
+
}): Promise<SourceControlCredentialSetRecord[]>;
|
|
190
|
+
/** No-op (not an error) if no row exists for `(workspaceId, id)` — matches this feature's own
|
|
191
|
+
* `DELETE .../credentials/:id` route contract (204, idempotent). */
|
|
192
|
+
delete(input: {
|
|
193
|
+
workspaceId: UUID;
|
|
194
|
+
id: UUID;
|
|
195
|
+
}): Promise<void>;
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=source-control-credentials.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Strict standard-base64 (RFC 4648 §4, padded) decoder for any inbound `dataBase64` field.
|
|
3
|
+
*
|
|
4
|
+
* `Buffer.from(x, "base64")` never throws — it silently skips characters outside the base64
|
|
5
|
+
* alphabet instead of refusing them, so a malformed string such as `"Zm9v$"` or a truncated one
|
|
6
|
+
* such as `"Zm9"` decodes to *something* rather than raising. Two upload routes
|
|
7
|
+
* (`routes/publish-content/blob-put.ts` and `routes/media/upload.ts`) wrapped that call in a
|
|
8
|
+
* try/catch that can never fire, which let corrupted payloads through as if they were valid.
|
|
9
|
+
*
|
|
10
|
+
* Adopts the same rule as Jini's module-private `Jini packages/daemon/src/http/connectors.ts` `isWellFormedBase64`:
|
|
11
|
+
* non-empty, a length that is a multiple of 4, and every character drawn from the standard
|
|
12
|
+
* (non-URL) alphabet plus up to two trailing `=` pad characters. A round-trip canonical check
|
|
13
|
+
* (decode, re-encode, compare) was considered and rejected: it costs an extra ~67 MB string at the
|
|
14
|
+
* 50 MiB upload cap and rejects nothing that matters here — non-canonical pad
|
|
15
|
+
* bits (`"Zm9="`
|
|
16
|
+
* decoding to the same bytes as canonical `"Zm8="`) are not a security concern for these routes.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Decodes `value` as standard, padded base64, or returns `null` for anything that is not
|
|
20
|
+
* well-formed standard base64 (wrong alphabet, base64url `-`/`_`, unpadded/truncated length, or
|
|
21
|
+
* an empty string).
|
|
22
|
+
*
|
|
23
|
+
* @param required.value - The candidate base64 string, exactly as received from a request body.
|
|
24
|
+
* @returns The decoded bytes, or `null` if `value` is not well-formed standard base64.
|
|
25
|
+
* @complexity O(n) in `value`'s length — one regex pass plus one `Buffer.from` decode.
|
|
26
|
+
*/
|
|
27
|
+
export declare function decodeStrictBase64({ value }: {
|
|
28
|
+
value: string;
|
|
29
|
+
}, _optional?: {}): Uint8Array | null;
|
|
30
|
+
//# sourceMappingURL=strict-base64.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Strict standard-base64 (RFC 4648 §4, padded) decoder for any inbound `dataBase64` field.
|
|
3
|
+
*
|
|
4
|
+
* `Buffer.from(x, "base64")` never throws — it silently skips characters outside the base64
|
|
5
|
+
* alphabet instead of refusing them, so a malformed string such as `"Zm9v$"` or a truncated one
|
|
6
|
+
* such as `"Zm9"` decodes to *something* rather than raising. Two upload routes
|
|
7
|
+
* (`routes/publish-content/blob-put.ts` and `routes/media/upload.ts`) wrapped that call in a
|
|
8
|
+
* try/catch that can never fire, which let corrupted payloads through as if they were valid.
|
|
9
|
+
*
|
|
10
|
+
* Adopts the same rule as Jini's module-private `Jini packages/daemon/src/http/connectors.ts` `isWellFormedBase64`:
|
|
11
|
+
* non-empty, a length that is a multiple of 4, and every character drawn from the standard
|
|
12
|
+
* (non-URL) alphabet plus up to two trailing `=` pad characters. A round-trip canonical check
|
|
13
|
+
* (decode, re-encode, compare) was considered and rejected: it costs an extra ~67 MB string at the
|
|
14
|
+
* 50 MiB upload cap and rejects nothing that matters here — non-canonical pad
|
|
15
|
+
* bits (`"Zm9="`
|
|
16
|
+
* decoding to the same bytes as canonical `"Zm8="`) are not a security concern for these routes.
|
|
17
|
+
*/
|
|
18
|
+
const STRICT_BASE64_PATTERN = /^[A-Za-z0-9+/]+={0,2}$/;
|
|
19
|
+
/**
|
|
20
|
+
* Decodes `value` as standard, padded base64, or returns `null` for anything that is not
|
|
21
|
+
* well-formed standard base64 (wrong alphabet, base64url `-`/`_`, unpadded/truncated length, or
|
|
22
|
+
* an empty string).
|
|
23
|
+
*
|
|
24
|
+
* @param required.value - The candidate base64 string, exactly as received from a request body.
|
|
25
|
+
* @returns The decoded bytes, or `null` if `value` is not well-formed standard base64.
|
|
26
|
+
* @complexity O(n) in `value`'s length — one regex pass plus one `Buffer.from` decode.
|
|
27
|
+
*/
|
|
28
|
+
export function decodeStrictBase64({ value }, _optional = {}) {
|
|
29
|
+
if (!value || value.length % 4 !== 0 || !STRICT_BASE64_PATTERN.test(value))
|
|
30
|
+
return null;
|
|
31
|
+
return new Uint8Array(Buffer.from(value, "base64"));
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=strict-base64.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ToolApprovalMetadata } from "../../tool-metadata-types.js";
|
|
2
|
+
/** The approval classes a domain declares for an action; one shared union with {@link ToolApprovalMetadata}. */
|
|
3
|
+
export type ToolApprovalClass = ToolApprovalMetadata["class"];
|
|
4
|
+
/**
|
|
5
|
+
* A host's reviewed approval declaration for one tool. `rule` is host-owned (see
|
|
6
|
+
* {@link ToolApprovalMetadata.rule}): the host narrows `Rule` to its own named input-classification
|
|
7
|
+
* rules, and keeps those names and their rationale beside its catalog and evaluator, not here.
|
|
8
|
+
* Extending the core metadata keeps every specialization assignable to `ToolMetadata<A>`.
|
|
9
|
+
*/
|
|
10
|
+
export interface ToolApprovalPolicy<Rule extends string = string> extends ToolApprovalMetadata {
|
|
11
|
+
readonly rule?: Rule;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=tool-metadata-approval-policy.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Publishable-section contract. Types only; one row of a host's table of publishable sections:
|
|
3
|
+
* each admin list page's "Publish …" button, the publish dialog's title/description for a
|
|
4
|
+
* section-scoped run, and the dialog's type column all read the same row.
|
|
5
|
+
*
|
|
6
|
+
* A section sends its WHOLE `entityTypes` list: a collection is its content type plus its entries,
|
|
7
|
+
* a category group is its taxonomy plus its terms.
|
|
8
|
+
*
|
|
9
|
+
* `labelKey`/`descriptionKey`/`typeLabelKeys` are English copy keys; the admin resolves them through
|
|
10
|
+
* its own dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export interface PublishSection {
|
|
13
|
+
/** Stable id a list page names its button by, e.g. `<PublishSectionButton section="forms" />`. */
|
|
14
|
+
readonly section: string;
|
|
15
|
+
/** Everything this section's button sends — the dialog's `scope.entityTypes`, verbatim. */
|
|
16
|
+
readonly entityTypes: readonly string[];
|
|
17
|
+
/** Button label and the section-scoped dialog's title. */
|
|
18
|
+
readonly labelKey: string;
|
|
19
|
+
/** The section-scoped dialog's description line. */
|
|
20
|
+
readonly descriptionKey: string;
|
|
21
|
+
/** Friendly name per entity type, shown in the dialog's type column. */
|
|
22
|
+
readonly typeLabelKeys: Readonly<Record<string, string>>;
|
|
23
|
+
/** The same names, plural — the dialog's counted lines ("Forms (7) can't publish yet…"). Same keys
|
|
24
|
+
* as `typeLabelKeys`, enforced by the host table's row builder signature. */
|
|
25
|
+
readonly typePluralLabelKeys: Readonly<Record<string, string>>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=ui-sections.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Publishable-section contract. Types only; one row of a host's table of publishable sections:
|
|
3
|
+
* each admin list page's "Publish …" button, the publish dialog's title/description for a
|
|
4
|
+
* section-scoped run, and the dialog's type column all read the same row.
|
|
5
|
+
*
|
|
6
|
+
* A section sends its WHOLE `entityTypes` list: a collection is its content type plus its entries,
|
|
7
|
+
* a category group is its taxonomy plus its terms.
|
|
8
|
+
*
|
|
9
|
+
* `labelKey`/`descriptionKey`/`typeLabelKeys` are English copy keys; the admin resolves them through
|
|
10
|
+
* its own dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=ui-sections.js.map
|