@boatdev/sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +259 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/LICENSE +21 -0
- package/README.md +151 -0
- package/dist/apis/BoatApi.d.ts +1275 -0
- package/dist/apis/BoatApi.js +3084 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/boat-helpers.d.ts +56 -0
- package/dist/boat-helpers.js +176 -0
- package/dist/esm/apis/BoatApi.d.ts +1275 -0
- package/dist/esm/apis/BoatApi.js +3047 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/boat-helpers.d.ts +56 -0
- package/dist/esm/boat-helpers.js +163 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/models/AddEnvironmentRepoRequest.d.ts +38 -0
- package/dist/esm/models/AddEnvironmentRepoRequest.js +45 -0
- package/dist/esm/models/ApiKey.d.ts +121 -0
- package/dist/esm/models/ApiKey.js +97 -0
- package/dist/esm/models/ApiKeyCatalog.d.ts +65 -0
- package/dist/esm/models/ApiKeyCatalog.js +62 -0
- package/dist/esm/models/ApiKeyCatalogScopeResources.d.ts +39 -0
- package/dist/esm/models/ApiKeyCatalogScopeResources.js +48 -0
- package/dist/esm/models/ApiKeyCreatedResource.d.ts +64 -0
- package/dist/esm/models/ApiKeyCreatedResource.js +66 -0
- package/dist/esm/models/ApiKeyRequestUsage.d.ts +45 -0
- package/dist/esm/models/ApiKeyRequestUsage.js +53 -0
- package/dist/esm/models/ApiKeyResourceTotals.d.ts +44 -0
- package/dist/esm/models/ApiKeyResourceTotals.js +51 -0
- package/dist/esm/models/ApiKeyRevokeResponse.d.ts +45 -0
- package/dist/esm/models/ApiKeyRevokeResponse.js +52 -0
- package/dist/esm/models/ApiKeyScope.d.ts +57 -0
- package/dist/esm/models/ApiKeyScope.js +50 -0
- package/dist/esm/models/ApiKeyScopeResource.d.ts +50 -0
- package/dist/esm/models/ApiKeyScopeResource.js +55 -0
- package/dist/esm/models/ApiKeyScopeSandboxes.d.ts +21 -0
- package/dist/esm/models/ApiKeyScopeSandboxes.js +47 -0
- package/dist/esm/models/ApiKeySecretResponse.d.ts +57 -0
- package/dist/esm/models/ApiKeySecretResponse.js +60 -0
- package/dist/esm/models/ApiKeyUsageResponse.d.ts +140 -0
- package/dist/esm/models/ApiKeyUsageResponse.js +110 -0
- package/dist/esm/models/ApiKeysResponse.d.ts +52 -0
- package/dist/esm/models/ApiKeysResponse.js +57 -0
- package/dist/esm/models/Command200Response.d.ts +23 -0
- package/dist/esm/models/Command200Response.js +51 -0
- package/dist/esm/models/CommandRequest.d.ts +50 -0
- package/dist/esm/models/CommandRequest.js +49 -0
- package/dist/esm/models/CommandResponse.d.ts +111 -0
- package/dist/esm/models/CommandResponse.js +85 -0
- package/dist/esm/models/CommandStartedResponse.d.ts +93 -0
- package/dist/esm/models/CommandStartedResponse.js +79 -0
- package/dist/esm/models/CommandStatusResponse.d.ts +162 -0
- package/dist/esm/models/CommandStatusResponse.js +111 -0
- package/dist/esm/models/CompletionEvent.d.ts +65 -0
- package/dist/esm/models/CompletionEvent.js +63 -0
- package/dist/esm/models/Conversation.d.ts +80 -0
- package/dist/esm/models/Conversation.js +75 -0
- package/dist/esm/models/ConversationsResponse.d.ts +58 -0
- package/dist/esm/models/ConversationsResponse.js +62 -0
- package/dist/esm/models/CreateSandboxEnvironmentRequest.d.ts +32 -0
- package/dist/esm/models/CreateSandboxEnvironmentRequest.js +43 -0
- package/dist/esm/models/CreateSandboxRequest.d.ts +92 -0
- package/dist/esm/models/CreateSandboxRequest.js +66 -0
- package/dist/esm/models/CreateSandboxResponse.d.ts +71 -0
- package/dist/esm/models/CreateSandboxResponse.js +72 -0
- package/dist/esm/models/CreateScopedApiKey503Response.d.ts +58 -0
- package/dist/esm/models/CreateScopedApiKey503Response.js +63 -0
- package/dist/esm/models/CreateScopedApiKeyRequest.d.ts +72 -0
- package/dist/esm/models/CreateScopedApiKeyRequest.js +60 -0
- package/dist/esm/models/DataRetentionPolicyResponse.d.ts +70 -0
- package/dist/esm/models/DataRetentionPolicyResponse.js +66 -0
- package/dist/esm/models/DataRetentionUpdateRequest.d.ts +45 -0
- package/dist/esm/models/DataRetentionUpdateRequest.js +51 -0
- package/dist/esm/models/DeletionOperation.d.ts +101 -0
- package/dist/esm/models/DeletionOperation.js +95 -0
- package/dist/esm/models/DeletionOperationResponse.d.ts +54 -0
- package/dist/esm/models/DeletionOperationResponse.js +60 -0
- package/dist/esm/models/DesktopRequest.d.ts +33 -0
- package/dist/esm/models/DesktopRequest.js +43 -0
- package/dist/esm/models/DesktopResponse.d.ts +74 -0
- package/dist/esm/models/DesktopResponse.js +59 -0
- package/dist/esm/models/EnvironmentItemChangeResponse.d.ts +44 -0
- package/dist/esm/models/EnvironmentItemChangeResponse.js +47 -0
- package/dist/esm/models/ErrorEnvelope.d.ts +69 -0
- package/dist/esm/models/ErrorEnvelope.js +68 -0
- package/dist/esm/models/ErrorEnvelopeError.d.ts +52 -0
- package/dist/esm/models/ErrorEnvelopeError.js +53 -0
- package/dist/esm/models/ErrorEvent.d.ts +65 -0
- package/dist/esm/models/ErrorEvent.js +63 -0
- package/dist/esm/models/EventsResponse.d.ts +65 -0
- package/dist/esm/models/EventsResponse.js +65 -0
- package/dist/esm/models/FileReadResponse.d.ts +83 -0
- package/dist/esm/models/FileReadResponse.js +80 -0
- package/dist/esm/models/FileWriteRequest.d.ts +52 -0
- package/dist/esm/models/FileWriteRequest.js +56 -0
- package/dist/esm/models/FileWriteResponse.d.ts +77 -0
- package/dist/esm/models/FileWriteResponse.js +76 -0
- package/dist/esm/models/ForkRequest.d.ts +68 -0
- package/dist/esm/models/ForkRequest.js +58 -0
- package/dist/esm/models/HostPortRequest.d.ts +44 -0
- package/dist/esm/models/HostPortRequest.js +47 -0
- package/dist/esm/models/HostPortResponse.d.ts +76 -0
- package/dist/esm/models/HostPortResponse.js +64 -0
- package/dist/esm/models/LimitsFields.d.ts +262 -0
- package/dist/esm/models/LimitsFields.js +128 -0
- package/dist/esm/models/LimitsFieldsCurrentLimits.d.ts +45 -0
- package/dist/esm/models/LimitsFieldsCurrentLimits.js +47 -0
- package/dist/esm/models/LimitsFieldsStartLimits.d.ts +44 -0
- package/dist/esm/models/LimitsFieldsStartLimits.js +45 -0
- package/dist/esm/models/LimitsFieldsStarts.d.ts +51 -0
- package/dist/esm/models/LimitsFieldsStarts.js +48 -0
- package/dist/esm/models/LimitsResponse.d.ts +273 -0
- package/dist/esm/models/LimitsResponse.js +134 -0
- package/dist/esm/models/MeResponse.d.ts +52 -0
- package/dist/esm/models/MeResponse.js +58 -0
- package/dist/esm/models/MeResponseAllOfUser.d.ts +50 -0
- package/dist/esm/models/MeResponseAllOfUser.js +47 -0
- package/dist/esm/models/NamedSnapshot.d.ts +83 -0
- package/dist/esm/models/NamedSnapshot.js +71 -0
- package/dist/esm/models/NamedSnapshotDeletedResponse.d.ts +64 -0
- package/dist/esm/models/NamedSnapshotDeletedResponse.js +67 -0
- package/dist/esm/models/NamedSnapshotInfoResponse.d.ts +52 -0
- package/dist/esm/models/NamedSnapshotInfoResponse.js +58 -0
- package/dist/esm/models/NamedSnapshotListResponse.d.ts +52 -0
- package/dist/esm/models/NamedSnapshotListResponse.js +58 -0
- package/dist/esm/models/NamedSnapshotSaveRequest.d.ts +38 -0
- package/dist/esm/models/NamedSnapshotSaveRequest.js +47 -0
- package/dist/esm/models/NamedSnapshotSavingResponse.d.ts +65 -0
- package/dist/esm/models/NamedSnapshotSavingResponse.js +68 -0
- package/dist/esm/models/PageInfo.d.ts +44 -0
- package/dist/esm/models/PageInfo.js +51 -0
- package/dist/esm/models/PromptEvent.d.ts +70 -0
- package/dist/esm/models/PromptEvent.js +66 -0
- package/dist/esm/models/PromptEventData.d.ts +56 -0
- package/dist/esm/models/PromptEventData.js +60 -0
- package/dist/esm/models/PromptRequest.d.ts +84 -0
- package/dist/esm/models/PromptRequest.js +69 -0
- package/dist/esm/models/PromptResponse.d.ts +101 -0
- package/dist/esm/models/PromptResponse.js +86 -0
- package/dist/esm/models/PromptRun.d.ts +92 -0
- package/dist/esm/models/PromptRun.js +78 -0
- package/dist/esm/models/PromptRunResponse.d.ts +58 -0
- package/dist/esm/models/PromptRunResponse.js +62 -0
- package/dist/esm/models/RepoSelectionRequest.d.ts +38 -0
- package/dist/esm/models/RepoSelectionRequest.js +45 -0
- package/dist/esm/models/RepoSelectionResponse.d.ts +57 -0
- package/dist/esm/models/RepoSelectionResponse.js +60 -0
- package/dist/esm/models/ReposResponse.d.ts +65 -0
- package/dist/esm/models/ReposResponse.js +64 -0
- package/dist/esm/models/Repository.d.ts +69 -0
- package/dist/esm/models/Repository.js +55 -0
- package/dist/esm/models/RepositoryInstallation.d.ts +51 -0
- package/dist/esm/models/RepositoryInstallation.js +48 -0
- package/dist/esm/models/ResponseEvent.d.ts +70 -0
- package/dist/esm/models/ResponseEvent.js +66 -0
- package/dist/esm/models/ResponseEventData.d.ts +52 -0
- package/dist/esm/models/ResponseEventData.js +49 -0
- package/dist/esm/models/ResumeRequest.d.ts +68 -0
- package/dist/esm/models/ResumeRequest.js +58 -0
- package/dist/esm/models/RotateApiKey409Response.d.ts +45 -0
- package/dist/esm/models/RotateApiKey409Response.js +53 -0
- package/dist/esm/models/Sandbox.d.ts +211 -0
- package/dist/esm/models/Sandbox.js +138 -0
- package/dist/esm/models/SandboxActionResponse.d.ts +57 -0
- package/dist/esm/models/SandboxActionResponse.js +58 -0
- package/dist/esm/models/SandboxEnvironment.d.ts +107 -0
- package/dist/esm/models/SandboxEnvironment.js +92 -0
- package/dist/esm/models/SandboxEnvironmentListResponse.d.ts +33 -0
- package/dist/esm/models/SandboxEnvironmentListResponse.js +44 -0
- package/dist/esm/models/SandboxEnvironmentResponse.d.ts +39 -0
- package/dist/esm/models/SandboxEnvironmentResponse.js +46 -0
- package/dist/esm/models/SandboxEnvironmentVersionSummary.d.ts +50 -0
- package/dist/esm/models/SandboxEnvironmentVersionSummary.js +55 -0
- package/dist/esm/models/SandboxEvent.d.ts +65 -0
- package/dist/esm/models/SandboxEvent.js +55 -0
- package/dist/esm/models/SandboxInfoResponse.d.ts +45 -0
- package/dist/esm/models/SandboxInfoResponse.js +52 -0
- package/dist/esm/models/SandboxListResponse.d.ts +59 -0
- package/dist/esm/models/SandboxListResponse.js +61 -0
- package/dist/esm/models/SandboxUsageResponse.d.ts +102 -0
- package/dist/esm/models/SandboxUsageResponse.js +92 -0
- package/dist/esm/models/SecretFile.d.ts +38 -0
- package/dist/esm/models/SecretFile.js +47 -0
- package/dist/esm/models/SecretsResponse.d.ts +71 -0
- package/dist/esm/models/SecretsResponse.js +64 -0
- package/dist/esm/models/SecretsUpdateRequest.d.ts +39 -0
- package/dist/esm/models/SecretsUpdateRequest.js +44 -0
- package/dist/esm/models/SelectedRepository.d.ts +92 -0
- package/dist/esm/models/SelectedRepository.js +61 -0
- package/dist/esm/models/SetEnvironmentSecretFileRequest.d.ts +38 -0
- package/dist/esm/models/SetEnvironmentSecretFileRequest.js +47 -0
- package/dist/esm/models/SetEnvironmentVarRequest.d.ts +32 -0
- package/dist/esm/models/SetEnvironmentVarRequest.js +43 -0
- package/dist/esm/models/SnapshotChunk.d.ts +68 -0
- package/dist/esm/models/SnapshotChunk.js +67 -0
- package/dist/esm/models/SnapshotDownloadResponse.d.ts +104 -0
- package/dist/esm/models/SnapshotDownloadResponse.js +93 -0
- package/dist/esm/models/SnapshotDownloadResponseAllOfInventory.d.ts +38 -0
- package/dist/esm/models/SnapshotDownloadResponseAllOfInventory.js +47 -0
- package/dist/esm/models/SnapshotLatestResponse.d.ts +52 -0
- package/dist/esm/models/SnapshotLatestResponse.js +58 -0
- package/dist/esm/models/SnapshotListResponse.d.ts +59 -0
- package/dist/esm/models/SnapshotListResponse.js +61 -0
- package/dist/esm/models/SnapshotSummary.d.ts +113 -0
- package/dist/esm/models/SnapshotSummary.js +90 -0
- package/dist/esm/models/SnapshotTreeEntry.d.ts +53 -0
- package/dist/esm/models/SnapshotTreeEntry.js +57 -0
- package/dist/esm/models/SnapshotTreeResponse.d.ts +100 -0
- package/dist/esm/models/SnapshotTreeResponse.js +88 -0
- package/dist/esm/models/SshKeyRequest.d.ts +32 -0
- package/dist/esm/models/SshKeyRequest.js +43 -0
- package/dist/esm/models/SshKeyResponse.d.ts +56 -0
- package/dist/esm/models/SshKeyResponse.js +53 -0
- package/dist/esm/models/StartWindowUsage.d.ts +44 -0
- package/dist/esm/models/StartWindowUsage.js +45 -0
- package/dist/esm/models/SteerEvent.d.ts +70 -0
- package/dist/esm/models/SteerEvent.js +66 -0
- package/dist/esm/models/SteerEventData.d.ts +54 -0
- package/dist/esm/models/SteerEventData.js +60 -0
- package/dist/esm/models/SteerRequest.d.ts +43 -0
- package/dist/esm/models/SteerRequest.js +45 -0
- package/dist/esm/models/SteerResponse.d.ts +97 -0
- package/dist/esm/models/SteerResponse.js +89 -0
- package/dist/esm/models/StopRequest.d.ts +32 -0
- package/dist/esm/models/StopRequest.js +41 -0
- package/dist/esm/models/SuccessBase.d.ts +38 -0
- package/dist/esm/models/SuccessBase.js +47 -0
- package/dist/esm/models/UnknownEvent.d.ts +33 -0
- package/dist/esm/models/UnknownEvent.js +45 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +88 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +61 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequestRepositoriesInner.d.ts +50 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequestRepositoriesInner.js +49 -0
- package/dist/esm/models/UpdateSandboxRequest.d.ts +44 -0
- package/dist/esm/models/UpdateSandboxRequest.js +45 -0
- package/dist/esm/models/UpgradeSandboxEnvironmentRequest.d.ts +32 -0
- package/dist/esm/models/UpgradeSandboxEnvironmentRequest.js +41 -0
- package/dist/esm/models/UpgradeSandboxEnvironmentResponse.d.ts +44 -0
- package/dist/esm/models/UpgradeSandboxEnvironmentResponse.js +51 -0
- package/dist/esm/models/Webhook.d.ts +63 -0
- package/dist/esm/models/Webhook.js +64 -0
- package/dist/esm/models/WebhookCreateRequest.d.ts +45 -0
- package/dist/esm/models/WebhookCreateRequest.js +50 -0
- package/dist/esm/models/WebhookDeleteResponse.d.ts +44 -0
- package/dist/esm/models/WebhookDeleteResponse.js +51 -0
- package/dist/esm/models/WebhookEvent.d.ts +52 -0
- package/dist/esm/models/WebhookEvent.js +57 -0
- package/dist/esm/models/WebhookEventData.d.ts +45 -0
- package/dist/esm/models/WebhookEventData.js +52 -0
- package/dist/esm/models/WebhookEventDataSandbox.d.ts +38 -0
- package/dist/esm/models/WebhookEventDataSandbox.js +47 -0
- package/dist/esm/models/WebhookEventType.d.ts +27 -0
- package/dist/esm/models/WebhookEventType.js +45 -0
- package/dist/esm/models/WebhookListResponse.d.ts +45 -0
- package/dist/esm/models/WebhookListResponse.js +52 -0
- package/dist/esm/models/WebhookResponse.d.ts +45 -0
- package/dist/esm/models/WebhookResponse.js +52 -0
- package/dist/esm/models/WebhookSecretResponse.d.ts +51 -0
- package/dist/esm/models/WebhookSecretResponse.js +56 -0
- package/dist/esm/models/WebhookUpdateRequest.d.ts +45 -0
- package/dist/esm/models/WebhookUpdateRequest.js +46 -0
- package/dist/esm/models/index.d.ts +123 -0
- package/dist/esm/models/index.js +125 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +337 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +22 -0
- package/dist/models/AddEnvironmentRepoRequest.d.ts +38 -0
- package/dist/models/AddEnvironmentRepoRequest.js +52 -0
- package/dist/models/ApiKey.d.ts +121 -0
- package/dist/models/ApiKey.js +105 -0
- package/dist/models/ApiKeyCatalog.d.ts +65 -0
- package/dist/models/ApiKeyCatalog.js +69 -0
- package/dist/models/ApiKeyCatalogScopeResources.d.ts +39 -0
- package/dist/models/ApiKeyCatalogScopeResources.js +55 -0
- package/dist/models/ApiKeyCreatedResource.d.ts +64 -0
- package/dist/models/ApiKeyCreatedResource.js +74 -0
- package/dist/models/ApiKeyRequestUsage.d.ts +45 -0
- package/dist/models/ApiKeyRequestUsage.js +61 -0
- package/dist/models/ApiKeyResourceTotals.d.ts +44 -0
- package/dist/models/ApiKeyResourceTotals.js +58 -0
- package/dist/models/ApiKeyRevokeResponse.d.ts +45 -0
- package/dist/models/ApiKeyRevokeResponse.js +59 -0
- package/dist/models/ApiKeyScope.d.ts +57 -0
- package/dist/models/ApiKeyScope.js +57 -0
- package/dist/models/ApiKeyScopeResource.d.ts +50 -0
- package/dist/models/ApiKeyScopeResource.js +62 -0
- package/dist/models/ApiKeyScopeSandboxes.d.ts +21 -0
- package/dist/models/ApiKeyScopeSandboxes.js +53 -0
- package/dist/models/ApiKeySecretResponse.d.ts +57 -0
- package/dist/models/ApiKeySecretResponse.js +67 -0
- package/dist/models/ApiKeyUsageResponse.d.ts +140 -0
- package/dist/models/ApiKeyUsageResponse.js +118 -0
- package/dist/models/ApiKeysResponse.d.ts +52 -0
- package/dist/models/ApiKeysResponse.js +64 -0
- package/dist/models/Command200Response.d.ts +23 -0
- package/dist/models/Command200Response.js +57 -0
- package/dist/models/CommandRequest.d.ts +50 -0
- package/dist/models/CommandRequest.js +56 -0
- package/dist/models/CommandResponse.d.ts +111 -0
- package/dist/models/CommandResponse.js +93 -0
- package/dist/models/CommandStartedResponse.d.ts +93 -0
- package/dist/models/CommandStartedResponse.js +87 -0
- package/dist/models/CommandStatusResponse.d.ts +162 -0
- package/dist/models/CommandStatusResponse.js +119 -0
- package/dist/models/CompletionEvent.d.ts +65 -0
- package/dist/models/CompletionEvent.js +71 -0
- package/dist/models/Conversation.d.ts +80 -0
- package/dist/models/Conversation.js +82 -0
- package/dist/models/ConversationsResponse.d.ts +58 -0
- package/dist/models/ConversationsResponse.js +70 -0
- package/dist/models/CreateSandboxEnvironmentRequest.d.ts +32 -0
- package/dist/models/CreateSandboxEnvironmentRequest.js +50 -0
- package/dist/models/CreateSandboxRequest.d.ts +92 -0
- package/dist/models/CreateSandboxRequest.js +74 -0
- package/dist/models/CreateSandboxResponse.d.ts +71 -0
- package/dist/models/CreateSandboxResponse.js +80 -0
- package/dist/models/CreateScopedApiKey503Response.d.ts +58 -0
- package/dist/models/CreateScopedApiKey503Response.js +71 -0
- package/dist/models/CreateScopedApiKeyRequest.d.ts +72 -0
- package/dist/models/CreateScopedApiKeyRequest.js +68 -0
- package/dist/models/DataRetentionPolicyResponse.d.ts +70 -0
- package/dist/models/DataRetentionPolicyResponse.js +74 -0
- package/dist/models/DataRetentionUpdateRequest.d.ts +45 -0
- package/dist/models/DataRetentionUpdateRequest.js +59 -0
- package/dist/models/DeletionOperation.d.ts +101 -0
- package/dist/models/DeletionOperation.js +103 -0
- package/dist/models/DeletionOperationResponse.d.ts +54 -0
- package/dist/models/DeletionOperationResponse.js +68 -0
- package/dist/models/DesktopRequest.d.ts +33 -0
- package/dist/models/DesktopRequest.js +50 -0
- package/dist/models/DesktopResponse.d.ts +74 -0
- package/dist/models/DesktopResponse.js +66 -0
- package/dist/models/EnvironmentItemChangeResponse.d.ts +44 -0
- package/dist/models/EnvironmentItemChangeResponse.js +54 -0
- package/dist/models/ErrorEnvelope.d.ts +69 -0
- package/dist/models/ErrorEnvelope.js +75 -0
- package/dist/models/ErrorEnvelopeError.d.ts +52 -0
- package/dist/models/ErrorEnvelopeError.js +60 -0
- package/dist/models/ErrorEvent.d.ts +65 -0
- package/dist/models/ErrorEvent.js +71 -0
- package/dist/models/EventsResponse.d.ts +65 -0
- package/dist/models/EventsResponse.js +73 -0
- package/dist/models/FileReadResponse.d.ts +83 -0
- package/dist/models/FileReadResponse.js +88 -0
- package/dist/models/FileWriteRequest.d.ts +52 -0
- package/dist/models/FileWriteRequest.js +64 -0
- package/dist/models/FileWriteResponse.d.ts +77 -0
- package/dist/models/FileWriteResponse.js +84 -0
- package/dist/models/ForkRequest.d.ts +68 -0
- package/dist/models/ForkRequest.js +66 -0
- package/dist/models/HostPortRequest.d.ts +44 -0
- package/dist/models/HostPortRequest.js +54 -0
- package/dist/models/HostPortResponse.d.ts +76 -0
- package/dist/models/HostPortResponse.js +72 -0
- package/dist/models/LimitsFields.d.ts +262 -0
- package/dist/models/LimitsFields.js +135 -0
- package/dist/models/LimitsFieldsCurrentLimits.d.ts +45 -0
- package/dist/models/LimitsFieldsCurrentLimits.js +54 -0
- package/dist/models/LimitsFieldsStartLimits.d.ts +44 -0
- package/dist/models/LimitsFieldsStartLimits.js +52 -0
- package/dist/models/LimitsFieldsStarts.d.ts +51 -0
- package/dist/models/LimitsFieldsStarts.js +55 -0
- package/dist/models/LimitsResponse.d.ts +273 -0
- package/dist/models/LimitsResponse.js +141 -0
- package/dist/models/MeResponse.d.ts +52 -0
- package/dist/models/MeResponse.js +66 -0
- package/dist/models/MeResponseAllOfUser.d.ts +50 -0
- package/dist/models/MeResponseAllOfUser.js +54 -0
- package/dist/models/NamedSnapshot.d.ts +83 -0
- package/dist/models/NamedSnapshot.js +79 -0
- package/dist/models/NamedSnapshotDeletedResponse.d.ts +64 -0
- package/dist/models/NamedSnapshotDeletedResponse.js +75 -0
- package/dist/models/NamedSnapshotInfoResponse.d.ts +52 -0
- package/dist/models/NamedSnapshotInfoResponse.js +66 -0
- package/dist/models/NamedSnapshotListResponse.d.ts +52 -0
- package/dist/models/NamedSnapshotListResponse.js +66 -0
- package/dist/models/NamedSnapshotSaveRequest.d.ts +38 -0
- package/dist/models/NamedSnapshotSaveRequest.js +54 -0
- package/dist/models/NamedSnapshotSavingResponse.d.ts +65 -0
- package/dist/models/NamedSnapshotSavingResponse.js +76 -0
- package/dist/models/PageInfo.d.ts +44 -0
- package/dist/models/PageInfo.js +58 -0
- package/dist/models/PromptEvent.d.ts +70 -0
- package/dist/models/PromptEvent.js +74 -0
- package/dist/models/PromptEventData.d.ts +56 -0
- package/dist/models/PromptEventData.js +68 -0
- package/dist/models/PromptRequest.d.ts +84 -0
- package/dist/models/PromptRequest.js +77 -0
- package/dist/models/PromptResponse.d.ts +101 -0
- package/dist/models/PromptResponse.js +94 -0
- package/dist/models/PromptRun.d.ts +92 -0
- package/dist/models/PromptRun.js +86 -0
- package/dist/models/PromptRunResponse.d.ts +58 -0
- package/dist/models/PromptRunResponse.js +70 -0
- package/dist/models/RepoSelectionRequest.d.ts +38 -0
- package/dist/models/RepoSelectionRequest.js +52 -0
- package/dist/models/RepoSelectionResponse.d.ts +57 -0
- package/dist/models/RepoSelectionResponse.js +67 -0
- package/dist/models/ReposResponse.d.ts +65 -0
- package/dist/models/ReposResponse.js +71 -0
- package/dist/models/Repository.d.ts +69 -0
- package/dist/models/Repository.js +62 -0
- package/dist/models/RepositoryInstallation.d.ts +51 -0
- package/dist/models/RepositoryInstallation.js +55 -0
- package/dist/models/ResponseEvent.d.ts +70 -0
- package/dist/models/ResponseEvent.js +74 -0
- package/dist/models/ResponseEventData.d.ts +52 -0
- package/dist/models/ResponseEventData.js +56 -0
- package/dist/models/ResumeRequest.d.ts +68 -0
- package/dist/models/ResumeRequest.js +66 -0
- package/dist/models/RotateApiKey409Response.d.ts +45 -0
- package/dist/models/RotateApiKey409Response.js +61 -0
- package/dist/models/Sandbox.d.ts +211 -0
- package/dist/models/Sandbox.js +146 -0
- package/dist/models/SandboxActionResponse.d.ts +57 -0
- package/dist/models/SandboxActionResponse.js +65 -0
- package/dist/models/SandboxEnvironment.d.ts +107 -0
- package/dist/models/SandboxEnvironment.js +99 -0
- package/dist/models/SandboxEnvironmentListResponse.d.ts +33 -0
- package/dist/models/SandboxEnvironmentListResponse.js +51 -0
- package/dist/models/SandboxEnvironmentResponse.d.ts +39 -0
- package/dist/models/SandboxEnvironmentResponse.js +53 -0
- package/dist/models/SandboxEnvironmentVersionSummary.d.ts +50 -0
- package/dist/models/SandboxEnvironmentVersionSummary.js +62 -0
- package/dist/models/SandboxEvent.d.ts +65 -0
- package/dist/models/SandboxEvent.js +62 -0
- package/dist/models/SandboxInfoResponse.d.ts +45 -0
- package/dist/models/SandboxInfoResponse.js +59 -0
- package/dist/models/SandboxListResponse.d.ts +59 -0
- package/dist/models/SandboxListResponse.js +69 -0
- package/dist/models/SandboxUsageResponse.d.ts +102 -0
- package/dist/models/SandboxUsageResponse.js +100 -0
- package/dist/models/SecretFile.d.ts +38 -0
- package/dist/models/SecretFile.js +54 -0
- package/dist/models/SecretsResponse.d.ts +71 -0
- package/dist/models/SecretsResponse.js +71 -0
- package/dist/models/SecretsUpdateRequest.d.ts +39 -0
- package/dist/models/SecretsUpdateRequest.js +51 -0
- package/dist/models/SelectedRepository.d.ts +92 -0
- package/dist/models/SelectedRepository.js +68 -0
- package/dist/models/SetEnvironmentSecretFileRequest.d.ts +38 -0
- package/dist/models/SetEnvironmentSecretFileRequest.js +54 -0
- package/dist/models/SetEnvironmentVarRequest.d.ts +32 -0
- package/dist/models/SetEnvironmentVarRequest.js +50 -0
- package/dist/models/SnapshotChunk.d.ts +68 -0
- package/dist/models/SnapshotChunk.js +74 -0
- package/dist/models/SnapshotDownloadResponse.d.ts +104 -0
- package/dist/models/SnapshotDownloadResponse.js +101 -0
- package/dist/models/SnapshotDownloadResponseAllOfInventory.d.ts +38 -0
- package/dist/models/SnapshotDownloadResponseAllOfInventory.js +54 -0
- package/dist/models/SnapshotLatestResponse.d.ts +52 -0
- package/dist/models/SnapshotLatestResponse.js +66 -0
- package/dist/models/SnapshotListResponse.d.ts +59 -0
- package/dist/models/SnapshotListResponse.js +69 -0
- package/dist/models/SnapshotSummary.d.ts +113 -0
- package/dist/models/SnapshotSummary.js +98 -0
- package/dist/models/SnapshotTreeEntry.d.ts +53 -0
- package/dist/models/SnapshotTreeEntry.js +65 -0
- package/dist/models/SnapshotTreeResponse.d.ts +100 -0
- package/dist/models/SnapshotTreeResponse.js +96 -0
- package/dist/models/SshKeyRequest.d.ts +32 -0
- package/dist/models/SshKeyRequest.js +50 -0
- package/dist/models/SshKeyResponse.d.ts +56 -0
- package/dist/models/SshKeyResponse.js +60 -0
- package/dist/models/StartWindowUsage.d.ts +44 -0
- package/dist/models/StartWindowUsage.js +52 -0
- package/dist/models/SteerEvent.d.ts +70 -0
- package/dist/models/SteerEvent.js +74 -0
- package/dist/models/SteerEventData.d.ts +54 -0
- package/dist/models/SteerEventData.js +68 -0
- package/dist/models/SteerRequest.d.ts +43 -0
- package/dist/models/SteerRequest.js +52 -0
- package/dist/models/SteerResponse.d.ts +97 -0
- package/dist/models/SteerResponse.js +97 -0
- package/dist/models/StopRequest.d.ts +32 -0
- package/dist/models/StopRequest.js +48 -0
- package/dist/models/SuccessBase.d.ts +38 -0
- package/dist/models/SuccessBase.js +54 -0
- package/dist/models/UnknownEvent.d.ts +33 -0
- package/dist/models/UnknownEvent.js +52 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +88 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.js +68 -0
- package/dist/models/UpdateSandboxEnvironmentRequestRepositoriesInner.d.ts +50 -0
- package/dist/models/UpdateSandboxEnvironmentRequestRepositoriesInner.js +56 -0
- package/dist/models/UpdateSandboxRequest.d.ts +44 -0
- package/dist/models/UpdateSandboxRequest.js +52 -0
- package/dist/models/UpgradeSandboxEnvironmentRequest.d.ts +32 -0
- package/dist/models/UpgradeSandboxEnvironmentRequest.js +48 -0
- package/dist/models/UpgradeSandboxEnvironmentResponse.d.ts +44 -0
- package/dist/models/UpgradeSandboxEnvironmentResponse.js +58 -0
- package/dist/models/Webhook.d.ts +63 -0
- package/dist/models/Webhook.js +71 -0
- package/dist/models/WebhookCreateRequest.d.ts +45 -0
- package/dist/models/WebhookCreateRequest.js +57 -0
- package/dist/models/WebhookDeleteResponse.d.ts +44 -0
- package/dist/models/WebhookDeleteResponse.js +58 -0
- package/dist/models/WebhookEvent.d.ts +52 -0
- package/dist/models/WebhookEvent.js +64 -0
- package/dist/models/WebhookEventData.d.ts +45 -0
- package/dist/models/WebhookEventData.js +59 -0
- package/dist/models/WebhookEventDataSandbox.d.ts +38 -0
- package/dist/models/WebhookEventDataSandbox.js +54 -0
- package/dist/models/WebhookEventType.d.ts +27 -0
- package/dist/models/WebhookEventType.js +53 -0
- package/dist/models/WebhookListResponse.d.ts +45 -0
- package/dist/models/WebhookListResponse.js +59 -0
- package/dist/models/WebhookResponse.d.ts +45 -0
- package/dist/models/WebhookResponse.js +59 -0
- package/dist/models/WebhookSecretResponse.d.ts +51 -0
- package/dist/models/WebhookSecretResponse.js +63 -0
- package/dist/models/WebhookUpdateRequest.d.ts +45 -0
- package/dist/models/WebhookUpdateRequest.js +53 -0
- package/dist/models/index.d.ts +123 -0
- package/dist/models/index.js +141 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +353 -0
- package/docs/AddEnvironmentRepoRequest.md +34 -0
- package/docs/ApiKey.md +58 -0
- package/docs/ApiKeyCatalog.md +42 -0
- package/docs/ApiKeyCatalogScopeResources.md +35 -0
- package/docs/ApiKeyCreatedResource.md +40 -0
- package/docs/ApiKeyRequestUsage.md +34 -0
- package/docs/ApiKeyResourceTotals.md +36 -0
- package/docs/ApiKeyRevokeResponse.md +36 -0
- package/docs/ApiKeyScope.md +40 -0
- package/docs/ApiKeyScopeResource.md +38 -0
- package/docs/ApiKeyScopeSandboxes.md +30 -0
- package/docs/ApiKeySecretResponse.md +40 -0
- package/docs/ApiKeyUsageResponse.md +64 -0
- package/docs/ApiKeysResponse.md +38 -0
- package/docs/BoatApi.md +4967 -0
- package/docs/Command200Response.md +66 -0
- package/docs/CommandRequest.md +38 -0
- package/docs/CommandResponse.md +56 -0
- package/docs/CommandStartedResponse.md +50 -0
- package/docs/CommandStatusResponse.md +70 -0
- package/docs/CompletionEvent.md +40 -0
- package/docs/Conversation.md +48 -0
- package/docs/ConversationsResponse.md +38 -0
- package/docs/CreateSandboxEnvironmentRequest.md +32 -0
- package/docs/CreateSandboxRequest.md +49 -0
- package/docs/CreateSandboxResponse.md +40 -0
- package/docs/CreateScopedApiKey503Response.md +36 -0
- package/docs/CreateScopedApiKeyRequest.md +42 -0
- package/docs/DataRetentionPolicyResponse.md +42 -0
- package/docs/DataRetentionUpdateRequest.md +34 -0
- package/docs/DeletionOperation.md +46 -0
- package/docs/DeletionOperationResponse.md +36 -0
- package/docs/DesktopRequest.md +33 -0
- package/docs/DesktopResponse.md +46 -0
- package/docs/EnvironmentItemChangeResponse.md +37 -0
- package/docs/ErrorEnvelope.md +44 -0
- package/docs/ErrorEnvelopeError.md +38 -0
- package/docs/ErrorEvent.md +40 -0
- package/docs/EventsResponse.md +40 -0
- package/docs/FileReadResponse.md +44 -0
- package/docs/FileWriteRequest.md +36 -0
- package/docs/FileWriteResponse.md +42 -0
- package/docs/ForkRequest.md +40 -0
- package/docs/HostPortRequest.md +36 -0
- package/docs/HostPortResponse.md +44 -0
- package/docs/LimitsFields.md +106 -0
- package/docs/LimitsFieldsCurrentLimits.md +36 -0
- package/docs/LimitsFieldsStartLimits.md +37 -0
- package/docs/LimitsFieldsStarts.md +39 -0
- package/docs/LimitsResponse.md +110 -0
- package/docs/MeResponse.md +36 -0
- package/docs/MeResponseAllOfUser.md +38 -0
- package/docs/NamedSnapshot.md +47 -0
- package/docs/NamedSnapshotDeletedResponse.md +38 -0
- package/docs/NamedSnapshotInfoResponse.md +36 -0
- package/docs/NamedSnapshotListResponse.md +36 -0
- package/docs/NamedSnapshotSaveRequest.md +34 -0
- package/docs/NamedSnapshotSavingResponse.md +38 -0
- package/docs/PageInfo.md +36 -0
- package/docs/PromptEvent.md +42 -0
- package/docs/PromptEventData.md +36 -0
- package/docs/PromptRequest.md +43 -0
- package/docs/PromptResponse.md +50 -0
- package/docs/PromptRun.md +48 -0
- package/docs/PromptRunResponse.md +38 -0
- package/docs/RepoSelectionRequest.md +35 -0
- package/docs/RepoSelectionResponse.md +40 -0
- package/docs/ReposResponse.md +42 -0
- package/docs/Repository.md +44 -0
- package/docs/RepositoryInstallation.md +38 -0
- package/docs/ResponseEvent.md +43 -0
- package/docs/ResponseEventData.md +38 -0
- package/docs/ResumeRequest.md +41 -0
- package/docs/RotateApiKey409Response.md +34 -0
- package/docs/Sandbox.md +76 -0
- package/docs/SandboxActionResponse.md +40 -0
- package/docs/SandboxEnvironment.md +57 -0
- package/docs/SandboxEnvironmentListResponse.md +32 -0
- package/docs/SandboxEnvironmentResponse.md +34 -0
- package/docs/SandboxEnvironmentVersionSummary.md +39 -0
- package/docs/SandboxEvent.md +42 -0
- package/docs/SandboxInfoResponse.md +36 -0
- package/docs/SandboxListResponse.md +38 -0
- package/docs/SandboxUsageResponse.md +52 -0
- package/docs/SecretFile.md +34 -0
- package/docs/SecretsResponse.md +44 -0
- package/docs/SecretsUpdateRequest.md +35 -0
- package/docs/SelectedRepository.md +52 -0
- package/docs/SetEnvironmentSecretFileRequest.md +34 -0
- package/docs/SetEnvironmentVarRequest.md +32 -0
- package/docs/SnapshotChunk.md +44 -0
- package/docs/SnapshotDownloadResponse.md +50 -0
- package/docs/SnapshotDownloadResponseAllOfInventory.md +34 -0
- package/docs/SnapshotLatestResponse.md +36 -0
- package/docs/SnapshotListResponse.md +38 -0
- package/docs/SnapshotSummary.md +54 -0
- package/docs/SnapshotTreeEntry.md +36 -0
- package/docs/SnapshotTreeResponse.md +52 -0
- package/docs/SshKeyRequest.md +32 -0
- package/docs/SshKeyResponse.md +40 -0
- package/docs/StartWindowUsage.md +37 -0
- package/docs/SteerEvent.md +43 -0
- package/docs/SteerEventData.md +36 -0
- package/docs/SteerRequest.md +35 -0
- package/docs/SteerResponse.md +46 -0
- package/docs/StopRequest.md +33 -0
- package/docs/SuccessBase.md +34 -0
- package/docs/UnknownEvent.md +32 -0
- package/docs/UpdateSandboxEnvironmentRequest.md +51 -0
- package/docs/UpdateSandboxEnvironmentRequestRepositoriesInner.md +38 -0
- package/docs/UpdateSandboxRequest.md +36 -0
- package/docs/UpgradeSandboxEnvironmentRequest.md +33 -0
- package/docs/UpgradeSandboxEnvironmentResponse.md +36 -0
- package/docs/Webhook.md +42 -0
- package/docs/WebhookCreateRequest.md +36 -0
- package/docs/WebhookDeleteResponse.md +36 -0
- package/docs/WebhookEvent.md +39 -0
- package/docs/WebhookEventData.md +36 -0
- package/docs/WebhookEventDataSandbox.md +34 -0
- package/docs/WebhookEventType.md +30 -0
- package/docs/WebhookListResponse.md +36 -0
- package/docs/WebhookResponse.md +36 -0
- package/docs/WebhookSecretResponse.md +38 -0
- package/docs/WebhookUpdateRequest.md +36 -0
- package/package.json +19 -0
- package/src/apis/BoatApi.ts +4594 -0
- package/src/apis/index.ts +3 -0
- package/src/boat-helpers.ts +187 -0
- package/src/index.ts +7 -0
- package/src/models/AddEnvironmentRepoRequest.ts +74 -0
- package/src/models/ApiKey.ts +212 -0
- package/src/models/ApiKeyCatalog.ts +118 -0
- package/src/models/ApiKeyCatalogScopeResources.ts +83 -0
- package/src/models/ApiKeyCreatedResource.ts +113 -0
- package/src/models/ApiKeyRequestUsage.ts +85 -0
- package/src/models/ApiKeyResourceTotals.ts +84 -0
- package/src/models/ApiKeyRevokeResponse.ts +92 -0
- package/src/models/ApiKeyScope.ts +105 -0
- package/src/models/ApiKeyScopeResource.ts +93 -0
- package/src/models/ApiKeyScopeSandboxes.ts +59 -0
- package/src/models/ApiKeySecretResponse.ts +110 -0
- package/src/models/ApiKeyUsageResponse.ts +246 -0
- package/src/models/ApiKeysResponse.ts +108 -0
- package/src/models/Command200Response.ts +76 -0
- package/src/models/CommandRequest.ts +90 -0
- package/src/models/CommandResponse.ts +178 -0
- package/src/models/CommandStartedResponse.ts +154 -0
- package/src/models/CommandStatusResponse.ts +246 -0
- package/src/models/CompletionEvent.ts +111 -0
- package/src/models/Conversation.ts +138 -0
- package/src/models/ConversationsResponse.ts +111 -0
- package/src/models/CreateSandboxEnvironmentRequest.ts +66 -0
- package/src/models/CreateSandboxRequest.ts +142 -0
- package/src/models/CreateSandboxResponse.ts +128 -0
- package/src/models/CreateScopedApiKey503Response.ts +102 -0
- package/src/models/CreateScopedApiKeyRequest.ts +118 -0
- package/src/models/DataRetentionPolicyResponse.ts +120 -0
- package/src/models/DataRetentionUpdateRequest.ts +84 -0
- package/src/models/DeletionOperation.ts +161 -0
- package/src/models/DeletionOperationResponse.ts +104 -0
- package/src/models/DesktopRequest.ts +68 -0
- package/src/models/DesktopResponse.ts +123 -0
- package/src/models/EnvironmentItemChangeResponse.ts +82 -0
- package/src/models/ErrorEnvelope.ts +128 -0
- package/src/models/ErrorEnvelopeError.ts +92 -0
- package/src/models/ErrorEvent.ts +111 -0
- package/src/models/EventsResponse.ts +126 -0
- package/src/models/FileReadResponse.ts +139 -0
- package/src/models/FileWriteRequest.ts +94 -0
- package/src/models/FileWriteResponse.ts +130 -0
- package/src/models/ForkRequest.ts +110 -0
- package/src/models/HostPortRequest.ts +82 -0
- package/src/models/HostPortResponse.ts +126 -0
- package/src/models/LimitsFields.ts +390 -0
- package/src/models/LimitsFieldsCurrentLimits.ts +84 -0
- package/src/models/LimitsFieldsStartLimits.ts +81 -0
- package/src/models/LimitsFieldsStarts.ts +97 -0
- package/src/models/LimitsResponse.ts +405 -0
- package/src/models/MeResponse.ts +102 -0
- package/src/models/MeResponseAllOfUser.ts +89 -0
- package/src/models/NamedSnapshot.ts +137 -0
- package/src/models/NamedSnapshotDeletedResponse.ts +111 -0
- package/src/models/NamedSnapshotInfoResponse.ts +102 -0
- package/src/models/NamedSnapshotListResponse.ts +102 -0
- package/src/models/NamedSnapshotSaveRequest.ts +75 -0
- package/src/models/NamedSnapshotSavingResponse.ts +119 -0
- package/src/models/PageInfo.ts +84 -0
- package/src/models/PromptEvent.ts +127 -0
- package/src/models/PromptEventData.ts +98 -0
- package/src/models/PromptRequest.ts +132 -0
- package/src/models/PromptResponse.ts +170 -0
- package/src/models/PromptRun.ts +149 -0
- package/src/models/PromptRunResponse.ts +111 -0
- package/src/models/RepoSelectionRequest.ts +74 -0
- package/src/models/RepoSelectionResponse.ts +110 -0
- package/src/models/ReposResponse.ts +132 -0
- package/src/models/Repository.ts +116 -0
- package/src/models/RepositoryInstallation.ts +97 -0
- package/src/models/ResponseEvent.ts +127 -0
- package/src/models/ResponseEventData.ts +90 -0
- package/src/models/ResumeRequest.ts +110 -0
- package/src/models/RotateApiKey409Response.ts +85 -0
- package/src/models/Sandbox.ts +299 -0
- package/src/models/SandboxActionResponse.ts +109 -0
- package/src/models/SandboxEnvironment.ts +195 -0
- package/src/models/SandboxEnvironmentListResponse.ts +74 -0
- package/src/models/SandboxEnvironmentResponse.ts +82 -0
- package/src/models/SandboxEnvironmentVersionSummary.ts +93 -0
- package/src/models/SandboxEvent.ts +109 -0
- package/src/models/SandboxInfoResponse.ts +92 -0
- package/src/models/SandboxListResponse.ts +117 -0
- package/src/models/SandboxUsageResponse.ts +169 -0
- package/src/models/SecretFile.ts +75 -0
- package/src/models/SecretsResponse.ts +126 -0
- package/src/models/SecretsUpdateRequest.ts +81 -0
- package/src/models/SelectedRepository.ts +145 -0
- package/src/models/SetEnvironmentSecretFileRequest.ts +75 -0
- package/src/models/SetEnvironmentVarRequest.ts +66 -0
- package/src/models/SnapshotChunk.ts +120 -0
- package/src/models/SnapshotDownloadResponse.ts +181 -0
- package/src/models/SnapshotDownloadResponseAllOfInventory.ts +75 -0
- package/src/models/SnapshotLatestResponse.ts +102 -0
- package/src/models/SnapshotListResponse.ts +117 -0
- package/src/models/SnapshotSummary.ts +179 -0
- package/src/models/SnapshotTreeEntry.ts +95 -0
- package/src/models/SnapshotTreeResponse.ts +173 -0
- package/src/models/SshKeyRequest.ts +66 -0
- package/src/models/SshKeyResponse.ts +99 -0
- package/src/models/StartWindowUsage.ts +81 -0
- package/src/models/SteerEvent.ts +127 -0
- package/src/models/SteerEventData.ts +97 -0
- package/src/models/SteerRequest.ts +79 -0
- package/src/models/SteerResponse.ts +156 -0
- package/src/models/StopRequest.ts +65 -0
- package/src/models/SuccessBase.ts +75 -0
- package/src/models/UnknownEvent.ts +69 -0
- package/src/models/UpdateSandboxEnvironmentRequest.ts +152 -0
- package/src/models/UpdateSandboxEnvironmentRequestRepositoriesInner.ts +90 -0
- package/src/models/UpdateSandboxRequest.ts +81 -0
- package/src/models/UpgradeSandboxEnvironmentRequest.ts +65 -0
- package/src/models/UpgradeSandboxEnvironmentResponse.ts +84 -0
- package/src/models/Webhook.ts +119 -0
- package/src/models/WebhookCreateRequest.ts +91 -0
- package/src/models/WebhookDeleteResponse.ts +84 -0
- package/src/models/WebhookEvent.ts +110 -0
- package/src/models/WebhookEventData.ts +92 -0
- package/src/models/WebhookEventDataSandbox.ts +75 -0
- package/src/models/WebhookEventType.ts +55 -0
- package/src/models/WebhookListResponse.ts +92 -0
- package/src/models/WebhookResponse.ts +92 -0
- package/src/models/WebhookSecretResponse.ts +101 -0
- package/src/models/WebhookUpdateRequest.ts +89 -0
- package/src/models/index.ts +125 -0
- package/src/runtime.ts +449 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,3084 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Boat Public API v1
|
|
6
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.SandboxesSortEnum = exports.ReposSortEnum = exports.ReadFileEncodingEnum = exports.ListSnapshotsSortEnum = exports.ListSandboxSnapshotsSortEnum = exports.EventsSortEnum = exports.DesktopOperationThemeEnum = exports.DesktopOperationVncEnum = exports.BoatApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const AddEnvironmentRepoRequest_1 = require("../models/AddEnvironmentRepoRequest");
|
|
52
|
+
const ApiKeyRevokeResponse_1 = require("../models/ApiKeyRevokeResponse");
|
|
53
|
+
const ApiKeySecretResponse_1 = require("../models/ApiKeySecretResponse");
|
|
54
|
+
const ApiKeyUsageResponse_1 = require("../models/ApiKeyUsageResponse");
|
|
55
|
+
const ApiKeysResponse_1 = require("../models/ApiKeysResponse");
|
|
56
|
+
const Command200Response_1 = require("../models/Command200Response");
|
|
57
|
+
const CommandRequest_1 = require("../models/CommandRequest");
|
|
58
|
+
const CommandStatusResponse_1 = require("../models/CommandStatusResponse");
|
|
59
|
+
const ConversationsResponse_1 = require("../models/ConversationsResponse");
|
|
60
|
+
const CreateSandboxEnvironmentRequest_1 = require("../models/CreateSandboxEnvironmentRequest");
|
|
61
|
+
const CreateSandboxRequest_1 = require("../models/CreateSandboxRequest");
|
|
62
|
+
const CreateSandboxResponse_1 = require("../models/CreateSandboxResponse");
|
|
63
|
+
const CreateScopedApiKeyRequest_1 = require("../models/CreateScopedApiKeyRequest");
|
|
64
|
+
const DataRetentionPolicyResponse_1 = require("../models/DataRetentionPolicyResponse");
|
|
65
|
+
const DataRetentionUpdateRequest_1 = require("../models/DataRetentionUpdateRequest");
|
|
66
|
+
const DeletionOperationResponse_1 = require("../models/DeletionOperationResponse");
|
|
67
|
+
const DesktopRequest_1 = require("../models/DesktopRequest");
|
|
68
|
+
const DesktopResponse_1 = require("../models/DesktopResponse");
|
|
69
|
+
const EnvironmentItemChangeResponse_1 = require("../models/EnvironmentItemChangeResponse");
|
|
70
|
+
const EventsResponse_1 = require("../models/EventsResponse");
|
|
71
|
+
const FileReadResponse_1 = require("../models/FileReadResponse");
|
|
72
|
+
const FileWriteRequest_1 = require("../models/FileWriteRequest");
|
|
73
|
+
const FileWriteResponse_1 = require("../models/FileWriteResponse");
|
|
74
|
+
const ForkRequest_1 = require("../models/ForkRequest");
|
|
75
|
+
const HostPortRequest_1 = require("../models/HostPortRequest");
|
|
76
|
+
const HostPortResponse_1 = require("../models/HostPortResponse");
|
|
77
|
+
const LimitsResponse_1 = require("../models/LimitsResponse");
|
|
78
|
+
const MeResponse_1 = require("../models/MeResponse");
|
|
79
|
+
const NamedSnapshotDeletedResponse_1 = require("../models/NamedSnapshotDeletedResponse");
|
|
80
|
+
const NamedSnapshotInfoResponse_1 = require("../models/NamedSnapshotInfoResponse");
|
|
81
|
+
const NamedSnapshotListResponse_1 = require("../models/NamedSnapshotListResponse");
|
|
82
|
+
const NamedSnapshotSaveRequest_1 = require("../models/NamedSnapshotSaveRequest");
|
|
83
|
+
const NamedSnapshotSavingResponse_1 = require("../models/NamedSnapshotSavingResponse");
|
|
84
|
+
const PromptRequest_1 = require("../models/PromptRequest");
|
|
85
|
+
const PromptResponse_1 = require("../models/PromptResponse");
|
|
86
|
+
const PromptRunResponse_1 = require("../models/PromptRunResponse");
|
|
87
|
+
const RepoSelectionRequest_1 = require("../models/RepoSelectionRequest");
|
|
88
|
+
const RepoSelectionResponse_1 = require("../models/RepoSelectionResponse");
|
|
89
|
+
const ReposResponse_1 = require("../models/ReposResponse");
|
|
90
|
+
const ResumeRequest_1 = require("../models/ResumeRequest");
|
|
91
|
+
const SandboxActionResponse_1 = require("../models/SandboxActionResponse");
|
|
92
|
+
const SandboxEnvironmentListResponse_1 = require("../models/SandboxEnvironmentListResponse");
|
|
93
|
+
const SandboxEnvironmentResponse_1 = require("../models/SandboxEnvironmentResponse");
|
|
94
|
+
const SandboxInfoResponse_1 = require("../models/SandboxInfoResponse");
|
|
95
|
+
const SandboxListResponse_1 = require("../models/SandboxListResponse");
|
|
96
|
+
const SandboxUsageResponse_1 = require("../models/SandboxUsageResponse");
|
|
97
|
+
const SecretsResponse_1 = require("../models/SecretsResponse");
|
|
98
|
+
const SecretsUpdateRequest_1 = require("../models/SecretsUpdateRequest");
|
|
99
|
+
const SetEnvironmentSecretFileRequest_1 = require("../models/SetEnvironmentSecretFileRequest");
|
|
100
|
+
const SetEnvironmentVarRequest_1 = require("../models/SetEnvironmentVarRequest");
|
|
101
|
+
const SnapshotDownloadResponse_1 = require("../models/SnapshotDownloadResponse");
|
|
102
|
+
const SnapshotLatestResponse_1 = require("../models/SnapshotLatestResponse");
|
|
103
|
+
const SnapshotListResponse_1 = require("../models/SnapshotListResponse");
|
|
104
|
+
const SnapshotTreeResponse_1 = require("../models/SnapshotTreeResponse");
|
|
105
|
+
const SshKeyRequest_1 = require("../models/SshKeyRequest");
|
|
106
|
+
const SshKeyResponse_1 = require("../models/SshKeyResponse");
|
|
107
|
+
const SteerRequest_1 = require("../models/SteerRequest");
|
|
108
|
+
const SteerResponse_1 = require("../models/SteerResponse");
|
|
109
|
+
const StopRequest_1 = require("../models/StopRequest");
|
|
110
|
+
const UpdateSandboxEnvironmentRequest_1 = require("../models/UpdateSandboxEnvironmentRequest");
|
|
111
|
+
const UpdateSandboxRequest_1 = require("../models/UpdateSandboxRequest");
|
|
112
|
+
const UpgradeSandboxEnvironmentRequest_1 = require("../models/UpgradeSandboxEnvironmentRequest");
|
|
113
|
+
const UpgradeSandboxEnvironmentResponse_1 = require("../models/UpgradeSandboxEnvironmentResponse");
|
|
114
|
+
const WebhookCreateRequest_1 = require("../models/WebhookCreateRequest");
|
|
115
|
+
const WebhookDeleteResponse_1 = require("../models/WebhookDeleteResponse");
|
|
116
|
+
const WebhookListResponse_1 = require("../models/WebhookListResponse");
|
|
117
|
+
const WebhookResponse_1 = require("../models/WebhookResponse");
|
|
118
|
+
const WebhookSecretResponse_1 = require("../models/WebhookSecretResponse");
|
|
119
|
+
const WebhookUpdateRequest_1 = require("../models/WebhookUpdateRequest");
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
*/
|
|
123
|
+
class BoatApi extends runtime.BaseAPI {
|
|
124
|
+
/**
|
|
125
|
+
* Creates request options for addEnvironmentRepo without sending the request
|
|
126
|
+
*/
|
|
127
|
+
async addEnvironmentRepoRequestOpts(requestParameters) {
|
|
128
|
+
if (requestParameters['environmentId'] == null) {
|
|
129
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling addEnvironmentRepo().');
|
|
130
|
+
}
|
|
131
|
+
if (requestParameters['addEnvironmentRepoRequest'] == null) {
|
|
132
|
+
throw new runtime.RequiredError('addEnvironmentRepoRequest', 'Required parameter "addEnvironmentRepoRequest" was null or undefined when calling addEnvironmentRepo().');
|
|
133
|
+
}
|
|
134
|
+
const queryParameters = {};
|
|
135
|
+
const headerParameters = {};
|
|
136
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
137
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
138
|
+
const token = this.configuration.accessToken;
|
|
139
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
140
|
+
if (tokenString) {
|
|
141
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
let urlPath = `/environments/{environmentId}/repos`;
|
|
145
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
146
|
+
return {
|
|
147
|
+
path: urlPath,
|
|
148
|
+
method: 'POST',
|
|
149
|
+
headers: headerParameters,
|
|
150
|
+
query: queryParameters,
|
|
151
|
+
body: (0, AddEnvironmentRepoRequest_1.AddEnvironmentRepoRequestToJSON)(requestParameters['addEnvironmentRepoRequest']),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Adds a repository (or updates its base branch) by database id from the repository list. Mints a new immutable version.
|
|
156
|
+
* Add a repository to an environment
|
|
157
|
+
*/
|
|
158
|
+
async addEnvironmentRepoRaw(requestParameters, initOverrides) {
|
|
159
|
+
const requestOptions = await this.addEnvironmentRepoRequestOpts(requestParameters);
|
|
160
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
161
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, EnvironmentItemChangeResponse_1.EnvironmentItemChangeResponseFromJSON)(jsonValue));
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Adds a repository (or updates its base branch) by database id from the repository list. Mints a new immutable version.
|
|
165
|
+
* Add a repository to an environment
|
|
166
|
+
*/
|
|
167
|
+
async addEnvironmentRepo(requestParameters, initOverrides) {
|
|
168
|
+
const response = await this.addEnvironmentRepoRaw(requestParameters, initOverrides);
|
|
169
|
+
return await response.value();
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Creates request options for apiKeyUsage without sending the request
|
|
173
|
+
*/
|
|
174
|
+
async apiKeyUsageRequestOpts(requestParameters) {
|
|
175
|
+
if (requestParameters['apiKeyId'] == null) {
|
|
176
|
+
throw new runtime.RequiredError('apiKeyId', 'Required parameter "apiKeyId" was null or undefined when calling apiKeyUsage().');
|
|
177
|
+
}
|
|
178
|
+
const queryParameters = {};
|
|
179
|
+
const headerParameters = {};
|
|
180
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
181
|
+
const token = this.configuration.accessToken;
|
|
182
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
183
|
+
if (tokenString) {
|
|
184
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
let urlPath = `/api-keys/{apiKeyId}/usage`;
|
|
188
|
+
urlPath = urlPath.replace('{apiKeyId}', encodeURIComponent(String(requestParameters['apiKeyId'])));
|
|
189
|
+
return {
|
|
190
|
+
path: urlPath,
|
|
191
|
+
method: 'GET',
|
|
192
|
+
headers: headerParameters,
|
|
193
|
+
query: queryParameters,
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Returns the key\'s request total for the 30-day UTC window and the sandboxes and Agents it created that still exist, including sandboxes that never got a sandbox row. Works for revoked keys owned by the authenticated account.
|
|
198
|
+
* Get API key usage
|
|
199
|
+
*/
|
|
200
|
+
async apiKeyUsageRaw(requestParameters, initOverrides) {
|
|
201
|
+
const requestOptions = await this.apiKeyUsageRequestOpts(requestParameters);
|
|
202
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
203
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApiKeyUsageResponse_1.ApiKeyUsageResponseFromJSON)(jsonValue));
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Returns the key\'s request total for the 30-day UTC window and the sandboxes and Agents it created that still exist, including sandboxes that never got a sandbox row. Works for revoked keys owned by the authenticated account.
|
|
207
|
+
* Get API key usage
|
|
208
|
+
*/
|
|
209
|
+
async apiKeyUsage(requestParameters, initOverrides) {
|
|
210
|
+
const response = await this.apiKeyUsageRaw(requestParameters, initOverrides);
|
|
211
|
+
return await response.value();
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Creates request options for apiKeys without sending the request
|
|
215
|
+
*/
|
|
216
|
+
async apiKeysRequestOpts() {
|
|
217
|
+
const queryParameters = {};
|
|
218
|
+
const headerParameters = {};
|
|
219
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
220
|
+
const token = this.configuration.accessToken;
|
|
221
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
222
|
+
if (tokenString) {
|
|
223
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
let urlPath = `/api-keys`;
|
|
227
|
+
return {
|
|
228
|
+
path: urlPath,
|
|
229
|
+
method: 'GET',
|
|
230
|
+
headers: headerParameters,
|
|
231
|
+
query: queryParameters,
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Lists API key metadata only. Raw key secrets are not returned after creation/rotation. Results include expiry and scope. A restricted API-key caller receives `apiKeys: []`; only an unrestricted account key or browser/CLI session receives the account inventory. Bearer header is unchanged; scope lives on the key.
|
|
236
|
+
* List API keys
|
|
237
|
+
*/
|
|
238
|
+
async apiKeysRaw(initOverrides) {
|
|
239
|
+
const requestOptions = await this.apiKeysRequestOpts();
|
|
240
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
241
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApiKeysResponse_1.ApiKeysResponseFromJSON)(jsonValue));
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Lists API key metadata only. Raw key secrets are not returned after creation/rotation. Results include expiry and scope. A restricted API-key caller receives `apiKeys: []`; only an unrestricted account key or browser/CLI session receives the account inventory. Bearer header is unchanged; scope lives on the key.
|
|
245
|
+
* List API keys
|
|
246
|
+
*/
|
|
247
|
+
async apiKeys(initOverrides) {
|
|
248
|
+
const response = await this.apiKeysRaw(initOverrides);
|
|
249
|
+
return await response.value();
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Creates request options for artifact without sending the request
|
|
253
|
+
*/
|
|
254
|
+
async artifactRequestOpts(requestParameters) {
|
|
255
|
+
if (requestParameters['sandboxId'] == null) {
|
|
256
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling artifact().');
|
|
257
|
+
}
|
|
258
|
+
if (requestParameters['path'] == null) {
|
|
259
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling artifact().');
|
|
260
|
+
}
|
|
261
|
+
const queryParameters = {};
|
|
262
|
+
if (requestParameters['path'] != null) {
|
|
263
|
+
queryParameters['path'] = requestParameters['path'];
|
|
264
|
+
}
|
|
265
|
+
const headerParameters = {};
|
|
266
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
267
|
+
const token = this.configuration.accessToken;
|
|
268
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
269
|
+
if (tokenString) {
|
|
270
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
let urlPath = `/sandboxes/{sandboxId}/artifacts`;
|
|
274
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
275
|
+
return {
|
|
276
|
+
path: urlPath,
|
|
277
|
+
method: 'GET',
|
|
278
|
+
headers: headerParameters,
|
|
279
|
+
query: queryParameters,
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Download a sandbox artifact
|
|
284
|
+
*/
|
|
285
|
+
async artifactRaw(requestParameters, initOverrides) {
|
|
286
|
+
const requestOptions = await this.artifactRequestOpts(requestParameters);
|
|
287
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
288
|
+
return new runtime.BlobApiResponse(response);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Download a sandbox artifact
|
|
292
|
+
*/
|
|
293
|
+
async artifact(requestParameters, initOverrides) {
|
|
294
|
+
const response = await this.artifactRaw(requestParameters, initOverrides);
|
|
295
|
+
return await response.value();
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Creates request options for command without sending the request
|
|
299
|
+
*/
|
|
300
|
+
async commandRequestOpts(requestParameters) {
|
|
301
|
+
if (requestParameters['sandboxId'] == null) {
|
|
302
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling command().');
|
|
303
|
+
}
|
|
304
|
+
if (requestParameters['commandRequest'] == null) {
|
|
305
|
+
throw new runtime.RequiredError('commandRequest', 'Required parameter "commandRequest" was null or undefined when calling command().');
|
|
306
|
+
}
|
|
307
|
+
const queryParameters = {};
|
|
308
|
+
const headerParameters = {};
|
|
309
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
310
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
311
|
+
const token = this.configuration.accessToken;
|
|
312
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
313
|
+
if (tokenString) {
|
|
314
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
let urlPath = `/sandboxes/{sandboxId}/commands`;
|
|
318
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
319
|
+
return {
|
|
320
|
+
path: urlPath,
|
|
321
|
+
method: 'POST',
|
|
322
|
+
headers: headerParameters,
|
|
323
|
+
query: queryParameters,
|
|
324
|
+
body: (0, CommandRequest_1.CommandRequestToJSON)(requestParameters['commandRequest']),
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Runs the command synchronously by default (timeout configurable via `timeoutSeconds`, 600s cap). With `detached: true` the command starts in the background and a process id is returned immediately; poll `/sandboxes/{sandboxId}/commands/{processId}` for status and logs. Returns 400 invalid_timeout when `timeoutSeconds` is not an integer in 1-600. Returns 409 boat_starting (retryable) while the sandbox is still provisioning -- wait until the sandbox state is ready before running commands. Command execution is never retried automatically: a 502 boat_direct_failed means the command may already be running on the sandbox.
|
|
329
|
+
* Execute a command in a sandbox
|
|
330
|
+
*/
|
|
331
|
+
async commandRaw(requestParameters, initOverrides) {
|
|
332
|
+
const requestOptions = await this.commandRequestOpts(requestParameters);
|
|
333
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
334
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Command200Response_1.Command200ResponseFromJSON)(jsonValue));
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Runs the command synchronously by default (timeout configurable via `timeoutSeconds`, 600s cap). With `detached: true` the command starts in the background and a process id is returned immediately; poll `/sandboxes/{sandboxId}/commands/{processId}` for status and logs. Returns 400 invalid_timeout when `timeoutSeconds` is not an integer in 1-600. Returns 409 boat_starting (retryable) while the sandbox is still provisioning -- wait until the sandbox state is ready before running commands. Command execution is never retried automatically: a 502 boat_direct_failed means the command may already be running on the sandbox.
|
|
338
|
+
* Execute a command in a sandbox
|
|
339
|
+
*/
|
|
340
|
+
async command(requestParameters, initOverrides) {
|
|
341
|
+
const response = await this.commandRaw(requestParameters, initOverrides);
|
|
342
|
+
return await response.value();
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Creates request options for commandStatus without sending the request
|
|
346
|
+
*/
|
|
347
|
+
async commandStatusRequestOpts(requestParameters) {
|
|
348
|
+
if (requestParameters['sandboxId'] == null) {
|
|
349
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling commandStatus().');
|
|
350
|
+
}
|
|
351
|
+
if (requestParameters['processId'] == null) {
|
|
352
|
+
throw new runtime.RequiredError('processId', 'Required parameter "processId" was null or undefined when calling commandStatus().');
|
|
353
|
+
}
|
|
354
|
+
const queryParameters = {};
|
|
355
|
+
if (requestParameters['tailBytes'] != null) {
|
|
356
|
+
queryParameters['tailBytes'] = requestParameters['tailBytes'];
|
|
357
|
+
}
|
|
358
|
+
const headerParameters = {};
|
|
359
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
360
|
+
const token = this.configuration.accessToken;
|
|
361
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
362
|
+
if (tokenString) {
|
|
363
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
let urlPath = `/sandboxes/{sandboxId}/commands/{processId}`;
|
|
367
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
368
|
+
urlPath = urlPath.replace('{processId}', encodeURIComponent(String(requestParameters['processId'])));
|
|
369
|
+
return {
|
|
370
|
+
path: urlPath,
|
|
371
|
+
method: 'GET',
|
|
372
|
+
headers: headerParameters,
|
|
373
|
+
query: queryParameters,
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Get detached command status and logs
|
|
378
|
+
*/
|
|
379
|
+
async commandStatusRaw(requestParameters, initOverrides) {
|
|
380
|
+
const requestOptions = await this.commandStatusRequestOpts(requestParameters);
|
|
381
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
382
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CommandStatusResponse_1.CommandStatusResponseFromJSON)(jsonValue));
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Get detached command status and logs
|
|
386
|
+
*/
|
|
387
|
+
async commandStatus(requestParameters, initOverrides) {
|
|
388
|
+
const response = await this.commandStatusRaw(requestParameters, initOverrides);
|
|
389
|
+
return await response.value();
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Creates request options for conversations without sending the request
|
|
393
|
+
*/
|
|
394
|
+
async conversationsRequestOpts(requestParameters) {
|
|
395
|
+
if (requestParameters['sandboxId'] == null) {
|
|
396
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling conversations().');
|
|
397
|
+
}
|
|
398
|
+
const queryParameters = {};
|
|
399
|
+
const headerParameters = {};
|
|
400
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
401
|
+
const token = this.configuration.accessToken;
|
|
402
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
403
|
+
if (tokenString) {
|
|
404
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
let urlPath = `/sandboxes/{sandboxId}/conversations`;
|
|
408
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
409
|
+
return {
|
|
410
|
+
path: urlPath,
|
|
411
|
+
method: 'GET',
|
|
412
|
+
headers: headerParameters,
|
|
413
|
+
query: queryParameters,
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Every conversation on the sandbox, most recently prompted first, with what you need to pick one: how many prompts it holds, whether a turn is running in it right now, the last harness and model it ran on, a preview of its last prompt, and `current`, the one a `POST /prompt` without `new` or `conversationId` would continue. Pass an `id` back as `conversationId` on `POST /prompt` to resume that thread, or as `conversation` on `POST /steer`, `POST /interrupt` and `GET /events` to scope those. See [Integrated agents](/integrated-agents).
|
|
418
|
+
* List boat conversations
|
|
419
|
+
*/
|
|
420
|
+
async conversationsRaw(requestParameters, initOverrides) {
|
|
421
|
+
const requestOptions = await this.conversationsRequestOpts(requestParameters);
|
|
422
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
423
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConversationsResponse_1.ConversationsResponseFromJSON)(jsonValue));
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Every conversation on the sandbox, most recently prompted first, with what you need to pick one: how many prompts it holds, whether a turn is running in it right now, the last harness and model it ran on, a preview of its last prompt, and `current`, the one a `POST /prompt` without `new` or `conversationId` would continue. Pass an `id` back as `conversationId` on `POST /prompt` to resume that thread, or as `conversation` on `POST /steer`, `POST /interrupt` and `GET /events` to scope those. See [Integrated agents](/integrated-agents).
|
|
427
|
+
* List boat conversations
|
|
428
|
+
*/
|
|
429
|
+
async conversations(requestParameters, initOverrides) {
|
|
430
|
+
const response = await this.conversationsRaw(requestParameters, initOverrides);
|
|
431
|
+
return await response.value();
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Creates request options for create without sending the request
|
|
435
|
+
*/
|
|
436
|
+
async createRequestOpts(requestParameters) {
|
|
437
|
+
const queryParameters = {};
|
|
438
|
+
if (requestParameters['org'] != null) {
|
|
439
|
+
queryParameters['org'] = requestParameters['org'];
|
|
440
|
+
}
|
|
441
|
+
const headerParameters = {};
|
|
442
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
443
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
444
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
445
|
+
}
|
|
446
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
447
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
448
|
+
}
|
|
449
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
450
|
+
const token = this.configuration.accessToken;
|
|
451
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
452
|
+
if (tokenString) {
|
|
453
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
let urlPath = `/sandboxes`;
|
|
457
|
+
return {
|
|
458
|
+
path: urlPath,
|
|
459
|
+
method: 'POST',
|
|
460
|
+
headers: headerParameters,
|
|
461
|
+
query: queryParameters,
|
|
462
|
+
body: (0, CreateSandboxRequest_1.CreateSandboxRequestToJSON)(requestParameters['createSandboxRequest']),
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Provision a new cloud computer. Store the returned `sandbox.id` with your product job/session record. Send an `Idempotency-Key` header to make this call safe to retry after a lost response without creating a second billable sandbox.
|
|
467
|
+
* Create sandbox
|
|
468
|
+
*/
|
|
469
|
+
async createRaw(requestParameters, initOverrides) {
|
|
470
|
+
const requestOptions = await this.createRequestOpts(requestParameters);
|
|
471
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
472
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateSandboxResponse_1.CreateSandboxResponseFromJSON)(jsonValue));
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Provision a new cloud computer. Store the returned `sandbox.id` with your product job/session record. Send an `Idempotency-Key` header to make this call safe to retry after a lost response without creating a second billable sandbox.
|
|
476
|
+
* Create sandbox
|
|
477
|
+
*/
|
|
478
|
+
async create(requestParameters = {}, initOverrides) {
|
|
479
|
+
const response = await this.createRaw(requestParameters, initOverrides);
|
|
480
|
+
return await response.value();
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Creates request options for createEnvironment without sending the request
|
|
484
|
+
*/
|
|
485
|
+
async createEnvironmentRequestOpts(requestParameters) {
|
|
486
|
+
if (requestParameters['createSandboxEnvironmentRequest'] == null) {
|
|
487
|
+
throw new runtime.RequiredError('createSandboxEnvironmentRequest', 'Required parameter "createSandboxEnvironmentRequest" was null or undefined when calling createEnvironment().');
|
|
488
|
+
}
|
|
489
|
+
const queryParameters = {};
|
|
490
|
+
const headerParameters = {};
|
|
491
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
492
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
493
|
+
const token = this.configuration.accessToken;
|
|
494
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
495
|
+
if (tokenString) {
|
|
496
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
let urlPath = `/environments`;
|
|
500
|
+
return {
|
|
501
|
+
path: urlPath,
|
|
502
|
+
method: 'POST',
|
|
503
|
+
headers: headerParameters,
|
|
504
|
+
query: queryParameters,
|
|
505
|
+
body: (0, CreateSandboxEnvironmentRequest_1.CreateSandboxEnvironmentRequestToJSON)(requestParameters['createSandboxEnvironmentRequest']),
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Create a new named environment. It starts on version 1 with all fine-grained flags on and `safeForThirdParties` off.
|
|
510
|
+
* Create a sandbox environment
|
|
511
|
+
*/
|
|
512
|
+
async createEnvironmentRaw(requestParameters, initOverrides) {
|
|
513
|
+
const requestOptions = await this.createEnvironmentRequestOpts(requestParameters);
|
|
514
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
515
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxEnvironmentListResponse_1.SandboxEnvironmentListResponseFromJSON)(jsonValue));
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Create a new named environment. It starts on version 1 with all fine-grained flags on and `safeForThirdParties` off.
|
|
519
|
+
* Create a sandbox environment
|
|
520
|
+
*/
|
|
521
|
+
async createEnvironment(requestParameters, initOverrides) {
|
|
522
|
+
const response = await this.createEnvironmentRaw(requestParameters, initOverrides);
|
|
523
|
+
return await response.value();
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Creates request options for createScopedApiKey without sending the request
|
|
527
|
+
*/
|
|
528
|
+
async createScopedApiKeyRequestOpts(requestParameters) {
|
|
529
|
+
if (requestParameters['createScopedApiKeyRequest'] == null) {
|
|
530
|
+
throw new runtime.RequiredError('createScopedApiKeyRequest', 'Required parameter "createScopedApiKeyRequest" was null or undefined when calling createScopedApiKey().');
|
|
531
|
+
}
|
|
532
|
+
const queryParameters = {};
|
|
533
|
+
const headerParameters = {};
|
|
534
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
535
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
536
|
+
const token = this.configuration.accessToken;
|
|
537
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
538
|
+
if (tokenString) {
|
|
539
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
let urlPath = `/api-keys/scoped`;
|
|
543
|
+
return {
|
|
544
|
+
path: urlPath,
|
|
545
|
+
method: 'POST',
|
|
546
|
+
headers: headerParameters,
|
|
547
|
+
query: queryParameters,
|
|
548
|
+
body: (0, CreateScopedApiKeyRequest_1.CreateScopedApiKeyRequestToJSON)(requestParameters['createScopedApiKeyRequest']),
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Creates a scoped, expiring API key. Requires a dashboard/CLI session or an admin-scoped token. The secret is returned once. This dedicated path returns a typed 503 until scoped credential creation is activated.
|
|
553
|
+
* Create a scoped API key
|
|
554
|
+
*/
|
|
555
|
+
async createScopedApiKeyRaw(requestParameters, initOverrides) {
|
|
556
|
+
const requestOptions = await this.createScopedApiKeyRequestOpts(requestParameters);
|
|
557
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
558
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApiKeySecretResponse_1.ApiKeySecretResponseFromJSON)(jsonValue));
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Creates a scoped, expiring API key. Requires a dashboard/CLI session or an admin-scoped token. The secret is returned once. This dedicated path returns a typed 503 until scoped credential creation is activated.
|
|
562
|
+
* Create a scoped API key
|
|
563
|
+
*/
|
|
564
|
+
async createScopedApiKey(requestParameters, initOverrides) {
|
|
565
|
+
const response = await this.createScopedApiKeyRaw(requestParameters, initOverrides);
|
|
566
|
+
return await response.value();
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Creates request options for createWebhook without sending the request
|
|
570
|
+
*/
|
|
571
|
+
async createWebhookRequestOpts(requestParameters) {
|
|
572
|
+
if (requestParameters['webhookCreateRequest'] == null) {
|
|
573
|
+
throw new runtime.RequiredError('webhookCreateRequest', 'Required parameter "webhookCreateRequest" was null or undefined when calling createWebhook().');
|
|
574
|
+
}
|
|
575
|
+
const queryParameters = {};
|
|
576
|
+
const headerParameters = {};
|
|
577
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
578
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
579
|
+
const token = this.configuration.accessToken;
|
|
580
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
581
|
+
if (tokenString) {
|
|
582
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
let urlPath = `/webhooks`;
|
|
586
|
+
return {
|
|
587
|
+
path: urlPath,
|
|
588
|
+
method: 'POST',
|
|
589
|
+
headers: headerParameters,
|
|
590
|
+
query: queryParameters,
|
|
591
|
+
body: (0, WebhookCreateRequest_1.WebhookCreateRequestToJSON)(requestParameters['webhookCreateRequest']),
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Registers an account-wide endpoint for sandbox lifecycle events. The endpoint must use HTTPS on port 443 and resolve only to public addresses. Redirects are not followed during delivery. The signing secret is returned only in this response. An account can register at most 10 unique endpoint URLs.
|
|
596
|
+
* Create webhook
|
|
597
|
+
*/
|
|
598
|
+
async createWebhookRaw(requestParameters, initOverrides) {
|
|
599
|
+
const requestOptions = await this.createWebhookRequestOpts(requestParameters);
|
|
600
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
601
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, WebhookSecretResponse_1.WebhookSecretResponseFromJSON)(jsonValue));
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Registers an account-wide endpoint for sandbox lifecycle events. The endpoint must use HTTPS on port 443 and resolve only to public addresses. Redirects are not followed during delivery. The signing secret is returned only in this response. An account can register at most 10 unique endpoint URLs.
|
|
605
|
+
* Create webhook
|
|
606
|
+
*/
|
|
607
|
+
async createWebhook(requestParameters, initOverrides) {
|
|
608
|
+
const response = await this.createWebhookRaw(requestParameters, initOverrides);
|
|
609
|
+
return await response.value();
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Creates request options for deleteEnvironment without sending the request
|
|
613
|
+
*/
|
|
614
|
+
async deleteEnvironmentRequestOpts(requestParameters) {
|
|
615
|
+
if (requestParameters['environmentId'] == null) {
|
|
616
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling deleteEnvironment().');
|
|
617
|
+
}
|
|
618
|
+
const queryParameters = {};
|
|
619
|
+
const headerParameters = {};
|
|
620
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
621
|
+
const token = this.configuration.accessToken;
|
|
622
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
623
|
+
if (tokenString) {
|
|
624
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
let urlPath = `/environments/{environmentId}`;
|
|
628
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
629
|
+
return {
|
|
630
|
+
path: urlPath,
|
|
631
|
+
method: 'DELETE',
|
|
632
|
+
headers: headerParameters,
|
|
633
|
+
query: queryParameters,
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* Soft-deletes an environment. The default environment cannot be deleted, and at least one environment is always kept.
|
|
638
|
+
* Delete a sandbox environment
|
|
639
|
+
*/
|
|
640
|
+
async deleteEnvironmentRaw(requestParameters, initOverrides) {
|
|
641
|
+
const requestOptions = await this.deleteEnvironmentRequestOpts(requestParameters);
|
|
642
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
643
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxEnvironmentResponse_1.SandboxEnvironmentResponseFromJSON)(jsonValue));
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Soft-deletes an environment. The default environment cannot be deleted, and at least one environment is always kept.
|
|
647
|
+
* Delete a sandbox environment
|
|
648
|
+
*/
|
|
649
|
+
async deleteEnvironment(requestParameters, initOverrides) {
|
|
650
|
+
const response = await this.deleteEnvironmentRaw(requestParameters, initOverrides);
|
|
651
|
+
return await response.value();
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* Creates request options for deleteEnvironmentRepo without sending the request
|
|
655
|
+
*/
|
|
656
|
+
async deleteEnvironmentRepoRequestOpts(requestParameters) {
|
|
657
|
+
if (requestParameters['environmentId'] == null) {
|
|
658
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling deleteEnvironmentRepo().');
|
|
659
|
+
}
|
|
660
|
+
if (requestParameters['repositoryId'] == null) {
|
|
661
|
+
throw new runtime.RequiredError('repositoryId', 'Required parameter "repositoryId" was null or undefined when calling deleteEnvironmentRepo().');
|
|
662
|
+
}
|
|
663
|
+
const queryParameters = {};
|
|
664
|
+
const headerParameters = {};
|
|
665
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
666
|
+
const token = this.configuration.accessToken;
|
|
667
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
668
|
+
if (tokenString) {
|
|
669
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
let urlPath = `/environments/{environmentId}/repos/{repositoryId}`;
|
|
673
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
674
|
+
urlPath = urlPath.replace('{repositoryId}', encodeURIComponent(String(requestParameters['repositoryId'])));
|
|
675
|
+
return {
|
|
676
|
+
path: urlPath,
|
|
677
|
+
method: 'DELETE',
|
|
678
|
+
headers: headerParameters,
|
|
679
|
+
query: queryParameters,
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* Removes one repository from the environment\'s selection. Mints a new immutable version.
|
|
684
|
+
* Remove a repository from an environment
|
|
685
|
+
*/
|
|
686
|
+
async deleteEnvironmentRepoRaw(requestParameters, initOverrides) {
|
|
687
|
+
const requestOptions = await this.deleteEnvironmentRepoRequestOpts(requestParameters);
|
|
688
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
689
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, EnvironmentItemChangeResponse_1.EnvironmentItemChangeResponseFromJSON)(jsonValue));
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* Removes one repository from the environment\'s selection. Mints a new immutable version.
|
|
693
|
+
* Remove a repository from an environment
|
|
694
|
+
*/
|
|
695
|
+
async deleteEnvironmentRepo(requestParameters, initOverrides) {
|
|
696
|
+
const response = await this.deleteEnvironmentRepoRaw(requestParameters, initOverrides);
|
|
697
|
+
return await response.value();
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* Creates request options for deleteEnvironmentSecretFile without sending the request
|
|
701
|
+
*/
|
|
702
|
+
async deleteEnvironmentSecretFileRequestOpts(requestParameters) {
|
|
703
|
+
if (requestParameters['path'] == null) {
|
|
704
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling deleteEnvironmentSecretFile().');
|
|
705
|
+
}
|
|
706
|
+
if (requestParameters['environmentId'] == null) {
|
|
707
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling deleteEnvironmentSecretFile().');
|
|
708
|
+
}
|
|
709
|
+
const queryParameters = {};
|
|
710
|
+
if (requestParameters['path'] != null) {
|
|
711
|
+
queryParameters['path'] = requestParameters['path'];
|
|
712
|
+
}
|
|
713
|
+
const headerParameters = {};
|
|
714
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
715
|
+
const token = this.configuration.accessToken;
|
|
716
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
717
|
+
if (tokenString) {
|
|
718
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
let urlPath = `/environments/{environmentId}/secret-files`;
|
|
722
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
723
|
+
return {
|
|
724
|
+
path: urlPath,
|
|
725
|
+
method: 'DELETE',
|
|
726
|
+
headers: headerParameters,
|
|
727
|
+
query: queryParameters,
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Removes the secret file at `path`. Mints a new immutable version.
|
|
732
|
+
* Remove one secret file
|
|
733
|
+
*/
|
|
734
|
+
async deleteEnvironmentSecretFileRaw(requestParameters, initOverrides) {
|
|
735
|
+
const requestOptions = await this.deleteEnvironmentSecretFileRequestOpts(requestParameters);
|
|
736
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
737
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, EnvironmentItemChangeResponse_1.EnvironmentItemChangeResponseFromJSON)(jsonValue));
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Removes the secret file at `path`. Mints a new immutable version.
|
|
741
|
+
* Remove one secret file
|
|
742
|
+
*/
|
|
743
|
+
async deleteEnvironmentSecretFile(requestParameters, initOverrides) {
|
|
744
|
+
const response = await this.deleteEnvironmentSecretFileRaw(requestParameters, initOverrides);
|
|
745
|
+
return await response.value();
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Creates request options for deleteEnvironmentVar without sending the request
|
|
749
|
+
*/
|
|
750
|
+
async deleteEnvironmentVarRequestOpts(requestParameters) {
|
|
751
|
+
if (requestParameters['environmentId'] == null) {
|
|
752
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling deleteEnvironmentVar().');
|
|
753
|
+
}
|
|
754
|
+
if (requestParameters['key'] == null) {
|
|
755
|
+
throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling deleteEnvironmentVar().');
|
|
756
|
+
}
|
|
757
|
+
const queryParameters = {};
|
|
758
|
+
const headerParameters = {};
|
|
759
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
760
|
+
const token = this.configuration.accessToken;
|
|
761
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
762
|
+
if (tokenString) {
|
|
763
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
let urlPath = `/environments/{environmentId}/vars/{key}`;
|
|
767
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
768
|
+
urlPath = urlPath.replace('{key}', encodeURIComponent(String(requestParameters['key'])));
|
|
769
|
+
return {
|
|
770
|
+
path: urlPath,
|
|
771
|
+
method: 'DELETE',
|
|
772
|
+
headers: headerParameters,
|
|
773
|
+
query: queryParameters,
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Removes a single variable. Mints a new immutable version.
|
|
778
|
+
* Remove one environment variable
|
|
779
|
+
*/
|
|
780
|
+
async deleteEnvironmentVarRaw(requestParameters, initOverrides) {
|
|
781
|
+
const requestOptions = await this.deleteEnvironmentVarRequestOpts(requestParameters);
|
|
782
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
783
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, EnvironmentItemChangeResponse_1.EnvironmentItemChangeResponseFromJSON)(jsonValue));
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Removes a single variable. Mints a new immutable version.
|
|
787
|
+
* Remove one environment variable
|
|
788
|
+
*/
|
|
789
|
+
async deleteEnvironmentVar(requestParameters, initOverrides) {
|
|
790
|
+
const response = await this.deleteEnvironmentVarRaw(requestParameters, initOverrides);
|
|
791
|
+
return await response.value();
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Creates request options for deleteNamedSnapshot without sending the request
|
|
795
|
+
*/
|
|
796
|
+
async deleteNamedSnapshotRequestOpts(requestParameters) {
|
|
797
|
+
if (requestParameters['name'] == null) {
|
|
798
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteNamedSnapshot().');
|
|
799
|
+
}
|
|
800
|
+
const queryParameters = {};
|
|
801
|
+
const headerParameters = {};
|
|
802
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
803
|
+
const token = this.configuration.accessToken;
|
|
804
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
805
|
+
if (tokenString) {
|
|
806
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
let urlPath = `/named-snapshots/{name}`;
|
|
810
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
811
|
+
return {
|
|
812
|
+
path: urlPath,
|
|
813
|
+
method: 'DELETE',
|
|
814
|
+
headers: headerParameters,
|
|
815
|
+
query: queryParameters,
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Remove a named snapshot and release its storage (`boat snapshot rm <name>` in the CLI). Sandboxes already deployed from it are unaffected.
|
|
820
|
+
* Remove a named snapshot
|
|
821
|
+
*/
|
|
822
|
+
async deleteNamedSnapshotRaw(requestParameters, initOverrides) {
|
|
823
|
+
const requestOptions = await this.deleteNamedSnapshotRequestOpts(requestParameters);
|
|
824
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
825
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, NamedSnapshotDeletedResponse_1.NamedSnapshotDeletedResponseFromJSON)(jsonValue));
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* Remove a named snapshot and release its storage (`boat snapshot rm <name>` in the CLI). Sandboxes already deployed from it are unaffected.
|
|
829
|
+
* Remove a named snapshot
|
|
830
|
+
*/
|
|
831
|
+
async deleteNamedSnapshot(requestParameters, initOverrides) {
|
|
832
|
+
const response = await this.deleteNamedSnapshotRaw(requestParameters, initOverrides);
|
|
833
|
+
return await response.value();
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Creates request options for deleteSandbox without sending the request
|
|
837
|
+
*/
|
|
838
|
+
async deleteSandboxRequestOpts(requestParameters) {
|
|
839
|
+
if (requestParameters['xAsciiConfirmDelete'] == null) {
|
|
840
|
+
throw new runtime.RequiredError('xAsciiConfirmDelete', 'Required parameter "xAsciiConfirmDelete" was null or undefined when calling deleteSandbox().');
|
|
841
|
+
}
|
|
842
|
+
if (requestParameters['sandboxId'] == null) {
|
|
843
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling deleteSandbox().');
|
|
844
|
+
}
|
|
845
|
+
const queryParameters = {};
|
|
846
|
+
const headerParameters = {};
|
|
847
|
+
if (requestParameters['xAsciiConfirmDelete'] != null) {
|
|
848
|
+
headerParameters['X-Ascii-Confirm-Delete'] = String(requestParameters['xAsciiConfirmDelete']);
|
|
849
|
+
}
|
|
850
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
851
|
+
const token = this.configuration.accessToken;
|
|
852
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
853
|
+
if (tokenString) {
|
|
854
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
let urlPath = `/sandboxes/{sandboxId}`;
|
|
858
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
859
|
+
return {
|
|
860
|
+
path: urlPath,
|
|
861
|
+
method: 'DELETE',
|
|
862
|
+
headers: headerParameters,
|
|
863
|
+
query: queryParameters,
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Accept irreversible background deletion of the sandbox machine, snapshots, and content-bearing records. This is not archive: the sandbox cannot be resumed. Named snapshots and other shared artifacts remain independent. Poll the returned operation until `completed`.
|
|
868
|
+
* Permanently delete sandbox data
|
|
869
|
+
*/
|
|
870
|
+
async deleteSandboxRaw(requestParameters, initOverrides) {
|
|
871
|
+
const requestOptions = await this.deleteSandboxRequestOpts(requestParameters);
|
|
872
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
873
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeletionOperationResponse_1.DeletionOperationResponseFromJSON)(jsonValue));
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Accept irreversible background deletion of the sandbox machine, snapshots, and content-bearing records. This is not archive: the sandbox cannot be resumed. Named snapshots and other shared artifacts remain independent. Poll the returned operation until `completed`.
|
|
877
|
+
* Permanently delete sandbox data
|
|
878
|
+
*/
|
|
879
|
+
async deleteSandbox(requestParameters, initOverrides) {
|
|
880
|
+
const response = await this.deleteSandboxRaw(requestParameters, initOverrides);
|
|
881
|
+
return await response.value();
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* Creates request options for deleteSnapshot without sending the request
|
|
885
|
+
*/
|
|
886
|
+
async deleteSnapshotRequestOpts(requestParameters) {
|
|
887
|
+
if (requestParameters['snapshotId'] == null) {
|
|
888
|
+
throw new runtime.RequiredError('snapshotId', 'Required parameter "snapshotId" was null or undefined when calling deleteSnapshot().');
|
|
889
|
+
}
|
|
890
|
+
if (requestParameters['xAsciiConfirmDelete'] == null) {
|
|
891
|
+
throw new runtime.RequiredError('xAsciiConfirmDelete', 'Required parameter "xAsciiConfirmDelete" was null or undefined when calling deleteSnapshot().');
|
|
892
|
+
}
|
|
893
|
+
const queryParameters = {};
|
|
894
|
+
const headerParameters = {};
|
|
895
|
+
if (requestParameters['xAsciiConfirmDelete'] != null) {
|
|
896
|
+
headerParameters['X-Ascii-Confirm-Delete'] = String(requestParameters['xAsciiConfirmDelete']);
|
|
897
|
+
}
|
|
898
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
899
|
+
const token = this.configuration.accessToken;
|
|
900
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
901
|
+
if (tokenString) {
|
|
902
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
let urlPath = `/snapshots/{snapshotId}`;
|
|
906
|
+
urlPath = urlPath.replace('{snapshotId}', encodeURIComponent(String(requestParameters['snapshotId'])));
|
|
907
|
+
return {
|
|
908
|
+
path: urlPath,
|
|
909
|
+
method: 'DELETE',
|
|
910
|
+
headers: headerParameters,
|
|
911
|
+
query: queryParameters,
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Accept irreversible background deletion of an unpinned snapshot owned by the authenticated account. Snapshots required by another incremental snapshot or active restore return `409`. Poll the returned operation until `completed`.
|
|
916
|
+
* Permanently delete snapshot data
|
|
917
|
+
*/
|
|
918
|
+
async deleteSnapshotRaw(requestParameters, initOverrides) {
|
|
919
|
+
const requestOptions = await this.deleteSnapshotRequestOpts(requestParameters);
|
|
920
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
921
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeletionOperationResponse_1.DeletionOperationResponseFromJSON)(jsonValue));
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Accept irreversible background deletion of an unpinned snapshot owned by the authenticated account. Snapshots required by another incremental snapshot or active restore return `409`. Poll the returned operation until `completed`.
|
|
925
|
+
* Permanently delete snapshot data
|
|
926
|
+
*/
|
|
927
|
+
async deleteSnapshot(requestParameters, initOverrides) {
|
|
928
|
+
const response = await this.deleteSnapshotRaw(requestParameters, initOverrides);
|
|
929
|
+
return await response.value();
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Creates request options for deleteWebhook without sending the request
|
|
933
|
+
*/
|
|
934
|
+
async deleteWebhookRequestOpts(requestParameters) {
|
|
935
|
+
if (requestParameters['webhookId'] == null) {
|
|
936
|
+
throw new runtime.RequiredError('webhookId', 'Required parameter "webhookId" was null or undefined when calling deleteWebhook().');
|
|
937
|
+
}
|
|
938
|
+
const queryParameters = {};
|
|
939
|
+
const headerParameters = {};
|
|
940
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
941
|
+
const token = this.configuration.accessToken;
|
|
942
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
943
|
+
if (tokenString) {
|
|
944
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
let urlPath = `/webhooks/{webhookId}`;
|
|
948
|
+
urlPath = urlPath.replace('{webhookId}', encodeURIComponent(String(requestParameters['webhookId'])));
|
|
949
|
+
return {
|
|
950
|
+
path: urlPath,
|
|
951
|
+
method: 'DELETE',
|
|
952
|
+
headers: headerParameters,
|
|
953
|
+
query: queryParameters,
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
/**
|
|
957
|
+
* Deletes the endpoint and its queued deliveries. An attempt already in flight can still arrive.
|
|
958
|
+
* Delete webhook
|
|
959
|
+
*/
|
|
960
|
+
async deleteWebhookRaw(requestParameters, initOverrides) {
|
|
961
|
+
const requestOptions = await this.deleteWebhookRequestOpts(requestParameters);
|
|
962
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
963
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, WebhookDeleteResponse_1.WebhookDeleteResponseFromJSON)(jsonValue));
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* Deletes the endpoint and its queued deliveries. An attempt already in flight can still arrive.
|
|
967
|
+
* Delete webhook
|
|
968
|
+
*/
|
|
969
|
+
async deleteWebhook(requestParameters, initOverrides) {
|
|
970
|
+
const response = await this.deleteWebhookRaw(requestParameters, initOverrides);
|
|
971
|
+
return await response.value();
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
* Creates request options for desktop without sending the request
|
|
975
|
+
*/
|
|
976
|
+
async desktopRequestOpts(requestParameters) {
|
|
977
|
+
if (requestParameters['sandboxId'] == null) {
|
|
978
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling desktop().');
|
|
979
|
+
}
|
|
980
|
+
const queryParameters = {};
|
|
981
|
+
if (requestParameters['vnc'] != null) {
|
|
982
|
+
queryParameters['vnc'] = requestParameters['vnc'];
|
|
983
|
+
}
|
|
984
|
+
if (requestParameters['theme'] != null) {
|
|
985
|
+
queryParameters['theme'] = requestParameters['theme'];
|
|
986
|
+
}
|
|
987
|
+
const headerParameters = {};
|
|
988
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
989
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
990
|
+
const token = this.configuration.accessToken;
|
|
991
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
992
|
+
if (tokenString) {
|
|
993
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
let urlPath = `/sandboxes/{sandboxId}/desktop`;
|
|
997
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
998
|
+
return {
|
|
999
|
+
path: urlPath,
|
|
1000
|
+
method: 'POST',
|
|
1001
|
+
headers: headerParameters,
|
|
1002
|
+
query: queryParameters,
|
|
1003
|
+
body: (0, DesktopRequest_1.DesktopRequestToJSON)(requestParameters['desktopRequest']),
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Create or fetch a secret-bearing desktop/noVNC URL for live computer-use visibility. Use `?vnc=1` for noVNC; a `provisioning: true` response means poll again.
|
|
1008
|
+
* Get desktop streaming URL
|
|
1009
|
+
*/
|
|
1010
|
+
async desktopRaw(requestParameters, initOverrides) {
|
|
1011
|
+
const requestOptions = await this.desktopRequestOpts(requestParameters);
|
|
1012
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1013
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DesktopResponse_1.DesktopResponseFromJSON)(jsonValue));
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* Create or fetch a secret-bearing desktop/noVNC URL for live computer-use visibility. Use `?vnc=1` for noVNC; a `provisioning: true` response means poll again.
|
|
1017
|
+
* Get desktop streaming URL
|
|
1018
|
+
*/
|
|
1019
|
+
async desktop(requestParameters, initOverrides) {
|
|
1020
|
+
const response = await this.desktopRaw(requestParameters, initOverrides);
|
|
1021
|
+
return await response.value();
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Creates request options for environments without sending the request
|
|
1025
|
+
*/
|
|
1026
|
+
async environmentsRequestOpts() {
|
|
1027
|
+
const queryParameters = {};
|
|
1028
|
+
const headerParameters = {};
|
|
1029
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1030
|
+
const token = this.configuration.accessToken;
|
|
1031
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1032
|
+
if (tokenString) {
|
|
1033
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
let urlPath = `/environments`;
|
|
1037
|
+
return {
|
|
1038
|
+
path: urlPath,
|
|
1039
|
+
method: 'GET',
|
|
1040
|
+
headers: headerParameters,
|
|
1041
|
+
query: queryParameters,
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Returns every non-deleted sandbox environment with its latest-version flags, contents, and per-version sandbox usage. A default environment named `base` is created on first access if none exists.
|
|
1046
|
+
* List Sandbox environments
|
|
1047
|
+
*/
|
|
1048
|
+
async environmentsRaw(initOverrides) {
|
|
1049
|
+
const requestOptions = await this.environmentsRequestOpts();
|
|
1050
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1051
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxEnvironmentListResponse_1.SandboxEnvironmentListResponseFromJSON)(jsonValue));
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Returns every non-deleted sandbox environment with its latest-version flags, contents, and per-version sandbox usage. A default environment named `base` is created on first access if none exists.
|
|
1055
|
+
* List Sandbox environments
|
|
1056
|
+
*/
|
|
1057
|
+
async environments(initOverrides) {
|
|
1058
|
+
const response = await this.environmentsRaw(initOverrides);
|
|
1059
|
+
return await response.value();
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Creates request options for events without sending the request
|
|
1063
|
+
*/
|
|
1064
|
+
async eventsRequestOpts(requestParameters) {
|
|
1065
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1066
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling events().');
|
|
1067
|
+
}
|
|
1068
|
+
const queryParameters = {};
|
|
1069
|
+
if (requestParameters['limit'] != null) {
|
|
1070
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1071
|
+
}
|
|
1072
|
+
if (requestParameters['cursor'] != null) {
|
|
1073
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
1074
|
+
}
|
|
1075
|
+
if (requestParameters['sort'] != null) {
|
|
1076
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1077
|
+
}
|
|
1078
|
+
if (requestParameters['type'] != null) {
|
|
1079
|
+
queryParameters['type'] = requestParameters['type'];
|
|
1080
|
+
}
|
|
1081
|
+
if (requestParameters['conversation'] != null) {
|
|
1082
|
+
queryParameters['conversation'] = requestParameters['conversation'];
|
|
1083
|
+
}
|
|
1084
|
+
const headerParameters = {};
|
|
1085
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1086
|
+
const token = this.configuration.accessToken;
|
|
1087
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1088
|
+
if (tokenString) {
|
|
1089
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
let urlPath = `/sandboxes/{sandboxId}/events`;
|
|
1093
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
1094
|
+
return {
|
|
1095
|
+
path: urlPath,
|
|
1096
|
+
method: 'GET',
|
|
1097
|
+
headers: headerParameters,
|
|
1098
|
+
query: queryParameters,
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* Return Sandbox work, lifecycle, and progress events so product UIs can show what the sandbox is doing. A Sandbox runs many conversations in parallel; this streams **all** of them by default and every event carries a `conversationId`. Filter to one or more with `conversation`. Event payloads are extensible. Clients can long-poll this endpoint with `sort=asc` and a cursor to stream responses. Response events expose agent text, streaming partials via `data.is_streaming`, and tool calls/results via `data.tools`.
|
|
1103
|
+
* List boat events
|
|
1104
|
+
*/
|
|
1105
|
+
async eventsRaw(requestParameters, initOverrides) {
|
|
1106
|
+
const requestOptions = await this.eventsRequestOpts(requestParameters);
|
|
1107
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, EventsResponse_1.EventsResponseFromJSON)(jsonValue));
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Return Sandbox work, lifecycle, and progress events so product UIs can show what the sandbox is doing. A Sandbox runs many conversations in parallel; this streams **all** of them by default and every event carries a `conversationId`. Filter to one or more with `conversation`. Event payloads are extensible. Clients can long-poll this endpoint with `sort=asc` and a cursor to stream responses. Response events expose agent text, streaming partials via `data.is_streaming`, and tool calls/results via `data.tools`.
|
|
1112
|
+
* List boat events
|
|
1113
|
+
*/
|
|
1114
|
+
async events(requestParameters, initOverrides) {
|
|
1115
|
+
const response = await this.eventsRaw(requestParameters, initOverrides);
|
|
1116
|
+
return await response.value();
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Creates request options for fork without sending the request
|
|
1120
|
+
*/
|
|
1121
|
+
async forkRequestOpts(requestParameters) {
|
|
1122
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1123
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling fork().');
|
|
1124
|
+
}
|
|
1125
|
+
const queryParameters = {};
|
|
1126
|
+
const headerParameters = {};
|
|
1127
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1128
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
1129
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
1130
|
+
}
|
|
1131
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1132
|
+
const token = this.configuration.accessToken;
|
|
1133
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1134
|
+
if (tokenString) {
|
|
1135
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
let urlPath = `/sandboxes/{sandboxId}/fork`;
|
|
1139
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
1140
|
+
return {
|
|
1141
|
+
path: urlPath,
|
|
1142
|
+
method: 'POST',
|
|
1143
|
+
headers: headerParameters,
|
|
1144
|
+
query: queryParameters,
|
|
1145
|
+
body: (0, ForkRequest_1.ForkRequestToJSON)(requestParameters['forkRequest']),
|
|
1146
|
+
};
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* Provision a new sandbox from an existing one. Send an `Idempotency-Key` header to make this call safe to retry after a lost response without creating a second billable fork.
|
|
1150
|
+
* Fork sandbox
|
|
1151
|
+
*/
|
|
1152
|
+
async forkRaw(requestParameters, initOverrides) {
|
|
1153
|
+
const requestOptions = await this.forkRequestOpts(requestParameters);
|
|
1154
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1155
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxActionResponse_1.SandboxActionResponseFromJSON)(jsonValue));
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Provision a new sandbox from an existing one. Send an `Idempotency-Key` header to make this call safe to retry after a lost response without creating a second billable fork.
|
|
1159
|
+
* Fork sandbox
|
|
1160
|
+
*/
|
|
1161
|
+
async fork(requestParameters, initOverrides) {
|
|
1162
|
+
const response = await this.forkRaw(requestParameters, initOverrides);
|
|
1163
|
+
return await response.value();
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Creates request options for get without sending the request
|
|
1167
|
+
*/
|
|
1168
|
+
async getRequestOpts(requestParameters) {
|
|
1169
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1170
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling get().');
|
|
1171
|
+
}
|
|
1172
|
+
const queryParameters = {};
|
|
1173
|
+
const headerParameters = {};
|
|
1174
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1175
|
+
const token = this.configuration.accessToken;
|
|
1176
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1177
|
+
if (tokenString) {
|
|
1178
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
let urlPath = `/sandboxes/{sandboxId}`;
|
|
1182
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
1183
|
+
return {
|
|
1184
|
+
path: urlPath,
|
|
1185
|
+
method: 'GET',
|
|
1186
|
+
headers: headerParameters,
|
|
1187
|
+
query: queryParameters,
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* Poll this endpoint after create, stop, resume, or fork operations.
|
|
1192
|
+
* Get sandbox
|
|
1193
|
+
*/
|
|
1194
|
+
async getRaw(requestParameters, initOverrides) {
|
|
1195
|
+
const requestOptions = await this.getRequestOpts(requestParameters);
|
|
1196
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1197
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxInfoResponse_1.SandboxInfoResponseFromJSON)(jsonValue));
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* Poll this endpoint after create, stop, resume, or fork operations.
|
|
1201
|
+
* Get sandbox
|
|
1202
|
+
*/
|
|
1203
|
+
async get(requestParameters, initOverrides) {
|
|
1204
|
+
const response = await this.getRaw(requestParameters, initOverrides);
|
|
1205
|
+
return await response.value();
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Creates request options for getDataRetention without sending the request
|
|
1209
|
+
*/
|
|
1210
|
+
async getDataRetentionRequestOpts() {
|
|
1211
|
+
const queryParameters = {};
|
|
1212
|
+
const headerParameters = {};
|
|
1213
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1214
|
+
const token = this.configuration.accessToken;
|
|
1215
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1216
|
+
if (tokenString) {
|
|
1217
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
let urlPath = `/account/data-retention`;
|
|
1221
|
+
return {
|
|
1222
|
+
path: urlPath,
|
|
1223
|
+
method: 'GET',
|
|
1224
|
+
headers: headerParameters,
|
|
1225
|
+
query: queryParameters,
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* Returns the current zero-data-retention policy. Per-Boat API keys cannot access this account-wide setting. Responses are never cached.
|
|
1230
|
+
* Get account data-retention policy
|
|
1231
|
+
*/
|
|
1232
|
+
async getDataRetentionRaw(initOverrides) {
|
|
1233
|
+
const requestOptions = await this.getDataRetentionRequestOpts();
|
|
1234
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1235
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataRetentionPolicyResponse_1.DataRetentionPolicyResponseFromJSON)(jsonValue));
|
|
1236
|
+
}
|
|
1237
|
+
/**
|
|
1238
|
+
* Returns the current zero-data-retention policy. Per-Boat API keys cannot access this account-wide setting. Responses are never cached.
|
|
1239
|
+
* Get account data-retention policy
|
|
1240
|
+
*/
|
|
1241
|
+
async getDataRetention(initOverrides) {
|
|
1242
|
+
const response = await this.getDataRetentionRaw(initOverrides);
|
|
1243
|
+
return await response.value();
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* Creates request options for getDeletionOperation without sending the request
|
|
1247
|
+
*/
|
|
1248
|
+
async getDeletionOperationRequestOpts(requestParameters) {
|
|
1249
|
+
if (requestParameters['operationId'] == null) {
|
|
1250
|
+
throw new runtime.RequiredError('operationId', 'Required parameter "operationId" was null or undefined when calling getDeletionOperation().');
|
|
1251
|
+
}
|
|
1252
|
+
const queryParameters = {};
|
|
1253
|
+
const headerParameters = {};
|
|
1254
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1255
|
+
const token = this.configuration.accessToken;
|
|
1256
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1257
|
+
if (tokenString) {
|
|
1258
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
let urlPath = `/deletion-operations/{operationId}`;
|
|
1262
|
+
urlPath = urlPath.replace('{operationId}', encodeURIComponent(String(requestParameters['operationId'])));
|
|
1263
|
+
return {
|
|
1264
|
+
path: urlPath,
|
|
1265
|
+
method: 'GET',
|
|
1266
|
+
headers: headerParameters,
|
|
1267
|
+
query: queryParameters,
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Poll an accepted Boat or snapshot deletion. Only operations owned by the authenticated account are returned. Responses are never cached.
|
|
1272
|
+
* Get deletion operation
|
|
1273
|
+
*/
|
|
1274
|
+
async getDeletionOperationRaw(requestParameters, initOverrides) {
|
|
1275
|
+
const requestOptions = await this.getDeletionOperationRequestOpts(requestParameters);
|
|
1276
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1277
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeletionOperationResponse_1.DeletionOperationResponseFromJSON)(jsonValue));
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Poll an accepted Boat or snapshot deletion. Only operations owned by the authenticated account are returned. Responses are never cached.
|
|
1281
|
+
* Get deletion operation
|
|
1282
|
+
*/
|
|
1283
|
+
async getDeletionOperation(requestParameters, initOverrides) {
|
|
1284
|
+
const response = await this.getDeletionOperationRaw(requestParameters, initOverrides);
|
|
1285
|
+
return await response.value();
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* Creates request options for getLatestSandboxSnapshot without sending the request
|
|
1289
|
+
*/
|
|
1290
|
+
async getLatestSandboxSnapshotRequestOpts(requestParameters) {
|
|
1291
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1292
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling getLatestSandboxSnapshot().');
|
|
1293
|
+
}
|
|
1294
|
+
const queryParameters = {};
|
|
1295
|
+
const headerParameters = {};
|
|
1296
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1297
|
+
const token = this.configuration.accessToken;
|
|
1298
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1299
|
+
if (tokenString) {
|
|
1300
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
let urlPath = `/sandboxes/{sandboxId}/snapshots/latest`;
|
|
1304
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
1305
|
+
return {
|
|
1306
|
+
path: urlPath,
|
|
1307
|
+
method: 'GET',
|
|
1308
|
+
headers: headerParameters,
|
|
1309
|
+
query: queryParameters,
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Return the most recent completed snapshot for this sandbox, or `null` if it has none.
|
|
1314
|
+
* Get latest boat snapshot
|
|
1315
|
+
*/
|
|
1316
|
+
async getLatestSandboxSnapshotRaw(requestParameters, initOverrides) {
|
|
1317
|
+
const requestOptions = await this.getLatestSandboxSnapshotRequestOpts(requestParameters);
|
|
1318
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1319
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SnapshotLatestResponse_1.SnapshotLatestResponseFromJSON)(jsonValue));
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* Return the most recent completed snapshot for this sandbox, or `null` if it has none.
|
|
1323
|
+
* Get latest boat snapshot
|
|
1324
|
+
*/
|
|
1325
|
+
async getLatestSandboxSnapshot(requestParameters, initOverrides) {
|
|
1326
|
+
const response = await this.getLatestSandboxSnapshotRaw(requestParameters, initOverrides);
|
|
1327
|
+
return await response.value();
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* Creates request options for getNamedSnapshot without sending the request
|
|
1331
|
+
*/
|
|
1332
|
+
async getNamedSnapshotRequestOpts(requestParameters) {
|
|
1333
|
+
if (requestParameters['name'] == null) {
|
|
1334
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getNamedSnapshot().');
|
|
1335
|
+
}
|
|
1336
|
+
const queryParameters = {};
|
|
1337
|
+
const headerParameters = {};
|
|
1338
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1339
|
+
const token = this.configuration.accessToken;
|
|
1340
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1341
|
+
if (tokenString) {
|
|
1342
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
let urlPath = `/named-snapshots/{name}`;
|
|
1346
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1347
|
+
return {
|
|
1348
|
+
path: urlPath,
|
|
1349
|
+
method: 'GET',
|
|
1350
|
+
headers: headerParameters,
|
|
1351
|
+
query: queryParameters,
|
|
1352
|
+
};
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* Get a named snapshot
|
|
1356
|
+
*/
|
|
1357
|
+
async getNamedSnapshotRaw(requestParameters, initOverrides) {
|
|
1358
|
+
const requestOptions = await this.getNamedSnapshotRequestOpts(requestParameters);
|
|
1359
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1360
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, NamedSnapshotInfoResponse_1.NamedSnapshotInfoResponseFromJSON)(jsonValue));
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Get a named snapshot
|
|
1364
|
+
*/
|
|
1365
|
+
async getNamedSnapshot(requestParameters, initOverrides) {
|
|
1366
|
+
const response = await this.getNamedSnapshotRaw(requestParameters, initOverrides);
|
|
1367
|
+
return await response.value();
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Creates request options for getSnapshotDownload without sending the request
|
|
1371
|
+
*/
|
|
1372
|
+
async getSnapshotDownloadRequestOpts(requestParameters) {
|
|
1373
|
+
if (requestParameters['snapshotId'] == null) {
|
|
1374
|
+
throw new runtime.RequiredError('snapshotId', 'Required parameter "snapshotId" was null or undefined when calling getSnapshotDownload().');
|
|
1375
|
+
}
|
|
1376
|
+
const queryParameters = {};
|
|
1377
|
+
const headerParameters = {};
|
|
1378
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1379
|
+
const token = this.configuration.accessToken;
|
|
1380
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1381
|
+
if (tokenString) {
|
|
1382
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
let urlPath = `/snapshots/{snapshotId}/download`;
|
|
1386
|
+
urlPath = urlPath.replace('{snapshotId}', encodeURIComponent(String(requestParameters['snapshotId'])));
|
|
1387
|
+
return {
|
|
1388
|
+
path: urlPath,
|
|
1389
|
+
method: 'GET',
|
|
1390
|
+
headers: headerParameters,
|
|
1391
|
+
query: queryParameters,
|
|
1392
|
+
};
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* Return time-limited signed URLs for every chunk needed to reconstruct the sandbox filesystem at this snapshot (the full chain, base through this generation), plus the inventory. Download the chunks and reassemble them as described by `reconstruct`. The `boat snapshot pull` CLI command does this for you.
|
|
1396
|
+
* Get snapshot download
|
|
1397
|
+
*/
|
|
1398
|
+
async getSnapshotDownloadRaw(requestParameters, initOverrides) {
|
|
1399
|
+
const requestOptions = await this.getSnapshotDownloadRequestOpts(requestParameters);
|
|
1400
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1401
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SnapshotDownloadResponse_1.SnapshotDownloadResponseFromJSON)(jsonValue));
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* Return time-limited signed URLs for every chunk needed to reconstruct the sandbox filesystem at this snapshot (the full chain, base through this generation), plus the inventory. Download the chunks and reassemble them as described by `reconstruct`. The `boat snapshot pull` CLI command does this for you.
|
|
1405
|
+
* Get snapshot download
|
|
1406
|
+
*/
|
|
1407
|
+
async getSnapshotDownload(requestParameters, initOverrides) {
|
|
1408
|
+
const response = await this.getSnapshotDownloadRaw(requestParameters, initOverrides);
|
|
1409
|
+
return await response.value();
|
|
1410
|
+
}
|
|
1411
|
+
/**
|
|
1412
|
+
* Creates request options for getSnapshotFile without sending the request
|
|
1413
|
+
*/
|
|
1414
|
+
async getSnapshotFileRequestOpts(requestParameters) {
|
|
1415
|
+
if (requestParameters['snapshotId'] == null) {
|
|
1416
|
+
throw new runtime.RequiredError('snapshotId', 'Required parameter "snapshotId" was null or undefined when calling getSnapshotFile().');
|
|
1417
|
+
}
|
|
1418
|
+
const queryParameters = {};
|
|
1419
|
+
if (requestParameters['path'] != null) {
|
|
1420
|
+
queryParameters['path'] = requestParameters['path'];
|
|
1421
|
+
}
|
|
1422
|
+
const headerParameters = {};
|
|
1423
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1424
|
+
const token = this.configuration.accessToken;
|
|
1425
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1426
|
+
if (tokenString) {
|
|
1427
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
let urlPath = `/snapshots/{snapshotId}/files`;
|
|
1431
|
+
urlPath = urlPath.replace('{snapshotId}', encodeURIComponent(String(requestParameters['snapshotId'])));
|
|
1432
|
+
return {
|
|
1433
|
+
path: urlPath,
|
|
1434
|
+
method: 'GET',
|
|
1435
|
+
headers: headerParameters,
|
|
1436
|
+
query: queryParameters,
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
* Stream a single file\'s bytes, or a folder subtree as a tar archive, directly out of a snapshot, the sandbox can be stopped or archived; the machine is never contacted. Use `GET /snapshots/{snapshotId}/tree` to list paths, then pass one here. Paths are relative to the snapshot root (same space as `tree` entries; docker volumes under `__dockervol__/`). An empty or `/` path downloads the whole snapshot as a tar. Folder responses set `X-Snapshot-File-Count`, `X-Snapshot-Total-Size-Bytes` and `X-Snapshot-Skipped-Base-Image-Files` headers; both response shapes set `X-Snapshot-Entry-Kind` (`file` or `dir`).
|
|
1441
|
+
* Download a file or folder from a snapshot
|
|
1442
|
+
*/
|
|
1443
|
+
async getSnapshotFileRaw(requestParameters, initOverrides) {
|
|
1444
|
+
const requestOptions = await this.getSnapshotFileRequestOpts(requestParameters);
|
|
1445
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1446
|
+
return new runtime.BlobApiResponse(response);
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Stream a single file\'s bytes, or a folder subtree as a tar archive, directly out of a snapshot, the sandbox can be stopped or archived; the machine is never contacted. Use `GET /snapshots/{snapshotId}/tree` to list paths, then pass one here. Paths are relative to the snapshot root (same space as `tree` entries; docker volumes under `__dockervol__/`). An empty or `/` path downloads the whole snapshot as a tar. Folder responses set `X-Snapshot-File-Count`, `X-Snapshot-Total-Size-Bytes` and `X-Snapshot-Skipped-Base-Image-Files` headers; both response shapes set `X-Snapshot-Entry-Kind` (`file` or `dir`).
|
|
1450
|
+
* Download a file or folder from a snapshot
|
|
1451
|
+
*/
|
|
1452
|
+
async getSnapshotFile(requestParameters, initOverrides) {
|
|
1453
|
+
const response = await this.getSnapshotFileRaw(requestParameters, initOverrides);
|
|
1454
|
+
return await response.value();
|
|
1455
|
+
}
|
|
1456
|
+
/**
|
|
1457
|
+
* Creates request options for getSnapshotTree without sending the request
|
|
1458
|
+
*/
|
|
1459
|
+
async getSnapshotTreeRequestOpts(requestParameters) {
|
|
1460
|
+
if (requestParameters['snapshotId'] == null) {
|
|
1461
|
+
throw new runtime.RequiredError('snapshotId', 'Required parameter "snapshotId" was null or undefined when calling getSnapshotTree().');
|
|
1462
|
+
}
|
|
1463
|
+
const queryParameters = {};
|
|
1464
|
+
const headerParameters = {};
|
|
1465
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1466
|
+
const token = this.configuration.accessToken;
|
|
1467
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1468
|
+
if (tokenString) {
|
|
1469
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
let urlPath = `/snapshots/{snapshotId}/tree`;
|
|
1473
|
+
urlPath = urlPath.replace('{snapshotId}', encodeURIComponent(String(requestParameters['snapshotId'])));
|
|
1474
|
+
return {
|
|
1475
|
+
path: urlPath,
|
|
1476
|
+
method: 'GET',
|
|
1477
|
+
headers: headerParameters,
|
|
1478
|
+
query: queryParameters,
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* List the files and folders captured in a snapshot, with sizes. Returns a flat list of entries you can render as a tree.
|
|
1483
|
+
* Get snapshot file tree
|
|
1484
|
+
*/
|
|
1485
|
+
async getSnapshotTreeRaw(requestParameters, initOverrides) {
|
|
1486
|
+
const requestOptions = await this.getSnapshotTreeRequestOpts(requestParameters);
|
|
1487
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1488
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SnapshotTreeResponse_1.SnapshotTreeResponseFromJSON)(jsonValue));
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* List the files and folders captured in a snapshot, with sizes. Returns a flat list of entries you can render as a tree.
|
|
1492
|
+
* Get snapshot file tree
|
|
1493
|
+
*/
|
|
1494
|
+
async getSnapshotTree(requestParameters, initOverrides) {
|
|
1495
|
+
const response = await this.getSnapshotTreeRaw(requestParameters, initOverrides);
|
|
1496
|
+
return await response.value();
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
* Creates request options for getWebhook without sending the request
|
|
1500
|
+
*/
|
|
1501
|
+
async getWebhookRequestOpts(requestParameters) {
|
|
1502
|
+
if (requestParameters['webhookId'] == null) {
|
|
1503
|
+
throw new runtime.RequiredError('webhookId', 'Required parameter "webhookId" was null or undefined when calling getWebhook().');
|
|
1504
|
+
}
|
|
1505
|
+
const queryParameters = {};
|
|
1506
|
+
const headerParameters = {};
|
|
1507
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1508
|
+
const token = this.configuration.accessToken;
|
|
1509
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1510
|
+
if (tokenString) {
|
|
1511
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
let urlPath = `/webhooks/{webhookId}`;
|
|
1515
|
+
urlPath = urlPath.replace('{webhookId}', encodeURIComponent(String(requestParameters['webhookId'])));
|
|
1516
|
+
return {
|
|
1517
|
+
path: urlPath,
|
|
1518
|
+
method: 'GET',
|
|
1519
|
+
headers: headerParameters,
|
|
1520
|
+
query: queryParameters,
|
|
1521
|
+
};
|
|
1522
|
+
}
|
|
1523
|
+
/**
|
|
1524
|
+
* Returns webhook metadata without the signing secret.
|
|
1525
|
+
* Get webhook
|
|
1526
|
+
*/
|
|
1527
|
+
async getWebhookRaw(requestParameters, initOverrides) {
|
|
1528
|
+
const requestOptions = await this.getWebhookRequestOpts(requestParameters);
|
|
1529
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1530
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, WebhookResponse_1.WebhookResponseFromJSON)(jsonValue));
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Returns webhook metadata without the signing secret.
|
|
1534
|
+
* Get webhook
|
|
1535
|
+
*/
|
|
1536
|
+
async getWebhook(requestParameters, initOverrides) {
|
|
1537
|
+
const response = await this.getWebhookRaw(requestParameters, initOverrides);
|
|
1538
|
+
return await response.value();
|
|
1539
|
+
}
|
|
1540
|
+
/**
|
|
1541
|
+
* Creates request options for hostPort without sending the request
|
|
1542
|
+
*/
|
|
1543
|
+
async hostPortRequestOpts(requestParameters) {
|
|
1544
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1545
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling hostPort().');
|
|
1546
|
+
}
|
|
1547
|
+
if (requestParameters['hostPortRequest'] == null) {
|
|
1548
|
+
throw new runtime.RequiredError('hostPortRequest', 'Required parameter "hostPortRequest" was null or undefined when calling hostPort().');
|
|
1549
|
+
}
|
|
1550
|
+
const queryParameters = {};
|
|
1551
|
+
const headerParameters = {};
|
|
1552
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1553
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1554
|
+
const token = this.configuration.accessToken;
|
|
1555
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1556
|
+
if (tokenString) {
|
|
1557
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
let urlPath = `/sandboxes/{sandboxId}/host`;
|
|
1561
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
1562
|
+
return {
|
|
1563
|
+
path: urlPath,
|
|
1564
|
+
method: 'POST',
|
|
1565
|
+
headers: headerParameters,
|
|
1566
|
+
query: queryParameters,
|
|
1567
|
+
body: (0, HostPortRequest_1.HostPortRequestToJSON)(requestParameters['hostPortRequest']),
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* Registers a stable `https://<sandbox-subdomain>-<port>.on.boat.dev` route for a port inside the sandbox and opens the sandbox firewall for it. Idempotent: calling it again for the same sandbox and port returns the same URL and token.
|
|
1572
|
+
* Expose a sandbox port on a public HTTPS URL
|
|
1573
|
+
*/
|
|
1574
|
+
async hostPortRaw(requestParameters, initOverrides) {
|
|
1575
|
+
const requestOptions = await this.hostPortRequestOpts(requestParameters);
|
|
1576
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1577
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, HostPortResponse_1.HostPortResponseFromJSON)(jsonValue));
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
* Registers a stable `https://<sandbox-subdomain>-<port>.on.boat.dev` route for a port inside the sandbox and opens the sandbox firewall for it. Idempotent: calling it again for the same sandbox and port returns the same URL and token.
|
|
1581
|
+
* Expose a sandbox port on a public HTTPS URL
|
|
1582
|
+
*/
|
|
1583
|
+
async hostPort(requestParameters, initOverrides) {
|
|
1584
|
+
const response = await this.hostPortRaw(requestParameters, initOverrides);
|
|
1585
|
+
return await response.value();
|
|
1586
|
+
}
|
|
1587
|
+
/**
|
|
1588
|
+
* Creates request options for interrupt without sending the request
|
|
1589
|
+
*/
|
|
1590
|
+
async interruptRequestOpts(requestParameters) {
|
|
1591
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1592
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling interrupt().');
|
|
1593
|
+
}
|
|
1594
|
+
const queryParameters = {};
|
|
1595
|
+
if (requestParameters['conversation'] != null) {
|
|
1596
|
+
queryParameters['conversation'] = requestParameters['conversation'];
|
|
1597
|
+
}
|
|
1598
|
+
const headerParameters = {};
|
|
1599
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1600
|
+
const token = this.configuration.accessToken;
|
|
1601
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1602
|
+
if (tokenString) {
|
|
1603
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
let urlPath = `/sandboxes/{sandboxId}/interrupt`;
|
|
1607
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
1608
|
+
return {
|
|
1609
|
+
path: urlPath,
|
|
1610
|
+
method: 'POST',
|
|
1611
|
+
headers: headerParameters,
|
|
1612
|
+
query: queryParameters,
|
|
1613
|
+
};
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
* Interrupt running agent work. By default this stops **every** conversation on the sandbox. Pass `conversation` to stop just one, leaving the others running. See [Integrated agents](/integrated-agents).
|
|
1617
|
+
* Interrupt running work
|
|
1618
|
+
*/
|
|
1619
|
+
async interruptRaw(requestParameters, initOverrides) {
|
|
1620
|
+
const requestOptions = await this.interruptRequestOpts(requestParameters);
|
|
1621
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1622
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxActionResponse_1.SandboxActionResponseFromJSON)(jsonValue));
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
* Interrupt running agent work. By default this stops **every** conversation on the sandbox. Pass `conversation` to stop just one, leaving the others running. See [Integrated agents](/integrated-agents).
|
|
1626
|
+
* Interrupt running work
|
|
1627
|
+
*/
|
|
1628
|
+
async interrupt(requestParameters, initOverrides) {
|
|
1629
|
+
const response = await this.interruptRaw(requestParameters, initOverrides);
|
|
1630
|
+
return await response.value();
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* Creates request options for limits without sending the request
|
|
1634
|
+
*/
|
|
1635
|
+
async limitsRequestOpts(requestParameters) {
|
|
1636
|
+
const queryParameters = {};
|
|
1637
|
+
if (requestParameters['org'] != null) {
|
|
1638
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1639
|
+
}
|
|
1640
|
+
if (requestParameters['teamId'] != null) {
|
|
1641
|
+
queryParameters['teamId'] = requestParameters['teamId'];
|
|
1642
|
+
}
|
|
1643
|
+
const headerParameters = {};
|
|
1644
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
1645
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
1646
|
+
}
|
|
1647
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1648
|
+
const token = this.configuration.accessToken;
|
|
1649
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1650
|
+
if (tokenString) {
|
|
1651
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
let urlPath = `/limits`;
|
|
1655
|
+
return {
|
|
1656
|
+
path: urlPath,
|
|
1657
|
+
method: 'GET',
|
|
1658
|
+
headers: headerParameters,
|
|
1659
|
+
query: queryParameters,
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the authenticated account. Pass `org` / `X-Boat-Org` (or `teamId`) to read a team wallet you belong to.
|
|
1664
|
+
* Get Boat limits
|
|
1665
|
+
*/
|
|
1666
|
+
async limitsRaw(requestParameters, initOverrides) {
|
|
1667
|
+
const requestOptions = await this.limitsRequestOpts(requestParameters);
|
|
1668
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1669
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, LimitsResponse_1.LimitsResponseFromJSON)(jsonValue));
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the authenticated account. Pass `org` / `X-Boat-Org` (or `teamId`) to read a team wallet you belong to.
|
|
1673
|
+
* Get Boat limits
|
|
1674
|
+
*/
|
|
1675
|
+
async limits(requestParameters = {}, initOverrides) {
|
|
1676
|
+
const response = await this.limitsRaw(requestParameters, initOverrides);
|
|
1677
|
+
return await response.value();
|
|
1678
|
+
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Creates request options for listNamedSnapshots without sending the request
|
|
1681
|
+
*/
|
|
1682
|
+
async listNamedSnapshotsRequestOpts() {
|
|
1683
|
+
const queryParameters = {};
|
|
1684
|
+
const headerParameters = {};
|
|
1685
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1686
|
+
const token = this.configuration.accessToken;
|
|
1687
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1688
|
+
if (tokenString) {
|
|
1689
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
let urlPath = `/named-snapshots`;
|
|
1693
|
+
return {
|
|
1694
|
+
path: urlPath,
|
|
1695
|
+
method: 'GET',
|
|
1696
|
+
headers: headerParameters,
|
|
1697
|
+
query: queryParameters,
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
/**
|
|
1701
|
+
* List your named snapshots, newest first.
|
|
1702
|
+
* List named snapshots
|
|
1703
|
+
*/
|
|
1704
|
+
async listNamedSnapshotsRaw(initOverrides) {
|
|
1705
|
+
const requestOptions = await this.listNamedSnapshotsRequestOpts();
|
|
1706
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1707
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, NamedSnapshotListResponse_1.NamedSnapshotListResponseFromJSON)(jsonValue));
|
|
1708
|
+
}
|
|
1709
|
+
/**
|
|
1710
|
+
* List your named snapshots, newest first.
|
|
1711
|
+
* List named snapshots
|
|
1712
|
+
*/
|
|
1713
|
+
async listNamedSnapshots(initOverrides) {
|
|
1714
|
+
const response = await this.listNamedSnapshotsRaw(initOverrides);
|
|
1715
|
+
return await response.value();
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Creates request options for listSandboxSnapshots without sending the request
|
|
1719
|
+
*/
|
|
1720
|
+
async listSandboxSnapshotsRequestOpts(requestParameters) {
|
|
1721
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1722
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling listSandboxSnapshots().');
|
|
1723
|
+
}
|
|
1724
|
+
const queryParameters = {};
|
|
1725
|
+
if (requestParameters['limit'] != null) {
|
|
1726
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1727
|
+
}
|
|
1728
|
+
if (requestParameters['cursor'] != null) {
|
|
1729
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
1730
|
+
}
|
|
1731
|
+
if (requestParameters['sort'] != null) {
|
|
1732
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1733
|
+
}
|
|
1734
|
+
const headerParameters = {};
|
|
1735
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1736
|
+
const token = this.configuration.accessToken;
|
|
1737
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1738
|
+
if (tokenString) {
|
|
1739
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
let urlPath = `/sandboxes/{sandboxId}/snapshots`;
|
|
1743
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
1744
|
+
return {
|
|
1745
|
+
path: urlPath,
|
|
1746
|
+
method: 'GET',
|
|
1747
|
+
headers: headerParameters,
|
|
1748
|
+
query: queryParameters,
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
/**
|
|
1752
|
+
* List visible completed snapshots for one sandbox with uncapped cursor pagination.
|
|
1753
|
+
* List boat snapshots
|
|
1754
|
+
*/
|
|
1755
|
+
async listSandboxSnapshotsRaw(requestParameters, initOverrides) {
|
|
1756
|
+
const requestOptions = await this.listSandboxSnapshotsRequestOpts(requestParameters);
|
|
1757
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1758
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SnapshotListResponse_1.SnapshotListResponseFromJSON)(jsonValue));
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* List visible completed snapshots for one sandbox with uncapped cursor pagination.
|
|
1762
|
+
* List boat snapshots
|
|
1763
|
+
*/
|
|
1764
|
+
async listSandboxSnapshots(requestParameters, initOverrides) {
|
|
1765
|
+
const response = await this.listSandboxSnapshotsRaw(requestParameters, initOverrides);
|
|
1766
|
+
return await response.value();
|
|
1767
|
+
}
|
|
1768
|
+
/**
|
|
1769
|
+
* Creates request options for listSnapshots without sending the request
|
|
1770
|
+
*/
|
|
1771
|
+
async listSnapshotsRequestOpts(requestParameters) {
|
|
1772
|
+
const queryParameters = {};
|
|
1773
|
+
if (requestParameters['limit'] != null) {
|
|
1774
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1775
|
+
}
|
|
1776
|
+
if (requestParameters['cursor'] != null) {
|
|
1777
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
1778
|
+
}
|
|
1779
|
+
if (requestParameters['sort'] != null) {
|
|
1780
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1781
|
+
}
|
|
1782
|
+
const headerParameters = {};
|
|
1783
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1784
|
+
const token = this.configuration.accessToken;
|
|
1785
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1786
|
+
if (tokenString) {
|
|
1787
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
let urlPath = `/snapshots`;
|
|
1791
|
+
return {
|
|
1792
|
+
path: urlPath,
|
|
1793
|
+
method: 'GET',
|
|
1794
|
+
headers: headerParameters,
|
|
1795
|
+
query: queryParameters,
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
/**
|
|
1799
|
+
* List visible completed snapshots across all of your sandboxes using immutable ownership attribution. Pinned, deletion-scheduled, and privacy-fenced sandbox snapshots are omitted. Follow `nextCursor` through the complete history; there is no hidden 500-snapshot cap.
|
|
1800
|
+
* List snapshots
|
|
1801
|
+
*/
|
|
1802
|
+
async listSnapshotsRaw(requestParameters, initOverrides) {
|
|
1803
|
+
const requestOptions = await this.listSnapshotsRequestOpts(requestParameters);
|
|
1804
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1805
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SnapshotListResponse_1.SnapshotListResponseFromJSON)(jsonValue));
|
|
1806
|
+
}
|
|
1807
|
+
/**
|
|
1808
|
+
* List visible completed snapshots across all of your sandboxes using immutable ownership attribution. Pinned, deletion-scheduled, and privacy-fenced sandbox snapshots are omitted. Follow `nextCursor` through the complete history; there is no hidden 500-snapshot cap.
|
|
1809
|
+
* List snapshots
|
|
1810
|
+
*/
|
|
1811
|
+
async listSnapshots(requestParameters = {}, initOverrides) {
|
|
1812
|
+
const response = await this.listSnapshotsRaw(requestParameters, initOverrides);
|
|
1813
|
+
return await response.value();
|
|
1814
|
+
}
|
|
1815
|
+
/**
|
|
1816
|
+
* Creates request options for listWebhooks without sending the request
|
|
1817
|
+
*/
|
|
1818
|
+
async listWebhooksRequestOpts() {
|
|
1819
|
+
const queryParameters = {};
|
|
1820
|
+
const headerParameters = {};
|
|
1821
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1822
|
+
const token = this.configuration.accessToken;
|
|
1823
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1824
|
+
if (tokenString) {
|
|
1825
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
let urlPath = `/webhooks`;
|
|
1829
|
+
return {
|
|
1830
|
+
path: urlPath,
|
|
1831
|
+
method: 'GET',
|
|
1832
|
+
headers: headerParameters,
|
|
1833
|
+
query: queryParameters,
|
|
1834
|
+
};
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* Lists account-wide sandbox lifecycle webhook endpoints. Signing secrets are never included.
|
|
1838
|
+
* List webhooks
|
|
1839
|
+
*/
|
|
1840
|
+
async listWebhooksRaw(initOverrides) {
|
|
1841
|
+
const requestOptions = await this.listWebhooksRequestOpts();
|
|
1842
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1843
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, WebhookListResponse_1.WebhookListResponseFromJSON)(jsonValue));
|
|
1844
|
+
}
|
|
1845
|
+
/**
|
|
1846
|
+
* Lists account-wide sandbox lifecycle webhook endpoints. Signing secrets are never included.
|
|
1847
|
+
* List webhooks
|
|
1848
|
+
*/
|
|
1849
|
+
async listWebhooks(initOverrides) {
|
|
1850
|
+
const response = await this.listWebhooksRaw(initOverrides);
|
|
1851
|
+
return await response.value();
|
|
1852
|
+
}
|
|
1853
|
+
/**
|
|
1854
|
+
* Creates request options for me without sending the request
|
|
1855
|
+
*/
|
|
1856
|
+
async meRequestOpts() {
|
|
1857
|
+
const queryParameters = {};
|
|
1858
|
+
const headerParameters = {};
|
|
1859
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1860
|
+
const token = this.configuration.accessToken;
|
|
1861
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1862
|
+
if (tokenString) {
|
|
1863
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
let urlPath = `/me`;
|
|
1867
|
+
return {
|
|
1868
|
+
path: urlPath,
|
|
1869
|
+
method: 'GET',
|
|
1870
|
+
headers: headerParameters,
|
|
1871
|
+
query: queryParameters,
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Returns GitHub identity for the authenticated Boat account.
|
|
1876
|
+
* Get current Boat user
|
|
1877
|
+
*/
|
|
1878
|
+
async meRaw(initOverrides) {
|
|
1879
|
+
const requestOptions = await this.meRequestOpts();
|
|
1880
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1881
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, MeResponse_1.MeResponseFromJSON)(jsonValue));
|
|
1882
|
+
}
|
|
1883
|
+
/**
|
|
1884
|
+
* Returns GitHub identity for the authenticated Boat account.
|
|
1885
|
+
* Get current Boat user
|
|
1886
|
+
*/
|
|
1887
|
+
async me(initOverrides) {
|
|
1888
|
+
const response = await this.meRaw(initOverrides);
|
|
1889
|
+
return await response.value();
|
|
1890
|
+
}
|
|
1891
|
+
/**
|
|
1892
|
+
* Creates request options for prompt without sending the request
|
|
1893
|
+
*/
|
|
1894
|
+
async promptRequestOpts(requestParameters) {
|
|
1895
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1896
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling prompt().');
|
|
1897
|
+
}
|
|
1898
|
+
if (requestParameters['promptRequest'] == null) {
|
|
1899
|
+
throw new runtime.RequiredError('promptRequest', 'Required parameter "promptRequest" was null or undefined when calling prompt().');
|
|
1900
|
+
}
|
|
1901
|
+
const queryParameters = {};
|
|
1902
|
+
const headerParameters = {};
|
|
1903
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1904
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1905
|
+
const token = this.configuration.accessToken;
|
|
1906
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1907
|
+
if (tokenString) {
|
|
1908
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
let urlPath = `/sandboxes/{sandboxId}/prompt`;
|
|
1912
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
1913
|
+
return {
|
|
1914
|
+
path: urlPath,
|
|
1915
|
+
method: 'POST',
|
|
1916
|
+
headers: headerParameters,
|
|
1917
|
+
query: queryParameters,
|
|
1918
|
+
body: (0, PromptRequest_1.PromptRequestToJSON)(requestParameters['promptRequest']),
|
|
1919
|
+
};
|
|
1920
|
+
}
|
|
1921
|
+
/**
|
|
1922
|
+
* Queue a natural-language work item for an agent harness (Codex, Claude Code, pi, OpenCode, or Prime Agent) inside the sandbox. Observe progress with `GET /sandboxes/{sandboxId}/events`. A Sandbox runs many conversations in parallel. Set `new: true` to start a fresh one, `conversationId` to continue a specific one, or omit both to continue the most-recently-active conversation; the response returns the `conversationId`. See [Integrated agents](/integrated-agents).
|
|
1923
|
+
* Prompt Sandbox
|
|
1924
|
+
*/
|
|
1925
|
+
async promptRaw(requestParameters, initOverrides) {
|
|
1926
|
+
const requestOptions = await this.promptRequestOpts(requestParameters);
|
|
1927
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1928
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PromptResponse_1.PromptResponseFromJSON)(jsonValue));
|
|
1929
|
+
}
|
|
1930
|
+
/**
|
|
1931
|
+
* Queue a natural-language work item for an agent harness (Codex, Claude Code, pi, OpenCode, or Prime Agent) inside the sandbox. Observe progress with `GET /sandboxes/{sandboxId}/events`. A Sandbox runs many conversations in parallel. Set `new: true` to start a fresh one, `conversationId` to continue a specific one, or omit both to continue the most-recently-active conversation; the response returns the `conversationId`. See [Integrated agents](/integrated-agents).
|
|
1932
|
+
* Prompt Sandbox
|
|
1933
|
+
*/
|
|
1934
|
+
async prompt(requestParameters, initOverrides) {
|
|
1935
|
+
const response = await this.promptRaw(requestParameters, initOverrides);
|
|
1936
|
+
return await response.value();
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* Creates request options for promptRunStatus without sending the request
|
|
1940
|
+
*/
|
|
1941
|
+
async promptRunStatusRequestOpts(requestParameters) {
|
|
1942
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1943
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling promptRunStatus().');
|
|
1944
|
+
}
|
|
1945
|
+
if (requestParameters['promptId'] == null) {
|
|
1946
|
+
throw new runtime.RequiredError('promptId', 'Required parameter "promptId" was null or undefined when calling promptRunStatus().');
|
|
1947
|
+
}
|
|
1948
|
+
const queryParameters = {};
|
|
1949
|
+
const headerParameters = {};
|
|
1950
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1951
|
+
const token = this.configuration.accessToken;
|
|
1952
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1953
|
+
if (tokenString) {
|
|
1954
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
let urlPath = `/sandboxes/{sandboxId}/prompts/{promptId}`;
|
|
1958
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
1959
|
+
urlPath = urlPath.replace('{promptId}', encodeURIComponent(String(requestParameters['promptId'])));
|
|
1960
|
+
return {
|
|
1961
|
+
path: urlPath,
|
|
1962
|
+
method: 'GET',
|
|
1963
|
+
headers: headerParameters,
|
|
1964
|
+
query: queryParameters,
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1967
|
+
/**
|
|
1968
|
+
* Returns first-class status for a queued/running/finished prompt so clients do not infer completion from sandbox state and events.
|
|
1969
|
+
* Get prompt run status
|
|
1970
|
+
*/
|
|
1971
|
+
async promptRunStatusRaw(requestParameters, initOverrides) {
|
|
1972
|
+
const requestOptions = await this.promptRunStatusRequestOpts(requestParameters);
|
|
1973
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1974
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PromptRunResponse_1.PromptRunResponseFromJSON)(jsonValue));
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
* Returns first-class status for a queued/running/finished prompt so clients do not infer completion from sandbox state and events.
|
|
1978
|
+
* Get prompt run status
|
|
1979
|
+
*/
|
|
1980
|
+
async promptRunStatus(requestParameters, initOverrides) {
|
|
1981
|
+
const response = await this.promptRunStatusRaw(requestParameters, initOverrides);
|
|
1982
|
+
return await response.value();
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* Creates request options for readFile without sending the request
|
|
1986
|
+
*/
|
|
1987
|
+
async readFileRequestOpts(requestParameters) {
|
|
1988
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1989
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling readFile().');
|
|
1990
|
+
}
|
|
1991
|
+
if (requestParameters['path'] == null) {
|
|
1992
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling readFile().');
|
|
1993
|
+
}
|
|
1994
|
+
const queryParameters = {};
|
|
1995
|
+
if (requestParameters['path'] != null) {
|
|
1996
|
+
queryParameters['path'] = requestParameters['path'];
|
|
1997
|
+
}
|
|
1998
|
+
if (requestParameters['encoding'] != null) {
|
|
1999
|
+
queryParameters['encoding'] = requestParameters['encoding'];
|
|
2000
|
+
}
|
|
2001
|
+
const headerParameters = {};
|
|
2002
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2003
|
+
const token = this.configuration.accessToken;
|
|
2004
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2005
|
+
if (tokenString) {
|
|
2006
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
let urlPath = `/sandboxes/{sandboxId}/files`;
|
|
2010
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
2011
|
+
return {
|
|
2012
|
+
path: urlPath,
|
|
2013
|
+
method: 'GET',
|
|
2014
|
+
headers: headerParameters,
|
|
2015
|
+
query: queryParameters,
|
|
2016
|
+
};
|
|
2017
|
+
}
|
|
2018
|
+
/**
|
|
2019
|
+
* Read a file from a sandbox
|
|
2020
|
+
*/
|
|
2021
|
+
async readFileRaw(requestParameters, initOverrides) {
|
|
2022
|
+
const requestOptions = await this.readFileRequestOpts(requestParameters);
|
|
2023
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2024
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, FileReadResponse_1.FileReadResponseFromJSON)(jsonValue));
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* Read a file from a sandbox
|
|
2028
|
+
*/
|
|
2029
|
+
async readFile(requestParameters, initOverrides) {
|
|
2030
|
+
const response = await this.readFileRaw(requestParameters, initOverrides);
|
|
2031
|
+
return await response.value();
|
|
2032
|
+
}
|
|
2033
|
+
/**
|
|
2034
|
+
* Creates request options for repos without sending the request
|
|
2035
|
+
*/
|
|
2036
|
+
async reposRequestOpts(requestParameters) {
|
|
2037
|
+
const queryParameters = {};
|
|
2038
|
+
if (requestParameters['sync'] != null) {
|
|
2039
|
+
queryParameters['sync'] = requestParameters['sync'];
|
|
2040
|
+
}
|
|
2041
|
+
if (requestParameters['limit'] != null) {
|
|
2042
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
2043
|
+
}
|
|
2044
|
+
if (requestParameters['cursor'] != null) {
|
|
2045
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
2046
|
+
}
|
|
2047
|
+
if (requestParameters['sort'] != null) {
|
|
2048
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
2049
|
+
}
|
|
2050
|
+
if (requestParameters['q'] != null) {
|
|
2051
|
+
queryParameters['q'] = requestParameters['q'];
|
|
2052
|
+
}
|
|
2053
|
+
if (requestParameters['selected'] != null) {
|
|
2054
|
+
queryParameters['selected'] = requestParameters['selected'];
|
|
2055
|
+
}
|
|
2056
|
+
const headerParameters = {};
|
|
2057
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2058
|
+
const token = this.configuration.accessToken;
|
|
2059
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2060
|
+
if (tokenString) {
|
|
2061
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
let urlPath = `/repos`;
|
|
2065
|
+
return {
|
|
2066
|
+
path: urlPath,
|
|
2067
|
+
method: 'GET',
|
|
2068
|
+
headers: headerParameters,
|
|
2069
|
+
query: queryParameters,
|
|
2070
|
+
};
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Returns GitHub repositories grouped by installation plus the current selected repositories for new Sandboxes.
|
|
2074
|
+
* List GitHub repositories available to Boat
|
|
2075
|
+
*/
|
|
2076
|
+
async reposRaw(requestParameters, initOverrides) {
|
|
2077
|
+
const requestOptions = await this.reposRequestOpts(requestParameters);
|
|
2078
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2079
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ReposResponse_1.ReposResponseFromJSON)(jsonValue));
|
|
2080
|
+
}
|
|
2081
|
+
/**
|
|
2082
|
+
* Returns GitHub repositories grouped by installation plus the current selected repositories for new Sandboxes.
|
|
2083
|
+
* List GitHub repositories available to Boat
|
|
2084
|
+
*/
|
|
2085
|
+
async repos(requestParameters = {}, initOverrides) {
|
|
2086
|
+
const response = await this.reposRaw(requestParameters, initOverrides);
|
|
2087
|
+
return await response.value();
|
|
2088
|
+
}
|
|
2089
|
+
/**
|
|
2090
|
+
* Creates request options for resume without sending the request
|
|
2091
|
+
*/
|
|
2092
|
+
async resumeRequestOpts(requestParameters) {
|
|
2093
|
+
if (requestParameters['sandboxId'] == null) {
|
|
2094
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling resume().');
|
|
2095
|
+
}
|
|
2096
|
+
const queryParameters = {};
|
|
2097
|
+
const headerParameters = {};
|
|
2098
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2099
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2100
|
+
const token = this.configuration.accessToken;
|
|
2101
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2102
|
+
if (tokenString) {
|
|
2103
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
let urlPath = `/sandboxes/{sandboxId}/resume`;
|
|
2107
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
2108
|
+
return {
|
|
2109
|
+
path: urlPath,
|
|
2110
|
+
method: 'POST',
|
|
2111
|
+
headers: headerParameters,
|
|
2112
|
+
query: queryParameters,
|
|
2113
|
+
body: (0, ResumeRequest_1.ResumeRequestToJSON)(requestParameters['resumeRequest']),
|
|
2114
|
+
};
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* Resume sandbox
|
|
2118
|
+
*/
|
|
2119
|
+
async resumeRaw(requestParameters, initOverrides) {
|
|
2120
|
+
const requestOptions = await this.resumeRequestOpts(requestParameters);
|
|
2121
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2122
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxActionResponse_1.SandboxActionResponseFromJSON)(jsonValue));
|
|
2123
|
+
}
|
|
2124
|
+
/**
|
|
2125
|
+
* Resume sandbox
|
|
2126
|
+
*/
|
|
2127
|
+
async resume(requestParameters, initOverrides) {
|
|
2128
|
+
const response = await this.resumeRaw(requestParameters, initOverrides);
|
|
2129
|
+
return await response.value();
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* Creates request options for revokeApiKey without sending the request
|
|
2133
|
+
*/
|
|
2134
|
+
async revokeApiKeyRequestOpts(requestParameters) {
|
|
2135
|
+
if (requestParameters['apiKeyId'] == null) {
|
|
2136
|
+
throw new runtime.RequiredError('apiKeyId', 'Required parameter "apiKeyId" was null or undefined when calling revokeApiKey().');
|
|
2137
|
+
}
|
|
2138
|
+
const queryParameters = {};
|
|
2139
|
+
const headerParameters = {};
|
|
2140
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2141
|
+
const token = this.configuration.accessToken;
|
|
2142
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2143
|
+
if (tokenString) {
|
|
2144
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
let urlPath = `/api-keys/{apiKeyId}`;
|
|
2148
|
+
urlPath = urlPath.replace('{apiKeyId}', encodeURIComponent(String(requestParameters['apiKeyId'])));
|
|
2149
|
+
return {
|
|
2150
|
+
path: urlPath,
|
|
2151
|
+
method: 'DELETE',
|
|
2152
|
+
headers: headerParameters,
|
|
2153
|
+
query: queryParameters,
|
|
2154
|
+
};
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* Revokes the key immediately. Requires a dashboard or CLI session.
|
|
2158
|
+
* Revoke an API key
|
|
2159
|
+
*/
|
|
2160
|
+
async revokeApiKeyRaw(requestParameters, initOverrides) {
|
|
2161
|
+
const requestOptions = await this.revokeApiKeyRequestOpts(requestParameters);
|
|
2162
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2163
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApiKeyRevokeResponse_1.ApiKeyRevokeResponseFromJSON)(jsonValue));
|
|
2164
|
+
}
|
|
2165
|
+
/**
|
|
2166
|
+
* Revokes the key immediately. Requires a dashboard or CLI session.
|
|
2167
|
+
* Revoke an API key
|
|
2168
|
+
*/
|
|
2169
|
+
async revokeApiKey(requestParameters, initOverrides) {
|
|
2170
|
+
const response = await this.revokeApiKeyRaw(requestParameters, initOverrides);
|
|
2171
|
+
return await response.value();
|
|
2172
|
+
}
|
|
2173
|
+
/**
|
|
2174
|
+
* Creates request options for rotateApiKey without sending the request
|
|
2175
|
+
*/
|
|
2176
|
+
async rotateApiKeyRequestOpts(requestParameters) {
|
|
2177
|
+
if (requestParameters['apiKeyId'] == null) {
|
|
2178
|
+
throw new runtime.RequiredError('apiKeyId', 'Required parameter "apiKeyId" was null or undefined when calling rotateApiKey().');
|
|
2179
|
+
}
|
|
2180
|
+
const queryParameters = {};
|
|
2181
|
+
const headerParameters = {};
|
|
2182
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2183
|
+
const token = this.configuration.accessToken;
|
|
2184
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2185
|
+
if (tokenString) {
|
|
2186
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
let urlPath = `/api-keys/{apiKeyId}/rotate`;
|
|
2190
|
+
urlPath = urlPath.replace('{apiKeyId}', encodeURIComponent(String(requestParameters['apiKeyId'])));
|
|
2191
|
+
return {
|
|
2192
|
+
path: urlPath,
|
|
2193
|
+
method: 'POST',
|
|
2194
|
+
headers: headerParameters,
|
|
2195
|
+
query: queryParameters,
|
|
2196
|
+
};
|
|
2197
|
+
}
|
|
2198
|
+
/**
|
|
2199
|
+
* Replaces the raw secret without changing expiry or scope. Requires a dashboard or CLI session.
|
|
2200
|
+
* Rotate an API key
|
|
2201
|
+
*/
|
|
2202
|
+
async rotateApiKeyRaw(requestParameters, initOverrides) {
|
|
2203
|
+
const requestOptions = await this.rotateApiKeyRequestOpts(requestParameters);
|
|
2204
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApiKeySecretResponse_1.ApiKeySecretResponseFromJSON)(jsonValue));
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
* Replaces the raw secret without changing expiry or scope. Requires a dashboard or CLI session.
|
|
2209
|
+
* Rotate an API key
|
|
2210
|
+
*/
|
|
2211
|
+
async rotateApiKey(requestParameters, initOverrides) {
|
|
2212
|
+
const response = await this.rotateApiKeyRaw(requestParameters, initOverrides);
|
|
2213
|
+
return await response.value();
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* Creates request options for rotateWebhookSigningSecret without sending the request
|
|
2217
|
+
*/
|
|
2218
|
+
async rotateWebhookSigningSecretRequestOpts(requestParameters) {
|
|
2219
|
+
if (requestParameters['webhookId'] == null) {
|
|
2220
|
+
throw new runtime.RequiredError('webhookId', 'Required parameter "webhookId" was null or undefined when calling rotateWebhookSigningSecret().');
|
|
2221
|
+
}
|
|
2222
|
+
const queryParameters = {};
|
|
2223
|
+
const headerParameters = {};
|
|
2224
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2225
|
+
const token = this.configuration.accessToken;
|
|
2226
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2227
|
+
if (tokenString) {
|
|
2228
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
let urlPath = `/webhooks/{webhookId}/rotate`;
|
|
2232
|
+
urlPath = urlPath.replace('{webhookId}', encodeURIComponent(String(requestParameters['webhookId'])));
|
|
2233
|
+
return {
|
|
2234
|
+
path: urlPath,
|
|
2235
|
+
method: 'POST',
|
|
2236
|
+
headers: headerParameters,
|
|
2237
|
+
query: queryParameters,
|
|
2238
|
+
};
|
|
2239
|
+
}
|
|
2240
|
+
/**
|
|
2241
|
+
* Replaces the endpoint\'s signing secret. The new secret is returned only in this response; briefly accept the old secret for attempts already in flight.
|
|
2242
|
+
* Rotate webhook signing secret
|
|
2243
|
+
*/
|
|
2244
|
+
async rotateWebhookSigningSecretRaw(requestParameters, initOverrides) {
|
|
2245
|
+
const requestOptions = await this.rotateWebhookSigningSecretRequestOpts(requestParameters);
|
|
2246
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2247
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, WebhookSecretResponse_1.WebhookSecretResponseFromJSON)(jsonValue));
|
|
2248
|
+
}
|
|
2249
|
+
/**
|
|
2250
|
+
* Replaces the endpoint\'s signing secret. The new secret is returned only in this response; briefly accept the old secret for attempts already in flight.
|
|
2251
|
+
* Rotate webhook signing secret
|
|
2252
|
+
*/
|
|
2253
|
+
async rotateWebhookSigningSecret(requestParameters, initOverrides) {
|
|
2254
|
+
const response = await this.rotateWebhookSigningSecretRaw(requestParameters, initOverrides);
|
|
2255
|
+
return await response.value();
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* Creates request options for sandboxes without sending the request
|
|
2259
|
+
*/
|
|
2260
|
+
async sandboxesRequestOpts(requestParameters) {
|
|
2261
|
+
const queryParameters = {};
|
|
2262
|
+
if (requestParameters['limit'] != null) {
|
|
2263
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
2264
|
+
}
|
|
2265
|
+
if (requestParameters['cursor'] != null) {
|
|
2266
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
2267
|
+
}
|
|
2268
|
+
if (requestParameters['sort'] != null) {
|
|
2269
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
2270
|
+
}
|
|
2271
|
+
if (requestParameters['state'] != null) {
|
|
2272
|
+
queryParameters['state'] = requestParameters['state'];
|
|
2273
|
+
}
|
|
2274
|
+
const headerParameters = {};
|
|
2275
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2276
|
+
const token = this.configuration.accessToken;
|
|
2277
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2278
|
+
if (tokenString) {
|
|
2279
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
let urlPath = `/sandboxes`;
|
|
2283
|
+
return {
|
|
2284
|
+
path: urlPath,
|
|
2285
|
+
method: 'GET',
|
|
2286
|
+
headers: headerParameters,
|
|
2287
|
+
query: queryParameters,
|
|
2288
|
+
};
|
|
2289
|
+
}
|
|
2290
|
+
/**
|
|
2291
|
+
* List sandboxes
|
|
2292
|
+
*/
|
|
2293
|
+
async sandboxesRaw(requestParameters, initOverrides) {
|
|
2294
|
+
const requestOptions = await this.sandboxesRequestOpts(requestParameters);
|
|
2295
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2296
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxListResponse_1.SandboxListResponseFromJSON)(jsonValue));
|
|
2297
|
+
}
|
|
2298
|
+
/**
|
|
2299
|
+
* List sandboxes
|
|
2300
|
+
*/
|
|
2301
|
+
async sandboxes(requestParameters = {}, initOverrides) {
|
|
2302
|
+
const response = await this.sandboxesRaw(requestParameters, initOverrides);
|
|
2303
|
+
return await response.value();
|
|
2304
|
+
}
|
|
2305
|
+
/**
|
|
2306
|
+
* Creates request options for saveNamedSnapshot without sending the request
|
|
2307
|
+
*/
|
|
2308
|
+
async saveNamedSnapshotRequestOpts(requestParameters) {
|
|
2309
|
+
if (requestParameters['namedSnapshotSaveRequest'] == null) {
|
|
2310
|
+
throw new runtime.RequiredError('namedSnapshotSaveRequest', 'Required parameter "namedSnapshotSaveRequest" was null or undefined when calling saveNamedSnapshot().');
|
|
2311
|
+
}
|
|
2312
|
+
const queryParameters = {};
|
|
2313
|
+
const headerParameters = {};
|
|
2314
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2315
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2316
|
+
const token = this.configuration.accessToken;
|
|
2317
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2318
|
+
if (tokenString) {
|
|
2319
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
let urlPath = `/named-snapshots`;
|
|
2323
|
+
return {
|
|
2324
|
+
path: urlPath,
|
|
2325
|
+
method: 'POST',
|
|
2326
|
+
headers: headerParameters,
|
|
2327
|
+
query: queryParameters,
|
|
2328
|
+
body: (0, NamedSnapshotSaveRequest_1.NamedSnapshotSaveRequestToJSON)(requestParameters['namedSnapshotSaveRequest']),
|
|
2329
|
+
};
|
|
2330
|
+
}
|
|
2331
|
+
/**
|
|
2332
|
+
* Freeze a sandbox\'s current state under a name (`boat snapshot <id> <name>` in the CLI). Answers `202` immediately with the snapshot in `saving`; a running sandbox takes a fresh capture first, which can run minutes. Poll `GET /named-snapshots/{name}` until the status settles at `ready` or `failed`. Reusing one of your existing names replaces that snapshot\'s artifact once the new save is ready.
|
|
2333
|
+
* Save a named snapshot
|
|
2334
|
+
*/
|
|
2335
|
+
async saveNamedSnapshotRaw(requestParameters, initOverrides) {
|
|
2336
|
+
const requestOptions = await this.saveNamedSnapshotRequestOpts(requestParameters);
|
|
2337
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2338
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, NamedSnapshotSavingResponse_1.NamedSnapshotSavingResponseFromJSON)(jsonValue));
|
|
2339
|
+
}
|
|
2340
|
+
/**
|
|
2341
|
+
* Freeze a sandbox\'s current state under a name (`boat snapshot <id> <name>` in the CLI). Answers `202` immediately with the snapshot in `saving`; a running sandbox takes a fresh capture first, which can run minutes. Poll `GET /named-snapshots/{name}` until the status settles at `ready` or `failed`. Reusing one of your existing names replaces that snapshot\'s artifact once the new save is ready.
|
|
2342
|
+
* Save a named snapshot
|
|
2343
|
+
*/
|
|
2344
|
+
async saveNamedSnapshot(requestParameters, initOverrides) {
|
|
2345
|
+
const response = await this.saveNamedSnapshotRaw(requestParameters, initOverrides);
|
|
2346
|
+
return await response.value();
|
|
2347
|
+
}
|
|
2348
|
+
/**
|
|
2349
|
+
* Creates request options for secrets without sending the request
|
|
2350
|
+
*/
|
|
2351
|
+
async secretsRequestOpts() {
|
|
2352
|
+
const queryParameters = {};
|
|
2353
|
+
const headerParameters = {};
|
|
2354
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2355
|
+
const token = this.configuration.accessToken;
|
|
2356
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2357
|
+
if (tokenString) {
|
|
2358
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
let urlPath = `/secrets`;
|
|
2362
|
+
return {
|
|
2363
|
+
path: urlPath,
|
|
2364
|
+
method: 'GET',
|
|
2365
|
+
headers: headerParameters,
|
|
2366
|
+
query: queryParameters,
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2369
|
+
/**
|
|
2370
|
+
* Returns the environment variables and secret files configured for sandboxes.
|
|
2371
|
+
* Get Boat secrets setup
|
|
2372
|
+
*/
|
|
2373
|
+
async secretsRaw(initOverrides) {
|
|
2374
|
+
const requestOptions = await this.secretsRequestOpts();
|
|
2375
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SecretsResponse_1.SecretsResponseFromJSON)(jsonValue));
|
|
2377
|
+
}
|
|
2378
|
+
/**
|
|
2379
|
+
* Returns the environment variables and secret files configured for sandboxes.
|
|
2380
|
+
* Get Boat secrets setup
|
|
2381
|
+
*/
|
|
2382
|
+
async secrets(initOverrides) {
|
|
2383
|
+
const response = await this.secretsRaw(initOverrides);
|
|
2384
|
+
return await response.value();
|
|
2385
|
+
}
|
|
2386
|
+
/**
|
|
2387
|
+
* Creates request options for selectRepo without sending the request
|
|
2388
|
+
*/
|
|
2389
|
+
async selectRepoRequestOpts(requestParameters) {
|
|
2390
|
+
if (requestParameters['repoSelectionRequest'] == null) {
|
|
2391
|
+
throw new runtime.RequiredError('repoSelectionRequest', 'Required parameter "repoSelectionRequest" was null or undefined when calling selectRepo().');
|
|
2392
|
+
}
|
|
2393
|
+
const queryParameters = {};
|
|
2394
|
+
const headerParameters = {};
|
|
2395
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2396
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2397
|
+
const token = this.configuration.accessToken;
|
|
2398
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2399
|
+
if (tokenString) {
|
|
2400
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
let urlPath = `/repos`;
|
|
2404
|
+
return {
|
|
2405
|
+
path: urlPath,
|
|
2406
|
+
method: 'POST',
|
|
2407
|
+
headers: headerParameters,
|
|
2408
|
+
query: queryParameters,
|
|
2409
|
+
body: (0, RepoSelectionRequest_1.RepoSelectionRequestToJSON)(requestParameters['repoSelectionRequest']),
|
|
2410
|
+
};
|
|
2411
|
+
}
|
|
2412
|
+
/**
|
|
2413
|
+
* Idempotently selects one repository for the sandbox environment. Use `databaseId` from `GET /repos` as `repositoryId`; selecting an already-selected repository updates its `baseBranch`.
|
|
2414
|
+
* Select repository for sandboxes
|
|
2415
|
+
*/
|
|
2416
|
+
async selectRepoRaw(requestParameters, initOverrides) {
|
|
2417
|
+
const requestOptions = await this.selectRepoRequestOpts(requestParameters);
|
|
2418
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2419
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RepoSelectionResponse_1.RepoSelectionResponseFromJSON)(jsonValue));
|
|
2420
|
+
}
|
|
2421
|
+
/**
|
|
2422
|
+
* Idempotently selects one repository for the sandbox environment. Use `databaseId` from `GET /repos` as `repositoryId`; selecting an already-selected repository updates its `baseBranch`.
|
|
2423
|
+
* Select repository for sandboxes
|
|
2424
|
+
*/
|
|
2425
|
+
async selectRepo(requestParameters, initOverrides) {
|
|
2426
|
+
const response = await this.selectRepoRaw(requestParameters, initOverrides);
|
|
2427
|
+
return await response.value();
|
|
2428
|
+
}
|
|
2429
|
+
/**
|
|
2430
|
+
* Creates request options for setEnvironmentSecretFile without sending the request
|
|
2431
|
+
*/
|
|
2432
|
+
async setEnvironmentSecretFileRequestOpts(requestParameters) {
|
|
2433
|
+
if (requestParameters['environmentId'] == null) {
|
|
2434
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling setEnvironmentSecretFile().');
|
|
2435
|
+
}
|
|
2436
|
+
if (requestParameters['setEnvironmentSecretFileRequest'] == null) {
|
|
2437
|
+
throw new runtime.RequiredError('setEnvironmentSecretFileRequest', 'Required parameter "setEnvironmentSecretFileRequest" was null or undefined when calling setEnvironmentSecretFile().');
|
|
2438
|
+
}
|
|
2439
|
+
const queryParameters = {};
|
|
2440
|
+
const headerParameters = {};
|
|
2441
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2442
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2443
|
+
const token = this.configuration.accessToken;
|
|
2444
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2445
|
+
if (tokenString) {
|
|
2446
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
let urlPath = `/environments/{environmentId}/secret-files`;
|
|
2450
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
2451
|
+
return {
|
|
2452
|
+
path: urlPath,
|
|
2453
|
+
method: 'PUT',
|
|
2454
|
+
headers: headerParameters,
|
|
2455
|
+
query: queryParameters,
|
|
2456
|
+
body: (0, SetEnvironmentSecretFileRequest_1.SetEnvironmentSecretFileRequestToJSON)(requestParameters['setEnvironmentSecretFileRequest']),
|
|
2457
|
+
};
|
|
2458
|
+
}
|
|
2459
|
+
/**
|
|
2460
|
+
* Adds or replaces a single secret file by path. Mints a new immutable version.
|
|
2461
|
+
* Write one secret file
|
|
2462
|
+
*/
|
|
2463
|
+
async setEnvironmentSecretFileRaw(requestParameters, initOverrides) {
|
|
2464
|
+
const requestOptions = await this.setEnvironmentSecretFileRequestOpts(requestParameters);
|
|
2465
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2466
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, EnvironmentItemChangeResponse_1.EnvironmentItemChangeResponseFromJSON)(jsonValue));
|
|
2467
|
+
}
|
|
2468
|
+
/**
|
|
2469
|
+
* Adds or replaces a single secret file by path. Mints a new immutable version.
|
|
2470
|
+
* Write one secret file
|
|
2471
|
+
*/
|
|
2472
|
+
async setEnvironmentSecretFile(requestParameters, initOverrides) {
|
|
2473
|
+
const response = await this.setEnvironmentSecretFileRaw(requestParameters, initOverrides);
|
|
2474
|
+
return await response.value();
|
|
2475
|
+
}
|
|
2476
|
+
/**
|
|
2477
|
+
* Creates request options for setEnvironmentVar without sending the request
|
|
2478
|
+
*/
|
|
2479
|
+
async setEnvironmentVarRequestOpts(requestParameters) {
|
|
2480
|
+
if (requestParameters['environmentId'] == null) {
|
|
2481
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling setEnvironmentVar().');
|
|
2482
|
+
}
|
|
2483
|
+
if (requestParameters['key'] == null) {
|
|
2484
|
+
throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling setEnvironmentVar().');
|
|
2485
|
+
}
|
|
2486
|
+
if (requestParameters['setEnvironmentVarRequest'] == null) {
|
|
2487
|
+
throw new runtime.RequiredError('setEnvironmentVarRequest', 'Required parameter "setEnvironmentVarRequest" was null or undefined when calling setEnvironmentVar().');
|
|
2488
|
+
}
|
|
2489
|
+
const queryParameters = {};
|
|
2490
|
+
const headerParameters = {};
|
|
2491
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2492
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2493
|
+
const token = this.configuration.accessToken;
|
|
2494
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2495
|
+
if (tokenString) {
|
|
2496
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
let urlPath = `/environments/{environmentId}/vars/{key}`;
|
|
2500
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
2501
|
+
urlPath = urlPath.replace('{key}', encodeURIComponent(String(requestParameters['key'])));
|
|
2502
|
+
return {
|
|
2503
|
+
path: urlPath,
|
|
2504
|
+
method: 'PUT',
|
|
2505
|
+
headers: headerParameters,
|
|
2506
|
+
query: queryParameters,
|
|
2507
|
+
body: (0, SetEnvironmentVarRequest_1.SetEnvironmentVarRequestToJSON)(requestParameters['setEnvironmentVarRequest']),
|
|
2508
|
+
};
|
|
2509
|
+
}
|
|
2510
|
+
/**
|
|
2511
|
+
* Sets or replaces a single variable without reading or rewriting the rest. Mints a new immutable version.
|
|
2512
|
+
* Set one environment variable
|
|
2513
|
+
*/
|
|
2514
|
+
async setEnvironmentVarRaw(requestParameters, initOverrides) {
|
|
2515
|
+
const requestOptions = await this.setEnvironmentVarRequestOpts(requestParameters);
|
|
2516
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2517
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, EnvironmentItemChangeResponse_1.EnvironmentItemChangeResponseFromJSON)(jsonValue));
|
|
2518
|
+
}
|
|
2519
|
+
/**
|
|
2520
|
+
* Sets or replaces a single variable without reading or rewriting the rest. Mints a new immutable version.
|
|
2521
|
+
* Set one environment variable
|
|
2522
|
+
*/
|
|
2523
|
+
async setEnvironmentVar(requestParameters, initOverrides) {
|
|
2524
|
+
const response = await this.setEnvironmentVarRaw(requestParameters, initOverrides);
|
|
2525
|
+
return await response.value();
|
|
2526
|
+
}
|
|
2527
|
+
/**
|
|
2528
|
+
* Creates request options for sshKey without sending the request
|
|
2529
|
+
*/
|
|
2530
|
+
async sshKeyRequestOpts(requestParameters) {
|
|
2531
|
+
if (requestParameters['sandboxId'] == null) {
|
|
2532
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling sshKey().');
|
|
2533
|
+
}
|
|
2534
|
+
if (requestParameters['sshKeyRequest'] == null) {
|
|
2535
|
+
throw new runtime.RequiredError('sshKeyRequest', 'Required parameter "sshKeyRequest" was null or undefined when calling sshKey().');
|
|
2536
|
+
}
|
|
2537
|
+
const queryParameters = {};
|
|
2538
|
+
const headerParameters = {};
|
|
2539
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2540
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2541
|
+
const token = this.configuration.accessToken;
|
|
2542
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2543
|
+
if (tokenString) {
|
|
2544
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
let urlPath = `/sandboxes/{sandboxId}/sshkey`;
|
|
2548
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
2549
|
+
return {
|
|
2550
|
+
path: urlPath,
|
|
2551
|
+
method: 'POST',
|
|
2552
|
+
headers: headerParameters,
|
|
2553
|
+
query: queryParameters,
|
|
2554
|
+
body: (0, SshKeyRequest_1.SshKeyRequestToJSON)(requestParameters['sshKeyRequest']),
|
|
2555
|
+
};
|
|
2556
|
+
}
|
|
2557
|
+
/**
|
|
2558
|
+
* Adds an OpenSSH public key to the running sandbox so the caller can SSH as user `user`. The response carries `machineIp`, which is the host to connect to on port 22. This is also how you reach your own machine from inside a sandbox without the CLI: authorize the key, then open a reverse tunnel with stock OpenSSH, and a port on your machine answers at `127.0.0.1:<port>` inside the sandbox for as long as the ssh process runs. ```bash ssh -o ExitOnForwardFailure=yes -i ~/.ssh/id_ed25519 -N -R 7777:127.0.0.1:7777 user@<machineIp> ``` `boat forward <id> --reverse --local 7777` is the same tunnel with the key handling and redial done for you.
|
|
2559
|
+
* Configure sandbox SSH key
|
|
2560
|
+
*/
|
|
2561
|
+
async sshKeyRaw(requestParameters, initOverrides) {
|
|
2562
|
+
const requestOptions = await this.sshKeyRequestOpts(requestParameters);
|
|
2563
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2564
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SshKeyResponse_1.SshKeyResponseFromJSON)(jsonValue));
|
|
2565
|
+
}
|
|
2566
|
+
/**
|
|
2567
|
+
* Adds an OpenSSH public key to the running sandbox so the caller can SSH as user `user`. The response carries `machineIp`, which is the host to connect to on port 22. This is also how you reach your own machine from inside a sandbox without the CLI: authorize the key, then open a reverse tunnel with stock OpenSSH, and a port on your machine answers at `127.0.0.1:<port>` inside the sandbox for as long as the ssh process runs. ```bash ssh -o ExitOnForwardFailure=yes -i ~/.ssh/id_ed25519 -N -R 7777:127.0.0.1:7777 user@<machineIp> ``` `boat forward <id> --reverse --local 7777` is the same tunnel with the key handling and redial done for you.
|
|
2568
|
+
* Configure sandbox SSH key
|
|
2569
|
+
*/
|
|
2570
|
+
async sshKey(requestParameters, initOverrides) {
|
|
2571
|
+
const response = await this.sshKeyRaw(requestParameters, initOverrides);
|
|
2572
|
+
return await response.value();
|
|
2573
|
+
}
|
|
2574
|
+
/**
|
|
2575
|
+
* Creates request options for steer without sending the request
|
|
2576
|
+
*/
|
|
2577
|
+
async steerRequestOpts(requestParameters) {
|
|
2578
|
+
if (requestParameters['sandboxId'] == null) {
|
|
2579
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling steer().');
|
|
2580
|
+
}
|
|
2581
|
+
if (requestParameters['steerRequest'] == null) {
|
|
2582
|
+
throw new runtime.RequiredError('steerRequest', 'Required parameter "steerRequest" was null or undefined when calling steer().');
|
|
2583
|
+
}
|
|
2584
|
+
const queryParameters = {};
|
|
2585
|
+
if (requestParameters['conversation'] != null) {
|
|
2586
|
+
queryParameters['conversation'] = requestParameters['conversation'];
|
|
2587
|
+
}
|
|
2588
|
+
const headerParameters = {};
|
|
2589
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2590
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2591
|
+
const token = this.configuration.accessToken;
|
|
2592
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2593
|
+
if (tokenString) {
|
|
2594
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
let urlPath = `/sandboxes/{sandboxId}/steer`;
|
|
2598
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
2599
|
+
return {
|
|
2600
|
+
path: urlPath,
|
|
2601
|
+
method: 'POST',
|
|
2602
|
+
headers: headerParameters,
|
|
2603
|
+
query: queryParameters,
|
|
2604
|
+
body: (0, SteerRequest_1.SteerRequestToJSON)(requestParameters['steerRequest']),
|
|
2605
|
+
};
|
|
2606
|
+
}
|
|
2607
|
+
/**
|
|
2608
|
+
* Send a new message to a turn that is already running, without losing what the agent is doing. This is what typing into a coding agent while it works does: the instruction is taken into account and the work continues. Where the harness has a native mid-turn primitive (Claude Code, Codex, pi, Prime Agent) nothing is interrupted and the response has `native: true`. Where it does not (OpenCode), Boat interrupts that turn and immediately continues the SAME conversation with the instruction, keeping the session and its memory, and the response has `native: false`. Refused with **409 `no_running_turn`** when the conversation has nothing in flight; queue work with `POST /prompt` instead. The steer shows up in `GET /events` as a `steer` event. See [Integrated agents](/integrated-agents).
|
|
2609
|
+
* Steer a running turn
|
|
2610
|
+
*/
|
|
2611
|
+
async steerRaw(requestParameters, initOverrides) {
|
|
2612
|
+
const requestOptions = await this.steerRequestOpts(requestParameters);
|
|
2613
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2614
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SteerResponse_1.SteerResponseFromJSON)(jsonValue));
|
|
2615
|
+
}
|
|
2616
|
+
/**
|
|
2617
|
+
* Send a new message to a turn that is already running, without losing what the agent is doing. This is what typing into a coding agent while it works does: the instruction is taken into account and the work continues. Where the harness has a native mid-turn primitive (Claude Code, Codex, pi, Prime Agent) nothing is interrupted and the response has `native: true`. Where it does not (OpenCode), Boat interrupts that turn and immediately continues the SAME conversation with the instruction, keeping the session and its memory, and the response has `native: false`. Refused with **409 `no_running_turn`** when the conversation has nothing in flight; queue work with `POST /prompt` instead. The steer shows up in `GET /events` as a `steer` event. See [Integrated agents](/integrated-agents).
|
|
2618
|
+
* Steer a running turn
|
|
2619
|
+
*/
|
|
2620
|
+
async steer(requestParameters, initOverrides) {
|
|
2621
|
+
const response = await this.steerRaw(requestParameters, initOverrides);
|
|
2622
|
+
return await response.value();
|
|
2623
|
+
}
|
|
2624
|
+
/**
|
|
2625
|
+
* Creates request options for stop without sending the request
|
|
2626
|
+
*/
|
|
2627
|
+
async stopRequestOpts(requestParameters) {
|
|
2628
|
+
if (requestParameters['sandboxId'] == null) {
|
|
2629
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling stop().');
|
|
2630
|
+
}
|
|
2631
|
+
const queryParameters = {};
|
|
2632
|
+
const headerParameters = {};
|
|
2633
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2634
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2635
|
+
const token = this.configuration.accessToken;
|
|
2636
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2637
|
+
if (tokenString) {
|
|
2638
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
let urlPath = `/sandboxes/{sandboxId}/stop`;
|
|
2642
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
2643
|
+
return {
|
|
2644
|
+
path: urlPath,
|
|
2645
|
+
method: 'POST',
|
|
2646
|
+
headers: headerParameters,
|
|
2647
|
+
query: queryParameters,
|
|
2648
|
+
body: (0, StopRequest_1.StopRequestToJSON)(requestParameters['stopRequest']),
|
|
2649
|
+
};
|
|
2650
|
+
}
|
|
2651
|
+
/**
|
|
2652
|
+
* Stop active work and archive/snapshot the sandbox for later resume or fork. A stop always saves the sandbox\'s disk first. If that save is failing, the stop is refused and the sandbox keeps running so your work is not discarded, we retry automatically and email you. You are not billed for time spent in that state. Set `force: true` to stop anyway, accepting the loss of everything written since the last successful snapshot. This is irreversible; only reach for it after a stop has already failed.
|
|
2653
|
+
* Stop and archive sandbox
|
|
2654
|
+
*/
|
|
2655
|
+
async stopRaw(requestParameters, initOverrides) {
|
|
2656
|
+
const requestOptions = await this.stopRequestOpts(requestParameters);
|
|
2657
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2658
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxActionResponse_1.SandboxActionResponseFromJSON)(jsonValue));
|
|
2659
|
+
}
|
|
2660
|
+
/**
|
|
2661
|
+
* Stop active work and archive/snapshot the sandbox for later resume or fork. A stop always saves the sandbox\'s disk first. If that save is failing, the stop is refused and the sandbox keeps running so your work is not discarded, we retry automatically and email you. You are not billed for time spent in that state. Set `force: true` to stop anyway, accepting the loss of everything written since the last successful snapshot. This is irreversible; only reach for it after a stop has already failed.
|
|
2662
|
+
* Stop and archive sandbox
|
|
2663
|
+
*/
|
|
2664
|
+
async stop(requestParameters, initOverrides) {
|
|
2665
|
+
const response = await this.stopRaw(requestParameters, initOverrides);
|
|
2666
|
+
return await response.value();
|
|
2667
|
+
}
|
|
2668
|
+
/**
|
|
2669
|
+
* Creates request options for update without sending the request
|
|
2670
|
+
*/
|
|
2671
|
+
async updateRequestOpts(requestParameters) {
|
|
2672
|
+
if (requestParameters['sandboxId'] == null) {
|
|
2673
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling update().');
|
|
2674
|
+
}
|
|
2675
|
+
if (requestParameters['updateSandboxRequest'] == null) {
|
|
2676
|
+
throw new runtime.RequiredError('updateSandboxRequest', 'Required parameter "updateSandboxRequest" was null or undefined when calling update().');
|
|
2677
|
+
}
|
|
2678
|
+
const queryParameters = {};
|
|
2679
|
+
const headerParameters = {};
|
|
2680
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2681
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2682
|
+
const token = this.configuration.accessToken;
|
|
2683
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2684
|
+
if (tokenString) {
|
|
2685
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
let urlPath = `/sandboxes/{sandboxId}`;
|
|
2689
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
2690
|
+
return {
|
|
2691
|
+
path: urlPath,
|
|
2692
|
+
method: 'PATCH',
|
|
2693
|
+
headers: headerParameters,
|
|
2694
|
+
query: queryParameters,
|
|
2695
|
+
body: (0, UpdateSandboxRequest_1.UpdateSandboxRequestToJSON)(requestParameters['updateSandboxRequest']),
|
|
2696
|
+
};
|
|
2697
|
+
}
|
|
2698
|
+
/**
|
|
2699
|
+
* Update sandbox
|
|
2700
|
+
*/
|
|
2701
|
+
async updateRaw(requestParameters, initOverrides) {
|
|
2702
|
+
const requestOptions = await this.updateRequestOpts(requestParameters);
|
|
2703
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2704
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxInfoResponse_1.SandboxInfoResponseFromJSON)(jsonValue));
|
|
2705
|
+
}
|
|
2706
|
+
/**
|
|
2707
|
+
* Update sandbox
|
|
2708
|
+
*/
|
|
2709
|
+
async update(requestParameters, initOverrides) {
|
|
2710
|
+
const response = await this.updateRaw(requestParameters, initOverrides);
|
|
2711
|
+
return await response.value();
|
|
2712
|
+
}
|
|
2713
|
+
/**
|
|
2714
|
+
* Creates request options for updateDataRetention without sending the request
|
|
2715
|
+
*/
|
|
2716
|
+
async updateDataRetentionRequestOpts(requestParameters) {
|
|
2717
|
+
if (requestParameters['dataRetentionUpdateRequest'] == null) {
|
|
2718
|
+
throw new runtime.RequiredError('dataRetentionUpdateRequest', 'Required parameter "dataRetentionUpdateRequest" was null or undefined when calling updateDataRetention().');
|
|
2719
|
+
}
|
|
2720
|
+
const queryParameters = {};
|
|
2721
|
+
const headerParameters = {};
|
|
2722
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2723
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2724
|
+
const token = this.configuration.accessToken;
|
|
2725
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2726
|
+
if (tokenString) {
|
|
2727
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
let urlPath = `/account/data-retention`;
|
|
2731
|
+
return {
|
|
2732
|
+
path: urlPath,
|
|
2733
|
+
method: 'PATCH',
|
|
2734
|
+
headers: headerParameters,
|
|
2735
|
+
query: queryParameters,
|
|
2736
|
+
body: (0, DataRetentionUpdateRequest_1.DataRetentionUpdateRequestToJSON)(requestParameters['dataRetentionUpdateRequest']),
|
|
2737
|
+
};
|
|
2738
|
+
}
|
|
2739
|
+
/**
|
|
2740
|
+
* Requires an interactive sandbox session; API keys and legacy permanent tokens are refused. Enabling requires the exact confirmation phrase `delete archived sandbox data`. Disabling affects future archives only and cannot cancel deletion operations already accepted.
|
|
2741
|
+
* Update account data-retention policy
|
|
2742
|
+
*/
|
|
2743
|
+
async updateDataRetentionRaw(requestParameters, initOverrides) {
|
|
2744
|
+
const requestOptions = await this.updateDataRetentionRequestOpts(requestParameters);
|
|
2745
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2746
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataRetentionPolicyResponse_1.DataRetentionPolicyResponseFromJSON)(jsonValue));
|
|
2747
|
+
}
|
|
2748
|
+
/**
|
|
2749
|
+
* Requires an interactive sandbox session; API keys and legacy permanent tokens are refused. Enabling requires the exact confirmation phrase `delete archived sandbox data`. Disabling affects future archives only and cannot cancel deletion operations already accepted.
|
|
2750
|
+
* Update account data-retention policy
|
|
2751
|
+
*/
|
|
2752
|
+
async updateDataRetention(requestParameters, initOverrides) {
|
|
2753
|
+
const response = await this.updateDataRetentionRaw(requestParameters, initOverrides);
|
|
2754
|
+
return await response.value();
|
|
2755
|
+
}
|
|
2756
|
+
/**
|
|
2757
|
+
* Creates request options for updateEnvironment without sending the request
|
|
2758
|
+
*/
|
|
2759
|
+
async updateEnvironmentRequestOpts(requestParameters) {
|
|
2760
|
+
if (requestParameters['environmentId'] == null) {
|
|
2761
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling updateEnvironment().');
|
|
2762
|
+
}
|
|
2763
|
+
if (requestParameters['updateSandboxEnvironmentRequest'] == null) {
|
|
2764
|
+
throw new runtime.RequiredError('updateSandboxEnvironmentRequest', 'Required parameter "updateSandboxEnvironmentRequest" was null or undefined when calling updateEnvironment().');
|
|
2765
|
+
}
|
|
2766
|
+
const queryParameters = {};
|
|
2767
|
+
const headerParameters = {};
|
|
2768
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2769
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2770
|
+
const token = this.configuration.accessToken;
|
|
2771
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2772
|
+
if (tokenString) {
|
|
2773
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
let urlPath = `/environments/{environmentId}`;
|
|
2777
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
2778
|
+
return {
|
|
2779
|
+
path: urlPath,
|
|
2780
|
+
method: 'PUT',
|
|
2781
|
+
headers: headerParameters,
|
|
2782
|
+
query: queryParameters,
|
|
2783
|
+
body: (0, UpdateSandboxEnvironmentRequest_1.UpdateSandboxEnvironmentRequestToJSON)(requestParameters['updateSandboxEnvironmentRequest']),
|
|
2784
|
+
};
|
|
2785
|
+
}
|
|
2786
|
+
/**
|
|
2787
|
+
* Rename, set as default, and/or edit flags and contents. Any flag or content change mints a new immutable version; existing sandboxes stay on their pinned version until you call upgrade.
|
|
2788
|
+
* Update a sandbox environment
|
|
2789
|
+
*/
|
|
2790
|
+
async updateEnvironmentRaw(requestParameters, initOverrides) {
|
|
2791
|
+
const requestOptions = await this.updateEnvironmentRequestOpts(requestParameters);
|
|
2792
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2793
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxEnvironmentResponse_1.SandboxEnvironmentResponseFromJSON)(jsonValue));
|
|
2794
|
+
}
|
|
2795
|
+
/**
|
|
2796
|
+
* Rename, set as default, and/or edit flags and contents. Any flag or content change mints a new immutable version; existing sandboxes stay on their pinned version until you call upgrade.
|
|
2797
|
+
* Update a sandbox environment
|
|
2798
|
+
*/
|
|
2799
|
+
async updateEnvironment(requestParameters, initOverrides) {
|
|
2800
|
+
const response = await this.updateEnvironmentRaw(requestParameters, initOverrides);
|
|
2801
|
+
return await response.value();
|
|
2802
|
+
}
|
|
2803
|
+
/**
|
|
2804
|
+
* Creates request options for updateSecrets without sending the request
|
|
2805
|
+
*/
|
|
2806
|
+
async updateSecretsRequestOpts(requestParameters) {
|
|
2807
|
+
if (requestParameters['secretsUpdateRequest'] == null) {
|
|
2808
|
+
throw new runtime.RequiredError('secretsUpdateRequest', 'Required parameter "secretsUpdateRequest" was null or undefined when calling updateSecrets().');
|
|
2809
|
+
}
|
|
2810
|
+
const queryParameters = {};
|
|
2811
|
+
const headerParameters = {};
|
|
2812
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2813
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2814
|
+
const token = this.configuration.accessToken;
|
|
2815
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2816
|
+
if (tokenString) {
|
|
2817
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
let urlPath = `/secrets`;
|
|
2821
|
+
return {
|
|
2822
|
+
path: urlPath,
|
|
2823
|
+
method: 'POST',
|
|
2824
|
+
headers: headerParameters,
|
|
2825
|
+
query: queryParameters,
|
|
2826
|
+
body: (0, SecretsUpdateRequest_1.SecretsUpdateRequestToJSON)(requestParameters['secretsUpdateRequest']),
|
|
2827
|
+
};
|
|
2828
|
+
}
|
|
2829
|
+
/**
|
|
2830
|
+
* Update Boat secrets setup
|
|
2831
|
+
*/
|
|
2832
|
+
async updateSecretsRaw(requestParameters, initOverrides) {
|
|
2833
|
+
const requestOptions = await this.updateSecretsRequestOpts(requestParameters);
|
|
2834
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2835
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SecretsResponse_1.SecretsResponseFromJSON)(jsonValue));
|
|
2836
|
+
}
|
|
2837
|
+
/**
|
|
2838
|
+
* Update Boat secrets setup
|
|
2839
|
+
*/
|
|
2840
|
+
async updateSecrets(requestParameters, initOverrides) {
|
|
2841
|
+
const response = await this.updateSecretsRaw(requestParameters, initOverrides);
|
|
2842
|
+
return await response.value();
|
|
2843
|
+
}
|
|
2844
|
+
/**
|
|
2845
|
+
* Creates request options for updateWebhook without sending the request
|
|
2846
|
+
*/
|
|
2847
|
+
async updateWebhookRequestOpts(requestParameters) {
|
|
2848
|
+
if (requestParameters['webhookId'] == null) {
|
|
2849
|
+
throw new runtime.RequiredError('webhookId', 'Required parameter "webhookId" was null or undefined when calling updateWebhook().');
|
|
2850
|
+
}
|
|
2851
|
+
if (requestParameters['webhookUpdateRequest'] == null) {
|
|
2852
|
+
throw new runtime.RequiredError('webhookUpdateRequest', 'Required parameter "webhookUpdateRequest" was null or undefined when calling updateWebhook().');
|
|
2853
|
+
}
|
|
2854
|
+
const queryParameters = {};
|
|
2855
|
+
const headerParameters = {};
|
|
2856
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2857
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2858
|
+
const token = this.configuration.accessToken;
|
|
2859
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2860
|
+
if (tokenString) {
|
|
2861
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
let urlPath = `/webhooks/{webhookId}`;
|
|
2865
|
+
urlPath = urlPath.replace('{webhookId}', encodeURIComponent(String(requestParameters['webhookId'])));
|
|
2866
|
+
return {
|
|
2867
|
+
path: urlPath,
|
|
2868
|
+
method: 'PATCH',
|
|
2869
|
+
headers: headerParameters,
|
|
2870
|
+
query: queryParameters,
|
|
2871
|
+
body: (0, WebhookUpdateRequest_1.WebhookUpdateRequestToJSON)(requestParameters['webhookUpdateRequest']),
|
|
2872
|
+
};
|
|
2873
|
+
}
|
|
2874
|
+
/**
|
|
2875
|
+
* Updates the name, endpoint URL, or subscribed events without changing the signing secret.
|
|
2876
|
+
* Update webhook
|
|
2877
|
+
*/
|
|
2878
|
+
async updateWebhookRaw(requestParameters, initOverrides) {
|
|
2879
|
+
const requestOptions = await this.updateWebhookRequestOpts(requestParameters);
|
|
2880
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2881
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, WebhookResponse_1.WebhookResponseFromJSON)(jsonValue));
|
|
2882
|
+
}
|
|
2883
|
+
/**
|
|
2884
|
+
* Updates the name, endpoint URL, or subscribed events without changing the signing secret.
|
|
2885
|
+
* Update webhook
|
|
2886
|
+
*/
|
|
2887
|
+
async updateWebhook(requestParameters, initOverrides) {
|
|
2888
|
+
const response = await this.updateWebhookRaw(requestParameters, initOverrides);
|
|
2889
|
+
return await response.value();
|
|
2890
|
+
}
|
|
2891
|
+
/**
|
|
2892
|
+
* Creates request options for upgradeEnvironment without sending the request
|
|
2893
|
+
*/
|
|
2894
|
+
async upgradeEnvironmentRequestOpts(requestParameters) {
|
|
2895
|
+
if (requestParameters['environmentId'] == null) {
|
|
2896
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling upgradeEnvironment().');
|
|
2897
|
+
}
|
|
2898
|
+
const queryParameters = {};
|
|
2899
|
+
const headerParameters = {};
|
|
2900
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2901
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2902
|
+
const token = this.configuration.accessToken;
|
|
2903
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2904
|
+
if (tokenString) {
|
|
2905
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2906
|
+
}
|
|
2907
|
+
}
|
|
2908
|
+
let urlPath = `/environments/{environmentId}/upgrade`;
|
|
2909
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
2910
|
+
return {
|
|
2911
|
+
path: urlPath,
|
|
2912
|
+
method: 'POST',
|
|
2913
|
+
headers: headerParameters,
|
|
2914
|
+
query: queryParameters,
|
|
2915
|
+
body: (0, UpgradeSandboxEnvironmentRequest_1.UpgradeSandboxEnvironmentRequestToJSON)(requestParameters['upgradeSandboxEnvironmentRequest']),
|
|
2916
|
+
};
|
|
2917
|
+
}
|
|
2918
|
+
/**
|
|
2919
|
+
* Repoints the caller\'s active sandboxes from an older version of this environment to its latest version, scrubbing any owner secrets the new version drops and hot-pushing the new config.
|
|
2920
|
+
* Upgrade sandboxes to an environment\'s latest version
|
|
2921
|
+
*/
|
|
2922
|
+
async upgradeEnvironmentRaw(requestParameters, initOverrides) {
|
|
2923
|
+
const requestOptions = await this.upgradeEnvironmentRequestOpts(requestParameters);
|
|
2924
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2925
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, UpgradeSandboxEnvironmentResponse_1.UpgradeSandboxEnvironmentResponseFromJSON)(jsonValue));
|
|
2926
|
+
}
|
|
2927
|
+
/**
|
|
2928
|
+
* Repoints the caller\'s active sandboxes from an older version of this environment to its latest version, scrubbing any owner secrets the new version drops and hot-pushing the new config.
|
|
2929
|
+
* Upgrade sandboxes to an environment\'s latest version
|
|
2930
|
+
*/
|
|
2931
|
+
async upgradeEnvironment(requestParameters, initOverrides) {
|
|
2932
|
+
const response = await this.upgradeEnvironmentRaw(requestParameters, initOverrides);
|
|
2933
|
+
return await response.value();
|
|
2934
|
+
}
|
|
2935
|
+
/**
|
|
2936
|
+
* Creates request options for usage without sending the request
|
|
2937
|
+
*/
|
|
2938
|
+
async usageRequestOpts(requestParameters) {
|
|
2939
|
+
if (requestParameters['sandboxId'] == null) {
|
|
2940
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling usage().');
|
|
2941
|
+
}
|
|
2942
|
+
const queryParameters = {};
|
|
2943
|
+
if (requestParameters['since'] != null) {
|
|
2944
|
+
queryParameters['since'] = requestParameters['since'];
|
|
2945
|
+
}
|
|
2946
|
+
if (requestParameters['until'] != null) {
|
|
2947
|
+
queryParameters['until'] = requestParameters['until'];
|
|
2948
|
+
}
|
|
2949
|
+
const headerParameters = {};
|
|
2950
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2951
|
+
const token = this.configuration.accessToken;
|
|
2952
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2953
|
+
if (tokenString) {
|
|
2954
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
let urlPath = `/sandboxes/{sandboxId}/usage`;
|
|
2958
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
2959
|
+
return {
|
|
2960
|
+
path: urlPath,
|
|
2961
|
+
method: 'GET',
|
|
2962
|
+
headers: headerParameters,
|
|
2963
|
+
query: queryParameters,
|
|
2964
|
+
};
|
|
2965
|
+
}
|
|
2966
|
+
/**
|
|
2967
|
+
* Machine time one sandbox consumed, and what it costs, so you can bill your own users per sandbox. Same meter as `GET /limits`: billable seconds with the sandbox type\'s multiplier applied, paused past a refused stop, never counting time stopped. Narrow it to a billing period with `since` and `until`; a period boundary that falls inside a running stretch splits that stretch pro rata. Works while the sandbox runs and after it stops.
|
|
2968
|
+
* Get boat usage
|
|
2969
|
+
*/
|
|
2970
|
+
async usageRaw(requestParameters, initOverrides) {
|
|
2971
|
+
const requestOptions = await this.usageRequestOpts(requestParameters);
|
|
2972
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2973
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxUsageResponse_1.SandboxUsageResponseFromJSON)(jsonValue));
|
|
2974
|
+
}
|
|
2975
|
+
/**
|
|
2976
|
+
* Machine time one sandbox consumed, and what it costs, so you can bill your own users per sandbox. Same meter as `GET /limits`: billable seconds with the sandbox type\'s multiplier applied, paused past a refused stop, never counting time stopped. Narrow it to a billing period with `since` and `until`; a period boundary that falls inside a running stretch splits that stretch pro rata. Works while the sandbox runs and after it stops.
|
|
2977
|
+
* Get boat usage
|
|
2978
|
+
*/
|
|
2979
|
+
async usage(requestParameters, initOverrides) {
|
|
2980
|
+
const response = await this.usageRaw(requestParameters, initOverrides);
|
|
2981
|
+
return await response.value();
|
|
2982
|
+
}
|
|
2983
|
+
/**
|
|
2984
|
+
* Creates request options for writeFile without sending the request
|
|
2985
|
+
*/
|
|
2986
|
+
async writeFileRequestOpts(requestParameters) {
|
|
2987
|
+
if (requestParameters['sandboxId'] == null) {
|
|
2988
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling writeFile().');
|
|
2989
|
+
}
|
|
2990
|
+
if (requestParameters['fileWriteRequest'] == null) {
|
|
2991
|
+
throw new runtime.RequiredError('fileWriteRequest', 'Required parameter "fileWriteRequest" was null or undefined when calling writeFile().');
|
|
2992
|
+
}
|
|
2993
|
+
const queryParameters = {};
|
|
2994
|
+
const headerParameters = {};
|
|
2995
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2996
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2997
|
+
const token = this.configuration.accessToken;
|
|
2998
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2999
|
+
if (tokenString) {
|
|
3000
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
let urlPath = `/sandboxes/{sandboxId}/files`;
|
|
3004
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
3005
|
+
return {
|
|
3006
|
+
path: urlPath,
|
|
3007
|
+
method: 'PUT',
|
|
3008
|
+
headers: headerParameters,
|
|
3009
|
+
query: queryParameters,
|
|
3010
|
+
body: (0, FileWriteRequest_1.FileWriteRequestToJSON)(requestParameters['fileWriteRequest']),
|
|
3011
|
+
};
|
|
3012
|
+
}
|
|
3013
|
+
/**
|
|
3014
|
+
* Write a file in a sandbox
|
|
3015
|
+
*/
|
|
3016
|
+
async writeFileRaw(requestParameters, initOverrides) {
|
|
3017
|
+
const requestOptions = await this.writeFileRequestOpts(requestParameters);
|
|
3018
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3019
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, FileWriteResponse_1.FileWriteResponseFromJSON)(jsonValue));
|
|
3020
|
+
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Write a file in a sandbox
|
|
3023
|
+
*/
|
|
3024
|
+
async writeFile(requestParameters, initOverrides) {
|
|
3025
|
+
const response = await this.writeFileRaw(requestParameters, initOverrides);
|
|
3026
|
+
return await response.value();
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
exports.BoatApi = BoatApi;
|
|
3030
|
+
/**
|
|
3031
|
+
* @export
|
|
3032
|
+
*/
|
|
3033
|
+
exports.DesktopOperationVncEnum = {
|
|
3034
|
+
NUMBER_1: 1
|
|
3035
|
+
};
|
|
3036
|
+
/**
|
|
3037
|
+
* @export
|
|
3038
|
+
*/
|
|
3039
|
+
exports.DesktopOperationThemeEnum = {
|
|
3040
|
+
Light: 'light',
|
|
3041
|
+
Dark: 'dark'
|
|
3042
|
+
};
|
|
3043
|
+
/**
|
|
3044
|
+
* @export
|
|
3045
|
+
*/
|
|
3046
|
+
exports.EventsSortEnum = {
|
|
3047
|
+
Asc: 'asc',
|
|
3048
|
+
Desc: 'desc'
|
|
3049
|
+
};
|
|
3050
|
+
/**
|
|
3051
|
+
* @export
|
|
3052
|
+
*/
|
|
3053
|
+
exports.ListSandboxSnapshotsSortEnum = {
|
|
3054
|
+
Asc: 'asc',
|
|
3055
|
+
Desc: 'desc'
|
|
3056
|
+
};
|
|
3057
|
+
/**
|
|
3058
|
+
* @export
|
|
3059
|
+
*/
|
|
3060
|
+
exports.ListSnapshotsSortEnum = {
|
|
3061
|
+
Asc: 'asc',
|
|
3062
|
+
Desc: 'desc'
|
|
3063
|
+
};
|
|
3064
|
+
/**
|
|
3065
|
+
* @export
|
|
3066
|
+
*/
|
|
3067
|
+
exports.ReadFileEncodingEnum = {
|
|
3068
|
+
Utf8: 'utf8',
|
|
3069
|
+
Base64: 'base64'
|
|
3070
|
+
};
|
|
3071
|
+
/**
|
|
3072
|
+
* @export
|
|
3073
|
+
*/
|
|
3074
|
+
exports.ReposSortEnum = {
|
|
3075
|
+
Asc: 'asc',
|
|
3076
|
+
Desc: 'desc'
|
|
3077
|
+
};
|
|
3078
|
+
/**
|
|
3079
|
+
* @export
|
|
3080
|
+
*/
|
|
3081
|
+
exports.SandboxesSortEnum = {
|
|
3082
|
+
Asc: 'asc',
|
|
3083
|
+
Desc: 'desc'
|
|
3084
|
+
};
|