@boatdev/sdk 1.10.0 → 1.12.0
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 +64 -0
- package/dist/apis/BoatApi.d.ts +283 -26
- package/dist/apis/BoatApi.js +662 -29
- package/dist/esm/apis/BoatApi.d.ts +283 -26
- package/dist/esm/apis/BoatApi.js +662 -29
- package/dist/esm/models/CreateSandboxRequest.d.ts +38 -4
- package/dist/esm/models/CreateSandboxRequest.js +17 -0
- package/dist/esm/models/CreateSandboxRequestFilesInner.d.ts +52 -0
- package/dist/esm/models/CreateSandboxRequestFilesInner.js +56 -0
- package/dist/esm/models/CreateSandboxResponse.d.ts +7 -0
- package/dist/esm/models/CreateSandboxResponse.js +3 -0
- package/dist/esm/models/CreateSandboxResponseAllOfHostedPortsInner.d.ts +77 -0
- package/dist/esm/models/CreateSandboxResponseAllOfHostedPortsInner.js +64 -0
- package/dist/esm/models/CredentialId.d.ts +3 -0
- package/dist/esm/models/CredentialId.js +3 -0
- package/dist/esm/models/CredentialProfile.d.ts +7 -0
- package/dist/esm/models/CredentialProfile.js +3 -0
- package/dist/esm/models/DeletionOperation.d.ts +1 -1
- package/dist/esm/models/FileDeleteResponse.d.ts +57 -0
- package/dist/esm/models/FileDeleteResponse.js +59 -0
- package/dist/esm/models/FileEntry.d.ts +68 -0
- package/dist/esm/models/FileEntry.js +67 -0
- package/dist/esm/models/FileFindResponse.d.ts +70 -0
- package/dist/esm/models/FileFindResponse.js +66 -0
- package/dist/esm/models/FileFindResponseAllOfMatches.d.ts +44 -0
- package/dist/esm/models/FileFindResponseAllOfMatches.js +51 -0
- package/dist/esm/models/FileFolderRequest.d.ts +38 -0
- package/dist/esm/models/FileFolderRequest.js +45 -0
- package/dist/esm/models/FileInfoResponse.d.ts +95 -0
- package/dist/esm/models/FileInfoResponse.js +85 -0
- package/dist/esm/models/FileListResponse.d.ts +70 -0
- package/dist/esm/models/FileListResponse.js +68 -0
- package/dist/esm/models/FileMoveRequest.d.ts +44 -0
- package/dist/esm/models/FileMoveRequest.js +49 -0
- package/dist/esm/models/FileMoveResponse.d.ts +63 -0
- package/dist/esm/models/FileMoveResponse.js +63 -0
- package/dist/esm/models/FilePermissionsRequest.d.ts +38 -0
- package/dist/esm/models/FilePermissionsRequest.js +47 -0
- package/dist/esm/models/FileReplaceRequest.d.ts +44 -0
- package/dist/esm/models/FileReplaceRequest.js +51 -0
- package/dist/esm/models/FileReplaceResponse.d.ts +58 -0
- package/dist/esm/models/FileReplaceResponse.js +60 -0
- package/dist/esm/models/FileReplaceResponseAllOfResults.d.ts +50 -0
- package/dist/esm/models/FileReplaceResponseAllOfResults.js +51 -0
- package/dist/esm/models/FileSearchResponse.d.ts +69 -0
- package/dist/esm/models/FileSearchResponse.js +65 -0
- package/dist/esm/models/LimitsFields.d.ts +54 -16
- package/dist/esm/models/LimitsFields.js +16 -2
- package/dist/esm/models/LimitsFieldsOveragePrices.d.ts +51 -0
- package/dist/esm/models/LimitsFieldsOveragePrices.js +48 -0
- package/dist/esm/models/LimitsFieldsOveragePricesStartBracketsInner.d.ts +44 -0
- package/dist/esm/models/LimitsFieldsOveragePricesStartBracketsInner.js +45 -0
- package/dist/esm/models/LimitsFieldsPlanIncluded.d.ts +44 -0
- package/dist/esm/models/LimitsFieldsPlanIncluded.js +45 -0
- package/dist/esm/models/LimitsFieldsStartLimitsWithWallet.d.ts +44 -0
- package/dist/esm/models/LimitsFieldsStartLimitsWithWallet.js +45 -0
- package/dist/esm/models/LimitsFieldsWallet.d.ts +32 -0
- package/dist/esm/models/LimitsFieldsWallet.js +41 -0
- package/dist/esm/models/LimitsResponse.d.ts +54 -16
- package/dist/esm/models/LimitsResponse.js +16 -2
- package/dist/esm/models/NamedSnapshotAllowance.d.ts +9 -3
- package/dist/esm/models/NamedSnapshotAllowance.js +2 -0
- package/dist/esm/models/ResourceAccess.d.ts +38 -0
- package/dist/esm/models/ResourceAccess.js +47 -0
- package/dist/esm/models/ResourceAccessUpdate.d.ts +38 -0
- package/dist/esm/models/ResourceAccessUpdate.js +45 -0
- package/dist/esm/models/Sandbox.d.ts +7 -0
- package/dist/esm/models/Sandbox.js +3 -0
- package/dist/esm/models/SandboxEnvironment.d.ts +7 -0
- package/dist/esm/models/SandboxEnvironment.js +3 -0
- package/dist/esm/models/SandboxLastReboot.d.ts +47 -0
- package/dist/esm/models/SandboxLastReboot.js +51 -0
- package/dist/esm/models/SandboxListResponse.d.ts +7 -0
- package/dist/esm/models/SandboxListResponse.js +3 -0
- package/dist/esm/models/SandboxListResponseAllOfDeletedCost.d.ts +44 -0
- package/dist/esm/models/SandboxListResponseAllOfDeletedCost.js +51 -0
- package/dist/esm/models/SavedSnapshot.d.ts +83 -0
- package/dist/esm/models/SavedSnapshot.js +71 -0
- package/dist/esm/models/SavedSnapshotAllowance.d.ts +87 -0
- package/dist/esm/models/SavedSnapshotAllowance.js +59 -0
- package/dist/esm/models/SavedSnapshotDeletedResponse.d.ts +64 -0
- package/dist/esm/models/SavedSnapshotDeletedResponse.js +67 -0
- package/dist/esm/models/SavedSnapshotInfoResponse.d.ts +52 -0
- package/dist/esm/models/SavedSnapshotInfoResponse.js +58 -0
- package/dist/esm/models/SavedSnapshotListResponse.d.ts +59 -0
- package/dist/esm/models/SavedSnapshotListResponse.js +61 -0
- package/dist/esm/models/SavedSnapshotSaveRequest.d.ts +38 -0
- package/dist/esm/models/SavedSnapshotSaveRequest.js +47 -0
- package/dist/esm/models/SavedSnapshotSavingResponse.d.ts +65 -0
- package/dist/esm/models/SavedSnapshotSavingResponse.js +68 -0
- package/dist/esm/models/SnapshotSummary.d.ts +1 -1
- package/dist/esm/models/UpdateCredentialProfileRequest.d.ts +7 -0
- package/dist/esm/models/UpdateCredentialProfileRequest.js +3 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.d.ts +7 -0
- package/dist/esm/models/UpdateSandboxEnvironmentRequest.js +3 -0
- package/dist/esm/models/index.d.ts +32 -0
- package/dist/esm/models/index.js +32 -0
- package/dist/models/CreateSandboxRequest.d.ts +38 -4
- package/dist/models/CreateSandboxRequest.js +18 -1
- package/dist/models/CreateSandboxRequestFilesInner.d.ts +52 -0
- package/dist/models/CreateSandboxRequestFilesInner.js +64 -0
- package/dist/models/CreateSandboxResponse.d.ts +7 -0
- package/dist/models/CreateSandboxResponse.js +3 -0
- package/dist/models/CreateSandboxResponseAllOfHostedPortsInner.d.ts +77 -0
- package/dist/models/CreateSandboxResponseAllOfHostedPortsInner.js +72 -0
- package/dist/models/CredentialId.d.ts +3 -0
- package/dist/models/CredentialId.js +3 -0
- package/dist/models/CredentialProfile.d.ts +7 -0
- package/dist/models/CredentialProfile.js +3 -0
- package/dist/models/DeletionOperation.d.ts +1 -1
- package/dist/models/FileDeleteResponse.d.ts +57 -0
- package/dist/models/FileDeleteResponse.js +67 -0
- package/dist/models/FileEntry.d.ts +68 -0
- package/dist/models/FileEntry.js +74 -0
- package/dist/models/FileFindResponse.d.ts +70 -0
- package/dist/models/FileFindResponse.js +74 -0
- package/dist/models/FileFindResponseAllOfMatches.d.ts +44 -0
- package/dist/models/FileFindResponseAllOfMatches.js +58 -0
- package/dist/models/FileFolderRequest.d.ts +38 -0
- package/dist/models/FileFolderRequest.js +52 -0
- package/dist/models/FileInfoResponse.d.ts +95 -0
- package/dist/models/FileInfoResponse.js +93 -0
- package/dist/models/FileListResponse.d.ts +70 -0
- package/dist/models/FileListResponse.js +76 -0
- package/dist/models/FileMoveRequest.d.ts +44 -0
- package/dist/models/FileMoveRequest.js +56 -0
- package/dist/models/FileMoveResponse.d.ts +63 -0
- package/dist/models/FileMoveResponse.js +71 -0
- package/dist/models/FilePermissionsRequest.d.ts +38 -0
- package/dist/models/FilePermissionsRequest.js +54 -0
- package/dist/models/FileReplaceRequest.d.ts +44 -0
- package/dist/models/FileReplaceRequest.js +58 -0
- package/dist/models/FileReplaceResponse.d.ts +58 -0
- package/dist/models/FileReplaceResponse.js +68 -0
- package/dist/models/FileReplaceResponseAllOfResults.d.ts +50 -0
- package/dist/models/FileReplaceResponseAllOfResults.js +58 -0
- package/dist/models/FileSearchResponse.d.ts +69 -0
- package/dist/models/FileSearchResponse.js +73 -0
- package/dist/models/LimitsFields.d.ts +54 -16
- package/dist/models/LimitsFields.js +16 -2
- package/dist/models/LimitsFieldsOveragePrices.d.ts +51 -0
- package/dist/models/LimitsFieldsOveragePrices.js +55 -0
- package/dist/models/LimitsFieldsOveragePricesStartBracketsInner.d.ts +44 -0
- package/dist/models/LimitsFieldsOveragePricesStartBracketsInner.js +52 -0
- package/dist/models/LimitsFieldsPlanIncluded.d.ts +44 -0
- package/dist/models/LimitsFieldsPlanIncluded.js +52 -0
- package/dist/models/LimitsFieldsStartLimitsWithWallet.d.ts +44 -0
- package/dist/models/LimitsFieldsStartLimitsWithWallet.js +52 -0
- package/dist/models/LimitsFieldsWallet.d.ts +32 -0
- package/dist/models/LimitsFieldsWallet.js +48 -0
- package/dist/models/LimitsResponse.d.ts +54 -16
- package/dist/models/LimitsResponse.js +16 -2
- package/dist/models/NamedSnapshotAllowance.d.ts +9 -3
- package/dist/models/NamedSnapshotAllowance.js +2 -0
- package/dist/models/ResourceAccess.d.ts +38 -0
- package/dist/models/ResourceAccess.js +54 -0
- package/dist/models/ResourceAccessUpdate.d.ts +38 -0
- package/dist/models/ResourceAccessUpdate.js +52 -0
- package/dist/models/Sandbox.d.ts +7 -0
- package/dist/models/Sandbox.js +3 -0
- package/dist/models/SandboxEnvironment.d.ts +7 -0
- package/dist/models/SandboxEnvironment.js +3 -0
- package/dist/models/SandboxLastReboot.d.ts +47 -0
- package/dist/models/SandboxLastReboot.js +59 -0
- package/dist/models/SandboxListResponse.d.ts +7 -0
- package/dist/models/SandboxListResponse.js +3 -0
- package/dist/models/SandboxListResponseAllOfDeletedCost.d.ts +44 -0
- package/dist/models/SandboxListResponseAllOfDeletedCost.js +58 -0
- package/dist/models/SavedSnapshot.d.ts +83 -0
- package/dist/models/SavedSnapshot.js +79 -0
- package/dist/models/SavedSnapshotAllowance.d.ts +87 -0
- package/dist/models/SavedSnapshotAllowance.js +66 -0
- package/dist/models/SavedSnapshotDeletedResponse.d.ts +64 -0
- package/dist/models/SavedSnapshotDeletedResponse.js +75 -0
- package/dist/models/SavedSnapshotInfoResponse.d.ts +52 -0
- package/dist/models/SavedSnapshotInfoResponse.js +66 -0
- package/dist/models/SavedSnapshotListResponse.d.ts +59 -0
- package/dist/models/SavedSnapshotListResponse.js +69 -0
- package/dist/models/SavedSnapshotSaveRequest.d.ts +38 -0
- package/dist/models/SavedSnapshotSaveRequest.js +54 -0
- package/dist/models/SavedSnapshotSavingResponse.d.ts +65 -0
- package/dist/models/SavedSnapshotSavingResponse.js +76 -0
- package/dist/models/SnapshotSummary.d.ts +1 -1
- package/dist/models/UpdateCredentialProfileRequest.d.ts +7 -0
- package/dist/models/UpdateCredentialProfileRequest.js +3 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.d.ts +7 -0
- package/dist/models/UpdateSandboxEnvironmentRequest.js +3 -0
- package/dist/models/index.d.ts +32 -0
- package/dist/models/index.js +32 -0
- package/docs/BoatApi.md +1049 -61
- package/docs/CreateSandboxRequest.md +8 -0
- package/docs/CreateSandboxRequestFilesInner.md +36 -0
- package/docs/CreateSandboxResponse.md +2 -0
- package/docs/CreateSandboxResponseAllOfHostedPortsInner.md +44 -0
- package/docs/CredentialProfile.md +2 -0
- package/docs/FileDeleteResponse.md +38 -0
- package/docs/FileEntry.md +44 -0
- package/docs/FileFindResponse.md +42 -0
- package/docs/FileFindResponseAllOfMatches.md +36 -0
- package/docs/FileFolderRequest.md +34 -0
- package/docs/FileInfoResponse.md +50 -0
- package/docs/FileListResponse.md +42 -0
- package/docs/FileMoveRequest.md +36 -0
- package/docs/FileMoveResponse.md +40 -0
- package/docs/FilePermissionsRequest.md +34 -0
- package/docs/FileReplaceRequest.md +36 -0
- package/docs/FileReplaceResponse.md +38 -0
- package/docs/FileReplaceResponseAllOfResults.md +38 -0
- package/docs/FileSearchResponse.md +42 -0
- package/docs/LimitsFields.md +12 -2
- package/docs/LimitsFieldsOveragePrices.md +39 -0
- package/docs/LimitsFieldsOveragePricesStartBracketsInner.md +36 -0
- package/docs/LimitsFieldsPlanIncluded.md +37 -0
- package/docs/LimitsFieldsStartLimitsWithWallet.md +37 -0
- package/docs/LimitsFieldsWallet.md +33 -0
- package/docs/LimitsResponse.md +12 -2
- package/docs/NamedSnapshotAllowance.md +3 -1
- package/docs/ResourceAccess.md +35 -0
- package/docs/ResourceAccessUpdate.md +35 -0
- package/docs/Sandbox.md +2 -0
- package/docs/SandboxEnvironment.md +2 -0
- package/docs/SandboxLastReboot.md +35 -0
- package/docs/SandboxListResponse.md +2 -0
- package/docs/SandboxListResponseAllOfDeletedCost.md +37 -0
- package/docs/SavedSnapshot.md +47 -0
- package/docs/SavedSnapshotAllowance.md +51 -0
- package/docs/SavedSnapshotDeletedResponse.md +38 -0
- package/docs/SavedSnapshotInfoResponse.md +36 -0
- package/docs/SavedSnapshotListResponse.md +38 -0
- package/docs/SavedSnapshotSaveRequest.md +34 -0
- package/docs/SavedSnapshotSavingResponse.md +38 -0
- package/docs/UpdateCredentialProfileRequest.md +2 -0
- package/docs/UpdateSandboxEnvironmentRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +999 -30
- package/src/models/CreateSandboxRequest.ts +60 -4
- package/src/models/CreateSandboxRequestFilesInner.ts +94 -0
- package/src/models/CreateSandboxResponse.ts +15 -0
- package/src/models/CreateSandboxResponseAllOfHostedPortsInner.ts +128 -0
- package/src/models/CredentialId.ts +3 -0
- package/src/models/CredentialProfile.ts +15 -0
- package/src/models/DeletionOperation.ts +1 -1
- package/src/models/FileDeleteResponse.ts +102 -0
- package/src/models/FileEntry.ts +120 -0
- package/src/models/FileFindResponse.ts +127 -0
- package/src/models/FileFindResponseAllOfMatches.ts +84 -0
- package/src/models/FileFolderRequest.ts +74 -0
- package/src/models/FileInfoResponse.ts +158 -0
- package/src/models/FileListResponse.ts +128 -0
- package/src/models/FileMoveRequest.ts +83 -0
- package/src/models/FileMoveResponse.ts +111 -0
- package/src/models/FilePermissionsRequest.ts +75 -0
- package/src/models/FileReplaceRequest.ts +84 -0
- package/src/models/FileReplaceResponse.ts +110 -0
- package/src/models/FileReplaceResponseAllOfResults.ts +91 -0
- package/src/models/FileSearchResponse.ts +119 -0
- package/src/models/LimitsFields.ts +90 -16
- package/src/models/LimitsFieldsOveragePrices.ts +97 -0
- package/src/models/LimitsFieldsOveragePricesStartBracketsInner.ts +81 -0
- package/src/models/LimitsFieldsPlanIncluded.ts +81 -0
- package/src/models/LimitsFieldsStartLimitsWithWallet.ts +81 -0
- package/src/models/LimitsFieldsWallet.ts +65 -0
- package/src/models/LimitsResponse.ts +90 -16
- package/src/models/NamedSnapshotAllowance.ts +11 -3
- package/src/models/ResourceAccess.ts +75 -0
- package/src/models/ResourceAccessUpdate.ts +74 -0
- package/src/models/Sandbox.ts +15 -0
- package/src/models/SandboxEnvironment.ts +15 -0
- package/src/models/SandboxLastReboot.ts +85 -0
- package/src/models/SandboxListResponse.ts +15 -0
- package/src/models/SandboxListResponseAllOfDeletedCost.ts +84 -0
- package/src/models/SavedSnapshot.ts +137 -0
- package/src/models/SavedSnapshotAllowance.ts +138 -0
- package/src/models/SavedSnapshotDeletedResponse.ts +111 -0
- package/src/models/SavedSnapshotInfoResponse.ts +102 -0
- package/src/models/SavedSnapshotListResponse.ts +117 -0
- package/src/models/SavedSnapshotSaveRequest.ts +75 -0
- package/src/models/SavedSnapshotSavingResponse.ts +119 -0
- package/src/models/SnapshotSummary.ts +1 -1
- package/src/models/UpdateCredentialProfileRequest.ts +16 -0
- package/src/models/UpdateSandboxEnvironmentRequest.ts +15 -0
- package/src/models/index.ts +32 -0
|
@@ -13,6 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LimitsFieldsWallet } from './LimitsFieldsWallet';
|
|
17
|
+
import {
|
|
18
|
+
LimitsFieldsWalletFromJSON,
|
|
19
|
+
LimitsFieldsWalletFromJSONTyped,
|
|
20
|
+
LimitsFieldsWalletToJSON,
|
|
21
|
+
LimitsFieldsWalletToJSONTyped,
|
|
22
|
+
} from './LimitsFieldsWallet';
|
|
23
|
+
import type { LimitsFieldsStartLimitsWithWallet } from './LimitsFieldsStartLimitsWithWallet';
|
|
24
|
+
import {
|
|
25
|
+
LimitsFieldsStartLimitsWithWalletFromJSON,
|
|
26
|
+
LimitsFieldsStartLimitsWithWalletFromJSONTyped,
|
|
27
|
+
LimitsFieldsStartLimitsWithWalletToJSON,
|
|
28
|
+
LimitsFieldsStartLimitsWithWalletToJSONTyped,
|
|
29
|
+
} from './LimitsFieldsStartLimitsWithWallet';
|
|
16
30
|
import type { LimitsFieldsGiftLimit } from './LimitsFieldsGiftLimit';
|
|
17
31
|
import {
|
|
18
32
|
LimitsFieldsGiftLimitFromJSON,
|
|
@@ -20,6 +34,20 @@ import {
|
|
|
20
34
|
LimitsFieldsGiftLimitToJSON,
|
|
21
35
|
LimitsFieldsGiftLimitToJSONTyped,
|
|
22
36
|
} from './LimitsFieldsGiftLimit';
|
|
37
|
+
import type { LimitsFieldsOveragePrices } from './LimitsFieldsOveragePrices';
|
|
38
|
+
import {
|
|
39
|
+
LimitsFieldsOveragePricesFromJSON,
|
|
40
|
+
LimitsFieldsOveragePricesFromJSONTyped,
|
|
41
|
+
LimitsFieldsOveragePricesToJSON,
|
|
42
|
+
LimitsFieldsOveragePricesToJSONTyped,
|
|
43
|
+
} from './LimitsFieldsOveragePrices';
|
|
44
|
+
import type { LimitsFieldsPlanIncluded } from './LimitsFieldsPlanIncluded';
|
|
45
|
+
import {
|
|
46
|
+
LimitsFieldsPlanIncludedFromJSON,
|
|
47
|
+
LimitsFieldsPlanIncludedFromJSONTyped,
|
|
48
|
+
LimitsFieldsPlanIncludedToJSON,
|
|
49
|
+
LimitsFieldsPlanIncludedToJSONTyped,
|
|
50
|
+
} from './LimitsFieldsPlanIncluded';
|
|
23
51
|
import type { LimitsFieldsCurrentLimits } from './LimitsFieldsCurrentLimits';
|
|
24
52
|
import {
|
|
25
53
|
LimitsFieldsCurrentLimitsFromJSON,
|
|
@@ -170,6 +198,36 @@ export interface LimitsResponse {
|
|
|
170
198
|
* @memberof LimitsResponse
|
|
171
199
|
*/
|
|
172
200
|
startLimits?: LimitsFieldsStartLimits;
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @type {LimitsFieldsWallet}
|
|
204
|
+
* @memberof LimitsResponse
|
|
205
|
+
*/
|
|
206
|
+
wallet?: LimitsFieldsWallet;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @type {LimitsFieldsPlanIncluded}
|
|
210
|
+
* @memberof LimitsResponse
|
|
211
|
+
*/
|
|
212
|
+
planIncluded?: LimitsFieldsPlanIncluded;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @type {LimitsFieldsOveragePrices}
|
|
216
|
+
* @memberof LimitsResponse
|
|
217
|
+
*/
|
|
218
|
+
overagePrices?: LimitsFieldsOveragePrices;
|
|
219
|
+
/**
|
|
220
|
+
* What the next start costs now. 0 inside every limit; null when it would be refused.
|
|
221
|
+
* @type {number}
|
|
222
|
+
* @memberof LimitsResponse
|
|
223
|
+
*/
|
|
224
|
+
nextStartDollars?: number;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {LimitsFieldsStartLimitsWithWallet}
|
|
228
|
+
* @memberof LimitsResponse
|
|
229
|
+
*/
|
|
230
|
+
startLimitsWithWallet?: LimitsFieldsStartLimitsWithWallet;
|
|
173
231
|
/**
|
|
174
232
|
*
|
|
175
233
|
* @type {LimitsFieldsStarts}
|
|
@@ -177,21 +235,24 @@ export interface LimitsResponse {
|
|
|
177
235
|
*/
|
|
178
236
|
starts?: LimitsFieldsStarts;
|
|
179
237
|
/**
|
|
180
|
-
*
|
|
238
|
+
* Deprecated. Read `planIncluded.vmHoursRemaining` and `wallet.balanceDollars`.
|
|
181
239
|
* @type {number}
|
|
182
240
|
* @memberof LimitsResponse
|
|
241
|
+
* @deprecated
|
|
183
242
|
*/
|
|
184
243
|
creditBalanceHours?: number;
|
|
185
244
|
/**
|
|
186
|
-
*
|
|
245
|
+
* Deprecated. Read `wallet.balanceDollars`.
|
|
187
246
|
* @type {number}
|
|
188
247
|
* @memberof LimitsResponse
|
|
248
|
+
* @deprecated
|
|
189
249
|
*/
|
|
190
250
|
packBalanceHours?: number;
|
|
191
251
|
/**
|
|
192
|
-
*
|
|
252
|
+
* Deprecated. Read `wallet.balanceDollars`.
|
|
193
253
|
* @type {number}
|
|
194
254
|
* @memberof LimitsResponse
|
|
255
|
+
* @deprecated
|
|
195
256
|
*/
|
|
196
257
|
packBalanceDollars?: number;
|
|
197
258
|
/**
|
|
@@ -200,12 +261,6 @@ export interface LimitsResponse {
|
|
|
200
261
|
* @memberof LimitsResponse
|
|
201
262
|
*/
|
|
202
263
|
hasPaymentHistory?: boolean;
|
|
203
|
-
/**
|
|
204
|
-
*
|
|
205
|
-
* @type {{ [key: string]: any; }}
|
|
206
|
-
* @memberof LimitsResponse
|
|
207
|
-
*/
|
|
208
|
-
_package?: { [key: string]: any; };
|
|
209
264
|
/**
|
|
210
265
|
*
|
|
211
266
|
* @type {number}
|
|
@@ -219,15 +274,17 @@ export interface LimitsResponse {
|
|
|
219
274
|
*/
|
|
220
275
|
subscriptionRemainingSeconds?: number;
|
|
221
276
|
/**
|
|
222
|
-
*
|
|
277
|
+
* Deprecated. Read `wallet.balanceDollars`.
|
|
223
278
|
* @type {number}
|
|
224
279
|
* @memberof LimitsResponse
|
|
280
|
+
* @deprecated
|
|
225
281
|
*/
|
|
226
282
|
packBalanceSeconds?: number;
|
|
227
283
|
/**
|
|
228
|
-
*
|
|
284
|
+
* Deprecated.
|
|
229
285
|
* @type {number}
|
|
230
286
|
* @memberof LimitsResponse
|
|
287
|
+
* @deprecated
|
|
231
288
|
*/
|
|
232
289
|
creditPurchasedSeconds?: number;
|
|
233
290
|
/**
|
|
@@ -303,17 +360,23 @@ export interface LimitsResponse {
|
|
|
303
360
|
*/
|
|
304
361
|
hasSeatPlan?: boolean;
|
|
305
362
|
/**
|
|
306
|
-
* Machine time used in the last 24 hours, in seconds. Useful to estimate how long the
|
|
363
|
+
* Machine time used in the last 24 hours, in seconds. Useful to estimate how long the included time and the wallet last.
|
|
307
364
|
* @type {number}
|
|
308
365
|
* @memberof LimitsResponse
|
|
309
366
|
*/
|
|
310
367
|
last24hUsageSeconds?: number;
|
|
311
368
|
/**
|
|
312
|
-
* Lifetime
|
|
369
|
+
* Lifetime VM-time allowance for new sandboxes while the account has not paid, a plan trial included. Null once the account has paid.
|
|
313
370
|
* @type {number}
|
|
314
371
|
* @memberof LimitsResponse
|
|
315
372
|
*/
|
|
316
373
|
trialComputeCapSeconds?: number;
|
|
374
|
+
/**
|
|
375
|
+
* VM time already used against trialComputeCapSeconds. Null once the account has paid.
|
|
376
|
+
* @type {number}
|
|
377
|
+
* @memberof LimitsResponse
|
|
378
|
+
*/
|
|
379
|
+
trialComputeUsedSeconds?: number;
|
|
317
380
|
/**
|
|
318
381
|
* The trial limits in one readable line. Null on paid accounts.
|
|
319
382
|
* @type {string}
|
|
@@ -369,9 +432,10 @@ export interface LimitsResponse {
|
|
|
369
432
|
*/
|
|
370
433
|
subscriptionCurrentPeriodEnd?: Date;
|
|
371
434
|
/**
|
|
372
|
-
*
|
|
435
|
+
* Deprecated. Read `planIncluded.vmHoursRemaining` and `wallet.balanceDollars`.
|
|
373
436
|
* @type {number}
|
|
374
437
|
* @memberof LimitsResponse
|
|
438
|
+
* @deprecated
|
|
375
439
|
*/
|
|
376
440
|
creditBalanceSeconds?: number;
|
|
377
441
|
/**
|
|
@@ -429,12 +493,16 @@ export function LimitsResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
429
493
|
'maxCreationRequestsPerMinute': json['maxCreationRequestsPerMinute'] == null ? undefined : json['maxCreationRequestsPerMinute'],
|
|
430
494
|
'maxCreationRequestsPerDay': json['maxCreationRequestsPerDay'] == null ? undefined : json['maxCreationRequestsPerDay'],
|
|
431
495
|
'startLimits': json['startLimits'] == null ? undefined : LimitsFieldsStartLimitsFromJSON(json['startLimits']),
|
|
496
|
+
'wallet': json['wallet'] == null ? undefined : LimitsFieldsWalletFromJSON(json['wallet']),
|
|
497
|
+
'planIncluded': json['planIncluded'] == null ? undefined : LimitsFieldsPlanIncludedFromJSON(json['planIncluded']),
|
|
498
|
+
'overagePrices': json['overagePrices'] == null ? undefined : LimitsFieldsOveragePricesFromJSON(json['overagePrices']),
|
|
499
|
+
'nextStartDollars': json['nextStartDollars'] == null ? undefined : json['nextStartDollars'],
|
|
500
|
+
'startLimitsWithWallet': json['startLimitsWithWallet'] == null ? undefined : LimitsFieldsStartLimitsWithWalletFromJSON(json['startLimitsWithWallet']),
|
|
432
501
|
'starts': json['starts'] == null ? undefined : LimitsFieldsStartsFromJSON(json['starts']),
|
|
433
502
|
'creditBalanceHours': json['creditBalanceHours'] == null ? undefined : json['creditBalanceHours'],
|
|
434
503
|
'packBalanceHours': json['packBalanceHours'] == null ? undefined : json['packBalanceHours'],
|
|
435
504
|
'packBalanceDollars': json['packBalanceDollars'] == null ? undefined : json['packBalanceDollars'],
|
|
436
505
|
'hasPaymentHistory': json['hasPaymentHistory'] == null ? undefined : json['hasPaymentHistory'],
|
|
437
|
-
'_package': json['package'] == null ? undefined : json['package'],
|
|
438
506
|
'subscriptionQuotaSeconds': json['subscriptionQuotaSeconds'] == null ? undefined : json['subscriptionQuotaSeconds'],
|
|
439
507
|
'subscriptionRemainingSeconds': json['subscriptionRemainingSeconds'] == null ? undefined : json['subscriptionRemainingSeconds'],
|
|
440
508
|
'packBalanceSeconds': json['packBalanceSeconds'] == null ? undefined : json['packBalanceSeconds'],
|
|
@@ -453,6 +521,7 @@ export function LimitsResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
453
521
|
'hasSeatPlan': json['hasSeatPlan'] == null ? undefined : json['hasSeatPlan'],
|
|
454
522
|
'last24hUsageSeconds': json['last24hUsageSeconds'] == null ? undefined : json['last24hUsageSeconds'],
|
|
455
523
|
'trialComputeCapSeconds': json['trialComputeCapSeconds'] == null ? undefined : json['trialComputeCapSeconds'],
|
|
524
|
+
'trialComputeUsedSeconds': json['trialComputeUsedSeconds'] == null ? undefined : json['trialComputeUsedSeconds'],
|
|
456
525
|
'trialLine': json['trialLine'] == null ? undefined : json['trialLine'],
|
|
457
526
|
'machineTypes': json['machineTypes'] == null ? undefined : ((json['machineTypes'] as Array<any>).map(LimitsFieldsMachineTypesInnerFromJSON)),
|
|
458
527
|
'giftLimit': json['giftLimit'] == null ? undefined : LimitsFieldsGiftLimitFromJSON(json['giftLimit']),
|
|
@@ -497,12 +566,16 @@ export function LimitsResponseToJSONTyped(value?: LimitsResponse | null, ignoreD
|
|
|
497
566
|
'maxCreationRequestsPerMinute': value['maxCreationRequestsPerMinute'],
|
|
498
567
|
'maxCreationRequestsPerDay': value['maxCreationRequestsPerDay'],
|
|
499
568
|
'startLimits': LimitsFieldsStartLimitsToJSON(value['startLimits']),
|
|
569
|
+
'wallet': LimitsFieldsWalletToJSON(value['wallet']),
|
|
570
|
+
'planIncluded': LimitsFieldsPlanIncludedToJSON(value['planIncluded']),
|
|
571
|
+
'overagePrices': LimitsFieldsOveragePricesToJSON(value['overagePrices']),
|
|
572
|
+
'nextStartDollars': value['nextStartDollars'],
|
|
573
|
+
'startLimitsWithWallet': LimitsFieldsStartLimitsWithWalletToJSON(value['startLimitsWithWallet']),
|
|
500
574
|
'starts': LimitsFieldsStartsToJSON(value['starts']),
|
|
501
575
|
'creditBalanceHours': value['creditBalanceHours'],
|
|
502
576
|
'packBalanceHours': value['packBalanceHours'],
|
|
503
577
|
'packBalanceDollars': value['packBalanceDollars'],
|
|
504
578
|
'hasPaymentHistory': value['hasPaymentHistory'],
|
|
505
|
-
'package': value['_package'],
|
|
506
579
|
'subscriptionQuotaSeconds': value['subscriptionQuotaSeconds'],
|
|
507
580
|
'subscriptionRemainingSeconds': value['subscriptionRemainingSeconds'],
|
|
508
581
|
'packBalanceSeconds': value['packBalanceSeconds'],
|
|
@@ -521,6 +594,7 @@ export function LimitsResponseToJSONTyped(value?: LimitsResponse | null, ignoreD
|
|
|
521
594
|
'hasSeatPlan': value['hasSeatPlan'],
|
|
522
595
|
'last24hUsageSeconds': value['last24hUsageSeconds'],
|
|
523
596
|
'trialComputeCapSeconds': value['trialComputeCapSeconds'],
|
|
597
|
+
'trialComputeUsedSeconds': value['trialComputeUsedSeconds'],
|
|
524
598
|
'trialLine': value['trialLine'],
|
|
525
599
|
'machineTypes': value['machineTypes'] == null ? undefined : ((value['machineTypes'] as Array<any>).map(LimitsFieldsMachineTypesInnerToJSON)),
|
|
526
600
|
'giftLimit': LimitsFieldsGiftLimitToJSON(value['giftLimit']),
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
* What the request's wallet (your active organization, `?org=`, or personal) pays for named snapshots.
|
|
17
|
+
* What the request's wallet (your active organization, `?org=`, or personal) pays for named snapshots. The plan includes some; each one above costs $0.056 a day from the wallet. An organization's count includes every member's names billed to it.
|
|
18
18
|
* @export
|
|
19
19
|
* @interface NamedSnapshotAllowance
|
|
20
20
|
*/
|
|
@@ -56,17 +56,23 @@ export interface NamedSnapshotAllowance {
|
|
|
56
56
|
*/
|
|
57
57
|
extraMonthlyDollars?: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* What the wallet pays per day for the extra ones, in dollars.
|
|
60
60
|
* @type {number}
|
|
61
61
|
* @memberof NamedSnapshotAllowance
|
|
62
62
|
*/
|
|
63
63
|
extraDailyDollars?: number;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Price of one extra named snapshot for 30 days (1.68).
|
|
66
66
|
* @type {number}
|
|
67
67
|
* @memberof NamedSnapshotAllowance
|
|
68
68
|
*/
|
|
69
69
|
pricePerExtraMonthlyDollars?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Daily price of one extra named snapshot (0.056).
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof NamedSnapshotAllowance
|
|
74
|
+
*/
|
|
75
|
+
pricePerExtraDailyDollars?: number;
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
/**
|
|
@@ -94,6 +100,7 @@ export function NamedSnapshotAllowanceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
94
100
|
'extraMonthlyDollars': json['extraMonthlyDollars'] == null ? undefined : json['extraMonthlyDollars'],
|
|
95
101
|
'extraDailyDollars': json['extraDailyDollars'] == null ? undefined : json['extraDailyDollars'],
|
|
96
102
|
'pricePerExtraMonthlyDollars': json['pricePerExtraMonthlyDollars'] == null ? undefined : json['pricePerExtraMonthlyDollars'],
|
|
103
|
+
'pricePerExtraDailyDollars': json['pricePerExtraDailyDollars'] == null ? undefined : json['pricePerExtraDailyDollars'],
|
|
97
104
|
};
|
|
98
105
|
}
|
|
99
106
|
|
|
@@ -116,6 +123,7 @@ export function NamedSnapshotAllowanceToJSONTyped(value?: NamedSnapshotAllowance
|
|
|
116
123
|
'extraMonthlyDollars': value['extraMonthlyDollars'],
|
|
117
124
|
'extraDailyDollars': value['extraDailyDollars'],
|
|
118
125
|
'pricePerExtraMonthlyDollars': value['pricePerExtraMonthlyDollars'],
|
|
126
|
+
'pricePerExtraDailyDollars': value['pricePerExtraDailyDollars'],
|
|
119
127
|
};
|
|
120
128
|
}
|
|
121
129
|
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
* Which organization members can use this organization environment or profile. `restricted` false means every member. `restricted` true means owners, admins and `members` only. Others do not see it in lists. Personal environments and profiles always return `restricted` false.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ResourceAccess
|
|
20
|
+
*/
|
|
21
|
+
export interface ResourceAccess {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ResourceAccess
|
|
26
|
+
*/
|
|
27
|
+
restricted: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Member ids. Empty when `restricted` is false.
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof ResourceAccess
|
|
32
|
+
*/
|
|
33
|
+
members: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ResourceAccess interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfResourceAccess(value: object): value is ResourceAccess {
|
|
40
|
+
if (!('restricted' in value) || value['restricted'] === undefined) return false;
|
|
41
|
+
if (!('members' in value) || value['members'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ResourceAccessFromJSON(json: any): ResourceAccess {
|
|
46
|
+
return ResourceAccessFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ResourceAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceAccess {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'restricted': json['restricted'],
|
|
56
|
+
'members': json['members'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ResourceAccessToJSON(json: any): ResourceAccess {
|
|
61
|
+
return ResourceAccessToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ResourceAccessToJSONTyped(value?: ResourceAccess | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'restricted': value['restricted'],
|
|
72
|
+
'members': value['members'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
* Set who can use an organization environment (owner or admin) or profile (owner). A change does not touch running sandboxes. A bad list returns `400 invalid_access`.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ResourceAccessUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface ResourceAccessUpdate {
|
|
22
|
+
/**
|
|
23
|
+
* False opens it to every member. True limits it to owners, admins and `members`.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ResourceAccessUpdate
|
|
26
|
+
*/
|
|
27
|
+
restricted: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Member ids or emails of active members. Replaces the full list.
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof ResourceAccessUpdate
|
|
32
|
+
*/
|
|
33
|
+
members?: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ResourceAccessUpdate interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfResourceAccessUpdate(value: object): value is ResourceAccessUpdate {
|
|
40
|
+
if (!('restricted' in value) || value['restricted'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ResourceAccessUpdateFromJSON(json: any): ResourceAccessUpdate {
|
|
45
|
+
return ResourceAccessUpdateFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ResourceAccessUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceAccessUpdate {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'restricted': json['restricted'],
|
|
55
|
+
'members': json['members'] == null ? undefined : json['members'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ResourceAccessUpdateToJSON(json: any): ResourceAccessUpdate {
|
|
60
|
+
return ResourceAccessUpdateToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ResourceAccessUpdateToJSONTyped(value?: ResourceAccessUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'restricted': value['restricted'],
|
|
71
|
+
'members': value['members'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
package/src/models/Sandbox.ts
CHANGED
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
StopOperationToJSON,
|
|
28
28
|
StopOperationToJSONTyped,
|
|
29
29
|
} from './StopOperation';
|
|
30
|
+
import type { SandboxLastReboot } from './SandboxLastReboot';
|
|
31
|
+
import {
|
|
32
|
+
SandboxLastRebootFromJSON,
|
|
33
|
+
SandboxLastRebootFromJSONTyped,
|
|
34
|
+
SandboxLastRebootToJSON,
|
|
35
|
+
SandboxLastRebootToJSONTyped,
|
|
36
|
+
} from './SandboxLastReboot';
|
|
30
37
|
import type { SandboxCost } from './SandboxCost';
|
|
31
38
|
import {
|
|
32
39
|
SandboxCostFromJSON,
|
|
@@ -294,6 +301,12 @@ export interface Sandbox {
|
|
|
294
301
|
* @memberof Sandbox
|
|
295
302
|
*/
|
|
296
303
|
lastSnapshotStatus?: SandboxLastSnapshotStatusEnum | null;
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @type {SandboxLastReboot}
|
|
307
|
+
* @memberof Sandbox
|
|
308
|
+
*/
|
|
309
|
+
lastReboot?: SandboxLastReboot;
|
|
297
310
|
/**
|
|
298
311
|
* Outcome of the create-time `setupScript`: `pending` (stored, not yet started), `running` (executing on the sandbox in the background), `done` (exit code 0) or `failed` (non-zero exit, or the sandbox lost track of the process). Null when the sandbox was created without a setup script.
|
|
299
312
|
* @type {SandboxSetupStatusEnum}
|
|
@@ -480,6 +493,7 @@ export function SandboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): S
|
|
|
480
493
|
'subdomain': json['subdomain'] == null ? undefined : json['subdomain'],
|
|
481
494
|
'lastSnapshotAttemptAt': json['lastSnapshotAttemptAt'] == null ? undefined : (new Date(json['lastSnapshotAttemptAt'])),
|
|
482
495
|
'lastSnapshotStatus': json['lastSnapshotStatus'] == null ? undefined : json['lastSnapshotStatus'],
|
|
496
|
+
'lastReboot': json['lastReboot'] == null ? undefined : SandboxLastRebootFromJSON(json['lastReboot']),
|
|
483
497
|
'setupStatus': json['setupStatus'] == null ? undefined : json['setupStatus'],
|
|
484
498
|
'setupError': json['setupError'] == null ? undefined : json['setupError'],
|
|
485
499
|
'environment': json['environment'] == null ? undefined : json['environment'],
|
|
@@ -540,6 +554,7 @@ export function SandboxToJSONTyped(value?: Sandbox | null, ignoreDiscriminator:
|
|
|
540
554
|
'subdomain': value['subdomain'],
|
|
541
555
|
'lastSnapshotAttemptAt': value['lastSnapshotAttemptAt'] == null ? value['lastSnapshotAttemptAt'] : value['lastSnapshotAttemptAt'].toISOString(),
|
|
542
556
|
'lastSnapshotStatus': value['lastSnapshotStatus'],
|
|
557
|
+
'lastReboot': SandboxLastRebootToJSON(value['lastReboot']),
|
|
543
558
|
'setupStatus': value['setupStatus'],
|
|
544
559
|
'setupError': value['setupError'],
|
|
545
560
|
'environment': value['environment'],
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ResourceAccess } from './ResourceAccess';
|
|
17
|
+
import {
|
|
18
|
+
ResourceAccessFromJSON,
|
|
19
|
+
ResourceAccessFromJSONTyped,
|
|
20
|
+
ResourceAccessToJSON,
|
|
21
|
+
ResourceAccessToJSONTyped,
|
|
22
|
+
} from './ResourceAccess';
|
|
16
23
|
import type { SelectedRepository } from './SelectedRepository';
|
|
17
24
|
import {
|
|
18
25
|
SelectedRepositoryFromJSON,
|
|
@@ -119,6 +126,12 @@ export interface SandboxEnvironment {
|
|
|
119
126
|
* @memberof SandboxEnvironment
|
|
120
127
|
*/
|
|
121
128
|
proxyAiCredentials?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {ResourceAccess}
|
|
132
|
+
* @memberof SandboxEnvironment
|
|
133
|
+
*/
|
|
134
|
+
access?: ResourceAccess;
|
|
122
135
|
/**
|
|
123
136
|
* The latest version's .env-style content. Treat as sensitive.
|
|
124
137
|
* @type {string}
|
|
@@ -187,6 +200,7 @@ export function SandboxEnvironmentFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
187
200
|
'passAgentsCredentials': json['passAgentsCredentials'],
|
|
188
201
|
'credentialProfileId': json['credentialProfileId'] == null ? undefined : json['credentialProfileId'],
|
|
189
202
|
'proxyAiCredentials': json['proxyAiCredentials'] == null ? undefined : json['proxyAiCredentials'],
|
|
203
|
+
'access': json['access'] == null ? undefined : ResourceAccessFromJSON(json['access']),
|
|
190
204
|
'envContents': json['envContents'],
|
|
191
205
|
'secretFiles': ((json['secretFiles'] as Array<any>).map(SecretFileFromJSON)),
|
|
192
206
|
'selectedRepositories': json['selectedRepositories'] == null ? undefined : ((json['selectedRepositories'] as Array<any>).map(SelectedRepositoryFromJSON)),
|
|
@@ -218,6 +232,7 @@ export function SandboxEnvironmentToJSONTyped(value?: SandboxEnvironment | null,
|
|
|
218
232
|
'passAgentsCredentials': value['passAgentsCredentials'],
|
|
219
233
|
'credentialProfileId': value['credentialProfileId'],
|
|
220
234
|
'proxyAiCredentials': value['proxyAiCredentials'],
|
|
235
|
+
'access': ResourceAccessToJSON(value['access']),
|
|
221
236
|
'envContents': value['envContents'],
|
|
222
237
|
'secretFiles': ((value['secretFiles'] as Array<any>).map(SecretFileToJSON)),
|
|
223
238
|
'selectedRepositories': value['selectedRepositories'] == null ? undefined : ((value['selectedRepositories'] as Array<any>).map(SelectedRepositoryToJSON)),
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
* The last time the sandbox's kernel restarted on its machine, or null if it never did. Every process running at that time ended. `crash` means the system log ended with no shutdown, for example after a kernel panic.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SandboxLastReboot
|
|
20
|
+
*/
|
|
21
|
+
export interface SandboxLastReboot {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof SandboxLastReboot
|
|
26
|
+
*/
|
|
27
|
+
at?: Date;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {SandboxLastRebootReasonEnum}
|
|
31
|
+
* @memberof SandboxLastReboot
|
|
32
|
+
*/
|
|
33
|
+
reason?: SandboxLastRebootReasonEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const SandboxLastRebootReasonEnum = {
|
|
41
|
+
Crash: 'crash',
|
|
42
|
+
Clean: 'clean',
|
|
43
|
+
Unknown: 'unknown'
|
|
44
|
+
} as const;
|
|
45
|
+
export type SandboxLastRebootReasonEnum = typeof SandboxLastRebootReasonEnum[keyof typeof SandboxLastRebootReasonEnum];
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the SandboxLastReboot interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfSandboxLastReboot(value: object): value is SandboxLastReboot {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SandboxLastRebootFromJSON(json: any): SandboxLastReboot {
|
|
56
|
+
return SandboxLastRebootFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SandboxLastRebootFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxLastReboot {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'at': json['at'] == null ? undefined : (new Date(json['at'])),
|
|
66
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SandboxLastRebootToJSON(json: any): SandboxLastReboot {
|
|
71
|
+
return SandboxLastRebootToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function SandboxLastRebootToJSONTyped(value?: SandboxLastReboot | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'at': value['at'] == null ? value['at'] : value['at'].toISOString(),
|
|
82
|
+
'reason': value['reason'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
PageInfoToJSON,
|
|
21
21
|
PageInfoToJSONTyped,
|
|
22
22
|
} from './PageInfo';
|
|
23
|
+
import type { SandboxListResponseAllOfDeletedCost } from './SandboxListResponseAllOfDeletedCost';
|
|
24
|
+
import {
|
|
25
|
+
SandboxListResponseAllOfDeletedCostFromJSON,
|
|
26
|
+
SandboxListResponseAllOfDeletedCostFromJSONTyped,
|
|
27
|
+
SandboxListResponseAllOfDeletedCostToJSON,
|
|
28
|
+
SandboxListResponseAllOfDeletedCostToJSONTyped,
|
|
29
|
+
} from './SandboxListResponseAllOfDeletedCost';
|
|
23
30
|
import type { Sandbox } from './Sandbox';
|
|
24
31
|
import {
|
|
25
32
|
SandboxFromJSON,
|
|
@@ -58,6 +65,12 @@ export interface SandboxListResponse {
|
|
|
58
65
|
* @memberof SandboxListResponse
|
|
59
66
|
*/
|
|
60
67
|
pageInfo?: PageInfo;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {SandboxListResponseAllOfDeletedCost}
|
|
71
|
+
* @memberof SandboxListResponse
|
|
72
|
+
*/
|
|
73
|
+
deletedCost?: SandboxListResponseAllOfDeletedCost;
|
|
61
74
|
}
|
|
62
75
|
|
|
63
76
|
|
|
@@ -94,6 +107,7 @@ export function SandboxListResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
94
107
|
'type': json['type'],
|
|
95
108
|
'sandboxes': ((json['sandboxes'] as Array<any>).map(SandboxFromJSON)),
|
|
96
109
|
'pageInfo': json['pageInfo'] == null ? undefined : PageInfoFromJSON(json['pageInfo']),
|
|
110
|
+
'deletedCost': json['deletedCost'] == null ? undefined : SandboxListResponseAllOfDeletedCostFromJSON(json['deletedCost']),
|
|
97
111
|
};
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -112,6 +126,7 @@ export function SandboxListResponseToJSONTyped(value?: SandboxListResponse | nul
|
|
|
112
126
|
'type': value['type'],
|
|
113
127
|
'sandboxes': ((value['sandboxes'] as Array<any>).map(SandboxToJSON)),
|
|
114
128
|
'pageInfo': PageInfoToJSON(value['pageInfo']),
|
|
129
|
+
'deletedCost': SandboxListResponseAllOfDeletedCostToJSON(value['deletedCost']),
|
|
115
130
|
};
|
|
116
131
|
}
|
|
117
132
|
|