@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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# SandboxTeam
|
|
3
|
+
|
|
4
|
+
The organization billed for this sandbox, or null when the owner is billed.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { SandboxTeam } from '@boatdev/sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"name": null,
|
|
22
|
+
} satisfies SandboxTeam
|
|
23
|
+
|
|
24
|
+
console.log(example)
|
|
25
|
+
|
|
26
|
+
// Convert the instance to a JSON string
|
|
27
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
28
|
+
console.log(exampleJSON)
|
|
29
|
+
|
|
30
|
+
// Parse the JSON string back to an object
|
|
31
|
+
const exampleParsed = JSON.parse(exampleJSON) as SandboxTeam
|
|
32
|
+
console.log(exampleParsed)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
package/docs/SecretsResponse.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type
|
|
|
10
10
|
`type` | string
|
|
11
11
|
`success` | boolean
|
|
12
12
|
`environmentId` | string
|
|
13
|
+
`subenvironmentId` | string
|
|
13
14
|
`envContents` | string
|
|
14
15
|
`secretFiles` | [Array<SecretFile>](SecretFile.md)
|
|
15
16
|
`pushed` | { [key: string]: any; }
|
|
@@ -25,6 +26,7 @@ const example = {
|
|
|
25
26
|
"type": null,
|
|
26
27
|
"success": null,
|
|
27
28
|
"environmentId": null,
|
|
29
|
+
"subenvironmentId": null,
|
|
28
30
|
"envContents": null,
|
|
29
31
|
"secretFiles": null,
|
|
30
32
|
"pushed": null,
|
|
@@ -10,9 +10,12 @@ Name | Type
|
|
|
10
10
|
`databaseId` | string
|
|
11
11
|
`name` | string
|
|
12
12
|
`fullName` | string
|
|
13
|
+
`description` | string
|
|
14
|
+
`url` | string
|
|
13
15
|
`_private` | boolean
|
|
14
16
|
`permissions` | string
|
|
15
17
|
`pushedAt` | Date
|
|
18
|
+
`lastUserCommitAt` | Date
|
|
16
19
|
`baseBranch` | string
|
|
17
20
|
`setupRoutineId` | string
|
|
18
21
|
`setupScript` | string
|
|
@@ -29,9 +32,12 @@ const example = {
|
|
|
29
32
|
"databaseId": null,
|
|
30
33
|
"name": null,
|
|
31
34
|
"fullName": null,
|
|
35
|
+
"description": null,
|
|
36
|
+
"url": null,
|
|
32
37
|
"_private": null,
|
|
33
38
|
"permissions": null,
|
|
34
39
|
"pushedAt": null,
|
|
40
|
+
"lastUserCommitAt": null,
|
|
35
41
|
"baseBranch": null,
|
|
36
42
|
"setupRoutineId": null,
|
|
37
43
|
"setupScript": null,
|
package/docs/SshKeyResponse.md
CHANGED
|
@@ -11,6 +11,8 @@ Name | Type
|
|
|
11
11
|
`success` | boolean
|
|
12
12
|
`machineIp` | string
|
|
13
13
|
`sshUser` | string
|
|
14
|
+
`sshEndpoint` | string
|
|
15
|
+
`hostKey` | string
|
|
14
16
|
|
|
15
17
|
## Example
|
|
16
18
|
|
|
@@ -24,6 +26,8 @@ const example = {
|
|
|
24
26
|
"success": null,
|
|
25
27
|
"machineIp": null,
|
|
26
28
|
"sshUser": null,
|
|
29
|
+
"sshEndpoint": null,
|
|
30
|
+
"hostKey": null,
|
|
27
31
|
} satisfies SshKeyResponse
|
|
28
32
|
|
|
29
33
|
console.log(example)
|
|
@@ -8,7 +8,10 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`success` | boolean
|
|
10
10
|
`upgraded` | number
|
|
11
|
+
`upgradedLive` | number
|
|
12
|
+
`upgradedStopped` | number
|
|
11
13
|
`failed` | number
|
|
14
|
+
`latestVersionId` | string
|
|
12
15
|
|
|
13
16
|
## Example
|
|
14
17
|
|
|
@@ -19,7 +22,10 @@ import type { UpgradeSandboxEnvironmentResponse } from '@boatdev/sdk'
|
|
|
19
22
|
const example = {
|
|
20
23
|
"success": null,
|
|
21
24
|
"upgraded": null,
|
|
25
|
+
"upgradedLive": null,
|
|
26
|
+
"upgradedStopped": null,
|
|
22
27
|
"failed": null,
|
|
28
|
+
"latestVersionId": null,
|
|
23
29
|
} satisfies UpgradeSandboxEnvironmentResponse
|
|
24
30
|
|
|
25
31
|
console.log(example)
|
package/package.json
CHANGED
package/src/apis/BoatApi.ts
CHANGED
|
@@ -13,6 +13,16 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type ActiveOrgResponse,
|
|
18
|
+
ActiveOrgResponseFromJSON,
|
|
19
|
+
ActiveOrgResponseToJSON,
|
|
20
|
+
} from '../models/ActiveOrgResponse';
|
|
21
|
+
import {
|
|
22
|
+
type ActiveOrgUpdateRequest,
|
|
23
|
+
ActiveOrgUpdateRequestFromJSON,
|
|
24
|
+
ActiveOrgUpdateRequestToJSON,
|
|
25
|
+
} from '../models/ActiveOrgUpdateRequest';
|
|
16
26
|
import {
|
|
17
27
|
type AddEnvironmentRepoRequest,
|
|
18
28
|
AddEnvironmentRepoRequestFromJSON,
|
|
@@ -188,6 +198,11 @@ import {
|
|
|
188
198
|
NamedSnapshotSavingResponseFromJSON,
|
|
189
199
|
NamedSnapshotSavingResponseToJSON,
|
|
190
200
|
} from '../models/NamedSnapshotSavingResponse';
|
|
201
|
+
import {
|
|
202
|
+
type OrgListResponse,
|
|
203
|
+
OrgListResponseFromJSON,
|
|
204
|
+
OrgListResponseToJSON,
|
|
205
|
+
} from '../models/OrgListResponse';
|
|
191
206
|
import {
|
|
192
207
|
type PromptRequest,
|
|
193
208
|
PromptRequestFromJSON,
|
|
@@ -600,6 +615,10 @@ export interface SelectRepoRequest {
|
|
|
600
615
|
repoSelectionRequest: RepoSelectionRequest;
|
|
601
616
|
}
|
|
602
617
|
|
|
618
|
+
export interface SetActiveOrganizationRequest {
|
|
619
|
+
activeOrgUpdateRequest: ActiveOrgUpdateRequest;
|
|
620
|
+
}
|
|
621
|
+
|
|
603
622
|
export interface SetEnvironmentSecretFileOperationRequest {
|
|
604
623
|
environmentId: string;
|
|
605
624
|
setEnvironmentSecretFileRequest: SetEnvironmentSecretFileRequest;
|
|
@@ -2712,7 +2731,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2712
2731
|
}
|
|
2713
2732
|
|
|
2714
2733
|
/**
|
|
2715
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
2734
|
+
* 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.
|
|
2716
2735
|
* Get Boat limits
|
|
2717
2736
|
*/
|
|
2718
2737
|
async limitsRaw(requestParameters: LimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LimitsResponse>> {
|
|
@@ -2723,7 +2742,7 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2723
2742
|
}
|
|
2724
2743
|
|
|
2725
2744
|
/**
|
|
2726
|
-
* Check remaining machine starts, compute time, credits, access readiness, and concurrent-sandbox capacity for the
|
|
2745
|
+
* 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.
|
|
2727
2746
|
* Get Boat limits
|
|
2728
2747
|
*/
|
|
2729
2748
|
async limits(requestParameters: LimitsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LimitsResponse> {
|
|
@@ -2778,6 +2797,53 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
2778
2797
|
return await response.value();
|
|
2779
2798
|
}
|
|
2780
2799
|
|
|
2800
|
+
/**
|
|
2801
|
+
* Creates request options for listOrganizations without sending the request
|
|
2802
|
+
*/
|
|
2803
|
+
async listOrganizationsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2804
|
+
const queryParameters: any = {};
|
|
2805
|
+
|
|
2806
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2807
|
+
|
|
2808
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2809
|
+
const token = this.configuration.accessToken;
|
|
2810
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
2811
|
+
|
|
2812
|
+
if (tokenString) {
|
|
2813
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
let urlPath = `/orgs`;
|
|
2818
|
+
|
|
2819
|
+
return {
|
|
2820
|
+
path: urlPath,
|
|
2821
|
+
method: 'GET',
|
|
2822
|
+
headers: headerParameters,
|
|
2823
|
+
query: queryParameters,
|
|
2824
|
+
};
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
/**
|
|
2828
|
+
* 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`.
|
|
2829
|
+
* List organizations
|
|
2830
|
+
*/
|
|
2831
|
+
async listOrganizationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrgListResponse>> {
|
|
2832
|
+
const requestOptions = await this.listOrganizationsRequestOpts();
|
|
2833
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2834
|
+
|
|
2835
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrgListResponseFromJSON(jsonValue));
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
/**
|
|
2839
|
+
* 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`.
|
|
2840
|
+
* List organizations
|
|
2841
|
+
*/
|
|
2842
|
+
async listOrganizations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrgListResponse> {
|
|
2843
|
+
const response = await this.listOrganizationsRaw(initOverrides);
|
|
2844
|
+
return await response.value();
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2781
2847
|
/**
|
|
2782
2848
|
* Creates request options for listSandboxSnapshots without sending the request
|
|
2783
2849
|
*/
|
|
@@ -3708,6 +3774,63 @@ export class BoatApi extends runtime.BaseAPI {
|
|
|
3708
3774
|
return await response.value();
|
|
3709
3775
|
}
|
|
3710
3776
|
|
|
3777
|
+
/**
|
|
3778
|
+
* Creates request options for setActiveOrganization without sending the request
|
|
3779
|
+
*/
|
|
3780
|
+
async setActiveOrganizationRequestOpts(requestParameters: SetActiveOrganizationRequest): Promise<runtime.RequestOpts> {
|
|
3781
|
+
if (requestParameters['activeOrgUpdateRequest'] == null) {
|
|
3782
|
+
throw new runtime.RequiredError(
|
|
3783
|
+
'activeOrgUpdateRequest',
|
|
3784
|
+
'Required parameter "activeOrgUpdateRequest" was null or undefined when calling setActiveOrganization().'
|
|
3785
|
+
);
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
const queryParameters: any = {};
|
|
3789
|
+
|
|
3790
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3791
|
+
|
|
3792
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3793
|
+
|
|
3794
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3795
|
+
const token = this.configuration.accessToken;
|
|
3796
|
+
const tokenString = await token("BoatBearerAuth", []);
|
|
3797
|
+
|
|
3798
|
+
if (tokenString) {
|
|
3799
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3800
|
+
}
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
let urlPath = `/orgs/active`;
|
|
3804
|
+
|
|
3805
|
+
return {
|
|
3806
|
+
path: urlPath,
|
|
3807
|
+
method: 'PATCH',
|
|
3808
|
+
headers: headerParameters,
|
|
3809
|
+
query: queryParameters,
|
|
3810
|
+
body: ActiveOrgUpdateRequestToJSON(requestParameters['activeOrgUpdateRequest']),
|
|
3811
|
+
};
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
/**
|
|
3815
|
+
* 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.
|
|
3816
|
+
* Set the active organization
|
|
3817
|
+
*/
|
|
3818
|
+
async setActiveOrganizationRaw(requestParameters: SetActiveOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ActiveOrgResponse>> {
|
|
3819
|
+
const requestOptions = await this.setActiveOrganizationRequestOpts(requestParameters);
|
|
3820
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3821
|
+
|
|
3822
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ActiveOrgResponseFromJSON(jsonValue));
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3825
|
+
/**
|
|
3826
|
+
* 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.
|
|
3827
|
+
* Set the active organization
|
|
3828
|
+
*/
|
|
3829
|
+
async setActiveOrganization(requestParameters: SetActiveOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ActiveOrgResponse> {
|
|
3830
|
+
const response = await this.setActiveOrganizationRaw(requestParameters, initOverrides);
|
|
3831
|
+
return await response.value();
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3711
3834
|
/**
|
|
3712
3835
|
* Creates request options for setEnvironmentSecretFile without sending the request
|
|
3713
3836
|
*/
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ActiveOrgResponseAllOfActive } from './ActiveOrgResponseAllOfActive';
|
|
17
|
+
import {
|
|
18
|
+
ActiveOrgResponseAllOfActiveFromJSON,
|
|
19
|
+
ActiveOrgResponseAllOfActiveFromJSONTyped,
|
|
20
|
+
ActiveOrgResponseAllOfActiveToJSON,
|
|
21
|
+
ActiveOrgResponseAllOfActiveToJSONTyped,
|
|
22
|
+
} from './ActiveOrgResponseAllOfActive';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ActiveOrgResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ActiveOrgResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ActiveOrgResponse
|
|
34
|
+
*/
|
|
35
|
+
ok: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {ActiveOrgResponseTypeEnum}
|
|
39
|
+
* @memberof ActiveOrgResponse
|
|
40
|
+
*/
|
|
41
|
+
type: ActiveOrgResponseTypeEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ActiveOrgResponseAllOfActive}
|
|
45
|
+
* @memberof ActiveOrgResponse
|
|
46
|
+
*/
|
|
47
|
+
active: ActiveOrgResponseAllOfActive;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export const ActiveOrgResponseTypeEnum = {
|
|
55
|
+
OrgActiveUpdated: 'org.active_updated'
|
|
56
|
+
} as const;
|
|
57
|
+
export type ActiveOrgResponseTypeEnum = typeof ActiveOrgResponseTypeEnum[keyof typeof ActiveOrgResponseTypeEnum];
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ActiveOrgResponse interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfActiveOrgResponse(value: object): value is ActiveOrgResponse {
|
|
64
|
+
if (!('ok' in value) || value['ok'] === undefined) return false;
|
|
65
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
66
|
+
if (!('active' in value) || value['active'] === undefined) return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ActiveOrgResponseFromJSON(json: any): ActiveOrgResponse {
|
|
71
|
+
return ActiveOrgResponseFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ActiveOrgResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveOrgResponse {
|
|
75
|
+
if (json == null) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'ok': json['ok'],
|
|
81
|
+
'type': json['type'],
|
|
82
|
+
'active': ActiveOrgResponseAllOfActiveFromJSON(json['active']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ActiveOrgResponseToJSON(json: any): ActiveOrgResponse {
|
|
87
|
+
return ActiveOrgResponseToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ActiveOrgResponseToJSONTyped(value?: ActiveOrgResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'ok': value['ok'],
|
|
98
|
+
'type': value['type'],
|
|
99
|
+
'active': ActiveOrgResponseAllOfActiveToJSON(value['active']),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ActiveOrgResponseAllOfActive
|
|
20
|
+
*/
|
|
21
|
+
export interface ActiveOrgResponseAllOfActive {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ActiveOrgResponseAllOfActive
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ActiveOrgResponseAllOfActive
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ActiveOrgResponseAllOfActiveTypeEnum}
|
|
37
|
+
* @memberof ActiveOrgResponseAllOfActive
|
|
38
|
+
*/
|
|
39
|
+
type: ActiveOrgResponseAllOfActiveTypeEnum;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ActiveOrgResponseAllOfActiveTypeEnum = {
|
|
47
|
+
Personal: 'personal',
|
|
48
|
+
Org: 'org'
|
|
49
|
+
} as const;
|
|
50
|
+
export type ActiveOrgResponseAllOfActiveTypeEnum = typeof ActiveOrgResponseAllOfActiveTypeEnum[keyof typeof ActiveOrgResponseAllOfActiveTypeEnum];
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ActiveOrgResponseAllOfActive interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfActiveOrgResponseAllOfActive(value: object): value is ActiveOrgResponseAllOfActive {
|
|
57
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ActiveOrgResponseAllOfActiveFromJSON(json: any): ActiveOrgResponseAllOfActive {
|
|
64
|
+
return ActiveOrgResponseAllOfActiveFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ActiveOrgResponseAllOfActiveFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveOrgResponseAllOfActive {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'id': json['id'],
|
|
74
|
+
'name': json['name'],
|
|
75
|
+
'type': json['type'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ActiveOrgResponseAllOfActiveToJSON(json: any): ActiveOrgResponseAllOfActive {
|
|
80
|
+
return ActiveOrgResponseAllOfActiveToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ActiveOrgResponseAllOfActiveToJSONTyped(value?: ActiveOrgResponseAllOfActive | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': value['id'],
|
|
91
|
+
'name': value['name'],
|
|
92
|
+
'type': value['type'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ActiveOrgUpdateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ActiveOrgUpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Organization id or name you belong to; `personal`, your own id or `null` for personal.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ActiveOrgUpdateRequest
|
|
26
|
+
*/
|
|
27
|
+
org: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ActiveOrgUpdateRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfActiveOrgUpdateRequest(value: object): value is ActiveOrgUpdateRequest {
|
|
34
|
+
if (!('org' in value) || value['org'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ActiveOrgUpdateRequestFromJSON(json: any): ActiveOrgUpdateRequest {
|
|
39
|
+
return ActiveOrgUpdateRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ActiveOrgUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveOrgUpdateRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'org': json['org'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ActiveOrgUpdateRequestToJSON(json: any): ActiveOrgUpdateRequest {
|
|
53
|
+
return ActiveOrgUpdateRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ActiveOrgUpdateRequestToJSONTyped(value?: ActiveOrgUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'org': value['org'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -49,6 +49,12 @@ export interface CommandResponse {
|
|
|
49
49
|
* @memberof CommandResponse
|
|
50
50
|
*/
|
|
51
51
|
signal?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* True when the memory ceiling killed the command or one of its processes and the command failed.
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof CommandResponse
|
|
56
|
+
*/
|
|
57
|
+
oomKilled?: boolean;
|
|
52
58
|
/**
|
|
53
59
|
*
|
|
54
60
|
* @type {string}
|
|
@@ -138,6 +144,7 @@ export function CommandResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
138
144
|
'success': json['success'],
|
|
139
145
|
'exitCode': json['exitCode'],
|
|
140
146
|
'signal': json['signal'] == null ? undefined : json['signal'],
|
|
147
|
+
'oomKilled': json['oomKilled'] == null ? undefined : json['oomKilled'],
|
|
141
148
|
'stdout': json['stdout'],
|
|
142
149
|
'stderr': json['stderr'],
|
|
143
150
|
'stdoutTruncated': json['stdoutTruncated'] == null ? undefined : json['stdoutTruncated'],
|
|
@@ -165,6 +172,7 @@ export function CommandResponseToJSONTyped(value?: CommandResponse | null, ignor
|
|
|
165
172
|
'success': value['success'],
|
|
166
173
|
'exitCode': value['exitCode'],
|
|
167
174
|
'signal': value['signal'],
|
|
175
|
+
'oomKilled': value['oomKilled'],
|
|
168
176
|
'stdout': value['stdout'],
|
|
169
177
|
'stderr': value['stderr'],
|
|
170
178
|
'stdoutTruncated': value['stdoutTruncated'],
|
|
@@ -79,6 +79,12 @@ export interface CommandStatusResponse {
|
|
|
79
79
|
* @memberof CommandStatusResponse
|
|
80
80
|
*/
|
|
81
81
|
signal?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* True when the memory ceiling killed the command or one of its processes and the command failed.
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof CommandStatusResponse
|
|
86
|
+
*/
|
|
87
|
+
oomKilled?: boolean;
|
|
82
88
|
/**
|
|
83
89
|
*
|
|
84
90
|
* @type {string}
|
|
@@ -197,6 +203,7 @@ export function CommandStatusResponseFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
197
203
|
'running': json['running'],
|
|
198
204
|
'exitCode': json['exitCode'],
|
|
199
205
|
'signal': json['signal'] == null ? undefined : json['signal'],
|
|
206
|
+
'oomKilled': json['oomKilled'] == null ? undefined : json['oomKilled'],
|
|
200
207
|
'command': json['command'] == null ? undefined : json['command'],
|
|
201
208
|
'cwd': json['cwd'] == null ? undefined : json['cwd'],
|
|
202
209
|
'startedAt': json['startedAt'] == null ? undefined : (new Date(json['startedAt'])),
|
|
@@ -231,6 +238,7 @@ export function CommandStatusResponseToJSONTyped(value?: CommandStatusResponse |
|
|
|
231
238
|
'running': value['running'],
|
|
232
239
|
'exitCode': value['exitCode'],
|
|
233
240
|
'signal': value['signal'],
|
|
241
|
+
'oomKilled': value['oomKilled'],
|
|
234
242
|
'command': value['command'],
|
|
235
243
|
'cwd': value['cwd'],
|
|
236
244
|
'startedAt': value['startedAt'] == null ? value['startedAt'] : value['startedAt'].toISOString(),
|
|
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface CreateSandboxRequest {
|
|
22
22
|
/**
|
|
23
|
-
* Machine size. `small` consumes machine time at half rate and `large` at twice the default rate (see the Billing guide).
|
|
23
|
+
* Machine size. `small` consumes machine time at half rate and `large` at twice the default rate (see the Billing guide). A fork inherits the source sandbox's type unless the fork request passes its own, and resume and fork can move a sandbox between sizes.
|
|
24
24
|
* @type {CreateSandboxRequestTypeEnum}
|
|
25
25
|
* @memberof CreateSandboxRequest
|
|
26
26
|
*/
|
|
@@ -56,7 +56,7 @@ export interface CreateSandboxRequest {
|
|
|
56
56
|
*/
|
|
57
57
|
setupScript?: string;
|
|
58
58
|
/**
|
|
59
|
-
* Bill this sandbox to
|
|
59
|
+
* Bill this sandbox to an organization you belong to (its shared wallet), by id or by name as `GET /orgs` lists it; `personal` or your own account id means personal billing. Omitted, the `X-Boat-Org` / `?org=` request scope applies, then the account's active wallet (`PATCH /orgs/active`), then personal. Listing, snapshots, and environments stay yours: the org is a wallet, not a shared workspace. Takes precedence over `teamId`.
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof CreateSandboxRequest
|
|
62
62
|
*/
|
|
@@ -82,8 +82,7 @@ export interface CreateSandboxRequest {
|
|
|
82
82
|
export const CreateSandboxRequestTypeEnum = {
|
|
83
83
|
Small: 'small',
|
|
84
84
|
Default: 'default',
|
|
85
|
-
Large: 'large'
|
|
86
|
-
Xlarge: 'xlarge'
|
|
85
|
+
Large: 'large'
|
|
87
86
|
} as const;
|
|
88
87
|
export type CreateSandboxRequestTypeEnum = typeof CreateSandboxRequestTypeEnum[keyof typeof CreateSandboxRequestTypeEnum];
|
|
89
88
|
|