agentxgo 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/adapters/codex/client.js +6 -0
- package/dist/adapters/dsh/client.js +6 -0
- package/dist/adapters/runtime-http/client.js +101 -0
- package/dist/adapters/runtime-http/endpoint.js +15 -0
- package/dist/bootstrap.js +161 -0
- package/dist/cli.js +134 -0
- package/dist/communication/assembly.js +172 -0
- package/dist/communication/calls.js +107 -0
- package/dist/communication/config.js +33 -0
- package/dist/communication/pump.js +136 -0
- package/dist/computer/authority.js +67 -0
- package/dist/computer/automatic.js +163 -0
- package/dist/computer/automation-main.js +59 -0
- package/dist/computer/automation.js +229 -0
- package/dist/computer/backend.js +160 -0
- package/dist/computer/clipboard.js +72 -0
- package/dist/computer/config.js +66 -0
- package/dist/computer/controller.js +378 -0
- package/dist/computer/desktop.js +225 -0
- package/dist/computer/job-main.js +114 -0
- package/dist/computer/main.js +9 -0
- package/dist/computer/native.js +28 -0
- package/dist/computer/processes.js +165 -0
- package/dist/computer/release.js +40 -0
- package/dist/computer/scratch.js +171 -0
- package/dist/computer/service.js +46 -0
- package/dist/computer/worker.js +70 -0
- package/dist/config.js +156 -0
- package/dist/continuation/checkpoints.js +98 -0
- package/dist/continuation/commands.js +81 -0
- package/dist/continuation/coordinator.js +490 -0
- package/dist/continuation/corrections.js +154 -0
- package/dist/continuation/events.js +171 -0
- package/dist/continuation/failure.js +93 -0
- package/dist/continuation/listening.js +24 -0
- package/dist/continuation/local-wait.js +67 -0
- package/dist/continuation/observations.js +100 -0
- package/dist/continuation/parking.js +190 -0
- package/dist/continuation/reading.js +77 -0
- package/dist/conversations/pump.js +158 -0
- package/dist/conversations/runtime-http.js +88 -0
- package/dist/deployment/cold-qualification.js +119 -0
- package/dist/deployment/cold-release.js +56 -0
- package/dist/deployment/components/cli.js +45 -0
- package/dist/deployment/components/lock.js +38 -0
- package/dist/deployment/components/manager.js +281 -0
- package/dist/deployment/components/release.js +50 -0
- package/dist/deployment/components/runner.js +15 -0
- package/dist/deployment/components/supervisor.js +289 -0
- package/dist/deployment/components/verify.js +66 -0
- package/dist/deployment/components/windows.js +70 -0
- package/dist/deployment/config.js +89 -0
- package/dist/deployment/failure.js +24 -0
- package/dist/deployment/kernel.js +85 -0
- package/dist/deployment/macos/activate.js +140 -0
- package/dist/deployment/macos/attachment.js +42 -0
- package/dist/deployment/macos/handoff.js +140 -0
- package/dist/deployment/macos/install.js +223 -0
- package/dist/deployment/macos/plan.js +155 -0
- package/dist/deployment/macos/proof.js +24 -0
- package/dist/deployment/main.js +16 -0
- package/dist/deployment/members.js +58 -0
- package/dist/deployment/preflight.js +41 -0
- package/dist/deployment/recovery-route.js +18 -0
- package/dist/deployment/runtime.js +114 -0
- package/dist/deployment/system.js +112 -0
- package/dist/deployment/windows-state.js +32 -0
- package/dist/doctor/config.js +155 -0
- package/dist/doctor/probe.js +212 -0
- package/dist/doctor/process.js +31 -0
- package/dist/doctor/run.js +105 -0
- package/dist/enrollment/cli.js +57 -0
- package/dist/enrollment/defaults.js +54 -0
- package/dist/enrollment/device.js +314 -0
- package/dist/enrollment/login.js +107 -0
- package/dist/enrollment/setup.js +164 -0
- package/dist/enrollment/terminal.js +55 -0
- package/dist/execution/artifact.js +157 -0
- package/dist/execution/codex/authority.js +356 -0
- package/dist/execution/codex/catalog.js +24 -0
- package/dist/execution/codex/config.js +77 -0
- package/dist/execution/codex/directories.js +67 -0
- package/dist/execution/codex/main.js +17 -0
- package/dist/execution/codex/read.js +35 -0
- package/dist/execution/codex/record.js +121 -0
- package/dist/execution/codex/role.js +2 -0
- package/dist/execution/codex/stream.js +2 -0
- package/dist/execution/codex/window-receipts.js +73 -0
- package/dist/execution/codex/wire.js +56 -0
- package/dist/execution/codex/worker.js +143 -0
- package/dist/execution/config.js +215 -0
- package/dist/execution/environment.js +61 -0
- package/dist/execution/gateway.js +212 -0
- package/dist/execution/lease-watchdog.js +172 -0
- package/dist/execution/local.js +159 -0
- package/dist/execution/main.js +71 -0
- package/dist/execution/native/config.js +45 -0
- package/dist/execution/native/input.js +7 -0
- package/dist/execution/native/main.js +9 -0
- package/dist/execution/native/records.js +168 -0
- package/dist/execution/native/worker.js +128 -0
- package/dist/execution/native-job-gate.js +63 -0
- package/dist/execution/process-types.js +1 -0
- package/dist/execution/process.js +246 -0
- package/dist/execution/results.js +111 -0
- package/dist/execution/role.js +210 -0
- package/dist/execution/runner.js +338 -0
- package/dist/execution/scope.js +415 -0
- package/dist/execution/scratch-files.js +352 -0
- package/dist/execution/scratch-paths.js +56 -0
- package/dist/execution/scratch.js +126 -0
- package/dist/execution/stdio.js +83 -0
- package/dist/execution/stream.js +159 -0
- package/dist/execution/watchdog.js +181 -0
- package/dist/execution/work.js +76 -0
- package/dist/execution/worker.js +106 -0
- package/dist/help.js +21 -0
- package/dist/lifecycle/http.js +178 -0
- package/dist/lifecycle/runtime.js +263 -0
- package/dist/lifecycle/status-command.js +78 -0
- package/dist/lifecycle/status.js +37 -0
- package/dist/lifecycle/wake-hints.js +68 -0
- package/dist/main.js +59 -0
- package/dist/ports/reports.js +1 -0
- package/dist/ports/runtime.js +1 -0
- package/dist/preparation/backend.js +44 -0
- package/dist/preparation/binding.js +47 -0
- package/dist/preparation/bootstrap.js +165 -0
- package/dist/preparation/config.js +143 -0
- package/dist/preparation/coordinator.js +251 -0
- package/dist/preparation/main.js +58 -0
- package/dist/preparation/runtime.js +122 -0
- package/dist/receptions/pump.js +109 -0
- package/dist/receptions/runtime-http.js +115 -0
- package/dist/recovery/activation.js +178 -0
- package/dist/recovery/admission.js +95 -0
- package/dist/recovery/automatic-preparation.js +194 -0
- package/dist/recovery/automatic-recovery.js +210 -0
- package/dist/recovery/confirmed-binding.js +45 -0
- package/dist/recovery/coordinator.js +351 -0
- package/dist/recovery/execution-policy.js +26 -0
- package/dist/recovery/preparation-policy.js +30 -0
- package/dist/recovery/prestart.js +62 -0
- package/dist/recovery/quarantine.js +153 -0
- package/dist/recovery/service-restart-view.js +32 -0
- package/dist/recovery/service-restart.js +368 -0
- package/dist/reports/pump.js +98 -0
- package/dist/resources/admission.js +25 -0
- package/dist/resources/guard.js +14 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/account.js +42 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/connection-file.js +32 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/direct.js +114 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/local.js +238 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/operations-arguments.js +20 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/operations-communication.js +56 -0
- package/node_modules/@agent-stack/adapter-agentim/dist/operations-operator.js +40 -0
- package/node_modules/@agent-stack/adapter-agentim/package.json +15 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/automatic-activation.js +94 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/automatic-preparation.js +90 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/checkpoint-seal.js +89 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/communication.js +238 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/computer-scratch.js +56 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/computer.js +183 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/database.js +174 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/index.js +4 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/input.js +55 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/journal.js +396 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/models.js +35 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/native-calls.js +123 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/native-window.js +12 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/observations.js +237 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/preparation.js +117 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/recovery-history.js +30 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/recovery-record.js +32 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/recovery.js +256 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/reports.js +105 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/runtime-events.js +246 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/runtime-settings.js +95 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/target-actions.js +355 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/target-local.js +210 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/target-scratch.js +207 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/terminal-checkpoints.js +286 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/terminal-store.js +136 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/trace-inputs.js +104 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/upgrade.js +25 -0
- package/node_modules/@agent-stack/bot-host-journal/dist/waits.js +213 -0
- package/node_modules/@agent-stack/bot-host-journal/package.json +10 -0
- package/node_modules/@agent-stack/bridge-client/dist/bot-transport.js +339 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/agents.js +22 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/assistant.js +26 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/auth.js +9 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/client.js +160 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/inventory.js +55 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/native-events.js +52 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/owner-route.js +21 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/reports.js +41 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bots/runtime.js +190 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/bridge-client.js +37 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/core.js +123 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/deployments.js +57 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/integrations.js +45 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/knowledge.js +33 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/management.js +112 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/platform-events.js +59 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/platform.js +82 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/public-runtime.js +94 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/run-work-acknowledgement.js +54 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/run-work-errors.js +34 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/runtime.js +46 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/tenant/authorization.js +7 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/tenant/management.js +59 -0
- package/node_modules/@agent-stack/bridge-client/dist/client/workspace.js +109 -0
- package/node_modules/@agent-stack/bridge-client/dist/index.js +9 -0
- package/node_modules/@agent-stack/bridge-client/package.json +11 -0
- package/node_modules/@agent-stack/contracts/dist/api-credentials.js +103 -0
- package/node_modules/@agent-stack/contracts/dist/bots/assistant-path.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/bots/assistant.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/bots/capabilities.js +66 -0
- package/node_modules/@agent-stack/contracts/dist/bots/capability-migration.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/capability-version.js +48 -0
- package/node_modules/@agent-stack/contracts/dist/bots/codex-policy.js +22 -0
- package/node_modules/@agent-stack/contracts/dist/bots/command-evidence.js +101 -0
- package/node_modules/@agent-stack/contracts/dist/bots/command-inventory.js +74 -0
- package/node_modules/@agent-stack/contracts/dist/bots/command-receipt.js +78 -0
- package/node_modules/@agent-stack/contracts/dist/bots/communication-native.js +33 -0
- package/node_modules/@agent-stack/contracts/dist/bots/communication-stream.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/bots/communication.js +154 -0
- package/node_modules/@agent-stack/contracts/dist/bots/component-status.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/bots/components.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/computer-validation.js +320 -0
- package/node_modules/@agent-stack/contracts/dist/bots/computer.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/conversations.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/bots/corrections.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delegation-renewal.js +17 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delegation.js +35 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delivery-history.js +115 -0
- package/node_modules/@agent-stack/contracts/dist/bots/delivery-read.js +121 -0
- package/node_modules/@agent-stack/contracts/dist/bots/elicitation.js +83 -0
- package/node_modules/@agent-stack/contracts/dist/bots/entries.js +65 -0
- package/node_modules/@agent-stack/contracts/dist/bots/event-exchanges.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/goal-window.js +84 -0
- package/node_modules/@agent-stack/contracts/dist/bots/host-actions.js +191 -0
- package/node_modules/@agent-stack/contracts/dist/bots/identities.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/index.js +72 -0
- package/node_modules/@agent-stack/contracts/dist/bots/installation.js +9 -0
- package/node_modules/@agent-stack/contracts/dist/bots/interaction-validation.js +227 -0
- package/node_modules/@agent-stack/contracts/dist/bots/interactions.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/lifecycle.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/bots/local-execution.js +72 -0
- package/node_modules/@agent-stack/contracts/dist/bots/mcp-capabilities.js +53 -0
- package/node_modules/@agent-stack/contracts/dist/bots/mission.js +3 -0
- package/node_modules/@agent-stack/contracts/dist/bots/model-routing.js +43 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-events-validation.js +229 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-events.js +4 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-fact.js +32 -0
- package/node_modules/@agent-stack/contracts/dist/bots/native-host.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/observation.js +42 -0
- package/node_modules/@agent-stack/contracts/dist/bots/owner-progress.js +85 -0
- package/node_modules/@agent-stack/contracts/dist/bots/owner-transition.js +169 -0
- package/node_modules/@agent-stack/contracts/dist/bots/parking.js +75 -0
- package/node_modules/@agent-stack/contracts/dist/bots/preferences.js +39 -0
- package/node_modules/@agent-stack/contracts/dist/bots/preparations.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/bots/project-oauth.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/quarantine-installation.js +117 -0
- package/node_modules/@agent-stack/contracts/dist/bots/quarantine.js +186 -0
- package/node_modules/@agent-stack/contracts/dist/bots/read-recovery.js +10 -0
- package/node_modules/@agent-stack/contracts/dist/bots/receptions.js +7 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-admission.js +163 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-errors.js +51 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-history.js +90 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-source.js +164 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery-validation.js +160 -0
- package/node_modules/@agent-stack/contracts/dist/bots/recovery.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/bots/relay.js +21 -0
- package/node_modules/@agent-stack/contracts/dist/bots/report-status.js +99 -0
- package/node_modules/@agent-stack/contracts/dist/bots/reports.js +8 -0
- package/node_modules/@agent-stack/contracts/dist/bots/restart-source.js +151 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-command.js +59 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-input.js +80 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-provider.js +12 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-settings.js +63 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime-validation.js +35 -0
- package/node_modules/@agent-stack/contracts/dist/bots/runtime.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/same-native.js +44 -0
- package/node_modules/@agent-stack/contracts/dist/bots/service-restart.js +80 -0
- package/node_modules/@agent-stack/contracts/dist/bots/status.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/sync.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/bots/targets.js +95 -0
- package/node_modules/@agent-stack/contracts/dist/bots/validation.js +82 -0
- package/node_modules/@agent-stack/contracts/dist/bots/versions.js +6 -0
- package/node_modules/@agent-stack/contracts/dist/bots/wake-hints.js +20 -0
- package/node_modules/@agent-stack/contracts/dist/bots/work-brief.js +120 -0
- package/node_modules/@agent-stack/contracts/dist/bots/work-control.js +47 -0
- package/node_modules/@agent-stack/contracts/dist/bots/work-events.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/browser-chat-attachment.js +66 -0
- package/node_modules/@agent-stack/contracts/dist/business-outcomes.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/chat-attachment.js +70 -0
- package/node_modules/@agent-stack/contracts/dist/chat-stream.js +105 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/agent-ui.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/base.js +6 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/deployments.js +6 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/index.js +8 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/integrations.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/knowledge.js +69 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/live.js +56 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/runtime.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/contracts/workspace.js +9 -0
- package/node_modules/@agent-stack/contracts/dist/delivery-targets.js +139 -0
- package/node_modules/@agent-stack/contracts/dist/desktop-mcp.js +105 -0
- package/node_modules/@agent-stack/contracts/dist/employee-association.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/event-links.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/execution-oauth-callback.js +61 -0
- package/node_modules/@agent-stack/contracts/dist/host-page-context.js +156 -0
- package/node_modules/@agent-stack/contracts/dist/index.js +115 -0
- package/node_modules/@agent-stack/contracts/dist/installation-lifecycle.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/installation-mcp.js +5 -0
- package/node_modules/@agent-stack/contracts/dist/installations.js +7 -0
- package/node_modules/@agent-stack/contracts/dist/integration-context.js +22 -0
- package/node_modules/@agent-stack/contracts/dist/integration-oauth.js +23 -0
- package/node_modules/@agent-stack/contracts/dist/integration-runtime.js +107 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-run-wake.js +78 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-work-acknowledgement.js +74 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-work-events.js +131 -0
- package/node_modules/@agent-stack/contracts/dist/interactive-work-sources.js +142 -0
- package/node_modules/@agent-stack/contracts/dist/knowledge-attachment.js +50 -0
- package/node_modules/@agent-stack/contracts/dist/knowledge-catalog.js +94 -0
- package/node_modules/@agent-stack/contracts/dist/knowledge-organization.js +87 -0
- package/node_modules/@agent-stack/contracts/dist/live-audio.js +46 -0
- package/node_modules/@agent-stack/contracts/dist/live-business.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/live-human.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/live-transport.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/mcp-directory.js +7 -0
- package/node_modules/@agent-stack/contracts/dist/mcp-refresh.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/mcp-scopes.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/native-studio-installation.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/oauth-authorization.js +19 -0
- package/node_modules/@agent-stack/contracts/dist/platform-events.js +182 -0
- package/node_modules/@agent-stack/contracts/dist/reply-presentation.js +59 -0
- package/node_modules/@agent-stack/contracts/dist/reply.js +129 -0
- package/node_modules/@agent-stack/contracts/dist/request-body.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/schedules.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/task-work-events.js +107 -0
- package/node_modules/@agent-stack/contracts/dist/tasks.js +200 -0
- package/node_modules/@agent-stack/contracts/dist/templates.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/access-schemas.js +149 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/access-views.js +17 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/access.js +132 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/actions.js +173 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/attachments.js +68 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/authorization.js +160 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/capabilities.js +98 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/connections.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/conversation-work-events.js +72 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/conversation-work-schemas.js +136 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/conversations.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/deliveries.js +120 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/delivery-views.js +38 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/deployment-catalog.js +50 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/descriptor.js +50 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/events.js +39 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/feedback.js +161 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/guidance.js +284 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/host-enrollment.js +51 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/identity.js +31 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/installation-schemas.js +350 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/installation-views.js +69 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/installations.js +217 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/integration-configuration.js +96 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/integration-oauth.js +85 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/integrations.js +75 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/json.js +96 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management-input.js +211 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management-results.js +145 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management-schemas.js +139 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-management.js +32 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-organization.js +96 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-program-input.js +111 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-program-results.js +234 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/knowledge-programs.js +15 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/live.js +63 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/marketplace-schemas.js +110 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/marketplaces.js +51 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/mcp-directory.js +98 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/native-operations.js +113 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/operations.js +36 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/outcome-schemas.js +121 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/outcomes.js +87 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/queries.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/resource-views.js +463 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/resources.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schedule-schemas.js +122 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schedule-views.js +22 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schedules.js +109 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/schemas.js +117 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/settings.js +34 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/sse.js +58 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/task-schemas.js +89 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/task-views.js +34 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/tasks.js +41 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/tests.js +1 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/transport.js +2 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/usage.js +61 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/views.js +52 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/widgets.js +215 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/work-changes.js +71 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/work-materials.js +102 -0
- package/node_modules/@agent-stack/contracts/dist/tenant/workspace-resources.js +87 -0
- package/node_modules/@agent-stack/contracts/dist/widget-authorization.js +55 -0
- package/node_modules/@agent-stack/contracts/dist/widget-avatar.js +24 -0
- package/node_modules/@agent-stack/contracts/dist/widget-context.js +57 -0
- package/node_modules/@agent-stack/contracts/dist/widget-conversation.js +13 -0
- package/node_modules/@agent-stack/contracts/dist/widget-host-auth.js +142 -0
- package/node_modules/@agent-stack/contracts/dist/widget-origin.js +16 -0
- package/node_modules/@agent-stack/contracts/dist/widget-turn.js +84 -0
- package/node_modules/@agent-stack/contracts/package.json +8 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/authority.js +64 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/bootstrap.js +81 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/codex-record.js +37 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/codex-target.js +56 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/conversation.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/index.js +7 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/process-identity.js +18 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/quarantine-material.js +9 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/recovery-inspection.js +103 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/bot/service.js +3 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/index.js +7 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/json.js +169 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/observation.js +40 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/runtime.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/trace.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/types.js +32 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/wire.js +167 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/execution/wire.schema.json +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/index.js +31 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/interactive-run-wake.js +190 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/legacy.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/mcp.js +53 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/native-studio-connection.js +46 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/native-studio-execution.js +100 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/native-studio-registration.js +193 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/oauth-context.js +38 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/personal-mcp.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/signing.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/source-reply.js +153 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/storage.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/target-environment.js +45 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/tenant-management.js +57 -0
- package/node_modules/@agent-stack/runtime-contracts/dist/tool-trace.js +1 -0
- package/node_modules/@agent-stack/runtime-contracts/package.json +13 -0
- package/node_modules/@agentims/adapter/dist/authority/binding.js +40 -0
- package/node_modules/@agentims/adapter/dist/delivery/coordinator.js +202 -0
- package/node_modules/@agentims/adapter/dist/delivery/decision.js +51 -0
- package/node_modules/@agentims/adapter/dist/delivery/record.js +24 -0
- package/node_modules/@agentims/adapter/dist/delivery/types.js +1 -0
- package/node_modules/@agentims/adapter/dist/errors.js +40 -0
- package/node_modules/@agentims/adapter/dist/index.js +5 -0
- package/node_modules/@agentims/adapter/dist/lifecycle/budget.js +30 -0
- package/node_modules/@agentims/adapter/dist/receipts/send.js +24 -0
- package/node_modules/@agentims/adapter/dist/source/event-source.js +153 -0
- package/node_modules/@agentims/adapter/dist/source/types.js +1 -0
- package/node_modules/@agentims/adapter/dist/status/adapter-status.js +46 -0
- package/node_modules/@agentims/adapter/package.json +10 -0
- package/node_modules/@agentims/runtime/dist/accounts/backup.js +39 -0
- package/node_modules/@agentims/runtime/dist/accounts/communication.js +14 -0
- package/node_modules/@agentims/runtime/dist/accounts/context.js +36 -0
- package/node_modules/@agentims/runtime/dist/accounts/credential-lifecycle.js +57 -0
- package/node_modules/@agentims/runtime/dist/accounts/errors.js +13 -0
- package/node_modules/@agentims/runtime/dist/accounts/login.js +32 -0
- package/node_modules/@agentims/runtime/dist/accounts/password.js +18 -0
- package/node_modules/@agentims/runtime/dist/accounts/register.js +30 -0
- package/node_modules/@agentims/runtime/dist/accounts/selection.js +93 -0
- package/node_modules/@agentims/runtime/dist/accounts/types.js +1 -0
- package/node_modules/@agentims/runtime/dist/authentication/intent.js +15 -0
- package/node_modules/@agentims/runtime/dist/authentication/journals.js +39 -0
- package/node_modules/@agentims/runtime/dist/authentication/methods.js +42 -0
- package/node_modules/@agentims/runtime/dist/authentication/selection.js +20 -0
- package/node_modules/@agentims/runtime/dist/authentication/status.js +42 -0
- package/node_modules/@agentims/runtime/dist/cli/account-commands.js +72 -0
- package/node_modules/@agentims/runtime/dist/cli/arguments.js +120 -0
- package/node_modules/@agentims/runtime/dist/cli/authentication.js +22 -0
- package/node_modules/@agentims/runtime/dist/cli/command-names.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/account-authorization.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/cache-inspection.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/cache.js +14 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/catalog.js +40 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/contacts.js +5 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/conversations.js +15 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/definition.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/deliveries-native.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/deliveries.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/devices-native.js +7 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/discovery.js +4 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/drafts.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-dehydration.js +13 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-native.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-recovery.js +11 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-reset.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption-secrets.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/encryption.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/identity.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/location.js +7 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/matrix-capabilities.js +38 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/matrix-identity.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/matrix-rooms.js +23 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/media.js +12 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/messages-native.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/messages.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/native-inspection.js +24 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/native-preferences.js +11 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/native-requests.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/oauth.js +15 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/outbox.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/pairing.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/profiles.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/qr-authorization.js +6 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/reliability.js +8 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/room-management.js +17 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/rtc.js +14 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/search.js +11 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/sync-qr.js +9 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/timeline-native.js +10 -0
- package/node_modules/@agentims/runtime/dist/cli/commands/verification-native.js +7 -0
- package/node_modules/@agentims/runtime/dist/cli/errors.js +83 -0
- package/node_modules/@agentims/runtime/dist/cli/help.js +74 -0
- package/node_modules/@agentims/runtime/dist/cli/history-commands.js +13 -0
- package/node_modules/@agentims/runtime/dist/cli/input.js +82 -0
- package/node_modules/@agentims/runtime/dist/cli/main.js +19 -0
- package/node_modules/@agentims/runtime/dist/cli/output.js +71 -0
- package/node_modules/@agentims/runtime/dist/cli/password-input.js +36 -0
- package/node_modules/@agentims/runtime/dist/cli/run.js +90 -0
- package/node_modules/@agentims/runtime/dist/cli/update-commands.js +76 -0
- package/node_modules/@agentims/runtime/dist/configuration/account-credential.js +30 -0
- package/node_modules/@agentims/runtime/dist/configuration/connection-descriptor.js +18 -0
- package/node_modules/@agentims/runtime/dist/configuration/device-binding.js +41 -0
- package/node_modules/@agentims/runtime/dist/configuration/environment.js +43 -0
- package/node_modules/@agentims/runtime/dist/configuration/executable.js +49 -0
- package/node_modules/@agentims/runtime/dist/configuration/http.js +4 -0
- package/node_modules/@agentims/runtime/dist/configuration/native-settings.js +13 -0
- package/node_modules/@agentims/runtime/dist/configuration/node-version.js +8 -0
- package/node_modules/@agentims/runtime/dist/configuration/private-state.js +115 -0
- package/node_modules/@agentims/runtime/dist/configuration/service-origin.js +48 -0
- package/node_modules/@agentims/runtime/dist/configuration/windows-command.js +14 -0
- package/node_modules/@agentims/runtime/dist/configuration/windows-security.js +13 -0
- package/node_modules/@agentims/runtime/dist/history/backup.js +45 -0
- package/node_modules/@agentims/runtime/dist/history/online.js +48 -0
- package/node_modules/@agentims/runtime/dist/history/recovery-file.js +19 -0
- package/node_modules/@agentims/runtime/dist/history/restore.js +19 -0
- package/node_modules/@agentims/runtime/dist/index.js +31 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/communication.js +66 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/embedded.js +24 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/foreground-connection.js +61 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/foreground.js +47 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/identity.js +46 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/process-priority.js +22 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/process.js +60 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/shutdown-lease.js +90 -0
- package/node_modules/@agentims/runtime/dist/lifecycle/start.js +69 -0
- package/node_modules/@agentims/runtime/dist/managed/connection.js +29 -0
- package/node_modules/@agentims/runtime/dist/managed/control.js +134 -0
- package/node_modules/@agentims/runtime/dist/managed/directory.js +19 -0
- package/node_modules/@agentims/runtime/dist/managed/errors.js +9 -0
- package/node_modules/@agentims/runtime/dist/managed/lease.js +32 -0
- package/node_modules/@agentims/runtime/dist/managed/shutdown.js +63 -0
- package/node_modules/@agentims/runtime/dist/managed/state.js +82 -0
- package/node_modules/@agentims/runtime/dist/storage/archive.js +89 -0
- package/node_modules/@agentims/runtime/dist/supervision/command.js +13 -0
- package/node_modules/@agentims/runtime/dist/supervision/launchd.js +64 -0
- package/node_modules/@agentims/runtime/dist/supervision/select.js +13 -0
- package/node_modules/@agentims/runtime/dist/supervision/service.js +4 -0
- package/node_modules/@agentims/runtime/dist/supervision/systemd.js +34 -0
- package/node_modules/@agentims/runtime/dist/supervision/windows.js +20 -0
- package/node_modules/@agentims/runtime/dist/updates/activation.js +65 -0
- package/node_modules/@agentims/runtime/dist/updates/admission.js +15 -0
- package/node_modules/@agentims/runtime/dist/updates/archive.js +45 -0
- package/node_modules/@agentims/runtime/dist/updates/binding-preflight.js +25 -0
- package/node_modules/@agentims/runtime/dist/updates/continuity.js +45 -0
- package/node_modules/@agentims/runtime/dist/updates/device-archive.js +43 -0
- package/node_modules/@agentims/runtime/dist/updates/discovery.js +91 -0
- package/node_modules/@agentims/runtime/dist/updates/download.js +66 -0
- package/node_modules/@agentims/runtime/dist/updates/embedded.js +143 -0
- package/node_modules/@agentims/runtime/dist/updates/host-continuation.js +43 -0
- package/node_modules/@agentims/runtime/dist/updates/inspection-config.js +18 -0
- package/node_modules/@agentims/runtime/dist/updates/installation-integrity.js +35 -0
- package/node_modules/@agentims/runtime/dist/updates/installation.js +134 -0
- package/node_modules/@agentims/runtime/dist/updates/ledger.js +75 -0
- package/node_modules/@agentims/runtime/dist/updates/locking.js +17 -0
- package/node_modules/@agentims/runtime/dist/updates/managed.js +271 -0
- package/node_modules/@agentims/runtime/dist/updates/manifest.js +97 -0
- package/node_modules/@agentims/runtime/dist/updates/offline.js +56 -0
- package/node_modules/@agentims/runtime/dist/updates/owner.js +14 -0
- package/node_modules/@agentims/runtime/dist/updates/pending.js +20 -0
- package/node_modules/@agentims/runtime/dist/updates/policy.js +73 -0
- package/node_modules/@agentims/runtime/dist/updates/records.js +33 -0
- package/node_modules/@agentims/runtime/dist/updates/restart.js +80 -0
- package/node_modules/@agentims/runtime/dist/updates/shutdown-owner.js +74 -0
- package/node_modules/@agentims/runtime/dist/updates/shutdown-proof.js +35 -0
- package/node_modules/@agentims/runtime/dist/updates/types.js +16 -0
- package/node_modules/@agentims/runtime/dist/updates/version.js +40 -0
- package/node_modules/@agentims/runtime/dist/updates/watch.js +87 -0
- package/node_modules/@agentims/runtime/package.json +11 -0
- package/node_modules/@agentims/sdk/dist/api/client.js +15 -0
- package/node_modules/@agentims/sdk/dist/api/embedded-options.js +1 -0
- package/node_modules/@agentims/sdk/dist/api/embedded.js +28 -0
- package/node_modules/@agentims/sdk/dist/api/errors.js +43 -0
- package/node_modules/@agentims/sdk/dist/api/facade.js +92 -0
- package/node_modules/@agentims/sdk/dist/api/json-value.js +1 -0
- package/node_modules/@agentims/sdk/dist/api/options.js +1 -0
- package/node_modules/@agentims/sdk/dist/api/request-data.js +43 -0
- package/node_modules/@agentims/sdk/dist/api/sdk-info.js +9 -0
- package/node_modules/@agentims/sdk/dist/features/account/client.js +57 -0
- package/node_modules/@agentims/sdk/dist/features/account/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/account/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/cache/client.js +40 -0
- package/node_modules/@agentims/sdk/dist/features/cache/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/cache/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/configuration/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/configuration/schema.js +8 -0
- package/node_modules/@agentims/sdk/dist/features/configuration/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/contacts/client.js +12 -0
- package/node_modules/@agentims/sdk/dist/features/contacts/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/contacts/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/client.js +54 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/matrix.js +61 -0
- package/node_modules/@agentims/sdk/dist/features/conversations/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/deliveries/client.js +41 -0
- package/node_modules/@agentims/sdk/dist/features/deliveries/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/deliveries/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/devices/client.js +36 -0
- package/node_modules/@agentims/sdk/dist/features/devices/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/devices/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/directory/client.js +36 -0
- package/node_modules/@agentims/sdk/dist/features/directory/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/directory/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/discovery/client.js +9 -0
- package/node_modules/@agentims/sdk/dist/features/discovery/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/discovery/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/drafts/client.js +16 -0
- package/node_modules/@agentims/sdk/dist/features/drafts/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/drafts/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/client.js +105 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/dehydration.js +36 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/encryption/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/events/client.js +45 -0
- package/node_modules/@agentims/sdk/dist/features/events/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/events/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/identity/client.js +77 -0
- package/node_modules/@agentims/sdk/dist/features/identity/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/identity/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/location/client.js +18 -0
- package/node_modules/@agentims/sdk/dist/features/location/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/location/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/media/client.js +34 -0
- package/node_modules/@agentims/sdk/dist/features/media/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/media/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/messages/client.js +43 -0
- package/node_modules/@agentims/sdk/dist/features/messages/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/messages/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/notifications/client.js +42 -0
- package/node_modules/@agentims/sdk/dist/features/notifications/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/notifications/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/oauth/client.js +52 -0
- package/node_modules/@agentims/sdk/dist/features/oauth/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/oauth/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/operations/client.js +16 -0
- package/node_modules/@agentims/sdk/dist/features/operations/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/operations/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/outbox/client.js +25 -0
- package/node_modules/@agentims/sdk/dist/features/outbox/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/outbox/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/pairing/client.js +48 -0
- package/node_modules/@agentims/sdk/dist/features/pairing/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/pairing/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/presence/client.js +15 -0
- package/node_modules/@agentims/sdk/dist/features/presence/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/presence/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/profiles/client.js +15 -0
- package/node_modules/@agentims/sdk/dist/features/profiles/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/profiles/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/client.js +32 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/observe.js +48 -0
- package/node_modules/@agentims/sdk/dist/features/reliability/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/rooms/client.js +76 -0
- package/node_modules/@agentims/sdk/dist/features/rooms/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/rooms/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/rtc/client.js +39 -0
- package/node_modules/@agentims/sdk/dist/features/rtc/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/rtc/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/search/client.js +31 -0
- package/node_modules/@agentims/sdk/dist/features/search/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/search/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/sync/client.js +16 -0
- package/node_modules/@agentims/sdk/dist/features/sync/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/sync/types.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/timeline/client.js +27 -0
- package/node_modules/@agentims/sdk/dist/features/timeline/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/timeline/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/features/verification/client.js +33 -0
- package/node_modules/@agentims/sdk/dist/features/verification/index.js +1 -0
- package/node_modules/@agentims/sdk/dist/features/verification/types.js +3 -0
- package/node_modules/@agentims/sdk/dist/index.js +7 -0
- package/node_modules/@agentims/sdk/dist/internal/native/binding.js +85 -0
- package/node_modules/@agentims/sdk/dist/internal/native/platform-resource.js +15 -0
- package/node_modules/@agentims/sdk/dist/internal/native/secrets-export.js +27 -0
- package/node_modules/@agentims/sdk/dist/internal/native/transport.js +92 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/codec.js +69 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/input.js +38 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/native-settings.js +48 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/operations.json +1 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/registry.js +72 -0
- package/node_modules/@agentims/sdk/dist/internal/protocol/schema.js +133 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/client.js +102 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/error-diagnostics.js +50 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/request.js +59 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/response.js +94 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/retry-after.js +21 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/stream-diagnostics.js +19 -0
- package/node_modules/@agentims/sdk/dist/internal/transport/types.js +1 -0
- package/node_modules/@agentims/sdk/package.json +8 -0
- package/package.json +31 -4
- package/release.json +746 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/** 预算必须由可信策略显式选择;小时级任务仍受 Provider 独立授权与固定总截止约束。 */
|
|
2
|
+
export const TASK_DURATION_LIMITS = Object.freeze({ min: 10, max: 21600 });
|
|
3
|
+
export class TaskValidationError extends Error {
|
|
4
|
+
code;
|
|
5
|
+
status = 400;
|
|
6
|
+
constructor(code, message) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.code = code;
|
|
9
|
+
this.name = 'TaskValidationError';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
// 只读内部知识授权集合保持独立;外部任务权限必须明确授予。
|
|
13
|
+
export const TASK_SCOPES = [
|
|
14
|
+
'task_agents.read',
|
|
15
|
+
'task_models.read',
|
|
16
|
+
'task_runs.execute',
|
|
17
|
+
'task_runs.read',
|
|
18
|
+
'task_runs.cancel',
|
|
19
|
+
];
|
|
20
|
+
const schemaTypes = new Set(['object', 'array', 'string', 'number', 'integer', 'boolean', 'null']);
|
|
21
|
+
const commonKeys = ['type', 'title', 'description', 'enum'];
|
|
22
|
+
const typedKeys = {
|
|
23
|
+
object: ['properties', 'required', 'additionalProperties'],
|
|
24
|
+
array: ['items', 'minItems', 'maxItems'],
|
|
25
|
+
string: ['minLength', 'maxLength'],
|
|
26
|
+
number: ['minimum', 'maximum'],
|
|
27
|
+
integer: ['minimum', 'maximum'],
|
|
28
|
+
boolean: [],
|
|
29
|
+
null: [],
|
|
30
|
+
};
|
|
31
|
+
// 所有边界先按大小/复杂度拒绝;不解析远程 schema,不执行正则或模板表达式。
|
|
32
|
+
function object(value) {
|
|
33
|
+
return (value !== null &&
|
|
34
|
+
typeof value === 'object' &&
|
|
35
|
+
!Array.isArray(value) &&
|
|
36
|
+
(Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null));
|
|
37
|
+
}
|
|
38
|
+
function fail(path) {
|
|
39
|
+
throw new TaskValidationError('INVALID_TASK_CONTRACT', `Invalid task contract at ${path}`);
|
|
40
|
+
}
|
|
41
|
+
function checkSchema(value, path, depth, budget) {
|
|
42
|
+
if (++budget.nodes > 512 ||
|
|
43
|
+
depth > 12 ||
|
|
44
|
+
!object(value) ||
|
|
45
|
+
typeof value.type !== 'string' ||
|
|
46
|
+
!schemaTypes.has(value.type))
|
|
47
|
+
fail(path);
|
|
48
|
+
const allowed = new Set([...commonKeys, ...typedKeys[value.type]]);
|
|
49
|
+
if (Object.keys(value).some((key) => !allowed.has(key)))
|
|
50
|
+
fail(path);
|
|
51
|
+
for (const key of ['title', 'description'])
|
|
52
|
+
if (value[key] !== undefined && (typeof value[key] !== 'string' || value[key].length > 2048))
|
|
53
|
+
fail(`${path}.${key}`);
|
|
54
|
+
if (value.enum !== undefined &&
|
|
55
|
+
(!Array.isArray(value.enum) ||
|
|
56
|
+
value.enum.length < 1 ||
|
|
57
|
+
value.enum.length > 100 ||
|
|
58
|
+
value.enum.some((v) => ![null, 'string', 'number', 'boolean'].includes(v === null ? null : typeof v) ||
|
|
59
|
+
(typeof v === 'number' && !Number.isFinite(v)))))
|
|
60
|
+
fail(`${path}.enum`);
|
|
61
|
+
if (Array.isArray(value.enum) &&
|
|
62
|
+
value.enum.some((v) => value.type === 'null'
|
|
63
|
+
? v !== null
|
|
64
|
+
: value.type === 'integer'
|
|
65
|
+
? !Number.isSafeInteger(v)
|
|
66
|
+
: typeof v !== value.type))
|
|
67
|
+
fail(`${path}.enum`);
|
|
68
|
+
for (const [min, max] of [
|
|
69
|
+
['minLength', 'maxLength'],
|
|
70
|
+
['minItems', 'maxItems'],
|
|
71
|
+
['minimum', 'maximum'],
|
|
72
|
+
]) {
|
|
73
|
+
for (const key of [min, max])
|
|
74
|
+
if (value[key] !== undefined &&
|
|
75
|
+
(typeof value[key] !== 'number' ||
|
|
76
|
+
!Number.isFinite(value[key]) ||
|
|
77
|
+
(key !== 'minimum' &&
|
|
78
|
+
key !== 'maximum' &&
|
|
79
|
+
(!Number.isSafeInteger(value[key]) || value[key] < 0))))
|
|
80
|
+
fail(`${path}.${key}`);
|
|
81
|
+
if (typeof value[min] === 'number' && typeof value[max] === 'number' && value[min] > value[max])
|
|
82
|
+
fail(path);
|
|
83
|
+
}
|
|
84
|
+
if (value.type === 'object') {
|
|
85
|
+
if (!object(value.properties) || Object.keys(value.properties).length > 100)
|
|
86
|
+
fail(`${path}.properties`);
|
|
87
|
+
if (value.additionalProperties !== undefined && typeof value.additionalProperties !== 'boolean')
|
|
88
|
+
fail(`${path}.additionalProperties`);
|
|
89
|
+
for (const [key, child] of Object.entries(value.properties)) {
|
|
90
|
+
if (!key || key.length > 128 || ['__proto__', 'prototype', 'constructor'].includes(key))
|
|
91
|
+
fail(`${path}.properties`);
|
|
92
|
+
checkSchema(child, `${path}.properties.${key}`, depth + 1, budget);
|
|
93
|
+
}
|
|
94
|
+
if (value.required !== undefined &&
|
|
95
|
+
(!Array.isArray(value.required) ||
|
|
96
|
+
new Set(value.required).size !== value.required.length ||
|
|
97
|
+
value.required.some((key) => typeof key !== 'string' || !Object.hasOwn(value.properties, key))))
|
|
98
|
+
fail(`${path}.required`);
|
|
99
|
+
}
|
|
100
|
+
if (value.type === 'array')
|
|
101
|
+
checkSchema(value.items, `${path}.items`, depth + 1, budget);
|
|
102
|
+
}
|
|
103
|
+
// 解析返回独立副本,调用方后续修改传入对象不能改变已校验的版本材料。
|
|
104
|
+
export function parseTaskContract(value) {
|
|
105
|
+
if (value == null)
|
|
106
|
+
return null;
|
|
107
|
+
if (!object(value) ||
|
|
108
|
+
value.contractVersion !== 1 ||
|
|
109
|
+
!['text', 'json'].includes(String(value.outputMode)) ||
|
|
110
|
+
Object.keys(value).some((key) => ![
|
|
111
|
+
'contractVersion',
|
|
112
|
+
'inputSchema',
|
|
113
|
+
'outputMode',
|
|
114
|
+
...(value.outputMode === 'json' ? ['outputSchema'] : []),
|
|
115
|
+
].includes(key)))
|
|
116
|
+
fail('root');
|
|
117
|
+
const budget = { nodes: 0 };
|
|
118
|
+
checkSchema(value.inputSchema, 'inputSchema', 0, budget);
|
|
119
|
+
if (value.inputSchema.type !== 'object')
|
|
120
|
+
fail('inputSchema.type');
|
|
121
|
+
if (value.outputMode === 'json') {
|
|
122
|
+
checkSchema(value.outputSchema, 'outputSchema', 0, budget);
|
|
123
|
+
if (value.outputSchema.type !== 'object')
|
|
124
|
+
fail('outputSchema.type');
|
|
125
|
+
}
|
|
126
|
+
const json = JSON.stringify(value);
|
|
127
|
+
if (json.length > 65536)
|
|
128
|
+
fail('size');
|
|
129
|
+
return JSON.parse(json);
|
|
130
|
+
}
|
|
131
|
+
// 原生结构化输出仍须校验;失败路径仅包含字段位置,不把业务值写入错误日志。
|
|
132
|
+
export function validateTaskValue(schema, value) {
|
|
133
|
+
let nodes = 0;
|
|
134
|
+
const invalid = (path) => {
|
|
135
|
+
throw new TaskValidationError('INVALID_TASK_INPUT', `Invalid task value at ${path}`);
|
|
136
|
+
};
|
|
137
|
+
const jsonCheck = (v, depth) => {
|
|
138
|
+
if (++nodes > 20000 || depth > 24)
|
|
139
|
+
invalid('size');
|
|
140
|
+
if (v === null || typeof v === 'string' || typeof v === 'boolean')
|
|
141
|
+
return;
|
|
142
|
+
if (typeof v === 'number' && Number.isFinite(v))
|
|
143
|
+
return;
|
|
144
|
+
if (Array.isArray(v)) {
|
|
145
|
+
for (const item of v)
|
|
146
|
+
jsonCheck(item, depth + 1);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (object(v)) {
|
|
150
|
+
for (const [key, item] of Object.entries(v)) {
|
|
151
|
+
if (['__proto__', 'constructor', 'prototype'].includes(key))
|
|
152
|
+
invalid('key');
|
|
153
|
+
jsonCheck(item, depth + 1);
|
|
154
|
+
}
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
invalid('json');
|
|
158
|
+
};
|
|
159
|
+
jsonCheck(value, 0);
|
|
160
|
+
if (JSON.stringify(value).length > 100000)
|
|
161
|
+
invalid('size');
|
|
162
|
+
const visit = (s, v, path) => {
|
|
163
|
+
const typeOk = s.type === 'null'
|
|
164
|
+
? v === null
|
|
165
|
+
: s.type === 'object'
|
|
166
|
+
? object(v)
|
|
167
|
+
: s.type === 'array'
|
|
168
|
+
? Array.isArray(v)
|
|
169
|
+
: s.type === 'integer'
|
|
170
|
+
? Number.isSafeInteger(v)
|
|
171
|
+
: typeof v === s.type;
|
|
172
|
+
if (!typeOk || (s.enum && !s.enum.some((item) => item === v)))
|
|
173
|
+
invalid(path);
|
|
174
|
+
if (typeof v === 'string') {
|
|
175
|
+
const length = [...v].length;
|
|
176
|
+
if (length < (s.minLength ?? 0) || length > (s.maxLength ?? Infinity))
|
|
177
|
+
invalid(path);
|
|
178
|
+
}
|
|
179
|
+
if (typeof v === 'number' && (v < (s.minimum ?? -Infinity) || v > (s.maximum ?? Infinity)))
|
|
180
|
+
invalid(path);
|
|
181
|
+
if (Array.isArray(v)) {
|
|
182
|
+
if (v.length < (s.minItems ?? 0) || v.length > (s.maxItems ?? Infinity))
|
|
183
|
+
invalid(path);
|
|
184
|
+
v.forEach((item, i) => visit(s.items, item, `${path}[${i}]`));
|
|
185
|
+
}
|
|
186
|
+
if (object(v)) {
|
|
187
|
+
for (const key of s.required ?? [])
|
|
188
|
+
if (!Object.hasOwn(v, key))
|
|
189
|
+
invalid(`${path}.${key}`);
|
|
190
|
+
for (const [key, item] of Object.entries(v)) {
|
|
191
|
+
const child = s.properties?.[key];
|
|
192
|
+
if (child)
|
|
193
|
+
visit(child, item, `${path}.${key}`);
|
|
194
|
+
else if (s.additionalProperties !== true)
|
|
195
|
+
invalid(`${path}.${key}`);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
visit(schema, value, 'input');
|
|
200
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { API_ACTIONS } from '../api-credentials.js';
|
|
2
|
+
const ref = { type: 'string', pattern: '^[A-Za-z0-9_-]{1,160}$' };
|
|
3
|
+
const name = { type: 'string', minLength: 1, maxLength: 128 };
|
|
4
|
+
const key = { type: 'string', pattern: '^[a-z0-9][a-z0-9_-]{0,63}$' };
|
|
5
|
+
const at = { type: 'string', format: 'date-time' };
|
|
6
|
+
const role = { enum: ['owner', 'admin', 'member'] };
|
|
7
|
+
function obj(properties) {
|
|
8
|
+
return {
|
|
9
|
+
type: 'object',
|
|
10
|
+
additionalProperties: false,
|
|
11
|
+
properties,
|
|
12
|
+
required: Object.keys(properties),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
const resource = {
|
|
16
|
+
oneOf: [
|
|
17
|
+
obj({
|
|
18
|
+
kind: { const: 'agent-version' },
|
|
19
|
+
workspaceKey: key,
|
|
20
|
+
projectKey: key,
|
|
21
|
+
agentKey: key,
|
|
22
|
+
agentVersion: { type: 'integer', minimum: 1 },
|
|
23
|
+
}),
|
|
24
|
+
obj({
|
|
25
|
+
kind: { const: 'agent-installation' },
|
|
26
|
+
workspaceKey: key,
|
|
27
|
+
projectKey: key,
|
|
28
|
+
installationId: ref,
|
|
29
|
+
}),
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
const grants = {
|
|
33
|
+
type: 'array',
|
|
34
|
+
minItems: 1,
|
|
35
|
+
maxItems: 64,
|
|
36
|
+
items: obj({
|
|
37
|
+
resource,
|
|
38
|
+
actions: {
|
|
39
|
+
type: 'array',
|
|
40
|
+
minItems: 1,
|
|
41
|
+
maxItems: API_ACTIONS.length,
|
|
42
|
+
uniqueItems: true,
|
|
43
|
+
items: { enum: [...API_ACTIONS] },
|
|
44
|
+
},
|
|
45
|
+
}),
|
|
46
|
+
};
|
|
47
|
+
export function accessInputSchema(action) {
|
|
48
|
+
const fields = {
|
|
49
|
+
'tenant.access.requests.get': { requestId: { type: 'string', format: 'uuid' } },
|
|
50
|
+
'tenant.credentials.requests.get': { requestId: { type: 'string', format: 'uuid' } },
|
|
51
|
+
'tenant.credentials.get': { credentialId: ref },
|
|
52
|
+
'tenant.credentials.principals.get': { servicePrincipalId: ref },
|
|
53
|
+
'tenant.access.invitations.create': {
|
|
54
|
+
email: { type: 'string', format: 'email', maxLength: 254 },
|
|
55
|
+
role,
|
|
56
|
+
workspaceKeys: { type: 'array', minItems: 1, maxItems: 16, uniqueItems: true, items: key },
|
|
57
|
+
expiresInDays: { type: 'integer', minimum: 1, maximum: 30 },
|
|
58
|
+
},
|
|
59
|
+
'tenant.access.invitations.revoke': { invitationId: ref },
|
|
60
|
+
'tenant.access.members.update': { membershipId: ref, role, enabled: { type: 'boolean' } },
|
|
61
|
+
'tenant.access.workspace-members.add': { tenantMembershipId: ref },
|
|
62
|
+
'tenant.access.workspace-members.update': { membershipId: ref, enabled: { type: 'boolean' } },
|
|
63
|
+
'tenant.credentials.principals.create': { displayName: name },
|
|
64
|
+
'tenant.credentials.principals.disable': { servicePrincipalId: ref },
|
|
65
|
+
'tenant.credentials.issue': {
|
|
66
|
+
servicePrincipalId: ref,
|
|
67
|
+
displayName: name,
|
|
68
|
+
grants,
|
|
69
|
+
expiresAt: at,
|
|
70
|
+
},
|
|
71
|
+
'tenant.credentials.update': { credentialId: ref, displayName: name, grants },
|
|
72
|
+
'tenant.credentials.rotate': {
|
|
73
|
+
credentialId: ref,
|
|
74
|
+
expiresAt: at,
|
|
75
|
+
overlapSeconds: { type: 'integer', minimum: 0, maximum: 86400 },
|
|
76
|
+
},
|
|
77
|
+
'tenant.credentials.revoke': { credentialId: ref },
|
|
78
|
+
};
|
|
79
|
+
const schema = obj(fields[action] ?? {});
|
|
80
|
+
return action.startsWith('tenant.access.workspace-members.')
|
|
81
|
+
? { ...schema, properties: { ...fields[action], workspaceKey: key } }
|
|
82
|
+
: schema;
|
|
83
|
+
}
|
|
84
|
+
const member = obj({
|
|
85
|
+
membershipId: ref,
|
|
86
|
+
principal: obj({ issuer: { type: 'string' }, subject: { type: 'string' } }),
|
|
87
|
+
enabled: { type: 'boolean' },
|
|
88
|
+
});
|
|
89
|
+
const tenantMember = {
|
|
90
|
+
...member,
|
|
91
|
+
required: ['membershipId', 'principal', 'enabled', 'role'],
|
|
92
|
+
properties: { ...member.properties, role },
|
|
93
|
+
};
|
|
94
|
+
const invitation = obj({
|
|
95
|
+
invitationId: ref,
|
|
96
|
+
intendedEmail: { type: 'string' },
|
|
97
|
+
role,
|
|
98
|
+
status: { enum: ['pending', 'accepted', 'revoked', 'expired'] },
|
|
99
|
+
workspaceKeys: { type: 'array', maxItems: 16, items: key },
|
|
100
|
+
expiresAt: at,
|
|
101
|
+
createdAt: at,
|
|
102
|
+
});
|
|
103
|
+
const credential = obj({
|
|
104
|
+
credentialId: ref,
|
|
105
|
+
servicePrincipalId: ref,
|
|
106
|
+
displayName: name,
|
|
107
|
+
hint: { type: 'string' },
|
|
108
|
+
status: { enum: ['active', 'revoked'] },
|
|
109
|
+
expired: { type: 'boolean' },
|
|
110
|
+
revision: { type: 'integer', minimum: 1 },
|
|
111
|
+
createdAt: at,
|
|
112
|
+
expiresAt: at,
|
|
113
|
+
grants,
|
|
114
|
+
});
|
|
115
|
+
const principal = obj({
|
|
116
|
+
servicePrincipalId: ref,
|
|
117
|
+
displayName: name,
|
|
118
|
+
enabled: { type: 'boolean' },
|
|
119
|
+
revision: { type: 'integer', minimum: 1 },
|
|
120
|
+
createdAt: at,
|
|
121
|
+
});
|
|
122
|
+
const receipt = obj({
|
|
123
|
+
requestId: { type: 'string', format: 'uuid' },
|
|
124
|
+
action: { type: 'string' },
|
|
125
|
+
resourceId: ref,
|
|
126
|
+
secretAvailable: { const: false },
|
|
127
|
+
});
|
|
128
|
+
export const TENANT_ACCESS_OUTPUT_SCHEMAS = {
|
|
129
|
+
'tenant.access.members.list': tenantMember,
|
|
130
|
+
'tenant.access.invitations.list': invitation,
|
|
131
|
+
'tenant.access.requests.get': receipt,
|
|
132
|
+
'tenant.access.workspace-members.list': member,
|
|
133
|
+
'tenant.credentials.list': credential,
|
|
134
|
+
'tenant.credentials.get': credential,
|
|
135
|
+
'tenant.credentials.catalog.get': obj({
|
|
136
|
+
actions: { type: 'array', items: { enum: [...API_ACTIONS] } },
|
|
137
|
+
resources: {
|
|
138
|
+
type: 'array',
|
|
139
|
+
maxItems: 100,
|
|
140
|
+
items: obj({
|
|
141
|
+
resource,
|
|
142
|
+
allowedActions: { type: 'array', items: { enum: [...API_ACTIONS] } },
|
|
143
|
+
}),
|
|
144
|
+
},
|
|
145
|
+
}),
|
|
146
|
+
'tenant.credentials.principals.list': principal,
|
|
147
|
+
'tenant.credentials.principals.get': principal,
|
|
148
|
+
'tenant.credentials.requests.get': receipt,
|
|
149
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TENANT_ACCESS_READ_ACTIONS, TENANT_ACCESS_PAGE_ACTIONS } from './access.js';
|
|
2
|
+
import { accessInputSchema } from './access-schemas.js';
|
|
3
|
+
export const TENANT_ACCESS_VIEW_SCHEMAS = TENANT_ACCESS_READ_ACTIONS.map((action) => ({
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['action', 'input'],
|
|
7
|
+
properties: {
|
|
8
|
+
action: { const: action },
|
|
9
|
+
input: accessInputSchema(action),
|
|
10
|
+
...(TENANT_ACCESS_PAGE_ACTIONS.some((a) => a === action)
|
|
11
|
+
? {
|
|
12
|
+
limit: { type: 'integer', minimum: 1, maximum: 100 },
|
|
13
|
+
cursor: { type: 'string', pattern: '^[A-Za-z0-9_-]{1,2048}$' },
|
|
14
|
+
}
|
|
15
|
+
: {}),
|
|
16
|
+
},
|
|
17
|
+
}));
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { isBusinessKey } from '../contracts/base.js';
|
|
2
|
+
import { parseApiGrants, } from '../api-credentials.js';
|
|
3
|
+
import { boundedTenantJson, tenantInvalid, tenantRecord } from './json.js';
|
|
4
|
+
export const TENANT_ACCESS_READ_ACTIONS = [
|
|
5
|
+
'tenant.access.members.list',
|
|
6
|
+
'tenant.access.invitations.list',
|
|
7
|
+
'tenant.access.requests.get',
|
|
8
|
+
'tenant.access.workspace-members.list',
|
|
9
|
+
'tenant.credentials.list',
|
|
10
|
+
'tenant.credentials.get',
|
|
11
|
+
'tenant.credentials.catalog.get',
|
|
12
|
+
'tenant.credentials.principals.list',
|
|
13
|
+
'tenant.credentials.principals.get',
|
|
14
|
+
'tenant.credentials.requests.get',
|
|
15
|
+
];
|
|
16
|
+
export const TENANT_ACCESS_WRITE_ACTIONS = [
|
|
17
|
+
'tenant.access.invitations.create',
|
|
18
|
+
'tenant.access.invitations.revoke',
|
|
19
|
+
'tenant.access.members.update',
|
|
20
|
+
'tenant.access.workspace-members.add',
|
|
21
|
+
'tenant.access.workspace-members.update',
|
|
22
|
+
'tenant.credentials.principals.create',
|
|
23
|
+
'tenant.credentials.principals.disable',
|
|
24
|
+
'tenant.credentials.issue',
|
|
25
|
+
'tenant.credentials.update',
|
|
26
|
+
'tenant.credentials.rotate',
|
|
27
|
+
'tenant.credentials.revoke',
|
|
28
|
+
];
|
|
29
|
+
export const TENANT_ACCESS_PAGE_ACTIONS = [
|
|
30
|
+
'tenant.access.members.list',
|
|
31
|
+
'tenant.access.invitations.list',
|
|
32
|
+
'tenant.access.workspace-members.list',
|
|
33
|
+
'tenant.credentials.list',
|
|
34
|
+
'tenant.credentials.principals.list',
|
|
35
|
+
];
|
|
36
|
+
export const TENANT_SECRET_ACTIONS = [
|
|
37
|
+
'tenant.access.invitations.create',
|
|
38
|
+
'tenant.credentials.issue',
|
|
39
|
+
'tenant.credentials.rotate',
|
|
40
|
+
];
|
|
41
|
+
/** 普通名单、管理邀请和 Workspace 名单保持各自原角色准入,不能借一个 read 绕过管理员。 */
|
|
42
|
+
export function tenantAccessReadScope(action) {
|
|
43
|
+
return action.startsWith('tenant.credentials.')
|
|
44
|
+
? 'tenant.credentials.read'
|
|
45
|
+
: action.startsWith('tenant.access.invitations.')
|
|
46
|
+
? 'tenant.access.invitations.read'
|
|
47
|
+
: action.startsWith('tenant.access.workspace-members.')
|
|
48
|
+
? 'tenant.access.workspace-members.read'
|
|
49
|
+
: 'tenant.access.read';
|
|
50
|
+
}
|
|
51
|
+
export function parseTenantSecretDeliveryInput(raw) {
|
|
52
|
+
const value = tenantRecord(boundedTenantJson(raw), ['kind']);
|
|
53
|
+
if (value.kind !== 'secret-delivery')
|
|
54
|
+
return tenantInvalid();
|
|
55
|
+
return { kind: 'secret-delivery' };
|
|
56
|
+
}
|
|
57
|
+
const ref = (v) => typeof v === 'string' && /^[A-Za-z0-9_-]{1,160}$/.test(v);
|
|
58
|
+
const role = (v) => ['owner', 'admin', 'member'].includes(String(v));
|
|
59
|
+
export function parseTenantAccessInput(action, raw) {
|
|
60
|
+
if (![...TENANT_ACCESS_READ_ACTIONS, ...TENANT_ACCESS_WRITE_ACTIONS].some((a) => a === action))
|
|
61
|
+
return tenantInvalid();
|
|
62
|
+
const fields = {
|
|
63
|
+
'tenant.access.requests.get': ['requestId'],
|
|
64
|
+
'tenant.credentials.requests.get': ['requestId'],
|
|
65
|
+
'tenant.credentials.get': ['credentialId'],
|
|
66
|
+
'tenant.credentials.principals.get': ['servicePrincipalId'],
|
|
67
|
+
'tenant.access.invitations.create': ['email', 'role', 'workspaceKeys', 'expiresInDays'],
|
|
68
|
+
'tenant.access.invitations.revoke': ['invitationId'],
|
|
69
|
+
'tenant.access.members.update': ['membershipId', 'role', 'enabled'],
|
|
70
|
+
'tenant.access.workspace-members.add': ['tenantMembershipId'],
|
|
71
|
+
'tenant.access.workspace-members.update': ['membershipId', 'enabled'],
|
|
72
|
+
'tenant.credentials.principals.create': ['displayName'],
|
|
73
|
+
'tenant.credentials.principals.disable': ['servicePrincipalId'],
|
|
74
|
+
'tenant.credentials.issue': ['servicePrincipalId', 'displayName', 'grants', 'expiresAt'],
|
|
75
|
+
'tenant.credentials.update': ['credentialId', 'displayName', 'grants'],
|
|
76
|
+
'tenant.credentials.rotate': ['credentialId', 'expiresAt', 'overlapSeconds'],
|
|
77
|
+
'tenant.credentials.revoke': ['credentialId'],
|
|
78
|
+
};
|
|
79
|
+
const v = tenantRecord(boundedTenantJson(raw), fields[action] ?? [], action.startsWith('tenant.access.workspace-members.') ? ['workspaceKey'] : []);
|
|
80
|
+
if (v.workspaceKey !== undefined && !isBusinessKey(v.workspaceKey))
|
|
81
|
+
return tenantInvalid();
|
|
82
|
+
for (const key of [
|
|
83
|
+
'credentialId',
|
|
84
|
+
'servicePrincipalId',
|
|
85
|
+
'membershipId',
|
|
86
|
+
'invitationId',
|
|
87
|
+
'tenantMembershipId',
|
|
88
|
+
])
|
|
89
|
+
if (v[key] !== undefined && !ref(v[key]))
|
|
90
|
+
return tenantInvalid();
|
|
91
|
+
if (v.requestId !== undefined &&
|
|
92
|
+
(typeof v.requestId !== 'string' ||
|
|
93
|
+
!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(v.requestId)))
|
|
94
|
+
return tenantInvalid();
|
|
95
|
+
if (v.displayName !== undefined &&
|
|
96
|
+
(typeof v.displayName !== 'string' || !v.displayName.trim() || v.displayName.length > 128))
|
|
97
|
+
return tenantInvalid();
|
|
98
|
+
if (v.role !== undefined && !role(v.role))
|
|
99
|
+
return tenantInvalid();
|
|
100
|
+
if (v.enabled !== undefined && typeof v.enabled !== 'boolean')
|
|
101
|
+
return tenantInvalid();
|
|
102
|
+
if (v.email !== undefined &&
|
|
103
|
+
(typeof v.email !== 'string' ||
|
|
104
|
+
v.email.length > 254 ||
|
|
105
|
+
!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v.email)))
|
|
106
|
+
return tenantInvalid();
|
|
107
|
+
if (v.workspaceKeys !== undefined &&
|
|
108
|
+
(!Array.isArray(v.workspaceKeys) ||
|
|
109
|
+
!v.workspaceKeys.length ||
|
|
110
|
+
v.workspaceKeys.length > 16 ||
|
|
111
|
+
!v.workspaceKeys.every(isBusinessKey) ||
|
|
112
|
+
new Set(v.workspaceKeys).size !== v.workspaceKeys.length))
|
|
113
|
+
return tenantInvalid();
|
|
114
|
+
if (v.expiresInDays !== undefined &&
|
|
115
|
+
(!Number.isSafeInteger(v.expiresInDays) ||
|
|
116
|
+
Number(v.expiresInDays) < 1 ||
|
|
117
|
+
Number(v.expiresInDays) > 30))
|
|
118
|
+
return tenantInvalid();
|
|
119
|
+
if (v.overlapSeconds !== undefined &&
|
|
120
|
+
(!Number.isSafeInteger(v.overlapSeconds) ||
|
|
121
|
+
Number(v.overlapSeconds) < 0 ||
|
|
122
|
+
Number(v.overlapSeconds) > 86400))
|
|
123
|
+
return tenantInvalid();
|
|
124
|
+
if (v.expiresAt !== undefined &&
|
|
125
|
+
(typeof v.expiresAt !== 'string' ||
|
|
126
|
+
!/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d{3})?Z$/.test(v.expiresAt) ||
|
|
127
|
+
!Number.isFinite(Date.parse(v.expiresAt))))
|
|
128
|
+
return tenantInvalid();
|
|
129
|
+
if (v.grants !== undefined)
|
|
130
|
+
parseApiGrants(v.grants);
|
|
131
|
+
return v;
|
|
132
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { tenantChoice } from './json.js';
|
|
2
|
+
import { TENANT_ACCESS_READ_ACTIONS, TENANT_ACCESS_WRITE_ACTIONS } from './access.js';
|
|
3
|
+
import { TENANT_MARKETPLACE_ACTIONS } from './marketplaces.js';
|
|
4
|
+
import { TENANT_OUTCOME_READ_ACTIONS } from './outcomes.js';
|
|
5
|
+
/** 只声明已批准切片的合同名称;实际可发现能力仍由已装配的后端 handler 决定。 */
|
|
6
|
+
export const TENANT_READ_ACTIONS = [
|
|
7
|
+
'tenant.conversations.work.events',
|
|
8
|
+
...TENANT_OUTCOME_READ_ACTIONS,
|
|
9
|
+
'tenant.usage.read',
|
|
10
|
+
'tenant.settings.get',
|
|
11
|
+
...TENANT_MARKETPLACE_ACTIONS,
|
|
12
|
+
...TENANT_ACCESS_READ_ACTIONS,
|
|
13
|
+
'tenant.schedules.list',
|
|
14
|
+
'tenant.schedules.get',
|
|
15
|
+
'tenant.schedules.catalog.get',
|
|
16
|
+
'tenant.schedules.preview',
|
|
17
|
+
'tenant.schedules.occurrences.list',
|
|
18
|
+
'tenant.schedules.occurrences.run.get',
|
|
19
|
+
'tenant.installations.catalog.get',
|
|
20
|
+
'tenant.installations.templates.list',
|
|
21
|
+
'tenant.installations.list',
|
|
22
|
+
'tenant.installations.get',
|
|
23
|
+
'tenant.installations.readiness.get',
|
|
24
|
+
'tenant.installations.revisions.list',
|
|
25
|
+
'tenant.installations.operations.get',
|
|
26
|
+
'tenant.installations.runs.list',
|
|
27
|
+
'tenant.installations.runs.get',
|
|
28
|
+
'tenant.installations.runs.events',
|
|
29
|
+
'tenant.installations.runs.recover',
|
|
30
|
+
'tenant.live.sessions.get',
|
|
31
|
+
'tenant.live.tasks.get',
|
|
32
|
+
'tenant.tasks.agents.list',
|
|
33
|
+
'tenant.tasks.agents.get',
|
|
34
|
+
'tenant.tasks.models.list',
|
|
35
|
+
'tenant.tasks.runs.list',
|
|
36
|
+
'tenant.tasks.runs.get',
|
|
37
|
+
'tenant.tasks.runs.events',
|
|
38
|
+
'tenant.tasks.work.changes',
|
|
39
|
+
'tenant.tasks.work.materials.get',
|
|
40
|
+
'tenant.tasks.work.materials.read',
|
|
41
|
+
'tenant.tasks.runs.recover',
|
|
42
|
+
'tenant.deployments.catalog.get',
|
|
43
|
+
'tenant.widgets.list',
|
|
44
|
+
'tenant.widgets.get',
|
|
45
|
+
'tenant.widgets.readiness.get',
|
|
46
|
+
'tenant.deliveries.list',
|
|
47
|
+
'tenant.deliveries.get',
|
|
48
|
+
'tenant.workspaces.list',
|
|
49
|
+
'tenant.workspaces.get',
|
|
50
|
+
'tenant.projects.shared.list',
|
|
51
|
+
'tenant.agents.workflow.list',
|
|
52
|
+
'tenant.versions.knowledge.list',
|
|
53
|
+
'tenant.versions.knowledge.read',
|
|
54
|
+
'tenant.knowledge.programs.list',
|
|
55
|
+
'tenant.knowledge.programs.get',
|
|
56
|
+
'tenant.knowledge.programs.validate',
|
|
57
|
+
'tenant.knowledge.manifests.list',
|
|
58
|
+
'tenant.knowledge.manifests.get',
|
|
59
|
+
'tenant.knowledge.bindings.resolve',
|
|
60
|
+
'tenant.knowledge.organization.get',
|
|
61
|
+
'tenant.versions.knowledge.get',
|
|
62
|
+
'tenant.capabilities.list',
|
|
63
|
+
'tenant.capabilities.get',
|
|
64
|
+
'tenant.projects.list',
|
|
65
|
+
'tenant.projects.get',
|
|
66
|
+
'tenant.agents.list',
|
|
67
|
+
'tenant.agents.get',
|
|
68
|
+
'tenant.integrations.list',
|
|
69
|
+
'tenant.integrations.get',
|
|
70
|
+
'tenant.integrations.revisions.list',
|
|
71
|
+
'tenant.integrations.revisions.get',
|
|
72
|
+
'tenant.integrations.connections.list',
|
|
73
|
+
// 公共目录公布当前来源授权和原项目绑定。
|
|
74
|
+
'tenant.integrations.event-sources.list',
|
|
75
|
+
'tenant.integrations.oauth.clients.get',
|
|
76
|
+
'tenant.integrations.oauth.status',
|
|
77
|
+
'tenant.integrations.readiness.get',
|
|
78
|
+
'tenant.versions.list',
|
|
79
|
+
'tenant.versions.get',
|
|
80
|
+
'tenant.versions.diff',
|
|
81
|
+
'tenant.deployments.list',
|
|
82
|
+
'tenant.deployments.get',
|
|
83
|
+
'tenant.deployments.status',
|
|
84
|
+
'tenant.knowledge.list',
|
|
85
|
+
'tenant.knowledge.search',
|
|
86
|
+
'tenant.knowledge.read',
|
|
87
|
+
'tenant.knowledge.sources.list',
|
|
88
|
+
'tenant.knowledge.sources.get',
|
|
89
|
+
'tenant.knowledge.versions.list',
|
|
90
|
+
'tenant.knowledge.versions.get',
|
|
91
|
+
'tenant.knowledge.receipts.get',
|
|
92
|
+
'tenant.operations.list',
|
|
93
|
+
'tenant.operations.get',
|
|
94
|
+
'tenant.authorizations.status',
|
|
95
|
+
'tenant.views.get',
|
|
96
|
+
'tenant.replies.get',
|
|
97
|
+
];
|
|
98
|
+
export const TENANT_COMMAND_ACTIONS = [
|
|
99
|
+
'tenant.conversations.work.subscriptions.update',
|
|
100
|
+
'tenant.tasks.work.materials.capture',
|
|
101
|
+
'tenant.outcomes.configure',
|
|
102
|
+
'tenant.settings.update',
|
|
103
|
+
...TENANT_ACCESS_WRITE_ACTIONS,
|
|
104
|
+
'tenant.schedules.save',
|
|
105
|
+
'tenant.schedules.enable',
|
|
106
|
+
'tenant.schedules.pause',
|
|
107
|
+
'tenant.schedules.occurrences.reconcile',
|
|
108
|
+
'tenant.installations.install',
|
|
109
|
+
'tenant.installations.configure',
|
|
110
|
+
'tenant.installations.validate',
|
|
111
|
+
'tenant.installations.upgrade',
|
|
112
|
+
'tenant.installations.rollback',
|
|
113
|
+
'tenant.installations.enable',
|
|
114
|
+
'tenant.installations.disable',
|
|
115
|
+
'tenant.installations.uninstall',
|
|
116
|
+
'tenant.installations.execute',
|
|
117
|
+
'tenant.installations.runs.rerun',
|
|
118
|
+
'tenant.installations.runs.cancel',
|
|
119
|
+
'tenant.tasks.runs.execute',
|
|
120
|
+
'tenant.tasks.runs.cancel',
|
|
121
|
+
'tenant.tasks.runs.rerun',
|
|
122
|
+
'tenant.widgets.create',
|
|
123
|
+
'tenant.widgets.update',
|
|
124
|
+
'tenant.deliveries.request',
|
|
125
|
+
'tenant.workspaces.update',
|
|
126
|
+
'tenant.knowledge.programs.create',
|
|
127
|
+
'tenant.knowledge.programs.update',
|
|
128
|
+
'tenant.knowledge.programs.publish',
|
|
129
|
+
'tenant.knowledge.manifests.import',
|
|
130
|
+
'tenant.knowledge.manifests.review',
|
|
131
|
+
'tenant.knowledge.organization.favorites.set',
|
|
132
|
+
'tenant.knowledge.organization.recent.record',
|
|
133
|
+
'tenant.knowledge.organization.filters.create',
|
|
134
|
+
'tenant.knowledge.organization.filters.delete',
|
|
135
|
+
'tenant.projects.create',
|
|
136
|
+
'tenant.knowledge.sources.create',
|
|
137
|
+
'tenant.knowledge.sources.update',
|
|
138
|
+
'tenant.knowledge.sources.retire',
|
|
139
|
+
'tenant.knowledge.sources.review',
|
|
140
|
+
'tenant.knowledge.catalog.update',
|
|
141
|
+
'tenant.knowledge.versions.publish',
|
|
142
|
+
'tenant.knowledge.attachments.upload',
|
|
143
|
+
'tenant.projects.update',
|
|
144
|
+
'tenant.agents.create',
|
|
145
|
+
'tenant.agents.update',
|
|
146
|
+
'tenant.integrations.create',
|
|
147
|
+
'tenant.integrations.update',
|
|
148
|
+
'tenant.integrations.uninstall',
|
|
149
|
+
'tenant.integrations.reinstall',
|
|
150
|
+
'tenant.integrations.event-sources.bind',
|
|
151
|
+
'tenant.integrations.oauth.clients.configure',
|
|
152
|
+
'tenant.integrations.oauth.clients.rotate',
|
|
153
|
+
'tenant.integrations.oauth.clients.clear',
|
|
154
|
+
'tenant.integrations.oauth.start',
|
|
155
|
+
'tenant.integrations.oauth.disconnect',
|
|
156
|
+
'tenant.versions.preview',
|
|
157
|
+
'tenant.versions.publish',
|
|
158
|
+
'tenant.versions.test',
|
|
159
|
+
'tenant.deployments.prepare',
|
|
160
|
+
'tenant.deployments.preview-activation',
|
|
161
|
+
'tenant.deployments.activate',
|
|
162
|
+
'tenant.operations.cancel',
|
|
163
|
+
];
|
|
164
|
+
export const TENANT_ACTIONS = [
|
|
165
|
+
...TENANT_READ_ACTIONS,
|
|
166
|
+
...TENANT_COMMAND_ACTIONS,
|
|
167
|
+
'tenant.authorizations.request',
|
|
168
|
+
'tenant.views.create',
|
|
169
|
+
'tenant.views.refresh',
|
|
170
|
+
];
|
|
171
|
+
export function parseTenantAction(value) {
|
|
172
|
+
return tenantChoice(value, TENANT_ACTIONS);
|
|
173
|
+
}
|