@noodleseed/one 0.152.0 → 0.154.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-product-skill-state.d.ts +2 -2
- package/dist/agent-product-skill-state.d.ts.map +1 -1
- package/dist/agent-product-skill-state.js.map +1 -1
- package/dist/agent-skills-state.d.ts +2 -2
- package/dist/agent-skills-state.d.ts.map +1 -1
- package/dist/agent-skills-state.js +1 -1
- package/dist/agent-skills-state.js.map +1 -1
- package/dist/agents.d.ts +2 -3
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js.map +1 -1
- package/dist/checklist.d.ts +2 -1
- package/dist/checklist.d.ts.map +1 -1
- package/dist/commands/app-purge-reconciliation-args.d.ts +28 -0
- package/dist/commands/app-purge-reconciliation-args.d.ts.map +1 -0
- package/dist/commands/app-purge-reconciliation-args.js +124 -0
- package/dist/commands/app-purge-reconciliation-args.js.map +1 -0
- package/dist/commands/app-purge-reconciliation-files.d.ts +8 -0
- package/dist/commands/app-purge-reconciliation-files.d.ts.map +1 -0
- package/dist/commands/app-purge-reconciliation-files.js +109 -0
- package/dist/commands/app-purge-reconciliation-files.js.map +1 -0
- package/dist/commands/app-purge-reconciliation-ops.d.ts +3 -0
- package/dist/commands/app-purge-reconciliation-ops.d.ts.map +1 -0
- package/dist/commands/app-purge-reconciliation-ops.js +190 -0
- package/dist/commands/app-purge-reconciliation-ops.js.map +1 -0
- package/dist/commands/apps-ops.d.ts +0 -4
- package/dist/commands/apps-ops.d.ts.map +1 -1
- package/dist/commands/apps-ops.js +3 -3
- package/dist/commands/apps-ops.js.map +1 -1
- package/dist/commands/auth-ops.d.ts +0 -14
- package/dist/commands/auth-ops.d.ts.map +1 -1
- package/dist/commands/auth-ops.js +1 -1
- package/dist/commands/auth-ops.js.map +1 -1
- package/dist/commands/author-loop.d.ts +0 -2
- package/dist/commands/author-loop.d.ts.map +1 -1
- package/dist/commands/author-loop.js +2 -2
- package/dist/commands/author-loop.js.map +1 -1
- package/dist/commands/billing-ops.d.ts.map +1 -1
- package/dist/commands/billing-ops.js +7 -0
- package/dist/commands/billing-ops.js.map +1 -1
- package/dist/commands/billing-org-transfer-files.d.ts +12 -0
- package/dist/commands/billing-org-transfer-files.d.ts.map +1 -0
- package/dist/commands/billing-org-transfer-files.js +112 -0
- package/dist/commands/billing-org-transfer-files.js.map +1 -0
- package/dist/commands/billing-org-transfer-ops.d.ts +4 -0
- package/dist/commands/billing-org-transfer-ops.d.ts.map +1 -0
- package/dist/commands/billing-org-transfer-ops.js +534 -0
- package/dist/commands/billing-org-transfer-ops.js.map +1 -0
- package/dist/commands/catalog.d.ts +1 -7
- package/dist/commands/catalog.d.ts.map +1 -1
- package/dist/commands/catalog.js +3 -3
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/config-values.d.ts +1 -47
- package/dist/commands/config-values.d.ts.map +1 -1
- package/dist/commands/config-values.js +11 -11
- package/dist/commands/config-values.js.map +1 -1
- package/dist/commands/connect-oauth.d.ts +0 -1
- package/dist/commands/connect-oauth.d.ts.map +1 -1
- package/dist/commands/connect-oauth.js +1 -1
- package/dist/commands/connect-oauth.js.map +1 -1
- package/dist/commands/connect.d.ts +0 -1
- package/dist/commands/connect.d.ts.map +1 -1
- package/dist/commands/connect.js +1 -1
- package/dist/commands/connect.js.map +1 -1
- package/dist/commands/customer-auth-smoke.d.ts +2 -1
- package/dist/commands/customer-auth-smoke.d.ts.map +1 -1
- package/dist/commands/customer-auth-smoke.js +3 -2
- package/dist/commands/customer-auth-smoke.js.map +1 -1
- package/dist/commands/deploy-ops.d.ts +0 -9
- package/dist/commands/deploy-ops.d.ts.map +1 -1
- package/dist/commands/deploy-ops.js +3 -4
- package/dist/commands/deploy-ops.js.map +1 -1
- package/dist/commands/deploy-resume.d.ts +0 -1
- package/dist/commands/deploy-resume.d.ts.map +1 -1
- package/dist/commands/deploy-resume.js +1 -1
- package/dist/commands/deploy-resume.js.map +1 -1
- package/dist/commands/deploy-version-resolution.d.ts +0 -2
- package/dist/commands/deploy-version-resolution.d.ts.map +1 -1
- package/dist/commands/deploy-version-resolution.js +1 -1
- package/dist/commands/deploy-version-resolution.js.map +1 -1
- package/dist/commands/deployments-ops.d.ts +0 -2
- package/dist/commands/deployments-ops.d.ts.map +1 -1
- package/dist/commands/deployments-ops.js +2 -2
- package/dist/commands/deployments-ops.js.map +1 -1
- package/dist/commands/envs-ops.d.ts +0 -3
- package/dist/commands/envs-ops.d.ts.map +1 -1
- package/dist/commands/envs-ops.js +3 -3
- package/dist/commands/envs-ops.js.map +1 -1
- package/dist/commands/feedback-ops.d.ts +0 -8
- package/dist/commands/feedback-ops.d.ts.map +1 -1
- package/dist/commands/feedback-ops.js +1 -1
- package/dist/commands/feedback-ops.js.map +1 -1
- package/dist/commands/github-ops.d.ts +0 -2
- package/dist/commands/github-ops.d.ts.map +1 -1
- package/dist/commands/github-ops.js +2 -2
- package/dist/commands/github-ops.js.map +1 -1
- package/dist/commands/mcp-apps.d.ts +0 -1
- package/dist/commands/mcp-apps.d.ts.map +1 -1
- package/dist/commands/org-admin.d.ts +0 -17
- package/dist/commands/org-admin.d.ts.map +1 -1
- package/dist/commands/org-admin.js +1 -2
- package/dist/commands/org-admin.js.map +1 -1
- package/dist/commands/output.d.ts +3 -12
- package/dist/commands/output.d.ts.map +1 -1
- package/dist/commands/output.js.map +1 -1
- package/dist/commands/platform-account-reset-files.d.ts +0 -3
- package/dist/commands/platform-account-reset-files.d.ts.map +1 -1
- package/dist/commands/platform-account-reset-files.js +1 -1
- package/dist/commands/platform-account-reset-files.js.map +1 -1
- package/dist/commands/platform-auth-rollout-acceleration-files.d.ts +0 -3
- package/dist/commands/platform-auth-rollout-acceleration-files.d.ts.map +1 -1
- package/dist/commands/platform-auth-rollout-acceleration-files.js +1 -1
- package/dist/commands/platform-auth-rollout-acceleration-files.js.map +1 -1
- package/dist/commands/project-setup.d.ts +0 -1
- package/dist/commands/project-setup.d.ts.map +1 -1
- package/dist/commands/project-setup.js +1 -1
- package/dist/commands/project-setup.js.map +1 -1
- package/dist/commands/resource-shared.d.ts +0 -6
- package/dist/commands/resource-shared.d.ts.map +1 -1
- package/dist/commands/resource-shared.js +1 -1
- package/dist/commands/resource-shared.js.map +1 -1
- package/dist/commands/service-ops.d.ts.map +1 -1
- package/dist/commands/service-ops.js +4 -1
- package/dist/commands/service-ops.js.map +1 -1
- package/dist/commands/session.d.ts +3 -13
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +2 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/target-picker.d.ts +0 -2
- package/dist/commands/target-picker.d.ts.map +1 -1
- package/dist/commands/target-picker.js +1 -1
- package/dist/commands/target-picker.js.map +1 -1
- package/dist/commands/update-ops.d.ts +0 -8
- package/dist/commands/update-ops.d.ts.map +1 -1
- package/dist/commands/update-ops.js +1 -1
- package/dist/commands/update-ops.js.map +1 -1
- package/dist/control-plane.d.ts +1 -1
- package/dist/control-plane.d.ts.map +1 -1
- package/dist/control-plane.js.map +1 -1
- package/dist/deploy.d.ts +0 -12
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js +2 -2
- package/dist/deploy.js.map +1 -1
- package/dist/dev.d.ts.map +1 -1
- package/dist/dev.js +2 -3
- package/dist/dev.js.map +1 -1
- package/dist/devtools-auth-session.d.ts +0 -1
- package/dist/devtools-auth-session.d.ts.map +1 -1
- package/dist/devtools-auth-session.js.map +1 -1
- package/dist/devtools-chat.d.ts +1 -1
- package/dist/devtools-chat.d.ts.map +1 -1
- package/dist/devtools-chat.js.map +1 -1
- package/dist/devtools-delegated-exchange-state.d.ts +1 -1
- package/dist/devtools-delegated-exchange-state.d.ts.map +1 -1
- package/dist/devtools-design-contract.d.ts +3 -3
- package/dist/devtools-design-contract.d.ts.map +1 -1
- package/dist/devtools-design-contract.js +1 -1
- package/dist/devtools-design-contract.js.map +1 -1
- package/dist/devtools-preview.d.ts +1 -1
- package/dist/devtools-preview.d.ts.map +1 -1
- package/dist/devtools-rpc-forwarder.d.ts +2 -1
- package/dist/devtools-rpc-forwarder.d.ts.map +1 -1
- package/dist/devtools-rpc-forwarder.js +11 -12
- package/dist/devtools-rpc-forwarder.js.map +1 -1
- package/dist/gradient.d.ts +0 -3
- package/dist/gradient.d.ts.map +1 -1
- package/dist/gradient.js +1 -3
- package/dist/gradient.js.map +1 -1
- package/dist/local-compile.d.ts +2 -1
- package/dist/local-compile.d.ts.map +1 -1
- package/dist/local-target.d.ts +2 -1
- package/dist/local-target.d.ts.map +1 -1
- package/dist/node-version.d.ts +0 -2
- package/dist/node-version.d.ts.map +1 -1
- package/dist/node-version.js +2 -2
- package/dist/node-version.js.map +1 -1
- package/dist/plugin-mode/build-readiness-tools.d.ts +5 -4
- package/dist/plugin-mode/build-readiness-tools.d.ts.map +1 -1
- package/dist/plugin-mode/plugin-operation-contract.d.ts +0 -35
- package/dist/plugin-mode/plugin-operation-contract.d.ts.map +1 -1
- package/dist/plugin-mode/plugin-operation-contract.js +1 -1
- package/dist/plugin-mode/plugin-operation-contract.js.map +1 -1
- package/dist/project-entrypoint.d.ts +2 -1
- package/dist/project-entrypoint.d.ts.map +1 -1
- package/dist/project.d.ts +3 -3
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js.map +1 -1
- package/dist/skills-update.d.ts +0 -1
- package/dist/skills-update.d.ts.map +1 -1
- package/dist/skills-update.js +1 -1
- package/dist/skills-update.js.map +1 -1
- package/dist/status.d.ts +0 -9
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +0 -16
- package/dist/status.js.map +1 -1
- package/dist/update-binary.d.ts +3 -2
- package/dist/update-binary.d.ts.map +1 -1
- package/dist/update-check.d.ts +0 -3
- package/dist/update-check.d.ts.map +1 -1
- package/dist/update-check.js +1 -1
- package/dist/update-check.js.map +1 -1
- package/dist/validate.d.ts +2 -1
- package/dist/validate.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +5 -3
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-bootstrap-skill.d.ts +0 -2
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-bootstrap-skill.js +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-bundle.d.ts +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-content.js +5 -5
- package/node_modules/@noodle-borg/agent-kit/dist/skill-router.d.ts +2 -3
- package/node_modules/@noodle-borg/agent-kit/dist/skill-router.js +1 -1
- package/node_modules/@noodle-borg/agent-kit/package.json +1 -1
- package/node_modules/@noodle-borg/agent-packaging/dist/host-package-assets.js +1 -1
- package/node_modules/@noodle-borg/assistant-gateway/dist/assistant-configuration.js +2 -1
- package/node_modules/@noodle-borg/assistant-gateway/package.json +1 -1
- package/node_modules/@noodle-borg/authoring/dist/assistant.d.ts +2 -1
- package/node_modules/@noodle-borg/authoring/dist/connections.d.ts +0 -2
- package/node_modules/@noodle-borg/authoring/dist/connections.js +1 -1
- package/node_modules/@noodle-borg/authoring/dist/load-authored.js +2 -2
- package/node_modules/@noodle-borg/authoring/dist/react/bridge.d.ts +3 -2
- package/node_modules/@noodle-borg/authoring/dist/react/form-components.d.ts +0 -8
- package/node_modules/@noodle-borg/authoring/dist/react/form-components.js +2 -4
- package/node_modules/@noodle-borg/authoring/dist/react/hooks.d.ts +2 -2
- package/node_modules/@noodle-borg/cli-catalog/dist/catalog-data-account.js +96 -0
- package/node_modules/@noodle-borg/cli-catalog/dist/catalog-data-billing.js +116 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts +11 -11
- package/node_modules/@noodle-borg/compiler/dist/compile.d.ts +0 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-structural.d.ts +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/expression.d.ts +14 -14
- package/node_modules/@noodle-borg/compiler/dist/manifest/naming.d.ts +0 -2
- package/node_modules/@noodle-borg/compiler/dist/manifest/naming.js +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/website-projection.d.ts +2 -1
- package/node_modules/@noodle-borg/compiler/package.json +1 -4
- package/node_modules/@noodle-borg/connector-defs/dist/credential-profiles.js +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/schema.d.ts +0 -6
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.d.ts +2 -2
- package/node_modules/@noodle-borg/connector-http/dist/http-response.d.ts +2 -1
- package/node_modules/@noodle-borg/connector-http/dist/mcp/config.js +1 -1
- package/node_modules/@noodle-borg/control-plane/dist/app-purge-reconciliation-port.d.ts +25 -0
- package/node_modules/@noodle-borg/control-plane/dist/app-purge-reconciliation-port.js +10 -0
- package/node_modules/@noodle-borg/control-plane/dist/deploy-auth.d.ts +0 -1
- package/node_modules/@noodle-borg/control-plane/dist/portable.d.ts +1 -0
- package/node_modules/@noodle-borg/control-plane/dist/portable.js +1 -0
- package/node_modules/@noodle-borg/control-plane/package.json +3 -1
- package/node_modules/@noodle-borg/developer-mcp/dist/widgets/shared.js +1 -1
- package/node_modules/@noodle-borg/knowledge-operations/dist/crawl-lifecycle.d.ts +2 -1
- package/node_modules/@noodle-borg/knowledge-operations/package.json +1 -2
- package/node_modules/@noodle-borg/observability/dist/request-events-postgres.js +3 -1
- package/node_modules/@noodle-borg/plugin-distribution/dist/openai-submission-render.js +1 -1
- package/node_modules/@noodle-borg/protocol/dist/index.d.ts +1 -1
- package/node_modules/@noodle-borg/protocol/dist/index.js +1 -1
- package/node_modules/@noodle-borg/protocol/dist/interaction-envelope.js +2 -2
- package/node_modules/@noodle-borg/protocol/dist/jsonrpc.d.ts +1 -1
- package/node_modules/@noodle-borg/protocol/dist/jsonrpc.js +1 -1
- package/node_modules/@noodle-borg/protocol/dist/mapping.d.ts +4 -6
- package/node_modules/@noodle-borg/protocol/dist/mapping.js +1 -1
- package/node_modules/@noodle-borg/protocol/dist/observation.d.ts +0 -9
- package/node_modules/@noodle-borg/protocol/dist/observation.js +1 -1
- package/node_modules/@noodle-borg/protocol/dist/v2/handler.d.ts +2 -1
- package/node_modules/@noodle-borg/protocol/dist/v2/versions.d.ts +4 -0
- package/node_modules/@noodle-borg/protocol/dist/v2/versions.js +2 -0
- package/node_modules/@noodle-borg/protocol/dist/widget/domain-projection.d.ts +2 -1
- package/node_modules/@noodle-borg/protocol/package.json +0 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/types.d.ts +2 -2
- package/node_modules/@noodle-borg/service/dist/app-package-snapshot.d.ts +1 -2
- package/node_modules/@noodle-borg/service/dist/app-package-snapshot.js +1 -2
- package/node_modules/@noodle-borg/service/dist/archive-preflight.js +1 -1
- package/node_modules/@noodle-borg/service/dist/assets.js +1 -1
- package/node_modules/@noodle-borg/service/dist/assistant-bindings.js +2 -2
- package/node_modules/@noodle-borg/service/dist/client-compatibility.js +1 -2
- package/node_modules/@noodle-borg/service/dist/developer-mcp/mount.js +2 -2
- package/node_modules/@noodle-borg/service/dist/external-credential-exchange.d.ts +0 -1
- package/node_modules/@noodle-borg/service/dist/external-credential-exchange.js +1 -1
- package/node_modules/@noodle-borg/service/dist/http-util.js +1 -72
- package/node_modules/@noodle-borg/service/dist/managed-config-expressions.d.ts +0 -1
- package/node_modules/@noodle-borg/service/dist/managed-config-expressions.js +1 -1
- package/node_modules/@noodle-borg/service/dist/oauth/customer-bridge.js +1 -1
- package/node_modules/@noodle-borg/service/dist/oauth/developer-grant.js +2 -2
- package/node_modules/@noodle-borg/service/dist/observability-runtime.js +2 -3
- package/node_modules/@noodle-borg/service/dist/registry-targets.js +3 -3
- package/node_modules/@noodle-borg/service/dist/routes/access-mode.js +0 -4
- package/node_modules/@noodle-borg/service/dist/routes/access.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/alerts.js +3 -2
- package/node_modules/@noodle-borg/service/dist/routes/analytics.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/app-purge-reconciliation.js +72 -0
- package/node_modules/@noodle-borg/service/dist/routes/apps.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/archive.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/asset-control-plane.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-appearance.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-clients.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-doctor.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-elevation.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-embeds.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-interaction-replay.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-interactions.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-public-configuration.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-public-session.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-route-http.js +4 -3
- package/node_modules/@noodle-borg/service/dist/routes/assistant-sandbox.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-suggestions.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-usage.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/auth-discovery.js +2 -2
- package/node_modules/@noodle-borg/service/dist/routes/auth-doctor-live.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/config-values-paths.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/config-values.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/control-plane.js +17 -5
- package/node_modules/@noodle-borg/service/dist/routes/deploy-preflight.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/deployment-activation-response.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/deployment-lock.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/deployment-package.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/deployments.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/diagnostics.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/environment-production.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/envs.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/google-workload-identity.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/intent-capture.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/logs.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/openai-apps-challenge.js +1 -2
- package/node_modules/@noodle-borg/service/dist/routes/org-admin.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-domains.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/org-mcp-subdomain.js +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/paths.js +0 -39
- package/node_modules/@noodle-borg/service/dist/routes/protected-resource-metadata.js +3 -3
- package/node_modules/@noodle-borg/service/dist/routes/rollback.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/service-principals-dispatch.js +2 -3
- package/node_modules/@noodle-borg/service/dist/routes/service-principals.js +1 -1
- package/node_modules/@noodle-borg/service/dist/service-config.d.ts +3 -2
- package/node_modules/@noodle-borg/service/dist/service-config.js +1 -1
- package/node_modules/@noodle-borg/service/dist/service.js +29 -3
- package/node_modules/@noodle-borg/service/dist/store/alert-rules.js +1 -1
- package/node_modules/@noodle-borg/service/dist/store/audit.js +1 -1
- package/node_modules/@noodle-borg/service/dist/store/in-memory.js +4 -8
- package/node_modules/@noodle-borg/service/dist/store/json-file.js +6 -3
- package/node_modules/@noodle-borg/service/dist/store/records.js +21 -1
- package/node_modules/@noodle-borg/service/dist/store/validate.d.ts +1 -1
- package/node_modules/@noodle-borg/service/dist/store/validate.js +1 -1
- package/node_modules/@noodle-borg/service/dist/store.d.ts +5 -4
- package/node_modules/@noodle-borg/service/dist/store.js +1 -1
- package/node_modules/@noodle-borg/service/package.json +1 -1
- package/node_modules/@noodle-borg/transport-http/dist/client-identity.js +1 -1
- package/node_modules/@noodle-borg/transport-http/dist/handler.d.ts +1 -2
- package/node_modules/@noodle-borg/transport-http/dist/identity-authorization.d.ts +51 -0
- package/node_modules/@noodle-borg/transport-http/dist/identity-authorization.js +7 -7
- package/node_modules/@noodle-borg/transport-http/dist/index.d.ts +4 -2
- package/node_modules/@noodle-borg/transport-http/dist/index.js +3 -1
- package/node_modules/@noodle-borg/transport-http/dist/request-body.d.ts +29 -0
- package/node_modules/@noodle-borg/transport-http/dist/request-body.js +64 -0
- package/node_modules/@noodle-borg/transport-http/dist/responses.d.ts +28 -0
- package/node_modules/@noodle-borg/transport-http/dist/routing.d.ts +2 -4
- package/node_modules/@noodle-borg/transport-http/dist/routing.js +3 -3
- package/node_modules/@noodle-borg/transport-http/dist/serve-request.js +2 -13
- package/node_modules/@noodle-borg/transport-http/package.json +0 -1
- package/node_modules/@noodle-borg/wire-contracts/dist/app-purge-reconciliation.d.ts +177 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/app-purge-reconciliation.js +189 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/assistant.d.ts +1 -1
- package/node_modules/@noodle-borg/wire-contracts/dist/billing-org-transfer.d.ts +629 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/billing-org-transfer.js +259 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/control-plane.d.ts +21 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/control-plane.js +23 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.d.ts +2 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.js +2 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/platform-account-reset.d.ts +4 -4
- package/node_modules/@noodleseed/assistant/package.json +2 -1
- package/package.json +2 -2
- package/dist/commands/catalog-data-billing.d.ts +0 -3
- package/dist/commands/catalog-data-billing.d.ts.map +0 -1
- package/dist/commands/catalog-data-billing.js +0 -3
- package/dist/commands/catalog-data-billing.js.map +0 -1
- package/dist/commands/catalog-data-policy.d.ts +0 -3
- package/dist/commands/catalog-data-policy.d.ts.map +0 -1
- package/dist/commands/catalog-data-policy.js +0 -3
- package/dist/commands/catalog-data-policy.js.map +0 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/catalog-emission.d.ts +0 -50
- package/node_modules/@noodle-borg/compiler/dist/context-compile.d.ts +0 -17
- package/node_modules/@noodle-borg/transport-http/dist/module-http.d.ts +0 -13
- package/node_modules/@noodle-borg/transport-http/dist/module-http.js +0 -28
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BillingPlanSummarySchema } from './billing-read.js';
|
|
3
|
+
const SLUG_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
|
|
4
|
+
const RESERVED_SLUGS = new Set(['deploy', 'healthz', 'readyz', 'v1', 'o', 'mcp']);
|
|
5
|
+
const BILLING_ACCOUNT_ID_PATTERN = /^ba_[0-9a-f-]{36}$/;
|
|
6
|
+
const CHECKSUM_PATTERN = /^[0-9a-f]{64}$/;
|
|
7
|
+
const organizationSlug = z
|
|
8
|
+
.string()
|
|
9
|
+
.trim()
|
|
10
|
+
.refine((value) => SLUG_PATTERN.test(value) && !RESERVED_SLUGS.has(value), 'invalid organization slug');
|
|
11
|
+
const billingAccountId = z.string().trim().regex(BILLING_ACCOUNT_ID_PATTERN);
|
|
12
|
+
const previewChecksum = z.string().regex(CHECKSUM_PATTERN);
|
|
13
|
+
const positiveSafeInteger = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
|
|
14
|
+
const opaqueCursor = z.string().max(512);
|
|
15
|
+
const paginationLimit = z.number().int().min(1).max(100).default(50);
|
|
16
|
+
const customerQuery = z.string().trim().min(1).max(100);
|
|
17
|
+
const administratorQuery = z.string().trim().min(2).max(100);
|
|
18
|
+
const idempotencyKey = z.string().min(8).max(256);
|
|
19
|
+
const administrativeReason = z
|
|
20
|
+
.string()
|
|
21
|
+
.trim()
|
|
22
|
+
.min(1)
|
|
23
|
+
.max(256)
|
|
24
|
+
.refine((value) => !/\p{Cc}/u.test(value), 'administrative reason cannot contain control characters');
|
|
25
|
+
export const BILLING_ORGANIZATION_TRANSFER_CANDIDATE_STATES = [
|
|
26
|
+
'available',
|
|
27
|
+
'already_linked',
|
|
28
|
+
'blocked',
|
|
29
|
+
];
|
|
30
|
+
export const BILLING_ORGANIZATION_TRANSFER_WARNING_CODES = [
|
|
31
|
+
'currently_paid_elsewhere',
|
|
32
|
+
'lower_plan',
|
|
33
|
+
'capability_loss',
|
|
34
|
+
];
|
|
35
|
+
export const BILLING_ORGANIZATION_TRANSFER_BLOCKER_CODES = [
|
|
36
|
+
'already_linked',
|
|
37
|
+
'billing_setup_incomplete',
|
|
38
|
+
'destination_ineligible',
|
|
39
|
+
'destination_capacity_exceeded',
|
|
40
|
+
];
|
|
41
|
+
export const BILLING_ORGANIZATION_TRANSFER_ERROR_CODES = [
|
|
42
|
+
'identity_required',
|
|
43
|
+
'super_admin_required',
|
|
44
|
+
'billing_transfer_target_not_found',
|
|
45
|
+
'billing_setup_incomplete',
|
|
46
|
+
'billing_destination_ineligible',
|
|
47
|
+
'billing_destination_capacity_exceeded',
|
|
48
|
+
'billing_transfer_already_linked',
|
|
49
|
+
'billing_link_version_conflict',
|
|
50
|
+
'billing_transfer_preview_stale',
|
|
51
|
+
'billing_transfer_idempotency_conflict',
|
|
52
|
+
];
|
|
53
|
+
export const BillingOrganizationTransferCandidatesRequestSchema = z.strictObject({
|
|
54
|
+
query: customerQuery.optional(),
|
|
55
|
+
cursor: opaqueCursor.optional(),
|
|
56
|
+
limit: paginationLimit,
|
|
57
|
+
});
|
|
58
|
+
export const BillingOrganizationTransferPreviewRequestSchema = z.strictObject({
|
|
59
|
+
schemaVersion: z.literal(1),
|
|
60
|
+
destinationBillingAccountId: billingAccountId,
|
|
61
|
+
});
|
|
62
|
+
export const BillingOrganizationTransferApplyRequestSchema = z.strictObject({
|
|
63
|
+
...BillingOrganizationTransferPreviewRequestSchema.shape,
|
|
64
|
+
expectedLinkVersion: positiveSafeInteger,
|
|
65
|
+
previewChecksum,
|
|
66
|
+
idempotencyKey,
|
|
67
|
+
confirmed: z.literal(true),
|
|
68
|
+
});
|
|
69
|
+
export const BillingAdministrationOrganizationSearchRequestSchema = z.strictObject({
|
|
70
|
+
query: administratorQuery,
|
|
71
|
+
cursor: opaqueCursor.optional(),
|
|
72
|
+
limit: paginationLimit,
|
|
73
|
+
});
|
|
74
|
+
export const BillingAdministrationTransferPreviewRequestSchema = z.strictObject({
|
|
75
|
+
schemaVersion: z.literal(1),
|
|
76
|
+
organizationSlug,
|
|
77
|
+
destinationBillingAccountId: billingAccountId,
|
|
78
|
+
administrativeReason,
|
|
79
|
+
});
|
|
80
|
+
export const BillingAdministrationTransferApplyRequestSchema = z.strictObject({
|
|
81
|
+
...BillingAdministrationTransferPreviewRequestSchema.shape,
|
|
82
|
+
expectedLinkVersion: positiveSafeInteger,
|
|
83
|
+
previewChecksum,
|
|
84
|
+
idempotencyKey,
|
|
85
|
+
confirmed: z.literal(true),
|
|
86
|
+
});
|
|
87
|
+
/** Builds strict service-output schemas or deeply additive client response readers. */
|
|
88
|
+
export function createBillingOrganizationTransferSchemas(loose) {
|
|
89
|
+
const object = loose ? z.object : z.strictObject;
|
|
90
|
+
const organization = object({ slug: organizationSlug, displayName: z.string().min(1) });
|
|
91
|
+
const plan = loose
|
|
92
|
+
? z.object({ code: z.string().min(1), version: positiveSafeInteger })
|
|
93
|
+
: BillingPlanSummarySchema;
|
|
94
|
+
const destination = object({
|
|
95
|
+
id: billingAccountId,
|
|
96
|
+
displayName: z.string().min(1),
|
|
97
|
+
state: z.enum(['active', 'draft', 'inactive']),
|
|
98
|
+
plan: plan.nullable(),
|
|
99
|
+
linkedOrganizationCount: z.number().int().nonnegative(),
|
|
100
|
+
});
|
|
101
|
+
const productionCapacity = object({
|
|
102
|
+
current: z.number().int().nonnegative(),
|
|
103
|
+
organizationContribution: z.number().int().nonnegative(),
|
|
104
|
+
prospective: z.number().int().nonnegative(),
|
|
105
|
+
limit: z.number().int().nonnegative(),
|
|
106
|
+
});
|
|
107
|
+
const candidate = object({
|
|
108
|
+
organization,
|
|
109
|
+
state: z.enum(BILLING_ORGANIZATION_TRANSFER_CANDIDATE_STATES),
|
|
110
|
+
warnings: z.array(z.enum(BILLING_ORGANIZATION_TRANSFER_WARNING_CODES)),
|
|
111
|
+
blockers: z.array(z.enum(BILLING_ORGANIZATION_TRANSFER_BLOCKER_CODES)),
|
|
112
|
+
});
|
|
113
|
+
const candidatesResponse = object({
|
|
114
|
+
ok: z.literal(true),
|
|
115
|
+
data: object({
|
|
116
|
+
schemaVersion: z.literal(1),
|
|
117
|
+
items: z.array(candidate),
|
|
118
|
+
nextCursor: opaqueCursor.nullable(),
|
|
119
|
+
}),
|
|
120
|
+
});
|
|
121
|
+
const previewResponse = object({
|
|
122
|
+
ok: z.literal(true),
|
|
123
|
+
data: object({
|
|
124
|
+
schemaVersion: z.literal(1),
|
|
125
|
+
organization,
|
|
126
|
+
destination,
|
|
127
|
+
currentPlan: plan.nullable(),
|
|
128
|
+
resultingPlan: plan.nullable(),
|
|
129
|
+
linkedOrganizationCounts: object({
|
|
130
|
+
current: z.number().int().nonnegative(),
|
|
131
|
+
prospective: z.number().int().nonnegative(),
|
|
132
|
+
}),
|
|
133
|
+
productionCapacity,
|
|
134
|
+
lostCapabilityIds: z.array(z.string().min(1)),
|
|
135
|
+
fallback: z.literal('home_free'),
|
|
136
|
+
warnings: z.array(z.enum(BILLING_ORGANIZATION_TRANSFER_WARNING_CODES)),
|
|
137
|
+
blockers: z.array(z.enum(BILLING_ORGANIZATION_TRANSFER_BLOCKER_CODES)),
|
|
138
|
+
expectedLinkVersion: positiveSafeInteger,
|
|
139
|
+
previewChecksum,
|
|
140
|
+
previewedAt: z.string(),
|
|
141
|
+
}),
|
|
142
|
+
}).superRefine((value, context) => {
|
|
143
|
+
const incomplete = value.data.blockers.includes('billing_setup_incomplete');
|
|
144
|
+
if ((value.data.currentPlan === null || value.data.resultingPlan === null) && !incomplete) {
|
|
145
|
+
context.addIssue({
|
|
146
|
+
code: 'custom',
|
|
147
|
+
path: ['data'],
|
|
148
|
+
message: 'null preview plans require a billing_setup_incomplete blocker',
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
const applyResponse = object({
|
|
153
|
+
ok: z.literal(true),
|
|
154
|
+
data: object({
|
|
155
|
+
schemaVersion: z.literal(1),
|
|
156
|
+
operationId: z.string().min(1),
|
|
157
|
+
organization,
|
|
158
|
+
destination,
|
|
159
|
+
resultingPlan: plan,
|
|
160
|
+
productionCapacity,
|
|
161
|
+
fallback: z.literal('home_free'),
|
|
162
|
+
resultingLinkVersion: positiveSafeInteger,
|
|
163
|
+
effectiveAt: z.string(),
|
|
164
|
+
recordedAt: z.string(),
|
|
165
|
+
warnings: z.array(z.enum(BILLING_ORGANIZATION_TRANSFER_WARNING_CODES)),
|
|
166
|
+
replayed: z.boolean(),
|
|
167
|
+
}),
|
|
168
|
+
});
|
|
169
|
+
const administrationOrganizationsResponse = object({
|
|
170
|
+
ok: z.literal(true),
|
|
171
|
+
data: object({
|
|
172
|
+
schemaVersion: z.literal(1),
|
|
173
|
+
items: z.array(object({ organization })),
|
|
174
|
+
nextCursor: opaqueCursor.nullable(),
|
|
175
|
+
}),
|
|
176
|
+
});
|
|
177
|
+
return {
|
|
178
|
+
candidatesResponse,
|
|
179
|
+
previewResponse,
|
|
180
|
+
applyResponse,
|
|
181
|
+
administrationOrganizationsResponse,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
const strict = createBillingOrganizationTransferSchemas(false);
|
|
185
|
+
const client = createBillingOrganizationTransferSchemas(true);
|
|
186
|
+
export const BillingOrganizationTransferCandidatesResponseSchema = strict.candidatesResponse;
|
|
187
|
+
export const BillingOrganizationTransferPreviewResponseSchema = strict.previewResponse;
|
|
188
|
+
export const BillingOrganizationTransferApplyResponseSchema = strict.applyResponse;
|
|
189
|
+
export const BillingAdministrationOrganizationsResponseSchema = strict.administrationOrganizationsResponse;
|
|
190
|
+
export const BillingOrganizationTransferCandidatesClientResponseSchema = client.candidatesResponse;
|
|
191
|
+
export const BillingOrganizationTransferPreviewClientResponseSchema = client.previewResponse;
|
|
192
|
+
export const BillingOrganizationTransferApplyClientResponseSchema = client.applyResponse;
|
|
193
|
+
export const BillingAdministrationOrganizationsClientResponseSchema = client.administrationOrganizationsResponse;
|
|
194
|
+
/** Canonicalize the control-plane URL carried by local exact-review evidence. */
|
|
195
|
+
export function normalizeBillingOrganizationTransferServiceOrigin(value) {
|
|
196
|
+
const url = new URL(value);
|
|
197
|
+
if ((url.protocol !== 'https:' && url.protocol !== 'http:') ||
|
|
198
|
+
url.username.length > 0 ||
|
|
199
|
+
url.password.length > 0 ||
|
|
200
|
+
url.search.length > 0 ||
|
|
201
|
+
url.hash.length > 0 ||
|
|
202
|
+
url.pathname !== '/') {
|
|
203
|
+
throw new Error('invalid service origin');
|
|
204
|
+
}
|
|
205
|
+
return url.origin;
|
|
206
|
+
}
|
|
207
|
+
const normalizedServiceOriginSchema = z.string().superRefine((value, context) => {
|
|
208
|
+
try {
|
|
209
|
+
if (normalizeBillingOrganizationTransferServiceOrigin(value) !== value) {
|
|
210
|
+
context.addIssue({ code: 'custom', message: 'service origin is not normalized' });
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
catch {
|
|
214
|
+
context.addIssue({ code: 'custom', message: 'service origin is invalid' });
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
const customerReviewedRequestSchema = BillingAdministrationTransferPreviewRequestSchema.omit({
|
|
218
|
+
administrativeReason: true,
|
|
219
|
+
});
|
|
220
|
+
const transferPreviewSchema = BillingOrganizationTransferPreviewResponseSchema.shape.data;
|
|
221
|
+
const customerArtifactSchema = z
|
|
222
|
+
.strictObject({
|
|
223
|
+
schemaVersion: z.literal(1),
|
|
224
|
+
serviceOrigin: normalizedServiceOriginSchema,
|
|
225
|
+
authorityPath: z.literal('customer'),
|
|
226
|
+
request: customerReviewedRequestSchema,
|
|
227
|
+
preview: transferPreviewSchema,
|
|
228
|
+
})
|
|
229
|
+
.superRefine(validateReviewedTransfer);
|
|
230
|
+
const superAdminArtifactSchema = z
|
|
231
|
+
.strictObject({
|
|
232
|
+
schemaVersion: z.literal(1),
|
|
233
|
+
serviceOrigin: normalizedServiceOriginSchema,
|
|
234
|
+
authorityPath: z.literal('super_admin'),
|
|
235
|
+
request: BillingAdministrationTransferPreviewRequestSchema,
|
|
236
|
+
preview: transferPreviewSchema,
|
|
237
|
+
})
|
|
238
|
+
.superRefine(validateReviewedTransfer);
|
|
239
|
+
export const BillingOrganizationTransferArtifactSchema = z.discriminatedUnion('authorityPath', [
|
|
240
|
+
customerArtifactSchema,
|
|
241
|
+
superAdminArtifactSchema,
|
|
242
|
+
]);
|
|
243
|
+
function validateReviewedTransfer(value, context) {
|
|
244
|
+
if (value.request.organizationSlug !== value.preview.organization.slug) {
|
|
245
|
+
context.addIssue({
|
|
246
|
+
code: 'custom',
|
|
247
|
+
path: ['request', 'organizationSlug'],
|
|
248
|
+
message: 'reviewed organization does not match preview',
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
if (value.request.destinationBillingAccountId !== value.preview.destination.id) {
|
|
252
|
+
context.addIssue({
|
|
253
|
+
code: 'custom',
|
|
254
|
+
path: ['request', 'destinationBillingAccountId'],
|
|
255
|
+
message: 'reviewed destination does not match preview',
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
//# sourceMappingURL=billing-org-transfer.js.map
|
|
@@ -123,6 +123,27 @@ export declare const accessUpdateClientResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
123
123
|
ownerChanged?: boolean | undefined;
|
|
124
124
|
}>>;
|
|
125
125
|
export type AccessUpdateClientResponse = z.output<typeof accessUpdateClientResponseSchema>;
|
|
126
|
+
export declare const WhoamiIdentityResponseSchema: z.ZodObject<{
|
|
127
|
+
ok: z.ZodLiteral<true>;
|
|
128
|
+
data: z.ZodObject<{
|
|
129
|
+
identity: z.ZodObject<{
|
|
130
|
+
subject: z.ZodString;
|
|
131
|
+
email: z.ZodString;
|
|
132
|
+
superAdmin: z.ZodBoolean;
|
|
133
|
+
}, z.core.$strict>;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
export declare const WhoamiIdentityClientResponseSchema: z.ZodObject<{
|
|
137
|
+
ok: z.ZodLiteral<true>;
|
|
138
|
+
data: z.ZodObject<{
|
|
139
|
+
identity: z.ZodObject<{
|
|
140
|
+
subject: z.ZodString;
|
|
141
|
+
email: z.ZodString;
|
|
142
|
+
superAdmin: z.ZodBoolean;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export type WhoamiIdentityResponse = z.infer<typeof WhoamiIdentityResponseSchema>;
|
|
126
147
|
export declare const deploymentLockRequestSchema: z.ZodObject<{
|
|
127
148
|
serverVersion: z.ZodString;
|
|
128
149
|
expectedDeploymentId: z.ZodString;
|
|
@@ -128,6 +128,29 @@ export const accessUpdateClientResponseSchema = z
|
|
|
128
128
|
...value,
|
|
129
129
|
accessChanged: value.accessChanged ?? value.previousAccessMode !== value.deployment.accessMode,
|
|
130
130
|
}));
|
|
131
|
+
/** Bounded identity-only projection for `GET /v1/whoami?scope=identity`. */
|
|
132
|
+
const whoamiIdentityShape = {
|
|
133
|
+
ok: z.literal(true),
|
|
134
|
+
data: {
|
|
135
|
+
identity: {
|
|
136
|
+
subject: z.string().min(1),
|
|
137
|
+
email: z.string().min(1),
|
|
138
|
+
superAdmin: z.boolean(),
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
export const WhoamiIdentityResponseSchema = z.strictObject({
|
|
143
|
+
ok: whoamiIdentityShape.ok,
|
|
144
|
+
data: z.strictObject({
|
|
145
|
+
identity: z.strictObject(whoamiIdentityShape.data.identity),
|
|
146
|
+
}),
|
|
147
|
+
});
|
|
148
|
+
export const WhoamiIdentityClientResponseSchema = z.object({
|
|
149
|
+
ok: whoamiIdentityShape.ok,
|
|
150
|
+
data: z.object({
|
|
151
|
+
identity: z.object(whoamiIdentityShape.data.identity),
|
|
152
|
+
}),
|
|
153
|
+
});
|
|
131
154
|
export const deploymentLockRequestSchema = z
|
|
132
155
|
.object({
|
|
133
156
|
serverVersion: z.string().min(1),
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { z } from 'zod';
|
|
11
11
|
export * from './access-mode.js';
|
|
12
|
+
export * from './app-purge-reconciliation.js';
|
|
12
13
|
export * from './assistant.js';
|
|
13
14
|
export * from './billing-operations.js';
|
|
15
|
+
export * from './billing-org-transfer.js';
|
|
14
16
|
export * from './billing-read.js';
|
|
15
17
|
export * from './config.js';
|
|
16
18
|
export * from './control-plane.js';
|
|
@@ -11,8 +11,10 @@ import { z } from 'zod';
|
|
|
11
11
|
import { accessModeSchema } from './access-mode.js';
|
|
12
12
|
import { deploymentOwnerSubjectSchema } from './control-plane.js';
|
|
13
13
|
export * from './access-mode.js';
|
|
14
|
+
export * from './app-purge-reconciliation.js';
|
|
14
15
|
export * from './assistant.js';
|
|
15
16
|
export * from './billing-operations.js';
|
|
17
|
+
export * from './billing-org-transfer.js';
|
|
16
18
|
export * from './billing-read.js';
|
|
17
19
|
export * from './config.js';
|
|
18
20
|
export * from './control-plane.js';
|
|
@@ -167,6 +167,8 @@ export declare const PlatformAccountResetResultSchema: z.ZodObject<{
|
|
|
167
167
|
export type PlatformAccountResetResult = z.infer<typeof PlatformAccountResetResultSchema>;
|
|
168
168
|
export declare const PlatformAccountResetSafeResultSchema: z.ZodObject<{
|
|
169
169
|
schemaVersion: z.ZodLiteral<1>;
|
|
170
|
+
releaseSha: z.ZodString;
|
|
171
|
+
operationId: z.ZodString;
|
|
170
172
|
previewChecksum: z.ZodNullable<z.ZodString>;
|
|
171
173
|
blockers: z.ZodArray<z.ZodObject<{
|
|
172
174
|
code: z.ZodEnum<{
|
|
@@ -212,9 +214,7 @@ export declare const PlatformAccountResetSafeResultSchema: z.ZodObject<{
|
|
|
212
214
|
finalization_blocked: "finalization_blocked";
|
|
213
215
|
finalized: "finalized";
|
|
214
216
|
}>;
|
|
215
|
-
releaseSha: z.ZodString;
|
|
216
217
|
sourceEpoch: z.ZodNumber;
|
|
217
|
-
operationId: z.ZodString;
|
|
218
218
|
rolloutGeneration: z.ZodNumber;
|
|
219
219
|
}, z.core.$strict>;
|
|
220
220
|
export type PlatformAccountResetSafeResult = z.infer<typeof PlatformAccountResetSafeResultSchema>;
|
|
@@ -222,6 +222,8 @@ export declare const PlatformAccountResetResultResponseSchema: z.ZodObject<{
|
|
|
222
222
|
ok: z.ZodLiteral<true>;
|
|
223
223
|
data: z.ZodObject<{
|
|
224
224
|
schemaVersion: z.ZodLiteral<1>;
|
|
225
|
+
releaseSha: z.ZodString;
|
|
226
|
+
operationId: z.ZodString;
|
|
225
227
|
previewChecksum: z.ZodNullable<z.ZodString>;
|
|
226
228
|
blockers: z.ZodArray<z.ZodObject<{
|
|
227
229
|
code: z.ZodEnum<{
|
|
@@ -267,9 +269,7 @@ export declare const PlatformAccountResetResultResponseSchema: z.ZodObject<{
|
|
|
267
269
|
finalization_blocked: "finalization_blocked";
|
|
268
270
|
finalized: "finalized";
|
|
269
271
|
}>;
|
|
270
|
-
releaseSha: z.ZodString;
|
|
271
272
|
sourceEpoch: z.ZodNumber;
|
|
272
|
-
operationId: z.ZodString;
|
|
273
273
|
rolloutGeneration: z.ZodNumber;
|
|
274
274
|
}, z.core.$strict>;
|
|
275
275
|
}, z.core.$strict>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noodleseed/assistant",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "Embed the Noodle Seed customer-branded assistant in your web app with managed or framework-owned UI, a framework-neutral MCP App host, a DOM-free client, and a backend session helper. Authoring and deploying the server is @noodleseed/one.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"access": "public"
|
|
91
91
|
},
|
|
92
92
|
"scripts": {
|
|
93
|
+
"attw": "attw --pack . --format json",
|
|
93
94
|
"build": "tsup",
|
|
94
95
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
95
96
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noodleseed/one",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.154.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Noodle CLI by Noodle Seed — author, run, and deploy declarative MCP servers. Embedding the assistant in your own web app is @noodleseed/assistant.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"@modelcontextprotocol/client": "2.0.0",
|
|
237
237
|
"@modelcontextprotocol/server": "2.0.0",
|
|
238
238
|
"@noodle-borg/admission-limits": "0.0.0",
|
|
239
|
-
"@noodle-borg/agent-kit": "0.
|
|
239
|
+
"@noodle-borg/agent-kit": "0.93.0",
|
|
240
240
|
"@noodle-borg/app-audit": "0.0.0",
|
|
241
241
|
"@noodle-borg/app-package": "0.0.0",
|
|
242
242
|
"@noodle-borg/assistant-gateway": "0.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-data-billing.d.ts","sourceRoot":"","sources":["../../src/commands/catalog-data-billing.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,cAAc,kCAAkC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-data-billing.js","sourceRoot":"","sources":["../../src/commands/catalog-data-billing.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,cAAc,kCAAkC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-data-policy.d.ts","sourceRoot":"","sources":["../../src/commands/catalog-data-policy.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,cAAc,iCAAiC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-data-policy.js","sourceRoot":"","sources":["../../src/commands/catalog-data-policy.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,cAAc,iCAAiC,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { ConnectorCatalog } from '../catalog/types.js';
|
|
2
|
-
import { type StructuralAmbientContext } from '../context-compile.js';
|
|
3
|
-
import type { CompileError } from '../errors.js';
|
|
4
|
-
import { type DeclaredConnectorRef } from '../fulfilment-emit.js';
|
|
5
|
-
import type { StructFulfilment } from '../fulfilment-structural.js';
|
|
6
|
-
import type { Manifest } from '../manifest/schema.js';
|
|
7
|
-
import type { ArtifactMeta, ArtifactPrompt, ArtifactResource, ArtifactTool, JsonSchema, RuntimeArtifact } from './types.js';
|
|
8
|
-
/** A tool whose structural checks passed, paired with its parsed fulfilment + resolved schemas. */
|
|
9
|
-
export interface StructuralTool {
|
|
10
|
-
readonly tool: Manifest['tools'][number];
|
|
11
|
-
readonly index: number;
|
|
12
|
-
readonly inputSchema: JsonSchema;
|
|
13
|
-
readonly outputSchema?: JsonSchema;
|
|
14
|
-
readonly fulfilment: StructFulfilment;
|
|
15
|
-
}
|
|
16
|
-
/** A resource whose structural checks passed, paired with its parsed fulfilment + URI classification. */
|
|
17
|
-
export interface StructuralResource {
|
|
18
|
-
readonly resource: NonNullable<Manifest['resources']>[number];
|
|
19
|
-
readonly isTemplate: boolean;
|
|
20
|
-
readonly variables: readonly string[];
|
|
21
|
-
readonly fulfilment: StructFulfilment;
|
|
22
|
-
}
|
|
23
|
-
/** A prompt whose structural checks passed, paired with its parsed fulfilment. */
|
|
24
|
-
export interface StructuralPrompt {
|
|
25
|
-
readonly prompt: NonNullable<Manifest['prompts']>[number];
|
|
26
|
-
readonly fulfilment: StructFulfilment;
|
|
27
|
-
}
|
|
28
|
-
interface CatalogArtifactEmissionInput {
|
|
29
|
-
readonly manifest: Manifest;
|
|
30
|
-
readonly catalog: ConnectorCatalog | undefined;
|
|
31
|
-
readonly structuralAmbientContext: StructuralAmbientContext | undefined;
|
|
32
|
-
readonly structuralTools: readonly StructuralTool[];
|
|
33
|
-
readonly structuralResources: readonly StructuralResource[];
|
|
34
|
-
readonly structuralPrompts: readonly StructuralPrompt[];
|
|
35
|
-
readonly toolUiMetaByName: ReadonlyMap<string, ArtifactMeta>;
|
|
36
|
-
readonly errors: CompileError[];
|
|
37
|
-
}
|
|
38
|
-
interface CatalogArtifactEmissionResult {
|
|
39
|
-
readonly artifactAmbientContext: NonNullable<NonNullable<RuntimeArtifact['server']['context']>['ambient']> | undefined;
|
|
40
|
-
readonly artifactTools: readonly ArtifactTool[];
|
|
41
|
-
readonly artifactResources: readonly ArtifactResource[];
|
|
42
|
-
readonly artifactPrompts: readonly ArtifactPrompt[];
|
|
43
|
-
readonly declared: Record<string, DeclaredConnectorRef>;
|
|
44
|
-
readonly customerEndpoints: RuntimeArtifact['customerEndpoints'];
|
|
45
|
-
}
|
|
46
|
-
/** Resolve connector references and emit catalog-dependent artifact surfaces. */
|
|
47
|
-
export declare function emitCatalogArtifactSurfaces({ manifest, catalog, structuralAmbientContext, structuralTools, structuralResources, structuralPrompts, toolUiMetaByName, errors, }: CatalogArtifactEmissionInput): CatalogArtifactEmissionResult;
|
|
48
|
-
export declare function isContextProvider(tool: object): boolean;
|
|
49
|
-
export {};
|
|
50
|
-
//# sourceMappingURL=catalog-emission.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ArtifactServer, JsonSchema } from './artifact/types.js';
|
|
2
|
-
import type { ConnectorCatalog } from './catalog/types.js';
|
|
3
|
-
import type { CustomerRoutingCollector } from './customer-routing.js';
|
|
4
|
-
import type { CompileError } from './errors.js';
|
|
5
|
-
import { type DeclaredConnectorRef } from './fulfilment-emit.js';
|
|
6
|
-
import { type StructFulfilment } from './fulfilment-structural.js';
|
|
7
|
-
import type { Manifest } from './manifest/schema.js';
|
|
8
|
-
import { type SchemasMap } from './manifest/schema-refs.js';
|
|
9
|
-
export interface StructuralAmbientContext {
|
|
10
|
-
readonly outputSchema: JsonSchema;
|
|
11
|
-
readonly fulfilment: StructFulfilment;
|
|
12
|
-
}
|
|
13
|
-
/** Parse the context provider and its output schema during catalog-independent compilation. */
|
|
14
|
-
export declare function parseAmbientContext(manifest: Manifest, schemas: SchemasMap, errors: CompileError[]): StructuralAmbientContext | undefined;
|
|
15
|
-
/** Resolve the provider against the connector catalog, enforcing its read-only contract. */
|
|
16
|
-
export declare function emitAmbientContext(structural: StructuralAmbientContext | undefined, catalog: ConnectorCatalog | undefined, declared: Record<string, DeclaredConnectorRef>, usedAliases: Set<string>, errors: CompileError[], customerRouting?: CustomerRoutingCollector): NonNullable<NonNullable<ArtifactServer['context']>['ambient']> | undefined;
|
|
17
|
-
//# sourceMappingURL=context-compile.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ServerResponse } from 'node:http';
|
|
2
|
-
export type ModuleJsonBodyResult = {
|
|
3
|
-
readonly ok: true;
|
|
4
|
-
readonly value: unknown;
|
|
5
|
-
} | {
|
|
6
|
-
readonly ok: false;
|
|
7
|
-
readonly status: 400 | 413;
|
|
8
|
-
readonly error: string;
|
|
9
|
-
};
|
|
10
|
-
/** Bounded JSON reader shared by trusted service modules without exposing service-owned helpers. */
|
|
11
|
-
export declare function readModuleJsonBody(request: AsyncIterable<Uint8Array | string>, maxBytes: number): Promise<ModuleJsonBodyResult>;
|
|
12
|
-
export declare function sendModuleJson(response: ServerResponse, status: number, value: unknown): void;
|
|
13
|
-
//# sourceMappingURL=module-http.d.ts.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** Bounded JSON reader shared by trusted service modules without exposing service-owned helpers. */
|
|
2
|
-
export async function readModuleJsonBody(request, maxBytes) {
|
|
3
|
-
const chunks = [];
|
|
4
|
-
let size = 0;
|
|
5
|
-
for await (const chunk of request) {
|
|
6
|
-
const bytes = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
7
|
-
size += bytes.byteLength;
|
|
8
|
-
if (size > maxBytes) {
|
|
9
|
-
return { ok: false, status: 413, error: 'request body too large' };
|
|
10
|
-
}
|
|
11
|
-
chunks.push(bytes);
|
|
12
|
-
}
|
|
13
|
-
try {
|
|
14
|
-
return { ok: true, value: JSON.parse(Buffer.concat(chunks).toString('utf8')) };
|
|
15
|
-
}
|
|
16
|
-
catch {
|
|
17
|
-
return { ok: false, status: 400, error: 'invalid JSON request body' };
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export function sendModuleJson(response, status, value) {
|
|
21
|
-
const body = Buffer.from(JSON.stringify(value));
|
|
22
|
-
response.writeHead(status, {
|
|
23
|
-
'content-type': 'application/json; charset=utf-8',
|
|
24
|
-
'content-length': String(body.byteLength),
|
|
25
|
-
});
|
|
26
|
-
response.end(body);
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=module-http.js.map
|