@boatdev/sdk 1.9.5 → 1.9.7
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 +339 -3
- package/dist/apis/BoatApi.js +865 -15
- package/dist/esm/apis/BoatApi.d.ts +339 -3
- package/dist/esm/apis/BoatApi.js +865 -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/CredentialAccount.d.ts +50 -0
- package/dist/esm/models/CredentialAccount.js +53 -0
- package/dist/esm/models/CredentialAccountsResponse.d.ts +64 -0
- package/dist/esm/models/CredentialAccountsResponse.js +65 -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 +91 -0
- package/dist/esm/models/CredentialProfile.js +79 -0
- package/dist/esm/models/CredentialProfileDeletedResponse.d.ts +44 -0
- package/dist/esm/models/CredentialProfileDeletedResponse.js +51 -0
- package/dist/esm/models/CredentialProfileListResponse.d.ts +45 -0
- package/dist/esm/models/CredentialProfileListResponse.js +52 -0
- package/dist/esm/models/CredentialProfileOwner.d.ts +58 -0
- package/dist/esm/models/CredentialProfileOwner.js +62 -0
- package/dist/esm/models/CredentialProfileResponse.d.ts +51 -0
- package/dist/esm/models/CredentialProfileResponse.js +56 -0
- package/dist/esm/models/ProcessListResponse.d.ts +1 -1
- package/dist/esm/models/SandboxAiAccessResponse.d.ts +56 -0
- package/dist/esm/models/SandboxAiAccessResponse.js +59 -0
- package/dist/esm/models/SandboxAiUsage.d.ts +64 -0
- package/dist/esm/models/SandboxAiUsage.js +65 -0
- package/dist/esm/models/SandboxAiUsageResponse.d.ts +88 -0
- package/dist/esm/models/SandboxAiUsageResponse.js +81 -0
- package/dist/esm/models/SandboxEnvironment.d.ts +13 -1
- package/dist/esm/models/SandboxEnvironment.js +4 -0
- package/dist/esm/models/SetCredentialKeyRequest.d.ts +38 -0
- package/dist/esm/models/SetCredentialKeyRequest.js +45 -0
- package/dist/esm/models/SetCustomApiRequest.d.ts +38 -0
- package/dist/esm/models/SetCustomApiRequest.js +47 -0
- package/dist/esm/models/SetSandboxAiAccessRequest.d.ts +32 -0
- package/dist/esm/models/SetSandboxAiAccessRequest.js +43 -0
- package/dist/esm/models/UpdateAiProxyRequest.d.ts +32 -0
- package/dist/esm/models/UpdateAiProxyRequest.js +43 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.d.ts +38 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.js +43 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +4 -0
- package/dist/esm/models/index.d.ts +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/CredentialAccount.d.ts +50 -0
- package/dist/models/CredentialAccount.js +60 -0
- package/dist/models/CredentialAccountsResponse.d.ts +64 -0
- package/dist/models/CredentialAccountsResponse.js +72 -0
- package/dist/models/CredentialId.d.ts +36 -0
- package/dist/models/CredentialId.js +62 -0
- package/dist/models/CredentialProfile.d.ts +91 -0
- package/dist/models/CredentialProfile.js +86 -0
- package/dist/models/CredentialProfileDeletedResponse.d.ts +44 -0
- package/dist/models/CredentialProfileDeletedResponse.js +58 -0
- package/dist/models/CredentialProfileListResponse.d.ts +45 -0
- package/dist/models/CredentialProfileListResponse.js +59 -0
- package/dist/models/CredentialProfileOwner.d.ts +58 -0
- package/dist/models/CredentialProfileOwner.js +70 -0
- package/dist/models/CredentialProfileResponse.d.ts +51 -0
- package/dist/models/CredentialProfileResponse.js +63 -0
- package/dist/models/ProcessListResponse.d.ts +1 -1
- package/dist/models/SandboxAiAccessResponse.d.ts +56 -0
- package/dist/models/SandboxAiAccessResponse.js +66 -0
- package/dist/models/SandboxAiUsage.d.ts +64 -0
- package/dist/models/SandboxAiUsage.js +72 -0
- package/dist/models/SandboxAiUsageResponse.d.ts +88 -0
- package/dist/models/SandboxAiUsageResponse.js +88 -0
- package/dist/models/SandboxEnvironment.d.ts +13 -1
- package/dist/models/SandboxEnvironment.js +4 -0
- package/dist/models/SetCredentialKeyRequest.d.ts +38 -0
- package/dist/models/SetCredentialKeyRequest.js +52 -0
- package/dist/models/SetCustomApiRequest.d.ts +38 -0
- package/dist/models/SetCustomApiRequest.js +54 -0
- package/dist/models/SetSandboxAiAccessRequest.d.ts +32 -0
- package/dist/models/SetSandboxAiAccessRequest.js +50 -0
- package/dist/models/UpdateAiProxyRequest.d.ts +32 -0
- package/dist/models/UpdateAiProxyRequest.js +50 -0
- package/dist/models/UpdateCredentialProfileRequest.d.ts +38 -0
- package/dist/models/UpdateCredentialProfileRequest.js +50 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +12 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.js +4 -0
- package/dist/models/index.d.ts +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 +1588 -212
- package/docs/CreateCredentialProfileRequest.md +36 -0
- package/docs/CredentialAccount.md +39 -0
- package/docs/CredentialAccountsResponse.md +42 -0
- package/docs/CredentialId.md +31 -0
- package/docs/CredentialProfile.md +51 -0
- package/docs/CredentialProfileDeletedResponse.md +36 -0
- package/docs/CredentialProfileListResponse.md +36 -0
- package/docs/CredentialProfileOwner.md +38 -0
- package/docs/CredentialProfileResponse.md +38 -0
- package/docs/SandboxAiAccessResponse.md +40 -0
- package/docs/SandboxAiUsage.md +42 -0
- package/docs/SandboxAiUsageResponse.md +50 -0
- package/docs/SandboxEnvironment.md +4 -0
- package/docs/SetCredentialKeyRequest.md +34 -0
- package/docs/SetCustomApiRequest.md +34 -0
- package/docs/SetSandboxAiAccessRequest.md +32 -0
- package/docs/UpdateAiProxyRequest.md +32 -0
- package/docs/UpdateCredentialProfileRequest.md +34 -0
- package/docs/UpdateSandboxEnvironmentRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +1440 -133
- 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/CredentialAccount.ts +92 -0
- package/src/models/CredentialAccountsResponse.ts +128 -0
- package/src/models/CredentialId.ts +64 -0
- package/src/models/CredentialProfile.ts +168 -0
- package/src/models/CredentialProfileDeletedResponse.ts +84 -0
- package/src/models/CredentialProfileListResponse.ts +92 -0
- package/src/models/CredentialProfileOwner.ts +104 -0
- package/src/models/CredentialProfileResponse.ts +101 -0
- package/src/models/ProcessListResponse.ts +1 -1
- package/src/models/SandboxAiAccessResponse.ts +102 -0
- package/src/models/SandboxAiUsage.ts +126 -0
- package/src/models/SandboxAiUsageResponse.ts +162 -0
- package/src/models/SandboxEnvironment.ts +17 -1
- package/src/models/SetCredentialKeyRequest.ts +74 -0
- package/src/models/SetCustomApiRequest.ts +75 -0
- package/src/models/SetSandboxAiAccessRequest.ts +66 -0
- package/src/models/UpdateAiProxyRequest.ts +66 -0
- package/src/models/UpdateCredentialProfileRequest.ts +73 -0
- package/src/models/UpdateSandboxEnvironmentRequest.ts +16 -0
- package/src/models/index.ts +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,31 @@ import {
|
|
|
123
138
|
CreateScopedApiKeyRequestFromJSON,
|
|
124
139
|
CreateScopedApiKeyRequestToJSON,
|
|
125
140
|
} from '../models/CreateScopedApiKeyRequest';
|
|
141
|
+
import {
|
|
142
|
+
type CredentialAccountsResponse,
|
|
143
|
+
CredentialAccountsResponseFromJSON,
|
|
144
|
+
CredentialAccountsResponseToJSON,
|
|
145
|
+
} from '../models/CredentialAccountsResponse';
|
|
146
|
+
import {
|
|
147
|
+
type CredentialId,
|
|
148
|
+
CredentialIdFromJSON,
|
|
149
|
+
CredentialIdToJSON,
|
|
150
|
+
} from '../models/CredentialId';
|
|
151
|
+
import {
|
|
152
|
+
type CredentialProfileDeletedResponse,
|
|
153
|
+
CredentialProfileDeletedResponseFromJSON,
|
|
154
|
+
CredentialProfileDeletedResponseToJSON,
|
|
155
|
+
} from '../models/CredentialProfileDeletedResponse';
|
|
156
|
+
import {
|
|
157
|
+
type CredentialProfileListResponse,
|
|
158
|
+
CredentialProfileListResponseFromJSON,
|
|
159
|
+
CredentialProfileListResponseToJSON,
|
|
160
|
+
} from '../models/CredentialProfileListResponse';
|
|
161
|
+
import {
|
|
162
|
+
type CredentialProfileResponse,
|
|
163
|
+
CredentialProfileResponseFromJSON,
|
|
164
|
+
CredentialProfileResponseToJSON,
|
|
165
|
+
} from '../models/CredentialProfileResponse';
|
|
126
166
|
import {
|
|
127
167
|
type DataRetentionPolicyResponse,
|
|
128
168
|
DataRetentionPolicyResponseFromJSON,
|
|
@@ -318,6 +358,16 @@ import {
|
|
|
318
358
|
SandboxActionResponseFromJSON,
|
|
319
359
|
SandboxActionResponseToJSON,
|
|
320
360
|
} from '../models/SandboxActionResponse';
|
|
361
|
+
import {
|
|
362
|
+
type SandboxAiAccessResponse,
|
|
363
|
+
SandboxAiAccessResponseFromJSON,
|
|
364
|
+
SandboxAiAccessResponseToJSON,
|
|
365
|
+
} from '../models/SandboxAiAccessResponse';
|
|
366
|
+
import {
|
|
367
|
+
type SandboxAiUsageResponse,
|
|
368
|
+
SandboxAiUsageResponseFromJSON,
|
|
369
|
+
SandboxAiUsageResponseToJSON,
|
|
370
|
+
} from '../models/SandboxAiUsageResponse';
|
|
321
371
|
import {
|
|
322
372
|
type SandboxEnvironmentListResponse,
|
|
323
373
|
SandboxEnvironmentListResponseFromJSON,
|
|
@@ -353,6 +403,16 @@ import {
|
|
|
353
403
|
SecretsUpdateRequestFromJSON,
|
|
354
404
|
SecretsUpdateRequestToJSON,
|
|
355
405
|
} from '../models/SecretsUpdateRequest';
|
|
406
|
+
import {
|
|
407
|
+
type SetCredentialKeyRequest,
|
|
408
|
+
SetCredentialKeyRequestFromJSON,
|
|
409
|
+
SetCredentialKeyRequestToJSON,
|
|
410
|
+
} from '../models/SetCredentialKeyRequest';
|
|
411
|
+
import {
|
|
412
|
+
type SetCustomApiRequest,
|
|
413
|
+
SetCustomApiRequestFromJSON,
|
|
414
|
+
SetCustomApiRequestToJSON,
|
|
415
|
+
} from '../models/SetCustomApiRequest';
|
|
356
416
|
import {
|
|
357
417
|
type SetEnvironmentSecretFileRequest,
|
|
358
418
|
SetEnvironmentSecretFileRequestFromJSON,
|
|
@@ -363,6 +423,11 @@ import {
|
|
|
363
423
|
SetEnvironmentVarRequestFromJSON,
|
|
364
424
|
SetEnvironmentVarRequestToJSON,
|
|
365
425
|
} from '../models/SetEnvironmentVarRequest';
|
|
426
|
+
import {
|
|
427
|
+
type SetSandboxAiAccessRequest,
|
|
428
|
+
SetSandboxAiAccessRequestFromJSON,
|
|
429
|
+
SetSandboxAiAccessRequestToJSON,
|
|
430
|
+
} from '../models/SetSandboxAiAccessRequest';
|
|
366
431
|
import {
|
|
367
432
|
type Share200Response,
|
|
368
433
|
Share200ResponseFromJSON,
|
|
@@ -433,6 +498,16 @@ import {
|
|
|
433
498
|
TelemetrySetResponseFromJSON,
|
|
434
499
|
TelemetrySetResponseToJSON,
|
|
435
500
|
} from '../models/TelemetrySetResponse';
|
|
501
|
+
import {
|
|
502
|
+
type UpdateAiProxyRequest,
|
|
503
|
+
UpdateAiProxyRequestFromJSON,
|
|
504
|
+
UpdateAiProxyRequestToJSON,
|
|
505
|
+
} from '../models/UpdateAiProxyRequest';
|
|
506
|
+
import {
|
|
507
|
+
type UpdateCredentialProfileRequest,
|
|
508
|
+
UpdateCredentialProfileRequestFromJSON,
|
|
509
|
+
UpdateCredentialProfileRequestToJSON,
|
|
510
|
+
} from '../models/UpdateCredentialProfileRequest';
|
|
436
511
|
import {
|
|
437
512
|
type UpdateSandboxEnvironmentRequest,
|
|
438
513
|
UpdateSandboxEnvironmentRequestFromJSON,
|
|
@@ -484,9 +559,16 @@ import {
|
|
|
484
559
|
WebhookUpdateRequestToJSON,
|
|
485
560
|
} from '../models/WebhookUpdateRequest';
|
|
486
561
|
|
|
562
|
+
export interface AddCredentialAccountRequest {
|
|
563
|
+
profile: string;
|
|
564
|
+
credential: CredentialId;
|
|
565
|
+
setCredentialKeyRequest: SetCredentialKeyRequest;
|
|
566
|
+
}
|
|
567
|
+
|
|
487
568
|
export interface AddEnvironmentRepoOperationRequest {
|
|
488
569
|
environmentId: string;
|
|
489
570
|
addEnvironmentRepoRequest: AddEnvironmentRepoRequest;
|
|
571
|
+
org?: string;
|
|
490
572
|
}
|
|
491
573
|
|
|
492
574
|
export interface ApiKeyUsageRequest {
|
|
@@ -546,6 +628,10 @@ export interface CreateRequest {
|
|
|
546
628
|
createSandboxRequest?: CreateSandboxRequest;
|
|
547
629
|
}
|
|
548
630
|
|
|
631
|
+
export interface CreateCredentialProfileOperationRequest {
|
|
632
|
+
createCredentialProfileRequest: CreateCredentialProfileRequest;
|
|
633
|
+
}
|
|
634
|
+
|
|
549
635
|
export interface CreateDownloadUrlRequest {
|
|
550
636
|
sandboxId: string;
|
|
551
637
|
fileUrlRequest: FileUrlRequest;
|
|
@@ -553,6 +639,7 @@ export interface CreateDownloadUrlRequest {
|
|
|
553
639
|
|
|
554
640
|
export interface CreateEnvironmentRequest {
|
|
555
641
|
createSandboxEnvironmentRequest: CreateSandboxEnvironmentRequest;
|
|
642
|
+
org?: string;
|
|
556
643
|
}
|
|
557
644
|
|
|
558
645
|
export interface CreateScopedApiKeyOperationRequest {
|
|
@@ -572,23 +659,47 @@ export interface CreateWebhookRequest {
|
|
|
572
659
|
webhookCreateRequest: WebhookCreateRequest;
|
|
573
660
|
}
|
|
574
661
|
|
|
662
|
+
export interface DeleteCredentialAccountRequest {
|
|
663
|
+
profile: string;
|
|
664
|
+
credential: CredentialId;
|
|
665
|
+
account: string;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
export interface DeleteCredentialProfileRequest {
|
|
669
|
+
profile: string;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
export interface DeleteCredentialProfileCustomApiRequest {
|
|
673
|
+
profile: string;
|
|
674
|
+
name: string;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export interface DeleteCredentialProfileKeyRequest {
|
|
678
|
+
profile: string;
|
|
679
|
+
credential: CredentialId;
|
|
680
|
+
}
|
|
681
|
+
|
|
575
682
|
export interface DeleteEnvironmentRequest {
|
|
576
683
|
environmentId: string;
|
|
684
|
+
org?: string;
|
|
577
685
|
}
|
|
578
686
|
|
|
579
687
|
export interface DeleteEnvironmentRepoRequest {
|
|
580
688
|
environmentId: string;
|
|
581
689
|
repositoryId: string;
|
|
690
|
+
org?: string;
|
|
582
691
|
}
|
|
583
692
|
|
|
584
693
|
export interface DeleteEnvironmentSecretFileRequest {
|
|
585
694
|
path: string;
|
|
586
695
|
environmentId: string;
|
|
696
|
+
org?: string;
|
|
587
697
|
}
|
|
588
698
|
|
|
589
699
|
export interface DeleteEnvironmentVarRequest {
|
|
590
700
|
environmentId: string;
|
|
591
701
|
key: string;
|
|
702
|
+
org?: string;
|
|
592
703
|
}
|
|
593
704
|
|
|
594
705
|
export interface DeleteNamedSnapshotRequest {
|
|
@@ -621,6 +732,10 @@ export interface DesktopOperationRequest {
|
|
|
621
732
|
desktopRequest?: DesktopRequest;
|
|
622
733
|
}
|
|
623
734
|
|
|
735
|
+
export interface EnvironmentsRequest {
|
|
736
|
+
org?: string;
|
|
737
|
+
}
|
|
738
|
+
|
|
624
739
|
export interface EventsRequest {
|
|
625
740
|
sandboxId: string;
|
|
626
741
|
limit?: number;
|
|
@@ -640,6 +755,18 @@ export interface GetRequest {
|
|
|
640
755
|
sandboxId: string;
|
|
641
756
|
}
|
|
642
757
|
|
|
758
|
+
export interface GetAiProxyRequest {
|
|
759
|
+
org?: string;
|
|
760
|
+
xBoatOrg?: string;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export interface GetAiUsageRequest {
|
|
764
|
+
days?: number;
|
|
765
|
+
profile?: string;
|
|
766
|
+
org?: string;
|
|
767
|
+
xBoatOrg?: string;
|
|
768
|
+
}
|
|
769
|
+
|
|
643
770
|
export interface GetCommandRequest {
|
|
644
771
|
sandboxId: string;
|
|
645
772
|
commandId: string;
|
|
@@ -657,6 +784,11 @@ export interface GetNamedSnapshotRequest {
|
|
|
657
784
|
name: string;
|
|
658
785
|
}
|
|
659
786
|
|
|
787
|
+
export interface GetSandboxAiUsageRequest {
|
|
788
|
+
sandboxId: string;
|
|
789
|
+
days?: number;
|
|
790
|
+
}
|
|
791
|
+
|
|
660
792
|
export interface GetSnapshotDownloadRequest {
|
|
661
793
|
snapshotId: string;
|
|
662
794
|
}
|
|
@@ -695,6 +827,11 @@ export interface LimitsRequest {
|
|
|
695
827
|
teamId?: string;
|
|
696
828
|
}
|
|
697
829
|
|
|
830
|
+
export interface ListCredentialAccountsRequest {
|
|
831
|
+
profile: string;
|
|
832
|
+
credential: CredentialId;
|
|
833
|
+
}
|
|
834
|
+
|
|
698
835
|
export interface ListSandboxSnapshotsRequest {
|
|
699
836
|
sandboxId: string;
|
|
700
837
|
limit?: number;
|
|
@@ -788,15 +925,34 @@ export interface SetActiveOrganizationRequest {
|
|
|
788
925
|
activeOrgUpdateRequest: ActiveOrgUpdateRequest;
|
|
789
926
|
}
|
|
790
927
|
|
|
928
|
+
export interface SetCredentialProfileCustomApiRequest {
|
|
929
|
+
profile: string;
|
|
930
|
+
name: string;
|
|
931
|
+
setCustomApiRequest: SetCustomApiRequest;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export interface SetCredentialProfileKeyRequest {
|
|
935
|
+
profile: string;
|
|
936
|
+
credential: CredentialId;
|
|
937
|
+
setCredentialKeyRequest: SetCredentialKeyRequest;
|
|
938
|
+
}
|
|
939
|
+
|
|
791
940
|
export interface SetEnvironmentSecretFileOperationRequest {
|
|
792
941
|
environmentId: string;
|
|
793
942
|
setEnvironmentSecretFileRequest: SetEnvironmentSecretFileRequest;
|
|
943
|
+
org?: string;
|
|
794
944
|
}
|
|
795
945
|
|
|
796
946
|
export interface SetEnvironmentVarOperationRequest {
|
|
797
947
|
environmentId: string;
|
|
798
948
|
key: string;
|
|
799
949
|
setEnvironmentVarRequest: SetEnvironmentVarRequest;
|
|
950
|
+
org?: string;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export interface SetSandboxAiAccessOperationRequest {
|
|
954
|
+
sandboxId: string;
|
|
955
|
+
setSandboxAiAccessRequest: SetSandboxAiAccessRequest;
|
|
800
956
|
}
|
|
801
957
|
|
|
802
958
|
export interface SetTelemetryRequest {
|
|
@@ -828,11 +984,28 @@ export interface StopCommandRequest {
|
|
|
828
984
|
processId: number;
|
|
829
985
|
}
|
|
830
986
|
|
|
987
|
+
export interface SwitchCredentialAccountRequest {
|
|
988
|
+
profile: string;
|
|
989
|
+
credential: CredentialId;
|
|
990
|
+
account: string;
|
|
991
|
+
}
|
|
992
|
+
|
|
831
993
|
export interface UpdateRequest {
|
|
832
994
|
sandboxId: string;
|
|
833
995
|
updateSandboxRequest: UpdateSandboxRequest;
|
|
834
996
|
}
|
|
835
997
|
|
|
998
|
+
export interface UpdateAiProxyOperationRequest {
|
|
999
|
+
updateAiProxyRequest: UpdateAiProxyRequest;
|
|
1000
|
+
org?: string;
|
|
1001
|
+
xBoatOrg?: string;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
export interface UpdateCredentialProfileOperationRequest {
|
|
1005
|
+
profile: string;
|
|
1006
|
+
updateCredentialProfileRequest: UpdateCredentialProfileRequest;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
836
1009
|
export interface UpdateDataRetentionRequest {
|
|
837
1010
|
dataRetentionUpdateRequest: DataRetentionUpdateRequest;
|
|
838
1011
|
}
|
|
@@ -840,6 +1013,7 @@ export interface UpdateDataRetentionRequest {
|
|
|
840
1013
|
export interface UpdateEnvironmentRequest {
|
|
841
1014
|
environmentId: string;
|
|
842
1015
|
updateSandboxEnvironmentRequest: UpdateSandboxEnvironmentRequest;
|
|
1016
|
+
org?: string;
|
|
843
1017
|
}
|
|
844
1018
|
|
|
845
1019
|
export interface UpdateSecretsRequest {
|
|
@@ -853,6 +1027,7 @@ export interface UpdateWebhookRequest {
|
|
|
853
1027
|
|
|
854
1028
|
export interface UpgradeEnvironmentRequest {
|
|
855
1029
|
environmentId: string;
|
|
1030
|
+
org?: string;
|
|
856
1031
|
upgradeSandboxEnvironmentRequest?: UpgradeSandboxEnvironmentRequest;
|
|
857
1032
|
}
|
|
858
1033
|
|
|
@@ -872,11 +1047,85 @@ export interface WriteFileRequest {
|
|
|
872
1047
|
*/
|
|
873
1048
|
export class BoatApi extends runtime.BaseAPI {
|
|
874
1049
|
|
|
1050
|
+
/**
|
|
1051
|
+
* Creates request options for addCredentialAccount without sending the request
|
|
1052
|
+
*/
|
|
1053
|
+
async addCredentialAccountRequestOpts(input: AddCredentialAccountRequest | runtime.FlatBody<AddCredentialAccountRequest, 'setCredentialKeyRequest'>): Promise<runtime.RequestOpts> {
|
|
1054
|
+
const requestParameters = runtime.unflattenBody<AddCredentialAccountRequest>(input, 'setCredentialKeyRequest', ['profile', 'credential'], []);
|
|
1055
|
+
if (requestParameters['profile'] == null) {
|
|
1056
|
+
throw new runtime.RequiredError(
|
|
1057
|
+
'profile',
|
|
1058
|
+
'Required parameter "profile" was null or undefined when calling addCredentialAccount().'
|
|
1059
|
+
);
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
if (requestParameters['credential'] == null) {
|
|
1063
|
+
throw new runtime.RequiredError(
|
|
1064
|
+
'credential',
|
|
1065
|
+
'Required parameter "credential" was null or undefined when calling addCredentialAccount().'
|
|
1066
|
+
);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
if (requestParameters['setCredentialKeyRequest'] == null) {
|
|
1070
|
+
throw new runtime.RequiredError(
|
|
1071
|
+
'setCredentialKeyRequest',
|
|
1072
|
+
'Required parameter "setCredentialKeyRequest" was null or undefined when calling addCredentialAccount().'
|
|
1073
|
+
);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
const queryParameters: any = {};
|
|
1077
|
+
|
|
1078
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1079
|
+
|
|
1080
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1081
|
+
|
|
1082
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1083
|
+
const token = this.configuration.accessToken;
|
|
1084
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1085
|
+
|
|
1086
|
+
if (tokenString) {
|
|
1087
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
let urlPath = `/credential-profiles/{profile}/accounts/{credential}`;
|
|
1092
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
1093
|
+
urlPath = urlPath.replace('{credential}', encodeURIComponent(String(requestParameters['credential'])));
|
|
1094
|
+
|
|
1095
|
+
return {
|
|
1096
|
+
path: urlPath,
|
|
1097
|
+
method: 'POST',
|
|
1098
|
+
headers: headerParameters,
|
|
1099
|
+
query: queryParameters,
|
|
1100
|
+
body: SetCredentialKeyRequestToJSON(requestParameters['setCredentialKeyRequest']),
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* Adds an API key as another account of the credential, ready to switch to. The first key of a credential becomes the one in use. A sign-in returns `400 not_an_api_key`; add another sign-in with \"Add another account\" on the dashboard. Needs an API key with `account.admin`.
|
|
1106
|
+
* Add another API key to a credential
|
|
1107
|
+
*/
|
|
1108
|
+
async addCredentialAccountRaw(requestParameters: AddCredentialAccountRequest | runtime.FlatBody<AddCredentialAccountRequest, 'setCredentialKeyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialAccountsResponse>> {
|
|
1109
|
+
const requestOptions = await this.addCredentialAccountRequestOpts(requestParameters);
|
|
1110
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1111
|
+
|
|
1112
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialAccountsResponseFromJSON(jsonValue));
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Adds an API key as another account of the credential, ready to switch to. The first key of a credential becomes the one in use. A sign-in returns `400 not_an_api_key`; add another sign-in with \"Add another account\" on the dashboard. Needs an API key with `account.admin`.
|
|
1117
|
+
* Add another API key to a credential
|
|
1118
|
+
*/
|
|
1119
|
+
async addCredentialAccount(requestParameters: AddCredentialAccountRequest | runtime.FlatBody<AddCredentialAccountRequest, 'setCredentialKeyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialAccountsResponse> {
|
|
1120
|
+
const response = await this.addCredentialAccountRaw(requestParameters, initOverrides);
|
|
1121
|
+
return await response.value();
|
|
1122
|
+
}
|
|
1123
|
+
|
|
875
1124
|
/**
|
|
876
1125
|
* Creates request options for addEnvironmentRepo without sending the request
|
|
877
1126
|
*/
|
|
878
1127
|
async addEnvironmentRepoRequestOpts(input: AddEnvironmentRepoOperationRequest | runtime.FlatBody<AddEnvironmentRepoOperationRequest, 'addEnvironmentRepoRequest'>): Promise<runtime.RequestOpts> {
|
|
879
|
-
const requestParameters = runtime.unflattenBody<AddEnvironmentRepoOperationRequest>(input, 'addEnvironmentRepoRequest', ['environmentId'], []);
|
|
1128
|
+
const requestParameters = runtime.unflattenBody<AddEnvironmentRepoOperationRequest>(input, 'addEnvironmentRepoRequest', ['environmentId', 'org'], []);
|
|
880
1129
|
if (requestParameters['environmentId'] == null) {
|
|
881
1130
|
throw new runtime.RequiredError(
|
|
882
1131
|
'environmentId',
|
|
@@ -893,6 +1142,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
893
1142
|
|
|
894
1143
|
const queryParameters: any = {};
|
|
895
1144
|
|
|
1145
|
+
if (requestParameters['org'] != null) {
|
|
1146
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1147
|
+
}
|
|
1148
|
+
|
|
896
1149
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
897
1150
|
|
|
898
1151
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -1586,6 +1839,64 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1586
1839
|
return await response.value();
|
|
1587
1840
|
}
|
|
1588
1841
|
|
|
1842
|
+
/**
|
|
1843
|
+
* Creates request options for createCredentialProfile without sending the request
|
|
1844
|
+
*/
|
|
1845
|
+
async createCredentialProfileRequestOpts(input: CreateCredentialProfileOperationRequest | runtime.FlatBody<CreateCredentialProfileOperationRequest, 'createCredentialProfileRequest'>): Promise<runtime.RequestOpts> {
|
|
1846
|
+
const requestParameters = runtime.unflattenBody<CreateCredentialProfileOperationRequest>(input, 'createCredentialProfileRequest', [], []);
|
|
1847
|
+
if (requestParameters['createCredentialProfileRequest'] == null) {
|
|
1848
|
+
throw new runtime.RequiredError(
|
|
1849
|
+
'createCredentialProfileRequest',
|
|
1850
|
+
'Required parameter "createCredentialProfileRequest" was null or undefined when calling createCredentialProfile().'
|
|
1851
|
+
);
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
const queryParameters: any = {};
|
|
1855
|
+
|
|
1856
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1857
|
+
|
|
1858
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1859
|
+
|
|
1860
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1861
|
+
const token = this.configuration.accessToken;
|
|
1862
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1863
|
+
|
|
1864
|
+
if (tokenString) {
|
|
1865
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
let urlPath = `/credential-profiles`;
|
|
1870
|
+
|
|
1871
|
+
return {
|
|
1872
|
+
path: urlPath,
|
|
1873
|
+
method: 'POST',
|
|
1874
|
+
headers: headerParameters,
|
|
1875
|
+
query: queryParameters,
|
|
1876
|
+
body: CreateCredentialProfileRequestToJSON(requestParameters['createCredentialProfileRequest']),
|
|
1877
|
+
};
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* 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`.
|
|
1882
|
+
* Create a credential profile
|
|
1883
|
+
*/
|
|
1884
|
+
async createCredentialProfileRaw(requestParameters: CreateCredentialProfileOperationRequest | runtime.FlatBody<CreateCredentialProfileOperationRequest, 'createCredentialProfileRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
1885
|
+
const requestOptions = await this.createCredentialProfileRequestOpts(requestParameters);
|
|
1886
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1887
|
+
|
|
1888
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* 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`.
|
|
1893
|
+
* Create a credential profile
|
|
1894
|
+
*/
|
|
1895
|
+
async createCredentialProfile(requestParameters: CreateCredentialProfileOperationRequest | runtime.FlatBody<CreateCredentialProfileOperationRequest, 'createCredentialProfileRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
1896
|
+
const response = await this.createCredentialProfileRaw(requestParameters, initOverrides);
|
|
1897
|
+
return await response.value();
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1589
1900
|
/**
|
|
1590
1901
|
* Creates request options for createDownloadUrl without sending the request
|
|
1591
1902
|
*/
|
|
@@ -1656,7 +1967,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1656
1967
|
* Creates request options for createEnvironment without sending the request
|
|
1657
1968
|
*/
|
|
1658
1969
|
async createEnvironmentRequestOpts(input: CreateEnvironmentRequest | runtime.FlatBody<CreateEnvironmentRequest, 'createSandboxEnvironmentRequest'>): Promise<runtime.RequestOpts> {
|
|
1659
|
-
const requestParameters = runtime.unflattenBody<CreateEnvironmentRequest>(input, 'createSandboxEnvironmentRequest', [], []);
|
|
1970
|
+
const requestParameters = runtime.unflattenBody<CreateEnvironmentRequest>(input, 'createSandboxEnvironmentRequest', ['org'], []);
|
|
1660
1971
|
if (requestParameters['createSandboxEnvironmentRequest'] == null) {
|
|
1661
1972
|
throw new runtime.RequiredError(
|
|
1662
1973
|
'createSandboxEnvironmentRequest',
|
|
@@ -1666,6 +1977,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1666
1977
|
|
|
1667
1978
|
const queryParameters: any = {};
|
|
1668
1979
|
|
|
1980
|
+
if (requestParameters['org'] != null) {
|
|
1981
|
+
queryParameters['org'] = requestParameters['org'];
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1669
1984
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1670
1985
|
|
|
1671
1986
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -1948,13 +2263,27 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1948
2263
|
}
|
|
1949
2264
|
|
|
1950
2265
|
/**
|
|
1951
|
-
* Creates request options for
|
|
2266
|
+
* Creates request options for deleteCredentialAccount without sending the request
|
|
1952
2267
|
*/
|
|
1953
|
-
async
|
|
1954
|
-
if (requestParameters['
|
|
2268
|
+
async deleteCredentialAccountRequestOpts(requestParameters: DeleteCredentialAccountRequest): Promise<runtime.RequestOpts> {
|
|
2269
|
+
if (requestParameters['profile'] == null) {
|
|
1955
2270
|
throw new runtime.RequiredError(
|
|
1956
|
-
'
|
|
1957
|
-
'Required parameter "
|
|
2271
|
+
'profile',
|
|
2272
|
+
'Required parameter "profile" was null or undefined when calling deleteCredentialAccount().'
|
|
2273
|
+
);
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
if (requestParameters['credential'] == null) {
|
|
2277
|
+
throw new runtime.RequiredError(
|
|
2278
|
+
'credential',
|
|
2279
|
+
'Required parameter "credential" was null or undefined when calling deleteCredentialAccount().'
|
|
2280
|
+
);
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
if (requestParameters['account'] == null) {
|
|
2284
|
+
throw new runtime.RequiredError(
|
|
2285
|
+
'account',
|
|
2286
|
+
'Required parameter "account" was null or undefined when calling deleteCredentialAccount().'
|
|
1958
2287
|
);
|
|
1959
2288
|
}
|
|
1960
2289
|
|
|
@@ -1971,8 +2300,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1971
2300
|
}
|
|
1972
2301
|
}
|
|
1973
2302
|
|
|
1974
|
-
let urlPath = `/
|
|
1975
|
-
urlPath = urlPath.replace('{
|
|
2303
|
+
let urlPath = `/credential-profiles/{profile}/accounts/{credential}/{account}`;
|
|
2304
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
2305
|
+
urlPath = urlPath.replace('{credential}', encodeURIComponent(String(requestParameters['credential'])));
|
|
2306
|
+
urlPath = urlPath.replace('{account}', encodeURIComponent(String(requestParameters['account'])));
|
|
1976
2307
|
|
|
1977
2308
|
return {
|
|
1978
2309
|
path: urlPath,
|
|
@@ -1983,40 +2314,33 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1983
2314
|
}
|
|
1984
2315
|
|
|
1985
2316
|
/**
|
|
1986
|
-
*
|
|
1987
|
-
*
|
|
2317
|
+
* Deletes an account. For the account in use, the credential switches to another account first, or is removed when it was the last one. Needs an API key with `account.admin`.
|
|
2318
|
+
* Forget an account of a credential
|
|
1988
2319
|
*/
|
|
1989
|
-
async
|
|
1990
|
-
const requestOptions = await this.
|
|
2320
|
+
async deleteCredentialAccountRaw(requestParameters: DeleteCredentialAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialAccountsResponse>> {
|
|
2321
|
+
const requestOptions = await this.deleteCredentialAccountRequestOpts(requestParameters);
|
|
1991
2322
|
const response = await this.request(requestOptions, initOverrides);
|
|
1992
2323
|
|
|
1993
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2324
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialAccountsResponseFromJSON(jsonValue));
|
|
1994
2325
|
}
|
|
1995
2326
|
|
|
1996
2327
|
/**
|
|
1997
|
-
*
|
|
1998
|
-
*
|
|
2328
|
+
* Deletes an account. For the account in use, the credential switches to another account first, or is removed when it was the last one. Needs an API key with `account.admin`.
|
|
2329
|
+
* Forget an account of a credential
|
|
1999
2330
|
*/
|
|
2000
|
-
async
|
|
2001
|
-
const response = await this.
|
|
2331
|
+
async deleteCredentialAccount(requestParameters: DeleteCredentialAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialAccountsResponse> {
|
|
2332
|
+
const response = await this.deleteCredentialAccountRaw(requestParameters, initOverrides);
|
|
2002
2333
|
return await response.value();
|
|
2003
2334
|
}
|
|
2004
2335
|
|
|
2005
2336
|
/**
|
|
2006
|
-
* Creates request options for
|
|
2337
|
+
* Creates request options for deleteCredentialProfile without sending the request
|
|
2007
2338
|
*/
|
|
2008
|
-
async
|
|
2009
|
-
if (requestParameters['
|
|
2010
|
-
throw new runtime.RequiredError(
|
|
2011
|
-
'environmentId',
|
|
2012
|
-
'Required parameter "environmentId" was null or undefined when calling deleteEnvironmentRepo().'
|
|
2013
|
-
);
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
if (requestParameters['repositoryId'] == null) {
|
|
2339
|
+
async deleteCredentialProfileRequestOpts(requestParameters: DeleteCredentialProfileRequest): Promise<runtime.RequestOpts> {
|
|
2340
|
+
if (requestParameters['profile'] == null) {
|
|
2017
2341
|
throw new runtime.RequiredError(
|
|
2018
|
-
'
|
|
2019
|
-
'Required parameter "
|
|
2342
|
+
'profile',
|
|
2343
|
+
'Required parameter "profile" was null or undefined when calling deleteCredentialProfile().'
|
|
2020
2344
|
);
|
|
2021
2345
|
}
|
|
2022
2346
|
|
|
@@ -2033,9 +2357,8 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2033
2357
|
}
|
|
2034
2358
|
}
|
|
2035
2359
|
|
|
2036
|
-
let urlPath = `/
|
|
2037
|
-
urlPath = urlPath.replace('{
|
|
2038
|
-
urlPath = urlPath.replace('{repositoryId}', encodeURIComponent(String(requestParameters['repositoryId'])));
|
|
2360
|
+
let urlPath = `/credential-profiles/{profile}`;
|
|
2361
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
2039
2362
|
|
|
2040
2363
|
return {
|
|
2041
2364
|
path: urlPath,
|
|
@@ -2046,49 +2369,45 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2046
2369
|
}
|
|
2047
2370
|
|
|
2048
2371
|
/**
|
|
2049
|
-
*
|
|
2050
|
-
*
|
|
2372
|
+
* 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`.
|
|
2373
|
+
* Delete a credential profile
|
|
2051
2374
|
*/
|
|
2052
|
-
async
|
|
2053
|
-
const requestOptions = await this.
|
|
2375
|
+
async deleteCredentialProfileRaw(requestParameters: DeleteCredentialProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileDeletedResponse>> {
|
|
2376
|
+
const requestOptions = await this.deleteCredentialProfileRequestOpts(requestParameters);
|
|
2054
2377
|
const response = await this.request(requestOptions, initOverrides);
|
|
2055
2378
|
|
|
2056
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2379
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileDeletedResponseFromJSON(jsonValue));
|
|
2057
2380
|
}
|
|
2058
2381
|
|
|
2059
2382
|
/**
|
|
2060
|
-
*
|
|
2061
|
-
*
|
|
2383
|
+
* 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`.
|
|
2384
|
+
* Delete a credential profile
|
|
2062
2385
|
*/
|
|
2063
|
-
async
|
|
2064
|
-
const response = await this.
|
|
2386
|
+
async deleteCredentialProfile(requestParameters: DeleteCredentialProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileDeletedResponse> {
|
|
2387
|
+
const response = await this.deleteCredentialProfileRaw(requestParameters, initOverrides);
|
|
2065
2388
|
return await response.value();
|
|
2066
2389
|
}
|
|
2067
2390
|
|
|
2068
2391
|
/**
|
|
2069
|
-
* Creates request options for
|
|
2392
|
+
* Creates request options for deleteCredentialProfileCustomApi without sending the request
|
|
2070
2393
|
*/
|
|
2071
|
-
async
|
|
2072
|
-
if (requestParameters['
|
|
2394
|
+
async deleteCredentialProfileCustomApiRequestOpts(requestParameters: DeleteCredentialProfileCustomApiRequest): Promise<runtime.RequestOpts> {
|
|
2395
|
+
if (requestParameters['profile'] == null) {
|
|
2073
2396
|
throw new runtime.RequiredError(
|
|
2074
|
-
'
|
|
2075
|
-
'Required parameter "
|
|
2397
|
+
'profile',
|
|
2398
|
+
'Required parameter "profile" was null or undefined when calling deleteCredentialProfileCustomApi().'
|
|
2076
2399
|
);
|
|
2077
2400
|
}
|
|
2078
2401
|
|
|
2079
|
-
if (requestParameters['
|
|
2402
|
+
if (requestParameters['name'] == null) {
|
|
2080
2403
|
throw new runtime.RequiredError(
|
|
2081
|
-
'
|
|
2082
|
-
'Required parameter "
|
|
2404
|
+
'name',
|
|
2405
|
+
'Required parameter "name" was null or undefined when calling deleteCredentialProfileCustomApi().'
|
|
2083
2406
|
);
|
|
2084
2407
|
}
|
|
2085
2408
|
|
|
2086
2409
|
const queryParameters: any = {};
|
|
2087
2410
|
|
|
2088
|
-
if (requestParameters['path'] != null) {
|
|
2089
|
-
queryParameters['path'] = requestParameters['path'];
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
2411
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2093
2412
|
|
|
2094
2413
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -2100,8 +2419,9 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2100
2419
|
}
|
|
2101
2420
|
}
|
|
2102
2421
|
|
|
2103
|
-
let urlPath = `/
|
|
2104
|
-
urlPath = urlPath.replace('{
|
|
2422
|
+
let urlPath = `/credential-profiles/{profile}/custom-apis/{name}`;
|
|
2423
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
2424
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
2105
2425
|
|
|
2106
2426
|
return {
|
|
2107
2427
|
path: urlPath,
|
|
@@ -2112,40 +2432,40 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2112
2432
|
}
|
|
2113
2433
|
|
|
2114
2434
|
/**
|
|
2115
|
-
* Removes
|
|
2116
|
-
* Remove
|
|
2435
|
+
* Removes one custom API from the profile. Needs an API key with `account.admin`.
|
|
2436
|
+
* Remove a custom API
|
|
2117
2437
|
*/
|
|
2118
|
-
async
|
|
2119
|
-
const requestOptions = await this.
|
|
2438
|
+
async deleteCredentialProfileCustomApiRaw(requestParameters: DeleteCredentialProfileCustomApiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
2439
|
+
const requestOptions = await this.deleteCredentialProfileCustomApiRequestOpts(requestParameters);
|
|
2120
2440
|
const response = await this.request(requestOptions, initOverrides);
|
|
2121
2441
|
|
|
2122
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2442
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
2123
2443
|
}
|
|
2124
2444
|
|
|
2125
2445
|
/**
|
|
2126
|
-
* Removes
|
|
2127
|
-
* Remove
|
|
2446
|
+
* Removes one custom API from the profile. Needs an API key with `account.admin`.
|
|
2447
|
+
* Remove a custom API
|
|
2128
2448
|
*/
|
|
2129
|
-
async
|
|
2130
|
-
const response = await this.
|
|
2449
|
+
async deleteCredentialProfileCustomApi(requestParameters: DeleteCredentialProfileCustomApiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
2450
|
+
const response = await this.deleteCredentialProfileCustomApiRaw(requestParameters, initOverrides);
|
|
2131
2451
|
return await response.value();
|
|
2132
2452
|
}
|
|
2133
2453
|
|
|
2134
2454
|
/**
|
|
2135
|
-
* Creates request options for
|
|
2455
|
+
* Creates request options for deleteCredentialProfileKey without sending the request
|
|
2136
2456
|
*/
|
|
2137
|
-
async
|
|
2138
|
-
if (requestParameters['
|
|
2457
|
+
async deleteCredentialProfileKeyRequestOpts(requestParameters: DeleteCredentialProfileKeyRequest): Promise<runtime.RequestOpts> {
|
|
2458
|
+
if (requestParameters['profile'] == null) {
|
|
2139
2459
|
throw new runtime.RequiredError(
|
|
2140
|
-
'
|
|
2141
|
-
'Required parameter "
|
|
2460
|
+
'profile',
|
|
2461
|
+
'Required parameter "profile" was null or undefined when calling deleteCredentialProfileKey().'
|
|
2142
2462
|
);
|
|
2143
2463
|
}
|
|
2144
2464
|
|
|
2145
|
-
if (requestParameters['
|
|
2465
|
+
if (requestParameters['credential'] == null) {
|
|
2146
2466
|
throw new runtime.RequiredError(
|
|
2147
|
-
'
|
|
2148
|
-
'Required parameter "
|
|
2467
|
+
'credential',
|
|
2468
|
+
'Required parameter "credential" was null or undefined when calling deleteCredentialProfileKey().'
|
|
2149
2469
|
);
|
|
2150
2470
|
}
|
|
2151
2471
|
|
|
@@ -2162,9 +2482,9 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2162
2482
|
}
|
|
2163
2483
|
}
|
|
2164
2484
|
|
|
2165
|
-
let urlPath = `/
|
|
2166
|
-
urlPath = urlPath.replace('{
|
|
2167
|
-
urlPath = urlPath.replace('{
|
|
2485
|
+
let urlPath = `/credential-profiles/{profile}/keys/{credential}`;
|
|
2486
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
2487
|
+
urlPath = urlPath.replace('{credential}', encodeURIComponent(String(requestParameters['credential'])));
|
|
2168
2488
|
|
|
2169
2489
|
return {
|
|
2170
2490
|
path: urlPath,
|
|
@@ -2175,10 +2495,273 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2175
2495
|
}
|
|
2176
2496
|
|
|
2177
2497
|
/**
|
|
2178
|
-
* Removes
|
|
2179
|
-
* Remove
|
|
2498
|
+
* Removes one credential, an API key or a sign-in. Needs an API key with `account.admin`.
|
|
2499
|
+
* Remove a credential profile credential
|
|
2180
2500
|
*/
|
|
2181
|
-
async
|
|
2501
|
+
async deleteCredentialProfileKeyRaw(requestParameters: DeleteCredentialProfileKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
2502
|
+
const requestOptions = await this.deleteCredentialProfileKeyRequestOpts(requestParameters);
|
|
2503
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2504
|
+
|
|
2505
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
/**
|
|
2509
|
+
* Removes one credential, an API key or a sign-in. Needs an API key with `account.admin`.
|
|
2510
|
+
* Remove a credential profile credential
|
|
2511
|
+
*/
|
|
2512
|
+
async deleteCredentialProfileKey(requestParameters: DeleteCredentialProfileKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
2513
|
+
const response = await this.deleteCredentialProfileKeyRaw(requestParameters, initOverrides);
|
|
2514
|
+
return await response.value();
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* Creates request options for deleteEnvironment without sending the request
|
|
2519
|
+
*/
|
|
2520
|
+
async deleteEnvironmentRequestOpts(requestParameters: DeleteEnvironmentRequest): Promise<runtime.RequestOpts> {
|
|
2521
|
+
if (requestParameters['environmentId'] == null) {
|
|
2522
|
+
throw new runtime.RequiredError(
|
|
2523
|
+
'environmentId',
|
|
2524
|
+
'Required parameter "environmentId" was null or undefined when calling deleteEnvironment().'
|
|
2525
|
+
);
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
const queryParameters: any = {};
|
|
2529
|
+
|
|
2530
|
+
if (requestParameters['org'] != null) {
|
|
2531
|
+
queryParameters['org'] = requestParameters['org'];
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2535
|
+
|
|
2536
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2537
|
+
const token = this.configuration.accessToken;
|
|
2538
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2539
|
+
|
|
2540
|
+
if (tokenString) {
|
|
2541
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2542
|
+
}
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
let urlPath = `/environments/{environmentId}`;
|
|
2546
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
2547
|
+
|
|
2548
|
+
return {
|
|
2549
|
+
path: urlPath,
|
|
2550
|
+
method: 'DELETE',
|
|
2551
|
+
headers: headerParameters,
|
|
2552
|
+
query: queryParameters,
|
|
2553
|
+
};
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* Soft-deletes an environment. The default environment cannot be deleted, and at least one environment is always kept.
|
|
2558
|
+
* Delete a sandbox environment
|
|
2559
|
+
*/
|
|
2560
|
+
async deleteEnvironmentRaw(requestParameters: DeleteEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxEnvironmentResponse>> {
|
|
2561
|
+
const requestOptions = await this.deleteEnvironmentRequestOpts(requestParameters);
|
|
2562
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2563
|
+
|
|
2564
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SandboxEnvironmentResponseFromJSON(jsonValue));
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* Soft-deletes an environment. The default environment cannot be deleted, and at least one environment is always kept.
|
|
2569
|
+
* Delete a sandbox environment
|
|
2570
|
+
*/
|
|
2571
|
+
async deleteEnvironment(requestParameters: DeleteEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxEnvironmentResponse> {
|
|
2572
|
+
const response = await this.deleteEnvironmentRaw(requestParameters, initOverrides);
|
|
2573
|
+
return await response.value();
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
/**
|
|
2577
|
+
* Creates request options for deleteEnvironmentRepo without sending the request
|
|
2578
|
+
*/
|
|
2579
|
+
async deleteEnvironmentRepoRequestOpts(requestParameters: DeleteEnvironmentRepoRequest): Promise<runtime.RequestOpts> {
|
|
2580
|
+
if (requestParameters['environmentId'] == null) {
|
|
2581
|
+
throw new runtime.RequiredError(
|
|
2582
|
+
'environmentId',
|
|
2583
|
+
'Required parameter "environmentId" was null or undefined when calling deleteEnvironmentRepo().'
|
|
2584
|
+
);
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
if (requestParameters['repositoryId'] == null) {
|
|
2588
|
+
throw new runtime.RequiredError(
|
|
2589
|
+
'repositoryId',
|
|
2590
|
+
'Required parameter "repositoryId" was null or undefined when calling deleteEnvironmentRepo().'
|
|
2591
|
+
);
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
const queryParameters: any = {};
|
|
2595
|
+
|
|
2596
|
+
if (requestParameters['org'] != null) {
|
|
2597
|
+
queryParameters['org'] = requestParameters['org'];
|
|
2598
|
+
}
|
|
2599
|
+
|
|
2600
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2601
|
+
|
|
2602
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2603
|
+
const token = this.configuration.accessToken;
|
|
2604
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2605
|
+
|
|
2606
|
+
if (tokenString) {
|
|
2607
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
let urlPath = `/environments/{environmentId}/repos/{repositoryId}`;
|
|
2612
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
2613
|
+
urlPath = urlPath.replace('{repositoryId}', encodeURIComponent(String(requestParameters['repositoryId'])));
|
|
2614
|
+
|
|
2615
|
+
return {
|
|
2616
|
+
path: urlPath,
|
|
2617
|
+
method: 'DELETE',
|
|
2618
|
+
headers: headerParameters,
|
|
2619
|
+
query: queryParameters,
|
|
2620
|
+
};
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
/**
|
|
2624
|
+
* Removes one repository from the environment\'s selection. Mints a new immutable version.
|
|
2625
|
+
* Remove a repository from an environment
|
|
2626
|
+
*/
|
|
2627
|
+
async deleteEnvironmentRepoRaw(requestParameters: DeleteEnvironmentRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnvironmentItemChangeResponse>> {
|
|
2628
|
+
const requestOptions = await this.deleteEnvironmentRepoRequestOpts(requestParameters);
|
|
2629
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2630
|
+
|
|
2631
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EnvironmentItemChangeResponseFromJSON(jsonValue));
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
/**
|
|
2635
|
+
* Removes one repository from the environment\'s selection. Mints a new immutable version.
|
|
2636
|
+
* Remove a repository from an environment
|
|
2637
|
+
*/
|
|
2638
|
+
async deleteEnvironmentRepo(requestParameters: DeleteEnvironmentRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnvironmentItemChangeResponse> {
|
|
2639
|
+
const response = await this.deleteEnvironmentRepoRaw(requestParameters, initOverrides);
|
|
2640
|
+
return await response.value();
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* Creates request options for deleteEnvironmentSecretFile without sending the request
|
|
2645
|
+
*/
|
|
2646
|
+
async deleteEnvironmentSecretFileRequestOpts(requestParameters: DeleteEnvironmentSecretFileRequest): Promise<runtime.RequestOpts> {
|
|
2647
|
+
if (requestParameters['path'] == null) {
|
|
2648
|
+
throw new runtime.RequiredError(
|
|
2649
|
+
'path',
|
|
2650
|
+
'Required parameter "path" was null or undefined when calling deleteEnvironmentSecretFile().'
|
|
2651
|
+
);
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
if (requestParameters['environmentId'] == null) {
|
|
2655
|
+
throw new runtime.RequiredError(
|
|
2656
|
+
'environmentId',
|
|
2657
|
+
'Required parameter "environmentId" was null or undefined when calling deleteEnvironmentSecretFile().'
|
|
2658
|
+
);
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
const queryParameters: any = {};
|
|
2662
|
+
|
|
2663
|
+
if (requestParameters['path'] != null) {
|
|
2664
|
+
queryParameters['path'] = requestParameters['path'];
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2667
|
+
if (requestParameters['org'] != null) {
|
|
2668
|
+
queryParameters['org'] = requestParameters['org'];
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2672
|
+
|
|
2673
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2674
|
+
const token = this.configuration.accessToken;
|
|
2675
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2676
|
+
|
|
2677
|
+
if (tokenString) {
|
|
2678
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
let urlPath = `/environments/{environmentId}/secret-files`;
|
|
2683
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
2684
|
+
|
|
2685
|
+
return {
|
|
2686
|
+
path: urlPath,
|
|
2687
|
+
method: 'DELETE',
|
|
2688
|
+
headers: headerParameters,
|
|
2689
|
+
query: queryParameters,
|
|
2690
|
+
};
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
/**
|
|
2694
|
+
* Removes the secret file at `path`. Mints a new immutable version.
|
|
2695
|
+
* Remove one secret file
|
|
2696
|
+
*/
|
|
2697
|
+
async deleteEnvironmentSecretFileRaw(requestParameters: DeleteEnvironmentSecretFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnvironmentItemChangeResponse>> {
|
|
2698
|
+
const requestOptions = await this.deleteEnvironmentSecretFileRequestOpts(requestParameters);
|
|
2699
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2700
|
+
|
|
2701
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EnvironmentItemChangeResponseFromJSON(jsonValue));
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* Removes the secret file at `path`. Mints a new immutable version.
|
|
2706
|
+
* Remove one secret file
|
|
2707
|
+
*/
|
|
2708
|
+
async deleteEnvironmentSecretFile(requestParameters: DeleteEnvironmentSecretFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnvironmentItemChangeResponse> {
|
|
2709
|
+
const response = await this.deleteEnvironmentSecretFileRaw(requestParameters, initOverrides);
|
|
2710
|
+
return await response.value();
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* Creates request options for deleteEnvironmentVar without sending the request
|
|
2715
|
+
*/
|
|
2716
|
+
async deleteEnvironmentVarRequestOpts(requestParameters: DeleteEnvironmentVarRequest): Promise<runtime.RequestOpts> {
|
|
2717
|
+
if (requestParameters['environmentId'] == null) {
|
|
2718
|
+
throw new runtime.RequiredError(
|
|
2719
|
+
'environmentId',
|
|
2720
|
+
'Required parameter "environmentId" was null or undefined when calling deleteEnvironmentVar().'
|
|
2721
|
+
);
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
if (requestParameters['key'] == null) {
|
|
2725
|
+
throw new runtime.RequiredError(
|
|
2726
|
+
'key',
|
|
2727
|
+
'Required parameter "key" was null or undefined when calling deleteEnvironmentVar().'
|
|
2728
|
+
);
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
const queryParameters: any = {};
|
|
2732
|
+
|
|
2733
|
+
if (requestParameters['org'] != null) {
|
|
2734
|
+
queryParameters['org'] = requestParameters['org'];
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2738
|
+
|
|
2739
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2740
|
+
const token = this.configuration.accessToken;
|
|
2741
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2742
|
+
|
|
2743
|
+
if (tokenString) {
|
|
2744
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
let urlPath = `/environments/{environmentId}/vars/{key}`;
|
|
2749
|
+
urlPath = urlPath.replace('{environmentId}', encodeURIComponent(String(requestParameters['environmentId'])));
|
|
2750
|
+
urlPath = urlPath.replace('{key}', encodeURIComponent(String(requestParameters['key'])));
|
|
2751
|
+
|
|
2752
|
+
return {
|
|
2753
|
+
path: urlPath,
|
|
2754
|
+
method: 'DELETE',
|
|
2755
|
+
headers: headerParameters,
|
|
2756
|
+
query: queryParameters,
|
|
2757
|
+
};
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
/**
|
|
2761
|
+
* Removes a single variable. Mints a new immutable version.
|
|
2762
|
+
* Remove one environment variable
|
|
2763
|
+
*/
|
|
2764
|
+
async deleteEnvironmentVarRaw(requestParameters: DeleteEnvironmentVarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnvironmentItemChangeResponse>> {
|
|
2182
2765
|
const requestOptions = await this.deleteEnvironmentVarRequestOpts(requestParameters);
|
|
2183
2766
|
const response = await this.request(requestOptions, initOverrides);
|
|
2184
2767
|
|
|
@@ -2619,9 +3202,13 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2619
3202
|
/**
|
|
2620
3203
|
* Creates request options for environments without sending the request
|
|
2621
3204
|
*/
|
|
2622
|
-
async environmentsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
3205
|
+
async environmentsRequestOpts(requestParameters: EnvironmentsRequest): Promise<runtime.RequestOpts> {
|
|
2623
3206
|
const queryParameters: any = {};
|
|
2624
3207
|
|
|
3208
|
+
if (requestParameters['org'] != null) {
|
|
3209
|
+
queryParameters['org'] = requestParameters['org'];
|
|
3210
|
+
}
|
|
3211
|
+
|
|
2625
3212
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2626
3213
|
|
|
2627
3214
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -2647,8 +3234,8 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2647
3234
|
* 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.
|
|
2648
3235
|
* List Sandbox environments
|
|
2649
3236
|
*/
|
|
2650
|
-
async environmentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxEnvironmentListResponse>> {
|
|
2651
|
-
const requestOptions = await this.environmentsRequestOpts();
|
|
3237
|
+
async environmentsRaw(requestParameters: EnvironmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxEnvironmentListResponse>> {
|
|
3238
|
+
const requestOptions = await this.environmentsRequestOpts(requestParameters);
|
|
2652
3239
|
const response = await this.request(requestOptions, initOverrides);
|
|
2653
3240
|
|
|
2654
3241
|
return new runtime.JSONApiResponse(response, (jsonValue) => SandboxEnvironmentListResponseFromJSON(jsonValue));
|
|
@@ -2658,8 +3245,8 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2658
3245
|
* 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.
|
|
2659
3246
|
* List Sandbox environments
|
|
2660
3247
|
*/
|
|
2661
|
-
async environments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxEnvironmentListResponse> {
|
|
2662
|
-
const response = await this.environmentsRaw(initOverrides);
|
|
3248
|
+
async environments(requestParameters: EnvironmentsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxEnvironmentListResponse> {
|
|
3249
|
+
const response = await this.environmentsRaw(requestParameters, initOverrides);
|
|
2663
3250
|
return await response.value();
|
|
2664
3251
|
}
|
|
2665
3252
|
|
|
@@ -2840,19 +3427,137 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2840
3427
|
* Poll this endpoint after create, stop, resume, or fork operations.
|
|
2841
3428
|
* Get sandbox
|
|
2842
3429
|
*/
|
|
2843
|
-
async getRaw(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxInfoResponse>> {
|
|
2844
|
-
const requestOptions = await this.getRequestOpts(requestParameters);
|
|
3430
|
+
async getRaw(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxInfoResponse>> {
|
|
3431
|
+
const requestOptions = await this.getRequestOpts(requestParameters);
|
|
3432
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3433
|
+
|
|
3434
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SandboxInfoResponseFromJSON(jsonValue));
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
/**
|
|
3438
|
+
* Poll this endpoint after create, stop, resume, or fork operations.
|
|
3439
|
+
* Get sandbox
|
|
3440
|
+
*/
|
|
3441
|
+
async get(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxInfoResponse> {
|
|
3442
|
+
const response = await this.getRaw(requestParameters, initOverrides);
|
|
3443
|
+
return await response.value();
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
/**
|
|
3447
|
+
* Creates request options for getAiProxy without sending the request
|
|
3448
|
+
*/
|
|
3449
|
+
async getAiProxyRequestOpts(requestParameters: GetAiProxyRequest): Promise<runtime.RequestOpts> {
|
|
3450
|
+
const queryParameters: any = {};
|
|
3451
|
+
|
|
3452
|
+
if (requestParameters['org'] != null) {
|
|
3453
|
+
queryParameters['org'] = requestParameters['org'];
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3456
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3457
|
+
|
|
3458
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
3459
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3462
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3463
|
+
const token = this.configuration.accessToken;
|
|
3464
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3465
|
+
|
|
3466
|
+
if (tokenString) {
|
|
3467
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
let urlPath = `/ai-proxy`;
|
|
3472
|
+
|
|
3473
|
+
return {
|
|
3474
|
+
path: urlPath,
|
|
3475
|
+
method: 'GET',
|
|
3476
|
+
headers: headerParameters,
|
|
3477
|
+
query: queryParameters,
|
|
3478
|
+
};
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
/**
|
|
3482
|
+
* 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`.
|
|
3483
|
+
* Get AI credentials proxy
|
|
3484
|
+
*/
|
|
3485
|
+
async getAiProxyRaw(requestParameters: GetAiProxyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiProxySettings>> {
|
|
3486
|
+
const requestOptions = await this.getAiProxyRequestOpts(requestParameters);
|
|
3487
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3488
|
+
|
|
3489
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AiProxySettingsFromJSON(jsonValue));
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
/**
|
|
3493
|
+
* 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`.
|
|
3494
|
+
* Get AI credentials proxy
|
|
3495
|
+
*/
|
|
3496
|
+
async getAiProxy(requestParameters: GetAiProxyRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiProxySettings> {
|
|
3497
|
+
const response = await this.getAiProxyRaw(requestParameters, initOverrides);
|
|
3498
|
+
return await response.value();
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3501
|
+
/**
|
|
3502
|
+
* Creates request options for getAiUsage without sending the request
|
|
3503
|
+
*/
|
|
3504
|
+
async getAiUsageRequestOpts(requestParameters: GetAiUsageRequest): Promise<runtime.RequestOpts> {
|
|
3505
|
+
const queryParameters: any = {};
|
|
3506
|
+
|
|
3507
|
+
if (requestParameters['days'] != null) {
|
|
3508
|
+
queryParameters['days'] = requestParameters['days'];
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
if (requestParameters['profile'] != null) {
|
|
3512
|
+
queryParameters['profile'] = requestParameters['profile'];
|
|
3513
|
+
}
|
|
3514
|
+
|
|
3515
|
+
if (requestParameters['org'] != null) {
|
|
3516
|
+
queryParameters['org'] = requestParameters['org'];
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3520
|
+
|
|
3521
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
3522
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3526
|
+
const token = this.configuration.accessToken;
|
|
3527
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3528
|
+
|
|
3529
|
+
if (tokenString) {
|
|
3530
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
let urlPath = `/ai-usage`;
|
|
3535
|
+
|
|
3536
|
+
return {
|
|
3537
|
+
path: urlPath,
|
|
3538
|
+
method: 'GET',
|
|
3539
|
+
headers: headerParameters,
|
|
3540
|
+
query: queryParameters,
|
|
3541
|
+
};
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
/**
|
|
3545
|
+
* 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`.
|
|
3546
|
+
* Get AI usage
|
|
3547
|
+
*/
|
|
3548
|
+
async getAiUsageRaw(requestParameters: GetAiUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountAiUsageResponse>> {
|
|
3549
|
+
const requestOptions = await this.getAiUsageRequestOpts(requestParameters);
|
|
2845
3550
|
const response = await this.request(requestOptions, initOverrides);
|
|
2846
3551
|
|
|
2847
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3552
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountAiUsageResponseFromJSON(jsonValue));
|
|
2848
3553
|
}
|
|
2849
3554
|
|
|
2850
3555
|
/**
|
|
2851
|
-
*
|
|
2852
|
-
* Get
|
|
3556
|
+
* 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`.
|
|
3557
|
+
* Get AI usage
|
|
2853
3558
|
*/
|
|
2854
|
-
async
|
|
2855
|
-
const response = await this.
|
|
3559
|
+
async getAiUsage(requestParameters: GetAiUsageRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountAiUsageResponse> {
|
|
3560
|
+
const response = await this.getAiUsageRaw(requestParameters, initOverrides);
|
|
2856
3561
|
return await response.value();
|
|
2857
3562
|
}
|
|
2858
3563
|
|
|
@@ -3127,6 +3832,65 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
3127
3832
|
return await response.value();
|
|
3128
3833
|
}
|
|
3129
3834
|
|
|
3835
|
+
/**
|
|
3836
|
+
* Creates request options for getSandboxAiUsage without sending the request
|
|
3837
|
+
*/
|
|
3838
|
+
async getSandboxAiUsageRequestOpts(requestParameters: GetSandboxAiUsageRequest): Promise<runtime.RequestOpts> {
|
|
3839
|
+
if (requestParameters['sandboxId'] == null) {
|
|
3840
|
+
throw new runtime.RequiredError(
|
|
3841
|
+
'sandboxId',
|
|
3842
|
+
'Required parameter "sandboxId" was null or undefined when calling getSandboxAiUsage().'
|
|
3843
|
+
);
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
const queryParameters: any = {};
|
|
3847
|
+
|
|
3848
|
+
if (requestParameters['days'] != null) {
|
|
3849
|
+
queryParameters['days'] = requestParameters['days'];
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3853
|
+
|
|
3854
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3855
|
+
const token = this.configuration.accessToken;
|
|
3856
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3857
|
+
|
|
3858
|
+
if (tokenString) {
|
|
3859
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
let urlPath = `/sandboxes/{sandboxId}/ai-usage`;
|
|
3864
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
3865
|
+
|
|
3866
|
+
return {
|
|
3867
|
+
path: urlPath,
|
|
3868
|
+
method: 'GET',
|
|
3869
|
+
headers: headerParameters,
|
|
3870
|
+
query: queryParameters,
|
|
3871
|
+
};
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3874
|
+
/**
|
|
3875
|
+
* 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.
|
|
3876
|
+
* Get sandbox AI usage
|
|
3877
|
+
*/
|
|
3878
|
+
async getSandboxAiUsageRaw(requestParameters: GetSandboxAiUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxAiUsageResponse>> {
|
|
3879
|
+
const requestOptions = await this.getSandboxAiUsageRequestOpts(requestParameters);
|
|
3880
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3881
|
+
|
|
3882
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SandboxAiUsageResponseFromJSON(jsonValue));
|
|
3883
|
+
}
|
|
3884
|
+
|
|
3885
|
+
/**
|
|
3886
|
+
* 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.
|
|
3887
|
+
* Get sandbox AI usage
|
|
3888
|
+
*/
|
|
3889
|
+
async getSandboxAiUsage(requestParameters: GetSandboxAiUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxAiUsageResponse> {
|
|
3890
|
+
const response = await this.getSandboxAiUsageRaw(requestParameters, initOverrides);
|
|
3891
|
+
return await response.value();
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3130
3894
|
/**
|
|
3131
3895
|
* Creates request options for getSnapshotDownload without sending the request
|
|
3132
3896
|
*/
|
|
@@ -3645,6 +4409,116 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
3645
4409
|
return await response.value();
|
|
3646
4410
|
}
|
|
3647
4411
|
|
|
4412
|
+
/**
|
|
4413
|
+
* Creates request options for listCredentialAccounts without sending the request
|
|
4414
|
+
*/
|
|
4415
|
+
async listCredentialAccountsRequestOpts(requestParameters: ListCredentialAccountsRequest): Promise<runtime.RequestOpts> {
|
|
4416
|
+
if (requestParameters['profile'] == null) {
|
|
4417
|
+
throw new runtime.RequiredError(
|
|
4418
|
+
'profile',
|
|
4419
|
+
'Required parameter "profile" was null or undefined when calling listCredentialAccounts().'
|
|
4420
|
+
);
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4423
|
+
if (requestParameters['credential'] == null) {
|
|
4424
|
+
throw new runtime.RequiredError(
|
|
4425
|
+
'credential',
|
|
4426
|
+
'Required parameter "credential" was null or undefined when calling listCredentialAccounts().'
|
|
4427
|
+
);
|
|
4428
|
+
}
|
|
4429
|
+
|
|
4430
|
+
const queryParameters: any = {};
|
|
4431
|
+
|
|
4432
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4433
|
+
|
|
4434
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4435
|
+
const token = this.configuration.accessToken;
|
|
4436
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
4437
|
+
|
|
4438
|
+
if (tokenString) {
|
|
4439
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4440
|
+
}
|
|
4441
|
+
}
|
|
4442
|
+
|
|
4443
|
+
let urlPath = `/credential-profiles/{profile}/accounts/{credential}`;
|
|
4444
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
4445
|
+
urlPath = urlPath.replace('{credential}', encodeURIComponent(String(requestParameters['credential'])));
|
|
4446
|
+
|
|
4447
|
+
return {
|
|
4448
|
+
path: urlPath,
|
|
4449
|
+
method: 'GET',
|
|
4450
|
+
headers: headerParameters,
|
|
4451
|
+
query: queryParameters,
|
|
4452
|
+
};
|
|
4453
|
+
}
|
|
4454
|
+
|
|
4455
|
+
/**
|
|
4456
|
+
* Every account of one credential (several ChatGPT sign-ins, several OpenAI keys), in the order they were added, the one in use marked. Labels only, never a secret. Needs an API key with `account.admin`.
|
|
4457
|
+
* List the accounts of a credential
|
|
4458
|
+
*/
|
|
4459
|
+
async listCredentialAccountsRaw(requestParameters: ListCredentialAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialAccountsResponse>> {
|
|
4460
|
+
const requestOptions = await this.listCredentialAccountsRequestOpts(requestParameters);
|
|
4461
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4462
|
+
|
|
4463
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialAccountsResponseFromJSON(jsonValue));
|
|
4464
|
+
}
|
|
4465
|
+
|
|
4466
|
+
/**
|
|
4467
|
+
* Every account of one credential (several ChatGPT sign-ins, several OpenAI keys), in the order they were added, the one in use marked. Labels only, never a secret. Needs an API key with `account.admin`.
|
|
4468
|
+
* List the accounts of a credential
|
|
4469
|
+
*/
|
|
4470
|
+
async listCredentialAccounts(requestParameters: ListCredentialAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialAccountsResponse> {
|
|
4471
|
+
const response = await this.listCredentialAccountsRaw(requestParameters, initOverrides);
|
|
4472
|
+
return await response.value();
|
|
4473
|
+
}
|
|
4474
|
+
|
|
4475
|
+
/**
|
|
4476
|
+
* Creates request options for listCredentialProfiles without sending the request
|
|
4477
|
+
*/
|
|
4478
|
+
async listCredentialProfilesRequestOpts(): Promise<runtime.RequestOpts> {
|
|
4479
|
+
const queryParameters: any = {};
|
|
4480
|
+
|
|
4481
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4482
|
+
|
|
4483
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4484
|
+
const token = this.configuration.accessToken;
|
|
4485
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
4486
|
+
|
|
4487
|
+
if (tokenString) {
|
|
4488
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4489
|
+
}
|
|
4490
|
+
}
|
|
4491
|
+
|
|
4492
|
+
let urlPath = `/credential-profiles`;
|
|
4493
|
+
|
|
4494
|
+
return {
|
|
4495
|
+
path: urlPath,
|
|
4496
|
+
method: 'GET',
|
|
4497
|
+
headers: headerParameters,
|
|
4498
|
+
query: queryParameters,
|
|
4499
|
+
};
|
|
4500
|
+
}
|
|
4501
|
+
|
|
4502
|
+
/**
|
|
4503
|
+
* Returns every AI credential profile you can use, yours and your organizations\'. Secret values are never returned. Needs an API key with `account.admin`.
|
|
4504
|
+
* List credential profiles
|
|
4505
|
+
*/
|
|
4506
|
+
async listCredentialProfilesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileListResponse>> {
|
|
4507
|
+
const requestOptions = await this.listCredentialProfilesRequestOpts();
|
|
4508
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4509
|
+
|
|
4510
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileListResponseFromJSON(jsonValue));
|
|
4511
|
+
}
|
|
4512
|
+
|
|
4513
|
+
/**
|
|
4514
|
+
* Returns every AI credential profile you can use, yours and your organizations\'. Secret values are never returned. Needs an API key with `account.admin`.
|
|
4515
|
+
* List credential profiles
|
|
4516
|
+
*/
|
|
4517
|
+
async listCredentialProfiles(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileListResponse> {
|
|
4518
|
+
const response = await this.listCredentialProfilesRaw(initOverrides);
|
|
4519
|
+
return await response.value();
|
|
4520
|
+
}
|
|
4521
|
+
|
|
3648
4522
|
/**
|
|
3649
4523
|
* Creates request options for listNamedSnapshots without sending the request
|
|
3650
4524
|
*/
|
|
@@ -4855,15 +5729,145 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4855
5729
|
return await response.value();
|
|
4856
5730
|
}
|
|
4857
5731
|
|
|
4858
|
-
/**
|
|
4859
|
-
* Creates request options for selectRepo without sending the request
|
|
4860
|
-
*/
|
|
4861
|
-
async selectRepoRequestOpts(input: SelectRepoRequest | runtime.FlatBody<SelectRepoRequest, 'repoSelectionRequest'>): Promise<runtime.RequestOpts> {
|
|
4862
|
-
const requestParameters = runtime.unflattenBody<SelectRepoRequest>(input, 'repoSelectionRequest', [], []);
|
|
4863
|
-
if (requestParameters['repoSelectionRequest'] == null) {
|
|
5732
|
+
/**
|
|
5733
|
+
* Creates request options for selectRepo without sending the request
|
|
5734
|
+
*/
|
|
5735
|
+
async selectRepoRequestOpts(input: SelectRepoRequest | runtime.FlatBody<SelectRepoRequest, 'repoSelectionRequest'>): Promise<runtime.RequestOpts> {
|
|
5736
|
+
const requestParameters = runtime.unflattenBody<SelectRepoRequest>(input, 'repoSelectionRequest', [], []);
|
|
5737
|
+
if (requestParameters['repoSelectionRequest'] == null) {
|
|
5738
|
+
throw new runtime.RequiredError(
|
|
5739
|
+
'repoSelectionRequest',
|
|
5740
|
+
'Required parameter "repoSelectionRequest" was null or undefined when calling selectRepo().'
|
|
5741
|
+
);
|
|
5742
|
+
}
|
|
5743
|
+
|
|
5744
|
+
const queryParameters: any = {};
|
|
5745
|
+
|
|
5746
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5747
|
+
|
|
5748
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5749
|
+
|
|
5750
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5751
|
+
const token = this.configuration.accessToken;
|
|
5752
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
5753
|
+
|
|
5754
|
+
if (tokenString) {
|
|
5755
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5756
|
+
}
|
|
5757
|
+
}
|
|
5758
|
+
|
|
5759
|
+
let urlPath = `/repos`;
|
|
5760
|
+
|
|
5761
|
+
return {
|
|
5762
|
+
path: urlPath,
|
|
5763
|
+
method: 'POST',
|
|
5764
|
+
headers: headerParameters,
|
|
5765
|
+
query: queryParameters,
|
|
5766
|
+
body: RepoSelectionRequestToJSON(requestParameters['repoSelectionRequest']),
|
|
5767
|
+
};
|
|
5768
|
+
}
|
|
5769
|
+
|
|
5770
|
+
/**
|
|
5771
|
+
* Idempotently selects one repository for the sandbox environment. Use `databaseId` from `GET /repos` as `repositoryId`; selecting an already-selected repository updates its `baseBranch`.
|
|
5772
|
+
* Select repository for sandboxes
|
|
5773
|
+
*/
|
|
5774
|
+
async selectRepoRaw(requestParameters: SelectRepoRequest | runtime.FlatBody<SelectRepoRequest, 'repoSelectionRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RepoSelectionResponse>> {
|
|
5775
|
+
const requestOptions = await this.selectRepoRequestOpts(requestParameters);
|
|
5776
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5777
|
+
|
|
5778
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RepoSelectionResponseFromJSON(jsonValue));
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5781
|
+
/**
|
|
5782
|
+
* Idempotently selects one repository for the sandbox environment. Use `databaseId` from `GET /repos` as `repositoryId`; selecting an already-selected repository updates its `baseBranch`.
|
|
5783
|
+
* Select repository for sandboxes
|
|
5784
|
+
*/
|
|
5785
|
+
async selectRepo(requestParameters: SelectRepoRequest | runtime.FlatBody<SelectRepoRequest, 'repoSelectionRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RepoSelectionResponse> {
|
|
5786
|
+
const response = await this.selectRepoRaw(requestParameters, initOverrides);
|
|
5787
|
+
return await response.value();
|
|
5788
|
+
}
|
|
5789
|
+
|
|
5790
|
+
/**
|
|
5791
|
+
* Creates request options for setActiveOrganization without sending the request
|
|
5792
|
+
*/
|
|
5793
|
+
async setActiveOrganizationRequestOpts(input: SetActiveOrganizationRequest | runtime.FlatBody<SetActiveOrganizationRequest, 'activeOrgUpdateRequest'>): Promise<runtime.RequestOpts> {
|
|
5794
|
+
const requestParameters = runtime.unflattenBody<SetActiveOrganizationRequest>(input, 'activeOrgUpdateRequest', [], []);
|
|
5795
|
+
if (requestParameters['activeOrgUpdateRequest'] == null) {
|
|
5796
|
+
throw new runtime.RequiredError(
|
|
5797
|
+
'activeOrgUpdateRequest',
|
|
5798
|
+
'Required parameter "activeOrgUpdateRequest" was null or undefined when calling setActiveOrganization().'
|
|
5799
|
+
);
|
|
5800
|
+
}
|
|
5801
|
+
|
|
5802
|
+
const queryParameters: any = {};
|
|
5803
|
+
|
|
5804
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5805
|
+
|
|
5806
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5807
|
+
|
|
5808
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5809
|
+
const token = this.configuration.accessToken;
|
|
5810
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
5811
|
+
|
|
5812
|
+
if (tokenString) {
|
|
5813
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5814
|
+
}
|
|
5815
|
+
}
|
|
5816
|
+
|
|
5817
|
+
let urlPath = `/orgs/active`;
|
|
5818
|
+
|
|
5819
|
+
return {
|
|
5820
|
+
path: urlPath,
|
|
5821
|
+
method: 'PATCH',
|
|
5822
|
+
headers: headerParameters,
|
|
5823
|
+
query: queryParameters,
|
|
5824
|
+
body: ActiveOrgUpdateRequestToJSON(requestParameters['activeOrgUpdateRequest']),
|
|
5825
|
+
};
|
|
5826
|
+
}
|
|
5827
|
+
|
|
5828
|
+
/**
|
|
5829
|
+
* 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.
|
|
5830
|
+
* Set the active organization
|
|
5831
|
+
*/
|
|
5832
|
+
async setActiveOrganizationRaw(requestParameters: SetActiveOrganizationRequest | runtime.FlatBody<SetActiveOrganizationRequest, 'activeOrgUpdateRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ActiveOrgResponse>> {
|
|
5833
|
+
const requestOptions = await this.setActiveOrganizationRequestOpts(requestParameters);
|
|
5834
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5835
|
+
|
|
5836
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ActiveOrgResponseFromJSON(jsonValue));
|
|
5837
|
+
}
|
|
5838
|
+
|
|
5839
|
+
/**
|
|
5840
|
+
* 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.
|
|
5841
|
+
* Set the active organization
|
|
5842
|
+
*/
|
|
5843
|
+
async setActiveOrganization(requestParameters: SetActiveOrganizationRequest | runtime.FlatBody<SetActiveOrganizationRequest, 'activeOrgUpdateRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ActiveOrgResponse> {
|
|
5844
|
+
const response = await this.setActiveOrganizationRaw(requestParameters, initOverrides);
|
|
5845
|
+
return await response.value();
|
|
5846
|
+
}
|
|
5847
|
+
|
|
5848
|
+
/**
|
|
5849
|
+
* Creates request options for setCredentialProfileCustomApi without sending the request
|
|
5850
|
+
*/
|
|
5851
|
+
async setCredentialProfileCustomApiRequestOpts(input: SetCredentialProfileCustomApiRequest | runtime.FlatBody<SetCredentialProfileCustomApiRequest, 'setCustomApiRequest'>): Promise<runtime.RequestOpts> {
|
|
5852
|
+
const requestParameters = runtime.unflattenBody<SetCredentialProfileCustomApiRequest>(input, 'setCustomApiRequest', ['profile', 'name'], []);
|
|
5853
|
+
if (requestParameters['profile'] == null) {
|
|
5854
|
+
throw new runtime.RequiredError(
|
|
5855
|
+
'profile',
|
|
5856
|
+
'Required parameter "profile" was null or undefined when calling setCredentialProfileCustomApi().'
|
|
5857
|
+
);
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
if (requestParameters['name'] == null) {
|
|
5861
|
+
throw new runtime.RequiredError(
|
|
5862
|
+
'name',
|
|
5863
|
+
'Required parameter "name" was null or undefined when calling setCredentialProfileCustomApi().'
|
|
5864
|
+
);
|
|
5865
|
+
}
|
|
5866
|
+
|
|
5867
|
+
if (requestParameters['setCustomApiRequest'] == null) {
|
|
4864
5868
|
throw new runtime.RequiredError(
|
|
4865
|
-
'
|
|
4866
|
-
'Required parameter "
|
|
5869
|
+
'setCustomApiRequest',
|
|
5870
|
+
'Required parameter "setCustomApiRequest" was null or undefined when calling setCredentialProfileCustomApi().'
|
|
4867
5871
|
);
|
|
4868
5872
|
}
|
|
4869
5873
|
|
|
@@ -4882,46 +5886,62 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4882
5886
|
}
|
|
4883
5887
|
}
|
|
4884
5888
|
|
|
4885
|
-
let urlPath = `/
|
|
5889
|
+
let urlPath = `/credential-profiles/{profile}/custom-apis/{name}`;
|
|
5890
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
5891
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
4886
5892
|
|
|
4887
5893
|
return {
|
|
4888
5894
|
path: urlPath,
|
|
4889
|
-
method: '
|
|
5895
|
+
method: 'PUT',
|
|
4890
5896
|
headers: headerParameters,
|
|
4891
5897
|
query: queryParameters,
|
|
4892
|
-
body:
|
|
5898
|
+
body: SetCustomApiRequestToJSON(requestParameters['setCustomApiRequest']),
|
|
4893
5899
|
};
|
|
4894
5900
|
}
|
|
4895
5901
|
|
|
4896
5902
|
/**
|
|
4897
|
-
*
|
|
4898
|
-
*
|
|
5903
|
+
* Adds or replaces one custom API. The sandbox gets `<NAME>` and `<NAME>_BASE_URL`. Needs an API key with `account.admin`.
|
|
5904
|
+
* Set a custom API
|
|
4899
5905
|
*/
|
|
4900
|
-
async
|
|
4901
|
-
const requestOptions = await this.
|
|
5906
|
+
async setCredentialProfileCustomApiRaw(requestParameters: SetCredentialProfileCustomApiRequest | runtime.FlatBody<SetCredentialProfileCustomApiRequest, 'setCustomApiRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
5907
|
+
const requestOptions = await this.setCredentialProfileCustomApiRequestOpts(requestParameters);
|
|
4902
5908
|
const response = await this.request(requestOptions, initOverrides);
|
|
4903
5909
|
|
|
4904
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
5910
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
4905
5911
|
}
|
|
4906
5912
|
|
|
4907
5913
|
/**
|
|
4908
|
-
*
|
|
4909
|
-
*
|
|
5914
|
+
* Adds or replaces one custom API. The sandbox gets `<NAME>` and `<NAME>_BASE_URL`. Needs an API key with `account.admin`.
|
|
5915
|
+
* Set a custom API
|
|
4910
5916
|
*/
|
|
4911
|
-
async
|
|
4912
|
-
const response = await this.
|
|
5917
|
+
async setCredentialProfileCustomApi(requestParameters: SetCredentialProfileCustomApiRequest | runtime.FlatBody<SetCredentialProfileCustomApiRequest, 'setCustomApiRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
5918
|
+
const response = await this.setCredentialProfileCustomApiRaw(requestParameters, initOverrides);
|
|
4913
5919
|
return await response.value();
|
|
4914
5920
|
}
|
|
4915
5921
|
|
|
4916
5922
|
/**
|
|
4917
|
-
* Creates request options for
|
|
5923
|
+
* Creates request options for setCredentialProfileKey without sending the request
|
|
4918
5924
|
*/
|
|
4919
|
-
async
|
|
4920
|
-
const requestParameters = runtime.unflattenBody<
|
|
4921
|
-
if (requestParameters['
|
|
5925
|
+
async setCredentialProfileKeyRequestOpts(input: SetCredentialProfileKeyRequest | runtime.FlatBody<SetCredentialProfileKeyRequest, 'setCredentialKeyRequest'>): Promise<runtime.RequestOpts> {
|
|
5926
|
+
const requestParameters = runtime.unflattenBody<SetCredentialProfileKeyRequest>(input, 'setCredentialKeyRequest', ['profile', 'credential'], []);
|
|
5927
|
+
if (requestParameters['profile'] == null) {
|
|
4922
5928
|
throw new runtime.RequiredError(
|
|
4923
|
-
'
|
|
4924
|
-
'Required parameter "
|
|
5929
|
+
'profile',
|
|
5930
|
+
'Required parameter "profile" was null or undefined when calling setCredentialProfileKey().'
|
|
5931
|
+
);
|
|
5932
|
+
}
|
|
5933
|
+
|
|
5934
|
+
if (requestParameters['credential'] == null) {
|
|
5935
|
+
throw new runtime.RequiredError(
|
|
5936
|
+
'credential',
|
|
5937
|
+
'Required parameter "credential" was null or undefined when calling setCredentialProfileKey().'
|
|
5938
|
+
);
|
|
5939
|
+
}
|
|
5940
|
+
|
|
5941
|
+
if (requestParameters['setCredentialKeyRequest'] == null) {
|
|
5942
|
+
throw new runtime.RequiredError(
|
|
5943
|
+
'setCredentialKeyRequest',
|
|
5944
|
+
'Required parameter "setCredentialKeyRequest" was null or undefined when calling setCredentialProfileKey().'
|
|
4925
5945
|
);
|
|
4926
5946
|
}
|
|
4927
5947
|
|
|
@@ -4940,34 +5960,36 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4940
5960
|
}
|
|
4941
5961
|
}
|
|
4942
5962
|
|
|
4943
|
-
let urlPath = `/
|
|
5963
|
+
let urlPath = `/credential-profiles/{profile}/keys/{credential}`;
|
|
5964
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
5965
|
+
urlPath = urlPath.replace('{credential}', encodeURIComponent(String(requestParameters['credential'])));
|
|
4944
5966
|
|
|
4945
5967
|
return {
|
|
4946
5968
|
path: urlPath,
|
|
4947
|
-
method: '
|
|
5969
|
+
method: 'PUT',
|
|
4948
5970
|
headers: headerParameters,
|
|
4949
5971
|
query: queryParameters,
|
|
4950
|
-
body:
|
|
5972
|
+
body: SetCredentialKeyRequestToJSON(requestParameters['setCredentialKeyRequest']),
|
|
4951
5973
|
};
|
|
4952
5974
|
}
|
|
4953
5975
|
|
|
4954
5976
|
/**
|
|
4955
|
-
*
|
|
4956
|
-
* Set
|
|
5977
|
+
* 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`.
|
|
5978
|
+
* Set a credential profile API key
|
|
4957
5979
|
*/
|
|
4958
|
-
async
|
|
4959
|
-
const requestOptions = await this.
|
|
5980
|
+
async setCredentialProfileKeyRaw(requestParameters: SetCredentialProfileKeyRequest | runtime.FlatBody<SetCredentialProfileKeyRequest, 'setCredentialKeyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
5981
|
+
const requestOptions = await this.setCredentialProfileKeyRequestOpts(requestParameters);
|
|
4960
5982
|
const response = await this.request(requestOptions, initOverrides);
|
|
4961
5983
|
|
|
4962
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
5984
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
4963
5985
|
}
|
|
4964
5986
|
|
|
4965
5987
|
/**
|
|
4966
|
-
*
|
|
4967
|
-
* Set
|
|
5988
|
+
* 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`.
|
|
5989
|
+
* Set a credential profile API key
|
|
4968
5990
|
*/
|
|
4969
|
-
async
|
|
4970
|
-
const response = await this.
|
|
5991
|
+
async setCredentialProfileKey(requestParameters: SetCredentialProfileKeyRequest | runtime.FlatBody<SetCredentialProfileKeyRequest, 'setCredentialKeyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
5992
|
+
const response = await this.setCredentialProfileKeyRaw(requestParameters, initOverrides);
|
|
4971
5993
|
return await response.value();
|
|
4972
5994
|
}
|
|
4973
5995
|
|
|
@@ -4975,7 +5997,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4975
5997
|
* Creates request options for setEnvironmentSecretFile without sending the request
|
|
4976
5998
|
*/
|
|
4977
5999
|
async setEnvironmentSecretFileRequestOpts(input: SetEnvironmentSecretFileOperationRequest | runtime.FlatBody<SetEnvironmentSecretFileOperationRequest, 'setEnvironmentSecretFileRequest'>): Promise<runtime.RequestOpts> {
|
|
4978
|
-
const requestParameters = runtime.unflattenBody<SetEnvironmentSecretFileOperationRequest>(input, 'setEnvironmentSecretFileRequest', ['environmentId'], []);
|
|
6000
|
+
const requestParameters = runtime.unflattenBody<SetEnvironmentSecretFileOperationRequest>(input, 'setEnvironmentSecretFileRequest', ['environmentId', 'org'], []);
|
|
4979
6001
|
if (requestParameters['environmentId'] == null) {
|
|
4980
6002
|
throw new runtime.RequiredError(
|
|
4981
6003
|
'environmentId',
|
|
@@ -4992,6 +6014,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
4992
6014
|
|
|
4993
6015
|
const queryParameters: any = {};
|
|
4994
6016
|
|
|
6017
|
+
if (requestParameters['org'] != null) {
|
|
6018
|
+
queryParameters['org'] = requestParameters['org'];
|
|
6019
|
+
}
|
|
6020
|
+
|
|
4995
6021
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
4996
6022
|
|
|
4997
6023
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -5041,7 +6067,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5041
6067
|
* Creates request options for setEnvironmentVar without sending the request
|
|
5042
6068
|
*/
|
|
5043
6069
|
async setEnvironmentVarRequestOpts(input: SetEnvironmentVarOperationRequest | runtime.FlatBody<SetEnvironmentVarOperationRequest, 'setEnvironmentVarRequest'>): Promise<runtime.RequestOpts> {
|
|
5044
|
-
const requestParameters = runtime.unflattenBody<SetEnvironmentVarOperationRequest>(input, 'setEnvironmentVarRequest', ['environmentId', 'key'], []);
|
|
6070
|
+
const requestParameters = runtime.unflattenBody<SetEnvironmentVarOperationRequest>(input, 'setEnvironmentVarRequest', ['environmentId', 'key', 'org'], []);
|
|
5045
6071
|
if (requestParameters['environmentId'] == null) {
|
|
5046
6072
|
throw new runtime.RequiredError(
|
|
5047
6073
|
'environmentId',
|
|
@@ -5065,6 +6091,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5065
6091
|
|
|
5066
6092
|
const queryParameters: any = {};
|
|
5067
6093
|
|
|
6094
|
+
if (requestParameters['org'] != null) {
|
|
6095
|
+
queryParameters['org'] = requestParameters['org'];
|
|
6096
|
+
}
|
|
6097
|
+
|
|
5068
6098
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
5069
6099
|
|
|
5070
6100
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -5111,6 +6141,72 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5111
6141
|
return await response.value();
|
|
5112
6142
|
}
|
|
5113
6143
|
|
|
6144
|
+
/**
|
|
6145
|
+
* Creates request options for setSandboxAiAccess without sending the request
|
|
6146
|
+
*/
|
|
6147
|
+
async setSandboxAiAccessRequestOpts(input: SetSandboxAiAccessOperationRequest | runtime.FlatBody<SetSandboxAiAccessOperationRequest, 'setSandboxAiAccessRequest'>): Promise<runtime.RequestOpts> {
|
|
6148
|
+
const requestParameters = runtime.unflattenBody<SetSandboxAiAccessOperationRequest>(input, 'setSandboxAiAccessRequest', ['sandboxId'], []);
|
|
6149
|
+
if (requestParameters['sandboxId'] == null) {
|
|
6150
|
+
throw new runtime.RequiredError(
|
|
6151
|
+
'sandboxId',
|
|
6152
|
+
'Required parameter "sandboxId" was null or undefined when calling setSandboxAiAccess().'
|
|
6153
|
+
);
|
|
6154
|
+
}
|
|
6155
|
+
|
|
6156
|
+
if (requestParameters['setSandboxAiAccessRequest'] == null) {
|
|
6157
|
+
throw new runtime.RequiredError(
|
|
6158
|
+
'setSandboxAiAccessRequest',
|
|
6159
|
+
'Required parameter "setSandboxAiAccessRequest" was null or undefined when calling setSandboxAiAccess().'
|
|
6160
|
+
);
|
|
6161
|
+
}
|
|
6162
|
+
|
|
6163
|
+
const queryParameters: any = {};
|
|
6164
|
+
|
|
6165
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6166
|
+
|
|
6167
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
6168
|
+
|
|
6169
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
6170
|
+
const token = this.configuration.accessToken;
|
|
6171
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
6172
|
+
|
|
6173
|
+
if (tokenString) {
|
|
6174
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
6175
|
+
}
|
|
6176
|
+
}
|
|
6177
|
+
|
|
6178
|
+
let urlPath = `/sandboxes/{sandboxId}/ai-access`;
|
|
6179
|
+
urlPath = urlPath.replace('{sandboxId}', encodeURIComponent(String(requestParameters['sandboxId'])));
|
|
6180
|
+
|
|
6181
|
+
return {
|
|
6182
|
+
path: urlPath,
|
|
6183
|
+
method: 'PUT',
|
|
6184
|
+
headers: headerParameters,
|
|
6185
|
+
query: queryParameters,
|
|
6186
|
+
body: SetSandboxAiAccessRequestToJSON(requestParameters['setSandboxAiAccessRequest']),
|
|
6187
|
+
};
|
|
6188
|
+
}
|
|
6189
|
+
|
|
6190
|
+
/**
|
|
6191
|
+
* 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`.
|
|
6192
|
+
* Block or unblock sandbox AI access
|
|
6193
|
+
*/
|
|
6194
|
+
async setSandboxAiAccessRaw(requestParameters: SetSandboxAiAccessOperationRequest | runtime.FlatBody<SetSandboxAiAccessOperationRequest, 'setSandboxAiAccessRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxAiAccessResponse>> {
|
|
6195
|
+
const requestOptions = await this.setSandboxAiAccessRequestOpts(requestParameters);
|
|
6196
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
6197
|
+
|
|
6198
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SandboxAiAccessResponseFromJSON(jsonValue));
|
|
6199
|
+
}
|
|
6200
|
+
|
|
6201
|
+
/**
|
|
6202
|
+
* 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`.
|
|
6203
|
+
* Block or unblock sandbox AI access
|
|
6204
|
+
*/
|
|
6205
|
+
async setSandboxAiAccess(requestParameters: SetSandboxAiAccessOperationRequest | runtime.FlatBody<SetSandboxAiAccessOperationRequest, 'setSandboxAiAccessRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxAiAccessResponse> {
|
|
6206
|
+
const response = await this.setSandboxAiAccessRaw(requestParameters, initOverrides);
|
|
6207
|
+
return await response.value();
|
|
6208
|
+
}
|
|
6209
|
+
|
|
5114
6210
|
/**
|
|
5115
6211
|
* Creates request options for setTelemetry without sending the request
|
|
5116
6212
|
*/
|
|
@@ -5482,6 +6578,77 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5482
6578
|
return await response.value();
|
|
5483
6579
|
}
|
|
5484
6580
|
|
|
6581
|
+
/**
|
|
6582
|
+
* Creates request options for switchCredentialAccount without sending the request
|
|
6583
|
+
*/
|
|
6584
|
+
async switchCredentialAccountRequestOpts(requestParameters: SwitchCredentialAccountRequest): Promise<runtime.RequestOpts> {
|
|
6585
|
+
if (requestParameters['profile'] == null) {
|
|
6586
|
+
throw new runtime.RequiredError(
|
|
6587
|
+
'profile',
|
|
6588
|
+
'Required parameter "profile" was null or undefined when calling switchCredentialAccount().'
|
|
6589
|
+
);
|
|
6590
|
+
}
|
|
6591
|
+
|
|
6592
|
+
if (requestParameters['credential'] == null) {
|
|
6593
|
+
throw new runtime.RequiredError(
|
|
6594
|
+
'credential',
|
|
6595
|
+
'Required parameter "credential" was null or undefined when calling switchCredentialAccount().'
|
|
6596
|
+
);
|
|
6597
|
+
}
|
|
6598
|
+
|
|
6599
|
+
if (requestParameters['account'] == null) {
|
|
6600
|
+
throw new runtime.RequiredError(
|
|
6601
|
+
'account',
|
|
6602
|
+
'Required parameter "account" was null or undefined when calling switchCredentialAccount().'
|
|
6603
|
+
);
|
|
6604
|
+
}
|
|
6605
|
+
|
|
6606
|
+
const queryParameters: any = {};
|
|
6607
|
+
|
|
6608
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6609
|
+
|
|
6610
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
6611
|
+
const token = this.configuration.accessToken;
|
|
6612
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
6613
|
+
|
|
6614
|
+
if (tokenString) {
|
|
6615
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
6616
|
+
}
|
|
6617
|
+
}
|
|
6618
|
+
|
|
6619
|
+
let urlPath = `/credential-profiles/{profile}/accounts/{credential}/{account}/active`;
|
|
6620
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
6621
|
+
urlPath = urlPath.replace('{credential}', encodeURIComponent(String(requestParameters['credential'])));
|
|
6622
|
+
urlPath = urlPath.replace('{account}', encodeURIComponent(String(requestParameters['account'])));
|
|
6623
|
+
|
|
6624
|
+
return {
|
|
6625
|
+
path: urlPath,
|
|
6626
|
+
method: 'PUT',
|
|
6627
|
+
headers: headerParameters,
|
|
6628
|
+
query: queryParameters,
|
|
6629
|
+
};
|
|
6630
|
+
}
|
|
6631
|
+
|
|
6632
|
+
/**
|
|
6633
|
+
* Makes this account the one in use; the previous one stays as another account. Switching to the account already in use changes nothing. Every sandbox that uses the profile gets it at once, running ones included, with no restart. Use it when one account runs out of credits. Needs an API key with `account.admin`.
|
|
6634
|
+
* Switch a credential to another account
|
|
6635
|
+
*/
|
|
6636
|
+
async switchCredentialAccountRaw(requestParameters: SwitchCredentialAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialAccountsResponse>> {
|
|
6637
|
+
const requestOptions = await this.switchCredentialAccountRequestOpts(requestParameters);
|
|
6638
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
6639
|
+
|
|
6640
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialAccountsResponseFromJSON(jsonValue));
|
|
6641
|
+
}
|
|
6642
|
+
|
|
6643
|
+
/**
|
|
6644
|
+
* Makes this account the one in use; the previous one stays as another account. Switching to the account already in use changes nothing. Every sandbox that uses the profile gets it at once, running ones included, with no restart. Use it when one account runs out of credits. Needs an API key with `account.admin`.
|
|
6645
|
+
* Switch a credential to another account
|
|
6646
|
+
*/
|
|
6647
|
+
async switchCredentialAccount(requestParameters: SwitchCredentialAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialAccountsResponse> {
|
|
6648
|
+
const response = await this.switchCredentialAccountRaw(requestParameters, initOverrides);
|
|
6649
|
+
return await response.value();
|
|
6650
|
+
}
|
|
6651
|
+
|
|
5485
6652
|
/**
|
|
5486
6653
|
* Creates request options for update without sending the request
|
|
5487
6654
|
*/
|
|
@@ -5546,6 +6713,138 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5546
6713
|
return await response.value();
|
|
5547
6714
|
}
|
|
5548
6715
|
|
|
6716
|
+
/**
|
|
6717
|
+
* Creates request options for updateAiProxy without sending the request
|
|
6718
|
+
*/
|
|
6719
|
+
async updateAiProxyRequestOpts(input: UpdateAiProxyOperationRequest | runtime.FlatBody<UpdateAiProxyOperationRequest, 'updateAiProxyRequest'>): Promise<runtime.RequestOpts> {
|
|
6720
|
+
const requestParameters = runtime.unflattenBody<UpdateAiProxyOperationRequest>(input, 'updateAiProxyRequest', ['org', 'xBoatOrg'], []);
|
|
6721
|
+
if (requestParameters['updateAiProxyRequest'] == null) {
|
|
6722
|
+
throw new runtime.RequiredError(
|
|
6723
|
+
'updateAiProxyRequest',
|
|
6724
|
+
'Required parameter "updateAiProxyRequest" was null or undefined when calling updateAiProxy().'
|
|
6725
|
+
);
|
|
6726
|
+
}
|
|
6727
|
+
|
|
6728
|
+
const queryParameters: any = {};
|
|
6729
|
+
|
|
6730
|
+
if (requestParameters['org'] != null) {
|
|
6731
|
+
queryParameters['org'] = requestParameters['org'];
|
|
6732
|
+
}
|
|
6733
|
+
|
|
6734
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6735
|
+
|
|
6736
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
6737
|
+
|
|
6738
|
+
if (requestParameters['xBoatOrg'] != null) {
|
|
6739
|
+
headerParameters['X-Boat-Org'] = String(requestParameters['xBoatOrg']);
|
|
6740
|
+
}
|
|
6741
|
+
|
|
6742
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
6743
|
+
const token = this.configuration.accessToken;
|
|
6744
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
6745
|
+
|
|
6746
|
+
if (tokenString) {
|
|
6747
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
6748
|
+
}
|
|
6749
|
+
}
|
|
6750
|
+
|
|
6751
|
+
let urlPath = `/ai-proxy`;
|
|
6752
|
+
|
|
6753
|
+
return {
|
|
6754
|
+
path: urlPath,
|
|
6755
|
+
method: 'PUT',
|
|
6756
|
+
headers: headerParameters,
|
|
6757
|
+
query: queryParameters,
|
|
6758
|
+
body: UpdateAiProxyRequestToJSON(requestParameters['updateAiProxyRequest']),
|
|
6759
|
+
};
|
|
6760
|
+
}
|
|
6761
|
+
|
|
6762
|
+
/**
|
|
6763
|
+
* 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`.
|
|
6764
|
+
* Turn the AI credentials proxy on or off
|
|
6765
|
+
*/
|
|
6766
|
+
async updateAiProxyRaw(requestParameters: UpdateAiProxyOperationRequest | runtime.FlatBody<UpdateAiProxyOperationRequest, 'updateAiProxyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiProxySettings>> {
|
|
6767
|
+
const requestOptions = await this.updateAiProxyRequestOpts(requestParameters);
|
|
6768
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
6769
|
+
|
|
6770
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AiProxySettingsFromJSON(jsonValue));
|
|
6771
|
+
}
|
|
6772
|
+
|
|
6773
|
+
/**
|
|
6774
|
+
* 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`.
|
|
6775
|
+
* Turn the AI credentials proxy on or off
|
|
6776
|
+
*/
|
|
6777
|
+
async updateAiProxy(requestParameters: UpdateAiProxyOperationRequest | runtime.FlatBody<UpdateAiProxyOperationRequest, 'updateAiProxyRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiProxySettings> {
|
|
6778
|
+
const response = await this.updateAiProxyRaw(requestParameters, initOverrides);
|
|
6779
|
+
return await response.value();
|
|
6780
|
+
}
|
|
6781
|
+
|
|
6782
|
+
/**
|
|
6783
|
+
* Creates request options for updateCredentialProfile without sending the request
|
|
6784
|
+
*/
|
|
6785
|
+
async updateCredentialProfileRequestOpts(input: UpdateCredentialProfileOperationRequest | runtime.FlatBody<UpdateCredentialProfileOperationRequest, 'updateCredentialProfileRequest'>): Promise<runtime.RequestOpts> {
|
|
6786
|
+
const requestParameters = runtime.unflattenBody<UpdateCredentialProfileOperationRequest>(input, 'updateCredentialProfileRequest', ['profile'], []);
|
|
6787
|
+
if (requestParameters['profile'] == null) {
|
|
6788
|
+
throw new runtime.RequiredError(
|
|
6789
|
+
'profile',
|
|
6790
|
+
'Required parameter "profile" was null or undefined when calling updateCredentialProfile().'
|
|
6791
|
+
);
|
|
6792
|
+
}
|
|
6793
|
+
|
|
6794
|
+
if (requestParameters['updateCredentialProfileRequest'] == null) {
|
|
6795
|
+
throw new runtime.RequiredError(
|
|
6796
|
+
'updateCredentialProfileRequest',
|
|
6797
|
+
'Required parameter "updateCredentialProfileRequest" was null or undefined when calling updateCredentialProfile().'
|
|
6798
|
+
);
|
|
6799
|
+
}
|
|
6800
|
+
|
|
6801
|
+
const queryParameters: any = {};
|
|
6802
|
+
|
|
6803
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6804
|
+
|
|
6805
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
6806
|
+
|
|
6807
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
6808
|
+
const token = this.configuration.accessToken;
|
|
6809
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
6810
|
+
|
|
6811
|
+
if (tokenString) {
|
|
6812
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
6813
|
+
}
|
|
6814
|
+
}
|
|
6815
|
+
|
|
6816
|
+
let urlPath = `/credential-profiles/{profile}`;
|
|
6817
|
+
urlPath = urlPath.replace('{profile}', encodeURIComponent(String(requestParameters['profile'])));
|
|
6818
|
+
|
|
6819
|
+
return {
|
|
6820
|
+
path: urlPath,
|
|
6821
|
+
method: 'PUT',
|
|
6822
|
+
headers: headerParameters,
|
|
6823
|
+
query: queryParameters,
|
|
6824
|
+
body: UpdateCredentialProfileRequestToJSON(requestParameters['updateCredentialProfileRequest']),
|
|
6825
|
+
};
|
|
6826
|
+
}
|
|
6827
|
+
|
|
6828
|
+
/**
|
|
6829
|
+
* 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`.
|
|
6830
|
+
* Update a credential profile
|
|
6831
|
+
*/
|
|
6832
|
+
async updateCredentialProfileRaw(requestParameters: UpdateCredentialProfileOperationRequest | runtime.FlatBody<UpdateCredentialProfileOperationRequest, 'updateCredentialProfileRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialProfileResponse>> {
|
|
6833
|
+
const requestOptions = await this.updateCredentialProfileRequestOpts(requestParameters);
|
|
6834
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
6835
|
+
|
|
6836
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialProfileResponseFromJSON(jsonValue));
|
|
6837
|
+
}
|
|
6838
|
+
|
|
6839
|
+
/**
|
|
6840
|
+
* 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`.
|
|
6841
|
+
* Update a credential profile
|
|
6842
|
+
*/
|
|
6843
|
+
async updateCredentialProfile(requestParameters: UpdateCredentialProfileOperationRequest | runtime.FlatBody<UpdateCredentialProfileOperationRequest, 'updateCredentialProfileRequest'>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialProfileResponse> {
|
|
6844
|
+
const response = await this.updateCredentialProfileRaw(requestParameters, initOverrides);
|
|
6845
|
+
return await response.value();
|
|
6846
|
+
}
|
|
6847
|
+
|
|
5549
6848
|
/**
|
|
5550
6849
|
* Creates request options for updateDataRetention without sending the request
|
|
5551
6850
|
*/
|
|
@@ -5608,7 +6907,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5608
6907
|
* Creates request options for updateEnvironment without sending the request
|
|
5609
6908
|
*/
|
|
5610
6909
|
async updateEnvironmentRequestOpts(input: UpdateEnvironmentRequest | runtime.FlatBody<UpdateEnvironmentRequest, 'updateSandboxEnvironmentRequest'>): Promise<runtime.RequestOpts> {
|
|
5611
|
-
const requestParameters = runtime.unflattenBody<UpdateEnvironmentRequest>(input, 'updateSandboxEnvironmentRequest', ['environmentId'], []);
|
|
6910
|
+
const requestParameters = runtime.unflattenBody<UpdateEnvironmentRequest>(input, 'updateSandboxEnvironmentRequest', ['environmentId', 'org'], []);
|
|
5612
6911
|
if (requestParameters['environmentId'] == null) {
|
|
5613
6912
|
throw new runtime.RequiredError(
|
|
5614
6913
|
'environmentId',
|
|
@@ -5625,6 +6924,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5625
6924
|
|
|
5626
6925
|
const queryParameters: any = {};
|
|
5627
6926
|
|
|
6927
|
+
if (requestParameters['org'] != null) {
|
|
6928
|
+
queryParameters['org'] = requestParameters['org'];
|
|
6929
|
+
}
|
|
6930
|
+
|
|
5628
6931
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
5629
6932
|
|
|
5630
6933
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -5796,7 +7099,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5796
7099
|
* Creates request options for upgradeEnvironment without sending the request
|
|
5797
7100
|
*/
|
|
5798
7101
|
async upgradeEnvironmentRequestOpts(input: UpgradeEnvironmentRequest | runtime.FlatBody<UpgradeEnvironmentRequest, 'upgradeSandboxEnvironmentRequest'>): Promise<runtime.RequestOpts> {
|
|
5799
|
-
const requestParameters = runtime.unflattenBody<UpgradeEnvironmentRequest>(input, 'upgradeSandboxEnvironmentRequest', ['environmentId'], []);
|
|
7102
|
+
const requestParameters = runtime.unflattenBody<UpgradeEnvironmentRequest>(input, 'upgradeSandboxEnvironmentRequest', ['environmentId', 'org'], []);
|
|
5800
7103
|
if (requestParameters['environmentId'] == null) {
|
|
5801
7104
|
throw new runtime.RequiredError(
|
|
5802
7105
|
'environmentId',
|
|
@@ -5806,6 +7109,10 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
5806
7109
|
|
|
5807
7110
|
const queryParameters: any = {};
|
|
5808
7111
|
|
|
7112
|
+
if (requestParameters['org'] != null) {
|
|
7113
|
+
queryParameters['org'] = requestParameters['org'];
|
|
7114
|
+
}
|
|
7115
|
+
|
|
5809
7116
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
5810
7117
|
|
|
5811
7118
|
headerParameters['Content-Type'] = 'application/json';
|