@boatdev/sdk 1.9.5 → 1.9.6
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 +40 -0
- package/dist/apis/BoatApi.d.ts +263 -3
- package/dist/apis/BoatApi.js +662 -11
- package/dist/esm/apis/BoatApi.d.ts +263 -3
- package/dist/esm/apis/BoatApi.js +662 -11
- package/dist/esm/models/AccountAiUsageResponse.d.ts +83 -0
- package/dist/esm/models/AccountAiUsageResponse.js +78 -0
- package/dist/esm/models/AiProxySettings.d.ts +81 -0
- package/dist/esm/models/AiProxySettings.js +76 -0
- package/dist/esm/models/AiProxySettingsAllOfPricing.d.ts +38 -0
- package/dist/esm/models/AiProxySettingsAllOfPricing.js +47 -0
- package/dist/esm/models/AiUsageRow.d.ts +80 -0
- package/dist/esm/models/AiUsageRow.js +75 -0
- package/dist/esm/models/AiUsageTotals.d.ts +62 -0
- package/dist/esm/models/AiUsageTotals.js +63 -0
- package/dist/esm/models/CreateCredentialProfileRequest.d.ts +44 -0
- package/dist/esm/models/CreateCredentialProfileRequest.js +47 -0
- package/dist/esm/models/CredentialId.d.ts +36 -0
- package/dist/esm/models/CredentialId.js +54 -0
- package/dist/esm/models/CredentialProfile.d.ts +82 -0
- package/dist/esm/models/CredentialProfile.js +77 -0
- package/dist/esm/models/CredentialProfileDeletedResponse.d.ts +44 -0
- package/dist/esm/models/CredentialProfileDeletedResponse.js +51 -0
- package/dist/esm/models/CredentialProfileListResponse.d.ts +45 -0
- package/dist/esm/models/CredentialProfileListResponse.js +52 -0
- package/dist/esm/models/CredentialProfileOwner.d.ts +58 -0
- package/dist/esm/models/CredentialProfileOwner.js +62 -0
- package/dist/esm/models/CredentialProfileResponse.d.ts +51 -0
- package/dist/esm/models/CredentialProfileResponse.js +56 -0
- package/dist/esm/models/ProcessListResponse.d.ts +1 -1
- package/dist/esm/models/SandboxAiAccessResponse.d.ts +56 -0
- package/dist/esm/models/SandboxAiAccessResponse.js +59 -0
- package/dist/esm/models/SandboxAiUsage.d.ts +64 -0
- package/dist/esm/models/SandboxAiUsage.js +65 -0
- package/dist/esm/models/SandboxAiUsageResponse.d.ts +88 -0
- package/dist/esm/models/SandboxAiUsageResponse.js +81 -0
- package/dist/esm/models/SandboxEnvironment.d.ts +13 -1
- package/dist/esm/models/SandboxEnvironment.js +4 -0
- package/dist/esm/models/SetCredentialKeyRequest.d.ts +32 -0
- package/dist/esm/models/SetCredentialKeyRequest.js +43 -0
- package/dist/esm/models/SetCustomApiRequest.d.ts +38 -0
- package/dist/esm/models/SetCustomApiRequest.js +47 -0
- package/dist/esm/models/SetSandboxAiAccessRequest.d.ts +32 -0
- package/dist/esm/models/SetSandboxAiAccessRequest.js +43 -0
- package/dist/esm/models/UpdateAiProxyRequest.d.ts +32 -0
- package/dist/esm/models/UpdateAiProxyRequest.js +43 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.d.ts +38 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.js +43 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +4 -0
- package/dist/esm/models/index.d.ts +20 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/models/AccountAiUsageResponse.d.ts +83 -0
- package/dist/models/AccountAiUsageResponse.js +85 -0
- package/dist/models/AiProxySettings.d.ts +81 -0
- package/dist/models/AiProxySettings.js +83 -0
- package/dist/models/AiProxySettingsAllOfPricing.d.ts +38 -0
- package/dist/models/AiProxySettingsAllOfPricing.js +54 -0
- package/dist/models/AiUsageRow.d.ts +80 -0
- package/dist/models/AiUsageRow.js +82 -0
- package/dist/models/AiUsageTotals.d.ts +62 -0
- package/dist/models/AiUsageTotals.js +70 -0
- package/dist/models/CreateCredentialProfileRequest.d.ts +44 -0
- package/dist/models/CreateCredentialProfileRequest.js +54 -0
- package/dist/models/CredentialId.d.ts +36 -0
- package/dist/models/CredentialId.js +62 -0
- package/dist/models/CredentialProfile.d.ts +82 -0
- package/dist/models/CredentialProfile.js +84 -0
- package/dist/models/CredentialProfileDeletedResponse.d.ts +44 -0
- package/dist/models/CredentialProfileDeletedResponse.js +58 -0
- package/dist/models/CredentialProfileListResponse.d.ts +45 -0
- package/dist/models/CredentialProfileListResponse.js +59 -0
- package/dist/models/CredentialProfileOwner.d.ts +58 -0
- package/dist/models/CredentialProfileOwner.js +70 -0
- package/dist/models/CredentialProfileResponse.d.ts +51 -0
- package/dist/models/CredentialProfileResponse.js +63 -0
- package/dist/models/ProcessListResponse.d.ts +1 -1
- package/dist/models/SandboxAiAccessResponse.d.ts +56 -0
- package/dist/models/SandboxAiAccessResponse.js +66 -0
- package/dist/models/SandboxAiUsage.d.ts +64 -0
- package/dist/models/SandboxAiUsage.js +72 -0
- package/dist/models/SandboxAiUsageResponse.d.ts +88 -0
- package/dist/models/SandboxAiUsageResponse.js +88 -0
- package/dist/models/SandboxEnvironment.d.ts +13 -1
- package/dist/models/SandboxEnvironment.js +4 -0
- package/dist/models/SetCredentialKeyRequest.d.ts +32 -0
- package/dist/models/SetCredentialKeyRequest.js +50 -0
- package/dist/models/SetCustomApiRequest.d.ts +38 -0
- package/dist/models/SetCustomApiRequest.js +54 -0
- package/dist/models/SetSandboxAiAccessRequest.d.ts +32 -0
- package/dist/models/SetSandboxAiAccessRequest.js +50 -0
- package/dist/models/UpdateAiProxyRequest.d.ts +32 -0
- package/dist/models/UpdateAiProxyRequest.js +50 -0
- package/dist/models/UpdateCredentialProfileRequest.d.ts +38 -0
- package/dist/models/UpdateCredentialProfileRequest.js +50 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.js +4 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/docs/AccountAiUsageResponse.md +48 -0
- package/docs/AiProxySettings.md +48 -0
- package/docs/AiProxySettingsAllOfPricing.md +34 -0
- package/docs/AiUsageRow.md +48 -0
- package/docs/AiUsageTotals.md +43 -0
- package/docs/BoatApi.md +1285 -234
- package/docs/CreateCredentialProfileRequest.md +36 -0
- package/docs/CredentialId.md +31 -0
- package/docs/CredentialProfile.md +49 -0
- package/docs/CredentialProfileDeletedResponse.md +36 -0
- package/docs/CredentialProfileListResponse.md +36 -0
- package/docs/CredentialProfileOwner.md +38 -0
- package/docs/CredentialProfileResponse.md +38 -0
- package/docs/SandboxAiAccessResponse.md +40 -0
- package/docs/SandboxAiUsage.md +42 -0
- package/docs/SandboxAiUsageResponse.md +50 -0
- package/docs/SandboxEnvironment.md +4 -0
- package/docs/SetCredentialKeyRequest.md +32 -0
- package/docs/SetCustomApiRequest.md +34 -0
- package/docs/SetSandboxAiAccessRequest.md +32 -0
- package/docs/UpdateAiProxyRequest.md +32 -0
- package/docs/UpdateCredentialProfileRequest.md +34 -0
- package/docs/UpdateSandboxEnvironmentRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +1013 -13
- package/src/models/AccountAiUsageResponse.ts +160 -0
- package/src/models/AiProxySettings.ts +146 -0
- package/src/models/AiProxySettingsAllOfPricing.ts +75 -0
- package/src/models/AiUsageRow.ts +138 -0
- package/src/models/AiUsageTotals.ts +111 -0
- package/src/models/CreateCredentialProfileRequest.ts +82 -0
- package/src/models/CredentialId.ts +64 -0
- package/src/models/CredentialProfile.ts +153 -0
- package/src/models/CredentialProfileDeletedResponse.ts +84 -0
- package/src/models/CredentialProfileListResponse.ts +92 -0
- package/src/models/CredentialProfileOwner.ts +104 -0
- package/src/models/CredentialProfileResponse.ts +101 -0
- package/src/models/ProcessListResponse.ts +1 -1
- package/src/models/SandboxAiAccessResponse.ts +102 -0
- package/src/models/SandboxAiUsage.ts +126 -0
- package/src/models/SandboxAiUsageResponse.ts +162 -0
- package/src/models/SandboxEnvironment.ts +17 -1
- package/src/models/SetCredentialKeyRequest.ts +66 -0
- package/src/models/SetCustomApiRequest.ts +75 -0
- package/src/models/SetSandboxAiAccessRequest.ts +66 -0
- package/src/models/UpdateAiProxyRequest.ts +66 -0
- package/src/models/UpdateCredentialProfileRequest.ts +73 -0
- package/src/models/UpdateSandboxEnvironmentRequest.ts +16 -0
- package/src/models/index.ts +20 -0
package/dist/apis/BoatApi.js
CHANGED
|
@@ -48,9 +48,11 @@ 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.CommandLogsEncodingEnum = exports.CommandLogsStreamEnum = exports.BoatApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const AccountAiUsageResponse_1 = require("../models/AccountAiUsageResponse");
|
|
51
52
|
const ActiveOrgResponse_1 = require("../models/ActiveOrgResponse");
|
|
52
53
|
const ActiveOrgUpdateRequest_1 = require("../models/ActiveOrgUpdateRequest");
|
|
53
54
|
const AddEnvironmentRepoRequest_1 = require("../models/AddEnvironmentRepoRequest");
|
|
55
|
+
const AiProxySettings_1 = require("../models/AiProxySettings");
|
|
54
56
|
const ApiKeyRevokeResponse_1 = require("../models/ApiKeyRevokeResponse");
|
|
55
57
|
const ApiKeySecretResponse_1 = require("../models/ApiKeySecretResponse");
|
|
56
58
|
const ApiKeyUsageResponse_1 = require("../models/ApiKeyUsageResponse");
|
|
@@ -64,10 +66,14 @@ const CommandRequest_1 = require("../models/CommandRequest");
|
|
|
64
66
|
const CommandStatusResponse_1 = require("../models/CommandStatusResponse");
|
|
65
67
|
const CommandStopResponse_1 = require("../models/CommandStopResponse");
|
|
66
68
|
const ConversationsResponse_1 = require("../models/ConversationsResponse");
|
|
69
|
+
const CreateCredentialProfileRequest_1 = require("../models/CreateCredentialProfileRequest");
|
|
67
70
|
const CreateSandboxEnvironmentRequest_1 = require("../models/CreateSandboxEnvironmentRequest");
|
|
68
71
|
const CreateSandboxRequest_1 = require("../models/CreateSandboxRequest");
|
|
69
72
|
const CreateSandboxResponse_1 = require("../models/CreateSandboxResponse");
|
|
70
73
|
const CreateScopedApiKeyRequest_1 = require("../models/CreateScopedApiKeyRequest");
|
|
74
|
+
const CredentialProfileDeletedResponse_1 = require("../models/CredentialProfileDeletedResponse");
|
|
75
|
+
const CredentialProfileListResponse_1 = require("../models/CredentialProfileListResponse");
|
|
76
|
+
const CredentialProfileResponse_1 = require("../models/CredentialProfileResponse");
|
|
71
77
|
const DataRetentionPolicyResponse_1 = require("../models/DataRetentionPolicyResponse");
|
|
72
78
|
const DataRetentionUpdateRequest_1 = require("../models/DataRetentionUpdateRequest");
|
|
73
79
|
const DeletionOperationListResponse_1 = require("../models/DeletionOperationListResponse");
|
|
@@ -105,6 +111,8 @@ const RepoSelectionResponse_1 = require("../models/RepoSelectionResponse");
|
|
|
105
111
|
const ReposResponse_1 = require("../models/ReposResponse");
|
|
106
112
|
const ResumeRequest_1 = require("../models/ResumeRequest");
|
|
107
113
|
const SandboxActionResponse_1 = require("../models/SandboxActionResponse");
|
|
114
|
+
const SandboxAiAccessResponse_1 = require("../models/SandboxAiAccessResponse");
|
|
115
|
+
const SandboxAiUsageResponse_1 = require("../models/SandboxAiUsageResponse");
|
|
108
116
|
const SandboxEnvironmentListResponse_1 = require("../models/SandboxEnvironmentListResponse");
|
|
109
117
|
const SandboxEnvironmentResponse_1 = require("../models/SandboxEnvironmentResponse");
|
|
110
118
|
const SandboxInfoResponse_1 = require("../models/SandboxInfoResponse");
|
|
@@ -112,8 +120,11 @@ const SandboxListResponse_1 = require("../models/SandboxListResponse");
|
|
|
112
120
|
const SandboxUsageResponse_1 = require("../models/SandboxUsageResponse");
|
|
113
121
|
const SecretsResponse_1 = require("../models/SecretsResponse");
|
|
114
122
|
const SecretsUpdateRequest_1 = require("../models/SecretsUpdateRequest");
|
|
123
|
+
const SetCredentialKeyRequest_1 = require("../models/SetCredentialKeyRequest");
|
|
124
|
+
const SetCustomApiRequest_1 = require("../models/SetCustomApiRequest");
|
|
115
125
|
const SetEnvironmentSecretFileRequest_1 = require("../models/SetEnvironmentSecretFileRequest");
|
|
116
126
|
const SetEnvironmentVarRequest_1 = require("../models/SetEnvironmentVarRequest");
|
|
127
|
+
const SetSandboxAiAccessRequest_1 = require("../models/SetSandboxAiAccessRequest");
|
|
117
128
|
const Share200Response_1 = require("../models/Share200Response");
|
|
118
129
|
const SnapshotDownloadResponse_1 = require("../models/SnapshotDownloadResponse");
|
|
119
130
|
const SnapshotLatestResponse_1 = require("../models/SnapshotLatestResponse");
|
|
@@ -128,6 +139,8 @@ const StopRequest_1 = require("../models/StopRequest");
|
|
|
128
139
|
const TelemetryResponse_1 = require("../models/TelemetryResponse");
|
|
129
140
|
const TelemetrySetRequest_1 = require("../models/TelemetrySetRequest");
|
|
130
141
|
const TelemetrySetResponse_1 = require("../models/TelemetrySetResponse");
|
|
142
|
+
const UpdateAiProxyRequest_1 = require("../models/UpdateAiProxyRequest");
|
|
143
|
+
const UpdateCredentialProfileRequest_1 = require("../models/UpdateCredentialProfileRequest");
|
|
131
144
|
const UpdateSandboxEnvironmentRequest_1 = require("../models/UpdateSandboxEnvironmentRequest");
|
|
132
145
|
const UpdateSandboxRequest_1 = require("../models/UpdateSandboxRequest");
|
|
133
146
|
const UpgradeSandboxEnvironmentRequest_1 = require("../models/UpgradeSandboxEnvironmentRequest");
|
|
@@ -146,7 +159,7 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
146
159
|
* Creates request options for addEnvironmentRepo without sending the request
|
|
147
160
|
*/
|
|
148
161
|
async addEnvironmentRepoRequestOpts(input) {
|
|
149
|
-
const requestParameters = runtime.unflattenBody(input, 'addEnvironmentRepoRequest', ['environmentId'], []);
|
|
162
|
+
const requestParameters = runtime.unflattenBody(input, 'addEnvironmentRepoRequest', ['environmentId', 'org'], []);
|
|
150
163
|
if (requestParameters['environmentId'] == null) {
|
|
151
164
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling addEnvironmentRepo().');
|
|
152
165
|
}
|
|
@@ -154,6 +167,9 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
154
167
|
throw new runtime.RequiredError('addEnvironmentRepoRequest', 'Required parameter "addEnvironmentRepoRequest" was null or undefined when calling addEnvironmentRepo().');
|
|
155
168
|
}
|
|
156
169
|
const queryParameters = {};
|
|
170
|
+
if (requestParameters['org'] != null) {
|
|
171
|
+
queryParameters['org'] = requestParameters['org'];
|
|
172
|
+
}
|
|
157
173
|
const headerParameters = {};
|
|
158
174
|
headerParameters['Content-Type'] = 'application/json';
|
|
159
175
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -677,6 +693,50 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
677
693
|
const response = await this.createRaw(requestParameters, initOverrides);
|
|
678
694
|
return await response.value();
|
|
679
695
|
}
|
|
696
|
+
/**
|
|
697
|
+
* Creates request options for createCredentialProfile without sending the request
|
|
698
|
+
*/
|
|
699
|
+
async createCredentialProfileRequestOpts(input) {
|
|
700
|
+
const requestParameters = runtime.unflattenBody(input, 'createCredentialProfileRequest', [], []);
|
|
701
|
+
if (requestParameters['createCredentialProfileRequest'] == null) {
|
|
702
|
+
throw new runtime.RequiredError('createCredentialProfileRequest', 'Required parameter "createCredentialProfileRequest" was null or undefined when calling createCredentialProfile().');
|
|
703
|
+
}
|
|
704
|
+
const queryParameters = {};
|
|
705
|
+
const headerParameters = {};
|
|
706
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
707
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
708
|
+
const token = this.configuration.accessToken;
|
|
709
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
710
|
+
if (tokenString) {
|
|
711
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
let urlPath = `/credential-profiles`;
|
|
715
|
+
return {
|
|
716
|
+
path: urlPath,
|
|
717
|
+
method: 'POST',
|
|
718
|
+
headers: headerParameters,
|
|
719
|
+
query: queryParameters,
|
|
720
|
+
body: (0, CreateCredentialProfileRequest_1.CreateCredentialProfileRequestToJSON)(requestParameters['createCredentialProfileRequest']),
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Creates an empty profile, or a copy of `copyFrom`. With `org`, the profile belongs to that organization and only its owners can create it. Needs an API key with `account.admin`.
|
|
725
|
+
* Create a credential profile
|
|
726
|
+
*/
|
|
727
|
+
async createCredentialProfileRaw(requestParameters, initOverrides) {
|
|
728
|
+
const requestOptions = await this.createCredentialProfileRequestOpts(requestParameters);
|
|
729
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
730
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialProfileResponse_1.CredentialProfileResponseFromJSON)(jsonValue));
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Creates an empty profile, or a copy of `copyFrom`. With `org`, the profile belongs to that organization and only its owners can create it. Needs an API key with `account.admin`.
|
|
734
|
+
* Create a credential profile
|
|
735
|
+
*/
|
|
736
|
+
async createCredentialProfile(requestParameters, initOverrides) {
|
|
737
|
+
const response = await this.createCredentialProfileRaw(requestParameters, initOverrides);
|
|
738
|
+
return await response.value();
|
|
739
|
+
}
|
|
680
740
|
/**
|
|
681
741
|
* Creates request options for createDownloadUrl without sending the request
|
|
682
742
|
*/
|
|
@@ -729,11 +789,14 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
729
789
|
* Creates request options for createEnvironment without sending the request
|
|
730
790
|
*/
|
|
731
791
|
async createEnvironmentRequestOpts(input) {
|
|
732
|
-
const requestParameters = runtime.unflattenBody(input, 'createSandboxEnvironmentRequest', [], []);
|
|
792
|
+
const requestParameters = runtime.unflattenBody(input, 'createSandboxEnvironmentRequest', ['org'], []);
|
|
733
793
|
if (requestParameters['createSandboxEnvironmentRequest'] == null) {
|
|
734
794
|
throw new runtime.RequiredError('createSandboxEnvironmentRequest', 'Required parameter "createSandboxEnvironmentRequest" was null or undefined when calling createEnvironment().');
|
|
735
795
|
}
|
|
736
796
|
const queryParameters = {};
|
|
797
|
+
if (requestParameters['org'] != null) {
|
|
798
|
+
queryParameters['org'] = requestParameters['org'];
|
|
799
|
+
}
|
|
737
800
|
const headerParameters = {};
|
|
738
801
|
headerParameters['Content-Type'] = 'application/json';
|
|
739
802
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -947,6 +1010,140 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
947
1010
|
const response = await this.createWebhookRaw(requestParameters, initOverrides);
|
|
948
1011
|
return await response.value();
|
|
949
1012
|
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Creates request options for deleteCredentialProfile without sending the request
|
|
1015
|
+
*/
|
|
1016
|
+
async deleteCredentialProfileRequestOpts(requestParameters) {
|
|
1017
|
+
if (requestParameters['profile'] == null) {
|
|
1018
|
+
throw new runtime.RequiredError('profile', 'Required parameter "profile" was null or undefined when calling deleteCredentialProfile().');
|
|
1019
|
+
}
|
|
1020
|
+
const queryParameters = {};
|
|
1021
|
+
const headerParameters = {};
|
|
1022
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1023
|
+
const token = this.configuration.accessToken;
|
|
1024
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1025
|
+
if (tokenString) {
|
|
1026
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
let urlPath = `/credential-profiles/{profile}`;
|
|
1030
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
1031
|
+
return {
|
|
1032
|
+
path: urlPath,
|
|
1033
|
+
method: 'DELETE',
|
|
1034
|
+
headers: headerParameters,
|
|
1035
|
+
query: queryParameters,
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* Deletes the profile. A default profile returns `409 is_default`. A profile that an environment names returns `409 in_use`. Needs an API key with `account.admin`.
|
|
1040
|
+
* Delete a credential profile
|
|
1041
|
+
*/
|
|
1042
|
+
async deleteCredentialProfileRaw(requestParameters, initOverrides) {
|
|
1043
|
+
const requestOptions = await this.deleteCredentialProfileRequestOpts(requestParameters);
|
|
1044
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1045
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialProfileDeletedResponse_1.CredentialProfileDeletedResponseFromJSON)(jsonValue));
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Deletes the profile. A default profile returns `409 is_default`. A profile that an environment names returns `409 in_use`. Needs an API key with `account.admin`.
|
|
1049
|
+
* Delete a credential profile
|
|
1050
|
+
*/
|
|
1051
|
+
async deleteCredentialProfile(requestParameters, initOverrides) {
|
|
1052
|
+
const response = await this.deleteCredentialProfileRaw(requestParameters, initOverrides);
|
|
1053
|
+
return await response.value();
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Creates request options for deleteCredentialProfileCustomApi without sending the request
|
|
1057
|
+
*/
|
|
1058
|
+
async deleteCredentialProfileCustomApiRequestOpts(requestParameters) {
|
|
1059
|
+
if (requestParameters['profile'] == null) {
|
|
1060
|
+
throw new runtime.RequiredError('profile', 'Required parameter "profile" was null or undefined when calling deleteCredentialProfileCustomApi().');
|
|
1061
|
+
}
|
|
1062
|
+
if (requestParameters['name'] == null) {
|
|
1063
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteCredentialProfileCustomApi().');
|
|
1064
|
+
}
|
|
1065
|
+
const queryParameters = {};
|
|
1066
|
+
const headerParameters = {};
|
|
1067
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1068
|
+
const token = this.configuration.accessToken;
|
|
1069
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1070
|
+
if (tokenString) {
|
|
1071
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
let urlPath = `/credential-profiles/{profile}/custom-apis/{name}`;
|
|
1075
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
1076
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1077
|
+
return {
|
|
1078
|
+
path: urlPath,
|
|
1079
|
+
method: 'DELETE',
|
|
1080
|
+
headers: headerParameters,
|
|
1081
|
+
query: queryParameters,
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Removes one custom API from the profile. Needs an API key with `account.admin`.
|
|
1086
|
+
* Remove a custom API
|
|
1087
|
+
*/
|
|
1088
|
+
async deleteCredentialProfileCustomApiRaw(requestParameters, initOverrides) {
|
|
1089
|
+
const requestOptions = await this.deleteCredentialProfileCustomApiRequestOpts(requestParameters);
|
|
1090
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1091
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialProfileResponse_1.CredentialProfileResponseFromJSON)(jsonValue));
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Removes one custom API from the profile. Needs an API key with `account.admin`.
|
|
1095
|
+
* Remove a custom API
|
|
1096
|
+
*/
|
|
1097
|
+
async deleteCredentialProfileCustomApi(requestParameters, initOverrides) {
|
|
1098
|
+
const response = await this.deleteCredentialProfileCustomApiRaw(requestParameters, initOverrides);
|
|
1099
|
+
return await response.value();
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* Creates request options for deleteCredentialProfileKey without sending the request
|
|
1103
|
+
*/
|
|
1104
|
+
async deleteCredentialProfileKeyRequestOpts(requestParameters) {
|
|
1105
|
+
if (requestParameters['profile'] == null) {
|
|
1106
|
+
throw new runtime.RequiredError('profile', 'Required parameter "profile" was null or undefined when calling deleteCredentialProfileKey().');
|
|
1107
|
+
}
|
|
1108
|
+
if (requestParameters['credential'] == null) {
|
|
1109
|
+
throw new runtime.RequiredError('credential', 'Required parameter "credential" was null or undefined when calling deleteCredentialProfileKey().');
|
|
1110
|
+
}
|
|
1111
|
+
const queryParameters = {};
|
|
1112
|
+
const headerParameters = {};
|
|
1113
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1114
|
+
const token = this.configuration.accessToken;
|
|
1115
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1116
|
+
if (tokenString) {
|
|
1117
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
let urlPath = `/credential-profiles/{profile}/keys/{credential}`;
|
|
1121
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
1122
|
+
urlPath = urlPath.replace('{credential}', encodeURIComponent(String(requestParameters['credential'])));
|
|
1123
|
+
return {
|
|
1124
|
+
path: urlPath,
|
|
1125
|
+
method: 'DELETE',
|
|
1126
|
+
headers: headerParameters,
|
|
1127
|
+
query: queryParameters,
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
* Removes one credential, an API key or a sign-in. Needs an API key with `account.admin`.
|
|
1132
|
+
* Remove a credential profile credential
|
|
1133
|
+
*/
|
|
1134
|
+
async deleteCredentialProfileKeyRaw(requestParameters, initOverrides) {
|
|
1135
|
+
const requestOptions = await this.deleteCredentialProfileKeyRequestOpts(requestParameters);
|
|
1136
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialProfileResponse_1.CredentialProfileResponseFromJSON)(jsonValue));
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Removes one credential, an API key or a sign-in. Needs an API key with `account.admin`.
|
|
1141
|
+
* Remove a credential profile credential
|
|
1142
|
+
*/
|
|
1143
|
+
async deleteCredentialProfileKey(requestParameters, initOverrides) {
|
|
1144
|
+
const response = await this.deleteCredentialProfileKeyRaw(requestParameters, initOverrides);
|
|
1145
|
+
return await response.value();
|
|
1146
|
+
}
|
|
950
1147
|
/**
|
|
951
1148
|
* Creates request options for deleteEnvironment without sending the request
|
|
952
1149
|
*/
|
|
@@ -955,6 +1152,9 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
955
1152
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling deleteEnvironment().');
|
|
956
1153
|
}
|
|
957
1154
|
const queryParameters = {};
|
|
1155
|
+
if (requestParameters['org'] != null) {
|
|
1156
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1157
|
+
}
|
|
958
1158
|
const headerParameters = {};
|
|
959
1159
|
if (this.configuration && this.configuration.accessToken) {
|
|
960
1160
|
const token = this.configuration.accessToken;
|
|
@@ -1000,6 +1200,9 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1000
1200
|
throw new runtime.RequiredError('repositoryId', 'Required parameter "repositoryId" was null or undefined when calling deleteEnvironmentRepo().');
|
|
1001
1201
|
}
|
|
1002
1202
|
const queryParameters = {};
|
|
1203
|
+
if (requestParameters['org'] != null) {
|
|
1204
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1205
|
+
}
|
|
1003
1206
|
const headerParameters = {};
|
|
1004
1207
|
if (this.configuration && this.configuration.accessToken) {
|
|
1005
1208
|
const token = this.configuration.accessToken;
|
|
@@ -1049,6 +1252,9 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1049
1252
|
if (requestParameters['path'] != null) {
|
|
1050
1253
|
queryParameters['path'] = requestParameters['path'];
|
|
1051
1254
|
}
|
|
1255
|
+
if (requestParameters['org'] != null) {
|
|
1256
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1257
|
+
}
|
|
1052
1258
|
const headerParameters = {};
|
|
1053
1259
|
if (this.configuration && this.configuration.accessToken) {
|
|
1054
1260
|
const token = this.configuration.accessToken;
|
|
@@ -1094,6 +1300,9 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1094
1300
|
throw new runtime.RequiredError('key', 'Required parameter "key" was null or undefined when calling deleteEnvironmentVar().');
|
|
1095
1301
|
}
|
|
1096
1302
|
const queryParameters = {};
|
|
1303
|
+
if (requestParameters['org'] != null) {
|
|
1304
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1305
|
+
}
|
|
1097
1306
|
const headerParameters = {};
|
|
1098
1307
|
if (this.configuration && this.configuration.accessToken) {
|
|
1099
1308
|
const token = this.configuration.accessToken;
|
|
@@ -1449,8 +1658,11 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1449
1658
|
/**
|
|
1450
1659
|
* Creates request options for environments without sending the request
|
|
1451
1660
|
*/
|
|
1452
|
-
async environmentsRequestOpts() {
|
|
1661
|
+
async environmentsRequestOpts(requestParameters) {
|
|
1453
1662
|
const queryParameters = {};
|
|
1663
|
+
if (requestParameters['org'] != null) {
|
|
1664
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1665
|
+
}
|
|
1454
1666
|
const headerParameters = {};
|
|
1455
1667
|
if (this.configuration && this.configuration.accessToken) {
|
|
1456
1668
|
const token = this.configuration.accessToken;
|
|
@@ -1471,8 +1683,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1471
1683
|
* 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.
|
|
1472
1684
|
* List Sandbox environments
|
|
1473
1685
|
*/
|
|
1474
|
-
async environmentsRaw(initOverrides) {
|
|
1475
|
-
const requestOptions = await this.environmentsRequestOpts();
|
|
1686
|
+
async environmentsRaw(requestParameters, initOverrides) {
|
|
1687
|
+
const requestOptions = await this.environmentsRequestOpts(requestParameters);
|
|
1476
1688
|
const response = await this.request(requestOptions, initOverrides);
|
|
1477
1689
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxEnvironmentListResponse_1.SandboxEnvironmentListResponseFromJSON)(jsonValue));
|
|
1478
1690
|
}
|
|
@@ -1480,8 +1692,8 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1480
1692
|
* 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.
|
|
1481
1693
|
* List Sandbox environments
|
|
1482
1694
|
*/
|
|
1483
|
-
async environments(initOverrides) {
|
|
1484
|
-
const response = await this.environmentsRaw(initOverrides);
|
|
1695
|
+
async environments(requestParameters = {}, initOverrides) {
|
|
1696
|
+
const response = await this.environmentsRaw(requestParameters, initOverrides);
|
|
1485
1697
|
return await response.value();
|
|
1486
1698
|
}
|
|
1487
1699
|
/**
|
|
@@ -1631,6 +1843,100 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1631
1843
|
const response = await this.getRaw(requestParameters, initOverrides);
|
|
1632
1844
|
return await response.value();
|
|
1633
1845
|
}
|
|
1846
|
+
/**
|
|
1847
|
+
* Creates request options for getAiProxy without sending the request
|
|
1848
|
+
*/
|
|
1849
|
+
async getAiProxyRequestOpts(requestParameters) {
|
|
1850
|
+
const queryParameters = {};
|
|
1851
|
+
if (requestParameters['org'] != null) {
|
|
1852
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1853
|
+
}
|
|
1854
|
+
const headerParameters = {};
|
|
1855
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
1856
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
1857
|
+
}
|
|
1858
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1859
|
+
const token = this.configuration.accessToken;
|
|
1860
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1861
|
+
if (tokenString) {
|
|
1862
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
let urlPath = `/ai-proxy`;
|
|
1866
|
+
return {
|
|
1867
|
+
path: urlPath,
|
|
1868
|
+
method: 'GET',
|
|
1869
|
+
headers: headerParameters,
|
|
1870
|
+
query: queryParameters,
|
|
1871
|
+
};
|
|
1872
|
+
}
|
|
1873
|
+
/**
|
|
1874
|
+
* Returns the AI credentials proxy switch of the account in scope, a person or an organization, with its price. Needs an API key with `account.admin`.
|
|
1875
|
+
* Get AI credentials proxy
|
|
1876
|
+
*/
|
|
1877
|
+
async getAiProxyRaw(requestParameters, initOverrides) {
|
|
1878
|
+
const requestOptions = await this.getAiProxyRequestOpts(requestParameters);
|
|
1879
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1880
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AiProxySettings_1.AiProxySettingsFromJSON)(jsonValue));
|
|
1881
|
+
}
|
|
1882
|
+
/**
|
|
1883
|
+
* Returns the AI credentials proxy switch of the account in scope, a person or an organization, with its price. Needs an API key with `account.admin`.
|
|
1884
|
+
* Get AI credentials proxy
|
|
1885
|
+
*/
|
|
1886
|
+
async getAiProxy(requestParameters = {}, initOverrides) {
|
|
1887
|
+
const response = await this.getAiProxyRaw(requestParameters, initOverrides);
|
|
1888
|
+
return await response.value();
|
|
1889
|
+
}
|
|
1890
|
+
/**
|
|
1891
|
+
* Creates request options for getAiUsage without sending the request
|
|
1892
|
+
*/
|
|
1893
|
+
async getAiUsageRequestOpts(requestParameters) {
|
|
1894
|
+
const queryParameters = {};
|
|
1895
|
+
if (requestParameters['days'] != null) {
|
|
1896
|
+
queryParameters['days'] = requestParameters['days'];
|
|
1897
|
+
}
|
|
1898
|
+
if (requestParameters['profile'] != null) {
|
|
1899
|
+
queryParameters['profile'] = requestParameters['profile'];
|
|
1900
|
+
}
|
|
1901
|
+
if (requestParameters['org'] != null) {
|
|
1902
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1903
|
+
}
|
|
1904
|
+
const headerParameters = {};
|
|
1905
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
1906
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
1907
|
+
}
|
|
1908
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1909
|
+
const token = this.configuration.accessToken;
|
|
1910
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1911
|
+
if (tokenString) {
|
|
1912
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
let urlPath = `/ai-usage`;
|
|
1916
|
+
return {
|
|
1917
|
+
path: urlPath,
|
|
1918
|
+
method: 'GET',
|
|
1919
|
+
headers: headerParameters,
|
|
1920
|
+
query: queryParameters,
|
|
1921
|
+
};
|
|
1922
|
+
}
|
|
1923
|
+
/**
|
|
1924
|
+
* Proxied AI usage, per sandbox and in total, per UTC day, credential and model. Without `profile`, the usage charged to the wallet in scope. With `profile`, the requests made with that profile\'s credentials, whoever pays; only its managers can read it. Needs an API key with `account.read`.
|
|
1925
|
+
* Get AI usage
|
|
1926
|
+
*/
|
|
1927
|
+
async getAiUsageRaw(requestParameters, initOverrides) {
|
|
1928
|
+
const requestOptions = await this.getAiUsageRequestOpts(requestParameters);
|
|
1929
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1930
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AccountAiUsageResponse_1.AccountAiUsageResponseFromJSON)(jsonValue));
|
|
1931
|
+
}
|
|
1932
|
+
/**
|
|
1933
|
+
* Proxied AI usage, per sandbox and in total, per UTC day, credential and model. Without `profile`, the usage charged to the wallet in scope. With `profile`, the requests made with that profile\'s credentials, whoever pays; only its managers can read it. Needs an API key with `account.read`.
|
|
1934
|
+
* Get AI usage
|
|
1935
|
+
*/
|
|
1936
|
+
async getAiUsage(requestParameters = {}, initOverrides) {
|
|
1937
|
+
const response = await this.getAiUsageRaw(requestParameters, initOverrides);
|
|
1938
|
+
return await response.value();
|
|
1939
|
+
}
|
|
1634
1940
|
/**
|
|
1635
1941
|
* Creates request options for getCommand without sending the request
|
|
1636
1942
|
*/
|
|
@@ -1837,6 +2143,51 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1837
2143
|
const response = await this.getNamedSnapshotRaw(requestParameters, initOverrides);
|
|
1838
2144
|
return await response.value();
|
|
1839
2145
|
}
|
|
2146
|
+
/**
|
|
2147
|
+
* Creates request options for getSandboxAiUsage without sending the request
|
|
2148
|
+
*/
|
|
2149
|
+
async getSandboxAiUsageRequestOpts(requestParameters) {
|
|
2150
|
+
if (requestParameters['sandboxId'] == null) {
|
|
2151
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling getSandboxAiUsage().');
|
|
2152
|
+
}
|
|
2153
|
+
const queryParameters = {};
|
|
2154
|
+
if (requestParameters['days'] != null) {
|
|
2155
|
+
queryParameters['days'] = requestParameters['days'];
|
|
2156
|
+
}
|
|
2157
|
+
const headerParameters = {};
|
|
2158
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2159
|
+
const token = this.configuration.accessToken;
|
|
2160
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2161
|
+
if (tokenString) {
|
|
2162
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
let urlPath = `/sandboxes/{sandboxId}/ai-usage`;
|
|
2166
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
2167
|
+
return {
|
|
2168
|
+
path: urlPath,
|
|
2169
|
+
method: 'GET',
|
|
2170
|
+
headers: headerParameters,
|
|
2171
|
+
query: queryParameters,
|
|
2172
|
+
};
|
|
2173
|
+
}
|
|
2174
|
+
/**
|
|
2175
|
+
* One sandbox\'s proxied AI usage per UTC day, credential and model, and whether it is blocked. Needs an API key with `box.read` on the sandbox.
|
|
2176
|
+
* Get sandbox AI usage
|
|
2177
|
+
*/
|
|
2178
|
+
async getSandboxAiUsageRaw(requestParameters, initOverrides) {
|
|
2179
|
+
const requestOptions = await this.getSandboxAiUsageRequestOpts(requestParameters);
|
|
2180
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2181
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxAiUsageResponse_1.SandboxAiUsageResponseFromJSON)(jsonValue));
|
|
2182
|
+
}
|
|
2183
|
+
/**
|
|
2184
|
+
* One sandbox\'s proxied AI usage per UTC day, credential and model, and whether it is blocked. Needs an API key with `box.read` on the sandbox.
|
|
2185
|
+
* Get sandbox AI usage
|
|
2186
|
+
*/
|
|
2187
|
+
async getSandboxAiUsage(requestParameters, initOverrides) {
|
|
2188
|
+
const response = await this.getSandboxAiUsageRaw(requestParameters, initOverrides);
|
|
2189
|
+
return await response.value();
|
|
2190
|
+
}
|
|
1840
2191
|
/**
|
|
1841
2192
|
* Creates request options for getSnapshotDownload without sending the request
|
|
1842
2193
|
*/
|
|
@@ -2232,6 +2583,44 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2232
2583
|
const response = await this.limitsRaw(requestParameters, initOverrides);
|
|
2233
2584
|
return await response.value();
|
|
2234
2585
|
}
|
|
2586
|
+
/**
|
|
2587
|
+
* Creates request options for listCredentialProfiles without sending the request
|
|
2588
|
+
*/
|
|
2589
|
+
async listCredentialProfilesRequestOpts() {
|
|
2590
|
+
const queryParameters = {};
|
|
2591
|
+
const headerParameters = {};
|
|
2592
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2593
|
+
const token = this.configuration.accessToken;
|
|
2594
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2595
|
+
if (tokenString) {
|
|
2596
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
let urlPath = `/credential-profiles`;
|
|
2600
|
+
return {
|
|
2601
|
+
path: urlPath,
|
|
2602
|
+
method: 'GET',
|
|
2603
|
+
headers: headerParameters,
|
|
2604
|
+
query: queryParameters,
|
|
2605
|
+
};
|
|
2606
|
+
}
|
|
2607
|
+
/**
|
|
2608
|
+
* Returns every AI credential profile you can use, yours and your organizations\'. Secret values are never returned. Needs an API key with `account.admin`.
|
|
2609
|
+
* List credential profiles
|
|
2610
|
+
*/
|
|
2611
|
+
async listCredentialProfilesRaw(initOverrides) {
|
|
2612
|
+
const requestOptions = await this.listCredentialProfilesRequestOpts();
|
|
2613
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2614
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialProfileListResponse_1.CredentialProfileListResponseFromJSON)(jsonValue));
|
|
2615
|
+
}
|
|
2616
|
+
/**
|
|
2617
|
+
* Returns every AI credential profile you can use, yours and your organizations\'. Secret values are never returned. Needs an API key with `account.admin`.
|
|
2618
|
+
* List credential profiles
|
|
2619
|
+
*/
|
|
2620
|
+
async listCredentialProfiles(initOverrides) {
|
|
2621
|
+
const response = await this.listCredentialProfilesRaw(initOverrides);
|
|
2622
|
+
return await response.value();
|
|
2623
|
+
}
|
|
2235
2624
|
/**
|
|
2236
2625
|
* Creates request options for listNamedSnapshots without sending the request
|
|
2237
2626
|
*/
|
|
@@ -3250,11 +3639,115 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
3250
3639
|
const response = await this.setActiveOrganizationRaw(requestParameters, initOverrides);
|
|
3251
3640
|
return await response.value();
|
|
3252
3641
|
}
|
|
3642
|
+
/**
|
|
3643
|
+
* Creates request options for setCredentialProfileCustomApi without sending the request
|
|
3644
|
+
*/
|
|
3645
|
+
async setCredentialProfileCustomApiRequestOpts(input) {
|
|
3646
|
+
const requestParameters = runtime.unflattenBody(input, 'setCustomApiRequest', ['profile', 'name'], []);
|
|
3647
|
+
if (requestParameters['profile'] == null) {
|
|
3648
|
+
throw new runtime.RequiredError('profile', 'Required parameter "profile" was null or undefined when calling setCredentialProfileCustomApi().');
|
|
3649
|
+
}
|
|
3650
|
+
if (requestParameters['name'] == null) {
|
|
3651
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling setCredentialProfileCustomApi().');
|
|
3652
|
+
}
|
|
3653
|
+
if (requestParameters['setCustomApiRequest'] == null) {
|
|
3654
|
+
throw new runtime.RequiredError('setCustomApiRequest', 'Required parameter "setCustomApiRequest" was null or undefined when calling setCredentialProfileCustomApi().');
|
|
3655
|
+
}
|
|
3656
|
+
const queryParameters = {};
|
|
3657
|
+
const headerParameters = {};
|
|
3658
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3659
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3660
|
+
const token = this.configuration.accessToken;
|
|
3661
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3662
|
+
if (tokenString) {
|
|
3663
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3664
|
+
}
|
|
3665
|
+
}
|
|
3666
|
+
let urlPath = `/credential-profiles/{profile}/custom-apis/{name}`;
|
|
3667
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
3668
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
3669
|
+
return {
|
|
3670
|
+
path: urlPath,
|
|
3671
|
+
method: 'PUT',
|
|
3672
|
+
headers: headerParameters,
|
|
3673
|
+
query: queryParameters,
|
|
3674
|
+
body: (0, SetCustomApiRequest_1.SetCustomApiRequestToJSON)(requestParameters['setCustomApiRequest']),
|
|
3675
|
+
};
|
|
3676
|
+
}
|
|
3677
|
+
/**
|
|
3678
|
+
* Adds or replaces one custom API. The sandbox gets `<NAME>` and `<NAME>_BASE_URL`. Needs an API key with `account.admin`.
|
|
3679
|
+
* Set a custom API
|
|
3680
|
+
*/
|
|
3681
|
+
async setCredentialProfileCustomApiRaw(requestParameters, initOverrides) {
|
|
3682
|
+
const requestOptions = await this.setCredentialProfileCustomApiRequestOpts(requestParameters);
|
|
3683
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3684
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialProfileResponse_1.CredentialProfileResponseFromJSON)(jsonValue));
|
|
3685
|
+
}
|
|
3686
|
+
/**
|
|
3687
|
+
* Adds or replaces one custom API. The sandbox gets `<NAME>` and `<NAME>_BASE_URL`. Needs an API key with `account.admin`.
|
|
3688
|
+
* Set a custom API
|
|
3689
|
+
*/
|
|
3690
|
+
async setCredentialProfileCustomApi(requestParameters, initOverrides) {
|
|
3691
|
+
const response = await this.setCredentialProfileCustomApiRaw(requestParameters, initOverrides);
|
|
3692
|
+
return await response.value();
|
|
3693
|
+
}
|
|
3694
|
+
/**
|
|
3695
|
+
* Creates request options for setCredentialProfileKey without sending the request
|
|
3696
|
+
*/
|
|
3697
|
+
async setCredentialProfileKeyRequestOpts(input) {
|
|
3698
|
+
const requestParameters = runtime.unflattenBody(input, 'setCredentialKeyRequest', ['profile', 'credential'], []);
|
|
3699
|
+
if (requestParameters['profile'] == null) {
|
|
3700
|
+
throw new runtime.RequiredError('profile', 'Required parameter "profile" was null or undefined when calling setCredentialProfileKey().');
|
|
3701
|
+
}
|
|
3702
|
+
if (requestParameters['credential'] == null) {
|
|
3703
|
+
throw new runtime.RequiredError('credential', 'Required parameter "credential" was null or undefined when calling setCredentialProfileKey().');
|
|
3704
|
+
}
|
|
3705
|
+
if (requestParameters['setCredentialKeyRequest'] == null) {
|
|
3706
|
+
throw new runtime.RequiredError('setCredentialKeyRequest', 'Required parameter "setCredentialKeyRequest" was null or undefined when calling setCredentialProfileKey().');
|
|
3707
|
+
}
|
|
3708
|
+
const queryParameters = {};
|
|
3709
|
+
const headerParameters = {};
|
|
3710
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3711
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3712
|
+
const token = this.configuration.accessToken;
|
|
3713
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3714
|
+
if (tokenString) {
|
|
3715
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3716
|
+
}
|
|
3717
|
+
}
|
|
3718
|
+
let urlPath = `/credential-profiles/{profile}/keys/{credential}`;
|
|
3719
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
3720
|
+
urlPath = urlPath.replace('{credential}', encodeURIComponent(String(requestParameters['credential'])));
|
|
3721
|
+
return {
|
|
3722
|
+
path: urlPath,
|
|
3723
|
+
method: 'PUT',
|
|
3724
|
+
headers: headerParameters,
|
|
3725
|
+
query: queryParameters,
|
|
3726
|
+
body: (0, SetCredentialKeyRequest_1.SetCredentialKeyRequestToJSON)(requestParameters['setCredentialKeyRequest']),
|
|
3727
|
+
};
|
|
3728
|
+
}
|
|
3729
|
+
/**
|
|
3730
|
+
* Sets one API key. A sign-in id returns `400 not_an_api_key`; connect sign-ins on the dashboard Agents page. Running sandboxes that use the profile get the new key. Needs an API key with `account.admin`.
|
|
3731
|
+
* Set a credential profile API key
|
|
3732
|
+
*/
|
|
3733
|
+
async setCredentialProfileKeyRaw(requestParameters, initOverrides) {
|
|
3734
|
+
const requestOptions = await this.setCredentialProfileKeyRequestOpts(requestParameters);
|
|
3735
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3736
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialProfileResponse_1.CredentialProfileResponseFromJSON)(jsonValue));
|
|
3737
|
+
}
|
|
3738
|
+
/**
|
|
3739
|
+
* Sets one API key. A sign-in id returns `400 not_an_api_key`; connect sign-ins on the dashboard Agents page. Running sandboxes that use the profile get the new key. Needs an API key with `account.admin`.
|
|
3740
|
+
* Set a credential profile API key
|
|
3741
|
+
*/
|
|
3742
|
+
async setCredentialProfileKey(requestParameters, initOverrides) {
|
|
3743
|
+
const response = await this.setCredentialProfileKeyRaw(requestParameters, initOverrides);
|
|
3744
|
+
return await response.value();
|
|
3745
|
+
}
|
|
3253
3746
|
/**
|
|
3254
3747
|
* Creates request options for setEnvironmentSecretFile without sending the request
|
|
3255
3748
|
*/
|
|
3256
3749
|
async setEnvironmentSecretFileRequestOpts(input) {
|
|
3257
|
-
const requestParameters = runtime.unflattenBody(input, 'setEnvironmentSecretFileRequest', ['environmentId'], []);
|
|
3750
|
+
const requestParameters = runtime.unflattenBody(input, 'setEnvironmentSecretFileRequest', ['environmentId', 'org'], []);
|
|
3258
3751
|
if (requestParameters['environmentId'] == null) {
|
|
3259
3752
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling setEnvironmentSecretFile().');
|
|
3260
3753
|
}
|
|
@@ -3262,6 +3755,9 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
3262
3755
|
throw new runtime.RequiredError('setEnvironmentSecretFileRequest', 'Required parameter "setEnvironmentSecretFileRequest" was null or undefined when calling setEnvironmentSecretFile().');
|
|
3263
3756
|
}
|
|
3264
3757
|
const queryParameters = {};
|
|
3758
|
+
if (requestParameters['org'] != null) {
|
|
3759
|
+
queryParameters['org'] = requestParameters['org'];
|
|
3760
|
+
}
|
|
3265
3761
|
const headerParameters = {};
|
|
3266
3762
|
headerParameters['Content-Type'] = 'application/json';
|
|
3267
3763
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -3302,7 +3798,7 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
3302
3798
|
* Creates request options for setEnvironmentVar without sending the request
|
|
3303
3799
|
*/
|
|
3304
3800
|
async setEnvironmentVarRequestOpts(input) {
|
|
3305
|
-
const requestParameters = runtime.unflattenBody(input, 'setEnvironmentVarRequest', ['environmentId', 'key'], []);
|
|
3801
|
+
const requestParameters = runtime.unflattenBody(input, 'setEnvironmentVarRequest', ['environmentId', 'key', 'org'], []);
|
|
3306
3802
|
if (requestParameters['environmentId'] == null) {
|
|
3307
3803
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling setEnvironmentVar().');
|
|
3308
3804
|
}
|
|
@@ -3313,6 +3809,9 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
3313
3809
|
throw new runtime.RequiredError('setEnvironmentVarRequest', 'Required parameter "setEnvironmentVarRequest" was null or undefined when calling setEnvironmentVar().');
|
|
3314
3810
|
}
|
|
3315
3811
|
const queryParameters = {};
|
|
3812
|
+
if (requestParameters['org'] != null) {
|
|
3813
|
+
queryParameters['org'] = requestParameters['org'];
|
|
3814
|
+
}
|
|
3316
3815
|
const headerParameters = {};
|
|
3317
3816
|
headerParameters['Content-Type'] = 'application/json';
|
|
3318
3817
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -3350,6 +3849,54 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
3350
3849
|
const response = await this.setEnvironmentVarRaw(requestParameters, initOverrides);
|
|
3351
3850
|
return await response.value();
|
|
3352
3851
|
}
|
|
3852
|
+
/**
|
|
3853
|
+
* Creates request options for setSandboxAiAccess without sending the request
|
|
3854
|
+
*/
|
|
3855
|
+
async setSandboxAiAccessRequestOpts(input) {
|
|
3856
|
+
const requestParameters = runtime.unflattenBody(input, 'setSandboxAiAccessRequest', ['sandboxId'], []);
|
|
3857
|
+
if (requestParameters['sandboxId'] == null) {
|
|
3858
|
+
throw new runtime.RequiredError('sandboxId', 'Required parameter "sandboxId" was null or undefined when calling setSandboxAiAccess().');
|
|
3859
|
+
}
|
|
3860
|
+
if (requestParameters['setSandboxAiAccessRequest'] == null) {
|
|
3861
|
+
throw new runtime.RequiredError('setSandboxAiAccessRequest', 'Required parameter "setSandboxAiAccessRequest" was null or undefined when calling setSandboxAiAccess().');
|
|
3862
|
+
}
|
|
3863
|
+
const queryParameters = {};
|
|
3864
|
+
const headerParameters = {};
|
|
3865
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3866
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3867
|
+
const token = this.configuration.accessToken;
|
|
3868
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3869
|
+
if (tokenString) {
|
|
3870
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3873
|
+
let urlPath = `/sandboxes/{sandboxId}/ai-access`;
|
|
3874
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
3875
|
+
return {
|
|
3876
|
+
path: urlPath,
|
|
3877
|
+
method: 'PUT',
|
|
3878
|
+
headers: headerParameters,
|
|
3879
|
+
query: queryParameters,
|
|
3880
|
+
body: (0, SetSandboxAiAccessRequest_1.SetSandboxAiAccessRequestToJSON)(requestParameters['setSandboxAiAccessRequest']),
|
|
3881
|
+
};
|
|
3882
|
+
}
|
|
3883
|
+
/**
|
|
3884
|
+
* Blocks or unblocks the sandbox\'s AI placeholders, running or stopped. The proxy refuses a blocked sandbox\'s requests with `403`. It has no effect on a sandbox that holds real keys. The sandbox creator, or a manager of its credential profile, can call it. Needs an API key with `account.admin`.
|
|
3885
|
+
* Block or unblock sandbox AI access
|
|
3886
|
+
*/
|
|
3887
|
+
async setSandboxAiAccessRaw(requestParameters, initOverrides) {
|
|
3888
|
+
const requestOptions = await this.setSandboxAiAccessRequestOpts(requestParameters);
|
|
3889
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3890
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, SandboxAiAccessResponse_1.SandboxAiAccessResponseFromJSON)(jsonValue));
|
|
3891
|
+
}
|
|
3892
|
+
/**
|
|
3893
|
+
* Blocks or unblocks the sandbox\'s AI placeholders, running or stopped. The proxy refuses a blocked sandbox\'s requests with `403`. It has no effect on a sandbox that holds real keys. The sandbox creator, or a manager of its credential profile, can call it. Needs an API key with `account.admin`.
|
|
3894
|
+
* Block or unblock sandbox AI access
|
|
3895
|
+
*/
|
|
3896
|
+
async setSandboxAiAccess(requestParameters, initOverrides) {
|
|
3897
|
+
const response = await this.setSandboxAiAccessRaw(requestParameters, initOverrides);
|
|
3898
|
+
return await response.value();
|
|
3899
|
+
}
|
|
3353
3900
|
/**
|
|
3354
3901
|
* Creates request options for setTelemetry without sending the request
|
|
3355
3902
|
*/
|
|
@@ -3672,6 +4219,104 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
3672
4219
|
const response = await this.updateRaw(requestParameters, initOverrides);
|
|
3673
4220
|
return await response.value();
|
|
3674
4221
|
}
|
|
4222
|
+
/**
|
|
4223
|
+
* Creates request options for updateAiProxy without sending the request
|
|
4224
|
+
*/
|
|
4225
|
+
async updateAiProxyRequestOpts(input) {
|
|
4226
|
+
const requestParameters = runtime.unflattenBody(input, 'updateAiProxyRequest', ['org', 'xBoatOrg'], []);
|
|
4227
|
+
if (requestParameters['updateAiProxyRequest'] == null) {
|
|
4228
|
+
throw new runtime.RequiredError('updateAiProxyRequest', 'Required parameter "updateAiProxyRequest" was null or undefined when calling updateAiProxy().');
|
|
4229
|
+
}
|
|
4230
|
+
const queryParameters = {};
|
|
4231
|
+
if (requestParameters['org'] != null) {
|
|
4232
|
+
queryParameters['org'] = requestParameters['org'];
|
|
4233
|
+
}
|
|
4234
|
+
const headerParameters = {};
|
|
4235
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4236
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
4237
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
4238
|
+
}
|
|
4239
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4240
|
+
const token = this.configuration.accessToken;
|
|
4241
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
4242
|
+
if (tokenString) {
|
|
4243
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4246
|
+
let urlPath = `/ai-proxy`;
|
|
4247
|
+
return {
|
|
4248
|
+
path: urlPath,
|
|
4249
|
+
method: 'PUT',
|
|
4250
|
+
headers: headerParameters,
|
|
4251
|
+
query: queryParameters,
|
|
4252
|
+
body: (0, UpdateAiProxyRequest_1.UpdateAiProxyRequestToJSON)(requestParameters['updateAiProxyRequest']),
|
|
4253
|
+
};
|
|
4254
|
+
}
|
|
4255
|
+
/**
|
|
4256
|
+
* With the proxy on, sandboxes get placeholder keys and base URLs that point at Boat. Boat swaps in the real key on each request. Real keys never enter the sandbox. Running sandboxes switch at their next start. While on, the account pays $1 of Boat time for each UTC day, plus $1 per 1,000 proxied requests, charged to the wallet each sandbox bills. For an organization, only its owner can change the switch. Needs an API key with `account.admin`.
|
|
4257
|
+
* Turn the AI credentials proxy on or off
|
|
4258
|
+
*/
|
|
4259
|
+
async updateAiProxyRaw(requestParameters, initOverrides) {
|
|
4260
|
+
const requestOptions = await this.updateAiProxyRequestOpts(requestParameters);
|
|
4261
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4262
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AiProxySettings_1.AiProxySettingsFromJSON)(jsonValue));
|
|
4263
|
+
}
|
|
4264
|
+
/**
|
|
4265
|
+
* With the proxy on, sandboxes get placeholder keys and base URLs that point at Boat. Boat swaps in the real key on each request. Real keys never enter the sandbox. Running sandboxes switch at their next start. While on, the account pays $1 of Boat time for each UTC day, plus $1 per 1,000 proxied requests, charged to the wallet each sandbox bills. For an organization, only its owner can change the switch. Needs an API key with `account.admin`.
|
|
4266
|
+
* Turn the AI credentials proxy on or off
|
|
4267
|
+
*/
|
|
4268
|
+
async updateAiProxy(requestParameters, initOverrides) {
|
|
4269
|
+
const response = await this.updateAiProxyRaw(requestParameters, initOverrides);
|
|
4270
|
+
return await response.value();
|
|
4271
|
+
}
|
|
4272
|
+
/**
|
|
4273
|
+
* Creates request options for updateCredentialProfile without sending the request
|
|
4274
|
+
*/
|
|
4275
|
+
async updateCredentialProfileRequestOpts(input) {
|
|
4276
|
+
const requestParameters = runtime.unflattenBody(input, 'updateCredentialProfileRequest', ['profile'], []);
|
|
4277
|
+
if (requestParameters['profile'] == null) {
|
|
4278
|
+
throw new runtime.RequiredError('profile', 'Required parameter "profile" was null or undefined when calling updateCredentialProfile().');
|
|
4279
|
+
}
|
|
4280
|
+
if (requestParameters['updateCredentialProfileRequest'] == null) {
|
|
4281
|
+
throw new runtime.RequiredError('updateCredentialProfileRequest', 'Required parameter "updateCredentialProfileRequest" was null or undefined when calling updateCredentialProfile().');
|
|
4282
|
+
}
|
|
4283
|
+
const queryParameters = {};
|
|
4284
|
+
const headerParameters = {};
|
|
4285
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4286
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4287
|
+
const token = this.configuration.accessToken;
|
|
4288
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
4289
|
+
if (tokenString) {
|
|
4290
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4291
|
+
}
|
|
4292
|
+
}
|
|
4293
|
+
let urlPath = `/credential-profiles/{profile}`;
|
|
4294
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
4295
|
+
return {
|
|
4296
|
+
path: urlPath,
|
|
4297
|
+
method: 'PUT',
|
|
4298
|
+
headers: headerParameters,
|
|
4299
|
+
query: queryParameters,
|
|
4300
|
+
body: (0, UpdateCredentialProfileRequest_1.UpdateCredentialProfileRequestToJSON)(requestParameters['updateCredentialProfileRequest']),
|
|
4301
|
+
};
|
|
4302
|
+
}
|
|
4303
|
+
/**
|
|
4304
|
+
* Renames the profile, or makes it its owner\'s default. Sandboxes that use the owner\'s default switch to the new default at their next start. Needs an API key with `account.admin`.
|
|
4305
|
+
* Update a credential profile
|
|
4306
|
+
*/
|
|
4307
|
+
async updateCredentialProfileRaw(requestParameters, initOverrides) {
|
|
4308
|
+
const requestOptions = await this.updateCredentialProfileRequestOpts(requestParameters);
|
|
4309
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4310
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialProfileResponse_1.CredentialProfileResponseFromJSON)(jsonValue));
|
|
4311
|
+
}
|
|
4312
|
+
/**
|
|
4313
|
+
* Renames the profile, or makes it its owner\'s default. Sandboxes that use the owner\'s default switch to the new default at their next start. Needs an API key with `account.admin`.
|
|
4314
|
+
* Update a credential profile
|
|
4315
|
+
*/
|
|
4316
|
+
async updateCredentialProfile(requestParameters, initOverrides) {
|
|
4317
|
+
const response = await this.updateCredentialProfileRaw(requestParameters, initOverrides);
|
|
4318
|
+
return await response.value();
|
|
4319
|
+
}
|
|
3675
4320
|
/**
|
|
3676
4321
|
* Creates request options for updateDataRetention without sending the request
|
|
3677
4322
|
*/
|
|
@@ -3720,7 +4365,7 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
3720
4365
|
* Creates request options for updateEnvironment without sending the request
|
|
3721
4366
|
*/
|
|
3722
4367
|
async updateEnvironmentRequestOpts(input) {
|
|
3723
|
-
const requestParameters = runtime.unflattenBody(input, 'updateSandboxEnvironmentRequest', ['environmentId'], []);
|
|
4368
|
+
const requestParameters = runtime.unflattenBody(input, 'updateSandboxEnvironmentRequest', ['environmentId', 'org'], []);
|
|
3724
4369
|
if (requestParameters['environmentId'] == null) {
|
|
3725
4370
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling updateEnvironment().');
|
|
3726
4371
|
}
|
|
@@ -3728,6 +4373,9 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
3728
4373
|
throw new runtime.RequiredError('updateSandboxEnvironmentRequest', 'Required parameter "updateSandboxEnvironmentRequest" was null or undefined when calling updateEnvironment().');
|
|
3729
4374
|
}
|
|
3730
4375
|
const queryParameters = {};
|
|
4376
|
+
if (requestParameters['org'] != null) {
|
|
4377
|
+
queryParameters['org'] = requestParameters['org'];
|
|
4378
|
+
}
|
|
3731
4379
|
const headerParameters = {};
|
|
3732
4380
|
headerParameters['Content-Type'] = 'application/json';
|
|
3733
4381
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -3858,11 +4506,14 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
3858
4506
|
* Creates request options for upgradeEnvironment without sending the request
|
|
3859
4507
|
*/
|
|
3860
4508
|
async upgradeEnvironmentRequestOpts(input) {
|
|
3861
|
-
const requestParameters = runtime.unflattenBody(input, 'upgradeSandboxEnvironmentRequest', ['environmentId'], []);
|
|
4509
|
+
const requestParameters = runtime.unflattenBody(input, 'upgradeSandboxEnvironmentRequest', ['environmentId', 'org'], []);
|
|
3862
4510
|
if (requestParameters['environmentId'] == null) {
|
|
3863
4511
|
throw new runtime.RequiredError('environmentId', 'Required parameter "environmentId" was null or undefined when calling upgradeEnvironment().');
|
|
3864
4512
|
}
|
|
3865
4513
|
const queryParameters = {};
|
|
4514
|
+
if (requestParameters['org'] != null) {
|
|
4515
|
+
queryParameters['org'] = requestParameters['org'];
|
|
4516
|
+
}
|
|
3866
4517
|
const headerParameters = {};
|
|
3867
4518
|
headerParameters['Content-Type'] = 'application/json';
|
|
3868
4519
|
if (this.configuration && this.configuration.accessToken) {
|