@boatdev/sdk 1.10.0 → 1.11.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 +22 -0
- package/dist/apis/BoatApi.d.ts +92 -12
- package/dist/apis/BoatApi.js +196 -15
- package/dist/esm/apis/BoatApi.d.ts +92 -12
- package/dist/esm/apis/BoatApi.js +196 -15
- package/dist/esm/models/CreateSandboxRequest.d.ts +3 -3
- 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/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 +81 -0
- package/dist/esm/models/SavedSnapshotAllowance.js +57 -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 +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/CreateSandboxRequest.d.ts +3 -3
- 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/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 +81 -0
- package/dist/models/SavedSnapshotAllowance.js +64 -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 +11 -0
- package/dist/models/index.js +11 -0
- package/docs/BoatApi.md +307 -15
- package/docs/CredentialProfile.md +2 -0
- 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 +49 -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 +277 -15
- package/src/models/CreateSandboxRequest.ts +3 -3
- package/src/models/CredentialId.ts +3 -0
- package/src/models/CredentialProfile.ts +15 -0
- package/src/models/DeletionOperation.ts +1 -1
- 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 +130 -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 +11 -0
|
@@ -0,0 +1,59 @@
|
|
|
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 { SavedSnapshot } from './SavedSnapshot';
|
|
13
|
+
import type { SavedSnapshotAllowance } from './SavedSnapshotAllowance';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SavedSnapshotListResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface SavedSnapshotListResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof SavedSnapshotListResponse
|
|
24
|
+
*/
|
|
25
|
+
ok: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {SavedSnapshotListResponseTypeEnum}
|
|
29
|
+
* @memberof SavedSnapshotListResponse
|
|
30
|
+
*/
|
|
31
|
+
type: SavedSnapshotListResponseTypeEnum;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<SavedSnapshot>}
|
|
35
|
+
* @memberof SavedSnapshotListResponse
|
|
36
|
+
*/
|
|
37
|
+
snapshots: Array<SavedSnapshot>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {SavedSnapshotAllowance}
|
|
41
|
+
* @memberof SavedSnapshotListResponse
|
|
42
|
+
*/
|
|
43
|
+
allowance?: SavedSnapshotAllowance;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const SavedSnapshotListResponseTypeEnum: {
|
|
49
|
+
readonly SnapshotSavedList: 'snapshot.saved.list';
|
|
50
|
+
};
|
|
51
|
+
export type SavedSnapshotListResponseTypeEnum = typeof SavedSnapshotListResponseTypeEnum[keyof typeof SavedSnapshotListResponseTypeEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the SavedSnapshotListResponse interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfSavedSnapshotListResponse(value: object): value is SavedSnapshotListResponse;
|
|
56
|
+
export declare function SavedSnapshotListResponseFromJSON(json: any): SavedSnapshotListResponse;
|
|
57
|
+
export declare function SavedSnapshotListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavedSnapshotListResponse;
|
|
58
|
+
export declare function SavedSnapshotListResponseToJSON(json: any): SavedSnapshotListResponse;
|
|
59
|
+
export declare function SavedSnapshotListResponseToJSONTyped(value?: SavedSnapshotListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Boat Public API v1
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SavedSnapshotListResponseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfSavedSnapshotListResponse = instanceOfSavedSnapshotListResponse;
|
|
18
|
+
exports.SavedSnapshotListResponseFromJSON = SavedSnapshotListResponseFromJSON;
|
|
19
|
+
exports.SavedSnapshotListResponseFromJSONTyped = SavedSnapshotListResponseFromJSONTyped;
|
|
20
|
+
exports.SavedSnapshotListResponseToJSON = SavedSnapshotListResponseToJSON;
|
|
21
|
+
exports.SavedSnapshotListResponseToJSONTyped = SavedSnapshotListResponseToJSONTyped;
|
|
22
|
+
const SavedSnapshot_1 = require("./SavedSnapshot");
|
|
23
|
+
const SavedSnapshotAllowance_1 = require("./SavedSnapshotAllowance");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.SavedSnapshotListResponseTypeEnum = {
|
|
28
|
+
SnapshotSavedList: 'snapshot.saved.list'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SavedSnapshotListResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfSavedSnapshotListResponse(value) {
|
|
34
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('snapshots' in value) || value['snapshots'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function SavedSnapshotListResponseFromJSON(json) {
|
|
43
|
+
return SavedSnapshotListResponseFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SavedSnapshotListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'ok': json['ok'],
|
|
51
|
+
'type': json['type'],
|
|
52
|
+
'snapshots': (json['snapshots'].map(SavedSnapshot_1.SavedSnapshotFromJSON)),
|
|
53
|
+
'allowance': json['allowance'] == null ? undefined : (0, SavedSnapshotAllowance_1.SavedSnapshotAllowanceFromJSON)(json['allowance']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function SavedSnapshotListResponseToJSON(json) {
|
|
57
|
+
return SavedSnapshotListResponseToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function SavedSnapshotListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'ok': value['ok'],
|
|
65
|
+
'type': value['type'],
|
|
66
|
+
'snapshots': (value['snapshots'].map(SavedSnapshot_1.SavedSnapshotToJSON)),
|
|
67
|
+
'allowance': (0, SavedSnapshotAllowance_1.SavedSnapshotAllowanceToJSON)(value['allowance']),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SavedSnapshotSaveRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SavedSnapshotSaveRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The sandbox whose current state to freeze.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SavedSnapshotSaveRequest
|
|
22
|
+
*/
|
|
23
|
+
sandboxId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name to save under. 1-63 lowercase letters, digits, or dashes, starting with a letter or digit. Reusing one of your existing names replaces that snapshot's artifact. `latest`, `tree`, `pull`, `rm`, `save`, `current`, `self`, and `new` are reserved.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SavedSnapshotSaveRequest
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SavedSnapshotSaveRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSavedSnapshotSaveRequest(value: object): value is SavedSnapshotSaveRequest;
|
|
35
|
+
export declare function SavedSnapshotSaveRequestFromJSON(json: any): SavedSnapshotSaveRequest;
|
|
36
|
+
export declare function SavedSnapshotSaveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavedSnapshotSaveRequest;
|
|
37
|
+
export declare function SavedSnapshotSaveRequestToJSON(json: any): SavedSnapshotSaveRequest;
|
|
38
|
+
export declare function SavedSnapshotSaveRequestToJSONTyped(value?: SavedSnapshotSaveRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Boat Public API v1
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSavedSnapshotSaveRequest = instanceOfSavedSnapshotSaveRequest;
|
|
17
|
+
exports.SavedSnapshotSaveRequestFromJSON = SavedSnapshotSaveRequestFromJSON;
|
|
18
|
+
exports.SavedSnapshotSaveRequestFromJSONTyped = SavedSnapshotSaveRequestFromJSONTyped;
|
|
19
|
+
exports.SavedSnapshotSaveRequestToJSON = SavedSnapshotSaveRequestToJSON;
|
|
20
|
+
exports.SavedSnapshotSaveRequestToJSONTyped = SavedSnapshotSaveRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SavedSnapshotSaveRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSavedSnapshotSaveRequest(value) {
|
|
25
|
+
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function SavedSnapshotSaveRequestFromJSON(json) {
|
|
32
|
+
return SavedSnapshotSaveRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function SavedSnapshotSaveRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'sandboxId': json['sandboxId'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function SavedSnapshotSaveRequestToJSON(json) {
|
|
44
|
+
return SavedSnapshotSaveRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SavedSnapshotSaveRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'sandboxId': value['sandboxId'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { SavedSnapshot } from './SavedSnapshot';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SavedSnapshotSavingResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SavedSnapshotSavingResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof SavedSnapshotSavingResponse
|
|
23
|
+
*/
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SavedSnapshotSavingResponseTypeEnum}
|
|
28
|
+
* @memberof SavedSnapshotSavingResponse
|
|
29
|
+
*/
|
|
30
|
+
type: SavedSnapshotSavingResponseTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {SavedSnapshotSavingResponseStatusEnum}
|
|
34
|
+
* @memberof SavedSnapshotSavingResponse
|
|
35
|
+
*/
|
|
36
|
+
status: SavedSnapshotSavingResponseStatusEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {SavedSnapshot}
|
|
40
|
+
* @memberof SavedSnapshotSavingResponse
|
|
41
|
+
*/
|
|
42
|
+
snapshot: SavedSnapshot;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const SavedSnapshotSavingResponseTypeEnum: {
|
|
48
|
+
readonly SnapshotSavedSaving: 'snapshot.saved.saving';
|
|
49
|
+
};
|
|
50
|
+
export type SavedSnapshotSavingResponseTypeEnum = typeof SavedSnapshotSavingResponseTypeEnum[keyof typeof SavedSnapshotSavingResponseTypeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const SavedSnapshotSavingResponseStatusEnum: {
|
|
55
|
+
readonly Saving: 'saving';
|
|
56
|
+
};
|
|
57
|
+
export type SavedSnapshotSavingResponseStatusEnum = typeof SavedSnapshotSavingResponseStatusEnum[keyof typeof SavedSnapshotSavingResponseStatusEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the SavedSnapshotSavingResponse interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfSavedSnapshotSavingResponse(value: object): value is SavedSnapshotSavingResponse;
|
|
62
|
+
export declare function SavedSnapshotSavingResponseFromJSON(json: any): SavedSnapshotSavingResponse;
|
|
63
|
+
export declare function SavedSnapshotSavingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavedSnapshotSavingResponse;
|
|
64
|
+
export declare function SavedSnapshotSavingResponseToJSON(json: any): SavedSnapshotSavingResponse;
|
|
65
|
+
export declare function SavedSnapshotSavingResponseToJSONTyped(value?: SavedSnapshotSavingResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Boat Public API v1
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SavedSnapshotSavingResponseStatusEnum = exports.SavedSnapshotSavingResponseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfSavedSnapshotSavingResponse = instanceOfSavedSnapshotSavingResponse;
|
|
18
|
+
exports.SavedSnapshotSavingResponseFromJSON = SavedSnapshotSavingResponseFromJSON;
|
|
19
|
+
exports.SavedSnapshotSavingResponseFromJSONTyped = SavedSnapshotSavingResponseFromJSONTyped;
|
|
20
|
+
exports.SavedSnapshotSavingResponseToJSON = SavedSnapshotSavingResponseToJSON;
|
|
21
|
+
exports.SavedSnapshotSavingResponseToJSONTyped = SavedSnapshotSavingResponseToJSONTyped;
|
|
22
|
+
const SavedSnapshot_1 = require("./SavedSnapshot");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SavedSnapshotSavingResponseTypeEnum = {
|
|
27
|
+
SnapshotSavedSaving: 'snapshot.saved.saving'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.SavedSnapshotSavingResponseStatusEnum = {
|
|
33
|
+
Saving: 'saving'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the SavedSnapshotSavingResponse interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfSavedSnapshotSavingResponse(value) {
|
|
39
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('snapshot' in value) || value['snapshot'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function SavedSnapshotSavingResponseFromJSON(json) {
|
|
50
|
+
return SavedSnapshotSavingResponseFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function SavedSnapshotSavingResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'ok': json['ok'],
|
|
58
|
+
'type': json['type'],
|
|
59
|
+
'status': json['status'],
|
|
60
|
+
'snapshot': (0, SavedSnapshot_1.SavedSnapshotFromJSON)(json['snapshot']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function SavedSnapshotSavingResponseToJSON(json) {
|
|
64
|
+
return SavedSnapshotSavingResponseToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function SavedSnapshotSavingResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'ok': value['ok'],
|
|
72
|
+
'type': value['type'],
|
|
73
|
+
'status': value['status'],
|
|
74
|
+
'snapshot': (0, SavedSnapshot_1.SavedSnapshotToJSON)(value['snapshot']),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -88,7 +88,7 @@ export interface SnapshotSummary {
|
|
|
88
88
|
*/
|
|
89
89
|
contentFileCount?: number | null;
|
|
90
90
|
/**
|
|
91
|
-
* `template` = this Sandbox has snapshots off, so Boat never captures it: the row is a copy of the template,
|
|
91
|
+
* `template` = this Sandbox has snapshots off, so Boat never captures it: the row is a copy of the template, saved snapshot or Sandbox it was created from. `captured` = this Sandbox has snapshots on: its own captures, plus the copies Boat makes when the Sandbox is created from a source, forked or resumed.
|
|
92
92
|
* @type {SnapshotSummaryOriginEnum}
|
|
93
93
|
* @memberof SnapshotSummary
|
|
94
94
|
*/
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ResourceAccessUpdate } from './ResourceAccessUpdate';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface UpdateCredentialProfileRequest {
|
|
|
27
28
|
* @memberof UpdateCredentialProfileRequest
|
|
28
29
|
*/
|
|
29
30
|
isDefault?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Organization profiles only. Organization owner only.
|
|
33
|
+
* @type {ResourceAccessUpdate}
|
|
34
|
+
* @memberof UpdateCredentialProfileRequest
|
|
35
|
+
*/
|
|
36
|
+
access?: ResourceAccessUpdate;
|
|
30
37
|
}
|
|
31
38
|
/**
|
|
32
39
|
* Check if a given object implements the UpdateCredentialProfileRequest interface.
|
|
@@ -18,6 +18,7 @@ exports.UpdateCredentialProfileRequestFromJSON = UpdateCredentialProfileRequestF
|
|
|
18
18
|
exports.UpdateCredentialProfileRequestFromJSONTyped = UpdateCredentialProfileRequestFromJSONTyped;
|
|
19
19
|
exports.UpdateCredentialProfileRequestToJSON = UpdateCredentialProfileRequestToJSON;
|
|
20
20
|
exports.UpdateCredentialProfileRequestToJSONTyped = UpdateCredentialProfileRequestToJSONTyped;
|
|
21
|
+
const ResourceAccessUpdate_1 = require("./ResourceAccessUpdate");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the UpdateCredentialProfileRequest interface.
|
|
23
24
|
*/
|
|
@@ -34,6 +35,7 @@ function UpdateCredentialProfileRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
34
35
|
return {
|
|
35
36
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
37
|
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
38
|
+
'access': json['access'] == null ? undefined : (0, ResourceAccessUpdate_1.ResourceAccessUpdateFromJSON)(json['access']),
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
function UpdateCredentialProfileRequestToJSON(json) {
|
|
@@ -46,5 +48,6 @@ function UpdateCredentialProfileRequestToJSONTyped(value, ignoreDiscriminator =
|
|
|
46
48
|
return {
|
|
47
49
|
'name': value['name'],
|
|
48
50
|
'isDefault': value['isDefault'],
|
|
51
|
+
'access': (0, ResourceAccessUpdate_1.ResourceAccessUpdateToJSON)(value['access']),
|
|
49
52
|
};
|
|
50
53
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { UpdateSandboxEnvironmentRequestRepositoriesInner } from './UpdateSandboxEnvironmentRequestRepositoriesInner';
|
|
13
|
+
import type { ResourceAccessUpdate } from './ResourceAccessUpdate';
|
|
13
14
|
import type { SecretFile } from './SecretFile';
|
|
14
15
|
/**
|
|
15
16
|
* Rename, set-default, and/or edit flags and contents. Any flag or content change mints a new immutable version; existing sandboxes are not touched until you call upgrade.
|
|
@@ -71,6 +72,12 @@ export interface UpdateSandboxEnvironmentRequest {
|
|
|
71
72
|
* @memberof UpdateSandboxEnvironmentRequest
|
|
72
73
|
*/
|
|
73
74
|
proxyAiCredentials?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {ResourceAccessUpdate}
|
|
78
|
+
* @memberof UpdateSandboxEnvironmentRequest
|
|
79
|
+
*/
|
|
80
|
+
access?: ResourceAccessUpdate;
|
|
74
81
|
/**
|
|
75
82
|
* Full .env-style content for the new version.
|
|
76
83
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.UpdateSandboxEnvironmentRequestFromJSONTyped = UpdateSandboxEnvironmentR
|
|
|
19
19
|
exports.UpdateSandboxEnvironmentRequestToJSON = UpdateSandboxEnvironmentRequestToJSON;
|
|
20
20
|
exports.UpdateSandboxEnvironmentRequestToJSONTyped = UpdateSandboxEnvironmentRequestToJSONTyped;
|
|
21
21
|
const UpdateSandboxEnvironmentRequestRepositoriesInner_1 = require("./UpdateSandboxEnvironmentRequestRepositoriesInner");
|
|
22
|
+
const ResourceAccessUpdate_1 = require("./ResourceAccessUpdate");
|
|
22
23
|
const SecretFile_1 = require("./SecretFile");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the UpdateSandboxEnvironmentRequest interface.
|
|
@@ -43,6 +44,7 @@ function UpdateSandboxEnvironmentRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
43
44
|
'passAgentsCredentials': json['passAgentsCredentials'] == null ? undefined : json['passAgentsCredentials'],
|
|
44
45
|
'credentialProfileId': json['credentialProfileId'] == null ? undefined : json['credentialProfileId'],
|
|
45
46
|
'proxyAiCredentials': json['proxyAiCredentials'] == null ? undefined : json['proxyAiCredentials'],
|
|
47
|
+
'access': json['access'] == null ? undefined : (0, ResourceAccessUpdate_1.ResourceAccessUpdateFromJSON)(json['access']),
|
|
46
48
|
'envContents': json['envContents'] == null ? undefined : json['envContents'],
|
|
47
49
|
'secretFiles': json['secretFiles'] == null ? undefined : (json['secretFiles'].map(SecretFile_1.SecretFileFromJSON)),
|
|
48
50
|
'repositories': json['repositories'] == null ? undefined : (json['repositories'].map(UpdateSandboxEnvironmentRequestRepositoriesInner_1.UpdateSandboxEnvironmentRequestRepositoriesInnerFromJSON)),
|
|
@@ -65,6 +67,7 @@ function UpdateSandboxEnvironmentRequestToJSONTyped(value, ignoreDiscriminator =
|
|
|
65
67
|
'passAgentsCredentials': value['passAgentsCredentials'],
|
|
66
68
|
'credentialProfileId': value['credentialProfileId'],
|
|
67
69
|
'proxyAiCredentials': value['proxyAiCredentials'],
|
|
70
|
+
'access': (0, ResourceAccessUpdate_1.ResourceAccessUpdateToJSON)(value['access']),
|
|
68
71
|
'envContents': value['envContents'],
|
|
69
72
|
'secretFiles': value['secretFiles'] == null ? undefined : (value['secretFiles'].map(SecretFile_1.SecretFileToJSON)),
|
|
70
73
|
'repositories': value['repositories'] == null ? undefined : (value['repositories'].map(UpdateSandboxEnvironmentRequestRepositoriesInner_1.UpdateSandboxEnvironmentRequestRepositoriesInnerToJSON)),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -108,6 +108,8 @@ export * from './RepoSelectionResponse';
|
|
|
108
108
|
export * from './ReposResponse';
|
|
109
109
|
export * from './Repository';
|
|
110
110
|
export * from './RepositoryInstallation';
|
|
111
|
+
export * from './ResourceAccess';
|
|
112
|
+
export * from './ResourceAccessUpdate';
|
|
111
113
|
export * from './ResponseEvent';
|
|
112
114
|
export * from './ResponseEventData';
|
|
113
115
|
export * from './ResumeRequest';
|
|
@@ -125,10 +127,19 @@ export * from './SandboxEnvironmentVersionSummary';
|
|
|
125
127
|
export * from './SandboxEvent';
|
|
126
128
|
export * from './SandboxHydration';
|
|
127
129
|
export * from './SandboxInfoResponse';
|
|
130
|
+
export * from './SandboxLastReboot';
|
|
128
131
|
export * from './SandboxListResponse';
|
|
132
|
+
export * from './SandboxListResponseAllOfDeletedCost';
|
|
129
133
|
export * from './SandboxProcess';
|
|
130
134
|
export * from './SandboxTeam';
|
|
131
135
|
export * from './SandboxUsageResponse';
|
|
136
|
+
export * from './SavedSnapshot';
|
|
137
|
+
export * from './SavedSnapshotAllowance';
|
|
138
|
+
export * from './SavedSnapshotDeletedResponse';
|
|
139
|
+
export * from './SavedSnapshotInfoResponse';
|
|
140
|
+
export * from './SavedSnapshotListResponse';
|
|
141
|
+
export * from './SavedSnapshotSaveRequest';
|
|
142
|
+
export * from './SavedSnapshotSavingResponse';
|
|
132
143
|
export * from './SecretFile';
|
|
133
144
|
export * from './SecretsResponse';
|
|
134
145
|
export * from './SecretsUpdateRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -126,6 +126,8 @@ __exportStar(require("./RepoSelectionResponse"), exports);
|
|
|
126
126
|
__exportStar(require("./ReposResponse"), exports);
|
|
127
127
|
__exportStar(require("./Repository"), exports);
|
|
128
128
|
__exportStar(require("./RepositoryInstallation"), exports);
|
|
129
|
+
__exportStar(require("./ResourceAccess"), exports);
|
|
130
|
+
__exportStar(require("./ResourceAccessUpdate"), exports);
|
|
129
131
|
__exportStar(require("./ResponseEvent"), exports);
|
|
130
132
|
__exportStar(require("./ResponseEventData"), exports);
|
|
131
133
|
__exportStar(require("./ResumeRequest"), exports);
|
|
@@ -143,10 +145,19 @@ __exportStar(require("./SandboxEnvironmentVersionSummary"), exports);
|
|
|
143
145
|
__exportStar(require("./SandboxEvent"), exports);
|
|
144
146
|
__exportStar(require("./SandboxHydration"), exports);
|
|
145
147
|
__exportStar(require("./SandboxInfoResponse"), exports);
|
|
148
|
+
__exportStar(require("./SandboxLastReboot"), exports);
|
|
146
149
|
__exportStar(require("./SandboxListResponse"), exports);
|
|
150
|
+
__exportStar(require("./SandboxListResponseAllOfDeletedCost"), exports);
|
|
147
151
|
__exportStar(require("./SandboxProcess"), exports);
|
|
148
152
|
__exportStar(require("./SandboxTeam"), exports);
|
|
149
153
|
__exportStar(require("./SandboxUsageResponse"), exports);
|
|
154
|
+
__exportStar(require("./SavedSnapshot"), exports);
|
|
155
|
+
__exportStar(require("./SavedSnapshotAllowance"), exports);
|
|
156
|
+
__exportStar(require("./SavedSnapshotDeletedResponse"), exports);
|
|
157
|
+
__exportStar(require("./SavedSnapshotInfoResponse"), exports);
|
|
158
|
+
__exportStar(require("./SavedSnapshotListResponse"), exports);
|
|
159
|
+
__exportStar(require("./SavedSnapshotSaveRequest"), exports);
|
|
160
|
+
__exportStar(require("./SavedSnapshotSavingResponse"), exports);
|
|
150
161
|
__exportStar(require("./SecretFile"), exports);
|
|
151
162
|
__exportStar(require("./SecretsResponse"), exports);
|
|
152
163
|
__exportStar(require("./SecretsUpdateRequest"), exports);
|