@boatdev/sdk 1.9.4 → 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 +44 -0
- package/dist/apis/BoatApi.d.ts +305 -7
- package/dist/apis/BoatApi.js +764 -15
- package/dist/esm/apis/BoatApi.d.ts +305 -7
- package/dist/esm/apis/BoatApi.js +764 -15
- 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/DeletionOperation.d.ts +1 -1
- package/dist/esm/models/FileUrlRequest.d.ts +38 -0
- package/dist/esm/models/FileUrlRequest.js +45 -0
- package/dist/esm/models/FileUrlResponse.d.ts +78 -0
- package/dist/esm/models/FileUrlResponse.js +77 -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/SnapshotSummary.d.ts +14 -0
- package/dist/esm/models/SnapshotSummary.js +9 -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 +22 -0
- package/dist/esm/models/index.js +22 -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/DeletionOperation.d.ts +1 -1
- package/dist/models/FileUrlRequest.d.ts +38 -0
- package/dist/models/FileUrlRequest.js +52 -0
- package/dist/models/FileUrlResponse.d.ts +78 -0
- package/dist/models/FileUrlResponse.js +85 -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/SnapshotSummary.d.ts +14 -0
- package/dist/models/SnapshotSummary.js +10 -1
- 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 +22 -0
- package/dist/models/index.js +22 -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 +1568 -359
- 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/FileUrlRequest.md +34 -0
- package/docs/FileUrlResponse.md +42 -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/SnapshotSummary.md +2 -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 +1257 -105
- 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/DeletionOperation.ts +1 -1
- package/src/models/FileUrlRequest.ts +74 -0
- package/src/models/FileUrlResponse.ts +131 -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/SnapshotSummary.ts +17 -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 +22 -0
package/src/apis/BoatApi.ts
CHANGED
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type AccountAiUsageResponse,
|
|
18
|
+
AccountAiUsageResponseFromJSON,
|
|
19
|
+
AccountAiUsageResponseToJSON,
|
|
20
|
+
} from '../models/AccountAiUsageResponse';
|
|
16
21
|
import {
|
|
17
22
|
type ActiveOrgResponse,
|
|
18
23
|
ActiveOrgResponseFromJSON,
|
|
@@ -28,6 +33,11 @@ import {
|
|
|
28
33
|
AddEnvironmentRepoRequestFromJSON,
|
|
29
34
|
AddEnvironmentRepoRequestToJSON,
|
|
30
35
|
} from '../models/AddEnvironmentRepoRequest';
|
|
36
|
+
import {
|
|
37
|
+
type AiProxySettings,
|
|
38
|
+
AiProxySettingsFromJSON,
|
|
39
|
+
AiProxySettingsToJSON,
|
|
40
|
+
} from '../models/AiProxySettings';
|
|
31
41
|
import {
|
|
32
42
|
type ApiKeyRevokeResponse,
|
|
33
43
|
ApiKeyRevokeResponseFromJSON,
|
|
@@ -98,6 +108,11 @@ import {
|
|
|
98
108
|
ConversationsResponseFromJSON,
|
|
99
109
|
ConversationsResponseToJSON,
|
|
100
110
|
} from '../models/ConversationsResponse';
|
|
111
|
+
import {
|
|
112
|
+
type CreateCredentialProfileRequest,
|
|
113
|
+
CreateCredentialProfileRequestFromJSON,
|
|
114
|
+
CreateCredentialProfileRequestToJSON,
|
|
115
|
+
} from '../models/CreateCredentialProfileRequest';
|
|
101
116
|
import {
|
|
102
117
|
type CreateSandboxEnvironmentRequest,
|
|
103
118
|
CreateSandboxEnvironmentRequestFromJSON,
|
|
@@ -123,6 +138,26 @@ import {
|
|
|
123
138
|
CreateScopedApiKeyRequestFromJSON,
|
|
124
139
|
CreateScopedApiKeyRequestToJSON,
|
|
125
140
|
} from '../models/CreateScopedApiKeyRequest';
|
|
141
|
+
import {
|
|
142
|
+
type CredentialId,
|
|
143
|
+
CredentialIdFromJSON,
|
|
144
|
+
CredentialIdToJSON,
|
|
145
|
+
} from '../models/CredentialId';
|
|
146
|
+
import {
|
|
147
|
+
type CredentialProfileDeletedResponse,
|
|
148
|
+
CredentialProfileDeletedResponseFromJSON,
|
|
149
|
+
CredentialProfileDeletedResponseToJSON,
|
|
150
|
+
} from '../models/CredentialProfileDeletedResponse';
|
|
151
|
+
import {
|
|
152
|
+
type CredentialProfileListResponse,
|
|
153
|
+
CredentialProfileListResponseFromJSON,
|
|
154
|
+
CredentialProfileListResponseToJSON,
|
|
155
|
+
} from '../models/CredentialProfileListResponse';
|
|
156
|
+
import {
|
|
157
|
+
type CredentialProfileResponse,
|
|
158
|
+
CredentialProfileResponseFromJSON,
|
|
159
|
+
CredentialProfileResponseToJSON,
|
|
160
|
+
} from '../models/CredentialProfileResponse';
|
|
126
161
|
import {
|
|
127
162
|
type DataRetentionPolicyResponse,
|
|
128
163
|
DataRetentionPolicyResponseFromJSON,
|
|
@@ -173,6 +208,16 @@ import {
|
|
|
173
208
|
FileReadResponseFromJSON,
|
|
174
209
|
FileReadResponseToJSON,
|
|
175
210
|
} from '../models/FileReadResponse';
|
|
211
|
+
import {
|
|
212
|
+
type FileUrlRequest,
|
|
213
|
+
FileUrlRequestFromJSON,
|
|
214
|
+
FileUrlRequestToJSON,
|
|
215
|
+
} from '../models/FileUrlRequest';
|
|
216
|
+
import {
|
|
217
|
+
type FileUrlResponse,
|
|
218
|
+
FileUrlResponseFromJSON,
|
|
219
|
+
FileUrlResponseToJSON,
|
|
220
|
+
} from '../models/FileUrlResponse';
|
|
176
221
|
import {
|
|
177
222
|
type FileWriteRequest,
|
|
178
223
|
FileWriteRequestFromJSON,
|
|
@@ -308,6 +353,16 @@ import {
|
|
|
308
353
|
SandboxActionResponseFromJSON,
|
|
309
354
|
SandboxActionResponseToJSON,
|
|
310
355
|
} from '../models/SandboxActionResponse';
|
|
356
|
+
import {
|
|
357
|
+
type SandboxAiAccessResponse,
|
|
358
|
+
SandboxAiAccessResponseFromJSON,
|
|
359
|
+
SandboxAiAccessResponseToJSON,
|
|
360
|
+
} from '../models/SandboxAiAccessResponse';
|
|
361
|
+
import {
|
|
362
|
+
type SandboxAiUsageResponse,
|
|
363
|
+
SandboxAiUsageResponseFromJSON,
|
|
364
|
+
SandboxAiUsageResponseToJSON,
|
|
365
|
+
} from '../models/SandboxAiUsageResponse';
|
|
311
366
|
import {
|
|
312
367
|
type SandboxEnvironmentListResponse,
|
|
313
368
|
SandboxEnvironmentListResponseFromJSON,
|
|
@@ -343,6 +398,16 @@ import {
|
|
|
343
398
|
SecretsUpdateRequestFromJSON,
|
|
344
399
|
SecretsUpdateRequestToJSON,
|
|
345
400
|
} from '../models/SecretsUpdateRequest';
|
|
401
|
+
import {
|
|
402
|
+
type SetCredentialKeyRequest,
|
|
403
|
+
SetCredentialKeyRequestFromJSON,
|
|
404
|
+
SetCredentialKeyRequestToJSON,
|
|
405
|
+
} from '../models/SetCredentialKeyRequest';
|
|
406
|
+
import {
|
|
407
|
+
type SetCustomApiRequest,
|
|
408
|
+
SetCustomApiRequestFromJSON,
|
|
409
|
+
SetCustomApiRequestToJSON,
|
|
410
|
+
} from '../models/SetCustomApiRequest';
|
|
346
411
|
import {
|
|
347
412
|
type SetEnvironmentSecretFileRequest,
|
|
348
413
|
SetEnvironmentSecretFileRequestFromJSON,
|
|
@@ -353,6 +418,11 @@ import {
|
|
|
353
418
|
SetEnvironmentVarRequestFromJSON,
|
|
354
419
|
SetEnvironmentVarRequestToJSON,
|
|
355
420
|
} from '../models/SetEnvironmentVarRequest';
|
|
421
|
+
import {
|
|
422
|
+
type SetSandboxAiAccessRequest,
|
|
423
|
+
SetSandboxAiAccessRequestFromJSON,
|
|
424
|
+
SetSandboxAiAccessRequestToJSON,
|
|
425
|
+
} from '../models/SetSandboxAiAccessRequest';
|
|
356
426
|
import {
|
|
357
427
|
type Share200Response,
|
|
358
428
|
Share200ResponseFromJSON,
|
|
@@ -423,6 +493,16 @@ import {
|
|
|
423
493
|
TelemetrySetResponseFromJSON,
|
|
424
494
|
TelemetrySetResponseToJSON,
|
|
425
495
|
} from '../models/TelemetrySetResponse';
|
|
496
|
+
import {
|
|
497
|
+
type UpdateAiProxyRequest,
|
|
498
|
+
UpdateAiProxyRequestFromJSON,
|
|
499
|
+
UpdateAiProxyRequestToJSON,
|
|
500
|
+
} from '../models/UpdateAiProxyRequest';
|
|
501
|
+
import {
|
|
502
|
+
type UpdateCredentialProfileRequest,
|
|
503
|
+
UpdateCredentialProfileRequestFromJSON,
|
|
504
|
+
UpdateCredentialProfileRequestToJSON,
|
|
505
|
+
} from '../models/UpdateCredentialProfileRequest';
|
|
426
506
|
import {
|
|
427
507
|
type UpdateSandboxEnvironmentRequest,
|
|
428
508
|
UpdateSandboxEnvironmentRequestFromJSON,
|
|
@@ -477,6 +557,7 @@ import {
|
|
|
477
557
|
export interface AddEnvironmentRepoOperationRequest {
|
|
478
558
|
environmentId: string;
|
|
479
559
|
addEnvironmentRepoRequest: AddEnvironmentRepoRequest;
|
|
560
|
+
org?: string;
|
|
480
561
|
}
|
|
481
562
|
|
|
482
563
|
export interface ApiKeyUsageRequest {
|
|
@@ -536,8 +617,18 @@ export interface CreateRequest {
|
|
|
536
617
|
createSandboxRequest?: CreateSandboxRequest;
|
|
537
618
|
}
|
|
538
619
|
|
|
620
|
+
export interface CreateCredentialProfileOperationRequest {
|
|
621
|
+
createCredentialProfileRequest: CreateCredentialProfileRequest;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export interface CreateDownloadUrlRequest {
|
|
625
|
+
sandboxId: string;
|
|
626
|
+
fileUrlRequest: FileUrlRequest;
|
|
627
|
+
}
|
|
628
|
+
|
|
539
629
|
export interface CreateEnvironmentRequest {
|
|
540
630
|
createSandboxEnvironmentRequest: CreateSandboxEnvironmentRequest;
|
|
631
|
+
org?: string;
|
|
541
632
|
}
|
|
542
633
|
|
|
543
634
|
export interface CreateScopedApiKeyOperationRequest {
|
|
@@ -548,27 +639,50 @@ export interface CreateSnapshotShareRequest {
|
|
|
548
639
|
name: string;
|
|
549
640
|
}
|
|
550
641
|
|
|
642
|
+
export interface CreateUploadUrlRequest {
|
|
643
|
+
sandboxId: string;
|
|
644
|
+
fileUrlRequest: FileUrlRequest;
|
|
645
|
+
}
|
|
646
|
+
|
|
551
647
|
export interface CreateWebhookRequest {
|
|
552
648
|
webhookCreateRequest: WebhookCreateRequest;
|
|
553
649
|
}
|
|
554
650
|
|
|
651
|
+
export interface DeleteCredentialProfileRequest {
|
|
652
|
+
profile: string;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export interface DeleteCredentialProfileCustomApiRequest {
|
|
656
|
+
profile: string;
|
|
657
|
+
name: string;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
export interface DeleteCredentialProfileKeyRequest {
|
|
661
|
+
profile: string;
|
|
662
|
+
credential: CredentialId;
|
|
663
|
+
}
|
|
664
|
+
|
|
555
665
|
export interface DeleteEnvironmentRequest {
|
|
556
666
|
environmentId: string;
|
|
667
|
+
org?: string;
|
|
557
668
|
}
|
|
558
669
|
|
|
559
670
|
export interface DeleteEnvironmentRepoRequest {
|
|
560
671
|
environmentId: string;
|
|
561
672
|
repositoryId: string;
|
|
673
|
+
org?: string;
|
|
562
674
|
}
|
|
563
675
|
|
|
564
676
|
export interface DeleteEnvironmentSecretFileRequest {
|
|
565
677
|
path: string;
|
|
566
678
|
environmentId: string;
|
|
679
|
+
org?: string;
|
|
567
680
|
}
|
|
568
681
|
|
|
569
682
|
export interface DeleteEnvironmentVarRequest {
|
|
570
683
|
environmentId: string;
|
|
571
684
|
key: string;
|
|
685
|
+
org?: string;
|
|
572
686
|
}
|
|
573
687
|
|
|
574
688
|
export interface DeleteNamedSnapshotRequest {
|
|
@@ -601,6 +715,10 @@ export interface DesktopOperationRequest {
|
|
|
601
715
|
desktopRequest?: DesktopRequest;
|
|
602
716
|
}
|
|
603
717
|
|
|
718
|
+
export interface EnvironmentsRequest {
|
|
719
|
+
org?: string;
|
|
720
|
+
}
|
|
721
|
+
|
|
604
722
|
export interface EventsRequest {
|
|
605
723
|
sandboxId: string;
|
|
606
724
|
limit?: number;
|
|
@@ -620,6 +738,18 @@ export interface GetRequest {
|
|
|
620
738
|
sandboxId: string;
|
|
621
739
|
}
|
|
622
740
|
|
|
741
|
+
export interface GetAiProxyRequest {
|
|
742
|
+
org?: string;
|
|
743
|
+
xBoatOrg?: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export interface GetAiUsageRequest {
|
|
747
|
+
days?: number;
|
|
748
|
+
profile?: string;
|
|
749
|
+
org?: string;
|
|
750
|
+
xBoatOrg?: string;
|
|
751
|
+
}
|
|
752
|
+
|
|
623
753
|
export interface GetCommandRequest {
|
|
624
754
|
sandboxId: string;
|
|
625
755
|
commandId: string;
|
|
@@ -637,6 +767,11 @@ export interface GetNamedSnapshotRequest {
|
|
|
637
767
|
name: string;
|
|
638
768
|
}
|
|
639
769
|
|
|
770
|
+
export interface GetSandboxAiUsageRequest {
|
|
771
|
+
sandboxId: string;
|
|
772
|
+
days?: number;
|
|
773
|
+
}
|
|
774
|
+
|
|
640
775
|
export interface GetSnapshotDownloadRequest {
|
|
641
776
|
snapshotId: string;
|
|
642
777
|
}
|
|
@@ -768,15 +903,34 @@ export interface SetActiveOrganizationRequest {
|
|
|
768
903
|
activeOrgUpdateRequest: ActiveOrgUpdateRequest;
|
|
769
904
|
}
|
|
770
905
|
|
|
906
|
+
export interface SetCredentialProfileCustomApiRequest {
|
|
907
|
+
profile: string;
|
|
908
|
+
name: string;
|
|
909
|
+
setCustomApiRequest: SetCustomApiRequest;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export interface SetCredentialProfileKeyRequest {
|
|
913
|
+
profile: string;
|
|
914
|
+
credential: CredentialId;
|
|
915
|
+
setCredentialKeyRequest: SetCredentialKeyRequest;
|
|
916
|
+
}
|
|
917
|
+
|
|
771
918
|
export interface SetEnvironmentSecretFileOperationRequest {
|
|
772
919
|
environmentId: string;
|
|
773
920
|
setEnvironmentSecretFileRequest: SetEnvironmentSecretFileRequest;
|
|
921
|
+
org?: string;
|
|
774
922
|
}
|
|
775
923
|
|
|
776
924
|
export interface SetEnvironmentVarOperationRequest {
|
|
777
925
|
environmentId: string;
|
|
778
926
|
key: string;
|
|
779
927
|
setEnvironmentVarRequest: SetEnvironmentVarRequest;
|
|
928
|
+
org?: string;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
export interface SetSandboxAiAccessOperationRequest {
|
|
932
|
+
sandboxId: string;
|
|
933
|
+
setSandboxAiAccessRequest: SetSandboxAiAccessRequest;
|
|
780
934
|
}
|
|
781
935
|
|
|
782
936
|
export interface SetTelemetryRequest {
|
|
@@ -813,6 +967,17 @@ export interface UpdateRequest {
|
|
|
813
967
|
updateSandboxRequest: UpdateSandboxRequest;
|
|
814
968
|
}
|
|
815
969
|
|
|
970
|
+
export interface UpdateAiProxyOperationRequest {
|
|
971
|
+
updateAiProxyRequest: UpdateAiProxyRequest;
|
|
972
|
+
org?: string;
|
|
973
|
+
xBoatOrg?: string;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
export interface UpdateCredentialProfileOperationRequest {
|
|
977
|
+
profile: string;
|
|
978
|
+
updateCredentialProfileRequest: UpdateCredentialProfileRequest;
|
|
979
|
+
}
|
|
980
|
+
|
|
816
981
|
export interface UpdateDataRetentionRequest {
|
|
817
982
|
dataRetentionUpdateRequest: DataRetentionUpdateRequest;
|
|
818
983
|
}
|
|
@@ -820,6 +985,7 @@ export interface UpdateDataRetentionRequest {
|
|
|
820
985
|
export interface UpdateEnvironmentRequest {
|
|
821
986
|
environmentId: string;
|
|
822
987
|
updateSandboxEnvironmentRequest: UpdateSandboxEnvironmentRequest;
|
|
988
|
+
org?: string;
|
|
823
989
|
}
|
|
824
990
|
|
|
825
991
|
export interface UpdateSecretsRequest {
|
|
@@ -833,6 +999,7 @@ export interface UpdateWebhookRequest {
|
|
|
833
999
|
|
|
834
1000
|
export interface UpgradeEnvironmentRequest {
|
|
835
1001
|
environmentId: string;
|
|
1002
|
+
org?: string;
|
|
836
1003
|
upgradeSandboxEnvironmentRequest?: UpgradeSandboxEnvironmentRequest;
|
|
837
1004
|
}
|
|
838
1005
|
|
|
@@ -856,7 +1023,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
856
1023
|
* Creates request options for addEnvironmentRepo without sending the request
|
|
857
1024
|
*/
|
|
858
1025
|
async addEnvironmentRepoRequestOpts(input: AddEnvironmentRepoOperationRequest | runtime.FlatBody<AddEnvironmentRepoOperationRequest, 'addEnvironmentRepoRequest'>): Promise<runtime.RequestOpts> {
|
|
859
|
-
const requestParameters = runtime.unflattenBody<AddEnvironmentRepoOperationRequest>(input, 'addEnvironmentRepoRequest', ['environmentId'], []);
|
|
1026
|
+
const requestParameters = runtime.unflattenBody<AddEnvironmentRepoOperationRequest>(input, 'addEnvironmentRepoRequest', ['environmentId', 'org'], []);
|
|
860
1027
|
if (requestParameters['environmentId'] == null) {
|
|
861
1028
|
throw new runtime.RequiredError(
|
|
862
1029
|
'environmentId',
|
|
@@ -873,6 +1040,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
873
1040
|
|
|
874
1041
|
const queryParameters: any = {};
|
|
875
1042
|
|
|
1043
|
+
if (requestParameters['org'] != null) {
|
|
1044
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1045
|
+
}
|
|
1046
|
+
|
|
876
1047
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
877
1048
|
|
|
878
1049
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -1566,11 +1737,135 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1566
1737
|
return await response.value();
|
|
1567
1738
|
}
|
|
1568
1739
|
|
|
1740
|
+
/**
|
|
1741
|
+
* Creates request options for createCredentialProfile without sending the request
|
|
1742
|
+
*/
|
|
1743
|
+
async createCredentialProfileRequestOpts(input: CreateCredentialProfileOperationRequest | runtime.FlatBody<CreateCredentialProfileOperationRequest, 'createCredentialProfileRequest'>): Promise<runtime.RequestOpts> {
|
|
1744
|
+
const requestParameters = runtime.unflattenBody<CreateCredentialProfileOperationRequest>(input, 'createCredentialProfileRequest', [], []);
|
|
1745
|
+
if (requestParameters['createCredentialProfileRequest'] == null) {
|
|
1746
|
+
throw new runtime.RequiredError(
|
|
1747
|
+
'createCredentialProfileRequest',
|
|
1748
|
+
'Required parameter "createCredentialProfileRequest" was null or undefined when calling createCredentialProfile().'
|
|
1749
|
+
);
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
const queryParameters: any = {};
|
|
1753
|
+
|
|
1754
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1755
|
+
|
|
1756
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1757
|
+
|
|
1758
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1759
|
+
const token = this.configuration.accessToken;
|
|
1760
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1761
|
+
|
|
1762
|
+
if (tokenString) {
|
|
1763
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
let urlPath = `/credential-profiles`;
|
|
1768
|
+
|
|
1769
|
+
return {
|
|
1770
|
+
path: urlPath,
|
|
1771
|
+
method: 'POST',
|
|
1772
|
+
headers: headerParameters,
|
|
1773
|
+
query: queryParameters,
|
|
1774
|
+
body: CreateCredentialProfileRequestToJSON(requestParameters['createCredentialProfileRequest']),
|
|
1775
|
+
};
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* 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`.
|
|
1780
|
+
* Create a credential profile
|
|
1781
|
+
*/
|
|
1782
|
+
async createCredentialProfileRaw(requestParameters: CreateCredentialProfileOperationRequest | runtime.FlatBody<CreateCredentialProfileOperationRequest, 'createCredentialProfileRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
1783
|
+
const requestOptions = await this.createCredentialProfileRequestOpts(requestParameters);
|
|
1784
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1785
|
+
|
|
1786
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* 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`.
|
|
1791
|
+
* Create a credential profile
|
|
1792
|
+
*/
|
|
1793
|
+
async createCredentialProfile(requestParameters: CreateCredentialProfileOperationRequest | runtime.FlatBody<CreateCredentialProfileOperationRequest, 'createCredentialProfileRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
1794
|
+
const response = await this.createCredentialProfileRaw(requestParameters, initOverrides);
|
|
1795
|
+
return await response.value();
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* Creates request options for createDownloadUrl without sending the request
|
|
1800
|
+
*/
|
|
1801
|
+
async createDownloadUrlRequestOpts(input: CreateDownloadUrlRequest | runtime.FlatBody<CreateDownloadUrlRequest, 'fileUrlRequest'>): Promise<runtime.RequestOpts> {
|
|
1802
|
+
const requestParameters = runtime.unflattenBody<CreateDownloadUrlRequest>(input, 'fileUrlRequest', ['sandboxId'], []);
|
|
1803
|
+
if (requestParameters['sandboxId'] == null) {
|
|
1804
|
+
throw new runtime.RequiredError(
|
|
1805
|
+
'sandboxId',
|
|
1806
|
+
'Required parameter "sandboxId" was null or undefined when calling createDownloadUrl().'
|
|
1807
|
+
);
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
if (requestParameters['fileUrlRequest'] == null) {
|
|
1811
|
+
throw new runtime.RequiredError(
|
|
1812
|
+
'fileUrlRequest',
|
|
1813
|
+
'Required parameter "fileUrlRequest" was null or undefined when calling createDownloadUrl().'
|
|
1814
|
+
);
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
const queryParameters: any = {};
|
|
1818
|
+
|
|
1819
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1820
|
+
|
|
1821
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1822
|
+
|
|
1823
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1824
|
+
const token = this.configuration.accessToken;
|
|
1825
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1826
|
+
|
|
1827
|
+
if (tokenString) {
|
|
1828
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
let urlPath = `/sandboxes/{sandboxId}/files/download-url`;
|
|
1833
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
1834
|
+
|
|
1835
|
+
return {
|
|
1836
|
+
path: urlPath,
|
|
1837
|
+
method: 'POST',
|
|
1838
|
+
headers: headerParameters,
|
|
1839
|
+
query: queryParameters,
|
|
1840
|
+
body: FileUrlRequestToJSON(requestParameters['fileUrlRequest']),
|
|
1841
|
+
};
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* Returns a short-lived URL that the sandbox serves itself. GET it to download the file as raw bytes, with no size limit and no Authorization header. The URL is bound to this path and expires after `ttlSeconds` (default 15 minutes, at most 1 hour). Needs `file.read`. Treat the URL as a secret until it expires.
|
|
1846
|
+
* Get a download URL for a sandbox file
|
|
1847
|
+
*/
|
|
1848
|
+
async createDownloadUrlRaw(requestParameters: CreateDownloadUrlRequest | runtime.FlatBody<CreateDownloadUrlRequest, 'fileUrlRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileUrlResponse>> {
|
|
1849
|
+
const requestOptions = await this.createDownloadUrlRequestOpts(requestParameters);
|
|
1850
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1851
|
+
|
|
1852
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FileUrlResponseFromJSON(jsonValue));
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Returns a short-lived URL that the sandbox serves itself. GET it to download the file as raw bytes, with no size limit and no Authorization header. The URL is bound to this path and expires after `ttlSeconds` (default 15 minutes, at most 1 hour). Needs `file.read`. Treat the URL as a secret until it expires.
|
|
1857
|
+
* Get a download URL for a sandbox file
|
|
1858
|
+
*/
|
|
1859
|
+
async createDownloadUrl(requestParameters: CreateDownloadUrlRequest | runtime.FlatBody<CreateDownloadUrlRequest, 'fileUrlRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileUrlResponse> {
|
|
1860
|
+
const response = await this.createDownloadUrlRaw(requestParameters, initOverrides);
|
|
1861
|
+
return await response.value();
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1569
1864
|
/**
|
|
1570
1865
|
* Creates request options for createEnvironment without sending the request
|
|
1571
1866
|
*/
|
|
1572
1867
|
async createEnvironmentRequestOpts(input: CreateEnvironmentRequest | runtime.FlatBody<CreateEnvironmentRequest, 'createSandboxEnvironmentRequest'>): Promise<runtime.RequestOpts> {
|
|
1573
|
-
const requestParameters = runtime.unflattenBody<CreateEnvironmentRequest>(input, 'createSandboxEnvironmentRequest', [], []);
|
|
1868
|
+
const requestParameters = runtime.unflattenBody<CreateEnvironmentRequest>(input, 'createSandboxEnvironmentRequest', ['org'], []);
|
|
1574
1869
|
if (requestParameters['createSandboxEnvironmentRequest'] == null) {
|
|
1575
1870
|
throw new runtime.RequiredError(
|
|
1576
1871
|
'createSandboxEnvironmentRequest',
|
|
@@ -1580,6 +1875,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1580
1875
|
|
|
1581
1876
|
const queryParameters: any = {};
|
|
1582
1877
|
|
|
1878
|
+
if (requestParameters['org'] != null) {
|
|
1879
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1583
1882
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1584
1883
|
|
|
1585
1884
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -1737,6 +2036,72 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1737
2036
|
return await response.value();
|
|
1738
2037
|
}
|
|
1739
2038
|
|
|
2039
|
+
/**
|
|
2040
|
+
* Creates request options for createUploadUrl without sending the request
|
|
2041
|
+
*/
|
|
2042
|
+
async createUploadUrlRequestOpts(input: CreateUploadUrlRequest | runtime.FlatBody<CreateUploadUrlRequest, 'fileUrlRequest'>): Promise<runtime.RequestOpts> {
|
|
2043
|
+
const requestParameters = runtime.unflattenBody<CreateUploadUrlRequest>(input, 'fileUrlRequest', ['sandboxId'], []);
|
|
2044
|
+
if (requestParameters['sandboxId'] == null) {
|
|
2045
|
+
throw new runtime.RequiredError(
|
|
2046
|
+
'sandboxId',
|
|
2047
|
+
'Required parameter "sandboxId" was null or undefined when calling createUploadUrl().'
|
|
2048
|
+
);
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
if (requestParameters['fileUrlRequest'] == null) {
|
|
2052
|
+
throw new runtime.RequiredError(
|
|
2053
|
+
'fileUrlRequest',
|
|
2054
|
+
'Required parameter "fileUrlRequest" was null or undefined when calling createUploadUrl().'
|
|
2055
|
+
);
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
const queryParameters: any = {};
|
|
2059
|
+
|
|
2060
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2061
|
+
|
|
2062
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2063
|
+
|
|
2064
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2065
|
+
const token = this.configuration.accessToken;
|
|
2066
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2067
|
+
|
|
2068
|
+
if (tokenString) {
|
|
2069
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
let urlPath = `/sandboxes/{sandboxId}/files/upload-url`;
|
|
2074
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
2075
|
+
|
|
2076
|
+
return {
|
|
2077
|
+
path: urlPath,
|
|
2078
|
+
method: 'POST',
|
|
2079
|
+
headers: headerParameters,
|
|
2080
|
+
query: queryParameters,
|
|
2081
|
+
body: FileUrlRequestToJSON(requestParameters['fileUrlRequest']),
|
|
2082
|
+
};
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* Returns a short-lived URL that the sandbox serves itself. PUT the file as the raw request body to write it, with no size limit and no Authorization header. Missing directories are created; an existing file is replaced only once the upload completes. The URL is bound to this path and expires after `ttlSeconds` (default 15 minutes, at most 1 hour). Needs `file.write`. Treat the URL as a secret until it expires.
|
|
2087
|
+
* Get an upload URL for a sandbox file
|
|
2088
|
+
*/
|
|
2089
|
+
async createUploadUrlRaw(requestParameters: CreateUploadUrlRequest | runtime.FlatBody<CreateUploadUrlRequest, 'fileUrlRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileUrlResponse>> {
|
|
2090
|
+
const requestOptions = await this.createUploadUrlRequestOpts(requestParameters);
|
|
2091
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2092
|
+
|
|
2093
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FileUrlResponseFromJSON(jsonValue));
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
/**
|
|
2097
|
+
* Returns a short-lived URL that the sandbox serves itself. PUT the file as the raw request body to write it, with no size limit and no Authorization header. Missing directories are created; an existing file is replaced only once the upload completes. The URL is bound to this path and expires after `ttlSeconds` (default 15 minutes, at most 1 hour). Needs `file.write`. Treat the URL as a secret until it expires.
|
|
2098
|
+
* Get an upload URL for a sandbox file
|
|
2099
|
+
*/
|
|
2100
|
+
async createUploadUrl(requestParameters: CreateUploadUrlRequest | runtime.FlatBody<CreateUploadUrlRequest, 'fileUrlRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileUrlResponse> {
|
|
2101
|
+
const response = await this.createUploadUrlRaw(requestParameters, initOverrides);
|
|
2102
|
+
return await response.value();
|
|
2103
|
+
}
|
|
2104
|
+
|
|
1740
2105
|
/**
|
|
1741
2106
|
* Creates request options for createWebhook without sending the request
|
|
1742
2107
|
*/
|
|
@@ -1796,13 +2161,13 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1796
2161
|
}
|
|
1797
2162
|
|
|
1798
2163
|
/**
|
|
1799
|
-
* Creates request options for
|
|
2164
|
+
* Creates request options for deleteCredentialProfile without sending the request
|
|
1800
2165
|
*/
|
|
1801
|
-
async
|
|
1802
|
-
if (requestParameters['
|
|
2166
|
+
async deleteCredentialProfileRequestOpts(requestParameters: DeleteCredentialProfileRequest): Promise<runtime.RequestOpts> {
|
|
2167
|
+
if (requestParameters['profile'] == null) {
|
|
1803
2168
|
throw new runtime.RequiredError(
|
|
1804
|
-
'
|
|
1805
|
-
'Required parameter "
|
|
2169
|
+
'profile',
|
|
2170
|
+
'Required parameter "profile" was null or undefined when calling deleteCredentialProfile().'
|
|
1806
2171
|
);
|
|
1807
2172
|
}
|
|
1808
2173
|
|
|
@@ -1819,8 +2184,8 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1819
2184
|
}
|
|
1820
2185
|
}
|
|
1821
2186
|
|
|
1822
|
-
let urlPath = `/
|
|
1823
|
-
urlPath = urlPath.replace('{
|
|
2187
|
+
let urlPath = `/credential-profiles/{profile}`;
|
|
2188
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
1824
2189
|
|
|
1825
2190
|
return {
|
|
1826
2191
|
path: urlPath,
|
|
@@ -1831,40 +2196,40 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1831
2196
|
}
|
|
1832
2197
|
|
|
1833
2198
|
/**
|
|
1834
|
-
*
|
|
1835
|
-
* Delete a
|
|
2199
|
+
* 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`.
|
|
2200
|
+
* Delete a credential profile
|
|
1836
2201
|
*/
|
|
1837
|
-
async
|
|
1838
|
-
const requestOptions = await this.
|
|
2202
|
+
async deleteCredentialProfileRaw(requestParameters: DeleteCredentialProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileDeletedResponse>> {
|
|
2203
|
+
const requestOptions = await this.deleteCredentialProfileRequestOpts(requestParameters);
|
|
1839
2204
|
const response = await this.request(requestOptions, initOverrides);
|
|
1840
2205
|
|
|
1841
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2206
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileDeletedResponseFromJSON(jsonValue));
|
|
1842
2207
|
}
|
|
1843
2208
|
|
|
1844
2209
|
/**
|
|
1845
|
-
*
|
|
1846
|
-
* Delete a
|
|
2210
|
+
* 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`.
|
|
2211
|
+
* Delete a credential profile
|
|
1847
2212
|
*/
|
|
1848
|
-
async
|
|
1849
|
-
const response = await this.
|
|
2213
|
+
async deleteCredentialProfile(requestParameters: DeleteCredentialProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileDeletedResponse> {
|
|
2214
|
+
const response = await this.deleteCredentialProfileRaw(requestParameters, initOverrides);
|
|
1850
2215
|
return await response.value();
|
|
1851
2216
|
}
|
|
1852
2217
|
|
|
1853
2218
|
/**
|
|
1854
|
-
* Creates request options for
|
|
2219
|
+
* Creates request options for deleteCredentialProfileCustomApi without sending the request
|
|
1855
2220
|
*/
|
|
1856
|
-
async
|
|
1857
|
-
if (requestParameters['
|
|
2221
|
+
async deleteCredentialProfileCustomApiRequestOpts(requestParameters: DeleteCredentialProfileCustomApiRequest): Promise<runtime.RequestOpts> {
|
|
2222
|
+
if (requestParameters['profile'] == null) {
|
|
1858
2223
|
throw new runtime.RequiredError(
|
|
1859
|
-
'
|
|
1860
|
-
'Required parameter "
|
|
2224
|
+
'profile',
|
|
2225
|
+
'Required parameter "profile" was null or undefined when calling deleteCredentialProfileCustomApi().'
|
|
1861
2226
|
);
|
|
1862
2227
|
}
|
|
1863
2228
|
|
|
1864
|
-
if (requestParameters['
|
|
2229
|
+
if (requestParameters['name'] == null) {
|
|
1865
2230
|
throw new runtime.RequiredError(
|
|
1866
|
-
'
|
|
1867
|
-
'Required parameter "
|
|
2231
|
+
'name',
|
|
2232
|
+
'Required parameter "name" was null or undefined when calling deleteCredentialProfileCustomApi().'
|
|
1868
2233
|
);
|
|
1869
2234
|
}
|
|
1870
2235
|
|
|
@@ -1881,9 +2246,9 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1881
2246
|
}
|
|
1882
2247
|
}
|
|
1883
2248
|
|
|
1884
|
-
let urlPath = `/
|
|
1885
|
-
urlPath = urlPath.replace('{
|
|
1886
|
-
urlPath = urlPath.replace('{
|
|
2249
|
+
let urlPath = `/credential-profiles/{profile}/custom-apis/{name}`;
|
|
2250
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
2251
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1887
2252
|
|
|
1888
2253
|
return {
|
|
1889
2254
|
path: urlPath,
|
|
@@ -1894,30 +2259,219 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1894
2259
|
}
|
|
1895
2260
|
|
|
1896
2261
|
/**
|
|
1897
|
-
* Removes one
|
|
1898
|
-
* Remove a
|
|
2262
|
+
* Removes one custom API from the profile. Needs an API key with `account.admin`.
|
|
2263
|
+
* Remove a custom API
|
|
1899
2264
|
*/
|
|
1900
|
-
async
|
|
1901
|
-
const requestOptions = await this.
|
|
2265
|
+
async deleteCredentialProfileCustomApiRaw(requestParameters: DeleteCredentialProfileCustomApiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
2266
|
+
const requestOptions = await this.deleteCredentialProfileCustomApiRequestOpts(requestParameters);
|
|
1902
2267
|
const response = await this.request(requestOptions, initOverrides);
|
|
1903
2268
|
|
|
1904
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2269
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
1905
2270
|
}
|
|
1906
2271
|
|
|
1907
2272
|
/**
|
|
1908
|
-
* Removes one
|
|
1909
|
-
* Remove a
|
|
2273
|
+
* Removes one custom API from the profile. Needs an API key with `account.admin`.
|
|
2274
|
+
* Remove a custom API
|
|
1910
2275
|
*/
|
|
1911
|
-
async
|
|
1912
|
-
const response = await this.
|
|
2276
|
+
async deleteCredentialProfileCustomApi(requestParameters: DeleteCredentialProfileCustomApiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
2277
|
+
const response = await this.deleteCredentialProfileCustomApiRaw(requestParameters, initOverrides);
|
|
1913
2278
|
return await response.value();
|
|
1914
2279
|
}
|
|
1915
2280
|
|
|
1916
2281
|
/**
|
|
1917
|
-
* Creates request options for
|
|
2282
|
+
* Creates request options for deleteCredentialProfileKey without sending the request
|
|
1918
2283
|
*/
|
|
1919
|
-
async
|
|
1920
|
-
if (requestParameters['
|
|
2284
|
+
async deleteCredentialProfileKeyRequestOpts(requestParameters: DeleteCredentialProfileKeyRequest): Promise<runtime.RequestOpts> {
|
|
2285
|
+
if (requestParameters['profile'] == null) {
|
|
2286
|
+
throw new runtime.RequiredError(
|
|
2287
|
+
'profile',
|
|
2288
|
+
'Required parameter "profile" was null or undefined when calling deleteCredentialProfileKey().'
|
|
2289
|
+
);
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
if (requestParameters['credential'] == null) {
|
|
2293
|
+
throw new runtime.RequiredError(
|
|
2294
|
+
'credential',
|
|
2295
|
+
'Required parameter "credential" was null or undefined when calling deleteCredentialProfileKey().'
|
|
2296
|
+
);
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
const queryParameters: any = {};
|
|
2300
|
+
|
|
2301
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2302
|
+
|
|
2303
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2304
|
+
const token = this.configuration.accessToken;
|
|
2305
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2306
|
+
|
|
2307
|
+
if (tokenString) {
|
|
2308
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
let urlPath = `/credential-profiles/{profile}/keys/{credential}`;
|
|
2313
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
2314
|
+
urlPath = urlPath.replace('{credential}', encodeURIComponent(String(requestParameters['credential'])));
|
|
2315
|
+
|
|
2316
|
+
return {
|
|
2317
|
+
path: urlPath,
|
|
2318
|
+
method: 'DELETE',
|
|
2319
|
+
headers: headerParameters,
|
|
2320
|
+
query: queryParameters,
|
|
2321
|
+
};
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* Removes one credential, an API key or a sign-in. Needs an API key with `account.admin`.
|
|
2326
|
+
* Remove a credential profile credential
|
|
2327
|
+
*/
|
|
2328
|
+
async deleteCredentialProfileKeyRaw(requestParameters: DeleteCredentialProfileKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
2329
|
+
const requestOptions = await this.deleteCredentialProfileKeyRequestOpts(requestParameters);
|
|
2330
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2331
|
+
|
|
2332
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* Removes one credential, an API key or a sign-in. Needs an API key with `account.admin`.
|
|
2337
|
+
* Remove a credential profile credential
|
|
2338
|
+
*/
|
|
2339
|
+
async deleteCredentialProfileKey(requestParameters: DeleteCredentialProfileKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
2340
|
+
const response = await this.deleteCredentialProfileKeyRaw(requestParameters, initOverrides);
|
|
2341
|
+
return await response.value();
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
* Creates request options for deleteEnvironment without sending the request
|
|
2346
|
+
*/
|
|
2347
|
+
async deleteEnvironmentRequestOpts(requestParameters: DeleteEnvironmentRequest): Promise<runtime.RequestOpts> {
|
|
2348
|
+
if (requestParameters['environmentId'] == null) {
|
|
2349
|
+
throw new runtime.RequiredError(
|
|
2350
|
+
'environmentId',
|
|
2351
|
+
'Required parameter "environmentId" was null or undefined when calling deleteEnvironment().'
|
|
2352
|
+
);
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
const queryParameters: any = {};
|
|
2356
|
+
|
|
2357
|
+
if (requestParameters['org'] != null) {
|
|
2358
|
+
queryParameters['org'] = requestParameters['org'];
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2362
|
+
|
|
2363
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2364
|
+
const token = this.configuration.accessToken;
|
|
2365
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2366
|
+
|
|
2367
|
+
if (tokenString) {
|
|
2368
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
let urlPath = `/environments/{environmentId}`;
|
|
2373
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
2374
|
+
|
|
2375
|
+
return {
|
|
2376
|
+
path: urlPath,
|
|
2377
|
+
method: 'DELETE',
|
|
2378
|
+
headers: headerParameters,
|
|
2379
|
+
query: queryParameters,
|
|
2380
|
+
};
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
/**
|
|
2384
|
+
* Soft-deletes an environment. The default environment cannot be deleted, and at least one environment is always kept.
|
|
2385
|
+
* Delete a sandbox environment
|
|
2386
|
+
*/
|
|
2387
|
+
async deleteEnvironmentRaw(requestParameters: DeleteEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxEnvironmentResponse>> {
|
|
2388
|
+
const requestOptions = await this.deleteEnvironmentRequestOpts(requestParameters);
|
|
2389
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2390
|
+
|
|
2391
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SandboxEnvironmentResponseFromJSON(jsonValue));
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
/**
|
|
2395
|
+
* Soft-deletes an environment. The default environment cannot be deleted, and at least one environment is always kept.
|
|
2396
|
+
* Delete a sandbox environment
|
|
2397
|
+
*/
|
|
2398
|
+
async deleteEnvironment(requestParameters: DeleteEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxEnvironmentResponse> {
|
|
2399
|
+
const response = await this.deleteEnvironmentRaw(requestParameters, initOverrides);
|
|
2400
|
+
return await response.value();
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
/**
|
|
2404
|
+
* Creates request options for deleteEnvironmentRepo without sending the request
|
|
2405
|
+
*/
|
|
2406
|
+
async deleteEnvironmentRepoRequestOpts(requestParameters: DeleteEnvironmentRepoRequest): Promise<runtime.RequestOpts> {
|
|
2407
|
+
if (requestParameters['environmentId'] == null) {
|
|
2408
|
+
throw new runtime.RequiredError(
|
|
2409
|
+
'environmentId',
|
|
2410
|
+
'Required parameter "environmentId" was null or undefined when calling deleteEnvironmentRepo().'
|
|
2411
|
+
);
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
if (requestParameters['repositoryId'] == null) {
|
|
2415
|
+
throw new runtime.RequiredError(
|
|
2416
|
+
'repositoryId',
|
|
2417
|
+
'Required parameter "repositoryId" was null or undefined when calling deleteEnvironmentRepo().'
|
|
2418
|
+
);
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
const queryParameters: any = {};
|
|
2422
|
+
|
|
2423
|
+
if (requestParameters['org'] != null) {
|
|
2424
|
+
queryParameters['org'] = requestParameters['org'];
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2428
|
+
|
|
2429
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2430
|
+
const token = this.configuration.accessToken;
|
|
2431
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2432
|
+
|
|
2433
|
+
if (tokenString) {
|
|
2434
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
let urlPath = `/environments/{environmentId}/repos/{repositoryId}`;
|
|
2439
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
2440
|
+
urlPath = urlPath.replace('{repositoryId}', encodeURIComponent(String(requestParameters['repositoryId'])));
|
|
2441
|
+
|
|
2442
|
+
return {
|
|
2443
|
+
path: urlPath,
|
|
2444
|
+
method: 'DELETE',
|
|
2445
|
+
headers: headerParameters,
|
|
2446
|
+
query: queryParameters,
|
|
2447
|
+
};
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* Removes one repository from the environment\'s selection. Mints a new immutable version.
|
|
2452
|
+
* Remove a repository from an environment
|
|
2453
|
+
*/
|
|
2454
|
+
async deleteEnvironmentRepoRaw(requestParameters: DeleteEnvironmentRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnvironmentItemChangeResponse>> {
|
|
2455
|
+
const requestOptions = await this.deleteEnvironmentRepoRequestOpts(requestParameters);
|
|
2456
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2457
|
+
|
|
2458
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EnvironmentItemChangeResponseFromJSON(jsonValue));
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
/**
|
|
2462
|
+
* Removes one repository from the environment\'s selection. Mints a new immutable version.
|
|
2463
|
+
* Remove a repository from an environment
|
|
2464
|
+
*/
|
|
2465
|
+
async deleteEnvironmentRepo(requestParameters: DeleteEnvironmentRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnvironmentItemChangeResponse> {
|
|
2466
|
+
const response = await this.deleteEnvironmentRepoRaw(requestParameters, initOverrides);
|
|
2467
|
+
return await response.value();
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* Creates request options for deleteEnvironmentSecretFile without sending the request
|
|
2472
|
+
*/
|
|
2473
|
+
async deleteEnvironmentSecretFileRequestOpts(requestParameters: DeleteEnvironmentSecretFileRequest): Promise<runtime.RequestOpts> {
|
|
2474
|
+
if (requestParameters['path'] == null) {
|
|
1921
2475
|
throw new runtime.RequiredError(
|
|
1922
2476
|
'path',
|
|
1923
2477
|
'Required parameter "path" was null or undefined when calling deleteEnvironmentSecretFile().'
|
|
@@ -1937,6 +2491,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1937
2491
|
queryParameters['path'] = requestParameters['path'];
|
|
1938
2492
|
}
|
|
1939
2493
|
|
|
2494
|
+
if (requestParameters['org'] != null) {
|
|
2495
|
+
queryParameters['org'] = requestParameters['org'];
|
|
2496
|
+
}
|
|
2497
|
+
|
|
1940
2498
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1941
2499
|
|
|
1942
2500
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -1999,6 +2557,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1999
2557
|
|
|
2000
2558
|
const queryParameters: any = {};
|
|
2001
2559
|
|
|
2560
|
+
if (requestParameters['org'] != null) {
|
|
2561
|
+
queryParameters['org'] = requestParameters['org'];
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2002
2564
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2003
2565
|
|
|
2004
2566
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -2467,9 +3029,13 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2467
3029
|
/**
|
|
2468
3030
|
* Creates request options for environments without sending the request
|
|
2469
3031
|
*/
|
|
2470
|
-
async environmentsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
3032
|
+
async environmentsRequestOpts(requestParameters: EnvironmentsRequest): Promise<runtime.RequestOpts> {
|
|
2471
3033
|
const queryParameters: any = {};
|
|
2472
3034
|
|
|
3035
|
+
if (requestParameters['org'] != null) {
|
|
3036
|
+
queryParameters['org'] = requestParameters['org'];
|
|
3037
|
+
}
|
|
3038
|
+
|
|
2473
3039
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2474
3040
|
|
|
2475
3041
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -2495,8 +3061,8 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2495
3061
|
* 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.
|
|
2496
3062
|
* List Sandbox environments
|
|
2497
3063
|
*/
|
|
2498
|
-
async environmentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxEnvironmentListResponse>> {
|
|
2499
|
-
const requestOptions = await this.environmentsRequestOpts();
|
|
3064
|
+
async environmentsRaw(requestParameters: EnvironmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxEnvironmentListResponse>> {
|
|
3065
|
+
const requestOptions = await this.environmentsRequestOpts(requestParameters);
|
|
2500
3066
|
const response = await this.request(requestOptions, initOverrides);
|
|
2501
3067
|
|
|
2502
3068
|
return new runtime.JSONApiResponse(response, (jsonValue) => SandboxEnvironmentListResponseFromJSON(jsonValue));
|
|
@@ -2506,8 +3072,8 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2506
3072
|
* 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.
|
|
2507
3073
|
* List Sandbox environments
|
|
2508
3074
|
*/
|
|
2509
|
-
async environments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxEnvironmentListResponse> {
|
|
2510
|
-
const response = await this.environmentsRaw(initOverrides);
|
|
3075
|
+
async environments(requestParameters: EnvironmentsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxEnvironmentListResponse> {
|
|
3076
|
+
const response = await this.environmentsRaw(requestParameters, initOverrides);
|
|
2511
3077
|
return await response.value();
|
|
2512
3078
|
}
|
|
2513
3079
|
|
|
@@ -2704,6 +3270,124 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2704
3270
|
return await response.value();
|
|
2705
3271
|
}
|
|
2706
3272
|
|
|
3273
|
+
/**
|
|
3274
|
+
* Creates request options for getAiProxy without sending the request
|
|
3275
|
+
*/
|
|
3276
|
+
async getAiProxyRequestOpts(requestParameters: GetAiProxyRequest): Promise<runtime.RequestOpts> {
|
|
3277
|
+
const queryParameters: any = {};
|
|
3278
|
+
|
|
3279
|
+
if (requestParameters['org'] != null) {
|
|
3280
|
+
queryParameters['org'] = requestParameters['org'];
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3284
|
+
|
|
3285
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
3286
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3290
|
+
const token = this.configuration.accessToken;
|
|
3291
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3292
|
+
|
|
3293
|
+
if (tokenString) {
|
|
3294
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
let urlPath = `/ai-proxy`;
|
|
3299
|
+
|
|
3300
|
+
return {
|
|
3301
|
+
path: urlPath,
|
|
3302
|
+
method: 'GET',
|
|
3303
|
+
headers: headerParameters,
|
|
3304
|
+
query: queryParameters,
|
|
3305
|
+
};
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
/**
|
|
3309
|
+
* 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`.
|
|
3310
|
+
* Get AI credentials proxy
|
|
3311
|
+
*/
|
|
3312
|
+
async getAiProxyRaw(requestParameters: GetAiProxyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiProxySettings>> {
|
|
3313
|
+
const requestOptions = await this.getAiProxyRequestOpts(requestParameters);
|
|
3314
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3315
|
+
|
|
3316
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AiProxySettingsFromJSON(jsonValue));
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* 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`.
|
|
3321
|
+
* Get AI credentials proxy
|
|
3322
|
+
*/
|
|
3323
|
+
async getAiProxy(requestParameters: GetAiProxyRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiProxySettings> {
|
|
3324
|
+
const response = await this.getAiProxyRaw(requestParameters, initOverrides);
|
|
3325
|
+
return await response.value();
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
/**
|
|
3329
|
+
* Creates request options for getAiUsage without sending the request
|
|
3330
|
+
*/
|
|
3331
|
+
async getAiUsageRequestOpts(requestParameters: GetAiUsageRequest): Promise<runtime.RequestOpts> {
|
|
3332
|
+
const queryParameters: any = {};
|
|
3333
|
+
|
|
3334
|
+
if (requestParameters['days'] != null) {
|
|
3335
|
+
queryParameters['days'] = requestParameters['days'];
|
|
3336
|
+
}
|
|
3337
|
+
|
|
3338
|
+
if (requestParameters['profile'] != null) {
|
|
3339
|
+
queryParameters['profile'] = requestParameters['profile'];
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3342
|
+
if (requestParameters['org'] != null) {
|
|
3343
|
+
queryParameters['org'] = requestParameters['org'];
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3347
|
+
|
|
3348
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
3349
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3353
|
+
const token = this.configuration.accessToken;
|
|
3354
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3355
|
+
|
|
3356
|
+
if (tokenString) {
|
|
3357
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3358
|
+
}
|
|
3359
|
+
}
|
|
3360
|
+
|
|
3361
|
+
let urlPath = `/ai-usage`;
|
|
3362
|
+
|
|
3363
|
+
return {
|
|
3364
|
+
path: urlPath,
|
|
3365
|
+
method: 'GET',
|
|
3366
|
+
headers: headerParameters,
|
|
3367
|
+
query: queryParameters,
|
|
3368
|
+
};
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
/**
|
|
3372
|
+
* 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`.
|
|
3373
|
+
* Get AI usage
|
|
3374
|
+
*/
|
|
3375
|
+
async getAiUsageRaw(requestParameters: GetAiUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountAiUsageResponse>> {
|
|
3376
|
+
const requestOptions = await this.getAiUsageRequestOpts(requestParameters);
|
|
3377
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3378
|
+
|
|
3379
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountAiUsageResponseFromJSON(jsonValue));
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
/**
|
|
3383
|
+
* 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`.
|
|
3384
|
+
* Get AI usage
|
|
3385
|
+
*/
|
|
3386
|
+
async getAiUsage(requestParameters: GetAiUsageRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountAiUsageResponse> {
|
|
3387
|
+
const response = await this.getAiUsageRaw(requestParameters, initOverrides);
|
|
3388
|
+
return await response.value();
|
|
3389
|
+
}
|
|
3390
|
+
|
|
2707
3391
|
/**
|
|
2708
3392
|
* Creates request options for getCommand without sending the request
|
|
2709
3393
|
*/
|
|
@@ -2975,6 +3659,65 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2975
3659
|
return await response.value();
|
|
2976
3660
|
}
|
|
2977
3661
|
|
|
3662
|
+
/**
|
|
3663
|
+
* Creates request options for getSandboxAiUsage without sending the request
|
|
3664
|
+
*/
|
|
3665
|
+
async getSandboxAiUsageRequestOpts(requestParameters: GetSandboxAiUsageRequest): Promise<runtime.RequestOpts> {
|
|
3666
|
+
if (requestParameters['sandboxId'] == null) {
|
|
3667
|
+
throw new runtime.RequiredError(
|
|
3668
|
+
'sandboxId',
|
|
3669
|
+
'Required parameter "sandboxId" was null or undefined when calling getSandboxAiUsage().'
|
|
3670
|
+
);
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
const queryParameters: any = {};
|
|
3674
|
+
|
|
3675
|
+
if (requestParameters['days'] != null) {
|
|
3676
|
+
queryParameters['days'] = requestParameters['days'];
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3679
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3680
|
+
|
|
3681
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3682
|
+
const token = this.configuration.accessToken;
|
|
3683
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3684
|
+
|
|
3685
|
+
if (tokenString) {
|
|
3686
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3687
|
+
}
|
|
3688
|
+
}
|
|
3689
|
+
|
|
3690
|
+
let urlPath = `/sandboxes/{sandboxId}/ai-usage`;
|
|
3691
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
3692
|
+
|
|
3693
|
+
return {
|
|
3694
|
+
path: urlPath,
|
|
3695
|
+
method: 'GET',
|
|
3696
|
+
headers: headerParameters,
|
|
3697
|
+
query: queryParameters,
|
|
3698
|
+
};
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* 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.
|
|
3703
|
+
* Get sandbox AI usage
|
|
3704
|
+
*/
|
|
3705
|
+
async getSandboxAiUsageRaw(requestParameters: GetSandboxAiUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxAiUsageResponse>> {
|
|
3706
|
+
const requestOptions = await this.getSandboxAiUsageRequestOpts(requestParameters);
|
|
3707
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3708
|
+
|
|
3709
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SandboxAiUsageResponseFromJSON(jsonValue));
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
/**
|
|
3713
|
+
* 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.
|
|
3714
|
+
* Get sandbox AI usage
|
|
3715
|
+
*/
|
|
3716
|
+
async getSandboxAiUsage(requestParameters: GetSandboxAiUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxAiUsageResponse> {
|
|
3717
|
+
const response = await this.getSandboxAiUsageRaw(requestParameters, initOverrides);
|
|
3718
|
+
return await response.value();
|
|
3719
|
+
}
|
|
3720
|
+
|
|
2978
3721
|
/**
|
|
2979
3722
|
* Creates request options for getSnapshotDownload without sending the request
|
|
2980
3723
|
*/
|
|
@@ -3493,6 +4236,53 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
3493
4236
|
return await response.value();
|
|
3494
4237
|
}
|
|
3495
4238
|
|
|
4239
|
+
/**
|
|
4240
|
+
* Creates request options for listCredentialProfiles without sending the request
|
|
4241
|
+
*/
|
|
4242
|
+
async listCredentialProfilesRequestOpts(): Promise<runtime.RequestOpts> {
|
|
4243
|
+
const queryParameters: any = {};
|
|
4244
|
+
|
|
4245
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4246
|
+
|
|
4247
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4248
|
+
const token = this.configuration.accessToken;
|
|
4249
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
4250
|
+
|
|
4251
|
+
if (tokenString) {
|
|
4252
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4253
|
+
}
|
|
4254
|
+
}
|
|
4255
|
+
|
|
4256
|
+
let urlPath = `/credential-profiles`;
|
|
4257
|
+
|
|
4258
|
+
return {
|
|
4259
|
+
path: urlPath,
|
|
4260
|
+
method: 'GET',
|
|
4261
|
+
headers: headerParameters,
|
|
4262
|
+
query: queryParameters,
|
|
4263
|
+
};
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
/**
|
|
4267
|
+
* Returns every AI credential profile you can use, yours and your organizations\'. Secret values are never returned. Needs an API key with `account.admin`.
|
|
4268
|
+
* List credential profiles
|
|
4269
|
+
*/
|
|
4270
|
+
async listCredentialProfilesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileListResponse>> {
|
|
4271
|
+
const requestOptions = await this.listCredentialProfilesRequestOpts();
|
|
4272
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4273
|
+
|
|
4274
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileListResponseFromJSON(jsonValue));
|
|
4275
|
+
}
|
|
4276
|
+
|
|
4277
|
+
/**
|
|
4278
|
+
* Returns every AI credential profile you can use, yours and your organizations\'. Secret values are never returned. Needs an API key with `account.admin`.
|
|
4279
|
+
* List credential profiles
|
|
4280
|
+
*/
|
|
4281
|
+
async listCredentialProfiles(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileListResponse> {
|
|
4282
|
+
const response = await this.listCredentialProfilesRaw(initOverrides);
|
|
4283
|
+
return await response.value();
|
|
4284
|
+
}
|
|
4285
|
+
|
|
3496
4286
|
/**
|
|
3497
4287
|
* Creates request options for listNamedSnapshots without sending the request
|
|
3498
4288
|
*/
|
|
@@ -4097,7 +4887,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4097
4887
|
}
|
|
4098
4888
|
|
|
4099
4889
|
/**
|
|
4100
|
-
* Files up to 5 MiB.
|
|
4890
|
+
* Files up to 5 MiB. For a larger file, use `POST /sandboxes/{sandboxId}/files/download-url`.
|
|
4101
4891
|
* Read a file from a sandbox
|
|
4102
4892
|
*/
|
|
4103
4893
|
async readFileRaw(requestParameters: ReadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileReadResponse>> {
|
|
@@ -4108,7 +4898,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4108
4898
|
}
|
|
4109
4899
|
|
|
4110
4900
|
/**
|
|
4111
|
-
* Files up to 5 MiB.
|
|
4901
|
+
* Files up to 5 MiB. For a larger file, use `POST /sandboxes/{sandboxId}/files/download-url`.
|
|
4112
4902
|
* Read a file from a sandbox
|
|
4113
4903
|
*/
|
|
4114
4904
|
async readFile(requestParameters: ReadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileReadResponse> {
|
|
@@ -4651,19 +5441,134 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4651
5441
|
* Freeze a sandbox\'s current state under a name (`boat snapshot <id> <name>` in the CLI). Answers `202` immediately with the snapshot in `saving`; a running sandbox takes a fresh capture first, which can run minutes. Poll `GET /named-snapshots/{name}` until the status settles at `ready` or `failed`. Reusing one of your existing names replaces that snapshot\'s artifact once the new save is ready.
|
|
4652
5442
|
* Save a named snapshot
|
|
4653
5443
|
*/
|
|
4654
|
-
async saveNamedSnapshot(requestParameters: SaveNamedSnapshotRequest | runtime.FlatBody<SaveNamedSnapshotRequest, 'namedSnapshotSaveRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamedSnapshotSavingResponse> {
|
|
4655
|
-
const response = await this.saveNamedSnapshotRaw(requestParameters, initOverrides);
|
|
5444
|
+
async saveNamedSnapshot(requestParameters: SaveNamedSnapshotRequest | runtime.FlatBody<SaveNamedSnapshotRequest, 'namedSnapshotSaveRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamedSnapshotSavingResponse> {
|
|
5445
|
+
const response = await this.saveNamedSnapshotRaw(requestParameters, initOverrides);
|
|
5446
|
+
return await response.value();
|
|
5447
|
+
}
|
|
5448
|
+
|
|
5449
|
+
/**
|
|
5450
|
+
* Creates request options for secrets without sending the request
|
|
5451
|
+
*/
|
|
5452
|
+
async secretsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
5453
|
+
const queryParameters: any = {};
|
|
5454
|
+
|
|
5455
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5456
|
+
|
|
5457
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5458
|
+
const token = this.configuration.accessToken;
|
|
5459
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
5460
|
+
|
|
5461
|
+
if (tokenString) {
|
|
5462
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5463
|
+
}
|
|
5464
|
+
}
|
|
5465
|
+
|
|
5466
|
+
let urlPath = `/secrets`;
|
|
5467
|
+
|
|
5468
|
+
return {
|
|
5469
|
+
path: urlPath,
|
|
5470
|
+
method: 'GET',
|
|
5471
|
+
headers: headerParameters,
|
|
5472
|
+
query: queryParameters,
|
|
5473
|
+
};
|
|
5474
|
+
}
|
|
5475
|
+
|
|
5476
|
+
/**
|
|
5477
|
+
* Returns the environment variables and secret files configured for sandboxes.
|
|
5478
|
+
* Get Boat secrets setup
|
|
5479
|
+
*/
|
|
5480
|
+
async secretsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SecretsResponse>> {
|
|
5481
|
+
const requestOptions = await this.secretsRequestOpts();
|
|
5482
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5483
|
+
|
|
5484
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SecretsResponseFromJSON(jsonValue));
|
|
5485
|
+
}
|
|
5486
|
+
|
|
5487
|
+
/**
|
|
5488
|
+
* Returns the environment variables and secret files configured for sandboxes.
|
|
5489
|
+
* Get Boat secrets setup
|
|
5490
|
+
*/
|
|
5491
|
+
async secrets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SecretsResponse> {
|
|
5492
|
+
const response = await this.secretsRaw(initOverrides);
|
|
5493
|
+
return await response.value();
|
|
5494
|
+
}
|
|
5495
|
+
|
|
5496
|
+
/**
|
|
5497
|
+
* Creates request options for selectRepo without sending the request
|
|
5498
|
+
*/
|
|
5499
|
+
async selectRepoRequestOpts(input: SelectRepoRequest | runtime.FlatBody<SelectRepoRequest, 'repoSelectionRequest'>): Promise<runtime.RequestOpts> {
|
|
5500
|
+
const requestParameters = runtime.unflattenBody<SelectRepoRequest>(input, 'repoSelectionRequest', [], []);
|
|
5501
|
+
if (requestParameters['repoSelectionRequest'] == null) {
|
|
5502
|
+
throw new runtime.RequiredError(
|
|
5503
|
+
'repoSelectionRequest',
|
|
5504
|
+
'Required parameter "repoSelectionRequest" was null or undefined when calling selectRepo().'
|
|
5505
|
+
);
|
|
5506
|
+
}
|
|
5507
|
+
|
|
5508
|
+
const queryParameters: any = {};
|
|
5509
|
+
|
|
5510
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5511
|
+
|
|
5512
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5513
|
+
|
|
5514
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5515
|
+
const token = this.configuration.accessToken;
|
|
5516
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
5517
|
+
|
|
5518
|
+
if (tokenString) {
|
|
5519
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5520
|
+
}
|
|
5521
|
+
}
|
|
5522
|
+
|
|
5523
|
+
let urlPath = `/repos`;
|
|
5524
|
+
|
|
5525
|
+
return {
|
|
5526
|
+
path: urlPath,
|
|
5527
|
+
method: 'POST',
|
|
5528
|
+
headers: headerParameters,
|
|
5529
|
+
query: queryParameters,
|
|
5530
|
+
body: RepoSelectionRequestToJSON(requestParameters['repoSelectionRequest']),
|
|
5531
|
+
};
|
|
5532
|
+
}
|
|
5533
|
+
|
|
5534
|
+
/**
|
|
5535
|
+
* Idempotently selects one repository for the sandbox environment. Use `databaseId` from `GET /repos` as `repositoryId`; selecting an already-selected repository updates its `baseBranch`.
|
|
5536
|
+
* Select repository for sandboxes
|
|
5537
|
+
*/
|
|
5538
|
+
async selectRepoRaw(requestParameters: SelectRepoRequest | runtime.FlatBody<SelectRepoRequest, 'repoSelectionRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RepoSelectionResponse>> {
|
|
5539
|
+
const requestOptions = await this.selectRepoRequestOpts(requestParameters);
|
|
5540
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5541
|
+
|
|
5542
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RepoSelectionResponseFromJSON(jsonValue));
|
|
5543
|
+
}
|
|
5544
|
+
|
|
5545
|
+
/**
|
|
5546
|
+
* Idempotently selects one repository for the sandbox environment. Use `databaseId` from `GET /repos` as `repositoryId`; selecting an already-selected repository updates its `baseBranch`.
|
|
5547
|
+
* Select repository for sandboxes
|
|
5548
|
+
*/
|
|
5549
|
+
async selectRepo(requestParameters: SelectRepoRequest | runtime.FlatBody<SelectRepoRequest, 'repoSelectionRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RepoSelectionResponse> {
|
|
5550
|
+
const response = await this.selectRepoRaw(requestParameters, initOverrides);
|
|
4656
5551
|
return await response.value();
|
|
4657
5552
|
}
|
|
4658
5553
|
|
|
4659
5554
|
/**
|
|
4660
|
-
* Creates request options for
|
|
5555
|
+
* Creates request options for setActiveOrganization without sending the request
|
|
4661
5556
|
*/
|
|
4662
|
-
async
|
|
5557
|
+
async setActiveOrganizationRequestOpts(input: SetActiveOrganizationRequest | runtime.FlatBody<SetActiveOrganizationRequest, 'activeOrgUpdateRequest'>): Promise<runtime.RequestOpts> {
|
|
5558
|
+
const requestParameters = runtime.unflattenBody<SetActiveOrganizationRequest>(input, 'activeOrgUpdateRequest', [], []);
|
|
5559
|
+
if (requestParameters['activeOrgUpdateRequest'] == null) {
|
|
5560
|
+
throw new runtime.RequiredError(
|
|
5561
|
+
'activeOrgUpdateRequest',
|
|
5562
|
+
'Required parameter "activeOrgUpdateRequest" was null or undefined when calling setActiveOrganization().'
|
|
5563
|
+
);
|
|
5564
|
+
}
|
|
5565
|
+
|
|
4663
5566
|
const queryParameters: any = {};
|
|
4664
5567
|
|
|
4665
5568
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
4666
5569
|
|
|
5570
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5571
|
+
|
|
4667
5572
|
if (this.configuration && this.configuration.accessToken) {
|
|
4668
5573
|
const token = this.configuration.accessToken;
|
|
4669
5574
|
const tokenString = await token("BoatBearerAuth", []);
|
|
@@ -4673,45 +5578,60 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4673
5578
|
}
|
|
4674
5579
|
}
|
|
4675
5580
|
|
|
4676
|
-
let urlPath = `/
|
|
5581
|
+
let urlPath = `/orgs/active`;
|
|
4677
5582
|
|
|
4678
5583
|
return {
|
|
4679
5584
|
path: urlPath,
|
|
4680
|
-
method: '
|
|
5585
|
+
method: 'PATCH',
|
|
4681
5586
|
headers: headerParameters,
|
|
4682
5587
|
query: queryParameters,
|
|
5588
|
+
body: ActiveOrgUpdateRequestToJSON(requestParameters['activeOrgUpdateRequest']),
|
|
4683
5589
|
};
|
|
4684
5590
|
}
|
|
4685
5591
|
|
|
4686
5592
|
/**
|
|
4687
|
-
*
|
|
4688
|
-
*
|
|
5593
|
+
* 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.
|
|
5594
|
+
* Set the active organization
|
|
4689
5595
|
*/
|
|
4690
|
-
async
|
|
4691
|
-
const requestOptions = await this.
|
|
5596
|
+
async setActiveOrganizationRaw(requestParameters: SetActiveOrganizationRequest | runtime.FlatBody<SetActiveOrganizationRequest, 'activeOrgUpdateRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ActiveOrgResponse>> {
|
|
5597
|
+
const requestOptions = await this.setActiveOrganizationRequestOpts(requestParameters);
|
|
4692
5598
|
const response = await this.request(requestOptions, initOverrides);
|
|
4693
5599
|
|
|
4694
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
5600
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ActiveOrgResponseFromJSON(jsonValue));
|
|
4695
5601
|
}
|
|
4696
5602
|
|
|
4697
5603
|
/**
|
|
4698
|
-
*
|
|
4699
|
-
*
|
|
5604
|
+
* 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.
|
|
5605
|
+
* Set the active organization
|
|
4700
5606
|
*/
|
|
4701
|
-
async
|
|
4702
|
-
const response = await this.
|
|
5607
|
+
async setActiveOrganization(requestParameters: SetActiveOrganizationRequest | runtime.FlatBody<SetActiveOrganizationRequest, 'activeOrgUpdateRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ActiveOrgResponse> {
|
|
5608
|
+
const response = await this.setActiveOrganizationRaw(requestParameters, initOverrides);
|
|
4703
5609
|
return await response.value();
|
|
4704
5610
|
}
|
|
4705
5611
|
|
|
4706
5612
|
/**
|
|
4707
|
-
* Creates request options for
|
|
5613
|
+
* Creates request options for setCredentialProfileCustomApi without sending the request
|
|
4708
5614
|
*/
|
|
4709
|
-
async
|
|
4710
|
-
const requestParameters = runtime.unflattenBody<
|
|
4711
|
-
if (requestParameters['
|
|
5615
|
+
async setCredentialProfileCustomApiRequestOpts(input: SetCredentialProfileCustomApiRequest | runtime.FlatBody<SetCredentialProfileCustomApiRequest, 'setCustomApiRequest'>): Promise<runtime.RequestOpts> {
|
|
5616
|
+
const requestParameters = runtime.unflattenBody<SetCredentialProfileCustomApiRequest>(input, 'setCustomApiRequest', ['profile', 'name'], []);
|
|
5617
|
+
if (requestParameters['profile'] == null) {
|
|
4712
5618
|
throw new runtime.RequiredError(
|
|
4713
|
-
'
|
|
4714
|
-
'Required parameter "
|
|
5619
|
+
'profile',
|
|
5620
|
+
'Required parameter "profile" was null or undefined when calling setCredentialProfileCustomApi().'
|
|
5621
|
+
);
|
|
5622
|
+
}
|
|
5623
|
+
|
|
5624
|
+
if (requestParameters['name'] == null) {
|
|
5625
|
+
throw new runtime.RequiredError(
|
|
5626
|
+
'name',
|
|
5627
|
+
'Required parameter "name" was null or undefined when calling setCredentialProfileCustomApi().'
|
|
5628
|
+
);
|
|
5629
|
+
}
|
|
5630
|
+
|
|
5631
|
+
if (requestParameters['setCustomApiRequest'] == null) {
|
|
5632
|
+
throw new runtime.RequiredError(
|
|
5633
|
+
'setCustomApiRequest',
|
|
5634
|
+
'Required parameter "setCustomApiRequest" was null or undefined when calling setCredentialProfileCustomApi().'
|
|
4715
5635
|
);
|
|
4716
5636
|
}
|
|
4717
5637
|
|
|
@@ -4730,46 +5650,62 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4730
5650
|
}
|
|
4731
5651
|
}
|
|
4732
5652
|
|
|
4733
|
-
let urlPath = `/
|
|
5653
|
+
let urlPath = `/credential-profiles/{profile}/custom-apis/{name}`;
|
|
5654
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
5655
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
4734
5656
|
|
|
4735
5657
|
return {
|
|
4736
5658
|
path: urlPath,
|
|
4737
|
-
method: '
|
|
5659
|
+
method: 'PUT',
|
|
4738
5660
|
headers: headerParameters,
|
|
4739
5661
|
query: queryParameters,
|
|
4740
|
-
body:
|
|
5662
|
+
body: SetCustomApiRequestToJSON(requestParameters['setCustomApiRequest']),
|
|
4741
5663
|
};
|
|
4742
5664
|
}
|
|
4743
5665
|
|
|
4744
5666
|
/**
|
|
4745
|
-
*
|
|
4746
|
-
*
|
|
5667
|
+
* Adds or replaces one custom API. The sandbox gets `<NAME>` and `<NAME>_BASE_URL`. Needs an API key with `account.admin`.
|
|
5668
|
+
* Set a custom API
|
|
4747
5669
|
*/
|
|
4748
|
-
async
|
|
4749
|
-
const requestOptions = await this.
|
|
5670
|
+
async setCredentialProfileCustomApiRaw(requestParameters: SetCredentialProfileCustomApiRequest | runtime.FlatBody<SetCredentialProfileCustomApiRequest, 'setCustomApiRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
5671
|
+
const requestOptions = await this.setCredentialProfileCustomApiRequestOpts(requestParameters);
|
|
4750
5672
|
const response = await this.request(requestOptions, initOverrides);
|
|
4751
5673
|
|
|
4752
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
5674
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
4753
5675
|
}
|
|
4754
5676
|
|
|
4755
5677
|
/**
|
|
4756
|
-
*
|
|
4757
|
-
*
|
|
5678
|
+
* Adds or replaces one custom API. The sandbox gets `<NAME>` and `<NAME>_BASE_URL`. Needs an API key with `account.admin`.
|
|
5679
|
+
* Set a custom API
|
|
4758
5680
|
*/
|
|
4759
|
-
async
|
|
4760
|
-
const response = await this.
|
|
5681
|
+
async setCredentialProfileCustomApi(requestParameters: SetCredentialProfileCustomApiRequest | runtime.FlatBody<SetCredentialProfileCustomApiRequest, 'setCustomApiRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
5682
|
+
const response = await this.setCredentialProfileCustomApiRaw(requestParameters, initOverrides);
|
|
4761
5683
|
return await response.value();
|
|
4762
5684
|
}
|
|
4763
5685
|
|
|
4764
5686
|
/**
|
|
4765
|
-
* Creates request options for
|
|
5687
|
+
* Creates request options for setCredentialProfileKey without sending the request
|
|
4766
5688
|
*/
|
|
4767
|
-
async
|
|
4768
|
-
const requestParameters = runtime.unflattenBody<
|
|
4769
|
-
if (requestParameters['
|
|
5689
|
+
async setCredentialProfileKeyRequestOpts(input: SetCredentialProfileKeyRequest | runtime.FlatBody<SetCredentialProfileKeyRequest, 'setCredentialKeyRequest'>): Promise<runtime.RequestOpts> {
|
|
5690
|
+
const requestParameters = runtime.unflattenBody<SetCredentialProfileKeyRequest>(input, 'setCredentialKeyRequest', ['profile', 'credential'], []);
|
|
5691
|
+
if (requestParameters['profile'] == null) {
|
|
4770
5692
|
throw new runtime.RequiredError(
|
|
4771
|
-
'
|
|
4772
|
-
'Required parameter "
|
|
5693
|
+
'profile',
|
|
5694
|
+
'Required parameter "profile" was null or undefined when calling setCredentialProfileKey().'
|
|
5695
|
+
);
|
|
5696
|
+
}
|
|
5697
|
+
|
|
5698
|
+
if (requestParameters['credential'] == null) {
|
|
5699
|
+
throw new runtime.RequiredError(
|
|
5700
|
+
'credential',
|
|
5701
|
+
'Required parameter "credential" was null or undefined when calling setCredentialProfileKey().'
|
|
5702
|
+
);
|
|
5703
|
+
}
|
|
5704
|
+
|
|
5705
|
+
if (requestParameters['setCredentialKeyRequest'] == null) {
|
|
5706
|
+
throw new runtime.RequiredError(
|
|
5707
|
+
'setCredentialKeyRequest',
|
|
5708
|
+
'Required parameter "setCredentialKeyRequest" was null or undefined when calling setCredentialProfileKey().'
|
|
4773
5709
|
);
|
|
4774
5710
|
}
|
|
4775
5711
|
|
|
@@ -4788,34 +5724,36 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4788
5724
|
}
|
|
4789
5725
|
}
|
|
4790
5726
|
|
|
4791
|
-
let urlPath = `/
|
|
5727
|
+
let urlPath = `/credential-profiles/{profile}/keys/{credential}`;
|
|
5728
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
5729
|
+
urlPath = urlPath.replace('{credential}', encodeURIComponent(String(requestParameters['credential'])));
|
|
4792
5730
|
|
|
4793
5731
|
return {
|
|
4794
5732
|
path: urlPath,
|
|
4795
|
-
method: '
|
|
5733
|
+
method: 'PUT',
|
|
4796
5734
|
headers: headerParameters,
|
|
4797
5735
|
query: queryParameters,
|
|
4798
|
-
body:
|
|
5736
|
+
body: SetCredentialKeyRequestToJSON(requestParameters['setCredentialKeyRequest']),
|
|
4799
5737
|
};
|
|
4800
5738
|
}
|
|
4801
5739
|
|
|
4802
5740
|
/**
|
|
4803
|
-
*
|
|
4804
|
-
* Set
|
|
5741
|
+
* 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`.
|
|
5742
|
+
* Set a credential profile API key
|
|
4805
5743
|
*/
|
|
4806
|
-
async
|
|
4807
|
-
const requestOptions = await this.
|
|
5744
|
+
async setCredentialProfileKeyRaw(requestParameters: SetCredentialProfileKeyRequest | runtime.FlatBody<SetCredentialProfileKeyRequest, 'setCredentialKeyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
5745
|
+
const requestOptions = await this.setCredentialProfileKeyRequestOpts(requestParameters);
|
|
4808
5746
|
const response = await this.request(requestOptions, initOverrides);
|
|
4809
5747
|
|
|
4810
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
5748
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
4811
5749
|
}
|
|
4812
5750
|
|
|
4813
5751
|
/**
|
|
4814
|
-
*
|
|
4815
|
-
* Set
|
|
5752
|
+
* 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`.
|
|
5753
|
+
* Set a credential profile API key
|
|
4816
5754
|
*/
|
|
4817
|
-
async
|
|
4818
|
-
const response = await this.
|
|
5755
|
+
async setCredentialProfileKey(requestParameters: SetCredentialProfileKeyRequest | runtime.FlatBody<SetCredentialProfileKeyRequest, 'setCredentialKeyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
5756
|
+
const response = await this.setCredentialProfileKeyRaw(requestParameters, initOverrides);
|
|
4819
5757
|
return await response.value();
|
|
4820
5758
|
}
|
|
4821
5759
|
|
|
@@ -4823,7 +5761,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4823
5761
|
* Creates request options for setEnvironmentSecretFile without sending the request
|
|
4824
5762
|
*/
|
|
4825
5763
|
async setEnvironmentSecretFileRequestOpts(input: SetEnvironmentSecretFileOperationRequest | runtime.FlatBody<SetEnvironmentSecretFileOperationRequest, 'setEnvironmentSecretFileRequest'>): Promise<runtime.RequestOpts> {
|
|
4826
|
-
const requestParameters = runtime.unflattenBody<SetEnvironmentSecretFileOperationRequest>(input, 'setEnvironmentSecretFileRequest', ['environmentId'], []);
|
|
5764
|
+
const requestParameters = runtime.unflattenBody<SetEnvironmentSecretFileOperationRequest>(input, 'setEnvironmentSecretFileRequest', ['environmentId', 'org'], []);
|
|
4827
5765
|
if (requestParameters['environmentId'] == null) {
|
|
4828
5766
|
throw new runtime.RequiredError(
|
|
4829
5767
|
'environmentId',
|
|
@@ -4840,6 +5778,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4840
5778
|
|
|
4841
5779
|
const queryParameters: any = {};
|
|
4842
5780
|
|
|
5781
|
+
if (requestParameters['org'] != null) {
|
|
5782
|
+
queryParameters['org'] = requestParameters['org'];
|
|
5783
|
+
}
|
|
5784
|
+
|
|
4843
5785
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
4844
5786
|
|
|
4845
5787
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -4889,7 +5831,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4889
5831
|
* Creates request options for setEnvironmentVar without sending the request
|
|
4890
5832
|
*/
|
|
4891
5833
|
async setEnvironmentVarRequestOpts(input: SetEnvironmentVarOperationRequest | runtime.FlatBody<SetEnvironmentVarOperationRequest, 'setEnvironmentVarRequest'>): Promise<runtime.RequestOpts> {
|
|
4892
|
-
const requestParameters = runtime.unflattenBody<SetEnvironmentVarOperationRequest>(input, 'setEnvironmentVarRequest', ['environmentId', 'key'], []);
|
|
5834
|
+
const requestParameters = runtime.unflattenBody<SetEnvironmentVarOperationRequest>(input, 'setEnvironmentVarRequest', ['environmentId', 'key', 'org'], []);
|
|
4893
5835
|
if (requestParameters['environmentId'] == null) {
|
|
4894
5836
|
throw new runtime.RequiredError(
|
|
4895
5837
|
'environmentId',
|
|
@@ -4913,6 +5855,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4913
5855
|
|
|
4914
5856
|
const queryParameters: any = {};
|
|
4915
5857
|
|
|
5858
|
+
if (requestParameters['org'] != null) {
|
|
5859
|
+
queryParameters['org'] = requestParameters['org'];
|
|
5860
|
+
}
|
|
5861
|
+
|
|
4916
5862
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
4917
5863
|
|
|
4918
5864
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -4959,6 +5905,72 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4959
5905
|
return await response.value();
|
|
4960
5906
|
}
|
|
4961
5907
|
|
|
5908
|
+
/**
|
|
5909
|
+
* Creates request options for setSandboxAiAccess without sending the request
|
|
5910
|
+
*/
|
|
5911
|
+
async setSandboxAiAccessRequestOpts(input: SetSandboxAiAccessOperationRequest | runtime.FlatBody<SetSandboxAiAccessOperationRequest, 'setSandboxAiAccessRequest'>): Promise<runtime.RequestOpts> {
|
|
5912
|
+
const requestParameters = runtime.unflattenBody<SetSandboxAiAccessOperationRequest>(input, 'setSandboxAiAccessRequest', ['sandboxId'], []);
|
|
5913
|
+
if (requestParameters['sandboxId'] == null) {
|
|
5914
|
+
throw new runtime.RequiredError(
|
|
5915
|
+
'sandboxId',
|
|
5916
|
+
'Required parameter "sandboxId" was null or undefined when calling setSandboxAiAccess().'
|
|
5917
|
+
);
|
|
5918
|
+
}
|
|
5919
|
+
|
|
5920
|
+
if (requestParameters['setSandboxAiAccessRequest'] == null) {
|
|
5921
|
+
throw new runtime.RequiredError(
|
|
5922
|
+
'setSandboxAiAccessRequest',
|
|
5923
|
+
'Required parameter "setSandboxAiAccessRequest" was null or undefined when calling setSandboxAiAccess().'
|
|
5924
|
+
);
|
|
5925
|
+
}
|
|
5926
|
+
|
|
5927
|
+
const queryParameters: any = {};
|
|
5928
|
+
|
|
5929
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5930
|
+
|
|
5931
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5932
|
+
|
|
5933
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5934
|
+
const token = this.configuration.accessToken;
|
|
5935
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
5936
|
+
|
|
5937
|
+
if (tokenString) {
|
|
5938
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5939
|
+
}
|
|
5940
|
+
}
|
|
5941
|
+
|
|
5942
|
+
let urlPath = `/sandboxes/{sandboxId}/ai-access`;
|
|
5943
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
5944
|
+
|
|
5945
|
+
return {
|
|
5946
|
+
path: urlPath,
|
|
5947
|
+
method: 'PUT',
|
|
5948
|
+
headers: headerParameters,
|
|
5949
|
+
query: queryParameters,
|
|
5950
|
+
body: SetSandboxAiAccessRequestToJSON(requestParameters['setSandboxAiAccessRequest']),
|
|
5951
|
+
};
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
/**
|
|
5955
|
+
* 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`.
|
|
5956
|
+
* Block or unblock sandbox AI access
|
|
5957
|
+
*/
|
|
5958
|
+
async setSandboxAiAccessRaw(requestParameters: SetSandboxAiAccessOperationRequest | runtime.FlatBody<SetSandboxAiAccessOperationRequest, 'setSandboxAiAccessRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxAiAccessResponse>> {
|
|
5959
|
+
const requestOptions = await this.setSandboxAiAccessRequestOpts(requestParameters);
|
|
5960
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5961
|
+
|
|
5962
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SandboxAiAccessResponseFromJSON(jsonValue));
|
|
5963
|
+
}
|
|
5964
|
+
|
|
5965
|
+
/**
|
|
5966
|
+
* 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`.
|
|
5967
|
+
* Block or unblock sandbox AI access
|
|
5968
|
+
*/
|
|
5969
|
+
async setSandboxAiAccess(requestParameters: SetSandboxAiAccessOperationRequest | runtime.FlatBody<SetSandboxAiAccessOperationRequest, 'setSandboxAiAccessRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxAiAccessResponse> {
|
|
5970
|
+
const response = await this.setSandboxAiAccessRaw(requestParameters, initOverrides);
|
|
5971
|
+
return await response.value();
|
|
5972
|
+
}
|
|
5973
|
+
|
|
4962
5974
|
/**
|
|
4963
5975
|
* Creates request options for setTelemetry without sending the request
|
|
4964
5976
|
*/
|
|
@@ -5394,6 +6406,138 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5394
6406
|
return await response.value();
|
|
5395
6407
|
}
|
|
5396
6408
|
|
|
6409
|
+
/**
|
|
6410
|
+
* Creates request options for updateAiProxy without sending the request
|
|
6411
|
+
*/
|
|
6412
|
+
async updateAiProxyRequestOpts(input: UpdateAiProxyOperationRequest | runtime.FlatBody<UpdateAiProxyOperationRequest, 'updateAiProxyRequest'>): Promise<runtime.RequestOpts> {
|
|
6413
|
+
const requestParameters = runtime.unflattenBody<UpdateAiProxyOperationRequest>(input, 'updateAiProxyRequest', ['org', 'xBoatOrg'], []);
|
|
6414
|
+
if (requestParameters['updateAiProxyRequest'] == null) {
|
|
6415
|
+
throw new runtime.RequiredError(
|
|
6416
|
+
'updateAiProxyRequest',
|
|
6417
|
+
'Required parameter "updateAiProxyRequest" was null or undefined when calling updateAiProxy().'
|
|
6418
|
+
);
|
|
6419
|
+
}
|
|
6420
|
+
|
|
6421
|
+
const queryParameters: any = {};
|
|
6422
|
+
|
|
6423
|
+
if (requestParameters['org'] != null) {
|
|
6424
|
+
queryParameters['org'] = requestParameters['org'];
|
|
6425
|
+
}
|
|
6426
|
+
|
|
6427
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6428
|
+
|
|
6429
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
6430
|
+
|
|
6431
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
6432
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
6433
|
+
}
|
|
6434
|
+
|
|
6435
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
6436
|
+
const token = this.configuration.accessToken;
|
|
6437
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
6438
|
+
|
|
6439
|
+
if (tokenString) {
|
|
6440
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
6441
|
+
}
|
|
6442
|
+
}
|
|
6443
|
+
|
|
6444
|
+
let urlPath = `/ai-proxy`;
|
|
6445
|
+
|
|
6446
|
+
return {
|
|
6447
|
+
path: urlPath,
|
|
6448
|
+
method: 'PUT',
|
|
6449
|
+
headers: headerParameters,
|
|
6450
|
+
query: queryParameters,
|
|
6451
|
+
body: UpdateAiProxyRequestToJSON(requestParameters['updateAiProxyRequest']),
|
|
6452
|
+
};
|
|
6453
|
+
}
|
|
6454
|
+
|
|
6455
|
+
/**
|
|
6456
|
+
* 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`.
|
|
6457
|
+
* Turn the AI credentials proxy on or off
|
|
6458
|
+
*/
|
|
6459
|
+
async updateAiProxyRaw(requestParameters: UpdateAiProxyOperationRequest | runtime.FlatBody<UpdateAiProxyOperationRequest, 'updateAiProxyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiProxySettings>> {
|
|
6460
|
+
const requestOptions = await this.updateAiProxyRequestOpts(requestParameters);
|
|
6461
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
6462
|
+
|
|
6463
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AiProxySettingsFromJSON(jsonValue));
|
|
6464
|
+
}
|
|
6465
|
+
|
|
6466
|
+
/**
|
|
6467
|
+
* 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`.
|
|
6468
|
+
* Turn the AI credentials proxy on or off
|
|
6469
|
+
*/
|
|
6470
|
+
async updateAiProxy(requestParameters: UpdateAiProxyOperationRequest | runtime.FlatBody<UpdateAiProxyOperationRequest, 'updateAiProxyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiProxySettings> {
|
|
6471
|
+
const response = await this.updateAiProxyRaw(requestParameters, initOverrides);
|
|
6472
|
+
return await response.value();
|
|
6473
|
+
}
|
|
6474
|
+
|
|
6475
|
+
/**
|
|
6476
|
+
* Creates request options for updateCredentialProfile without sending the request
|
|
6477
|
+
*/
|
|
6478
|
+
async updateCredentialProfileRequestOpts(input: UpdateCredentialProfileOperationRequest | runtime.FlatBody<UpdateCredentialProfileOperationRequest, 'updateCredentialProfileRequest'>): Promise<runtime.RequestOpts> {
|
|
6479
|
+
const requestParameters = runtime.unflattenBody<UpdateCredentialProfileOperationRequest>(input, 'updateCredentialProfileRequest', ['profile'], []);
|
|
6480
|
+
if (requestParameters['profile'] == null) {
|
|
6481
|
+
throw new runtime.RequiredError(
|
|
6482
|
+
'profile',
|
|
6483
|
+
'Required parameter "profile" was null or undefined when calling updateCredentialProfile().'
|
|
6484
|
+
);
|
|
6485
|
+
}
|
|
6486
|
+
|
|
6487
|
+
if (requestParameters['updateCredentialProfileRequest'] == null) {
|
|
6488
|
+
throw new runtime.RequiredError(
|
|
6489
|
+
'updateCredentialProfileRequest',
|
|
6490
|
+
'Required parameter "updateCredentialProfileRequest" was null or undefined when calling updateCredentialProfile().'
|
|
6491
|
+
);
|
|
6492
|
+
}
|
|
6493
|
+
|
|
6494
|
+
const queryParameters: any = {};
|
|
6495
|
+
|
|
6496
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6497
|
+
|
|
6498
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
6499
|
+
|
|
6500
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
6501
|
+
const token = this.configuration.accessToken;
|
|
6502
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
6503
|
+
|
|
6504
|
+
if (tokenString) {
|
|
6505
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
6506
|
+
}
|
|
6507
|
+
}
|
|
6508
|
+
|
|
6509
|
+
let urlPath = `/credential-profiles/{profile}`;
|
|
6510
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
6511
|
+
|
|
6512
|
+
return {
|
|
6513
|
+
path: urlPath,
|
|
6514
|
+
method: 'PUT',
|
|
6515
|
+
headers: headerParameters,
|
|
6516
|
+
query: queryParameters,
|
|
6517
|
+
body: UpdateCredentialProfileRequestToJSON(requestParameters['updateCredentialProfileRequest']),
|
|
6518
|
+
};
|
|
6519
|
+
}
|
|
6520
|
+
|
|
6521
|
+
/**
|
|
6522
|
+
* 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`.
|
|
6523
|
+
* Update a credential profile
|
|
6524
|
+
*/
|
|
6525
|
+
async updateCredentialProfileRaw(requestParameters: UpdateCredentialProfileOperationRequest | runtime.FlatBody<UpdateCredentialProfileOperationRequest, 'updateCredentialProfileRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
6526
|
+
const requestOptions = await this.updateCredentialProfileRequestOpts(requestParameters);
|
|
6527
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
6528
|
+
|
|
6529
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
6530
|
+
}
|
|
6531
|
+
|
|
6532
|
+
/**
|
|
6533
|
+
* 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`.
|
|
6534
|
+
* Update a credential profile
|
|
6535
|
+
*/
|
|
6536
|
+
async updateCredentialProfile(requestParameters: UpdateCredentialProfileOperationRequest | runtime.FlatBody<UpdateCredentialProfileOperationRequest, 'updateCredentialProfileRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
6537
|
+
const response = await this.updateCredentialProfileRaw(requestParameters, initOverrides);
|
|
6538
|
+
return await response.value();
|
|
6539
|
+
}
|
|
6540
|
+
|
|
5397
6541
|
/**
|
|
5398
6542
|
* Creates request options for updateDataRetention without sending the request
|
|
5399
6543
|
*/
|
|
@@ -5456,7 +6600,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5456
6600
|
* Creates request options for updateEnvironment without sending the request
|
|
5457
6601
|
*/
|
|
5458
6602
|
async updateEnvironmentRequestOpts(input: UpdateEnvironmentRequest | runtime.FlatBody<UpdateEnvironmentRequest, 'updateSandboxEnvironmentRequest'>): Promise<runtime.RequestOpts> {
|
|
5459
|
-
const requestParameters = runtime.unflattenBody<UpdateEnvironmentRequest>(input, 'updateSandboxEnvironmentRequest', ['environmentId'], []);
|
|
6603
|
+
const requestParameters = runtime.unflattenBody<UpdateEnvironmentRequest>(input, 'updateSandboxEnvironmentRequest', ['environmentId', 'org'], []);
|
|
5460
6604
|
if (requestParameters['environmentId'] == null) {
|
|
5461
6605
|
throw new runtime.RequiredError(
|
|
5462
6606
|
'environmentId',
|
|
@@ -5473,6 +6617,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5473
6617
|
|
|
5474
6618
|
const queryParameters: any = {};
|
|
5475
6619
|
|
|
6620
|
+
if (requestParameters['org'] != null) {
|
|
6621
|
+
queryParameters['org'] = requestParameters['org'];
|
|
6622
|
+
}
|
|
6623
|
+
|
|
5476
6624
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
5477
6625
|
|
|
5478
6626
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -5644,7 +6792,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5644
6792
|
* Creates request options for upgradeEnvironment without sending the request
|
|
5645
6793
|
*/
|
|
5646
6794
|
async upgradeEnvironmentRequestOpts(input: UpgradeEnvironmentRequest | runtime.FlatBody<UpgradeEnvironmentRequest, 'upgradeSandboxEnvironmentRequest'>): Promise<runtime.RequestOpts> {
|
|
5647
|
-
const requestParameters = runtime.unflattenBody<UpgradeEnvironmentRequest>(input, 'upgradeSandboxEnvironmentRequest', ['environmentId'], []);
|
|
6795
|
+
const requestParameters = runtime.unflattenBody<UpgradeEnvironmentRequest>(input, 'upgradeSandboxEnvironmentRequest', ['environmentId', 'org'], []);
|
|
5648
6796
|
if (requestParameters['environmentId'] == null) {
|
|
5649
6797
|
throw new runtime.RequiredError(
|
|
5650
6798
|
'environmentId',
|
|
@@ -5654,6 +6802,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5654
6802
|
|
|
5655
6803
|
const queryParameters: any = {};
|
|
5656
6804
|
|
|
6805
|
+
if (requestParameters['org'] != null) {
|
|
6806
|
+
queryParameters['org'] = requestParameters['org'];
|
|
6807
|
+
}
|
|
6808
|
+
|
|
5657
6809
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
5658
6810
|
|
|
5659
6811
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -5809,7 +6961,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5809
6961
|
}
|
|
5810
6962
|
|
|
5811
6963
|
/**
|
|
5812
|
-
* Files up to 5 MiB after decoding.
|
|
6964
|
+
* Files up to 5 MiB after decoding. For a larger file, use `POST /sandboxes/{sandboxId}/files/upload-url`.
|
|
5813
6965
|
* Write a file in a sandbox
|
|
5814
6966
|
*/
|
|
5815
6967
|
async writeFileRaw(requestParameters: WriteFileRequest | runtime.FlatBody<WriteFileRequest, 'fileWriteRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileWriteResponse>> {
|
|
@@ -5820,7 +6972,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5820
6972
|
}
|
|
5821
6973
|
|
|
5822
6974
|
/**
|
|
5823
|
-
* Files up to 5 MiB after decoding.
|
|
6975
|
+
* Files up to 5 MiB after decoding. For a larger file, use `POST /sandboxes/{sandboxId}/files/upload-url`.
|
|
5824
6976
|
* Write a file in a sandbox
|
|
5825
6977
|
*/
|
|
5826
6978
|
async writeFile(requestParameters: WriteFileRequest | runtime.FlatBody<WriteFileRequest, 'fileWriteRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileWriteResponse> {
|