@boatdev/sdk 1.9.2 → 1.9.3
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 +28 -0
- package/dist/apis/BoatApi.d.ts +192 -4
- package/dist/apis/BoatApi.js +452 -5
- package/dist/esm/apis/BoatApi.d.ts +192 -4
- package/dist/esm/apis/BoatApi.js +451 -4
- package/dist/esm/models/CommandAttachFrame.d.ts +121 -0
- package/dist/esm/models/CommandAttachFrame.js +83 -0
- package/dist/esm/models/CommandInfoResponse.d.ts +52 -0
- package/dist/esm/models/CommandInfoResponse.js +58 -0
- package/dist/esm/models/CommandListResponse.d.ts +58 -0
- package/dist/esm/models/CommandListResponse.js +62 -0
- package/dist/esm/models/CommandLogsResponse.d.ts +109 -0
- package/dist/esm/models/CommandLogsResponse.js +99 -0
- package/dist/esm/models/CommandRecord.d.ts +132 -0
- package/dist/esm/models/CommandRecord.js +105 -0
- package/dist/esm/models/CommandResponse.d.ts +6 -0
- package/dist/esm/models/CommandResponse.js +2 -0
- package/dist/esm/models/CommandStartedResponse.d.ts +6 -0
- package/dist/esm/models/CommandStartedResponse.js +2 -0
- package/dist/esm/models/CommandStatusResponse.d.ts +32 -2
- package/dist/esm/models/CommandStatusResponse.js +10 -0
- package/dist/esm/models/CommandStopResponse.d.ts +70 -0
- package/dist/esm/models/CommandStopResponse.js +70 -0
- package/dist/esm/models/CommandStreamFrame.d.ts +6 -0
- package/dist/esm/models/CommandStreamFrame.js +2 -0
- package/dist/esm/models/CreateSandboxRequest.d.ts +6 -0
- package/dist/esm/models/CreateSandboxRequest.js +2 -0
- package/dist/esm/models/DataRetentionPolicyResponse.d.ts +12 -0
- package/dist/esm/models/DataRetentionPolicyResponse.js +4 -0
- package/dist/esm/models/DataRetentionUpdateRequest.d.ts +7 -1
- package/dist/esm/models/DataRetentionUpdateRequest.js +2 -0
- package/dist/esm/models/ForkRequest.d.ts +6 -0
- package/dist/esm/models/ForkRequest.js +2 -0
- package/dist/esm/models/ProcessListResponse.d.ts +70 -0
- package/dist/esm/models/ProcessListResponse.js +70 -0
- package/dist/esm/models/Sandbox.d.ts +6 -0
- package/dist/esm/models/Sandbox.js +2 -0
- package/dist/esm/models/SandboxProcess.d.ts +74 -0
- package/dist/esm/models/SandboxProcess.js +59 -0
- package/dist/esm/models/TelemetryConfig.d.ts +57 -0
- package/dist/esm/models/TelemetryConfig.js +60 -0
- package/dist/esm/models/TelemetryConfigLastError.d.ts +44 -0
- package/dist/esm/models/TelemetryConfigLastError.js +51 -0
- package/dist/esm/models/TelemetryResponse.d.ts +45 -0
- package/dist/esm/models/TelemetryResponse.js +52 -0
- package/dist/esm/models/TelemetrySetRequest.d.ts +40 -0
- package/dist/esm/models/TelemetrySetRequest.js +45 -0
- package/dist/esm/models/TelemetrySetResponse.d.ts +52 -0
- package/dist/esm/models/TelemetrySetResponse.js +57 -0
- package/dist/esm/models/TelemetryTestResult.d.ts +44 -0
- package/dist/esm/models/TelemetryTestResult.js +51 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/CommandAttachFrame.d.ts +121 -0
- package/dist/models/CommandAttachFrame.js +91 -0
- package/dist/models/CommandInfoResponse.d.ts +52 -0
- package/dist/models/CommandInfoResponse.js +66 -0
- package/dist/models/CommandListResponse.d.ts +58 -0
- package/dist/models/CommandListResponse.js +70 -0
- package/dist/models/CommandLogsResponse.d.ts +109 -0
- package/dist/models/CommandLogsResponse.js +107 -0
- package/dist/models/CommandRecord.d.ts +132 -0
- package/dist/models/CommandRecord.js +113 -0
- package/dist/models/CommandResponse.d.ts +6 -0
- package/dist/models/CommandResponse.js +2 -0
- package/dist/models/CommandStartedResponse.d.ts +6 -0
- package/dist/models/CommandStartedResponse.js +2 -0
- package/dist/models/CommandStatusResponse.d.ts +32 -2
- package/dist/models/CommandStatusResponse.js +10 -0
- package/dist/models/CommandStopResponse.d.ts +70 -0
- package/dist/models/CommandStopResponse.js +78 -0
- package/dist/models/CommandStreamFrame.d.ts +6 -0
- package/dist/models/CommandStreamFrame.js +2 -0
- package/dist/models/CreateSandboxRequest.d.ts +6 -0
- package/dist/models/CreateSandboxRequest.js +2 -0
- package/dist/models/DataRetentionPolicyResponse.d.ts +12 -0
- package/dist/models/DataRetentionPolicyResponse.js +4 -0
- package/dist/models/DataRetentionUpdateRequest.d.ts +7 -1
- package/dist/models/DataRetentionUpdateRequest.js +2 -0
- package/dist/models/ForkRequest.d.ts +6 -0
- package/dist/models/ForkRequest.js +2 -0
- package/dist/models/ProcessListResponse.d.ts +70 -0
- package/dist/models/ProcessListResponse.js +78 -0
- package/dist/models/Sandbox.d.ts +6 -0
- package/dist/models/Sandbox.js +2 -0
- package/dist/models/SandboxProcess.d.ts +74 -0
- package/dist/models/SandboxProcess.js +66 -0
- package/dist/models/TelemetryConfig.d.ts +57 -0
- package/dist/models/TelemetryConfig.js +67 -0
- package/dist/models/TelemetryConfigLastError.d.ts +44 -0
- package/dist/models/TelemetryConfigLastError.js +58 -0
- package/dist/models/TelemetryResponse.d.ts +45 -0
- package/dist/models/TelemetryResponse.js +59 -0
- package/dist/models/TelemetrySetRequest.d.ts +40 -0
- package/dist/models/TelemetrySetRequest.js +52 -0
- package/dist/models/TelemetrySetResponse.d.ts +52 -0
- package/dist/models/TelemetrySetResponse.js +64 -0
- package/dist/models/TelemetryTestResult.d.ts +44 -0
- package/dist/models/TelemetryTestResult.js +58 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/BoatApi.md +715 -11
- package/docs/Command200Response.md +2 -0
- package/docs/CommandAttachFrame.md +53 -0
- package/docs/CommandInfoResponse.md +36 -0
- package/docs/CommandListResponse.md +38 -0
- package/docs/CommandLogsResponse.md +50 -0
- package/docs/CommandRecord.md +59 -0
- package/docs/CommandResponse.md +2 -0
- package/docs/CommandStartedResponse.md +2 -0
- package/docs/CommandStatusResponse.md +10 -0
- package/docs/CommandStopResponse.md +42 -0
- package/docs/CommandStreamFrame.md +2 -0
- package/docs/CreateSandboxRequest.md +2 -0
- package/docs/DataRetentionPolicyResponse.md +4 -0
- package/docs/DataRetentionUpdateRequest.md +3 -1
- package/docs/ForkRequest.md +2 -0
- package/docs/ProcessListResponse.md +42 -0
- package/docs/Sandbox.md +2 -0
- package/docs/SandboxProcess.md +46 -0
- package/docs/TelemetryConfig.md +40 -0
- package/docs/TelemetryConfigLastError.md +37 -0
- package/docs/TelemetryResponse.md +36 -0
- package/docs/TelemetrySetRequest.md +34 -0
- package/docs/TelemetrySetResponse.md +38 -0
- package/docs/TelemetryTestResult.md +36 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +671 -4
- package/src/models/CommandAttachFrame.ts +179 -0
- package/src/models/CommandInfoResponse.ts +102 -0
- package/src/models/CommandListResponse.ts +111 -0
- package/src/models/CommandLogsResponse.ts +175 -0
- package/src/models/CommandRecord.ts +204 -0
- package/src/models/CommandResponse.ts +8 -0
- package/src/models/CommandStartedResponse.ts +8 -0
- package/src/models/CommandStatusResponse.ts +42 -2
- package/src/models/CommandStopResponse.ts +129 -0
- package/src/models/CommandStreamFrame.ts +8 -0
- package/src/models/CreateSandboxRequest.ts +8 -0
- package/src/models/DataRetentionPolicyResponse.ts +16 -0
- package/src/models/DataRetentionUpdateRequest.ts +9 -1
- package/src/models/ForkRequest.ts +8 -0
- package/src/models/ProcessListResponse.ts +129 -0
- package/src/models/Sandbox.ts +8 -0
- package/src/models/SandboxProcess.ts +123 -0
- package/src/models/TelemetryConfig.ts +110 -0
- package/src/models/TelemetryConfigLastError.ts +84 -0
- package/src/models/TelemetryResponse.ts +92 -0
- package/src/models/TelemetrySetRequest.ts +74 -0
- package/src/models/TelemetrySetResponse.ts +108 -0
- package/src/models/TelemetryTestResult.ts +84 -0
- package/src/models/index.ts +14 -0
|
@@ -35,6 +35,7 @@ export function ForkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'failFast': json['failFast'] == null ? undefined : json['failFast'],
|
|
38
|
+
'monitoring': json['monitoring'] == null ? undefined : json['monitoring'],
|
|
38
39
|
'env': json['env'] == null ? undefined : json['env'],
|
|
39
40
|
'environment': json['environment'] == null ? undefined : json['environment'],
|
|
40
41
|
'noEnv': json['noEnv'] == null ? undefined : json['noEnv'],
|
|
@@ -51,6 +52,7 @@ export function ForkRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
52
|
}
|
|
52
53
|
return {
|
|
53
54
|
'failFast': value['failFast'],
|
|
55
|
+
'monitoring': value['monitoring'],
|
|
54
56
|
'env': value['env'],
|
|
55
57
|
'environment': value['environment'],
|
|
56
58
|
'noEnv': value['noEnv'],
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { SandboxProcess } from './SandboxProcess';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProcessListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProcessListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ProcessListResponse
|
|
23
|
+
*/
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ProcessListResponseTypeEnum}
|
|
28
|
+
* @memberof ProcessListResponse
|
|
29
|
+
*/
|
|
30
|
+
type: ProcessListResponseTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* True: read from the running sandbox now. False: the sandbox is stopped (or its agent is not upgraded yet), and this is the last sample kept (top 12 processes, every 30 s, 7 days).
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof ProcessListResponse
|
|
35
|
+
*/
|
|
36
|
+
live: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof ProcessListResponse
|
|
41
|
+
*/
|
|
42
|
+
sampledAt: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
* Processes on the sandbox. The list holds at most 500
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ProcessListResponse
|
|
47
|
+
*/
|
|
48
|
+
total: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<SandboxProcess>}
|
|
52
|
+
* @memberof ProcessListResponse
|
|
53
|
+
*/
|
|
54
|
+
processes: Array<SandboxProcess>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const ProcessListResponseTypeEnum: {
|
|
60
|
+
readonly ProcessList: 'process.list';
|
|
61
|
+
};
|
|
62
|
+
export type ProcessListResponseTypeEnum = typeof ProcessListResponseTypeEnum[keyof typeof ProcessListResponseTypeEnum];
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the ProcessListResponse interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfProcessListResponse(value: object): value is ProcessListResponse;
|
|
67
|
+
export declare function ProcessListResponseFromJSON(json: any): ProcessListResponse;
|
|
68
|
+
export declare function ProcessListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessListResponse;
|
|
69
|
+
export declare function ProcessListResponseToJSON(json: any): ProcessListResponse;
|
|
70
|
+
export declare function ProcessListResponseToJSONTyped(value?: ProcessListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { SandboxProcessFromJSON, SandboxProcessToJSON, } from './SandboxProcess';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ProcessListResponseTypeEnum = {
|
|
19
|
+
ProcessList: 'process.list'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProcessListResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfProcessListResponse(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 (!('live' in value) || value['live'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sampledAt' in value) || value['sampledAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('processes' in value) || value['processes'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function ProcessListResponseFromJSON(json) {
|
|
40
|
+
return ProcessListResponseFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ProcessListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'ok': json['ok'],
|
|
48
|
+
'type': json['type'],
|
|
49
|
+
'live': json['live'],
|
|
50
|
+
'sampledAt': (json['sampledAt'] == null ? null : new Date(json['sampledAt'])),
|
|
51
|
+
'total': json['total'],
|
|
52
|
+
'processes': (json['processes'].map(SandboxProcessFromJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function ProcessListResponseToJSON(json) {
|
|
56
|
+
return ProcessListResponseToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function ProcessListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'ok': value['ok'],
|
|
64
|
+
'type': value['type'],
|
|
65
|
+
'live': value['live'],
|
|
66
|
+
'sampledAt': value['sampledAt'] == null ? value['sampledAt'] : value['sampledAt'].toISOString(),
|
|
67
|
+
'total': value['total'],
|
|
68
|
+
'processes': (value['processes'].map(SandboxProcessToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -155,6 +155,12 @@ export interface Sandbox {
|
|
|
155
155
|
* @memberof Sandbox
|
|
156
156
|
*/
|
|
157
157
|
snapshots?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* False when the sandbox was created with monitoring off.
|
|
160
|
+
* @type {boolean}
|
|
161
|
+
* @memberof Sandbox
|
|
162
|
+
*/
|
|
163
|
+
monitoring?: boolean;
|
|
158
164
|
/**
|
|
159
165
|
*
|
|
160
166
|
* @type {boolean}
|
|
@@ -126,6 +126,7 @@ export function SandboxFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
126
126
|
'desktopAvailable': json['desktopAvailable'],
|
|
127
127
|
'desktopUrl': json['desktopUrl'] == null ? undefined : json['desktopUrl'],
|
|
128
128
|
'snapshots': json['snapshots'] == null ? undefined : json['snapshots'],
|
|
129
|
+
'monitoring': json['monitoring'] == null ? undefined : json['monitoring'],
|
|
129
130
|
'snapshotAvailable': json['snapshotAvailable'],
|
|
130
131
|
'snapshotCompletedAt': json['snapshotCompletedAt'] == null ? undefined : (new Date(json['snapshotCompletedAt'])),
|
|
131
132
|
'snapshotVerifiedAt': json['snapshotVerifiedAt'] == null ? undefined : (new Date(json['snapshotVerifiedAt'])),
|
|
@@ -176,6 +177,7 @@ export function SandboxToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
176
177
|
'desktopAvailable': value['desktopAvailable'],
|
|
177
178
|
'desktopUrl': value['desktopUrl'],
|
|
178
179
|
'snapshots': value['snapshots'],
|
|
180
|
+
'monitoring': value['monitoring'],
|
|
179
181
|
'snapshotAvailable': value['snapshotAvailable'],
|
|
180
182
|
'snapshotCompletedAt': value['snapshotCompletedAt'] == null ? value['snapshotCompletedAt'] : value['snapshotCompletedAt'].toISOString(),
|
|
181
183
|
'snapshotVerifiedAt': value['snapshotVerifiedAt'] == null ? value['snapshotVerifiedAt'] : value['snapshotVerifiedAt'].toISOString(),
|
|
@@ -0,0 +1,74 @@
|
|
|
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 SandboxProcess
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxProcess {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SandboxProcess
|
|
22
|
+
*/
|
|
23
|
+
pid: number;
|
|
24
|
+
/**
|
|
25
|
+
* Live list only.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SandboxProcess
|
|
28
|
+
*/
|
|
29
|
+
parentPid?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Live list only.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxProcess
|
|
34
|
+
*/
|
|
35
|
+
user?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SandboxProcess
|
|
40
|
+
*/
|
|
41
|
+
cpuPercent?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Resident memory.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof SandboxProcess
|
|
46
|
+
*/
|
|
47
|
+
memoryMB?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Live list only.
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof SandboxProcess
|
|
52
|
+
*/
|
|
53
|
+
startedAt?: Date;
|
|
54
|
+
/**
|
|
55
|
+
* The full command line (first 1000 characters; 120 in a stored sample).
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SandboxProcess
|
|
58
|
+
*/
|
|
59
|
+
command: string;
|
|
60
|
+
/**
|
|
61
|
+
* Live list: the history record holding this process's output, when it has one.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SandboxProcess
|
|
64
|
+
*/
|
|
65
|
+
commandId?: string | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the SandboxProcess interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfSandboxProcess(value: object): value is SandboxProcess;
|
|
71
|
+
export declare function SandboxProcessFromJSON(json: any): SandboxProcess;
|
|
72
|
+
export declare function SandboxProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxProcess;
|
|
73
|
+
export declare function SandboxProcessToJSON(json: any): SandboxProcess;
|
|
74
|
+
export declare function SandboxProcessToJSONTyped(value?: SandboxProcess | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
* Check if a given object implements the SandboxProcess interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSandboxProcess(value) {
|
|
18
|
+
if (!('pid' in value) || value['pid'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('command' in value) || value['command'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function SandboxProcessFromJSON(json) {
|
|
25
|
+
return SandboxProcessFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function SandboxProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'pid': json['pid'],
|
|
33
|
+
'parentPid': json['parentPid'] == null ? undefined : json['parentPid'],
|
|
34
|
+
'user': json['user'] == null ? undefined : json['user'],
|
|
35
|
+
'cpuPercent': json['cpuPercent'] == null ? undefined : json['cpuPercent'],
|
|
36
|
+
'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
|
|
37
|
+
'startedAt': json['startedAt'] == null ? undefined : (new Date(json['startedAt'])),
|
|
38
|
+
'command': json['command'],
|
|
39
|
+
'commandId': json['commandId'] == null ? undefined : json['commandId'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function SandboxProcessToJSON(json) {
|
|
43
|
+
return SandboxProcessToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function SandboxProcessToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'pid': value['pid'],
|
|
51
|
+
'parentPid': value['parentPid'],
|
|
52
|
+
'user': value['user'],
|
|
53
|
+
'cpuPercent': value['cpuPercent'],
|
|
54
|
+
'memoryMB': value['memoryMB'],
|
|
55
|
+
'startedAt': value['startedAt'] == null ? value['startedAt'] : value['startedAt'].toISOString(),
|
|
56
|
+
'command': value['command'],
|
|
57
|
+
'commandId': value['commandId'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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
|
+
import type { TelemetryConfigLastError } from './TelemetryConfigLastError';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TelemetryConfig
|
|
17
|
+
*/
|
|
18
|
+
export interface TelemetryConfig {
|
|
19
|
+
/**
|
|
20
|
+
* The OTLP/HTTP base URL. Boat posts to `<endpoint>/v1/metrics` and `<endpoint>/v1/logs`.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TelemetryConfig
|
|
23
|
+
*/
|
|
24
|
+
endpoint: string;
|
|
25
|
+
/**
|
|
26
|
+
* The names of the saved headers. The values are never returned.
|
|
27
|
+
* @type {Array<string>}
|
|
28
|
+
* @memberof TelemetryConfig
|
|
29
|
+
*/
|
|
30
|
+
headers: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
* The time of the last metrics export that the collector accepted.
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof TelemetryConfig
|
|
35
|
+
*/
|
|
36
|
+
lastExportAt: Date | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {TelemetryConfigLastError}
|
|
40
|
+
* @memberof TelemetryConfig
|
|
41
|
+
*/
|
|
42
|
+
lastError: TelemetryConfigLastError | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof TelemetryConfig
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the TelemetryConfig interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfTelemetryConfig(value: object): value is TelemetryConfig;
|
|
54
|
+
export declare function TelemetryConfigFromJSON(json: any): TelemetryConfig;
|
|
55
|
+
export declare function TelemetryConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelemetryConfig;
|
|
56
|
+
export declare function TelemetryConfigToJSON(json: any): TelemetryConfig;
|
|
57
|
+
export declare function TelemetryConfigToJSONTyped(value?: TelemetryConfig | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { TelemetryConfigLastErrorFromJSON, TelemetryConfigLastErrorToJSON, } from './TelemetryConfigLastError';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the TelemetryConfig interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfTelemetryConfig(value) {
|
|
19
|
+
if (!('endpoint' in value) || value['endpoint'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('headers' in value) || value['headers'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('lastExportAt' in value) || value['lastExportAt'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('lastError' in value) || value['lastError'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function TelemetryConfigFromJSON(json) {
|
|
32
|
+
return TelemetryConfigFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function TelemetryConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'endpoint': json['endpoint'],
|
|
40
|
+
'headers': json['headers'],
|
|
41
|
+
'lastExportAt': (json['lastExportAt'] == null ? null : new Date(json['lastExportAt'])),
|
|
42
|
+
'lastError': TelemetryConfigLastErrorFromJSON(json['lastError']),
|
|
43
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function TelemetryConfigToJSON(json) {
|
|
47
|
+
return TelemetryConfigToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function TelemetryConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'endpoint': value['endpoint'],
|
|
55
|
+
'headers': value['headers'],
|
|
56
|
+
'lastExportAt': value['lastExportAt'] == null ? value['lastExportAt'] : value['lastExportAt'].toISOString(),
|
|
57
|
+
'lastError': TelemetryConfigLastErrorToJSON(value['lastError']),
|
|
58
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* The most recent error from the collector, for metrics or events.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TelemetryConfigLastError
|
|
16
|
+
*/
|
|
17
|
+
export interface TelemetryConfigLastError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TelemetryConfigLastError
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* HTTP status, or null for a network error.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TelemetryConfigLastError
|
|
28
|
+
*/
|
|
29
|
+
status: number | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof TelemetryConfigLastError
|
|
34
|
+
*/
|
|
35
|
+
at: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TelemetryConfigLastError interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfTelemetryConfigLastError(value: object): value is TelemetryConfigLastError;
|
|
41
|
+
export declare function TelemetryConfigLastErrorFromJSON(json: any): TelemetryConfigLastError;
|
|
42
|
+
export declare function TelemetryConfigLastErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelemetryConfigLastError;
|
|
43
|
+
export declare function TelemetryConfigLastErrorToJSON(json: any): TelemetryConfigLastError;
|
|
44
|
+
export declare function TelemetryConfigLastErrorToJSONTyped(value?: TelemetryConfigLastError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Check if a given object implements the TelemetryConfigLastError interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTelemetryConfigLastError(value) {
|
|
18
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('at' in value) || value['at'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function TelemetryConfigLastErrorFromJSON(json) {
|
|
27
|
+
return TelemetryConfigLastErrorFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function TelemetryConfigLastErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'message': json['message'],
|
|
35
|
+
'status': json['status'],
|
|
36
|
+
'at': (new Date(json['at'])),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function TelemetryConfigLastErrorToJSON(json) {
|
|
40
|
+
return TelemetryConfigLastErrorToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function TelemetryConfigLastErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'message': value['message'],
|
|
48
|
+
'status': value['status'],
|
|
49
|
+
'at': value['at'].toISOString(),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { TelemetryConfig } from './TelemetryConfig';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TelemetryResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface TelemetryResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof TelemetryResponse
|
|
23
|
+
*/
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Stable success envelope discriminator added by v1.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TelemetryResponse
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {TelemetryConfig}
|
|
34
|
+
* @memberof TelemetryResponse
|
|
35
|
+
*/
|
|
36
|
+
telemetry: TelemetryConfig | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the TelemetryResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfTelemetryResponse(value: object): value is TelemetryResponse;
|
|
42
|
+
export declare function TelemetryResponseFromJSON(json: any): TelemetryResponse;
|
|
43
|
+
export declare function TelemetryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelemetryResponse;
|
|
44
|
+
export declare function TelemetryResponseToJSON(json: any): TelemetryResponse;
|
|
45
|
+
export declare function TelemetryResponseToJSONTyped(value?: TelemetryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { TelemetryConfigFromJSON, TelemetryConfigToJSON, } from './TelemetryConfig';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the TelemetryResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfTelemetryResponse(value) {
|
|
19
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('telemetry' in value) || value['telemetry'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function TelemetryResponseFromJSON(json) {
|
|
28
|
+
return TelemetryResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function TelemetryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'ok': json['ok'],
|
|
36
|
+
'type': json['type'],
|
|
37
|
+
'telemetry': TelemetryConfigFromJSON(json['telemetry']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function TelemetryResponseToJSON(json) {
|
|
41
|
+
return TelemetryResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function TelemetryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'ok': value['ok'],
|
|
49
|
+
'type': value['type'],
|
|
50
|
+
'telemetry': TelemetryConfigToJSON(value['telemetry']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 TelemetrySetRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface TelemetrySetRequest {
|
|
18
|
+
/**
|
|
19
|
+
* HTTPS URL on port 443 or 4318. Boat removes a trailing `/v1/metrics` or `/v1/logs`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TelemetrySetRequest
|
|
22
|
+
*/
|
|
23
|
+
endpoint: string;
|
|
24
|
+
/**
|
|
25
|
+
* Headers sent with every export, for example the vendor API key. Boat encrypts them at rest.
|
|
26
|
+
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @memberof TelemetrySetRequest
|
|
28
|
+
*/
|
|
29
|
+
headers?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the TelemetrySetRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfTelemetrySetRequest(value: object): value is TelemetrySetRequest;
|
|
37
|
+
export declare function TelemetrySetRequestFromJSON(json: any): TelemetrySetRequest;
|
|
38
|
+
export declare function TelemetrySetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelemetrySetRequest;
|
|
39
|
+
export declare function TelemetrySetRequestToJSON(json: any): TelemetrySetRequest;
|
|
40
|
+
export declare function TelemetrySetRequestToJSONTyped(value?: TelemetrySetRequest | null, ignoreDiscriminator?: boolean): any;
|