@boatdev/sdk 1.7.0 → 1.9.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 +12 -0
- package/dist/apis/BoatApi.d.ts +102 -4
- package/dist/apis/BoatApi.js +233 -4
- package/dist/esm/apis/BoatApi.d.ts +102 -4
- package/dist/esm/apis/BoatApi.js +233 -4
- package/dist/esm/http2-fetch.d.ts +1 -0
- package/dist/esm/http2-fetch.js +203 -0
- package/dist/esm/models/CreateSandboxRequest.d.ts +4 -3
- package/dist/esm/models/CreateSandboxRequest.js +2 -1
- package/dist/esm/models/ForkRequest.d.ts +2 -1
- package/dist/esm/models/ForkRequest.js +2 -1
- package/dist/esm/models/NamedSnapshotShare.d.ts +76 -0
- package/dist/esm/models/NamedSnapshotShare.js +74 -0
- package/dist/esm/models/NamedSnapshotShareCreatedResponse.d.ts +64 -0
- package/dist/esm/models/NamedSnapshotShareCreatedResponse.js +66 -0
- package/dist/esm/models/NamedSnapshotShareListResponse.d.ts +58 -0
- package/dist/esm/models/NamedSnapshotShareListResponse.js +62 -0
- package/dist/esm/models/NamedSnapshotShareRevokedResponse.d.ts +58 -0
- package/dist/esm/models/NamedSnapshotShareRevokedResponse.js +62 -0
- package/dist/esm/models/Recover200Response.d.ts +57 -0
- package/dist/esm/models/Recover200Response.js +53 -0
- package/dist/esm/models/ResumeRequest.d.ts +2 -1
- package/dist/esm/models/ResumeRequest.js +2 -1
- package/dist/esm/models/Sandbox.d.ts +2 -1
- package/dist/esm/models/Sandbox.js +2 -1
- package/dist/esm/models/SandboxUsageResponse.d.ts +2 -1
- package/dist/esm/models/SandboxUsageResponse.js +2 -1
- package/dist/esm/models/StopOperation.d.ts +1 -1
- package/dist/esm/models/StopOperationResponse.d.ts +58 -0
- package/dist/esm/models/StopOperationResponse.js +62 -0
- package/dist/esm/models/StopRequest.d.ts +1 -1
- package/dist/esm/models/UpdateSandboxRequest.d.ts +1 -1
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/runtime.js +2 -1
- package/dist/http2-fetch.d.ts +1 -0
- package/dist/http2-fetch.js +239 -0
- package/dist/models/CreateSandboxRequest.d.ts +4 -3
- package/dist/models/CreateSandboxRequest.js +2 -1
- package/dist/models/ForkRequest.d.ts +2 -1
- package/dist/models/ForkRequest.js +2 -1
- package/dist/models/NamedSnapshotShare.d.ts +76 -0
- package/dist/models/NamedSnapshotShare.js +82 -0
- package/dist/models/NamedSnapshotShareCreatedResponse.d.ts +64 -0
- package/dist/models/NamedSnapshotShareCreatedResponse.js +74 -0
- package/dist/models/NamedSnapshotShareListResponse.d.ts +58 -0
- package/dist/models/NamedSnapshotShareListResponse.js +70 -0
- package/dist/models/NamedSnapshotShareRevokedResponse.d.ts +58 -0
- package/dist/models/NamedSnapshotShareRevokedResponse.js +70 -0
- package/dist/models/Recover200Response.d.ts +57 -0
- package/dist/models/Recover200Response.js +61 -0
- package/dist/models/ResumeRequest.d.ts +2 -1
- package/dist/models/ResumeRequest.js +2 -1
- package/dist/models/Sandbox.d.ts +2 -1
- package/dist/models/Sandbox.js +2 -1
- package/dist/models/SandboxUsageResponse.d.ts +2 -1
- package/dist/models/SandboxUsageResponse.js +2 -1
- package/dist/models/StopOperation.d.ts +1 -1
- package/dist/models/StopOperationResponse.d.ts +58 -0
- package/dist/models/StopOperationResponse.js +70 -0
- package/dist/models/StopRequest.d.ts +1 -1
- package/dist/models/UpdateSandboxRequest.d.ts +1 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/runtime.js +9 -8
- package/docs/BoatApi.md +385 -2
- package/docs/NamedSnapshotShare.md +45 -0
- package/docs/NamedSnapshotShareCreatedResponse.md +40 -0
- package/docs/NamedSnapshotShareListResponse.md +38 -0
- package/docs/NamedSnapshotShareRevokedResponse.md +38 -0
- package/docs/Recover200Response.md +38 -0
- package/docs/StopOperationResponse.md +38 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +348 -4
- package/src/http2-fetch.ts +179 -0
- package/src/models/CreateSandboxRequest.ts +5 -4
- package/src/models/ForkRequest.ts +3 -2
- package/src/models/NamedSnapshotShare.ts +131 -0
- package/src/models/NamedSnapshotShareCreatedResponse.ts +120 -0
- package/src/models/NamedSnapshotShareListResponse.ts +111 -0
- package/src/models/NamedSnapshotShareRevokedResponse.ts +111 -0
- package/src/models/Recover200Response.ts +99 -0
- package/src/models/ResumeRequest.ts +3 -2
- package/src/models/Sandbox.ts +3 -2
- package/src/models/SandboxUsageResponse.ts +3 -2
- package/src/models/StopOperation.ts +1 -1
- package/src/models/StopOperationResponse.ts +111 -0
- package/src/models/StopRequest.ts +1 -1
- package/src/models/UpdateSandboxRequest.ts +1 -1
- package/src/models/index.ts +6 -0
- package/src/runtime.ts +2 -1
|
@@ -0,0 +1,82 @@
|
|
|
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.NamedSnapshotShareStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfNamedSnapshotShare = instanceOfNamedSnapshotShare;
|
|
18
|
+
exports.NamedSnapshotShareFromJSON = NamedSnapshotShareFromJSON;
|
|
19
|
+
exports.NamedSnapshotShareFromJSONTyped = NamedSnapshotShareFromJSONTyped;
|
|
20
|
+
exports.NamedSnapshotShareToJSON = NamedSnapshotShareToJSON;
|
|
21
|
+
exports.NamedSnapshotShareToJSONTyped = NamedSnapshotShareToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.NamedSnapshotShareStatusEnum = {
|
|
26
|
+
Active: 'active',
|
|
27
|
+
Revoked: 'revoked'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the NamedSnapshotShare interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfNamedSnapshotShare(value) {
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('codePrefix' in value) || value['codePrefix'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('useCount' in value) || value['useCount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('revokedAt' in value) || value['revokedAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function NamedSnapshotShareFromJSON(json) {
|
|
50
|
+
return NamedSnapshotShareFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function NamedSnapshotShareFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'codePrefix': json['codePrefix'],
|
|
59
|
+
'status': json['status'],
|
|
60
|
+
'useCount': json['useCount'],
|
|
61
|
+
'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
|
|
62
|
+
'revokedAt': (json['revokedAt'] == null ? null : new Date(json['revokedAt'])),
|
|
63
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function NamedSnapshotShareToJSON(json) {
|
|
67
|
+
return NamedSnapshotShareToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function NamedSnapshotShareToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'codePrefix': value['codePrefix'],
|
|
76
|
+
'status': value['status'],
|
|
77
|
+
'useCount': value['useCount'],
|
|
78
|
+
'lastUsedAt': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
|
|
79
|
+
'revokedAt': value['revokedAt'] == null ? value['revokedAt'] : value['revokedAt'].toISOString(),
|
|
80
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { NamedSnapshotShare } from './NamedSnapshotShare';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface NamedSnapshotShareCreatedResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface NamedSnapshotShareCreatedResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof NamedSnapshotShareCreatedResponse
|
|
23
|
+
*/
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {NamedSnapshotShareCreatedResponseTypeEnum}
|
|
28
|
+
* @memberof NamedSnapshotShareCreatedResponse
|
|
29
|
+
*/
|
|
30
|
+
type: NamedSnapshotShareCreatedResponseTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* The named snapshot the code deploys.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof NamedSnapshotShareCreatedResponse
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* The share code, for example `bsh_...`. Boat shows it only in this response. Store it now; you cannot get it again.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof NamedSnapshotShareCreatedResponse
|
|
41
|
+
*/
|
|
42
|
+
shareCode: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {NamedSnapshotShare}
|
|
46
|
+
* @memberof NamedSnapshotShareCreatedResponse
|
|
47
|
+
*/
|
|
48
|
+
share: NamedSnapshotShare;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const NamedSnapshotShareCreatedResponseTypeEnum: {
|
|
54
|
+
readonly SnapshotShareCreated: 'snapshot.share.created';
|
|
55
|
+
};
|
|
56
|
+
export type NamedSnapshotShareCreatedResponseTypeEnum = typeof NamedSnapshotShareCreatedResponseTypeEnum[keyof typeof NamedSnapshotShareCreatedResponseTypeEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the NamedSnapshotShareCreatedResponse interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfNamedSnapshotShareCreatedResponse(value: object): value is NamedSnapshotShareCreatedResponse;
|
|
61
|
+
export declare function NamedSnapshotShareCreatedResponseFromJSON(json: any): NamedSnapshotShareCreatedResponse;
|
|
62
|
+
export declare function NamedSnapshotShareCreatedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareCreatedResponse;
|
|
63
|
+
export declare function NamedSnapshotShareCreatedResponseToJSON(json: any): NamedSnapshotShareCreatedResponse;
|
|
64
|
+
export declare function NamedSnapshotShareCreatedResponseToJSONTyped(value?: NamedSnapshotShareCreatedResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.NamedSnapshotShareCreatedResponseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfNamedSnapshotShareCreatedResponse = instanceOfNamedSnapshotShareCreatedResponse;
|
|
18
|
+
exports.NamedSnapshotShareCreatedResponseFromJSON = NamedSnapshotShareCreatedResponseFromJSON;
|
|
19
|
+
exports.NamedSnapshotShareCreatedResponseFromJSONTyped = NamedSnapshotShareCreatedResponseFromJSONTyped;
|
|
20
|
+
exports.NamedSnapshotShareCreatedResponseToJSON = NamedSnapshotShareCreatedResponseToJSON;
|
|
21
|
+
exports.NamedSnapshotShareCreatedResponseToJSONTyped = NamedSnapshotShareCreatedResponseToJSONTyped;
|
|
22
|
+
const NamedSnapshotShare_1 = require("./NamedSnapshotShare");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.NamedSnapshotShareCreatedResponseTypeEnum = {
|
|
27
|
+
SnapshotShareCreated: 'snapshot.share.created'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the NamedSnapshotShareCreatedResponse interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfNamedSnapshotShareCreatedResponse(value) {
|
|
33
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('shareCode' in value) || value['shareCode'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('share' in value) || value['share'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function NamedSnapshotShareCreatedResponseFromJSON(json) {
|
|
46
|
+
return NamedSnapshotShareCreatedResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function NamedSnapshotShareCreatedResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'ok': json['ok'],
|
|
54
|
+
'type': json['type'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'shareCode': json['shareCode'],
|
|
57
|
+
'share': (0, NamedSnapshotShare_1.NamedSnapshotShareFromJSON)(json['share']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function NamedSnapshotShareCreatedResponseToJSON(json) {
|
|
61
|
+
return NamedSnapshotShareCreatedResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function NamedSnapshotShareCreatedResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'ok': value['ok'],
|
|
69
|
+
'type': value['type'],
|
|
70
|
+
'name': value['name'],
|
|
71
|
+
'shareCode': value['shareCode'],
|
|
72
|
+
'share': (0, NamedSnapshotShare_1.NamedSnapshotShareToJSON)(value['share']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { NamedSnapshotShare } from './NamedSnapshotShare';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface NamedSnapshotShareListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface NamedSnapshotShareListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof NamedSnapshotShareListResponse
|
|
23
|
+
*/
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {NamedSnapshotShareListResponseTypeEnum}
|
|
28
|
+
* @memberof NamedSnapshotShareListResponse
|
|
29
|
+
*/
|
|
30
|
+
type: NamedSnapshotShareListResponseTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof NamedSnapshotShareListResponse
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<NamedSnapshotShare>}
|
|
40
|
+
* @memberof NamedSnapshotShareListResponse
|
|
41
|
+
*/
|
|
42
|
+
shares: Array<NamedSnapshotShare>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const NamedSnapshotShareListResponseTypeEnum: {
|
|
48
|
+
readonly SnapshotShareList: 'snapshot.share.list';
|
|
49
|
+
};
|
|
50
|
+
export type NamedSnapshotShareListResponseTypeEnum = typeof NamedSnapshotShareListResponseTypeEnum[keyof typeof NamedSnapshotShareListResponseTypeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the NamedSnapshotShareListResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfNamedSnapshotShareListResponse(value: object): value is NamedSnapshotShareListResponse;
|
|
55
|
+
export declare function NamedSnapshotShareListResponseFromJSON(json: any): NamedSnapshotShareListResponse;
|
|
56
|
+
export declare function NamedSnapshotShareListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareListResponse;
|
|
57
|
+
export declare function NamedSnapshotShareListResponseToJSON(json: any): NamedSnapshotShareListResponse;
|
|
58
|
+
export declare function NamedSnapshotShareListResponseToJSONTyped(value?: NamedSnapshotShareListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.NamedSnapshotShareListResponseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfNamedSnapshotShareListResponse = instanceOfNamedSnapshotShareListResponse;
|
|
18
|
+
exports.NamedSnapshotShareListResponseFromJSON = NamedSnapshotShareListResponseFromJSON;
|
|
19
|
+
exports.NamedSnapshotShareListResponseFromJSONTyped = NamedSnapshotShareListResponseFromJSONTyped;
|
|
20
|
+
exports.NamedSnapshotShareListResponseToJSON = NamedSnapshotShareListResponseToJSON;
|
|
21
|
+
exports.NamedSnapshotShareListResponseToJSONTyped = NamedSnapshotShareListResponseToJSONTyped;
|
|
22
|
+
const NamedSnapshotShare_1 = require("./NamedSnapshotShare");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.NamedSnapshotShareListResponseTypeEnum = {
|
|
27
|
+
SnapshotShareList: 'snapshot.share.list'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the NamedSnapshotShareListResponse interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfNamedSnapshotShareListResponse(value) {
|
|
33
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('shares' in value) || value['shares'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function NamedSnapshotShareListResponseFromJSON(json) {
|
|
44
|
+
return NamedSnapshotShareListResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function NamedSnapshotShareListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'ok': json['ok'],
|
|
52
|
+
'type': json['type'],
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'shares': (json['shares'].map(NamedSnapshotShare_1.NamedSnapshotShareFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function NamedSnapshotShareListResponseToJSON(json) {
|
|
58
|
+
return NamedSnapshotShareListResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function NamedSnapshotShareListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'ok': value['ok'],
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'shares': (value['shares'].map(NamedSnapshotShare_1.NamedSnapshotShareToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { NamedSnapshotShare } from './NamedSnapshotShare';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface NamedSnapshotShareRevokedResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface NamedSnapshotShareRevokedResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof NamedSnapshotShareRevokedResponse
|
|
23
|
+
*/
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {NamedSnapshotShareRevokedResponseTypeEnum}
|
|
28
|
+
* @memberof NamedSnapshotShareRevokedResponse
|
|
29
|
+
*/
|
|
30
|
+
type: NamedSnapshotShareRevokedResponseTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof NamedSnapshotShareRevokedResponse
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {NamedSnapshotShare}
|
|
40
|
+
* @memberof NamedSnapshotShareRevokedResponse
|
|
41
|
+
*/
|
|
42
|
+
share: NamedSnapshotShare;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const NamedSnapshotShareRevokedResponseTypeEnum: {
|
|
48
|
+
readonly SnapshotShareRevoked: 'snapshot.share.revoked';
|
|
49
|
+
};
|
|
50
|
+
export type NamedSnapshotShareRevokedResponseTypeEnum = typeof NamedSnapshotShareRevokedResponseTypeEnum[keyof typeof NamedSnapshotShareRevokedResponseTypeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the NamedSnapshotShareRevokedResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfNamedSnapshotShareRevokedResponse(value: object): value is NamedSnapshotShareRevokedResponse;
|
|
55
|
+
export declare function NamedSnapshotShareRevokedResponseFromJSON(json: any): NamedSnapshotShareRevokedResponse;
|
|
56
|
+
export declare function NamedSnapshotShareRevokedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShareRevokedResponse;
|
|
57
|
+
export declare function NamedSnapshotShareRevokedResponseToJSON(json: any): NamedSnapshotShareRevokedResponse;
|
|
58
|
+
export declare function NamedSnapshotShareRevokedResponseToJSONTyped(value?: NamedSnapshotShareRevokedResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.NamedSnapshotShareRevokedResponseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfNamedSnapshotShareRevokedResponse = instanceOfNamedSnapshotShareRevokedResponse;
|
|
18
|
+
exports.NamedSnapshotShareRevokedResponseFromJSON = NamedSnapshotShareRevokedResponseFromJSON;
|
|
19
|
+
exports.NamedSnapshotShareRevokedResponseFromJSONTyped = NamedSnapshotShareRevokedResponseFromJSONTyped;
|
|
20
|
+
exports.NamedSnapshotShareRevokedResponseToJSON = NamedSnapshotShareRevokedResponseToJSON;
|
|
21
|
+
exports.NamedSnapshotShareRevokedResponseToJSONTyped = NamedSnapshotShareRevokedResponseToJSONTyped;
|
|
22
|
+
const NamedSnapshotShare_1 = require("./NamedSnapshotShare");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.NamedSnapshotShareRevokedResponseTypeEnum = {
|
|
27
|
+
SnapshotShareRevoked: 'snapshot.share.revoked'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the NamedSnapshotShareRevokedResponse interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfNamedSnapshotShareRevokedResponse(value) {
|
|
33
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('share' in value) || value['share'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function NamedSnapshotShareRevokedResponseFromJSON(json) {
|
|
44
|
+
return NamedSnapshotShareRevokedResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function NamedSnapshotShareRevokedResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'ok': json['ok'],
|
|
52
|
+
'type': json['type'],
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'share': (0, NamedSnapshotShare_1.NamedSnapshotShareFromJSON)(json['share']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function NamedSnapshotShareRevokedResponseToJSON(json) {
|
|
58
|
+
return NamedSnapshotShareRevokedResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function NamedSnapshotShareRevokedResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'ok': value['ok'],
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'share': (0, NamedSnapshotShare_1.NamedSnapshotShareToJSON)(value['share']),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 Recover200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface Recover200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof Recover200Response
|
|
22
|
+
*/
|
|
23
|
+
ok?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Recover200Response
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Recover200ResponseStatusEnum}
|
|
33
|
+
* @memberof Recover200Response
|
|
34
|
+
*/
|
|
35
|
+
status?: Recover200ResponseStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Recover200Response
|
|
40
|
+
*/
|
|
41
|
+
message?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const Recover200ResponseStatusEnum: {
|
|
47
|
+
readonly Recovering: 'recovering';
|
|
48
|
+
};
|
|
49
|
+
export type Recover200ResponseStatusEnum = typeof Recover200ResponseStatusEnum[keyof typeof Recover200ResponseStatusEnum];
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the Recover200Response interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfRecover200Response(value: object): value is Recover200Response;
|
|
54
|
+
export declare function Recover200ResponseFromJSON(json: any): Recover200Response;
|
|
55
|
+
export declare function Recover200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Recover200Response;
|
|
56
|
+
export declare function Recover200ResponseToJSON(json: any): Recover200Response;
|
|
57
|
+
export declare function Recover200ResponseToJSONTyped(value?: Recover200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.Recover200ResponseStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfRecover200Response = instanceOfRecover200Response;
|
|
18
|
+
exports.Recover200ResponseFromJSON = Recover200ResponseFromJSON;
|
|
19
|
+
exports.Recover200ResponseFromJSONTyped = Recover200ResponseFromJSONTyped;
|
|
20
|
+
exports.Recover200ResponseToJSON = Recover200ResponseToJSON;
|
|
21
|
+
exports.Recover200ResponseToJSONTyped = Recover200ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.Recover200ResponseStatusEnum = {
|
|
26
|
+
Recovering: 'recovering'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the Recover200Response interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfRecover200Response(value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function Recover200ResponseFromJSON(json) {
|
|
35
|
+
return Recover200ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function Recover200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'ok': json['ok'] == null ? undefined : json['ok'],
|
|
43
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
44
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
45
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function Recover200ResponseToJSON(json) {
|
|
49
|
+
return Recover200ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function Recover200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'ok': value['ok'],
|
|
57
|
+
'type': value['type'],
|
|
58
|
+
'status': value['status'],
|
|
59
|
+
'message': value['message'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -22,7 +22,7 @@ export interface ResumeRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
failFast?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
* Resume onto a different machine size. Omit to keep the sandbox's current type. A resume already restores onto a fresh machine, so changing size costs nothing extra. Shrinking is rejected with `type_too_small` when the sandbox's data would not fit the smaller disk.
|
|
25
|
+
* Resume onto a different machine size. Omit to keep the sandbox's current type. `xlarge` needs the $100/month plan or higher (403 `machine_class_plan_required`). A resume already restores onto a fresh machine, so changing size costs nothing extra. Shrinking is rejected with `type_too_small` when the sandbox's data would not fit the smaller disk.
|
|
26
26
|
* @type {ResumeRequestTypeEnum}
|
|
27
27
|
* @memberof ResumeRequest
|
|
28
28
|
*/
|
|
@@ -61,6 +61,7 @@ export declare const ResumeRequestTypeEnum: {
|
|
|
61
61
|
readonly Small: 'small';
|
|
62
62
|
readonly Default: 'default';
|
|
63
63
|
readonly Large: 'large';
|
|
64
|
+
readonly Xlarge: 'xlarge';
|
|
64
65
|
};
|
|
65
66
|
export type ResumeRequestTypeEnum = typeof ResumeRequestTypeEnum[keyof typeof ResumeRequestTypeEnum];
|
|
66
67
|
/**
|
|
@@ -25,7 +25,8 @@ exports.ResumeRequestToJSONTyped = ResumeRequestToJSONTyped;
|
|
|
25
25
|
exports.ResumeRequestTypeEnum = {
|
|
26
26
|
Small: 'small',
|
|
27
27
|
Default: 'default',
|
|
28
|
-
Large: 'large'
|
|
28
|
+
Large: 'large',
|
|
29
|
+
Xlarge: 'xlarge'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the ResumeRequest interface.
|
package/dist/models/Sandbox.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ export interface Sandbox {
|
|
|
90
90
|
*/
|
|
91
91
|
memoryGB?: number;
|
|
92
92
|
/**
|
|
93
|
-
* Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, and
|
|
93
|
+
* Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, 2 for `large`, and 50/9 (about 5.56) for `xlarge`.
|
|
94
94
|
* @type {number}
|
|
95
95
|
* @memberof Sandbox
|
|
96
96
|
*/
|
|
@@ -290,6 +290,7 @@ export declare const SandboxTypeEnum: {
|
|
|
290
290
|
readonly Small: 'small';
|
|
291
291
|
readonly Default: 'default';
|
|
292
292
|
readonly Large: 'large';
|
|
293
|
+
readonly Xlarge: 'xlarge';
|
|
293
294
|
};
|
|
294
295
|
export type SandboxTypeEnum = typeof SandboxTypeEnum[keyof typeof SandboxTypeEnum];
|
|
295
296
|
/**
|
package/dist/models/Sandbox.js
CHANGED
|
@@ -40,7 +40,7 @@ export interface SandboxUsageResponse {
|
|
|
40
40
|
*/
|
|
41
41
|
sandboxType: SandboxUsageResponseSandboxTypeEnum;
|
|
42
42
|
/**
|
|
43
|
-
* Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, and
|
|
43
|
+
* Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, 2 for `large`, and 50/9 (about 5.56) for `xlarge`.
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof SandboxUsageResponse
|
|
46
46
|
*/
|
|
@@ -89,6 +89,7 @@ export declare const SandboxUsageResponseSandboxTypeEnum: {
|
|
|
89
89
|
readonly Small: 'small';
|
|
90
90
|
readonly Default: 'default';
|
|
91
91
|
readonly Large: 'large';
|
|
92
|
+
readonly Xlarge: 'xlarge';
|
|
92
93
|
};
|
|
93
94
|
export type SandboxUsageResponseSandboxTypeEnum = typeof SandboxUsageResponseSandboxTypeEnum[keyof typeof SandboxUsageResponseSandboxTypeEnum];
|
|
94
95
|
/**
|