@mutagent/sdk 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -15
- package/dist/commonjs/funcs/agents-delete-agent.d.ts +1 -1
- package/dist/commonjs/funcs/agents-delete-agent.js +1 -1
- package/dist/commonjs/funcs/helix-agent-deployments-activate-helix-agent.d.ts +20 -0
- package/dist/commonjs/funcs/helix-agent-deployments-activate-helix-agent.d.ts.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-activate-helix-agent.js +127 -0
- package/dist/commonjs/funcs/helix-agent-deployments-activate-helix-agent.js.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-deploy-helix-agent.d.ts +20 -0
- package/dist/commonjs/funcs/helix-agent-deployments-deploy-helix-agent.d.ts.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-deploy-helix-agent.js +127 -0
- package/dist/commonjs/funcs/helix-agent-deployments-deploy-helix-agent.js.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent-capabilities.d.ts +17 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent-capabilities.d.ts.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent-capabilities.js +107 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent-capabilities.js.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent-operation.d.ts +18 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent-operation.d.ts.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent-operation.js +124 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent-operation.js.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent.d.ts +17 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent.d.ts.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent.js +129 -0
- package/dist/commonjs/funcs/helix-agent-deployments-get-helix-agent.js.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-list-helix-agents.d.ts +20 -0
- package/dist/commonjs/funcs/helix-agent-deployments-list-helix-agents.d.ts.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-list-helix-agents.js +126 -0
- package/dist/commonjs/funcs/helix-agent-deployments-list-helix-agents.js.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-retire-helix-agent.d.ts +17 -0
- package/dist/commonjs/funcs/helix-agent-deployments-retire-helix-agent.d.ts.map +1 -0
- package/dist/commonjs/funcs/helix-agent-deployments-retire-helix-agent.js +124 -0
- package/dist/commonjs/funcs/helix-agent-deployments-retire-helix-agent.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-launch-helix-session.d.ts +1 -1
- package/dist/commonjs/funcs/sandbox-launch-helix-session.js +1 -1
- package/dist/commonjs/funcs/sandbox-list-helix-session-checkpoints.d.ts +20 -0
- package/dist/commonjs/funcs/sandbox-list-helix-session-checkpoints.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-list-helix-session-checkpoints.js +126 -0
- package/dist/commonjs/funcs/sandbox-list-helix-session-checkpoints.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-list-helix-workspace-sessions.js +1 -1
- package/dist/commonjs/funcs/sandbox-list-helix-workspace-sessions.js.map +1 -1
- package/dist/commonjs/funcs/sandbox-restore-helix-session.d.ts +20 -0
- package/dist/commonjs/funcs/sandbox-restore-helix-session.d.ts.map +1 -0
- package/dist/commonjs/funcs/{sandbox-post-api-sandbox-agent-run.js → sandbox-restore-helix-session.js} +15 -13
- package/dist/commonjs/funcs/sandbox-restore-helix-session.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/agent-list.d.ts +23 -1
- package/dist/commonjs/models/agent-list.d.ts.map +1 -1
- package/dist/commonjs/models/agent-list.js +15 -2
- package/dist/commonjs/models/agent-list.js.map +1 -1
- package/dist/commonjs/models/agent.d.ts +23 -1
- package/dist/commonjs/models/agent.d.ts.map +1 -1
- package/dist/commonjs/models/agent.js +15 -2
- package/dist/commonjs/models/agent.js.map +1 -1
- package/dist/commonjs/models/archive-base64-archive-digest-artifact-digest.d.ts +62 -0
- package/dist/commonjs/models/archive-base64-archive-digest-artifact-digest.d.ts.map +1 -0
- package/dist/commonjs/models/archive-base64-archive-digest-artifact-digest.js +69 -0
- package/dist/commonjs/models/archive-base64-archive-digest-artifact-digest.js.map +1 -0
- package/dist/commonjs/models/errors/error-code-message.d.ts +21 -0
- package/dist/commonjs/models/errors/error-code-message.d.ts.map +1 -0
- package/dist/commonjs/models/errors/error-code-message.js +69 -0
- package/dist/commonjs/models/errors/error-code-message.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +2 -1
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +2 -1
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/restore-helix-session.d.ts +13 -0
- package/dist/commonjs/models/errors/restore-helix-session.d.ts.map +1 -0
- package/dist/commonjs/models/errors/restore-helix-session.js +20 -0
- package/dist/commonjs/models/errors/restore-helix-session.js.map +1 -0
- package/dist/commonjs/models/id-agent-id-deployment-id.d.ts +50 -0
- package/dist/commonjs/models/id-agent-id-deployment-id.d.ts.map +1 -0
- package/dist/commonjs/models/id-agent-id-deployment-id.js +91 -0
- package/dist/commonjs/models/id-agent-id-deployment-id.js.map +1 -0
- package/dist/commonjs/models/id-agent-id-environment.d.ts +42 -0
- package/dist/commonjs/models/id-agent-id-environment.d.ts.map +1 -0
- package/dist/commonjs/models/id-agent-id-environment.js +78 -0
- package/dist/commonjs/models/id-agent-id-environment.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +10 -3
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +10 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mode-arm-model.d.ts +67 -6
- package/dist/commonjs/models/mode-arm-model.d.ts.map +1 -1
- package/dist/commonjs/models/mode-arm-model.js +54 -5
- package/dist/commonjs/models/mode-arm-model.js.map +1 -1
- package/dist/commonjs/models/mode-arm-model2.d.ts +11 -2
- package/dist/commonjs/models/mode-arm-model2.d.ts.map +1 -1
- package/dist/commonjs/models/mode-arm-model2.js +13 -3
- package/dist/commonjs/models/mode-arm-model2.js.map +1 -1
- package/dist/commonjs/models/operations/activate-helix-agent.d.ts +27 -0
- package/dist/commonjs/models/operations/activate-helix-agent.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{post-api-sandbox-agent-run.js → activate-helix-agent.js} +14 -20
- package/dist/commonjs/models/operations/activate-helix-agent.js.map +1 -0
- package/dist/commonjs/models/operations/deploy-helix-agent.d.ts +138 -0
- package/dist/commonjs/models/operations/deploy-helix-agent.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deploy-helix-agent.js +147 -0
- package/dist/commonjs/models/operations/deploy-helix-agent.js.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.d.ts +4 -4
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.js +6 -7
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.js.map +1 -1
- package/dist/commonjs/models/operations/get-api-sandbox-by-id.d.ts +24 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-api-sandbox-by-id.js +17 -1
- package/dist/commonjs/models/operations/get-api-sandbox-by-id.js.map +1 -1
- package/dist/commonjs/models/operations/get-helix-agent-capabilities.d.ts +42 -0
- package/dist/commonjs/models/operations/get-helix-agent-capabilities.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-helix-agent-capabilities.js +87 -0
- package/dist/commonjs/models/operations/get-helix-agent-capabilities.js.map +1 -0
- package/dist/commonjs/models/operations/get-helix-agent-operation.d.ts +12 -0
- package/dist/commonjs/models/operations/get-helix-agent-operation.d.ts.map +1 -0
- package/dist/commonjs/models/{preset-timeout-ms-keep2.js → operations/get-helix-agent-operation.js} +7 -17
- package/dist/commonjs/models/operations/get-helix-agent-operation.js.map +1 -0
- package/dist/commonjs/models/operations/get-helix-agent.d.ts +161 -0
- package/dist/commonjs/models/operations/get-helix-agent.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-helix-agent.js +170 -0
- package/dist/commonjs/models/operations/get-helix-agent.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +9 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +9 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/launch-helix-session.d.ts +24 -0
- package/dist/commonjs/models/operations/launch-helix-session.d.ts.map +1 -1
- package/dist/commonjs/models/operations/launch-helix-session.js +18 -1
- package/dist/commonjs/models/operations/launch-helix-session.js.map +1 -1
- package/dist/commonjs/models/operations/list-helix-agents.d.ts +55 -0
- package/dist/commonjs/models/operations/list-helix-agents.d.ts.map +1 -0
- package/dist/commonjs/models/operations/list-helix-agents.js +88 -0
- package/dist/commonjs/models/operations/list-helix-agents.js.map +1 -0
- package/dist/commonjs/models/operations/list-helix-session-checkpoints.d.ts +38 -0
- package/dist/commonjs/models/operations/list-helix-session-checkpoints.d.ts.map +1 -0
- package/dist/commonjs/models/operations/list-helix-session-checkpoints.js +73 -0
- package/dist/commonjs/models/operations/list-helix-session-checkpoints.js.map +1 -0
- package/dist/commonjs/models/operations/list-helix-workspace-sessions.d.ts +10 -25
- package/dist/commonjs/models/operations/list-helix-workspace-sessions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list-helix-workspace-sessions.js +12 -23
- package/dist/commonjs/models/operations/list-helix-workspace-sessions.js.map +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.d.ts +12 -12
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.d.ts.map +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.js +16 -17
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.js.map +1 -1
- package/dist/commonjs/models/operations/restore-helix-session.d.ts +155 -0
- package/dist/commonjs/models/operations/restore-helix-session.d.ts.map +1 -0
- package/dist/commonjs/models/operations/restore-helix-session.js +121 -0
- package/dist/commonjs/models/operations/restore-helix-session.js.map +1 -0
- package/dist/commonjs/models/operations/retire-helix-agent.d.ts +39 -0
- package/dist/commonjs/models/operations/retire-helix-agent.d.ts.map +1 -0
- package/dist/commonjs/models/operations/retire-helix-agent.js +68 -0
- package/dist/commonjs/models/operations/retire-helix-agent.js.map +1 -0
- package/dist/commonjs/models/operations/update-organization-member.d.ts +1 -1
- package/dist/commonjs/models/operations/update-organization-member.js +1 -1
- package/dist/commonjs/models/operations/update-workspace-member.d.ts +1 -1
- package/dist/commonjs/models/operations/update-workspace-member.js +1 -1
- package/dist/commonjs/models/provider-config.d.ts +4 -0
- package/dist/commonjs/models/provider-config.d.ts.map +1 -1
- package/dist/commonjs/models/provider-config.js +1 -0
- package/dist/commonjs/models/provider-config.js.map +1 -1
- package/dist/commonjs/models/provider-configs-list.d.ts +4 -0
- package/dist/commonjs/models/provider-configs-list.d.ts.map +1 -1
- package/dist/commonjs/models/provider-configs-list.js +1 -0
- package/dist/commonjs/models/provider-configs-list.js.map +1 -1
- package/dist/commonjs/models/revision-environment-expected-generation.d.ts +26 -0
- package/dist/commonjs/models/revision-environment-expected-generation.d.ts.map +1 -0
- package/dist/commonjs/models/revision-environment-expected-generation.js +54 -0
- package/dist/commonjs/models/revision-environment-expected-generation.js.map +1 -0
- package/dist/commonjs/models/schemaany-of.d.ts +8 -0
- package/dist/commonjs/models/schemaany-of.d.ts.map +1 -0
- package/dist/commonjs/models/schemaany-of.js +48 -0
- package/dist/commonjs/models/schemaany-of.js.map +1 -0
- package/dist/commonjs/models/schemaany-of2.d.ts +8 -0
- package/dist/commonjs/models/schemaany-of2.d.ts.map +1 -0
- package/dist/commonjs/models/schemaany-of2.js +49 -0
- package/dist/commonjs/models/schemaany-of2.js.map +1 -0
- package/dist/commonjs/models/schemaany-of4.d.ts +8 -0
- package/dist/commonjs/models/schemaany-of4.d.ts.map +1 -0
- package/dist/commonjs/models/schemaany-of4.js +48 -0
- package/dist/commonjs/models/schemaany-of4.js.map +1 -0
- package/dist/commonjs/models/schemadefaul13.d.ts +10 -0
- package/dist/commonjs/models/{schemadefaul12.d.ts.map → schemadefaul13.d.ts.map} +1 -1
- package/dist/commonjs/models/{schemadefaul12.js → schemadefaul13.js} +10 -10
- package/dist/commonjs/models/{schemadefaul12.js.map → schemadefaul13.js.map} +1 -1
- package/dist/commonjs/models/schemadefaul15.d.ts +9 -0
- package/dist/commonjs/models/{schemadefaul14.d.ts.map → schemadefaul15.d.ts.map} +1 -1
- package/dist/commonjs/models/{schemadefaul14.js → schemadefaul15.js} +9 -9
- package/dist/commonjs/models/{schemadefaul14.js.map → schemadefaul15.js.map} +1 -1
- package/dist/commonjs/models/schemaenum3.d.ts +11 -0
- package/dist/commonjs/models/schemaenum3.d.ts.map +1 -0
- package/dist/commonjs/models/schemaenum3.js +49 -0
- package/dist/commonjs/models/schemaenum3.js.map +1 -0
- package/dist/commonjs/sdk/agents.d.ts +1 -1
- package/dist/commonjs/sdk/agents.js +1 -1
- package/dist/commonjs/sdk/helix-agent-deployments.d.ts +43 -0
- package/dist/commonjs/sdk/helix-agent-deployments.d.ts.map +1 -0
- package/dist/commonjs/sdk/helix-agent-deployments.js +70 -0
- package/dist/commonjs/sdk/helix-agent-deployments.js.map +1 -0
- package/dist/commonjs/sdk/sandbox.d.ts +15 -8
- package/dist/commonjs/sdk/sandbox.d.ts.map +1 -1
- package/dist/commonjs/sdk/sandbox.js +21 -11
- package/dist/commonjs/sdk/sandbox.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/agents-delete-agent.d.ts +1 -1
- package/dist/esm/funcs/agents-delete-agent.js +1 -1
- package/dist/esm/funcs/helix-agent-deployments-activate-helix-agent.d.ts +20 -0
- package/dist/esm/funcs/helix-agent-deployments-activate-helix-agent.d.ts.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-activate-helix-agent.js +91 -0
- package/dist/esm/funcs/helix-agent-deployments-activate-helix-agent.js.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-deploy-helix-agent.d.ts +20 -0
- package/dist/esm/funcs/helix-agent-deployments-deploy-helix-agent.d.ts.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-deploy-helix-agent.js +91 -0
- package/dist/esm/funcs/helix-agent-deployments-deploy-helix-agent.js.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent-capabilities.d.ts +17 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent-capabilities.d.ts.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent-capabilities.js +71 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent-capabilities.js.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent-operation.d.ts +18 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent-operation.d.ts.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent-operation.js +88 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent-operation.js.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent.d.ts +17 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent.d.ts.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent.js +93 -0
- package/dist/esm/funcs/helix-agent-deployments-get-helix-agent.js.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-list-helix-agents.d.ts +20 -0
- package/dist/esm/funcs/helix-agent-deployments-list-helix-agents.d.ts.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-list-helix-agents.js +90 -0
- package/dist/esm/funcs/helix-agent-deployments-list-helix-agents.js.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-retire-helix-agent.d.ts +17 -0
- package/dist/esm/funcs/helix-agent-deployments-retire-helix-agent.d.ts.map +1 -0
- package/dist/esm/funcs/helix-agent-deployments-retire-helix-agent.js +88 -0
- package/dist/esm/funcs/helix-agent-deployments-retire-helix-agent.js.map +1 -0
- package/dist/esm/funcs/sandbox-launch-helix-session.d.ts +1 -1
- package/dist/esm/funcs/sandbox-launch-helix-session.js +1 -1
- package/dist/esm/funcs/sandbox-list-helix-session-checkpoints.d.ts +20 -0
- package/dist/esm/funcs/sandbox-list-helix-session-checkpoints.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-list-helix-session-checkpoints.js +90 -0
- package/dist/esm/funcs/sandbox-list-helix-session-checkpoints.js.map +1 -0
- package/dist/esm/funcs/sandbox-list-helix-workspace-sessions.js +1 -1
- package/dist/esm/funcs/sandbox-list-helix-workspace-sessions.js.map +1 -1
- package/dist/esm/funcs/sandbox-restore-helix-session.d.ts +20 -0
- package/dist/esm/funcs/sandbox-restore-helix-session.d.ts.map +1 -0
- package/dist/esm/funcs/{sandbox-post-api-sandbox-agent-run.js → sandbox-restore-helix-session.js} +15 -13
- package/dist/esm/funcs/sandbox-restore-helix-session.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/agent-list.d.ts +23 -1
- package/dist/esm/models/agent-list.d.ts.map +1 -1
- package/dist/esm/models/agent-list.js +14 -1
- package/dist/esm/models/agent-list.js.map +1 -1
- package/dist/esm/models/agent.d.ts +23 -1
- package/dist/esm/models/agent.d.ts.map +1 -1
- package/dist/esm/models/agent.js +14 -1
- package/dist/esm/models/agent.js.map +1 -1
- package/dist/esm/models/archive-base64-archive-digest-artifact-digest.d.ts +62 -0
- package/dist/esm/models/archive-base64-archive-digest-artifact-digest.d.ts.map +1 -0
- package/dist/esm/models/archive-base64-archive-digest-artifact-digest.js +30 -0
- package/dist/esm/models/archive-base64-archive-digest-artifact-digest.js.map +1 -0
- package/dist/esm/models/errors/error-code-message.d.ts +21 -0
- package/dist/esm/models/errors/error-code-message.d.ts.map +1 -0
- package/dist/esm/models/errors/error-code-message.js +32 -0
- package/dist/esm/models/errors/error-code-message.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +2 -1
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +2 -1
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/restore-helix-session.d.ts +13 -0
- package/dist/esm/models/errors/restore-helix-session.d.ts.map +1 -0
- package/dist/esm/models/errors/restore-helix-session.js +16 -0
- package/dist/esm/models/errors/restore-helix-session.js.map +1 -0
- package/dist/esm/models/id-agent-id-deployment-id.d.ts +50 -0
- package/dist/esm/models/id-agent-id-deployment-id.d.ts.map +1 -0
- package/dist/esm/models/id-agent-id-deployment-id.js +53 -0
- package/dist/esm/models/id-agent-id-deployment-id.js.map +1 -0
- package/dist/esm/models/id-agent-id-environment.d.ts +42 -0
- package/dist/esm/models/id-agent-id-environment.d.ts.map +1 -0
- package/dist/esm/models/id-agent-id-environment.js +38 -0
- package/dist/esm/models/id-agent-id-environment.js.map +1 -0
- package/dist/esm/models/index.d.ts +10 -3
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +10 -3
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mode-arm-model.d.ts +67 -6
- package/dist/esm/models/mode-arm-model.d.ts.map +1 -1
- package/dist/esm/models/mode-arm-model.js +50 -4
- package/dist/esm/models/mode-arm-model.js.map +1 -1
- package/dist/esm/models/mode-arm-model2.d.ts +11 -2
- package/dist/esm/models/mode-arm-model2.d.ts.map +1 -1
- package/dist/esm/models/mode-arm-model2.js +12 -2
- package/dist/esm/models/mode-arm-model2.js.map +1 -1
- package/dist/esm/models/operations/activate-helix-agent.d.ts +27 -0
- package/dist/esm/models/operations/activate-helix-agent.d.ts.map +1 -0
- package/dist/esm/models/operations/activate-helix-agent.js +23 -0
- package/dist/esm/models/operations/activate-helix-agent.js.map +1 -0
- package/dist/esm/models/operations/deploy-helix-agent.d.ts +138 -0
- package/dist/esm/models/operations/deploy-helix-agent.d.ts.map +1 -0
- package/dist/esm/models/operations/deploy-helix-agent.js +103 -0
- package/dist/esm/models/operations/deploy-helix-agent.js.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.d.ts +4 -4
- package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.d.ts.map +1 -1
- package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.js +4 -5
- package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.js.map +1 -1
- package/dist/esm/models/operations/get-api-sandbox-by-id.d.ts +24 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id.d.ts.map +1 -1
- package/dist/esm/models/operations/get-api-sandbox-by-id.js +16 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id.js.map +1 -1
- package/dist/esm/models/operations/get-helix-agent-capabilities.d.ts +42 -0
- package/dist/esm/models/operations/get-helix-agent-capabilities.d.ts.map +1 -0
- package/dist/esm/models/operations/get-helix-agent-capabilities.js +46 -0
- package/dist/esm/models/operations/get-helix-agent-capabilities.js.map +1 -0
- package/dist/esm/models/operations/get-helix-agent-operation.d.ts +12 -0
- package/dist/esm/models/operations/get-helix-agent-operation.d.ts.map +1 -0
- package/dist/esm/models/operations/get-helix-agent-operation.js +12 -0
- package/dist/esm/models/operations/get-helix-agent-operation.js.map +1 -0
- package/dist/esm/models/operations/get-helix-agent.d.ts +161 -0
- package/dist/esm/models/operations/get-helix-agent.d.ts.map +1 -0
- package/dist/esm/models/operations/get-helix-agent.js +124 -0
- package/dist/esm/models/operations/get-helix-agent.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +9 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +9 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/launch-helix-session.d.ts +24 -0
- package/dist/esm/models/operations/launch-helix-session.d.ts.map +1 -1
- package/dist/esm/models/operations/launch-helix-session.js +15 -0
- package/dist/esm/models/operations/launch-helix-session.js.map +1 -1
- package/dist/esm/models/operations/list-helix-agents.d.ts +55 -0
- package/dist/esm/models/operations/list-helix-agents.d.ts.map +1 -0
- package/dist/esm/models/operations/list-helix-agents.js +48 -0
- package/dist/esm/models/operations/list-helix-agents.js.map +1 -0
- package/dist/esm/models/operations/list-helix-session-checkpoints.d.ts +38 -0
- package/dist/esm/models/operations/list-helix-session-checkpoints.d.ts.map +1 -0
- package/dist/esm/models/operations/list-helix-session-checkpoints.js +34 -0
- package/dist/esm/models/operations/list-helix-session-checkpoints.js.map +1 -0
- package/dist/esm/models/operations/list-helix-workspace-sessions.d.ts +10 -25
- package/dist/esm/models/operations/list-helix-workspace-sessions.d.ts.map +1 -1
- package/dist/esm/models/operations/list-helix-workspace-sessions.js +11 -22
- package/dist/esm/models/operations/list-helix-workspace-sessions.js.map +1 -1
- package/dist/esm/models/operations/post-api-sandbox-by-id-restore.d.ts +12 -12
- package/dist/esm/models/operations/post-api-sandbox-by-id-restore.d.ts.map +1 -1
- package/dist/esm/models/operations/post-api-sandbox-by-id-restore.js +12 -13
- package/dist/esm/models/operations/post-api-sandbox-by-id-restore.js.map +1 -1
- package/dist/esm/models/operations/restore-helix-session.d.ts +155 -0
- package/dist/esm/models/operations/restore-helix-session.d.ts.map +1 -0
- package/dist/esm/models/operations/restore-helix-session.js +80 -0
- package/dist/esm/models/operations/restore-helix-session.js.map +1 -0
- package/dist/esm/models/operations/retire-helix-agent.d.ts +39 -0
- package/dist/esm/models/operations/retire-helix-agent.d.ts.map +1 -0
- package/dist/esm/models/operations/retire-helix-agent.js +29 -0
- package/dist/esm/models/operations/retire-helix-agent.js.map +1 -0
- package/dist/esm/models/operations/update-organization-member.d.ts +1 -1
- package/dist/esm/models/operations/update-organization-member.js +1 -1
- package/dist/esm/models/operations/update-workspace-member.d.ts +1 -1
- package/dist/esm/models/operations/update-workspace-member.js +1 -1
- package/dist/esm/models/provider-config.d.ts +4 -0
- package/dist/esm/models/provider-config.d.ts.map +1 -1
- package/dist/esm/models/provider-config.js +1 -0
- package/dist/esm/models/provider-config.js.map +1 -1
- package/dist/esm/models/provider-configs-list.d.ts +4 -0
- package/dist/esm/models/provider-configs-list.d.ts.map +1 -1
- package/dist/esm/models/provider-configs-list.js +1 -0
- package/dist/esm/models/provider-configs-list.js.map +1 -1
- package/dist/esm/models/revision-environment-expected-generation.d.ts +26 -0
- package/dist/esm/models/revision-environment-expected-generation.d.ts.map +1 -0
- package/dist/esm/models/revision-environment-expected-generation.js +17 -0
- package/dist/esm/models/revision-environment-expected-generation.js.map +1 -0
- package/dist/esm/models/schemaany-of.d.ts +8 -0
- package/dist/esm/models/schemaany-of.d.ts.map +1 -0
- package/dist/esm/models/schemaany-of.js +11 -0
- package/dist/esm/models/schemaany-of.js.map +1 -0
- package/dist/esm/models/schemaany-of2.d.ts +8 -0
- package/dist/esm/models/schemaany-of2.d.ts.map +1 -0
- package/dist/esm/models/schemaany-of2.js +12 -0
- package/dist/esm/models/schemaany-of2.js.map +1 -0
- package/dist/esm/models/schemaany-of4.d.ts +8 -0
- package/dist/esm/models/schemaany-of4.d.ts.map +1 -0
- package/dist/esm/models/schemaany-of4.js +11 -0
- package/dist/esm/models/schemaany-of4.js.map +1 -0
- package/dist/esm/models/schemadefaul13.d.ts +10 -0
- package/dist/esm/models/{schemadefaul12.d.ts.map → schemadefaul13.d.ts.map} +1 -1
- package/dist/esm/models/schemadefaul13.js +14 -0
- package/dist/esm/models/{schemadefaul12.js.map → schemadefaul13.js.map} +1 -1
- package/dist/esm/models/schemadefaul15.d.ts +9 -0
- package/dist/esm/models/{schemadefaul14.d.ts.map → schemadefaul15.d.ts.map} +1 -1
- package/dist/esm/models/schemadefaul15.js +13 -0
- package/dist/esm/models/{schemadefaul14.js.map → schemadefaul15.js.map} +1 -1
- package/dist/esm/models/schemaenum3.d.ts +11 -0
- package/dist/esm/models/schemaenum3.d.ts.map +1 -0
- package/dist/esm/models/schemaenum3.js +13 -0
- package/dist/esm/models/schemaenum3.js.map +1 -0
- package/dist/esm/sdk/agents.d.ts +1 -1
- package/dist/esm/sdk/agents.js +1 -1
- package/dist/esm/sdk/helix-agent-deployments.d.ts +43 -0
- package/dist/esm/sdk/helix-agent-deployments.d.ts.map +1 -0
- package/dist/esm/sdk/helix-agent-deployments.js +66 -0
- package/dist/esm/sdk/helix-agent-deployments.js.map +1 -0
- package/dist/esm/sdk/sandbox.d.ts +15 -8
- package/dist/esm/sdk/sandbox.d.ts.map +1 -1
- package/dist/esm/sdk/sandbox.js +21 -11
- package/dist/esm/sdk/sandbox.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/package.json +1 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.d.ts +0 -20
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.d.ts.map +0 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.js.map +0 -1
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.d.ts +0 -13
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.d.ts.map +0 -1
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.js +0 -17
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.js.map +0 -1
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.d.ts +0 -47
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.d.ts.map +0 -1
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.js.map +0 -1
- package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts +0 -65
- package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts.map +0 -1
- package/dist/commonjs/models/preset-timeout-ms-keep2.js.map +0 -1
- package/dist/commonjs/models/schemadefaul12.d.ts +0 -10
- package/dist/commonjs/models/schemadefaul14.d.ts +0 -9
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.d.ts +0 -20
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.d.ts.map +0 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.js.map +0 -1
- package/dist/esm/models/errors/post-api-sandbox-agent-run.d.ts +0 -13
- package/dist/esm/models/errors/post-api-sandbox-agent-run.d.ts.map +0 -1
- package/dist/esm/models/errors/post-api-sandbox-agent-run.js +0 -13
- package/dist/esm/models/errors/post-api-sandbox-agent-run.js.map +0 -1
- package/dist/esm/models/operations/post-api-sandbox-agent-run.d.ts +0 -47
- package/dist/esm/models/operations/post-api-sandbox-agent-run.d.ts.map +0 -1
- package/dist/esm/models/operations/post-api-sandbox-agent-run.js +0 -29
- package/dist/esm/models/operations/post-api-sandbox-agent-run.js.map +0 -1
- package/dist/esm/models/preset-timeout-ms-keep2.d.ts +0 -65
- package/dist/esm/models/preset-timeout-ms-keep2.d.ts.map +0 -1
- package/dist/esm/models/preset-timeout-ms-keep2.js +0 -22
- package/dist/esm/models/preset-timeout-ms-keep2.js.map +0 -1
- package/dist/esm/models/schemadefaul12.d.ts +0 -10
- package/dist/esm/models/schemadefaul12.js +0 -14
- package/dist/esm/models/schemadefaul14.d.ts +0 -9
- package/dist/esm/models/schemadefaul14.js +0 -13
package/README.md
CHANGED
|
@@ -734,6 +734,16 @@ run();
|
|
|
734
734
|
* [deleteAgent](docs/sdks/agents/README.md#deleteagent) - Delete agent
|
|
735
735
|
* [getAgentBySlug](docs/sdks/agents/README.md#getagentbyslug) - Get agent by slug
|
|
736
736
|
|
|
737
|
+
### [HelixAgentDeployments](docs/sdks/helixagentdeployments/README.md)
|
|
738
|
+
|
|
739
|
+
* [getHelixAgentCapabilities](docs/sdks/helixagentdeployments/README.md#gethelixagentcapabilities) - Inspect managed agent deployment capabilities
|
|
740
|
+
* [listHelixAgents](docs/sdks/helixagentdeployments/README.md#listhelixagents) - List the workspace's managed agents and their slots
|
|
741
|
+
* [getHelixAgent](docs/sdks/helixagentdeployments/README.md#gethelixagent) - Inspect a managed agent: revisions, slots and launched sessions
|
|
742
|
+
* [deployHelixAgent](docs/sdks/helixagentdeployments/README.md#deployhelixagent) - Deploy a managed agent package into a slot (agent × Environment)
|
|
743
|
+
* [activateHelixAgent](docs/sdks/helixagentdeployments/README.md#activatehelixagent) - Point an existing slot at a revision (an older one is a rollback)
|
|
744
|
+
* [retireHelixAgent](docs/sdks/helixagentdeployments/README.md#retirehelixagent) - Disable a slot: new launches are refused, running sessions finish
|
|
745
|
+
* [getHelixAgentOperation](docs/sdks/helixagentdeployments/README.md#gethelixagentoperation) - Inspect a durable deployment operation
|
|
746
|
+
|
|
737
747
|
### [Invitations](docs/sdks/invitations/README.md)
|
|
738
748
|
|
|
739
749
|
* [createInvitation](docs/sdks/invitations/README.md#createinvitation) - Create invitation
|
|
@@ -797,6 +807,8 @@ run();
|
|
|
797
807
|
* [closeHelixSessionInput](docs/sdks/sandbox/README.md#closehelixsessioninput) - Explicitly close native RPC stdin
|
|
798
808
|
* [signalHelixSession](docs/sdks/sandbox/README.md#signalhelixsession) - Stop a live Helix process
|
|
799
809
|
* [checkpointHelixSession](docs/sdks/sandbox/README.md#checkpointhelixsession) - Checkpoint a live Helix session
|
|
810
|
+
* [listHelixSessionCheckpoints](docs/sdks/sandbox/README.md#listhelixsessioncheckpoints) - List the checkpoints of the box a session runs on
|
|
811
|
+
* [restoreHelixSession](docs/sdks/sandbox/README.md#restorehelixsession) - Rebuild the box a session runs on from a checkpoint
|
|
800
812
|
* [streamHelixSession](docs/sdks/sandbox/README.md#streamhelixsession) - Follow one Helix execution
|
|
801
813
|
* [postApiSandboxByIdSession](docs/sdks/sandbox/README.md#postapisandboxbyidsession) - Start a Helix session in a sandbox
|
|
802
814
|
* [getApiSandboxHelixDefaults](docs/sdks/sandbox/README.md#getapisandboxhelixdefaults) - List the workspace's Helix Cloud models and its default
|
|
@@ -807,7 +819,6 @@ run();
|
|
|
807
819
|
* [postApiSandboxByIdCheckpoint](docs/sdks/sandbox/README.md#postapisandboxbyidcheckpoint) - Capture a Helix session's own transcript
|
|
808
820
|
* [getApiSandboxByIdCheckpoints](docs/sdks/sandbox/README.md#getapisandboxbyidcheckpoints) - List checkpoints captured from this sandbox
|
|
809
821
|
* [postApiSandboxByIdRestore](docs/sdks/sandbox/README.md#postapisandboxbyidrestore) - Rebuild this sandbox from a checkpoint, with full state
|
|
810
|
-
* [postApiSandboxAgentRun](docs/sdks/sandbox/README.md#postapisandboxagentrun) - Run one agent turn in a fresh sandbox
|
|
811
822
|
* [postApiSandboxToken](docs/sdks/sandbox/README.md#postapisandboxtoken) - Exchange a platform API key for a sandbox operator token
|
|
812
823
|
|
|
813
824
|
### [Traces](docs/sdks/traces/README.md)
|
|
@@ -867,6 +878,13 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
867
878
|
- [`agentsGetAgentBySlug`](docs/sdks/agents/README.md#getagentbyslug) - Get agent by slug
|
|
868
879
|
- [`agentsListAgents`](docs/sdks/agents/README.md#listagents) - List agents
|
|
869
880
|
- [`agentsUpdateAgent`](docs/sdks/agents/README.md#updateagent) - Update agent
|
|
881
|
+
- [`helixAgentDeploymentsActivateHelixAgent`](docs/sdks/helixagentdeployments/README.md#activatehelixagent) - Point an existing slot at a revision (an older one is a rollback)
|
|
882
|
+
- [`helixAgentDeploymentsDeployHelixAgent`](docs/sdks/helixagentdeployments/README.md#deployhelixagent) - Deploy a managed agent package into a slot (agent × Environment)
|
|
883
|
+
- [`helixAgentDeploymentsGetHelixAgent`](docs/sdks/helixagentdeployments/README.md#gethelixagent) - Inspect a managed agent: revisions, slots and launched sessions
|
|
884
|
+
- [`helixAgentDeploymentsGetHelixAgentCapabilities`](docs/sdks/helixagentdeployments/README.md#gethelixagentcapabilities) - Inspect managed agent deployment capabilities
|
|
885
|
+
- [`helixAgentDeploymentsGetHelixAgentOperation`](docs/sdks/helixagentdeployments/README.md#gethelixagentoperation) - Inspect a durable deployment operation
|
|
886
|
+
- [`helixAgentDeploymentsListHelixAgents`](docs/sdks/helixagentdeployments/README.md#listhelixagents) - List the workspace's managed agents and their slots
|
|
887
|
+
- [`helixAgentDeploymentsRetireHelixAgent`](docs/sdks/helixagentdeployments/README.md#retirehelixagent) - Disable a slot: new launches are refused, running sessions finish
|
|
870
888
|
- [`invitationsCreateInvitation`](docs/sdks/invitations/README.md#createinvitation) - Create invitation
|
|
871
889
|
- [`invitationsDeleteInvitation`](docs/sdks/invitations/README.md#deleteinvitation) - Delete/revoke invitation
|
|
872
890
|
- [`invitationsGetInvitation`](docs/sdks/invitations/README.md#getinvitation) - Get invitation
|
|
@@ -910,10 +928,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
910
928
|
- [`sandboxGetApiSandboxProviders`](docs/sdks/sandbox/README.md#getapisandboxproviders) - List sandbox providers
|
|
911
929
|
- [`sandboxInputHelixSession`](docs/sdks/sandbox/README.md#inputhelixsession) - Write native JSONL to a live Helix session
|
|
912
930
|
- [`sandboxLaunchHelixSession`](docs/sdks/sandbox/README.md#launchhelixsession) - Provision and launch a headless Helix session
|
|
931
|
+
- [`sandboxListHelixSessionCheckpoints`](docs/sdks/sandbox/README.md#listhelixsessioncheckpoints) - List the checkpoints of the box a session runs on
|
|
913
932
|
- [`sandboxListHelixWorkspaceSessions`](docs/sdks/sandbox/README.md#listhelixworkspacesessions) - List the workspace's Helix sessions across all sandboxes
|
|
914
933
|
- [`sandboxPatchApiSandboxEnvironmentsByName`](docs/sdks/sandbox/README.md#patchapisandboxenvironmentsbyname) - Set or unset entries of a workspace Environment
|
|
915
934
|
- [`sandboxPostApiSandbox`](docs/sdks/sandbox/README.md#postapisandbox) - Spawn a sandbox
|
|
916
|
-
- [`sandboxPostApiSandboxAgentRun`](docs/sdks/sandbox/README.md#postapisandboxagentrun) - Run one agent turn in a fresh sandbox
|
|
917
935
|
- [`sandboxPostApiSandboxByIdCheckpoint`](docs/sdks/sandbox/README.md#postapisandboxbyidcheckpoint) - Capture a Helix session's own transcript
|
|
918
936
|
- [`sandboxPostApiSandboxByIdExec`](docs/sdks/sandbox/README.md#postapisandboxbyidexec) - Run a command in a sandbox
|
|
919
937
|
- [`sandboxPostApiSandboxByIdInput`](docs/sdks/sandbox/README.md#postapisandboxbyidinput) - Write one line to a Helix session's stdin
|
|
@@ -926,6 +944,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
926
944
|
- [`sandboxPostApiSandboxToken`](docs/sdks/sandbox/README.md#postapisandboxtoken) - Exchange a platform API key for a sandbox operator token
|
|
927
945
|
- [`sandboxPutApiSandboxEnvironmentsByName`](docs/sdks/sandbox/README.md#putapisandboxenvironmentsbyname) - Create or replace a workspace Environment
|
|
928
946
|
- [`sandboxPutApiSandboxHelixDefaults`](docs/sdks/sandbox/README.md#putapisandboxhelixdefaults) - Set the workspace's default Helix Cloud models
|
|
947
|
+
- [`sandboxRestoreHelixSession`](docs/sdks/sandbox/README.md#restorehelixsession) - Rebuild the box a session runs on from a checkpoint
|
|
929
948
|
- [`sandboxSignalHelixSession`](docs/sdks/sandbox/README.md#signalhelixsession) - Stop a live Helix process
|
|
930
949
|
- [`sandboxStreamHelixSession`](docs/sdks/sandbox/README.md#streamhelixsession) - Follow one Helix execution
|
|
931
950
|
- [`tracesGetTrace`](docs/sdks/traces/README.md#gettrace) - Get one trace envelope
|
|
@@ -1110,11 +1129,10 @@ run();
|
|
|
1110
1129
|
```
|
|
1111
1130
|
|
|
1112
1131
|
### Error Classes
|
|
1113
|
-
**Primary
|
|
1132
|
+
**Primary error:**
|
|
1114
1133
|
* [`MutagentError`](./src/models/errors/mutagent-error.ts): The base class for HTTP error responses.
|
|
1115
|
-
* [`ErrorMessage`](./src/models/errors/error-message.ts): *
|
|
1116
1134
|
|
|
1117
|
-
<details><summary>Less common errors (
|
|
1135
|
+
<details><summary>Less common errors (17)</summary>
|
|
1118
1136
|
|
|
1119
1137
|
<br />
|
|
1120
1138
|
|
|
@@ -1127,15 +1145,17 @@ run();
|
|
|
1127
1145
|
|
|
1128
1146
|
|
|
1129
1147
|
**Inherit from [`MutagentError`](./src/models/errors/mutagent-error.ts)**:
|
|
1130
|
-
* [`
|
|
1131
|
-
* [`
|
|
1132
|
-
* [`
|
|
1133
|
-
* [`
|
|
1134
|
-
* [`
|
|
1135
|
-
* [`
|
|
1136
|
-
* [`
|
|
1137
|
-
* [`
|
|
1138
|
-
* [`
|
|
1148
|
+
* [`ErrorMessage`](./src/models/errors/error-message.ts): Applicable to 75 of 96 methods.*
|
|
1149
|
+
* [`ErrorMessageStatusCode`](./src/models/errors/error-message-status-code.ts): Applicable to 61 of 96 methods.*
|
|
1150
|
+
* [`ProviderError`](./src/models/errors/provider-error.ts): Standard error response. Applicable to 8 of 96 methods.*
|
|
1151
|
+
* [`ErrorCodeMessage`](./src/models/errors/error-code-message.ts): Response for status 400. Applicable to 7 of 96 methods.*
|
|
1152
|
+
* [`WsError`](./src/models/errors/ws-error.ts): Standard error response. Applicable to 6 of 96 methods.*
|
|
1153
|
+
* [`ErrorMessageModel`](./src/models/errors/error-message-model.ts): Response for status 422. Status code `422`. Applicable to 5 of 96 methods.*
|
|
1154
|
+
* [`ErrorMessage2`](./src/models/errors/error-message2.ts): Response for status 422. Status code `422`. Applicable to 5 of 96 methods.*
|
|
1155
|
+
* [`ErrorMessageCode`](./src/models/errors/error-message-code.ts): Response for status 428. Status code `428`. Applicable to 4 of 96 methods.*
|
|
1156
|
+
* [`TestConnectionResultError`](./src/models/errors/test-connection-result-error.ts): Provider connection test result. Applicable to 1 of 96 methods.*
|
|
1157
|
+
* [`WorkspaceModelListingError`](./src/models/errors/workspace-model-listing-error.ts): A provider configuration's models, with this workspace's enablement applied. Applicable to 1 of 96 methods.*
|
|
1158
|
+
* [`ServiceUnavailableError`](./src/models/errors/service-unavailable-error.ts): Response for status 503. Status code `503`. Applicable to 1 of 96 methods.*
|
|
1139
1159
|
* [`ResponseValidationError`](./src/models/errors/response-validation-error.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
1140
1160
|
|
|
1141
1161
|
</details>
|
|
@@ -1153,7 +1173,7 @@ The default server can be overridden globally by passing a URL to the `serverURL
|
|
|
1153
1173
|
import { Mutagent } from "@mutagent/sdk";
|
|
1154
1174
|
|
|
1155
1175
|
const mutagent = new Mutagent({
|
|
1156
|
-
serverURL: "http://localhost:
|
|
1176
|
+
serverURL: "http://localhost:3003",
|
|
1157
1177
|
security: {
|
|
1158
1178
|
apiKey: process.env["MUTAGENT_API_KEY"] ?? "",
|
|
1159
1179
|
},
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Delete agent
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Delete an agent and all associated data. Requires x-workspace-id header.
|
|
16
|
+
* Delete an agent and all associated data. A managed agent (deployed with `mutagent agent deploy`) is archived instead, keeping its revisions and run history, and only once every slot is retired: with a live slot the answer is 409 `MANAGED_AGENT_HAS_SLOTS`. Requires x-workspace-id header.
|
|
17
17
|
*
|
|
18
18
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
19
19
|
*/
|
|
@@ -53,7 +53,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
53
53
|
* Delete agent
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
|
-
* Delete an agent and all associated data. Requires x-workspace-id header.
|
|
56
|
+
* Delete an agent and all associated data. A managed agent (deployed with `mutagent agent deploy`) is archived instead, keeping its revisions and run history, and only once every slot is retired: with a live slot the answer is 409 `MANAGED_AGENT_HAS_SLOTS`. Requires x-workspace-id header.
|
|
57
57
|
*
|
|
58
58
|
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
59
59
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MutagentCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Point an existing slot at a revision (an older one is a rollback)
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Compare-and-swap on the slot generation. Re-enables a retired slot; this is the only way back from retire. An archived managed agent is refused with 409 `MANAGED_AGENT_ARCHIVED`: only deploy brings it back. Running sessions keep the revision they started with. Same model, Environment, binding and staging refusals as deploy; 404 when the slot or revision does not exist.
|
|
16
|
+
*
|
|
17
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
18
|
+
*/
|
|
19
|
+
export declare function helixAgentDeploymentsActivateHelixAgent(client: MutagentCore, request: operations.ActivateHelixAgentRequest, options?: RequestOptions): APIPromise<Result<operations.ActivateHelixAgentResponse, errors.ErrorCodeMessage | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=helix-agent-deployments-activate-helix-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix-agent-deployments-activate-helix-agent.d.ts","sourceRoot":"","sources":["../../../src/funcs/helix-agent-deployments-activate-helix-agent.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,MAAM,CAAC,gBAAgB,GACvB,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.helixAgentDeploymentsActivateHelixAgent = helixAgentDeploymentsActivateHelixAgent;
|
|
40
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
41
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
+
const http_js_1 = require("../lib/http.js");
|
|
43
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
44
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
+
const security_js_1 = require("../lib/security.js");
|
|
47
|
+
const url_js_1 = require("../lib/url.js");
|
|
48
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
50
|
+
const async_js_1 = require("../types/async.js");
|
|
51
|
+
/**
|
|
52
|
+
* Point an existing slot at a revision (an older one is a rollback)
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* Compare-and-swap on the slot generation. Re-enables a retired slot; this is the only way back from retire. An archived managed agent is refused with 409 `MANAGED_AGENT_ARCHIVED`: only deploy brings it back. Running sessions keep the revision they started with. Same model, Environment, binding and staging refusals as deploy; 404 when the slot or revision does not exist.
|
|
56
|
+
*
|
|
57
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
|
+
*/
|
|
59
|
+
function helixAgentDeploymentsActivateHelixAgent(client, request, options) {
|
|
60
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
61
|
+
}
|
|
62
|
+
async function $do(client, request, options) {
|
|
63
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(operations.ActivateHelixAgentRequest$outboundSchema, value), "Input validation failed");
|
|
64
|
+
if (!parsed.ok) {
|
|
65
|
+
return [parsed, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const payload = parsed.value;
|
|
68
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.body, { explode: true });
|
|
69
|
+
const pathParams = {
|
|
70
|
+
slug: (0, encodings_js_1.encodeSimple)("slug", payload.slug, {
|
|
71
|
+
explode: false,
|
|
72
|
+
charEncoding: "percent",
|
|
73
|
+
}),
|
|
74
|
+
};
|
|
75
|
+
const path = (0, url_js_1.pathToFunc)("/api/helix-agent/agents/{slug}/activate")(pathParams);
|
|
76
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
77
|
+
"Content-Type": "application/json",
|
|
78
|
+
Accept: "application/json",
|
|
79
|
+
}));
|
|
80
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
81
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
|
|
82
|
+
const context = {
|
|
83
|
+
options: client._options,
|
|
84
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
85
|
+
operationID: "activateHelixAgent",
|
|
86
|
+
oAuth2Scopes: null,
|
|
87
|
+
resolvedSecurity: requestSecurity,
|
|
88
|
+
securitySource: client._options.security,
|
|
89
|
+
retryConfig: options?.retries
|
|
90
|
+
|| client._options.retryConfig
|
|
91
|
+
|| { strategy: "none" },
|
|
92
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
93
|
+
};
|
|
94
|
+
const requestRes = client._createRequest(context, {
|
|
95
|
+
security: requestSecurity,
|
|
96
|
+
method: "POST",
|
|
97
|
+
baseURL: options?.serverURL,
|
|
98
|
+
path: path,
|
|
99
|
+
headers: headers,
|
|
100
|
+
body: body,
|
|
101
|
+
userAgent: client._options.userAgent,
|
|
102
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
103
|
+
}, options);
|
|
104
|
+
if (!requestRes.ok) {
|
|
105
|
+
return [requestRes, { status: "invalid" }];
|
|
106
|
+
}
|
|
107
|
+
const req = requestRes.value;
|
|
108
|
+
const doResult = await client._do(req, {
|
|
109
|
+
context,
|
|
110
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
111
|
+
retryConfig: context.retryConfig,
|
|
112
|
+
retryCodes: context.retryCodes,
|
|
113
|
+
});
|
|
114
|
+
if (!doResult.ok) {
|
|
115
|
+
return [doResult, { status: "request-error", request: req }];
|
|
116
|
+
}
|
|
117
|
+
const response = doResult.value;
|
|
118
|
+
const responseFields = {
|
|
119
|
+
HttpMeta: { Response: response, Request: req },
|
|
120
|
+
};
|
|
121
|
+
const [result] = await M.match(M.json(200, operations.ActivateHelixAgentResponse$inboundSchema), M.jsonErr([400, 404, 409, 413, 422, 428], errors.ErrorCodeMessage$inboundSchema), M.jsonErr(503, errors.ErrorCodeMessage$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
122
|
+
if (!result.ok) {
|
|
123
|
+
return [result, { status: "complete", request: req, response }];
|
|
124
|
+
}
|
|
125
|
+
return [result, { status: "complete", request: req, response }];
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=helix-agent-deployments-activate-helix-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix-agent-deployments-activate-helix-agent.js","sourceRoot":"","sources":["../../../src/funcs/helix-agent-deployments-activate-helix-agent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,0FAuBC;AAxDD,+CAAiC;AAEjC,sDAA+D;AAC/D,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,uCAAuC,CACrD,MAAoB,EACpB,OAA6C,EAC7C,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,E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RequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Deploy a managed agent package into a slot (agent × Environment)
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* One operation: verifies the archive, creates or reuses the managed agent (its slug is the package's name), stores the package as the next revision (unchanged content reuses its revision), creates the slot on first deploy, and activates the revision unless `activate` is false. Every refusal happens before anything is written: package name not equal to the slug (422), an inline agent holding the slug (409), required secret bindings (422), a model outside the workspace's Helix Cloud model list (422) or of an LLM provider the workspace lacks (428), an Environment the workspace does not have (404), no configured sandbox provider that can stage a package (422). Deploying an archived agent's slug un-archives it. The authenticated JSON/base64 transport is bounded to 16 MiB.
|
|
16
|
+
*
|
|
17
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
18
|
+
*/
|
|
19
|
+
export declare function helixAgentDeploymentsDeployHelixAgent(client: MutagentCore, request: operations.DeployHelixAgentRequest, options?: RequestOptions): APIPromise<Result<operations.DeployHelixAgentResponse, errors.ErrorCodeMessage | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=helix-agent-deployments-deploy-helix-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix-agent-deployments-deploy-helix-agent.d.ts","sourceRoot":"","sources":["../../../src/funcs/helix-agent-deployments-deploy-helix-agent.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,wBAAwB,EACjC,MAAM,CAAC,gBAAgB,GACvB,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.helixAgentDeploymentsDeployHelixAgent = helixAgentDeploymentsDeployHelixAgent;
|
|
40
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
41
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
+
const http_js_1 = require("../lib/http.js");
|
|
43
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
44
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
+
const security_js_1 = require("../lib/security.js");
|
|
47
|
+
const url_js_1 = require("../lib/url.js");
|
|
48
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
50
|
+
const async_js_1 = require("../types/async.js");
|
|
51
|
+
/**
|
|
52
|
+
* Deploy a managed agent package into a slot (agent × Environment)
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* One operation: verifies the archive, creates or reuses the managed agent (its slug is the package's name), stores the package as the next revision (unchanged content reuses its revision), creates the slot on first deploy, and activates the revision unless `activate` is false. Every refusal happens before anything is written: package name not equal to the slug (422), an inline agent holding the slug (409), required secret bindings (422), a model outside the workspace's Helix Cloud model list (422) or of an LLM provider the workspace lacks (428), an Environment the workspace does not have (404), no configured sandbox provider that can stage a package (422). Deploying an archived agent's slug un-archives it. The authenticated JSON/base64 transport is bounded to 16 MiB.
|
|
56
|
+
*
|
|
57
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
58
|
+
*/
|
|
59
|
+
function helixAgentDeploymentsDeployHelixAgent(client, request, options) {
|
|
60
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
61
|
+
}
|
|
62
|
+
async function $do(client, request, options) {
|
|
63
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(operations.DeployHelixAgentRequest$outboundSchema, value), "Input validation failed");
|
|
64
|
+
if (!parsed.ok) {
|
|
65
|
+
return [parsed, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const payload = parsed.value;
|
|
68
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.body, { explode: true });
|
|
69
|
+
const pathParams = {
|
|
70
|
+
slug: (0, encodings_js_1.encodeSimple)("slug", payload.slug, {
|
|
71
|
+
explode: false,
|
|
72
|
+
charEncoding: "percent",
|
|
73
|
+
}),
|
|
74
|
+
};
|
|
75
|
+
const path = (0, url_js_1.pathToFunc)("/api/helix-agent/agents/{slug}/deployments")(pathParams);
|
|
76
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
77
|
+
"Content-Type": "application/json",
|
|
78
|
+
Accept: "application/json",
|
|
79
|
+
}));
|
|
80
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
81
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
|
|
82
|
+
const context = {
|
|
83
|
+
options: client._options,
|
|
84
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
85
|
+
operationID: "deployHelixAgent",
|
|
86
|
+
oAuth2Scopes: null,
|
|
87
|
+
resolvedSecurity: requestSecurity,
|
|
88
|
+
securitySource: client._options.security,
|
|
89
|
+
retryConfig: options?.retries
|
|
90
|
+
|| client._options.retryConfig
|
|
91
|
+
|| { strategy: "none" },
|
|
92
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
93
|
+
};
|
|
94
|
+
const requestRes = client._createRequest(context, {
|
|
95
|
+
security: requestSecurity,
|
|
96
|
+
method: "POST",
|
|
97
|
+
baseURL: options?.serverURL,
|
|
98
|
+
path: path,
|
|
99
|
+
headers: headers,
|
|
100
|
+
body: body,
|
|
101
|
+
userAgent: client._options.userAgent,
|
|
102
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
103
|
+
}, options);
|
|
104
|
+
if (!requestRes.ok) {
|
|
105
|
+
return [requestRes, { status: "invalid" }];
|
|
106
|
+
}
|
|
107
|
+
const req = requestRes.value;
|
|
108
|
+
const doResult = await client._do(req, {
|
|
109
|
+
context,
|
|
110
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
111
|
+
retryConfig: context.retryConfig,
|
|
112
|
+
retryCodes: context.retryCodes,
|
|
113
|
+
});
|
|
114
|
+
if (!doResult.ok) {
|
|
115
|
+
return [doResult, { status: "request-error", request: req }];
|
|
116
|
+
}
|
|
117
|
+
const response = doResult.value;
|
|
118
|
+
const responseFields = {
|
|
119
|
+
HttpMeta: { Response: response, Request: req },
|
|
120
|
+
};
|
|
121
|
+
const [result] = await M.match(M.json(200, operations.DeployHelixAgentResponse$inboundSchema), M.jsonErr([400, 404, 409, 413, 422, 428], errors.ErrorCodeMessage$inboundSchema), M.jsonErr(503, errors.ErrorCodeMessage$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
122
|
+
if (!result.ok) {
|
|
123
|
+
return [result, { status: "complete", request: req, response }];
|
|
124
|
+
}
|
|
125
|
+
return [result, { status: "complete", request: req, response }];
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=helix-agent-deployments-deploy-helix-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix-agent-deployments-deploy-helix-agent.js","sourceRoot":"","sources":["../../../src/funcs/helix-agent-deployments-deploy-helix-agent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,sFAuBC;AAxDD,+CAAiC;AAEjC,sDAA+D;AAC/D,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;GAOG;AACH,SAAgB,qCAAqC,CACnD,MAAoB,EACpB,OAA2C,EAC3C,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAA2C,EAC3C,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,sCAAsC,EAAE,KAAK,CAAC,EACnE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AAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,sCAAsC,CAAC,EAC9D,CAAC,CAAC,OAAO,CACP,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC9B,MAAM,CAAC,8BAA8B,CACtC,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,8BAA8B,CAAC,EACrD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MutagentCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Inspect managed agent deployment capabilities
|
|
13
|
+
*
|
|
14
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
15
|
+
*/
|
|
16
|
+
export declare function helixAgentDeploymentsGetHelixAgentCapabilities(client: MutagentCore, options?: RequestOptions): APIPromise<Result<operations.GetHelixAgentCapabilitiesResponse, errors.ErrorCodeMessage | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
+
//# sourceMappingURL=helix-agent-deployments-get-helix-agent-capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix-agent-deployments-get-helix-agent-capabilities.d.ts","sourceRoot":"","sources":["../../../src/funcs/helix-agent-deployments-get-helix-agent-capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;GAIG;AACH,wBAAgB,8CAA8C,CAC5D,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iCAAiC,EAC1C,MAAM,CAAC,gBAAgB,GACvB,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAKA"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.helixAgentDeploymentsGetHelixAgentCapabilities = helixAgentDeploymentsGetHelixAgentCapabilities;
|
|
40
|
+
const http_js_1 = require("../lib/http.js");
|
|
41
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
+
const security_js_1 = require("../lib/security.js");
|
|
44
|
+
const url_js_1 = require("../lib/url.js");
|
|
45
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
46
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
47
|
+
const async_js_1 = require("../types/async.js");
|
|
48
|
+
/**
|
|
49
|
+
* Inspect managed agent deployment capabilities
|
|
50
|
+
*
|
|
51
|
+
* If set, this operation will use either {@link Security.apiKey} or {@link Security.bearerAuth} from the global security.
|
|
52
|
+
*/
|
|
53
|
+
function helixAgentDeploymentsGetHelixAgentCapabilities(client, options) {
|
|
54
|
+
return new async_js_1.APIPromise($do(client, options));
|
|
55
|
+
}
|
|
56
|
+
async function $do(client, options) {
|
|
57
|
+
const path = (0, url_js_1.pathToFunc)("/api/helix-agent/capabilities")();
|
|
58
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
59
|
+
Accept: "application/json",
|
|
60
|
+
}));
|
|
61
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
62
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [0, 1]);
|
|
63
|
+
const context = {
|
|
64
|
+
options: client._options,
|
|
65
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
66
|
+
operationID: "getHelixAgentCapabilities",
|
|
67
|
+
oAuth2Scopes: null,
|
|
68
|
+
resolvedSecurity: requestSecurity,
|
|
69
|
+
securitySource: client._options.security,
|
|
70
|
+
retryConfig: options?.retries
|
|
71
|
+
|| client._options.retryConfig
|
|
72
|
+
|| { strategy: "none" },
|
|
73
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
74
|
+
};
|
|
75
|
+
const requestRes = client._createRequest(context, {
|
|
76
|
+
security: requestSecurity,
|
|
77
|
+
method: "GET",
|
|
78
|
+
baseURL: options?.serverURL,
|
|
79
|
+
path: path,
|
|
80
|
+
headers: headers,
|
|
81
|
+
userAgent: client._options.userAgent,
|
|
82
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
83
|
+
}, options);
|
|
84
|
+
if (!requestRes.ok) {
|
|
85
|
+
return [requestRes, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const req = requestRes.value;
|
|
88
|
+
const doResult = await client._do(req, {
|
|
89
|
+
context,
|
|
90
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
91
|
+
retryConfig: context.retryConfig,
|
|
92
|
+
retryCodes: context.retryCodes,
|
|
93
|
+
});
|
|
94
|
+
if (!doResult.ok) {
|
|
95
|
+
return [doResult, { status: "request-error", request: req }];
|
|
96
|
+
}
|
|
97
|
+
const response = doResult.value;
|
|
98
|
+
const responseFields = {
|
|
99
|
+
HttpMeta: { Response: response, Request: req },
|
|
100
|
+
};
|
|
101
|
+
const [result] = await M.match(M.json(200, operations.GetHelixAgentCapabilitiesResponse$inboundSchema), M.jsonErr([400, 404, 409, 413, 422, 428], errors.ErrorCodeMessage$inboundSchema), M.jsonErr(503, errors.ErrorCodeMessage$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
102
|
+
if (!result.ok) {
|
|
103
|
+
return [result, { status: "complete", request: req, response }];
|
|
104
|
+
}
|
|
105
|
+
return [result, { status: "complete", request: req, response }];
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=helix-agent-deployments-get-helix-agent-capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helix-agent-deployments-get-helix-agent-capabilities.js","sourceRoot":"","sources":["../../../src/funcs/helix-agent-deployments-get-helix-agent-capabilities.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,wGAqBC;AA/CD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAElD,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;GAIG;AACH,SAAgB,8CAA8C,CAC5D,MAAoB,EACpB,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAwB;IAkBxB,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,+BAA+B,CAAC,EAAE,CAAC;IAE3D,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAA,0BAAU,EAAC;QACrC,MAAM,EAAE,kBAAkB;KAC3B,CAAC,CAAC,CAAC;IAEJ,MAAM,aAAa,GAAG,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtE,MAAM,eAAe,GAAG,IAAA,mCAAqB,EAAC,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAErE,MAAM,OAAO,GAAG;QACd,OAAO,EAAE,MAAM,CAAC,QAAQ;QACxB,OAAO,EAAE,OAAO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