@mutagent/sdk 0.3.55 → 0.4.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 +15 -7
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-helix-defaults.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-helix-defaults.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-helix-defaults.js +108 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-helix-defaults.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.d.ts +1 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.d.ts.map +1 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.js +1 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.js.map +1 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-session.d.ts +1 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-session.d.ts.map +1 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-session.js +1 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-session.js.map +1 -1
- package/dist/commonjs/funcs/sandbox-put-api-sandbox-helix-defaults.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-put-api-sandbox-helix-defaults.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-put-api-sandbox-helix-defaults.js +119 -0
- package/dist/commonjs/funcs/sandbox-put-api-sandbox-helix-defaults.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/errors/error-message-model.d.ts +23 -0
- package/dist/commonjs/models/errors/error-message-model.d.ts.map +1 -0
- package/dist/commonjs/models/errors/error-message-model.js +71 -0
- package/dist/commonjs/models/errors/error-message-model.js.map +1 -0
- package/dist/commonjs/models/errors/error-message2.d.ts +20 -0
- package/dist/commonjs/models/errors/error-message2.d.ts.map +1 -0
- package/dist/commonjs/models/errors/error-message2.js +67 -0
- package/dist/commonjs/models/errors/error-message2.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +5 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +5 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.d.ts +45 -0
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.d.ts.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.js +95 -0
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.js.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-by-id-session.d.ts +45 -0
- package/dist/commonjs/models/errors/post-api-sandbox-by-id-session.d.ts.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-by-id-session.js +91 -0
- package/dist/commonjs/models/errors/post-api-sandbox-by-id-session.js.map +1 -0
- package/dist/commonjs/models/errors/put-api-sandbox-helix-defaults.d.ts +13 -0
- package/dist/commonjs/models/errors/put-api-sandbox-helix-defaults.d.ts.map +1 -0
- package/dist/commonjs/models/errors/put-api-sandbox-helix-defaults.js +17 -0
- package/dist/commonjs/models/errors/put-api-sandbox-helix-defaults.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/{mode-arm-args.d.ts → mode-arm-model.d.ts} +16 -11
- package/dist/commonjs/models/mode-arm-model.d.ts.map +1 -0
- package/dist/commonjs/models/{mode-arm-args.js → mode-arm-model.js} +12 -11
- package/dist/commonjs/models/mode-arm-model.js.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-helix-defaults.d.ts +45 -0
- package/dist/commonjs/models/operations/get-api-sandbox-helix-defaults.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-helix-defaults.js +67 -0
- package/dist/commonjs/models/operations/get-api-sandbox-helix-defaults.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/list-available-models.d.ts +4 -4
- package/dist/commonjs/models/operations/list-available-models.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list-available-models.js +6 -6
- package/dist/commonjs/models/operations/list-available-models.js.map +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.d.ts +18 -0
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.d.ts.map +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.js +24 -1
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.js.map +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.d.ts +20 -2
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.d.ts.map +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.js +25 -2
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.js.map +1 -1
- package/dist/commonjs/models/operations/put-api-sandbox-helix-defaults.d.ts +58 -0
- package/dist/commonjs/models/operations/put-api-sandbox-helix-defaults.d.ts.map +1 -0
- package/dist/commonjs/models/operations/put-api-sandbox-helix-defaults.js +75 -0
- package/dist/commonjs/models/operations/put-api-sandbox-helix-defaults.js.map +1 -0
- package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts +5 -0
- package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts.map +1 -1
- package/dist/commonjs/models/preset-timeout-ms-keep2.js +1 -0
- package/dist/commonjs/models/preset-timeout-ms-keep2.js.map +1 -1
- package/dist/commonjs/sdk/sandbox.d.ts +14 -0
- package/dist/commonjs/sdk/sandbox.d.ts.map +1 -1
- package/dist/commonjs/sdk/sandbox.js +20 -0
- package/dist/commonjs/sdk/sandbox.js.map +1 -1
- package/dist/esm/funcs/sandbox-get-api-sandbox-helix-defaults.d.ts +18 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-helix-defaults.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-helix-defaults.js +72 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-helix-defaults.js.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.d.ts +1 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.d.ts.map +1 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.js +1 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.js.map +1 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-session.d.ts +1 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-session.d.ts.map +1 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-session.js +1 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-session.js.map +1 -1
- package/dist/esm/funcs/sandbox-put-api-sandbox-helix-defaults.d.ts +18 -0
- package/dist/esm/funcs/sandbox-put-api-sandbox-helix-defaults.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-put-api-sandbox-helix-defaults.js +83 -0
- package/dist/esm/funcs/sandbox-put-api-sandbox-helix-defaults.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/errors/error-message-model.d.ts +23 -0
- package/dist/esm/models/errors/error-message-model.d.ts.map +1 -0
- package/dist/esm/models/errors/error-message-model.js +34 -0
- package/dist/esm/models/errors/error-message-model.js.map +1 -0
- package/dist/esm/models/errors/error-message2.d.ts +20 -0
- package/dist/esm/models/errors/error-message2.d.ts.map +1 -0
- package/dist/esm/models/errors/error-message2.js +30 -0
- package/dist/esm/models/errors/error-message2.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +5 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +5 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/post-api-sandbox-agent-run.d.ts +45 -0
- package/dist/esm/models/errors/post-api-sandbox-agent-run.d.ts.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-agent-run.js +57 -0
- package/dist/esm/models/errors/post-api-sandbox-agent-run.js.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-by-id-session.d.ts +45 -0
- package/dist/esm/models/errors/post-api-sandbox-by-id-session.d.ts.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-by-id-session.js +53 -0
- package/dist/esm/models/errors/post-api-sandbox-by-id-session.js.map +1 -0
- package/dist/esm/models/errors/put-api-sandbox-helix-defaults.d.ts +13 -0
- package/dist/esm/models/errors/put-api-sandbox-helix-defaults.d.ts.map +1 -0
- package/dist/esm/models/errors/put-api-sandbox-helix-defaults.js +13 -0
- package/dist/esm/models/errors/put-api-sandbox-helix-defaults.js.map +1 -0
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/{mode-arm-args.d.ts → mode-arm-model.d.ts} +16 -11
- package/dist/esm/models/mode-arm-model.d.ts.map +1 -0
- package/dist/esm/models/{mode-arm-args.js → mode-arm-model.js} +9 -8
- package/dist/esm/models/mode-arm-model.js.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-helix-defaults.d.ts +45 -0
- package/dist/esm/models/operations/get-api-sandbox-helix-defaults.d.ts.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-helix-defaults.js +29 -0
- package/dist/esm/models/operations/get-api-sandbox-helix-defaults.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/list-available-models.d.ts +4 -4
- package/dist/esm/models/operations/list-available-models.d.ts.map +1 -1
- package/dist/esm/models/operations/list-available-models.js +4 -4
- package/dist/esm/models/operations/list-available-models.js.map +1 -1
- package/dist/esm/models/operations/post-api-sandbox-agent-run.d.ts +18 -0
- package/dist/esm/models/operations/post-api-sandbox-agent-run.d.ts.map +1 -1
- package/dist/esm/models/operations/post-api-sandbox-agent-run.js +21 -0
- package/dist/esm/models/operations/post-api-sandbox-agent-run.js.map +1 -1
- package/dist/esm/models/operations/post-api-sandbox-by-id-session.d.ts +20 -2
- package/dist/esm/models/operations/post-api-sandbox-by-id-session.d.ts.map +1 -1
- package/dist/esm/models/operations/post-api-sandbox-by-id-session.js +22 -1
- package/dist/esm/models/operations/post-api-sandbox-by-id-session.js.map +1 -1
- package/dist/esm/models/operations/put-api-sandbox-helix-defaults.d.ts +58 -0
- package/dist/esm/models/operations/put-api-sandbox-helix-defaults.d.ts.map +1 -0
- package/dist/esm/models/operations/put-api-sandbox-helix-defaults.js +36 -0
- package/dist/esm/models/operations/put-api-sandbox-helix-defaults.js.map +1 -0
- package/dist/esm/models/preset-timeout-ms-keep2.d.ts +5 -0
- package/dist/esm/models/preset-timeout-ms-keep2.d.ts.map +1 -1
- package/dist/esm/models/preset-timeout-ms-keep2.js +1 -0
- package/dist/esm/models/preset-timeout-ms-keep2.js.map +1 -1
- package/dist/esm/sdk/sandbox.d.ts +14 -0
- package/dist/esm/sdk/sandbox.d.ts.map +1 -1
- package/dist/esm/sdk/sandbox.js +20 -0
- package/dist/esm/sdk/sandbox.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/sandbox-get-api-sandbox-helix-defaults.ts +156 -0
- package/src/funcs/sandbox-post-api-sandbox-agent-run.ts +14 -0
- package/src/funcs/sandbox-post-api-sandbox-by-id-session.ts +14 -0
- package/src/funcs/sandbox-put-api-sandbox-helix-defaults.ts +187 -0
- package/src/lib/config.ts +2 -2
- package/src/models/errors/error-message-model.ts +60 -0
- package/src/models/errors/error-message2.ts +54 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/errors/post-api-sandbox-agent-run.ts +123 -0
- package/src/models/errors/post-api-sandbox-by-id-session.ts +122 -0
- package/src/models/errors/put-api-sandbox-helix-defaults.ts +45 -0
- package/src/models/index.ts +1 -1
- package/src/models/{mode-arm-args.ts → mode-arm-model.ts} +24 -18
- package/src/models/operations/get-api-sandbox-helix-defaults.ts +91 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/list-available-models.ts +11 -8
- package/src/models/operations/post-api-sandbox-agent-run.ts +55 -0
- package/src/models/operations/post-api-sandbox-by-id-session.ts +59 -3
- package/src/models/operations/put-api-sandbox-helix-defaults.ts +121 -0
- package/src/models/preset-timeout-ms-keep2.ts +6 -0
- package/src/sdk/sandbox.ts +34 -0
- package/dist/commonjs/models/mode-arm-args.d.ts.map +0 -1
- package/dist/commonjs/models/mode-arm-args.js.map +0 -1
- package/dist/esm/models/mode-arm-args.d.ts.map +0 -1
- package/dist/esm/models/mode-arm-args.js.map +0 -1
package/README.md
CHANGED
|
@@ -772,6 +772,8 @@ run();
|
|
|
772
772
|
* [patchApiSandboxEnvironmentsByName](docs/sdks/sandbox/README.md#patchapisandboxenvironmentsbyname) - Set or unset entries of a workspace Environment
|
|
773
773
|
* [deleteApiSandboxEnvironmentsByName](docs/sdks/sandbox/README.md#deleteapisandboxenvironmentsbyname) - Delete a workspace Environment
|
|
774
774
|
* [postApiSandboxByIdSession](docs/sdks/sandbox/README.md#postapisandboxbyidsession) - Start a Helix session in a sandbox
|
|
775
|
+
* [getApiSandboxHelixDefaults](docs/sdks/sandbox/README.md#getapisandboxhelixdefaults) - List the workspace's Helix Cloud models and its default
|
|
776
|
+
* [putApiSandboxHelixDefaults](docs/sdks/sandbox/README.md#putapisandboxhelixdefaults) - Set the workspace's default Helix Cloud models
|
|
775
777
|
* [getApiSandboxByIdSessions](docs/sdks/sandbox/README.md#getapisandboxbyidsessions) - List the Helix sessions a sandbox is hosting
|
|
776
778
|
* [postApiSandboxByIdInput](docs/sdks/sandbox/README.md#postapisandboxbyidinput) - Write one line to a Helix session's stdin
|
|
777
779
|
* [postApiSandboxByIdSignal](docs/sdks/sandbox/README.md#postapisandboxbyidsignal) - Stop a running Helix session without destroying its sandbox
|
|
@@ -874,6 +876,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
874
876
|
- [`sandboxGetApiSandboxByIdTraces`](docs/sdks/sandbox/README.md#getapisandboxbyidtraces) - Read a sandbox's captured spans
|
|
875
877
|
- [`sandboxGetApiSandboxEnvironments`](docs/sdks/sandbox/README.md#getapisandboxenvironments) - List workspace Environments
|
|
876
878
|
- [`sandboxGetApiSandboxEnvironmentsByName`](docs/sdks/sandbox/README.md#getapisandboxenvironmentsbyname) - Describe one workspace Environment
|
|
879
|
+
- [`sandboxGetApiSandboxHelixDefaults`](docs/sdks/sandbox/README.md#getapisandboxhelixdefaults) - List the workspace's Helix Cloud models and its default
|
|
877
880
|
- [`sandboxGetApiSandboxPresets`](docs/sdks/sandbox/README.md#getapisandboxpresets) - List sandbox presets
|
|
878
881
|
- [`sandboxGetApiSandboxProviders`](docs/sdks/sandbox/README.md#getapisandboxproviders) - List sandbox providers
|
|
879
882
|
- [`sandboxPatchApiSandboxEnvironmentsByName`](docs/sdks/sandbox/README.md#patchapisandboxenvironmentsbyname) - Set or unset entries of a workspace Environment
|
|
@@ -890,6 +893,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
890
893
|
- [`sandboxPostApiSandboxTelemetryV1Traces`](docs/sdks/sandbox/README.md#postapisandboxtelemetryv1traces) - Ingest OTLP spans from inside a sandbox
|
|
891
894
|
- [`sandboxPostApiSandboxToken`](docs/sdks/sandbox/README.md#postapisandboxtoken) - Exchange a platform API key for a sandbox operator token
|
|
892
895
|
- [`sandboxPutApiSandboxEnvironmentsByName`](docs/sdks/sandbox/README.md#putapisandboxenvironmentsbyname) - Create or replace a workspace Environment
|
|
896
|
+
- [`sandboxPutApiSandboxHelixDefaults`](docs/sdks/sandbox/README.md#putapisandboxhelixdefaults) - Set the workspace's default Helix Cloud models
|
|
893
897
|
- [`tracesGetTrace`](docs/sdks/traces/README.md#gettrace) - Get one trace envelope
|
|
894
898
|
- [`tracesIngestTraceBatch`](docs/sdks/traces/README.md#ingesttracebatch) - Ingest a batch of traces (mutagent-cli hook format)
|
|
895
899
|
- [`tracesListLogs`](docs/sdks/traces/README.md#listlogs) - List recent log records
|
|
@@ -1076,7 +1080,7 @@ run();
|
|
|
1076
1080
|
* [`MutagentError`](./src/models/errors/mutagent-error.ts): The base class for HTTP error responses.
|
|
1077
1081
|
* [`ErrorMessage`](./src/models/errors/error-message.ts): *
|
|
1078
1082
|
|
|
1079
|
-
<details><summary>Less common errors (
|
|
1083
|
+
<details><summary>Less common errors (16)</summary>
|
|
1080
1084
|
|
|
1081
1085
|
<br />
|
|
1082
1086
|
|
|
@@ -1089,12 +1093,16 @@ run();
|
|
|
1089
1093
|
|
|
1090
1094
|
|
|
1091
1095
|
**Inherit from [`MutagentError`](./src/models/errors/mutagent-error.ts)**:
|
|
1092
|
-
* [`ErrorMessageStatusCode`](./src/models/errors/error-message-status-code.ts): Applicable to
|
|
1093
|
-
* [`ProviderError`](./src/models/errors/provider-error.ts): Standard error response. Applicable to 8 of
|
|
1094
|
-
* [`WsError`](./src/models/errors/ws-error.ts): Standard error response. Applicable to 6 of
|
|
1095
|
-
* [`
|
|
1096
|
-
* [`
|
|
1097
|
-
* [`
|
|
1096
|
+
* [`ErrorMessageStatusCode`](./src/models/errors/error-message-status-code.ts): Applicable to 53 of 81 methods.*
|
|
1097
|
+
* [`ProviderError`](./src/models/errors/provider-error.ts): Standard error response. Applicable to 8 of 81 methods.*
|
|
1098
|
+
* [`WsError`](./src/models/errors/ws-error.ts): Standard error response. Applicable to 6 of 81 methods.*
|
|
1099
|
+
* [`ErrorMessageModel`](./src/models/errors/error-message-model.ts): Response for status 422. Status code `422`. Applicable to 3 of 81 methods.*
|
|
1100
|
+
* [`ErrorMessage2`](./src/models/errors/error-message2.ts): Response for status 422. Status code `422`. Applicable to 3 of 81 methods.*
|
|
1101
|
+
* [`TestConnectionResultError`](./src/models/errors/test-connection-result-error.ts): Provider connection test result. Applicable to 1 of 81 methods.*
|
|
1102
|
+
* [`WorkspaceModelListingError`](./src/models/errors/workspace-model-listing-error.ts): A provider configuration's models, with this workspace's enablement applied. Applicable to 1 of 81 methods.*
|
|
1103
|
+
* [`PostApiSandboxByIdSessionNoProviderConfiguredError`](./src/models/errors/post-api-sandbox-by-id-session-no-provider-configured-error.ts): Response for status 428. Status code `428`. Applicable to 1 of 81 methods.*
|
|
1104
|
+
* [`PostApiSandboxAgentRunNoProviderConfiguredError`](./src/models/errors/post-api-sandbox-agent-run-no-provider-configured-error.ts): Response for status 428. Status code `428`. Applicable to 1 of 81 methods.*
|
|
1105
|
+
* [`ServiceUnavailableError`](./src/models/errors/service-unavailable-error.ts): Response for status 503. Status code `503`. Applicable to 1 of 81 methods.*
|
|
1098
1106
|
* [`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.
|
|
1099
1107
|
|
|
1100
1108
|
</details>
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
* List the workspace's Helix Cloud models and its default
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* The platform model catalog restricted to the workspace’s active LLM providers, each as `provider/model` in the harness spelling, plus the stored ordered defaults and the one a run naming no model would use now. Providers the box cannot credential are named in `unmapped`. `sandbox:read`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function sandboxGetApiSandboxHelixDefaults(client: MutagentCore, options?: RequestOptions): APIPromise<Result<operations.GetApiSandboxHelixDefaultsResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=sandbox-get-api-sandbox-helix-defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-get-api-sandbox-helix-defaults.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-get-api-sandbox-helix-defaults.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;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kCAAkC,EAC3C,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,sBAAsB,GAC7B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAKA"}
|
|
@@ -0,0 +1,108 @@
|
|
|
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.sandboxGetApiSandboxHelixDefaults = sandboxGetApiSandboxHelixDefaults;
|
|
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
|
+
* List the workspace's Helix Cloud models and its default
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* The platform model catalog restricted to the workspace’s active LLM providers, each as `provider/model` in the harness spelling, plus the stored ordered defaults and the one a run naming no model would use now. Providers the box cannot credential are named in `unmapped`. `sandbox:read`.
|
|
53
|
+
*/
|
|
54
|
+
function sandboxGetApiSandboxHelixDefaults(client, options) {
|
|
55
|
+
return new async_js_1.APIPromise($do(client, options));
|
|
56
|
+
}
|
|
57
|
+
async function $do(client, options) {
|
|
58
|
+
const path = (0, url_js_1.pathToFunc)("/api/sandbox/helix/defaults")();
|
|
59
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
60
|
+
Accept: "application/json",
|
|
61
|
+
}));
|
|
62
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
63
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
64
|
+
const context = {
|
|
65
|
+
options: client._options,
|
|
66
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
67
|
+
operationID: "getApiSandboxHelixDefaults",
|
|
68
|
+
oAuth2Scopes: null,
|
|
69
|
+
resolvedSecurity: requestSecurity,
|
|
70
|
+
securitySource: client._options.security,
|
|
71
|
+
retryConfig: options?.retries
|
|
72
|
+
|| client._options.retryConfig
|
|
73
|
+
|| { strategy: "none" },
|
|
74
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
75
|
+
};
|
|
76
|
+
const requestRes = client._createRequest(context, {
|
|
77
|
+
security: requestSecurity,
|
|
78
|
+
method: "GET",
|
|
79
|
+
baseURL: options?.serverURL,
|
|
80
|
+
path: path,
|
|
81
|
+
headers: headers,
|
|
82
|
+
userAgent: client._options.userAgent,
|
|
83
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
84
|
+
}, options);
|
|
85
|
+
if (!requestRes.ok) {
|
|
86
|
+
return [requestRes, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const req = requestRes.value;
|
|
89
|
+
const doResult = await client._do(req, {
|
|
90
|
+
context,
|
|
91
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
92
|
+
retryConfig: context.retryConfig,
|
|
93
|
+
retryCodes: context.retryCodes,
|
|
94
|
+
});
|
|
95
|
+
if (!doResult.ok) {
|
|
96
|
+
return [doResult, { status: "request-error", request: req }];
|
|
97
|
+
}
|
|
98
|
+
const response = doResult.value;
|
|
99
|
+
const responseFields = {
|
|
100
|
+
HttpMeta: { Response: response, Request: req },
|
|
101
|
+
};
|
|
102
|
+
const [result] = await M.match(M.json(200, operations.GetApiSandboxHelixDefaultsResponse$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema), M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
103
|
+
if (!result.ok) {
|
|
104
|
+
return [result, { status: "complete", request: req, response }];
|
|
105
|
+
}
|
|
106
|
+
return [result, { status: "complete", request: req, response }];
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=sandbox-get-api-sandbox-helix-defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-get-api-sandbox-helix-defaults.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-get-api-sandbox-helix-defaults.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,8EAsBC;AAjDD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAElD,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,iCAAiC,CAC/C,MAAoB,EACpB,OAAwB;IAgBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAwB;IAmBxB,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,6BAA6B,CAAC,EAAE,CAAC;IAEzD,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,a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|
@@ -14,5 +14,5 @@ import { Result } from "../types/fp.js";
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* `prompt` is WHO the agent is (the agent definition) and `task` is WHAT to do this turn. They are two different prompts and are never concatenated. `prompt` may be omitted when `args` carries `--name <agent>` instead — the box's own helix then resolves the name against the image's bundled roster and its agent dirs; exactly one of the two is required (422 otherwise). The turn's output comes back on stdout with the agent's real exit code. With `?stream=1` the same turn is delivered as it happens, in the event framing of `GET /:id/stream`: a `sandbox` event naming the box, then `stdout`/`stderr` as the agent produces them, then a `result` event carrying the exit code and whether the sandbox was torn down, then the terminal `status`. Disconnecting mid-stream releases the sandbox.
|
|
16
16
|
*/
|
|
17
|
-
export declare function sandboxPostApiSandboxAgentRun(client: MutagentCore, request: operations.PostApiSandboxAgentRunRequest, options?: RequestOptions): APIPromise<Result<operations.PostApiSandboxAgentRunResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
+
export declare function sandboxPostApiSandboxAgentRun(client: MutagentCore, request: operations.PostApiSandboxAgentRunRequest, options?: RequestOptions): APIPromise<Result<operations.PostApiSandboxAgentRunResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | errors.PostApiSandboxAgentRunUnprocessableEntity | errors.PostApiSandboxAgentRunNoProviderConfiguredError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=sandbox-post-api-sandbox-agent-run.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-post-api-sandbox-agent-run.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-post-api-sandbox-agent-run.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;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,8BAA8B,EACvC,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,sBAAsB,GAC7B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
1
|
+
{"version":3,"file":"sandbox-post-api-sandbox-agent-run.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-post-api-sandbox-agent-run.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;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,8BAA8B,EACvC,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,sBAAsB,GAC7B,MAAM,CAAC,yCAAyC,GAChD,MAAM,CAAC,+CAA+C,GACtD,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -114,7 +114,7 @@ async function $do(client, request, options) {
|
|
|
114
114
|
const responseFields = {
|
|
115
115
|
HttpMeta: { Response: response, Request: req },
|
|
116
116
|
};
|
|
117
|
-
const [result] = await M.match(M.json(200, operations.PostApiSandboxAgentRunResponse$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema), M.jsonErr(409, errors.ErrorMessageStatusCode$inboundSchema), M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
117
|
+
const [result] = await M.match(M.json(200, operations.PostApiSandboxAgentRunResponse$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema), M.jsonErr(409, errors.ErrorMessageStatusCode$inboundSchema), M.jsonErr(422, errors.PostApiSandboxAgentRunUnprocessableEntity$inboundSchema), M.jsonErr(428, errors.PostApiSandboxAgentRunNoProviderConfiguredError$inboundSchema), M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
118
118
|
if (!result.ok) {
|
|
119
119
|
return [result, { status: "complete", request: req, response }];
|
|
120
120
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-post-api-sandbox-agent-run.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-post-api-sandbox-agent-run.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,
|
|
1
|
+
{"version":3,"file":"sandbox-post-api-sandbox-agent-run.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-post-api-sandbox-agent-run.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,sEA0BC;AAzDD,+CAAiC;AAEjC,sDAAkE;AAClE,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,6BAA6B,CAC3C,MAAoB,EACpB,OAAiD,EACjD,OAAwB;IAkBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAiD,EACjD,OAAwB;IAqBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,4CAA4C,EAAE,KAAK,CAAC,EACzE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC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IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAe5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,4CAA4C,CAAC,EACpE,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,0BAA0B,CAAC,EAClE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,oCAAoC,CAAC,EAC3D,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,uDAAuD,CAC/D,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,6DAA6D,CACrE,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,oCAAoC,CAAC,EAC3D,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"}
|
|
@@ -14,5 +14,5 @@ import { Result } from "../types/fp.js";
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* Returns as soon as the session is running — the run continues in the background and its output arrives on `GET /:id/stream`, not in this response. With `mode: "rpc"` the session is duplex: it emits `rpc` events on the stream and accepts `POST /:id/input`. `mode` defaults to `oneshot`, which is the pre-existing behaviour and has no stdin. A task token is rejected: starting an agent is driving the box.
|
|
16
16
|
*/
|
|
17
|
-
export declare function sandboxPostApiSandboxByIdSession(client: MutagentCore, request: operations.PostApiSandboxByIdSessionRequest, options?: RequestOptions): APIPromise<Result<operations.PostApiSandboxByIdSessionResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
+
export declare function sandboxPostApiSandboxByIdSession(client: MutagentCore, request: operations.PostApiSandboxByIdSessionRequest, options?: RequestOptions): APIPromise<Result<operations.PostApiSandboxByIdSessionResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | errors.PostApiSandboxByIdSessionUnprocessableEntity | errors.PostApiSandboxByIdSessionNoProviderConfiguredError | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=sandbox-post-api-sandbox-by-id-session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-post-api-sandbox-by-id-session.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-post-api-sandbox-by-id-session.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;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iCAAiC,EAC1C,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,sBAAsB,GAC7B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
1
|
+
{"version":3,"file":"sandbox-post-api-sandbox-by-id-session.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-post-api-sandbox-by-id-session.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;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iCAAiC,EAC1C,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,sBAAsB,GAC7B,MAAM,CAAC,4CAA4C,GACnD,MAAM,CAAC,kDAAkD,GACzD,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -116,7 +116,7 @@ async function $do(client, request, options) {
|
|
|
116
116
|
const responseFields = {
|
|
117
117
|
HttpMeta: { Response: response, Request: req },
|
|
118
118
|
};
|
|
119
|
-
const [result] = await M.match(M.json(200, operations.PostApiSandboxByIdSessionResponse$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema), M.jsonErr(409, errors.ErrorMessageStatusCode$inboundSchema), M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
119
|
+
const [result] = await M.match(M.json(200, operations.PostApiSandboxByIdSessionResponse$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema), M.jsonErr(409, errors.ErrorMessageStatusCode$inboundSchema), M.jsonErr(422, errors.PostApiSandboxByIdSessionUnprocessableEntity$inboundSchema), M.jsonErr(428, errors.PostApiSandboxByIdSessionNoProviderConfiguredError$inboundSchema), M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
120
120
|
if (!result.ok) {
|
|
121
121
|
return [result, { status: "complete", request: req, response }];
|
|
122
122
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-post-api-sandbox-by-id-session.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-post-api-sandbox-by-id-session.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,
|
|
1
|
+
{"version":3,"file":"sandbox-post-api-sandbox-by-id-session.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-post-api-sandbox-by-id-session.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,4EA0BC;AAzDD,+CAAiC;AAEjC,sDAA+D;AAC/D,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,gCAAgC,CAC9C,MAAoB,EACpB,OAAoD,EACpD,OAAwB;IAkBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAAoD,EACpD,OAAwB;IAqBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CACL,UAAU,CAAC,+CAA+C,EAC1D,KAAK,CACN,EACH,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAEjE,MAAM,UAAU,GAAG;QACjB,EAAE,EAAE,IAAA,2BAAY,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE;YACjC,OAAO,EAAE,KAA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O,CACP,GAAG,EACH,MAAM,CAAC,0DAA0D,CAClE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,gEAAgE,CACxE,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,oCAAoC,CAAC,EAC3D,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,18 @@
|
|
|
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
|
+
* Set the workspace's default Helix Cloud models
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Replaces the ordered list; the first entry becomes the default for session starts and agent runs that name no model. Every entry must be in the workspace’s list (422 names the list). `[]` clears the defaults, after which such runs answer 428 NO_PROVIDER_CONFIGURED. Operator tokens only. 409 `HELIX_DEFAULTS_UNAVAILABLE` when this server has no Helix Cloud model source configured.
|
|
16
|
+
*/
|
|
17
|
+
export declare function sandboxPutApiSandboxHelixDefaults(client: MutagentCore, request: operations.PutApiSandboxHelixDefaultsRequest, options?: RequestOptions): APIPromise<Result<operations.PutApiSandboxHelixDefaultsResponse, errors.ErrorMessage | errors.ErrorMessageStatusCode | errors.PutApiSandboxHelixDefaultsUnprocessableEntity | MutagentError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=sandbox-put-api-sandbox-helix-defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-put-api-sandbox-helix-defaults.d.ts","sourceRoot":"","sources":["../../../src/funcs/sandbox-put-api-sandbox-helix-defaults.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;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kCAAkC,EAC3C,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,sBAAsB,GAC7B,MAAM,CAAC,6CAA6C,GACpD,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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.sandboxPutApiSandboxHelixDefaults = sandboxPutApiSandboxHelixDefaults;
|
|
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
|
+
* Set the workspace's default Helix Cloud models
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* Replaces the ordered list; the first entry becomes the default for session starts and agent runs that name no model. Every entry must be in the workspace’s list (422 names the list). `[]` clears the defaults, after which such runs answer 428 NO_PROVIDER_CONFIGURED. Operator tokens only. 409 `HELIX_DEFAULTS_UNAVAILABLE` when this server has no Helix Cloud model source configured.
|
|
56
|
+
*/
|
|
57
|
+
function sandboxPutApiSandboxHelixDefaults(client, request, options) {
|
|
58
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
59
|
+
}
|
|
60
|
+
async function $do(client, request, options) {
|
|
61
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(operations.PutApiSandboxHelixDefaultsRequest$outboundSchema, value), "Input validation failed");
|
|
62
|
+
if (!parsed.ok) {
|
|
63
|
+
return [parsed, { status: "invalid" }];
|
|
64
|
+
}
|
|
65
|
+
const payload = parsed.value;
|
|
66
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
67
|
+
const path = (0, url_js_1.pathToFunc)("/api/sandbox/helix/defaults")();
|
|
68
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
69
|
+
"Content-Type": "application/json",
|
|
70
|
+
Accept: "application/json",
|
|
71
|
+
}));
|
|
72
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
73
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
74
|
+
const context = {
|
|
75
|
+
options: client._options,
|
|
76
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
77
|
+
operationID: "putApiSandboxHelixDefaults",
|
|
78
|
+
oAuth2Scopes: null,
|
|
79
|
+
resolvedSecurity: requestSecurity,
|
|
80
|
+
securitySource: client._options.security,
|
|
81
|
+
retryConfig: options?.retries
|
|
82
|
+
|| client._options.retryConfig
|
|
83
|
+
|| { strategy: "none" },
|
|
84
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
85
|
+
};
|
|
86
|
+
const requestRes = client._createRequest(context, {
|
|
87
|
+
security: requestSecurity,
|
|
88
|
+
method: "PUT",
|
|
89
|
+
baseURL: options?.serverURL,
|
|
90
|
+
path: path,
|
|
91
|
+
headers: headers,
|
|
92
|
+
body: body,
|
|
93
|
+
userAgent: client._options.userAgent,
|
|
94
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
95
|
+
}, options);
|
|
96
|
+
if (!requestRes.ok) {
|
|
97
|
+
return [requestRes, { status: "invalid" }];
|
|
98
|
+
}
|
|
99
|
+
const req = requestRes.value;
|
|
100
|
+
const doResult = await client._do(req, {
|
|
101
|
+
context,
|
|
102
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
103
|
+
retryConfig: context.retryConfig,
|
|
104
|
+
retryCodes: context.retryCodes,
|
|
105
|
+
});
|
|
106
|
+
if (!doResult.ok) {
|
|
107
|
+
return [doResult, { status: "request-error", request: req }];
|
|
108
|
+
}
|
|
109
|
+
const response = doResult.value;
|
|
110
|
+
const responseFields = {
|
|
111
|
+
HttpMeta: { Response: response, Request: req },
|
|
112
|
+
};
|
|
113
|
+
const [result] = await M.match(M.json(200, operations.PutApiSandboxHelixDefaultsResponse$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema), M.jsonErr(409, errors.ErrorMessageStatusCode$inboundSchema), M.jsonErr(422, errors.PutApiSandboxHelixDefaultsUnprocessableEntity$inboundSchema), M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
114
|
+
if (!result.ok) {
|
|
115
|
+
return [result, { status: "complete", request: req, response }];
|
|
116
|
+
}
|
|
117
|
+
return [result, { status: "complete", request: req, response }];
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=sandbox-put-api-sandbox-helix-defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-put-api-sandbox-helix-defaults.js","sourceRoot":"","sources":["../../../src/funcs/sandbox-put-api-sandbox-helix-defaults.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,8EAyBC;AAxDD,+CAAiC;AAEjC,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4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|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "2.0.0";
|
|
38
|
-
readonly sdkVersion: "0.
|
|
38
|
+
readonly sdkVersion: "0.4.1";
|
|
39
39
|
readonly genVersion: "2.935.1";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.4.1 2.935.1 2.0.0 @mutagent/sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "2.0.0",
|
|
34
|
-
sdkVersion: "0.
|
|
34
|
+
sdkVersion: "0.4.1",
|
|
35
35
|
genVersion: "2.935.1",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.4.1 2.935.1 2.0.0 @mutagent/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA6CH,oDAeC;AAtDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,uBAAuB;CACf,CAAC;AA6BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,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A,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,4DAA4D;CAC/D,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { MutagentError } from "./mutagent-error.js";
|
|
3
|
+
export type ErrorMessageModelData = {
|
|
4
|
+
error: string;
|
|
5
|
+
message: string;
|
|
6
|
+
model: string;
|
|
7
|
+
available: Array<string>;
|
|
8
|
+
};
|
|
9
|
+
export declare class ErrorMessageModel extends MutagentError {
|
|
10
|
+
error: string;
|
|
11
|
+
model: string;
|
|
12
|
+
available: Array<string>;
|
|
13
|
+
/** The original data that was passed to this error instance. */
|
|
14
|
+
data$: ErrorMessageModelData;
|
|
15
|
+
constructor(err: ErrorMessageModelData, httpMeta: {
|
|
16
|
+
response: Response;
|
|
17
|
+
request: Request;
|
|
18
|
+
body: string;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const ErrorMessageModel$inboundSchema: z.ZodMiniType<ErrorMessageModel, unknown>;
|
|
23
|
+
//# sourceMappingURL=error-message-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-message-model.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/error-message-model.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,aAAa;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB,gEAAgE;IAChE,KAAK,EAAE,qBAAqB,CAAC;gBAG3B,GAAG,EAAE,qBAAqB,EAC1B,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAWnE;AAED,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,iBAAiB,EACjB,OAAO,CAkBR,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.ErrorMessageModel$inboundSchema = exports.ErrorMessageModel = void 0;
|
|
40
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
41
|
+
const types = __importStar(require("../../types/primitives.js"));
|
|
42
|
+
const mutagent_error_js_1 = require("./mutagent-error.js");
|
|
43
|
+
class ErrorMessageModel extends mutagent_error_js_1.MutagentError {
|
|
44
|
+
constructor(err, httpMeta) {
|
|
45
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
46
|
+
super(message, httpMeta);
|
|
47
|
+
this.data$ = err;
|
|
48
|
+
this.error = err.error;
|
|
49
|
+
this.model = err.model;
|
|
50
|
+
this.available = err.available;
|
|
51
|
+
this.name = "ErrorMessageModel";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.ErrorMessageModel = ErrorMessageModel;
|
|
55
|
+
/** @internal */
|
|
56
|
+
exports.ErrorMessageModel$inboundSchema = z.pipe(z.object({
|
|
57
|
+
error: types.string(),
|
|
58
|
+
message: types.string(),
|
|
59
|
+
model: types.string(),
|
|
60
|
+
available: z.array(types.string()),
|
|
61
|
+
request$: z.custom(x => x instanceof Request),
|
|
62
|
+
response$: z.custom(x => x instanceof Response),
|
|
63
|
+
body$: z.string(),
|
|
64
|
+
}), z.transform((v) => {
|
|
65
|
+
return new ErrorMessageModel(v, {
|
|
66
|
+
request: v.request$,
|
|
67
|
+
response: v.response$,
|
|
68
|
+
body: v.body$,
|
|
69
|
+
});
|
|
70
|
+
}));
|
|
71
|
+
//# sourceMappingURL=error-message-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-message-model.js","sourceRoot":"","sources":["../../../../src/models/errors/error-message-model.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAAiC;AACjC,iEAAmD;AACnD,2DAAoD;AASpD,MAAa,iBAAkB,SAAQ,iCAAa;IAQlD,YACE,GAA0B,EAC1B,QAAgE;QAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAE/B,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AArBD,8CAqBC;AAED,gBAAgB;AACH,QAAA,+BAA+B,GAGxC,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAU,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,OAAO,CAAC;IACtD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAW,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,QAAQ,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAI,iBAAiB,CAAC,CAAC,EAAE;QAC9B,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { MutagentError } from "./mutagent-error.js";
|
|
3
|
+
export type ErrorMessage2Data = {
|
|
4
|
+
error: string;
|
|
5
|
+
message: string;
|
|
6
|
+
[additionalProperties: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
export declare class ErrorMessage2 extends MutagentError {
|
|
9
|
+
error: string;
|
|
10
|
+
/** The original data that was passed to this error instance. */
|
|
11
|
+
data$: ErrorMessage2Data;
|
|
12
|
+
constructor(err: ErrorMessage2Data, httpMeta: {
|
|
13
|
+
response: Response;
|
|
14
|
+
request: Request;
|
|
15
|
+
body: string;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const ErrorMessage2$inboundSchema: z.ZodMiniType<ErrorMessage2, unknown>;
|
|
20
|
+
//# sourceMappingURL=error-message2.d.ts.map
|