@boatdev/sdk 1.9.1 → 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
|
@@ -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 { CommandRecord } from './CommandRecord';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CommandListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CommandListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof CommandListResponse
|
|
23
|
+
*/
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {CommandListResponseTypeEnum}
|
|
28
|
+
* @memberof CommandListResponse
|
|
29
|
+
*/
|
|
30
|
+
type: CommandListResponseTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Newest first.
|
|
33
|
+
* @type {Array<CommandRecord>}
|
|
34
|
+
* @memberof CommandListResponse
|
|
35
|
+
*/
|
|
36
|
+
commands: Array<CommandRecord>;
|
|
37
|
+
/**
|
|
38
|
+
* Pass as `cursor` to get the next page. Null on the last page.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CommandListResponse
|
|
41
|
+
*/
|
|
42
|
+
nextCursor: string | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const CommandListResponseTypeEnum: {
|
|
48
|
+
readonly CommandList: 'command.list';
|
|
49
|
+
};
|
|
50
|
+
export type CommandListResponseTypeEnum = typeof CommandListResponseTypeEnum[keyof typeof CommandListResponseTypeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the CommandListResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfCommandListResponse(value: object): value is CommandListResponse;
|
|
55
|
+
export declare function CommandListResponseFromJSON(json: any): CommandListResponse;
|
|
56
|
+
export declare function CommandListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommandListResponse;
|
|
57
|
+
export declare function CommandListResponseToJSON(json: any): CommandListResponse;
|
|
58
|
+
export declare function CommandListResponseToJSONTyped(value?: CommandListResponse | 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.CommandListResponseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCommandListResponse = instanceOfCommandListResponse;
|
|
18
|
+
exports.CommandListResponseFromJSON = CommandListResponseFromJSON;
|
|
19
|
+
exports.CommandListResponseFromJSONTyped = CommandListResponseFromJSONTyped;
|
|
20
|
+
exports.CommandListResponseToJSON = CommandListResponseToJSON;
|
|
21
|
+
exports.CommandListResponseToJSONTyped = CommandListResponseToJSONTyped;
|
|
22
|
+
const CommandRecord_1 = require("./CommandRecord");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CommandListResponseTypeEnum = {
|
|
27
|
+
CommandList: 'command.list'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the CommandListResponse interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfCommandListResponse(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 (!('commands' in value) || value['commands'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function CommandListResponseFromJSON(json) {
|
|
44
|
+
return CommandListResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function CommandListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'ok': json['ok'],
|
|
52
|
+
'type': json['type'],
|
|
53
|
+
'commands': (json['commands'].map(CommandRecord_1.CommandRecordFromJSON)),
|
|
54
|
+
'nextCursor': json['nextCursor'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function CommandListResponseToJSON(json) {
|
|
58
|
+
return CommandListResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function CommandListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'ok': value['ok'],
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'commands': (value['commands'].map(CommandRecord_1.CommandRecordToJSON)),
|
|
68
|
+
'nextCursor': value['nextCursor'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 CommandLogsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CommandLogsResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof CommandLogsResponse
|
|
22
|
+
*/
|
|
23
|
+
ok: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {CommandLogsResponseTypeEnum}
|
|
27
|
+
* @memberof CommandLogsResponse
|
|
28
|
+
*/
|
|
29
|
+
type: CommandLogsResponseTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CommandLogsResponse
|
|
34
|
+
*/
|
|
35
|
+
commandId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {CommandLogsResponseStreamEnum}
|
|
39
|
+
* @memberof CommandLogsResponse
|
|
40
|
+
*/
|
|
41
|
+
stream: CommandLogsResponseStreamEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Byte position of the first byte in `data`. Greater than the requested offset only when output was not kept (see outputTruncated).
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CommandLogsResponse
|
|
46
|
+
*/
|
|
47
|
+
offset: number;
|
|
48
|
+
/**
|
|
49
|
+
* Pass as `offset` to read on.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CommandLogsResponse
|
|
52
|
+
*/
|
|
53
|
+
nextOffset: number;
|
|
54
|
+
/**
|
|
55
|
+
* Bytes the stream has so far.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof CommandLogsResponse
|
|
58
|
+
*/
|
|
59
|
+
size: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {CommandLogsResponseEncodingEnum}
|
|
63
|
+
* @memberof CommandLogsResponse
|
|
64
|
+
*/
|
|
65
|
+
encoding: CommandLogsResponseEncodingEnum;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CommandLogsResponse
|
|
70
|
+
*/
|
|
71
|
+
data: string;
|
|
72
|
+
/**
|
|
73
|
+
* True when the command ended and this read reached the end of the stream.
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof CommandLogsResponse
|
|
76
|
+
*/
|
|
77
|
+
done: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const CommandLogsResponseTypeEnum: {
|
|
83
|
+
readonly CommandLogs: 'command.logs';
|
|
84
|
+
};
|
|
85
|
+
export type CommandLogsResponseTypeEnum = typeof CommandLogsResponseTypeEnum[keyof typeof CommandLogsResponseTypeEnum];
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export declare const CommandLogsResponseStreamEnum: {
|
|
90
|
+
readonly Stdout: 'stdout';
|
|
91
|
+
readonly Stderr: 'stderr';
|
|
92
|
+
};
|
|
93
|
+
export type CommandLogsResponseStreamEnum = typeof CommandLogsResponseStreamEnum[keyof typeof CommandLogsResponseStreamEnum];
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export declare const CommandLogsResponseEncodingEnum: {
|
|
98
|
+
readonly Utf8: 'utf8';
|
|
99
|
+
readonly Base64: 'base64';
|
|
100
|
+
};
|
|
101
|
+
export type CommandLogsResponseEncodingEnum = typeof CommandLogsResponseEncodingEnum[keyof typeof CommandLogsResponseEncodingEnum];
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the CommandLogsResponse interface.
|
|
104
|
+
*/
|
|
105
|
+
export declare function instanceOfCommandLogsResponse(value: object): value is CommandLogsResponse;
|
|
106
|
+
export declare function CommandLogsResponseFromJSON(json: any): CommandLogsResponse;
|
|
107
|
+
export declare function CommandLogsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommandLogsResponse;
|
|
108
|
+
export declare function CommandLogsResponseToJSON(json: any): CommandLogsResponse;
|
|
109
|
+
export declare function CommandLogsResponseToJSONTyped(value?: CommandLogsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,107 @@
|
|
|
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.CommandLogsResponseEncodingEnum = exports.CommandLogsResponseStreamEnum = exports.CommandLogsResponseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCommandLogsResponse = instanceOfCommandLogsResponse;
|
|
18
|
+
exports.CommandLogsResponseFromJSON = CommandLogsResponseFromJSON;
|
|
19
|
+
exports.CommandLogsResponseFromJSONTyped = CommandLogsResponseFromJSONTyped;
|
|
20
|
+
exports.CommandLogsResponseToJSON = CommandLogsResponseToJSON;
|
|
21
|
+
exports.CommandLogsResponseToJSONTyped = CommandLogsResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CommandLogsResponseTypeEnum = {
|
|
26
|
+
CommandLogs: 'command.logs'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.CommandLogsResponseStreamEnum = {
|
|
32
|
+
Stdout: 'stdout',
|
|
33
|
+
Stderr: 'stderr'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.CommandLogsResponseEncodingEnum = {
|
|
39
|
+
Utf8: 'utf8',
|
|
40
|
+
Base64: 'base64'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CommandLogsResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
function instanceOfCommandLogsResponse(value) {
|
|
46
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('commandId' in value) || value['commandId'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('stream' in value) || value['stream'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('nextOffset' in value) || value['nextOffset'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('size' in value) || value['size'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('encoding' in value) || value['encoding'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('done' in value) || value['done'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
function CommandLogsResponseFromJSON(json) {
|
|
69
|
+
return CommandLogsResponseFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function CommandLogsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'ok': json['ok'],
|
|
77
|
+
'type': json['type'],
|
|
78
|
+
'commandId': json['commandId'],
|
|
79
|
+
'stream': json['stream'],
|
|
80
|
+
'offset': json['offset'],
|
|
81
|
+
'nextOffset': json['nextOffset'],
|
|
82
|
+
'size': json['size'],
|
|
83
|
+
'encoding': json['encoding'],
|
|
84
|
+
'data': json['data'],
|
|
85
|
+
'done': json['done'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function CommandLogsResponseToJSON(json) {
|
|
89
|
+
return CommandLogsResponseToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
function CommandLogsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
'ok': value['ok'],
|
|
97
|
+
'type': value['type'],
|
|
98
|
+
'commandId': value['commandId'],
|
|
99
|
+
'stream': value['stream'],
|
|
100
|
+
'offset': value['offset'],
|
|
101
|
+
'nextOffset': value['nextOffset'],
|
|
102
|
+
'size': value['size'],
|
|
103
|
+
'encoding': value['encoding'],
|
|
104
|
+
'data': value['data'],
|
|
105
|
+
'done': value['done'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
* One command run through the commands endpoint (kept 90 days), or one process of the sandbox with mode `process` (kept 72 hours). Readable while the sandbox is stopped.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CommandRecord
|
|
16
|
+
*/
|
|
17
|
+
export interface CommandRecord {
|
|
18
|
+
/**
|
|
19
|
+
* Id of the record in the command history.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CommandRecord
|
|
22
|
+
*/
|
|
23
|
+
commandId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CommandRecord
|
|
28
|
+
*/
|
|
29
|
+
sandboxId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The command text as sent (first 64 KiB).
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CommandRecord
|
|
34
|
+
*/
|
|
35
|
+
command: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CommandRecord
|
|
40
|
+
*/
|
|
41
|
+
cwd?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* sync: the request waited for the result. stream: the output was streamed. detached: started in the background. process: any other process of the sandbox, recorded from what it wrote to its stdout/stderr.
|
|
44
|
+
* @type {CommandRecordModeEnum}
|
|
45
|
+
* @memberof CommandRecord
|
|
46
|
+
*/
|
|
47
|
+
mode: CommandRecordModeEnum;
|
|
48
|
+
/**
|
|
49
|
+
* detached: the process id on the sandbox.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CommandRecord
|
|
52
|
+
*/
|
|
53
|
+
processId?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* failed: the command could not start or its result never arrived. killed: ended by a signal or by DELETE /commands/{processId}. lost: the sandbox stopped or its agent restarted while the command ran.
|
|
56
|
+
* @type {CommandRecordStatusEnum}
|
|
57
|
+
* @memberof CommandRecord
|
|
58
|
+
*/
|
|
59
|
+
status: CommandRecordStatusEnum;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CommandRecord
|
|
64
|
+
*/
|
|
65
|
+
exitCode?: number | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CommandRecord
|
|
70
|
+
*/
|
|
71
|
+
signal?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Bytes of stdout written so far.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof CommandRecord
|
|
76
|
+
*/
|
|
77
|
+
stdoutBytes: number;
|
|
78
|
+
/**
|
|
79
|
+
* Bytes of stderr written so far.
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof CommandRecord
|
|
82
|
+
*/
|
|
83
|
+
stderrBytes: number;
|
|
84
|
+
/**
|
|
85
|
+
* True when part of the output is not kept: the sandbox cut the output of a waiting command at 8 MiB, or the account wrote more than 10 MiB (compressed) of command output, or of process output, in one hour.
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof CommandRecord
|
|
88
|
+
*/
|
|
89
|
+
outputTruncated: boolean;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof CommandRecord
|
|
94
|
+
*/
|
|
95
|
+
startedAt: Date;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Date}
|
|
99
|
+
* @memberof CommandRecord
|
|
100
|
+
*/
|
|
101
|
+
finishedAt?: Date | null;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
export declare const CommandRecordModeEnum: {
|
|
107
|
+
readonly Sync: 'sync';
|
|
108
|
+
readonly Stream: 'stream';
|
|
109
|
+
readonly Detached: 'detached';
|
|
110
|
+
readonly Process: 'process';
|
|
111
|
+
};
|
|
112
|
+
export type CommandRecordModeEnum = typeof CommandRecordModeEnum[keyof typeof CommandRecordModeEnum];
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const CommandRecordStatusEnum: {
|
|
117
|
+
readonly Running: 'running';
|
|
118
|
+
readonly Exited: 'exited';
|
|
119
|
+
readonly TimedOut: 'timed_out';
|
|
120
|
+
readonly Failed: 'failed';
|
|
121
|
+
readonly Killed: 'killed';
|
|
122
|
+
readonly Lost: 'lost';
|
|
123
|
+
};
|
|
124
|
+
export type CommandRecordStatusEnum = typeof CommandRecordStatusEnum[keyof typeof CommandRecordStatusEnum];
|
|
125
|
+
/**
|
|
126
|
+
* Check if a given object implements the CommandRecord interface.
|
|
127
|
+
*/
|
|
128
|
+
export declare function instanceOfCommandRecord(value: object): value is CommandRecord;
|
|
129
|
+
export declare function CommandRecordFromJSON(json: any): CommandRecord;
|
|
130
|
+
export declare function CommandRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommandRecord;
|
|
131
|
+
export declare function CommandRecordToJSON(json: any): CommandRecord;
|
|
132
|
+
export declare function CommandRecordToJSONTyped(value?: CommandRecord | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,113 @@
|
|
|
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.CommandRecordStatusEnum = exports.CommandRecordModeEnum = void 0;
|
|
17
|
+
exports.instanceOfCommandRecord = instanceOfCommandRecord;
|
|
18
|
+
exports.CommandRecordFromJSON = CommandRecordFromJSON;
|
|
19
|
+
exports.CommandRecordFromJSONTyped = CommandRecordFromJSONTyped;
|
|
20
|
+
exports.CommandRecordToJSON = CommandRecordToJSON;
|
|
21
|
+
exports.CommandRecordToJSONTyped = CommandRecordToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CommandRecordModeEnum = {
|
|
26
|
+
Sync: 'sync',
|
|
27
|
+
Stream: 'stream',
|
|
28
|
+
Detached: 'detached',
|
|
29
|
+
Process: 'process'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.CommandRecordStatusEnum = {
|
|
35
|
+
Running: 'running',
|
|
36
|
+
Exited: 'exited',
|
|
37
|
+
TimedOut: 'timed_out',
|
|
38
|
+
Failed: 'failed',
|
|
39
|
+
Killed: 'killed',
|
|
40
|
+
Lost: 'lost'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CommandRecord interface.
|
|
44
|
+
*/
|
|
45
|
+
function instanceOfCommandRecord(value) {
|
|
46
|
+
if (!('commandId' in value) || value['commandId'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('command' in value) || value['command'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('stdoutBytes' in value) || value['stdoutBytes'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('stderrBytes' in value) || value['stderrBytes'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('outputTruncated' in value) || value['outputTruncated'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
function CommandRecordFromJSON(json) {
|
|
67
|
+
return CommandRecordFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function CommandRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'commandId': json['commandId'],
|
|
75
|
+
'sandboxId': json['sandboxId'],
|
|
76
|
+
'command': json['command'],
|
|
77
|
+
'cwd': json['cwd'] == null ? undefined : json['cwd'],
|
|
78
|
+
'mode': json['mode'],
|
|
79
|
+
'processId': json['processId'] == null ? undefined : json['processId'],
|
|
80
|
+
'status': json['status'],
|
|
81
|
+
'exitCode': json['exitCode'] == null ? undefined : json['exitCode'],
|
|
82
|
+
'signal': json['signal'] == null ? undefined : json['signal'],
|
|
83
|
+
'stdoutBytes': json['stdoutBytes'],
|
|
84
|
+
'stderrBytes': json['stderrBytes'],
|
|
85
|
+
'outputTruncated': json['outputTruncated'],
|
|
86
|
+
'startedAt': (new Date(json['startedAt'])),
|
|
87
|
+
'finishedAt': json['finishedAt'] == null ? undefined : (new Date(json['finishedAt'])),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function CommandRecordToJSON(json) {
|
|
91
|
+
return CommandRecordToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
function CommandRecordToJSONTyped(value, ignoreDiscriminator = false) {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
'commandId': value['commandId'],
|
|
99
|
+
'sandboxId': value['sandboxId'],
|
|
100
|
+
'command': value['command'],
|
|
101
|
+
'cwd': value['cwd'],
|
|
102
|
+
'mode': value['mode'],
|
|
103
|
+
'processId': value['processId'],
|
|
104
|
+
'status': value['status'],
|
|
105
|
+
'exitCode': value['exitCode'],
|
|
106
|
+
'signal': value['signal'],
|
|
107
|
+
'stdoutBytes': value['stdoutBytes'],
|
|
108
|
+
'stderrBytes': value['stderrBytes'],
|
|
109
|
+
'outputTruncated': value['outputTruncated'],
|
|
110
|
+
'startedAt': value['startedAt'].toISOString(),
|
|
111
|
+
'finishedAt': value['finishedAt'] == null ? value['finishedAt'] : value['finishedAt'].toISOString(),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -33,6 +33,12 @@ export interface CommandResponse {
|
|
|
33
33
|
* @memberof CommandResponse
|
|
34
34
|
*/
|
|
35
35
|
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The command's record in the command history.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CommandResponse
|
|
40
|
+
*/
|
|
41
|
+
commandId?: string;
|
|
36
42
|
/**
|
|
37
43
|
*
|
|
38
44
|
* @type {number}
|
|
@@ -56,6 +56,7 @@ function CommandResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'ok': json['ok'],
|
|
57
57
|
'type': json['type'],
|
|
58
58
|
'success': json['success'],
|
|
59
|
+
'commandId': json['commandId'] == null ? undefined : json['commandId'],
|
|
59
60
|
'exitCode': json['exitCode'],
|
|
60
61
|
'signal': json['signal'] == null ? undefined : json['signal'],
|
|
61
62
|
'oomKilled': json['oomKilled'] == null ? undefined : json['oomKilled'],
|
|
@@ -80,6 +81,7 @@ function CommandResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
80
81
|
'ok': value['ok'],
|
|
81
82
|
'type': value['type'],
|
|
82
83
|
'success': value['success'],
|
|
84
|
+
'commandId': value['commandId'],
|
|
83
85
|
'exitCode': value['exitCode'],
|
|
84
86
|
'signal': value['signal'],
|
|
85
87
|
'oomKilled': value['oomKilled'],
|
|
@@ -33,6 +33,12 @@ export interface CommandStartedResponse {
|
|
|
33
33
|
* @memberof CommandStartedResponse
|
|
34
34
|
*/
|
|
35
35
|
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The command's record in the command history. Its output is copied there every 30 s.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CommandStartedResponse
|
|
40
|
+
*/
|
|
41
|
+
commandId?: string;
|
|
36
42
|
/**
|
|
37
43
|
* Process id to poll with the command status endpoint.
|
|
38
44
|
* @type {number}
|
|
@@ -56,6 +56,7 @@ function CommandStartedResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'ok': json['ok'],
|
|
57
57
|
'type': json['type'],
|
|
58
58
|
'success': json['success'],
|
|
59
|
+
'commandId': json['commandId'] == null ? undefined : json['commandId'],
|
|
59
60
|
'processId': json['processId'],
|
|
60
61
|
'pid': json['pid'],
|
|
61
62
|
'command': json['command'],
|
|
@@ -76,6 +77,7 @@ function CommandStartedResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
77
|
'ok': value['ok'],
|
|
77
78
|
'type': value['type'],
|
|
78
79
|
'success': value['success'],
|
|
80
|
+
'commandId': value['commandId'],
|
|
79
81
|
'processId': value['processId'],
|
|
80
82
|
'pid': value['pid'],
|
|
81
83
|
'command': value['command'],
|