@boatdev/sdk 1.0.0 → 1.1.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 +22 -0
- package/README.md +8 -26
- package/dist/apis/BoatApi.d.ts +132 -79
- package/dist/apis/BoatApi.js +188 -29
- package/dist/esm/apis/BoatApi.d.ts +132 -79
- package/dist/esm/apis/BoatApi.js +188 -29
- package/dist/esm/models/ActiveOrgResponse.d.ts +52 -0
- package/dist/esm/models/ActiveOrgResponse.js +58 -0
- package/dist/esm/models/ActiveOrgResponseAllOfActive.d.ts +52 -0
- package/dist/esm/models/ActiveOrgResponseAllOfActive.js +58 -0
- package/dist/esm/models/ActiveOrgUpdateRequest.d.ts +32 -0
- package/dist/esm/models/ActiveOrgUpdateRequest.js +43 -0
- package/dist/esm/models/CommandResponse.d.ts +6 -0
- package/dist/esm/models/CommandResponse.js +2 -0
- package/dist/esm/models/CommandStatusResponse.d.ts +6 -0
- package/dist/esm/models/CommandStatusResponse.js +2 -0
- package/dist/esm/models/CreateSandboxRequest.d.ts +2 -3
- package/dist/esm/models/CreateSandboxRequest.js +1 -2
- package/dist/esm/models/CreateSandboxResponse.d.ts +8 -1
- package/dist/esm/models/CreateSandboxResponse.js +4 -1
- package/dist/esm/models/DeletionOperation.d.ts +24 -0
- package/dist/esm/models/DeletionOperation.js +15 -0
- package/dist/esm/models/DeletionOperationListResponse.d.ts +52 -0
- package/dist/esm/models/DeletionOperationListResponse.js +58 -0
- package/dist/esm/models/ForkRequest.d.ts +1 -2
- package/dist/esm/models/ForkRequest.js +1 -2
- package/dist/esm/models/LimitsFields.d.ts +80 -0
- package/dist/esm/models/LimitsFields.js +28 -0
- package/dist/esm/models/LimitsFieldsCurrentLimits.d.ts +6 -0
- package/dist/esm/models/LimitsFieldsCurrentLimits.js +2 -0
- package/dist/esm/models/LimitsFieldsGiftLimit.d.ts +50 -0
- package/dist/esm/models/LimitsFieldsGiftLimit.js +47 -0
- package/dist/esm/models/LimitsFieldsSandboxPlanTiersInner.d.ts +80 -0
- package/dist/esm/models/LimitsFieldsSandboxPlanTiersInner.js +57 -0
- package/dist/esm/models/LimitsResponse.d.ts +80 -0
- package/dist/esm/models/LimitsResponse.js +28 -0
- package/dist/esm/models/MeResponseAllOfUser.d.ts +109 -0
- package/dist/esm/models/MeResponseAllOfUser.js +47 -0
- package/dist/esm/models/Org.d.ts +84 -0
- package/dist/esm/models/Org.js +79 -0
- package/dist/esm/models/OrgListResponse.d.ts +58 -0
- package/dist/esm/models/OrgListResponse.js +62 -0
- package/dist/esm/models/PromptEventData.d.ts +20 -0
- package/dist/esm/models/PromptEventData.js +8 -0
- package/dist/esm/models/PromptEventDataAttachmentsInner.d.ts +44 -0
- package/dist/esm/models/PromptEventDataAttachmentsInner.js +45 -0
- package/dist/esm/models/PromptEventDataCitationsInner.d.ts +50 -0
- package/dist/esm/models/PromptEventDataCitationsInner.js +47 -0
- package/dist/esm/models/RepoSelectionResponse.d.ts +6 -0
- package/dist/esm/models/RepoSelectionResponse.js +2 -0
- package/dist/esm/models/ReposResponse.d.ts +6 -0
- package/dist/esm/models/ReposResponse.js +2 -0
- package/dist/esm/models/Repository.d.ts +18 -0
- package/dist/esm/models/Repository.js +6 -0
- package/dist/esm/models/ResponseEventData.d.ts +6 -0
- package/dist/esm/models/ResponseEventData.js +2 -0
- package/dist/esm/models/ResumeRequest.d.ts +1 -2
- package/dist/esm/models/ResumeRequest.js +1 -2
- package/dist/esm/models/Sandbox.d.ts +43 -4
- package/dist/esm/models/Sandbox.js +21 -3
- package/dist/esm/models/SandboxActionResponse.d.ts +12 -0
- package/dist/esm/models/SandboxActionResponse.js +4 -0
- package/dist/esm/models/SandboxEnvironment.d.ts +12 -0
- package/dist/esm/models/SandboxEnvironment.js +4 -0
- package/dist/esm/models/SandboxEnvironmentListResponse.d.ts +26 -0
- package/dist/esm/models/SandboxEnvironmentListResponse.js +16 -0
- package/dist/esm/models/SandboxInfoResponse.d.ts +6 -0
- package/dist/esm/models/SandboxInfoResponse.js +2 -0
- package/dist/esm/models/SandboxTeam.d.ts +38 -0
- package/dist/esm/models/SandboxTeam.js +47 -0
- package/dist/esm/models/SandboxUsageResponse.d.ts +1 -2
- package/dist/esm/models/SandboxUsageResponse.js +1 -2
- package/dist/esm/models/SecretsResponse.d.ts +6 -0
- package/dist/esm/models/SecretsResponse.js +2 -0
- package/dist/esm/models/SelectedRepository.d.ts +18 -0
- package/dist/esm/models/SelectedRepository.js +6 -0
- package/dist/esm/models/SnapshotChunk.d.ts +2 -2
- package/dist/esm/models/SnapshotSummary.d.ts +3 -3
- package/dist/esm/models/SshKeyResponse.d.ts +12 -0
- package/dist/esm/models/SshKeyResponse.js +4 -0
- package/dist/esm/models/UpgradeSandboxEnvironmentResponse.d.ts +18 -0
- package/dist/esm/models/UpgradeSandboxEnvironmentResponse.js +6 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/esm/runtime.d.ts +8 -0
- package/dist/esm/runtime.js +18 -0
- package/dist/models/ActiveOrgResponse.d.ts +52 -0
- package/dist/models/ActiveOrgResponse.js +66 -0
- package/dist/models/ActiveOrgResponseAllOfActive.d.ts +52 -0
- package/dist/models/ActiveOrgResponseAllOfActive.js +66 -0
- package/dist/models/ActiveOrgUpdateRequest.d.ts +32 -0
- package/dist/models/ActiveOrgUpdateRequest.js +50 -0
- package/dist/models/CommandResponse.d.ts +6 -0
- package/dist/models/CommandResponse.js +2 -0
- package/dist/models/CommandStatusResponse.d.ts +6 -0
- package/dist/models/CommandStatusResponse.js +2 -0
- package/dist/models/CreateSandboxRequest.d.ts +2 -3
- package/dist/models/CreateSandboxRequest.js +1 -2
- package/dist/models/CreateSandboxResponse.d.ts +8 -1
- package/dist/models/CreateSandboxResponse.js +4 -1
- package/dist/models/DeletionOperation.d.ts +24 -0
- package/dist/models/DeletionOperation.js +16 -1
- package/dist/models/DeletionOperationListResponse.d.ts +52 -0
- package/dist/models/DeletionOperationListResponse.js +66 -0
- package/dist/models/ForkRequest.d.ts +1 -2
- package/dist/models/ForkRequest.js +1 -2
- package/dist/models/LimitsFields.d.ts +80 -0
- package/dist/models/LimitsFields.js +28 -0
- package/dist/models/LimitsFieldsCurrentLimits.d.ts +6 -0
- package/dist/models/LimitsFieldsCurrentLimits.js +2 -0
- package/dist/models/LimitsFieldsGiftLimit.d.ts +50 -0
- package/dist/models/LimitsFieldsGiftLimit.js +54 -0
- package/dist/models/LimitsFieldsSandboxPlanTiersInner.d.ts +80 -0
- package/dist/models/LimitsFieldsSandboxPlanTiersInner.js +64 -0
- package/dist/models/LimitsResponse.d.ts +80 -0
- package/dist/models/LimitsResponse.js +28 -0
- package/dist/models/MeResponseAllOfUser.d.ts +109 -0
- package/dist/models/MeResponseAllOfUser.js +48 -0
- package/dist/models/Org.d.ts +84 -0
- package/dist/models/Org.js +87 -0
- package/dist/models/OrgListResponse.d.ts +58 -0
- package/dist/models/OrgListResponse.js +70 -0
- package/dist/models/PromptEventData.d.ts +20 -0
- package/dist/models/PromptEventData.js +8 -0
- package/dist/models/PromptEventDataAttachmentsInner.d.ts +44 -0
- package/dist/models/PromptEventDataAttachmentsInner.js +52 -0
- package/dist/models/PromptEventDataCitationsInner.d.ts +50 -0
- package/dist/models/PromptEventDataCitationsInner.js +54 -0
- package/dist/models/RepoSelectionResponse.d.ts +6 -0
- package/dist/models/RepoSelectionResponse.js +2 -0
- package/dist/models/ReposResponse.d.ts +6 -0
- package/dist/models/ReposResponse.js +2 -0
- package/dist/models/Repository.d.ts +18 -0
- package/dist/models/Repository.js +6 -0
- package/dist/models/ResponseEventData.d.ts +6 -0
- package/dist/models/ResponseEventData.js +2 -0
- package/dist/models/ResumeRequest.d.ts +1 -2
- package/dist/models/ResumeRequest.js +1 -2
- package/dist/models/Sandbox.d.ts +43 -4
- package/dist/models/Sandbox.js +22 -4
- package/dist/models/SandboxActionResponse.d.ts +12 -0
- package/dist/models/SandboxActionResponse.js +4 -0
- package/dist/models/SandboxEnvironment.d.ts +12 -0
- package/dist/models/SandboxEnvironment.js +4 -0
- package/dist/models/SandboxEnvironmentListResponse.d.ts +26 -0
- package/dist/models/SandboxEnvironmentListResponse.js +17 -0
- package/dist/models/SandboxInfoResponse.d.ts +6 -0
- package/dist/models/SandboxInfoResponse.js +2 -0
- package/dist/models/SandboxTeam.d.ts +38 -0
- package/dist/models/SandboxTeam.js +54 -0
- package/dist/models/SandboxUsageResponse.d.ts +1 -2
- package/dist/models/SandboxUsageResponse.js +1 -2
- package/dist/models/SecretsResponse.d.ts +6 -0
- package/dist/models/SecretsResponse.js +2 -0
- package/dist/models/SelectedRepository.d.ts +18 -0
- package/dist/models/SelectedRepository.js +6 -0
- package/dist/models/SnapshotChunk.d.ts +2 -2
- package/dist/models/SnapshotSummary.d.ts +3 -3
- package/dist/models/SshKeyResponse.d.ts +12 -0
- package/dist/models/SshKeyResponse.js +4 -0
- package/dist/models/UpgradeSandboxEnvironmentResponse.d.ts +18 -0
- package/dist/models/UpgradeSandboxEnvironmentResponse.js +6 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/dist/runtime.d.ts +8 -0
- package/dist/runtime.js +19 -0
- package/docs/ActiveOrgResponse.md +36 -0
- package/docs/ActiveOrgResponseAllOfActive.md +36 -0
- package/docs/ActiveOrgUpdateRequest.md +32 -0
- package/docs/BoatApi.md +228 -8
- package/docs/Command200Response.md +2 -0
- package/docs/CommandResponse.md +2 -0
- package/docs/CommandStatusResponse.md +2 -0
- package/docs/CreateSandboxResponse.md +2 -0
- package/docs/DeletionOperation.md +4 -0
- package/docs/DeletionOperationListResponse.md +36 -0
- package/docs/LimitsFields.md +26 -0
- package/docs/LimitsFieldsCurrentLimits.md +2 -0
- package/docs/LimitsFieldsGiftLimit.md +39 -0
- package/docs/LimitsFieldsSandboxPlanTiersInner.md +48 -0
- package/docs/LimitsResponse.md +26 -0
- package/docs/MeResponseAllOfUser.md +30 -0
- package/docs/Org.md +44 -0
- package/docs/OrgListResponse.md +38 -0
- package/docs/PromptEventData.md +6 -0
- package/docs/PromptEventDataAttachmentsInner.md +36 -0
- package/docs/PromptEventDataCitationsInner.md +38 -0
- package/docs/RepoSelectionResponse.md +2 -0
- package/docs/ReposResponse.md +2 -0
- package/docs/Repository.md +6 -0
- package/docs/ResponseEventData.md +2 -0
- package/docs/Sandbox.md +10 -0
- package/docs/SandboxActionResponse.md +4 -0
- package/docs/SandboxEnvironment.md +4 -0
- package/docs/SandboxEnvironmentListResponse.md +4 -0
- package/docs/SandboxInfoResponse.md +2 -0
- package/docs/SandboxTeam.md +35 -0
- package/docs/SecretsResponse.md +2 -0
- package/docs/SelectedRepository.md +6 -0
- package/docs/SshKeyResponse.md +4 -0
- package/docs/UpgradeSandboxEnvironmentResponse.md +6 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +304 -79
- package/src/models/ActiveOrgResponse.ts +102 -0
- package/src/models/ActiveOrgResponseAllOfActive.ts +95 -0
- package/src/models/ActiveOrgUpdateRequest.ts +66 -0
- package/src/models/CommandResponse.ts +8 -0
- package/src/models/CommandStatusResponse.ts +8 -0
- package/src/models/CreateSandboxRequest.ts +3 -4
- package/src/models/CreateSandboxResponse.ts +11 -2
- package/src/models/DeletionOperation.ts +29 -0
- package/src/models/DeletionOperationListResponse.ts +102 -0
- package/src/models/ForkRequest.ts +2 -3
- package/src/models/LimitsFields.ts +118 -0
- package/src/models/LimitsFieldsCurrentLimits.ts +8 -0
- package/src/models/LimitsFieldsGiftLimit.ts +89 -0
- package/src/models/LimitsFieldsSandboxPlanTiersInner.ts +129 -0
- package/src/models/LimitsResponse.ts +118 -0
- package/src/models/MeResponseAllOfUser.ts +143 -0
- package/src/models/Org.ts +139 -0
- package/src/models/OrgListResponse.ts +111 -0
- package/src/models/PromptEventData.ts +39 -0
- package/src/models/PromptEventDataAttachmentsInner.ts +81 -0
- package/src/models/PromptEventDataCitationsInner.ts +89 -0
- package/src/models/RepoSelectionResponse.ts +8 -0
- package/src/models/ReposResponse.ts +8 -0
- package/src/models/Repository.ts +24 -0
- package/src/models/ResponseEventData.ts +8 -0
- package/src/models/ResumeRequest.ts +2 -3
- package/src/models/Sandbox.ts +63 -6
- package/src/models/SandboxActionResponse.ts +16 -0
- package/src/models/SandboxEnvironment.ts +16 -0
- package/src/models/SandboxEnvironmentListResponse.ts +34 -0
- package/src/models/SandboxInfoResponse.ts +8 -0
- package/src/models/SandboxTeam.ts +75 -0
- package/src/models/SandboxUsageResponse.ts +2 -3
- package/src/models/SecretsResponse.ts +8 -0
- package/src/models/SelectedRepository.ts +24 -0
- package/src/models/SnapshotChunk.ts +2 -2
- package/src/models/SnapshotSummary.ts +3 -3
- package/src/models/SshKeyResponse.ts +16 -0
- package/src/models/UpgradeSandboxEnvironmentResponse.ts +24 -0
- package/src/models/index.ts +11 -0
- package/src/runtime.ts +23 -0
package/dist/apis/BoatApi.js
CHANGED
|
@@ -48,6 +48,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
49
|
exports.SandboxesSortEnum = exports.ReposSortEnum = exports.ReadFileEncodingEnum = exports.ListSnapshotsSortEnum = exports.ListSandboxSnapshotsSortEnum = exports.EventsSortEnum = exports.DesktopOperationThemeEnum = exports.DesktopOperationVncEnum = exports.BoatApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const ActiveOrgResponse_1 = require("../models/ActiveOrgResponse");
|
|
52
|
+
const ActiveOrgUpdateRequest_1 = require("../models/ActiveOrgUpdateRequest");
|
|
51
53
|
const AddEnvironmentRepoRequest_1 = require("../models/AddEnvironmentRepoRequest");
|
|
52
54
|
const ApiKeyRevokeResponse_1 = require("../models/ApiKeyRevokeResponse");
|
|
53
55
|
const ApiKeySecretResponse_1 = require("../models/ApiKeySecretResponse");
|
|
@@ -63,6 +65,7 @@ const CreateSandboxResponse_1 = require("../models/CreateSandboxResponse");
|
|
|
63
65
|
const CreateScopedApiKeyRequest_1 = require("../models/CreateScopedApiKeyRequest");
|
|
64
66
|
const DataRetentionPolicyResponse_1 = require("../models/DataRetentionPolicyResponse");
|
|
65
67
|
const DataRetentionUpdateRequest_1 = require("../models/DataRetentionUpdateRequest");
|
|
68
|
+
const DeletionOperationListResponse_1 = require("../models/DeletionOperationListResponse");
|
|
66
69
|
const DeletionOperationResponse_1 = require("../models/DeletionOperationResponse");
|
|
67
70
|
const DesktopRequest_1 = require("../models/DesktopRequest");
|
|
68
71
|
const DesktopResponse_1 = require("../models/DesktopResponse");
|
|
@@ -81,6 +84,7 @@ const NamedSnapshotInfoResponse_1 = require("../models/NamedSnapshotInfoResponse
|
|
|
81
84
|
const NamedSnapshotListResponse_1 = require("../models/NamedSnapshotListResponse");
|
|
82
85
|
const NamedSnapshotSaveRequest_1 = require("../models/NamedSnapshotSaveRequest");
|
|
83
86
|
const NamedSnapshotSavingResponse_1 = require("../models/NamedSnapshotSavingResponse");
|
|
87
|
+
const OrgListResponse_1 = require("../models/OrgListResponse");
|
|
84
88
|
const PromptRequest_1 = require("../models/PromptRequest");
|
|
85
89
|
const PromptResponse_1 = require("../models/PromptResponse");
|
|
86
90
|
const PromptRunResponse_1 = require("../models/PromptRunResponse");
|
|
@@ -124,7 +128,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
124
128
|
/**
|
|
125
129
|
* Creates request options for addEnvironmentRepo without sending the request
|
|
126
130
|
*/
|
|
127
|
-
async addEnvironmentRepoRequestOpts(
|
|
131
|
+
async addEnvironmentRepoRequestOpts(input) {
|
|
132
|
+
const requestParameters = runtime.unflattenBody(input, 'addEnvironmentRepoRequest', ['environmentId'], []);
|
|
128
133
|
if (requestParameters['environmentId'] == null) {
|
|
129
134
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling addEnvironmentRepo().');
|
|
130
135
|
}
|
|
@@ -297,7 +302,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
297
302
|
/**
|
|
298
303
|
* Creates request options for command without sending the request
|
|
299
304
|
*/
|
|
300
|
-
async commandRequestOpts(
|
|
305
|
+
async commandRequestOpts(input) {
|
|
306
|
+
const requestParameters = runtime.unflattenBody(input, 'commandRequest', ['sandboxId'], []);
|
|
301
307
|
if (requestParameters['sandboxId'] == null) {
|
|
302
308
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling command().');
|
|
303
309
|
}
|
|
@@ -433,7 +439,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
433
439
|
/**
|
|
434
440
|
* Creates request options for create without sending the request
|
|
435
441
|
*/
|
|
436
|
-
async createRequestOpts(
|
|
442
|
+
async createRequestOpts(input) {
|
|
443
|
+
const requestParameters = runtime.unflattenBody(input, 'createSandboxRequest', ['idempotencyKey', 'org', 'xBoatOrg'], ['org']);
|
|
437
444
|
const queryParameters = {};
|
|
438
445
|
if (requestParameters['org'] != null) {
|
|
439
446
|
queryParameters['org'] = requestParameters['org'];
|
|
@@ -482,7 +489,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
482
489
|
/**
|
|
483
490
|
* Creates request options for createEnvironment without sending the request
|
|
484
491
|
*/
|
|
485
|
-
async createEnvironmentRequestOpts(
|
|
492
|
+
async createEnvironmentRequestOpts(input) {
|
|
493
|
+
const requestParameters = runtime.unflattenBody(input, 'createSandboxEnvironmentRequest', [], []);
|
|
486
494
|
if (requestParameters['createSandboxEnvironmentRequest'] == null) {
|
|
487
495
|
throw new runtime.RequiredError('createSandboxEnvironmentRequest', 'Required parameter "createSandboxEnvironmentRequest" was null or undefined when calling createEnvironment().');
|
|
488
496
|
}
|
|
@@ -525,7 +533,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
525
533
|
/**
|
|
526
534
|
* Creates request options for createScopedApiKey without sending the request
|
|
527
535
|
*/
|
|
528
|
-
async createScopedApiKeyRequestOpts(
|
|
536
|
+
async createScopedApiKeyRequestOpts(input) {
|
|
537
|
+
const requestParameters = runtime.unflattenBody(input, 'createScopedApiKeyRequest', [], []);
|
|
529
538
|
if (requestParameters['createScopedApiKeyRequest'] == null) {
|
|
530
539
|
throw new runtime.RequiredError('createScopedApiKeyRequest', 'Required parameter "createScopedApiKeyRequest" was null or undefined when calling createScopedApiKey().');
|
|
531
540
|
}
|
|
@@ -568,7 +577,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
568
577
|
/**
|
|
569
578
|
* Creates request options for createWebhook without sending the request
|
|
570
579
|
*/
|
|
571
|
-
async createWebhookRequestOpts(
|
|
580
|
+
async createWebhookRequestOpts(input) {
|
|
581
|
+
const requestParameters = runtime.unflattenBody(input, 'webhookCreateRequest', [], []);
|
|
572
582
|
if (requestParameters['webhookCreateRequest'] == null) {
|
|
573
583
|
throw new runtime.RequiredError('webhookCreateRequest', 'Required parameter "webhookCreateRequest" was null or undefined when calling createWebhook().');
|
|
574
584
|
}
|
|
@@ -880,6 +890,54 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
880
890
|
const response = await this.deleteSandboxRaw(requestParameters, initOverrides);
|
|
881
891
|
return await response.value();
|
|
882
892
|
}
|
|
893
|
+
/**
|
|
894
|
+
* Creates request options for deleteSandboxSnapshots without sending the request
|
|
895
|
+
*/
|
|
896
|
+
async deleteSandboxSnapshotsRequestOpts(requestParameters) {
|
|
897
|
+
if (requestParameters['sandboxId'] == null) {
|
|
898
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling deleteSandboxSnapshots().');
|
|
899
|
+
}
|
|
900
|
+
if (requestParameters['xAsciiConfirmDelete'] == null) {
|
|
901
|
+
throw new runtime.RequiredError('xAsciiConfirmDelete', 'Required parameter "xAsciiConfirmDelete" was null or undefined when calling deleteSandboxSnapshots().');
|
|
902
|
+
}
|
|
903
|
+
const queryParameters = {};
|
|
904
|
+
const headerParameters = {};
|
|
905
|
+
if (requestParameters['xAsciiConfirmDelete'] != null) {
|
|
906
|
+
headerParameters['X-Ascii-Confirm-Delete'] = String(requestParameters['xAsciiConfirmDelete']);
|
|
907
|
+
}
|
|
908
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
909
|
+
const token = this.configuration.accessToken;
|
|
910
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
911
|
+
if (tokenString) {
|
|
912
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
let urlPath = `/sandboxes/{sandboxId}/snapshots`;
|
|
916
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
917
|
+
return {
|
|
918
|
+
path: urlPath,
|
|
919
|
+
method: 'DELETE',
|
|
920
|
+
headers: headerParameters,
|
|
921
|
+
query: queryParameters,
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* Accept irreversible deletion of every unpinned snapshot of this sandbox. The sandbox itself and its named snapshots stay. Snapshots disappear from lists, restores and forks immediately; their stored data is purged in the background. Set `X-Ascii-Confirm-Delete` to the sandbox id.
|
|
926
|
+
* Permanently delete all snapshots of a sandbox
|
|
927
|
+
*/
|
|
928
|
+
async deleteSandboxSnapshotsRaw(requestParameters, initOverrides) {
|
|
929
|
+
const requestOptions = await this.deleteSandboxSnapshotsRequestOpts(requestParameters);
|
|
930
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
931
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeletionOperationListResponse_1.DeletionOperationListResponseFromJSON)(jsonValue));
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Accept irreversible deletion of every unpinned snapshot of this sandbox. The sandbox itself and its named snapshots stay. Snapshots disappear from lists, restores and forks immediately; their stored data is purged in the background. Set `X-Ascii-Confirm-Delete` to the sandbox id.
|
|
935
|
+
* Permanently delete all snapshots of a sandbox
|
|
936
|
+
*/
|
|
937
|
+
async deleteSandboxSnapshots(requestParameters, initOverrides) {
|
|
938
|
+
const response = await this.deleteSandboxSnapshotsRaw(requestParameters, initOverrides);
|
|
939
|
+
return await response.value();
|
|
940
|
+
}
|
|
883
941
|
/**
|
|
884
942
|
* Creates request options for deleteSnapshot without sending the request
|
|
885
943
|
*/
|
|
@@ -912,7 +970,7 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
912
970
|
};
|
|
913
971
|
}
|
|
914
972
|
/**
|
|
915
|
-
* Accept irreversible
|
|
973
|
+
* Accept irreversible deletion of an unpinned snapshot owned by the authenticated account. Any such snapshot is accepted: it disappears from lists, restores and forks immediately, and its stored data is purged in the background once nothing still reads it (see the operation\'s `stage`). `409` only means `X-Ascii-Confirm-Delete` is missing or wrong.
|
|
916
974
|
* Permanently delete snapshot data
|
|
917
975
|
*/
|
|
918
976
|
async deleteSnapshotRaw(requestParameters, initOverrides) {
|
|
@@ -921,7 +979,7 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
921
979
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeletionOperationResponse_1.DeletionOperationResponseFromJSON)(jsonValue));
|
|
922
980
|
}
|
|
923
981
|
/**
|
|
924
|
-
* Accept irreversible
|
|
982
|
+
* Accept irreversible deletion of an unpinned snapshot owned by the authenticated account. Any such snapshot is accepted: it disappears from lists, restores and forks immediately, and its stored data is purged in the background once nothing still reads it (see the operation\'s `stage`). `409` only means `X-Ascii-Confirm-Delete` is missing or wrong.
|
|
925
983
|
* Permanently delete snapshot data
|
|
926
984
|
*/
|
|
927
985
|
async deleteSnapshot(requestParameters, initOverrides) {
|
|
@@ -973,7 +1031,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
973
1031
|
/**
|
|
974
1032
|
* Creates request options for desktop without sending the request
|
|
975
1033
|
*/
|
|
976
|
-
async desktopRequestOpts(
|
|
1034
|
+
async desktopRequestOpts(input) {
|
|
1035
|
+
const requestParameters = runtime.unflattenBody(input, 'desktopRequest', ['sandboxId', 'vnc', 'theme'], []);
|
|
977
1036
|
if (requestParameters['sandboxId'] == null) {
|
|
978
1037
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling desktop().');
|
|
979
1038
|
}
|
|
@@ -1118,7 +1177,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1118
1177
|
/**
|
|
1119
1178
|
* Creates request options for fork without sending the request
|
|
1120
1179
|
*/
|
|
1121
|
-
async forkRequestOpts(
|
|
1180
|
+
async forkRequestOpts(input) {
|
|
1181
|
+
const requestParameters = runtime.unflattenBody(input, 'forkRequest', ['sandboxId', 'idempotencyKey'], []);
|
|
1122
1182
|
if (requestParameters['sandboxId'] == null) {
|
|
1123
1183
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling fork().');
|
|
1124
1184
|
}
|
|
@@ -1540,7 +1600,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1540
1600
|
/**
|
|
1541
1601
|
* Creates request options for hostPort without sending the request
|
|
1542
1602
|
*/
|
|
1543
|
-
async hostPortRequestOpts(
|
|
1603
|
+
async hostPortRequestOpts(input) {
|
|
1604
|
+
const requestParameters = runtime.unflattenBody(input, 'hostPortRequest', ['sandboxId'], []);
|
|
1544
1605
|
if (requestParameters['sandboxId'] == null) {
|
|
1545
1606
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling hostPort().');
|
|
1546
1607
|
}
|
|
@@ -1660,7 +1721,7 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1660
1721
|
};
|
|
1661
1722
|
}
|
|
1662
1723
|
/**
|
|
1663
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
1724
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
|
|
1664
1725
|
* Get Boat limits
|
|
1665
1726
|
*/
|
|
1666
1727
|
async limitsRaw(requestParameters, initOverrides) {
|
|
@@ -1669,7 +1730,7 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1669
1730
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, LimitsResponse_1.LimitsResponseFromJSON)(jsonValue));
|
|
1670
1731
|
}
|
|
1671
1732
|
/**
|
|
1672
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
1733
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
|
|
1673
1734
|
* Get Boat limits
|
|
1674
1735
|
*/
|
|
1675
1736
|
async limits(requestParameters = {}, initOverrides) {
|
|
@@ -1714,6 +1775,44 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1714
1775
|
const response = await this.listNamedSnapshotsRaw(initOverrides);
|
|
1715
1776
|
return await response.value();
|
|
1716
1777
|
}
|
|
1778
|
+
/**
|
|
1779
|
+
* Creates request options for listOrganizations without sending the request
|
|
1780
|
+
*/
|
|
1781
|
+
async listOrganizationsRequestOpts() {
|
|
1782
|
+
const queryParameters = {};
|
|
1783
|
+
const headerParameters = {};
|
|
1784
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1785
|
+
const token = this.configuration.accessToken;
|
|
1786
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1787
|
+
if (tokenString) {
|
|
1788
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
let urlPath = `/orgs`;
|
|
1792
|
+
return {
|
|
1793
|
+
path: urlPath,
|
|
1794
|
+
method: 'GET',
|
|
1795
|
+
headers: headerParameters,
|
|
1796
|
+
query: queryParameters,
|
|
1797
|
+
};
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
|
|
1801
|
+
* List organizations
|
|
1802
|
+
*/
|
|
1803
|
+
async listOrganizationsRaw(initOverrides) {
|
|
1804
|
+
const requestOptions = await this.listOrganizationsRequestOpts();
|
|
1805
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1806
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, OrgListResponse_1.OrgListResponseFromJSON)(jsonValue));
|
|
1807
|
+
}
|
|
1808
|
+
/**
|
|
1809
|
+
* The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
|
|
1810
|
+
* List organizations
|
|
1811
|
+
*/
|
|
1812
|
+
async listOrganizations(initOverrides) {
|
|
1813
|
+
const response = await this.listOrganizationsRaw(initOverrides);
|
|
1814
|
+
return await response.value();
|
|
1815
|
+
}
|
|
1717
1816
|
/**
|
|
1718
1817
|
* Creates request options for listSandboxSnapshots without sending the request
|
|
1719
1818
|
*/
|
|
@@ -1891,7 +1990,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1891
1990
|
/**
|
|
1892
1991
|
* Creates request options for prompt without sending the request
|
|
1893
1992
|
*/
|
|
1894
|
-
async promptRequestOpts(
|
|
1993
|
+
async promptRequestOpts(input) {
|
|
1994
|
+
const requestParameters = runtime.unflattenBody(input, 'promptRequest', ['sandboxId'], []);
|
|
1895
1995
|
if (requestParameters['sandboxId'] == null) {
|
|
1896
1996
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling prompt().');
|
|
1897
1997
|
}
|
|
@@ -2089,7 +2189,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2089
2189
|
/**
|
|
2090
2190
|
* Creates request options for resume without sending the request
|
|
2091
2191
|
*/
|
|
2092
|
-
async resumeRequestOpts(
|
|
2192
|
+
async resumeRequestOpts(input) {
|
|
2193
|
+
const requestParameters = runtime.unflattenBody(input, 'resumeRequest', ['sandboxId'], []);
|
|
2093
2194
|
if (requestParameters['sandboxId'] == null) {
|
|
2094
2195
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling resume().');
|
|
2095
2196
|
}
|
|
@@ -2305,7 +2406,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2305
2406
|
/**
|
|
2306
2407
|
* Creates request options for saveNamedSnapshot without sending the request
|
|
2307
2408
|
*/
|
|
2308
|
-
async saveNamedSnapshotRequestOpts(
|
|
2409
|
+
async saveNamedSnapshotRequestOpts(input) {
|
|
2410
|
+
const requestParameters = runtime.unflattenBody(input, 'namedSnapshotSaveRequest', [], []);
|
|
2309
2411
|
if (requestParameters['namedSnapshotSaveRequest'] == null) {
|
|
2310
2412
|
throw new runtime.RequiredError('namedSnapshotSaveRequest', 'Required parameter "namedSnapshotSaveRequest" was null or undefined when calling saveNamedSnapshot().');
|
|
2311
2413
|
}
|
|
@@ -2386,7 +2488,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2386
2488
|
/**
|
|
2387
2489
|
* Creates request options for selectRepo without sending the request
|
|
2388
2490
|
*/
|
|
2389
|
-
async selectRepoRequestOpts(
|
|
2491
|
+
async selectRepoRequestOpts(input) {
|
|
2492
|
+
const requestParameters = runtime.unflattenBody(input, 'repoSelectionRequest', [], []);
|
|
2390
2493
|
if (requestParameters['repoSelectionRequest'] == null) {
|
|
2391
2494
|
throw new runtime.RequiredError('repoSelectionRequest', 'Required parameter "repoSelectionRequest" was null or undefined when calling selectRepo().');
|
|
2392
2495
|
}
|
|
@@ -2426,10 +2529,55 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2426
2529
|
const response = await this.selectRepoRaw(requestParameters, initOverrides);
|
|
2427
2530
|
return await response.value();
|
|
2428
2531
|
}
|
|
2532
|
+
/**
|
|
2533
|
+
* Creates request options for setActiveOrganization without sending the request
|
|
2534
|
+
*/
|
|
2535
|
+
async setActiveOrganizationRequestOpts(input) {
|
|
2536
|
+
const requestParameters = runtime.unflattenBody(input, 'activeOrgUpdateRequest', [], []);
|
|
2537
|
+
if (requestParameters['activeOrgUpdateRequest'] == null) {
|
|
2538
|
+
throw new runtime.RequiredError('activeOrgUpdateRequest', 'Required parameter "activeOrgUpdateRequest" was null or undefined when calling setActiveOrganization().');
|
|
2539
|
+
}
|
|
2540
|
+
const queryParameters = {};
|
|
2541
|
+
const headerParameters = {};
|
|
2542
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2543
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2544
|
+
const token = this.configuration.accessToken;
|
|
2545
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2546
|
+
if (tokenString) {
|
|
2547
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
let urlPath = `/orgs/active`;
|
|
2551
|
+
return {
|
|
2552
|
+
path: urlPath,
|
|
2553
|
+
method: 'PATCH',
|
|
2554
|
+
headers: headerParameters,
|
|
2555
|
+
query: queryParameters,
|
|
2556
|
+
body: (0, ActiveOrgUpdateRequest_1.ActiveOrgUpdateRequestToJSON)(requestParameters['activeOrgUpdateRequest']),
|
|
2557
|
+
};
|
|
2558
|
+
}
|
|
2559
|
+
/**
|
|
2560
|
+
* Set the wallet new sandboxes bill when a request names none, for this account on every client: the API, the CLI (`boat org switch` sets the same value) and the dashboard. Pass an organization id or name you belong to, or `personal` (or `null`) for your own account. `GET /limits` follows it. Sandboxes already running keep the wallet they were created with; leaving or deleting the organization resets the account to personal.
|
|
2561
|
+
* Set the active organization
|
|
2562
|
+
*/
|
|
2563
|
+
async setActiveOrganizationRaw(requestParameters, initOverrides) {
|
|
2564
|
+
const requestOptions = await this.setActiveOrganizationRequestOpts(requestParameters);
|
|
2565
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2566
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ActiveOrgResponse_1.ActiveOrgResponseFromJSON)(jsonValue));
|
|
2567
|
+
}
|
|
2568
|
+
/**
|
|
2569
|
+
* Set the wallet new sandboxes bill when a request names none, for this account on every client: the API, the CLI (`boat org switch` sets the same value) and the dashboard. Pass an organization id or name you belong to, or `personal` (or `null`) for your own account. `GET /limits` follows it. Sandboxes already running keep the wallet they were created with; leaving or deleting the organization resets the account to personal.
|
|
2570
|
+
* Set the active organization
|
|
2571
|
+
*/
|
|
2572
|
+
async setActiveOrganization(requestParameters, initOverrides) {
|
|
2573
|
+
const response = await this.setActiveOrganizationRaw(requestParameters, initOverrides);
|
|
2574
|
+
return await response.value();
|
|
2575
|
+
}
|
|
2429
2576
|
/**
|
|
2430
2577
|
* Creates request options for setEnvironmentSecretFile without sending the request
|
|
2431
2578
|
*/
|
|
2432
|
-
async setEnvironmentSecretFileRequestOpts(
|
|
2579
|
+
async setEnvironmentSecretFileRequestOpts(input) {
|
|
2580
|
+
const requestParameters = runtime.unflattenBody(input, 'setEnvironmentSecretFileRequest', ['environmentId'], []);
|
|
2433
2581
|
if (requestParameters['environmentId'] == null) {
|
|
2434
2582
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling setEnvironmentSecretFile().');
|
|
2435
2583
|
}
|
|
@@ -2476,7 +2624,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2476
2624
|
/**
|
|
2477
2625
|
* Creates request options for setEnvironmentVar without sending the request
|
|
2478
2626
|
*/
|
|
2479
|
-
async setEnvironmentVarRequestOpts(
|
|
2627
|
+
async setEnvironmentVarRequestOpts(input) {
|
|
2628
|
+
const requestParameters = runtime.unflattenBody(input, 'setEnvironmentVarRequest', ['environmentId', 'key'], []);
|
|
2480
2629
|
if (requestParameters['environmentId'] == null) {
|
|
2481
2630
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling setEnvironmentVar().');
|
|
2482
2631
|
}
|
|
@@ -2527,7 +2676,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2527
2676
|
/**
|
|
2528
2677
|
* Creates request options for sshKey without sending the request
|
|
2529
2678
|
*/
|
|
2530
|
-
async sshKeyRequestOpts(
|
|
2679
|
+
async sshKeyRequestOpts(input) {
|
|
2680
|
+
const requestParameters = runtime.unflattenBody(input, 'sshKeyRequest', ['sandboxId'], []);
|
|
2531
2681
|
if (requestParameters['sandboxId'] == null) {
|
|
2532
2682
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling sshKey().');
|
|
2533
2683
|
}
|
|
@@ -2574,7 +2724,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2574
2724
|
/**
|
|
2575
2725
|
* Creates request options for steer without sending the request
|
|
2576
2726
|
*/
|
|
2577
|
-
async steerRequestOpts(
|
|
2727
|
+
async steerRequestOpts(input) {
|
|
2728
|
+
const requestParameters = runtime.unflattenBody(input, 'steerRequest', ['sandboxId', 'conversation'], ['conversation']);
|
|
2578
2729
|
if (requestParameters['sandboxId'] == null) {
|
|
2579
2730
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling steer().');
|
|
2580
2731
|
}
|
|
@@ -2624,7 +2775,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2624
2775
|
/**
|
|
2625
2776
|
* Creates request options for stop without sending the request
|
|
2626
2777
|
*/
|
|
2627
|
-
async stopRequestOpts(
|
|
2778
|
+
async stopRequestOpts(input) {
|
|
2779
|
+
const requestParameters = runtime.unflattenBody(input, 'stopRequest', ['sandboxId'], []);
|
|
2628
2780
|
if (requestParameters['sandboxId'] == null) {
|
|
2629
2781
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling stop().');
|
|
2630
2782
|
}
|
|
@@ -2668,7 +2820,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2668
2820
|
/**
|
|
2669
2821
|
* Creates request options for update without sending the request
|
|
2670
2822
|
*/
|
|
2671
|
-
async updateRequestOpts(
|
|
2823
|
+
async updateRequestOpts(input) {
|
|
2824
|
+
const requestParameters = runtime.unflattenBody(input, 'updateSandboxRequest', ['sandboxId'], []);
|
|
2672
2825
|
if (requestParameters['sandboxId'] == null) {
|
|
2673
2826
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling update().');
|
|
2674
2827
|
}
|
|
@@ -2713,7 +2866,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2713
2866
|
/**
|
|
2714
2867
|
* Creates request options for updateDataRetention without sending the request
|
|
2715
2868
|
*/
|
|
2716
|
-
async updateDataRetentionRequestOpts(
|
|
2869
|
+
async updateDataRetentionRequestOpts(input) {
|
|
2870
|
+
const requestParameters = runtime.unflattenBody(input, 'dataRetentionUpdateRequest', [], []);
|
|
2717
2871
|
if (requestParameters['dataRetentionUpdateRequest'] == null) {
|
|
2718
2872
|
throw new runtime.RequiredError('dataRetentionUpdateRequest', 'Required parameter "dataRetentionUpdateRequest" was null or undefined when calling updateDataRetention().');
|
|
2719
2873
|
}
|
|
@@ -2756,7 +2910,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2756
2910
|
/**
|
|
2757
2911
|
* Creates request options for updateEnvironment without sending the request
|
|
2758
2912
|
*/
|
|
2759
|
-
async updateEnvironmentRequestOpts(
|
|
2913
|
+
async updateEnvironmentRequestOpts(input) {
|
|
2914
|
+
const requestParameters = runtime.unflattenBody(input, 'updateSandboxEnvironmentRequest', ['environmentId'], []);
|
|
2760
2915
|
if (requestParameters['environmentId'] == null) {
|
|
2761
2916
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling updateEnvironment().');
|
|
2762
2917
|
}
|
|
@@ -2803,7 +2958,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2803
2958
|
/**
|
|
2804
2959
|
* Creates request options for updateSecrets without sending the request
|
|
2805
2960
|
*/
|
|
2806
|
-
async updateSecretsRequestOpts(
|
|
2961
|
+
async updateSecretsRequestOpts(input) {
|
|
2962
|
+
const requestParameters = runtime.unflattenBody(input, 'secretsUpdateRequest', [], []);
|
|
2807
2963
|
if (requestParameters['secretsUpdateRequest'] == null) {
|
|
2808
2964
|
throw new runtime.RequiredError('secretsUpdateRequest', 'Required parameter "secretsUpdateRequest" was null or undefined when calling updateSecrets().');
|
|
2809
2965
|
}
|
|
@@ -2844,7 +3000,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2844
3000
|
/**
|
|
2845
3001
|
* Creates request options for updateWebhook without sending the request
|
|
2846
3002
|
*/
|
|
2847
|
-
async updateWebhookRequestOpts(
|
|
3003
|
+
async updateWebhookRequestOpts(input) {
|
|
3004
|
+
const requestParameters = runtime.unflattenBody(input, 'webhookUpdateRequest', ['webhookId'], []);
|
|
2848
3005
|
if (requestParameters['webhookId'] == null) {
|
|
2849
3006
|
throw new runtime.RequiredError('webhookId', 'Required parameter "webhookId" was null or undefined when calling updateWebhook().');
|
|
2850
3007
|
}
|
|
@@ -2891,7 +3048,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2891
3048
|
/**
|
|
2892
3049
|
* Creates request options for upgradeEnvironment without sending the request
|
|
2893
3050
|
*/
|
|
2894
|
-
async upgradeEnvironmentRequestOpts(
|
|
3051
|
+
async upgradeEnvironmentRequestOpts(input) {
|
|
3052
|
+
const requestParameters = runtime.unflattenBody(input, 'upgradeSandboxEnvironmentRequest', ['environmentId'], []);
|
|
2895
3053
|
if (requestParameters['environmentId'] == null) {
|
|
2896
3054
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling upgradeEnvironment().');
|
|
2897
3055
|
}
|
|
@@ -2983,7 +3141,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2983
3141
|
/**
|
|
2984
3142
|
* Creates request options for writeFile without sending the request
|
|
2985
3143
|
*/
|
|
2986
|
-
async writeFileRequestOpts(
|
|
3144
|
+
async writeFileRequestOpts(input) {
|
|
3145
|
+
const requestParameters = runtime.unflattenBody(input, 'fileWriteRequest', ['sandboxId'], []);
|
|
2987
3146
|
if (requestParameters['sandboxId'] == null) {
|
|
2988
3147
|
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling writeFile().');
|
|
2989
3148
|
}
|