@boatdev/sdk 1.0.0 → 1.0.1
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 +20 -0
- package/dist/apis/BoatApi.d.ts +36 -2
- package/dist/apis/BoatApi.js +86 -2
- package/dist/esm/apis/BoatApi.d.ts +36 -2
- package/dist/esm/apis/BoatApi.js +86 -2
- package/dist/esm/models/ActiveOrgResponse.d.ts +52 -0
- package/dist/esm/models/ActiveOrgResponse.js +58 -0
- package/dist/esm/models/ActiveOrgResponseAllOfActive.d.ts +52 -0
- package/dist/esm/models/ActiveOrgResponseAllOfActive.js +58 -0
- package/dist/esm/models/ActiveOrgUpdateRequest.d.ts +32 -0
- package/dist/esm/models/ActiveOrgUpdateRequest.js +43 -0
- package/dist/esm/models/CommandResponse.d.ts +6 -0
- package/dist/esm/models/CommandResponse.js +2 -0
- package/dist/esm/models/CommandStatusResponse.d.ts +6 -0
- package/dist/esm/models/CommandStatusResponse.js +2 -0
- package/dist/esm/models/CreateSandboxRequest.d.ts +2 -3
- package/dist/esm/models/CreateSandboxRequest.js +1 -2
- package/dist/esm/models/CreateSandboxResponse.d.ts +8 -1
- package/dist/esm/models/CreateSandboxResponse.js +4 -1
- package/dist/esm/models/ForkRequest.d.ts +1 -2
- package/dist/esm/models/ForkRequest.js +1 -2
- package/dist/esm/models/LimitsFields.d.ts +80 -0
- package/dist/esm/models/LimitsFields.js +28 -0
- package/dist/esm/models/LimitsFieldsCurrentLimits.d.ts +6 -0
- package/dist/esm/models/LimitsFieldsCurrentLimits.js +2 -0
- package/dist/esm/models/LimitsFieldsGiftLimit.d.ts +50 -0
- package/dist/esm/models/LimitsFieldsGiftLimit.js +47 -0
- package/dist/esm/models/LimitsFieldsSandboxPlanTiersInner.d.ts +80 -0
- package/dist/esm/models/LimitsFieldsSandboxPlanTiersInner.js +57 -0
- package/dist/esm/models/LimitsResponse.d.ts +80 -0
- package/dist/esm/models/LimitsResponse.js +28 -0
- package/dist/esm/models/MeResponseAllOfUser.d.ts +109 -0
- package/dist/esm/models/MeResponseAllOfUser.js +47 -0
- package/dist/esm/models/Org.d.ts +84 -0
- package/dist/esm/models/Org.js +79 -0
- package/dist/esm/models/OrgListResponse.d.ts +58 -0
- package/dist/esm/models/OrgListResponse.js +62 -0
- package/dist/esm/models/PromptEventData.d.ts +20 -0
- package/dist/esm/models/PromptEventData.js +8 -0
- package/dist/esm/models/PromptEventDataAttachmentsInner.d.ts +44 -0
- package/dist/esm/models/PromptEventDataAttachmentsInner.js +45 -0
- package/dist/esm/models/PromptEventDataCitationsInner.d.ts +50 -0
- package/dist/esm/models/PromptEventDataCitationsInner.js +47 -0
- package/dist/esm/models/RepoSelectionResponse.d.ts +6 -0
- package/dist/esm/models/RepoSelectionResponse.js +2 -0
- package/dist/esm/models/ReposResponse.d.ts +6 -0
- package/dist/esm/models/ReposResponse.js +2 -0
- package/dist/esm/models/Repository.d.ts +18 -0
- package/dist/esm/models/Repository.js +6 -0
- package/dist/esm/models/ResponseEventData.d.ts +6 -0
- package/dist/esm/models/ResponseEventData.js +2 -0
- package/dist/esm/models/ResumeRequest.d.ts +1 -2
- package/dist/esm/models/ResumeRequest.js +1 -2
- package/dist/esm/models/Sandbox.d.ts +43 -4
- package/dist/esm/models/Sandbox.js +21 -3
- package/dist/esm/models/SandboxActionResponse.d.ts +12 -0
- package/dist/esm/models/SandboxActionResponse.js +4 -0
- package/dist/esm/models/SandboxEnvironment.d.ts +12 -0
- package/dist/esm/models/SandboxEnvironment.js +4 -0
- package/dist/esm/models/SandboxEnvironmentListResponse.d.ts +26 -0
- package/dist/esm/models/SandboxEnvironmentListResponse.js +16 -0
- package/dist/esm/models/SandboxInfoResponse.d.ts +6 -0
- package/dist/esm/models/SandboxInfoResponse.js +2 -0
- package/dist/esm/models/SandboxTeam.d.ts +38 -0
- package/dist/esm/models/SandboxTeam.js +47 -0
- package/dist/esm/models/SandboxUsageResponse.d.ts +1 -2
- package/dist/esm/models/SandboxUsageResponse.js +1 -2
- package/dist/esm/models/SecretsResponse.d.ts +6 -0
- package/dist/esm/models/SecretsResponse.js +2 -0
- package/dist/esm/models/SelectedRepository.d.ts +18 -0
- package/dist/esm/models/SelectedRepository.js +6 -0
- package/dist/esm/models/SnapshotChunk.d.ts +2 -2
- package/dist/esm/models/SnapshotSummary.d.ts +3 -3
- package/dist/esm/models/SshKeyResponse.d.ts +12 -0
- package/dist/esm/models/SshKeyResponse.js +4 -0
- package/dist/esm/models/UpgradeSandboxEnvironmentResponse.d.ts +18 -0
- package/dist/esm/models/UpgradeSandboxEnvironmentResponse.js +6 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/ActiveOrgResponse.d.ts +52 -0
- package/dist/models/ActiveOrgResponse.js +66 -0
- package/dist/models/ActiveOrgResponseAllOfActive.d.ts +52 -0
- package/dist/models/ActiveOrgResponseAllOfActive.js +66 -0
- package/dist/models/ActiveOrgUpdateRequest.d.ts +32 -0
- package/dist/models/ActiveOrgUpdateRequest.js +50 -0
- package/dist/models/CommandResponse.d.ts +6 -0
- package/dist/models/CommandResponse.js +2 -0
- package/dist/models/CommandStatusResponse.d.ts +6 -0
- package/dist/models/CommandStatusResponse.js +2 -0
- package/dist/models/CreateSandboxRequest.d.ts +2 -3
- package/dist/models/CreateSandboxRequest.js +1 -2
- package/dist/models/CreateSandboxResponse.d.ts +8 -1
- package/dist/models/CreateSandboxResponse.js +4 -1
- package/dist/models/ForkRequest.d.ts +1 -2
- package/dist/models/ForkRequest.js +1 -2
- package/dist/models/LimitsFields.d.ts +80 -0
- package/dist/models/LimitsFields.js +28 -0
- package/dist/models/LimitsFieldsCurrentLimits.d.ts +6 -0
- package/dist/models/LimitsFieldsCurrentLimits.js +2 -0
- package/dist/models/LimitsFieldsGiftLimit.d.ts +50 -0
- package/dist/models/LimitsFieldsGiftLimit.js +54 -0
- package/dist/models/LimitsFieldsSandboxPlanTiersInner.d.ts +80 -0
- package/dist/models/LimitsFieldsSandboxPlanTiersInner.js +64 -0
- package/dist/models/LimitsResponse.d.ts +80 -0
- package/dist/models/LimitsResponse.js +28 -0
- package/dist/models/MeResponseAllOfUser.d.ts +109 -0
- package/dist/models/MeResponseAllOfUser.js +48 -0
- package/dist/models/Org.d.ts +84 -0
- package/dist/models/Org.js +87 -0
- package/dist/models/OrgListResponse.d.ts +58 -0
- package/dist/models/OrgListResponse.js +70 -0
- package/dist/models/PromptEventData.d.ts +20 -0
- package/dist/models/PromptEventData.js +8 -0
- package/dist/models/PromptEventDataAttachmentsInner.d.ts +44 -0
- package/dist/models/PromptEventDataAttachmentsInner.js +52 -0
- package/dist/models/PromptEventDataCitationsInner.d.ts +50 -0
- package/dist/models/PromptEventDataCitationsInner.js +54 -0
- package/dist/models/RepoSelectionResponse.d.ts +6 -0
- package/dist/models/RepoSelectionResponse.js +2 -0
- package/dist/models/ReposResponse.d.ts +6 -0
- package/dist/models/ReposResponse.js +2 -0
- package/dist/models/Repository.d.ts +18 -0
- package/dist/models/Repository.js +6 -0
- package/dist/models/ResponseEventData.d.ts +6 -0
- package/dist/models/ResponseEventData.js +2 -0
- package/dist/models/ResumeRequest.d.ts +1 -2
- package/dist/models/ResumeRequest.js +1 -2
- package/dist/models/Sandbox.d.ts +43 -4
- package/dist/models/Sandbox.js +22 -4
- package/dist/models/SandboxActionResponse.d.ts +12 -0
- package/dist/models/SandboxActionResponse.js +4 -0
- package/dist/models/SandboxEnvironment.d.ts +12 -0
- package/dist/models/SandboxEnvironment.js +4 -0
- package/dist/models/SandboxEnvironmentListResponse.d.ts +26 -0
- package/dist/models/SandboxEnvironmentListResponse.js +17 -0
- package/dist/models/SandboxInfoResponse.d.ts +6 -0
- package/dist/models/SandboxInfoResponse.js +2 -0
- package/dist/models/SandboxTeam.d.ts +38 -0
- package/dist/models/SandboxTeam.js +54 -0
- package/dist/models/SandboxUsageResponse.d.ts +1 -2
- package/dist/models/SandboxUsageResponse.js +1 -2
- package/dist/models/SecretsResponse.d.ts +6 -0
- package/dist/models/SecretsResponse.js +2 -0
- package/dist/models/SelectedRepository.d.ts +18 -0
- package/dist/models/SelectedRepository.js +6 -0
- package/dist/models/SnapshotChunk.d.ts +2 -2
- package/dist/models/SnapshotSummary.d.ts +3 -3
- package/dist/models/SshKeyResponse.d.ts +12 -0
- package/dist/models/SshKeyResponse.js +4 -0
- package/dist/models/UpgradeSandboxEnvironmentResponse.d.ts +18 -0
- package/dist/models/UpgradeSandboxEnvironmentResponse.js +6 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/ActiveOrgResponse.md +36 -0
- package/docs/ActiveOrgResponseAllOfActive.md +36 -0
- package/docs/ActiveOrgUpdateRequest.md +32 -0
- package/docs/BoatApi.md +148 -7
- package/docs/Command200Response.md +2 -0
- package/docs/CommandResponse.md +2 -0
- package/docs/CommandStatusResponse.md +2 -0
- package/docs/CreateSandboxResponse.md +2 -0
- package/docs/LimitsFields.md +26 -0
- package/docs/LimitsFieldsCurrentLimits.md +2 -0
- package/docs/LimitsFieldsGiftLimit.md +39 -0
- package/docs/LimitsFieldsSandboxPlanTiersInner.md +48 -0
- package/docs/LimitsResponse.md +26 -0
- package/docs/MeResponseAllOfUser.md +30 -0
- package/docs/Org.md +44 -0
- package/docs/OrgListResponse.md +38 -0
- package/docs/PromptEventData.md +6 -0
- package/docs/PromptEventDataAttachmentsInner.md +36 -0
- package/docs/PromptEventDataCitationsInner.md +38 -0
- package/docs/RepoSelectionResponse.md +2 -0
- package/docs/ReposResponse.md +2 -0
- package/docs/Repository.md +6 -0
- package/docs/ResponseEventData.md +2 -0
- package/docs/Sandbox.md +10 -0
- package/docs/SandboxActionResponse.md +4 -0
- package/docs/SandboxEnvironment.md +4 -0
- package/docs/SandboxEnvironmentListResponse.md +4 -0
- package/docs/SandboxInfoResponse.md +2 -0
- package/docs/SandboxTeam.md +35 -0
- package/docs/SecretsResponse.md +2 -0
- package/docs/SelectedRepository.md +6 -0
- package/docs/SshKeyResponse.md +4 -0
- package/docs/UpgradeSandboxEnvironmentResponse.md +6 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +125 -2
- package/src/models/ActiveOrgResponse.ts +102 -0
- package/src/models/ActiveOrgResponseAllOfActive.ts +95 -0
- package/src/models/ActiveOrgUpdateRequest.ts +66 -0
- package/src/models/CommandResponse.ts +8 -0
- package/src/models/CommandStatusResponse.ts +8 -0
- package/src/models/CreateSandboxRequest.ts +3 -4
- package/src/models/CreateSandboxResponse.ts +11 -2
- package/src/models/ForkRequest.ts +2 -3
- package/src/models/LimitsFields.ts +118 -0
- package/src/models/LimitsFieldsCurrentLimits.ts +8 -0
- package/src/models/LimitsFieldsGiftLimit.ts +89 -0
- package/src/models/LimitsFieldsSandboxPlanTiersInner.ts +129 -0
- package/src/models/LimitsResponse.ts +118 -0
- package/src/models/MeResponseAllOfUser.ts +143 -0
- package/src/models/Org.ts +139 -0
- package/src/models/OrgListResponse.ts +111 -0
- package/src/models/PromptEventData.ts +39 -0
- package/src/models/PromptEventDataAttachmentsInner.ts +81 -0
- package/src/models/PromptEventDataCitationsInner.ts +89 -0
- package/src/models/RepoSelectionResponse.ts +8 -0
- package/src/models/ReposResponse.ts +8 -0
- package/src/models/Repository.ts +24 -0
- package/src/models/ResponseEventData.ts +8 -0
- package/src/models/ResumeRequest.ts +2 -3
- package/src/models/Sandbox.ts +63 -6
- package/src/models/SandboxActionResponse.ts +16 -0
- package/src/models/SandboxEnvironment.ts +16 -0
- package/src/models/SandboxEnvironmentListResponse.ts +34 -0
- package/src/models/SandboxInfoResponse.ts +8 -0
- package/src/models/SandboxTeam.ts +75 -0
- package/src/models/SandboxUsageResponse.ts +2 -3
- package/src/models/SecretsResponse.ts +8 -0
- package/src/models/SelectedRepository.ts +24 -0
- package/src/models/SnapshotChunk.ts +2 -2
- package/src/models/SnapshotSummary.ts +3 -3
- package/src/models/SshKeyResponse.ts +16 -0
- package/src/models/UpgradeSandboxEnvironmentResponse.ts +24 -0
- package/src/models/index.ts +10 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
.npmignore
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
|
+
docs/ActiveOrgResponse.md
|
|
6
|
+
docs/ActiveOrgResponseAllOfActive.md
|
|
7
|
+
docs/ActiveOrgUpdateRequest.md
|
|
5
8
|
docs/AddEnvironmentRepoRequest.md
|
|
6
9
|
docs/ApiKey.md
|
|
7
10
|
docs/ApiKeyCatalog.md
|
|
@@ -49,6 +52,8 @@ docs/HostPortRequest.md
|
|
|
49
52
|
docs/HostPortResponse.md
|
|
50
53
|
docs/LimitsFields.md
|
|
51
54
|
docs/LimitsFieldsCurrentLimits.md
|
|
55
|
+
docs/LimitsFieldsGiftLimit.md
|
|
56
|
+
docs/LimitsFieldsSandboxPlanTiersInner.md
|
|
52
57
|
docs/LimitsFieldsStartLimits.md
|
|
53
58
|
docs/LimitsFieldsStarts.md
|
|
54
59
|
docs/LimitsResponse.md
|
|
@@ -60,9 +65,13 @@ docs/NamedSnapshotInfoResponse.md
|
|
|
60
65
|
docs/NamedSnapshotListResponse.md
|
|
61
66
|
docs/NamedSnapshotSaveRequest.md
|
|
62
67
|
docs/NamedSnapshotSavingResponse.md
|
|
68
|
+
docs/Org.md
|
|
69
|
+
docs/OrgListResponse.md
|
|
63
70
|
docs/PageInfo.md
|
|
64
71
|
docs/PromptEvent.md
|
|
65
72
|
docs/PromptEventData.md
|
|
73
|
+
docs/PromptEventDataAttachmentsInner.md
|
|
74
|
+
docs/PromptEventDataCitationsInner.md
|
|
66
75
|
docs/PromptRequest.md
|
|
67
76
|
docs/PromptResponse.md
|
|
68
77
|
docs/PromptRun.md
|
|
@@ -85,6 +94,7 @@ docs/SandboxEnvironmentVersionSummary.md
|
|
|
85
94
|
docs/SandboxEvent.md
|
|
86
95
|
docs/SandboxInfoResponse.md
|
|
87
96
|
docs/SandboxListResponse.md
|
|
97
|
+
docs/SandboxTeam.md
|
|
88
98
|
docs/SandboxUsageResponse.md
|
|
89
99
|
docs/SecretFile.md
|
|
90
100
|
docs/SecretsResponse.md
|
|
@@ -130,6 +140,9 @@ package.json
|
|
|
130
140
|
src/apis/BoatApi.ts
|
|
131
141
|
src/apis/index.ts
|
|
132
142
|
src/index.ts
|
|
143
|
+
src/models/ActiveOrgResponse.ts
|
|
144
|
+
src/models/ActiveOrgResponseAllOfActive.ts
|
|
145
|
+
src/models/ActiveOrgUpdateRequest.ts
|
|
133
146
|
src/models/AddEnvironmentRepoRequest.ts
|
|
134
147
|
src/models/ApiKey.ts
|
|
135
148
|
src/models/ApiKeyCatalog.ts
|
|
@@ -176,6 +189,8 @@ src/models/HostPortRequest.ts
|
|
|
176
189
|
src/models/HostPortResponse.ts
|
|
177
190
|
src/models/LimitsFields.ts
|
|
178
191
|
src/models/LimitsFieldsCurrentLimits.ts
|
|
192
|
+
src/models/LimitsFieldsGiftLimit.ts
|
|
193
|
+
src/models/LimitsFieldsSandboxPlanTiersInner.ts
|
|
179
194
|
src/models/LimitsFieldsStartLimits.ts
|
|
180
195
|
src/models/LimitsFieldsStarts.ts
|
|
181
196
|
src/models/LimitsResponse.ts
|
|
@@ -187,9 +202,13 @@ src/models/NamedSnapshotInfoResponse.ts
|
|
|
187
202
|
src/models/NamedSnapshotListResponse.ts
|
|
188
203
|
src/models/NamedSnapshotSaveRequest.ts
|
|
189
204
|
src/models/NamedSnapshotSavingResponse.ts
|
|
205
|
+
src/models/Org.ts
|
|
206
|
+
src/models/OrgListResponse.ts
|
|
190
207
|
src/models/PageInfo.ts
|
|
191
208
|
src/models/PromptEvent.ts
|
|
192
209
|
src/models/PromptEventData.ts
|
|
210
|
+
src/models/PromptEventDataAttachmentsInner.ts
|
|
211
|
+
src/models/PromptEventDataCitationsInner.ts
|
|
193
212
|
src/models/PromptRequest.ts
|
|
194
213
|
src/models/PromptResponse.ts
|
|
195
214
|
src/models/PromptRun.ts
|
|
@@ -212,6 +231,7 @@ src/models/SandboxEnvironmentVersionSummary.ts
|
|
|
212
231
|
src/models/SandboxEvent.ts
|
|
213
232
|
src/models/SandboxInfoResponse.ts
|
|
214
233
|
src/models/SandboxListResponse.ts
|
|
234
|
+
src/models/SandboxTeam.ts
|
|
215
235
|
src/models/SandboxUsageResponse.ts
|
|
216
236
|
src/models/SecretFile.ts
|
|
217
237
|
src/models/SecretsResponse.ts
|
package/dist/apis/BoatApi.d.ts
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import { type ActiveOrgResponse } from '../models/ActiveOrgResponse';
|
|
14
|
+
import { type ActiveOrgUpdateRequest } from '../models/ActiveOrgUpdateRequest';
|
|
13
15
|
import { type AddEnvironmentRepoRequest } from '../models/AddEnvironmentRepoRequest';
|
|
14
16
|
import { type ApiKeyRevokeResponse } from '../models/ApiKeyRevokeResponse';
|
|
15
17
|
import { type ApiKeySecretResponse } from '../models/ApiKeySecretResponse';
|
|
@@ -43,6 +45,7 @@ import { type NamedSnapshotInfoResponse } from '../models/NamedSnapshotInfoRespo
|
|
|
43
45
|
import { type NamedSnapshotListResponse } from '../models/NamedSnapshotListResponse';
|
|
44
46
|
import { type NamedSnapshotSaveRequest } from '../models/NamedSnapshotSaveRequest';
|
|
45
47
|
import { type NamedSnapshotSavingResponse } from '../models/NamedSnapshotSavingResponse';
|
|
48
|
+
import { type OrgListResponse } from '../models/OrgListResponse';
|
|
46
49
|
import { type PromptRequest } from '../models/PromptRequest';
|
|
47
50
|
import { type PromptResponse } from '../models/PromptResponse';
|
|
48
51
|
import { type PromptRunResponse } from '../models/PromptRunResponse';
|
|
@@ -260,6 +263,9 @@ export interface SaveNamedSnapshotRequest {
|
|
|
260
263
|
export interface SelectRepoRequest {
|
|
261
264
|
repoSelectionRequest: RepoSelectionRequest;
|
|
262
265
|
}
|
|
266
|
+
export interface SetActiveOrganizationRequest {
|
|
267
|
+
activeOrgUpdateRequest: ActiveOrgUpdateRequest;
|
|
268
|
+
}
|
|
263
269
|
export interface SetEnvironmentSecretFileOperationRequest {
|
|
264
270
|
environmentId: string;
|
|
265
271
|
setEnvironmentSecretFileRequest: SetEnvironmentSecretFileRequest;
|
|
@@ -792,12 +798,12 @@ export declare class BoatApi extends runtime.BaseAPI {
|
|
|
792
798
|
*/
|
|
793
799
|
limitsRequestOpts(requestParameters: LimitsRequest): Promise<runtime.RequestOpts>;
|
|
794
800
|
/**
|
|
795
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
801
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
|
|
796
802
|
* Get Boat limits
|
|
797
803
|
*/
|
|
798
804
|
limitsRaw(requestParameters: LimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LimitsResponse>>;
|
|
799
805
|
/**
|
|
800
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
806
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
|
|
801
807
|
* Get Boat limits
|
|
802
808
|
*/
|
|
803
809
|
limits(requestParameters?: LimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LimitsResponse>;
|
|
@@ -815,6 +821,20 @@ export declare class BoatApi extends runtime.BaseAPI {
|
|
|
815
821
|
* List named snapshots
|
|
816
822
|
*/
|
|
817
823
|
listNamedSnapshots(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamedSnapshotListResponse>;
|
|
824
|
+
/**
|
|
825
|
+
* Creates request options for listOrganizations without sending the request
|
|
826
|
+
*/
|
|
827
|
+
listOrganizationsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
828
|
+
/**
|
|
829
|
+
* The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
|
|
830
|
+
* List organizations
|
|
831
|
+
*/
|
|
832
|
+
listOrganizationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrgListResponse>>;
|
|
833
|
+
/**
|
|
834
|
+
* The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
|
|
835
|
+
* List organizations
|
|
836
|
+
*/
|
|
837
|
+
listOrganizations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrgListResponse>;
|
|
818
838
|
/**
|
|
819
839
|
* Creates request options for listSandboxSnapshots without sending the request
|
|
820
840
|
*/
|
|
@@ -1033,6 +1053,20 @@ export declare class BoatApi extends runtime.BaseAPI {
|
|
|
1033
1053
|
* Select repository for sandboxes
|
|
1034
1054
|
*/
|
|
1035
1055
|
selectRepo(requestParameters: SelectRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RepoSelectionResponse>;
|
|
1056
|
+
/**
|
|
1057
|
+
* Creates request options for setActiveOrganization without sending the request
|
|
1058
|
+
*/
|
|
1059
|
+
setActiveOrganizationRequestOpts(requestParameters: SetActiveOrganizationRequest): Promise<runtime.RequestOpts>;
|
|
1060
|
+
/**
|
|
1061
|
+
* 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.
|
|
1062
|
+
* Set the active organization
|
|
1063
|
+
*/
|
|
1064
|
+
setActiveOrganizationRaw(requestParameters: SetActiveOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ActiveOrgResponse>>;
|
|
1065
|
+
/**
|
|
1066
|
+
* 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.
|
|
1067
|
+
* Set the active organization
|
|
1068
|
+
*/
|
|
1069
|
+
setActiveOrganization(requestParameters: SetActiveOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ActiveOrgResponse>;
|
|
1036
1070
|
/**
|
|
1037
1071
|
* Creates request options for setEnvironmentSecretFile without sending the request
|
|
1038
1072
|
*/
|
package/dist/apis/BoatApi.js
CHANGED
|
@@ -48,6 +48,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
49
|
exports.SandboxesSortEnum = exports.ReposSortEnum = exports.ReadFileEncodingEnum = exports.ListSnapshotsSortEnum = exports.ListSandboxSnapshotsSortEnum = exports.EventsSortEnum = exports.DesktopOperationThemeEnum = exports.DesktopOperationVncEnum = exports.BoatApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const ActiveOrgResponse_1 = require("../models/ActiveOrgResponse");
|
|
52
|
+
const ActiveOrgUpdateRequest_1 = require("../models/ActiveOrgUpdateRequest");
|
|
51
53
|
const AddEnvironmentRepoRequest_1 = require("../models/AddEnvironmentRepoRequest");
|
|
52
54
|
const ApiKeyRevokeResponse_1 = require("../models/ApiKeyRevokeResponse");
|
|
53
55
|
const ApiKeySecretResponse_1 = require("../models/ApiKeySecretResponse");
|
|
@@ -81,6 +83,7 @@ const NamedSnapshotInfoResponse_1 = require("../models/NamedSnapshotInfoResponse
|
|
|
81
83
|
const NamedSnapshotListResponse_1 = require("../models/NamedSnapshotListResponse");
|
|
82
84
|
const NamedSnapshotSaveRequest_1 = require("../models/NamedSnapshotSaveRequest");
|
|
83
85
|
const NamedSnapshotSavingResponse_1 = require("../models/NamedSnapshotSavingResponse");
|
|
86
|
+
const OrgListResponse_1 = require("../models/OrgListResponse");
|
|
84
87
|
const PromptRequest_1 = require("../models/PromptRequest");
|
|
85
88
|
const PromptResponse_1 = require("../models/PromptResponse");
|
|
86
89
|
const PromptRunResponse_1 = require("../models/PromptRunResponse");
|
|
@@ -1660,7 +1663,7 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1660
1663
|
};
|
|
1661
1664
|
}
|
|
1662
1665
|
/**
|
|
1663
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
1666
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
|
|
1664
1667
|
* Get Boat limits
|
|
1665
1668
|
*/
|
|
1666
1669
|
async limitsRaw(requestParameters, initOverrides) {
|
|
@@ -1669,7 +1672,7 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1669
1672
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, LimitsResponse_1.LimitsResponseFromJSON)(jsonValue));
|
|
1670
1673
|
}
|
|
1671
1674
|
/**
|
|
1672
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
1675
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
|
|
1673
1676
|
* Get Boat limits
|
|
1674
1677
|
*/
|
|
1675
1678
|
async limits(requestParameters = {}, initOverrides) {
|
|
@@ -1714,6 +1717,44 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
1714
1717
|
const response = await this.listNamedSnapshotsRaw(initOverrides);
|
|
1715
1718
|
return await response.value();
|
|
1716
1719
|
}
|
|
1720
|
+
/**
|
|
1721
|
+
* Creates request options for listOrganizations without sending the request
|
|
1722
|
+
*/
|
|
1723
|
+
async listOrganizationsRequestOpts() {
|
|
1724
|
+
const queryParameters = {};
|
|
1725
|
+
const headerParameters = {};
|
|
1726
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1727
|
+
const token = this.configuration.accessToken;
|
|
1728
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1729
|
+
if (tokenString) {
|
|
1730
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
let urlPath = `/orgs`;
|
|
1734
|
+
return {
|
|
1735
|
+
path: urlPath,
|
|
1736
|
+
method: 'GET',
|
|
1737
|
+
headers: headerParameters,
|
|
1738
|
+
query: queryParameters,
|
|
1739
|
+
};
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
* The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
|
|
1743
|
+
* List organizations
|
|
1744
|
+
*/
|
|
1745
|
+
async listOrganizationsRaw(initOverrides) {
|
|
1746
|
+
const requestOptions = await this.listOrganizationsRequestOpts();
|
|
1747
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1748
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, OrgListResponse_1.OrgListResponseFromJSON)(jsonValue));
|
|
1749
|
+
}
|
|
1750
|
+
/**
|
|
1751
|
+
* The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
|
|
1752
|
+
* List organizations
|
|
1753
|
+
*/
|
|
1754
|
+
async listOrganizations(initOverrides) {
|
|
1755
|
+
const response = await this.listOrganizationsRaw(initOverrides);
|
|
1756
|
+
return await response.value();
|
|
1757
|
+
}
|
|
1717
1758
|
/**
|
|
1718
1759
|
* Creates request options for listSandboxSnapshots without sending the request
|
|
1719
1760
|
*/
|
|
@@ -2426,6 +2467,49 @@ class BoatApi extends runtime.BaseAPI {
|
|
|
2426
2467
|
const response = await this.selectRepoRaw(requestParameters, initOverrides);
|
|
2427
2468
|
return await response.value();
|
|
2428
2469
|
}
|
|
2470
|
+
/**
|
|
2471
|
+
* Creates request options for setActiveOrganization without sending the request
|
|
2472
|
+
*/
|
|
2473
|
+
async setActiveOrganizationRequestOpts(requestParameters) {
|
|
2474
|
+
if (requestParameters['activeOrgUpdateRequest'] == null) {
|
|
2475
|
+
throw new runtime.RequiredError('activeOrgUpdateRequest', 'Required parameter "activeOrgUpdateRequest" was null or undefined when calling setActiveOrganization().');
|
|
2476
|
+
}
|
|
2477
|
+
const queryParameters = {};
|
|
2478
|
+
const headerParameters = {};
|
|
2479
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2480
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2481
|
+
const token = this.configuration.accessToken;
|
|
2482
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2483
|
+
if (tokenString) {
|
|
2484
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
let urlPath = `/orgs/active`;
|
|
2488
|
+
return {
|
|
2489
|
+
path: urlPath,
|
|
2490
|
+
method: 'PATCH',
|
|
2491
|
+
headers: headerParameters,
|
|
2492
|
+
query: queryParameters,
|
|
2493
|
+
body: (0, ActiveOrgUpdateRequest_1.ActiveOrgUpdateRequestToJSON)(requestParameters['activeOrgUpdateRequest']),
|
|
2494
|
+
};
|
|
2495
|
+
}
|
|
2496
|
+
/**
|
|
2497
|
+
* 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.
|
|
2498
|
+
* Set the active organization
|
|
2499
|
+
*/
|
|
2500
|
+
async setActiveOrganizationRaw(requestParameters, initOverrides) {
|
|
2501
|
+
const requestOptions = await this.setActiveOrganizationRequestOpts(requestParameters);
|
|
2502
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2503
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ActiveOrgResponse_1.ActiveOrgResponseFromJSON)(jsonValue));
|
|
2504
|
+
}
|
|
2505
|
+
/**
|
|
2506
|
+
* 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.
|
|
2507
|
+
* Set the active organization
|
|
2508
|
+
*/
|
|
2509
|
+
async setActiveOrganization(requestParameters, initOverrides) {
|
|
2510
|
+
const response = await this.setActiveOrganizationRaw(requestParameters, initOverrides);
|
|
2511
|
+
return await response.value();
|
|
2512
|
+
}
|
|
2429
2513
|
/**
|
|
2430
2514
|
* Creates request options for setEnvironmentSecretFile without sending the request
|
|
2431
2515
|
*/
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import { type ActiveOrgResponse } from '../models/ActiveOrgResponse';
|
|
14
|
+
import { type ActiveOrgUpdateRequest } from '../models/ActiveOrgUpdateRequest';
|
|
13
15
|
import { type AddEnvironmentRepoRequest } from '../models/AddEnvironmentRepoRequest';
|
|
14
16
|
import { type ApiKeyRevokeResponse } from '../models/ApiKeyRevokeResponse';
|
|
15
17
|
import { type ApiKeySecretResponse } from '../models/ApiKeySecretResponse';
|
|
@@ -43,6 +45,7 @@ import { type NamedSnapshotInfoResponse } from '../models/NamedSnapshotInfoRespo
|
|
|
43
45
|
import { type NamedSnapshotListResponse } from '../models/NamedSnapshotListResponse';
|
|
44
46
|
import { type NamedSnapshotSaveRequest } from '../models/NamedSnapshotSaveRequest';
|
|
45
47
|
import { type NamedSnapshotSavingResponse } from '../models/NamedSnapshotSavingResponse';
|
|
48
|
+
import { type OrgListResponse } from '../models/OrgListResponse';
|
|
46
49
|
import { type PromptRequest } from '../models/PromptRequest';
|
|
47
50
|
import { type PromptResponse } from '../models/PromptResponse';
|
|
48
51
|
import { type PromptRunResponse } from '../models/PromptRunResponse';
|
|
@@ -260,6 +263,9 @@ export interface SaveNamedSnapshotRequest {
|
|
|
260
263
|
export interface SelectRepoRequest {
|
|
261
264
|
repoSelectionRequest: RepoSelectionRequest;
|
|
262
265
|
}
|
|
266
|
+
export interface SetActiveOrganizationRequest {
|
|
267
|
+
activeOrgUpdateRequest: ActiveOrgUpdateRequest;
|
|
268
|
+
}
|
|
263
269
|
export interface SetEnvironmentSecretFileOperationRequest {
|
|
264
270
|
environmentId: string;
|
|
265
271
|
setEnvironmentSecretFileRequest: SetEnvironmentSecretFileRequest;
|
|
@@ -792,12 +798,12 @@ export declare class BoatApi extends runtime.BaseAPI {
|
|
|
792
798
|
*/
|
|
793
799
|
limitsRequestOpts(requestParameters: LimitsRequest): Promise<runtime.RequestOpts>;
|
|
794
800
|
/**
|
|
795
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
801
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
|
|
796
802
|
* Get Boat limits
|
|
797
803
|
*/
|
|
798
804
|
limitsRaw(requestParameters: LimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LimitsResponse>>;
|
|
799
805
|
/**
|
|
800
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
806
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
|
|
801
807
|
* Get Boat limits
|
|
802
808
|
*/
|
|
803
809
|
limits(requestParameters?: LimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LimitsResponse>;
|
|
@@ -815,6 +821,20 @@ export declare class BoatApi extends runtime.BaseAPI {
|
|
|
815
821
|
* List named snapshots
|
|
816
822
|
*/
|
|
817
823
|
listNamedSnapshots(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NamedSnapshotListResponse>;
|
|
824
|
+
/**
|
|
825
|
+
* Creates request options for listOrganizations without sending the request
|
|
826
|
+
*/
|
|
827
|
+
listOrganizationsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
828
|
+
/**
|
|
829
|
+
* The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
|
|
830
|
+
* List organizations
|
|
831
|
+
*/
|
|
832
|
+
listOrganizationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrgListResponse>>;
|
|
833
|
+
/**
|
|
834
|
+
* The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
|
|
835
|
+
* List organizations
|
|
836
|
+
*/
|
|
837
|
+
listOrganizations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrgListResponse>;
|
|
818
838
|
/**
|
|
819
839
|
* Creates request options for listSandboxSnapshots without sending the request
|
|
820
840
|
*/
|
|
@@ -1033,6 +1053,20 @@ export declare class BoatApi extends runtime.BaseAPI {
|
|
|
1033
1053
|
* Select repository for sandboxes
|
|
1034
1054
|
*/
|
|
1035
1055
|
selectRepo(requestParameters: SelectRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RepoSelectionResponse>;
|
|
1056
|
+
/**
|
|
1057
|
+
* Creates request options for setActiveOrganization without sending the request
|
|
1058
|
+
*/
|
|
1059
|
+
setActiveOrganizationRequestOpts(requestParameters: SetActiveOrganizationRequest): Promise<runtime.RequestOpts>;
|
|
1060
|
+
/**
|
|
1061
|
+
* 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.
|
|
1062
|
+
* Set the active organization
|
|
1063
|
+
*/
|
|
1064
|
+
setActiveOrganizationRaw(requestParameters: SetActiveOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ActiveOrgResponse>>;
|
|
1065
|
+
/**
|
|
1066
|
+
* 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.
|
|
1067
|
+
* Set the active organization
|
|
1068
|
+
*/
|
|
1069
|
+
setActiveOrganization(requestParameters: SetActiveOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ActiveOrgResponse>;
|
|
1036
1070
|
/**
|
|
1037
1071
|
* Creates request options for setEnvironmentSecretFile without sending the request
|
|
1038
1072
|
*/
|
package/dist/esm/apis/BoatApi.js
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
+
import { ActiveOrgResponseFromJSON, } from '../models/ActiveOrgResponse';
|
|
16
|
+
import { ActiveOrgUpdateRequestToJSON, } from '../models/ActiveOrgUpdateRequest';
|
|
15
17
|
import { AddEnvironmentRepoRequestToJSON, } from '../models/AddEnvironmentRepoRequest';
|
|
16
18
|
import { ApiKeyRevokeResponseFromJSON, } from '../models/ApiKeyRevokeResponse';
|
|
17
19
|
import { ApiKeySecretResponseFromJSON, } from '../models/ApiKeySecretResponse';
|
|
@@ -45,6 +47,7 @@ import { NamedSnapshotInfoResponseFromJSON, } from '../models/NamedSnapshotInfoR
|
|
|
45
47
|
import { NamedSnapshotListResponseFromJSON, } from '../models/NamedSnapshotListResponse';
|
|
46
48
|
import { NamedSnapshotSaveRequestToJSON, } from '../models/NamedSnapshotSaveRequest';
|
|
47
49
|
import { NamedSnapshotSavingResponseFromJSON, } from '../models/NamedSnapshotSavingResponse';
|
|
50
|
+
import { OrgListResponseFromJSON, } from '../models/OrgListResponse';
|
|
48
51
|
import { PromptRequestToJSON, } from '../models/PromptRequest';
|
|
49
52
|
import { PromptResponseFromJSON, } from '../models/PromptResponse';
|
|
50
53
|
import { PromptRunResponseFromJSON, } from '../models/PromptRunResponse';
|
|
@@ -1624,7 +1627,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1624
1627
|
};
|
|
1625
1628
|
}
|
|
1626
1629
|
/**
|
|
1627
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
1630
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
|
|
1628
1631
|
* Get Boat limits
|
|
1629
1632
|
*/
|
|
1630
1633
|
async limitsRaw(requestParameters, initOverrides) {
|
|
@@ -1633,7 +1636,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1633
1636
|
return new runtime.JSONApiResponse(response, (jsonValue) => LimitsResponseFromJSON(jsonValue));
|
|
1634
1637
|
}
|
|
1635
1638
|
/**
|
|
1636
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
1639
|
+
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the `org` / `X-Boat-Org` you pass (id or name), else the account\'s active wallet, else personal. The response carries `teamId` when an organization wallet was read.
|
|
1637
1640
|
* Get Boat limits
|
|
1638
1641
|
*/
|
|
1639
1642
|
async limits(requestParameters = {}, initOverrides) {
|
|
@@ -1678,6 +1681,44 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
1678
1681
|
const response = await this.listNamedSnapshotsRaw(initOverrides);
|
|
1679
1682
|
return await response.value();
|
|
1680
1683
|
}
|
|
1684
|
+
/**
|
|
1685
|
+
* Creates request options for listOrganizations without sending the request
|
|
1686
|
+
*/
|
|
1687
|
+
async listOrganizationsRequestOpts() {
|
|
1688
|
+
const queryParameters = {};
|
|
1689
|
+
const headerParameters = {};
|
|
1690
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1691
|
+
const token = this.configuration.accessToken;
|
|
1692
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
1693
|
+
if (tokenString) {
|
|
1694
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
let urlPath = `/orgs`;
|
|
1698
|
+
return {
|
|
1699
|
+
path: urlPath,
|
|
1700
|
+
method: 'GET',
|
|
1701
|
+
headers: headerParameters,
|
|
1702
|
+
query: queryParameters,
|
|
1703
|
+
};
|
|
1704
|
+
}
|
|
1705
|
+
/**
|
|
1706
|
+
* The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
|
|
1707
|
+
* List organizations
|
|
1708
|
+
*/
|
|
1709
|
+
async listOrganizationsRaw(initOverrides) {
|
|
1710
|
+
const requestOptions = await this.listOrganizationsRequestOpts();
|
|
1711
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1712
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrgListResponseFromJSON(jsonValue));
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (`org`, `X-Boat-Org`, `teamId`). `active` marks the wallet new sandboxes bill when a request names none; change it with `PATCH /orgs/active`.
|
|
1716
|
+
* List organizations
|
|
1717
|
+
*/
|
|
1718
|
+
async listOrganizations(initOverrides) {
|
|
1719
|
+
const response = await this.listOrganizationsRaw(initOverrides);
|
|
1720
|
+
return await response.value();
|
|
1721
|
+
}
|
|
1681
1722
|
/**
|
|
1682
1723
|
* Creates request options for listSandboxSnapshots without sending the request
|
|
1683
1724
|
*/
|
|
@@ -2390,6 +2431,49 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2390
2431
|
const response = await this.selectRepoRaw(requestParameters, initOverrides);
|
|
2391
2432
|
return await response.value();
|
|
2392
2433
|
}
|
|
2434
|
+
/**
|
|
2435
|
+
* Creates request options for setActiveOrganization without sending the request
|
|
2436
|
+
*/
|
|
2437
|
+
async setActiveOrganizationRequestOpts(requestParameters) {
|
|
2438
|
+
if (requestParameters['activeOrgUpdateRequest'] == null) {
|
|
2439
|
+
throw new runtime.RequiredError('activeOrgUpdateRequest', 'Required parameter "activeOrgUpdateRequest" was null or undefined when calling setActiveOrganization().');
|
|
2440
|
+
}
|
|
2441
|
+
const queryParameters = {};
|
|
2442
|
+
const headerParameters = {};
|
|
2443
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2444
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2445
|
+
const token = this.configuration.accessToken;
|
|
2446
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2447
|
+
if (tokenString) {
|
|
2448
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
let urlPath = `/orgs/active`;
|
|
2452
|
+
return {
|
|
2453
|
+
path: urlPath,
|
|
2454
|
+
method: 'PATCH',
|
|
2455
|
+
headers: headerParameters,
|
|
2456
|
+
query: queryParameters,
|
|
2457
|
+
body: ActiveOrgUpdateRequestToJSON(requestParameters['activeOrgUpdateRequest']),
|
|
2458
|
+
};
|
|
2459
|
+
}
|
|
2460
|
+
/**
|
|
2461
|
+
* 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.
|
|
2462
|
+
* Set the active organization
|
|
2463
|
+
*/
|
|
2464
|
+
async setActiveOrganizationRaw(requestParameters, initOverrides) {
|
|
2465
|
+
const requestOptions = await this.setActiveOrganizationRequestOpts(requestParameters);
|
|
2466
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2467
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ActiveOrgResponseFromJSON(jsonValue));
|
|
2468
|
+
}
|
|
2469
|
+
/**
|
|
2470
|
+
* 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.
|
|
2471
|
+
* Set the active organization
|
|
2472
|
+
*/
|
|
2473
|
+
async setActiveOrganization(requestParameters, initOverrides) {
|
|
2474
|
+
const response = await this.setActiveOrganizationRaw(requestParameters, initOverrides);
|
|
2475
|
+
return await response.value();
|
|
2476
|
+
}
|
|
2393
2477
|
/**
|
|
2394
2478
|
* Creates request options for setEnvironmentSecretFile without sending the request
|
|
2395
2479
|
*/
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Boat Public API v1
|
|
3
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ActiveOrgResponseAllOfActive } from './ActiveOrgResponseAllOfActive';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ActiveOrgResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ActiveOrgResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ActiveOrgResponse
|
|
23
|
+
*/
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ActiveOrgResponseTypeEnum}
|
|
28
|
+
* @memberof ActiveOrgResponse
|
|
29
|
+
*/
|
|
30
|
+
type: ActiveOrgResponseTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ActiveOrgResponseAllOfActive}
|
|
34
|
+
* @memberof ActiveOrgResponse
|
|
35
|
+
*/
|
|
36
|
+
active: ActiveOrgResponseAllOfActive;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const ActiveOrgResponseTypeEnum: {
|
|
42
|
+
readonly OrgActiveUpdated: 'org.active_updated';
|
|
43
|
+
};
|
|
44
|
+
export type ActiveOrgResponseTypeEnum = typeof ActiveOrgResponseTypeEnum[keyof typeof ActiveOrgResponseTypeEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the ActiveOrgResponse interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfActiveOrgResponse(value: object): value is ActiveOrgResponse;
|
|
49
|
+
export declare function ActiveOrgResponseFromJSON(json: any): ActiveOrgResponse;
|
|
50
|
+
export declare function ActiveOrgResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveOrgResponse;
|
|
51
|
+
export declare function ActiveOrgResponseToJSON(json: any): ActiveOrgResponse;
|
|
52
|
+
export declare function ActiveOrgResponseToJSONTyped(value?: ActiveOrgResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Boat Public API v1
|
|
5
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ActiveOrgResponseAllOfActiveFromJSON, ActiveOrgResponseAllOfActiveToJSON, } from './ActiveOrgResponseAllOfActive';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ActiveOrgResponseTypeEnum = {
|
|
19
|
+
OrgActiveUpdated: 'org.active_updated'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ActiveOrgResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfActiveOrgResponse(value) {
|
|
25
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function ActiveOrgResponseFromJSON(json) {
|
|
34
|
+
return ActiveOrgResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ActiveOrgResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'ok': json['ok'],
|
|
42
|
+
'type': json['type'],
|
|
43
|
+
'active': ActiveOrgResponseAllOfActiveFromJSON(json['active']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function ActiveOrgResponseToJSON(json) {
|
|
47
|
+
return ActiveOrgResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function ActiveOrgResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'ok': value['ok'],
|
|
55
|
+
'type': value['type'],
|
|
56
|
+
'active': ActiveOrgResponseAllOfActiveToJSON(value['active']),
|
|
57
|
+
};
|
|
58
|
+
}
|