@boatdev/sdk 1.8.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 +8 -0
- package/dist/apis/BoatApi.d.ts +55 -0
- package/dist/apis/BoatApi.js +133 -0
- package/dist/esm/apis/BoatApi.d.ts +55 -0
- package/dist/esm/apis/BoatApi.js +133 -0
- package/dist/esm/models/CreateSandboxRequest.d.ts +1 -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/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/CreateSandboxRequest.d.ts +1 -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/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/BoatApi.md +225 -0
- 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/package.json +1 -1
- package/src/apis/BoatApi.ts +201 -0
- package/src/models/CreateSandboxRequest.ts +1 -1
- 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/index.ts +4 -0
|
@@ -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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const NamedSnapshotShareStatusEnum = {
|
|
18
|
+
Active: 'active',
|
|
19
|
+
Revoked: 'revoked'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NamedSnapshotShare interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfNamedSnapshotShare(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('codePrefix' in value) || value['codePrefix'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('useCount' in value) || value['useCount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('revokedAt' in value) || value['revokedAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
export function NamedSnapshotShareFromJSON(json) {
|
|
42
|
+
return NamedSnapshotShareFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function NamedSnapshotShareFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'codePrefix': json['codePrefix'],
|
|
51
|
+
'status': json['status'],
|
|
52
|
+
'useCount': json['useCount'],
|
|
53
|
+
'lastUsedAt': (json['lastUsedAt'] == null ? null : new Date(json['lastUsedAt'])),
|
|
54
|
+
'revokedAt': (json['revokedAt'] == null ? null : new Date(json['revokedAt'])),
|
|
55
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function NamedSnapshotShareToJSON(json) {
|
|
59
|
+
return NamedSnapshotShareToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function NamedSnapshotShareToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'codePrefix': value['codePrefix'],
|
|
68
|
+
'status': value['status'],
|
|
69
|
+
'useCount': value['useCount'],
|
|
70
|
+
'lastUsedAt': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
|
|
71
|
+
'revokedAt': value['revokedAt'] == null ? value['revokedAt'] : value['revokedAt'].toISOString(),
|
|
72
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -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,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Boat Public API v1
|
|
5
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { NamedSnapshotShareFromJSON, NamedSnapshotShareToJSON, } from './NamedSnapshotShare';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const NamedSnapshotShareCreatedResponseTypeEnum = {
|
|
19
|
+
SnapshotShareCreated: 'snapshot.share.created'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NamedSnapshotShareCreatedResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfNamedSnapshotShareCreatedResponse(value) {
|
|
25
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('shareCode' in value) || value['shareCode'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('share' in value) || value['share'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function NamedSnapshotShareCreatedResponseFromJSON(json) {
|
|
38
|
+
return NamedSnapshotShareCreatedResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function NamedSnapshotShareCreatedResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'ok': json['ok'],
|
|
46
|
+
'type': json['type'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'shareCode': json['shareCode'],
|
|
49
|
+
'share': NamedSnapshotShareFromJSON(json['share']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function NamedSnapshotShareCreatedResponseToJSON(json) {
|
|
53
|
+
return NamedSnapshotShareCreatedResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function NamedSnapshotShareCreatedResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'ok': value['ok'],
|
|
61
|
+
'type': value['type'],
|
|
62
|
+
'name': value['name'],
|
|
63
|
+
'shareCode': value['shareCode'],
|
|
64
|
+
'share': NamedSnapshotShareToJSON(value['share']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -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,62 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Boat Public API v1
|
|
5
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { NamedSnapshotShareFromJSON, NamedSnapshotShareToJSON, } from './NamedSnapshotShare';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const NamedSnapshotShareListResponseTypeEnum = {
|
|
19
|
+
SnapshotShareList: 'snapshot.share.list'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NamedSnapshotShareListResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfNamedSnapshotShareListResponse(value) {
|
|
25
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('shares' in value) || value['shares'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function NamedSnapshotShareListResponseFromJSON(json) {
|
|
36
|
+
return NamedSnapshotShareListResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function NamedSnapshotShareListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'ok': json['ok'],
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'shares': (json['shares'].map(NamedSnapshotShareFromJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function NamedSnapshotShareListResponseToJSON(json) {
|
|
50
|
+
return NamedSnapshotShareListResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function NamedSnapshotShareListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'ok': value['ok'],
|
|
58
|
+
'type': value['type'],
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'shares': (value['shares'].map(NamedSnapshotShareToJSON)),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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,62 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Boat Public API v1
|
|
5
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { NamedSnapshotShareFromJSON, NamedSnapshotShareToJSON, } from './NamedSnapshotShare';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const NamedSnapshotShareRevokedResponseTypeEnum = {
|
|
19
|
+
SnapshotShareRevoked: 'snapshot.share.revoked'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NamedSnapshotShareRevokedResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfNamedSnapshotShareRevokedResponse(value) {
|
|
25
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('share' in value) || value['share'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function NamedSnapshotShareRevokedResponseFromJSON(json) {
|
|
36
|
+
return NamedSnapshotShareRevokedResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function NamedSnapshotShareRevokedResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'ok': json['ok'],
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'share': NamedSnapshotShareFromJSON(json['share']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function NamedSnapshotShareRevokedResponseToJSON(json) {
|
|
50
|
+
return NamedSnapshotShareRevokedResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function NamedSnapshotShareRevokedResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'ok': value['ok'],
|
|
58
|
+
'type': value['type'],
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'share': NamedSnapshotShareToJSON(value['share']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -63,6 +63,10 @@ export * from './NamedSnapshotInfoResponse';
|
|
|
63
63
|
export * from './NamedSnapshotListResponse';
|
|
64
64
|
export * from './NamedSnapshotSaveRequest';
|
|
65
65
|
export * from './NamedSnapshotSavingResponse';
|
|
66
|
+
export * from './NamedSnapshotShare';
|
|
67
|
+
export * from './NamedSnapshotShareCreatedResponse';
|
|
68
|
+
export * from './NamedSnapshotShareListResponse';
|
|
69
|
+
export * from './NamedSnapshotShareRevokedResponse';
|
|
66
70
|
export * from './Org';
|
|
67
71
|
export * from './OrgListResponse';
|
|
68
72
|
export * from './PageInfo';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -65,6 +65,10 @@ export * from './NamedSnapshotInfoResponse';
|
|
|
65
65
|
export * from './NamedSnapshotListResponse';
|
|
66
66
|
export * from './NamedSnapshotSaveRequest';
|
|
67
67
|
export * from './NamedSnapshotSavingResponse';
|
|
68
|
+
export * from './NamedSnapshotShare';
|
|
69
|
+
export * from './NamedSnapshotShareCreatedResponse';
|
|
70
|
+
export * from './NamedSnapshotShareListResponse';
|
|
71
|
+
export * from './NamedSnapshotShareRevokedResponse';
|
|
68
72
|
export * from './Org';
|
|
69
73
|
export * from './OrgListResponse';
|
|
70
74
|
export * from './PageInfo';
|
|
@@ -78,7 +78,7 @@ export interface CreateSandboxRequest {
|
|
|
78
78
|
*/
|
|
79
79
|
teamId?: string;
|
|
80
80
|
/**
|
|
81
|
-
* Create the sandbox from a named snapshot (saved with `POST /named-snapshots`, or `boat snapshot <id> <name>` in the CLI). The sandbox starts from that exact frozen state. Omitting `type` inherits the type the snapshot was saved from; env and no-env inherit from the snapshot's source sandbox unless the request passes its own, with the same rules as forking.
|
|
81
|
+
* Create the sandbox from a named snapshot (saved with `POST /named-snapshots`, or `boat snapshot <id> <name>` in the CLI). The sandbox starts from that exact frozen state. Omitting `type` inherits the type the snapshot was saved from; env and no-env inherit from the snapshot's source sandbox unless the request passes its own, with the same rules as forking. Also accepts a share code (`bsh_...`) that another account made with `POST /named-snapshots/{name}/shares`. The new sandbox lives in and is billed to your account. It does not get the owner's per-sandbox env; your own environment applies normally. A wrong or revoked code returns `404 snapshot_not_found`.
|
|
82
82
|
* @type {string}
|
|
83
83
|
* @memberof CreateSandboxRequest
|
|
84
84
|
*/
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
* A share code for a named snapshot. Any Boat account that holds the code can create a sandbox from the snapshot. Boat stores only a hash of the code. The full code is in the create response only.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface NamedSnapshotShare
|
|
16
|
+
*/
|
|
17
|
+
export interface NamedSnapshotShare {
|
|
18
|
+
/**
|
|
19
|
+
* Share id, for example `shr_...`. Pass it to revoke the code.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NamedSnapshotShare
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The first characters of the code, for example `bsh_xxxxxxxx`. Use it to tell codes apart.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NamedSnapshotShare
|
|
28
|
+
*/
|
|
29
|
+
codePrefix: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {NamedSnapshotShareStatusEnum}
|
|
33
|
+
* @memberof NamedSnapshotShare
|
|
34
|
+
*/
|
|
35
|
+
status: NamedSnapshotShareStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Number of sandboxes created with this code.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof NamedSnapshotShare
|
|
40
|
+
*/
|
|
41
|
+
useCount: number;
|
|
42
|
+
/**
|
|
43
|
+
* When a sandbox was last created with this code. null if never.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof NamedSnapshotShare
|
|
46
|
+
*/
|
|
47
|
+
lastUsedAt: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
* When the code was revoked. null while active.
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof NamedSnapshotShare
|
|
52
|
+
*/
|
|
53
|
+
revokedAt: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof NamedSnapshotShare
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const NamedSnapshotShareStatusEnum: {
|
|
65
|
+
readonly Active: 'active';
|
|
66
|
+
readonly Revoked: 'revoked';
|
|
67
|
+
};
|
|
68
|
+
export type NamedSnapshotShareStatusEnum = typeof NamedSnapshotShareStatusEnum[keyof typeof NamedSnapshotShareStatusEnum];
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the NamedSnapshotShare interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfNamedSnapshotShare(value: object): value is NamedSnapshotShare;
|
|
73
|
+
export declare function NamedSnapshotShareFromJSON(json: any): NamedSnapshotShare;
|
|
74
|
+
export declare function NamedSnapshotShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedSnapshotShare;
|
|
75
|
+
export declare function NamedSnapshotShareToJSON(json: any): NamedSnapshotShare;
|
|
76
|
+
export declare function NamedSnapshotShareToJSONTyped(value?: NamedSnapshotShare | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
}
|