@boatdev/sdk 1.9.2 → 1.9.4
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/HostPortRequest.d.ts +6 -0
- package/dist/esm/models/HostPortRequest.js +2 -0
- package/dist/esm/models/HostPortResponse.d.ts +6 -0
- package/dist/esm/models/HostPortResponse.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/HostPortRequest.d.ts +6 -0
- package/dist/models/HostPortRequest.js +2 -0
- package/dist/models/HostPortResponse.d.ts +6 -0
- package/dist/models/HostPortResponse.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/HostPortRequest.md +2 -0
- package/docs/HostPortResponse.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/HostPortRequest.ts +8 -0
- package/src/models/HostPortResponse.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,121 @@
|
|
|
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 line of `GET /sandboxes/{sandboxId}/commands/{processId}/stream` (application/x-ndjson).
|
|
14
|
+
* - `attached`: first line. `processId`, `stdoutOffset`, `stderrOffset` (where the output starts).
|
|
15
|
+
* - `stdout` / `stderr`: a chunk. `data`, and `nextOffset` for that stream.
|
|
16
|
+
* - `heartbeat`: sent after 15 s with no other line.
|
|
17
|
+
* - `exit`: last line when the command ended and all its output was sent. `status`, `exitCode`, `signal`, `stdoutOffset`, `stderrOffset`.
|
|
18
|
+
* - `reconnect`: last line after 10 minutes. Open the stream again with its `stdoutOffset` and `stderrOffset`. Nothing is lost or repeated.
|
|
19
|
+
* - `error`: last line on a failure. `error`, `message`, `stdoutOffset`, `stderrOffset`.
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface CommandAttachFrame
|
|
23
|
+
*/
|
|
24
|
+
export interface CommandAttachFrame {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {CommandAttachFrameTypeEnum}
|
|
28
|
+
* @memberof CommandAttachFrame
|
|
29
|
+
*/
|
|
30
|
+
type: CommandAttachFrameTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof CommandAttachFrame
|
|
35
|
+
*/
|
|
36
|
+
processId?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CommandAttachFrame
|
|
41
|
+
*/
|
|
42
|
+
data?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof CommandAttachFrame
|
|
47
|
+
*/
|
|
48
|
+
nextOffset?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof CommandAttachFrame
|
|
53
|
+
*/
|
|
54
|
+
stdoutOffset?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof CommandAttachFrame
|
|
59
|
+
*/
|
|
60
|
+
stderrOffset?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {CommandAttachFrameStatusEnum}
|
|
64
|
+
* @memberof CommandAttachFrame
|
|
65
|
+
*/
|
|
66
|
+
status?: CommandAttachFrameStatusEnum;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof CommandAttachFrame
|
|
71
|
+
*/
|
|
72
|
+
exitCode?: number | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CommandAttachFrame
|
|
77
|
+
*/
|
|
78
|
+
signal?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CommandAttachFrame
|
|
83
|
+
*/
|
|
84
|
+
error?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof CommandAttachFrame
|
|
89
|
+
*/
|
|
90
|
+
message?: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export declare const CommandAttachFrameTypeEnum: {
|
|
96
|
+
readonly Attached: 'attached';
|
|
97
|
+
readonly Stdout: 'stdout';
|
|
98
|
+
readonly Stderr: 'stderr';
|
|
99
|
+
readonly Heartbeat: 'heartbeat';
|
|
100
|
+
readonly Exit: 'exit';
|
|
101
|
+
readonly Reconnect: 'reconnect';
|
|
102
|
+
readonly Error: 'error';
|
|
103
|
+
};
|
|
104
|
+
export type CommandAttachFrameTypeEnum = typeof CommandAttachFrameTypeEnum[keyof typeof CommandAttachFrameTypeEnum];
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export declare const CommandAttachFrameStatusEnum: {
|
|
109
|
+
readonly Running: 'running';
|
|
110
|
+
readonly Exited: 'exited';
|
|
111
|
+
readonly Lost: 'lost';
|
|
112
|
+
};
|
|
113
|
+
export type CommandAttachFrameStatusEnum = typeof CommandAttachFrameStatusEnum[keyof typeof CommandAttachFrameStatusEnum];
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the CommandAttachFrame interface.
|
|
116
|
+
*/
|
|
117
|
+
export declare function instanceOfCommandAttachFrame(value: object): value is CommandAttachFrame;
|
|
118
|
+
export declare function CommandAttachFrameFromJSON(json: any): CommandAttachFrame;
|
|
119
|
+
export declare function CommandAttachFrameFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommandAttachFrame;
|
|
120
|
+
export declare function CommandAttachFrameToJSON(json: any): CommandAttachFrame;
|
|
121
|
+
export declare function CommandAttachFrameToJSONTyped(value?: CommandAttachFrame | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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 CommandAttachFrameTypeEnum = {
|
|
18
|
+
Attached: 'attached',
|
|
19
|
+
Stdout: 'stdout',
|
|
20
|
+
Stderr: 'stderr',
|
|
21
|
+
Heartbeat: 'heartbeat',
|
|
22
|
+
Exit: 'exit',
|
|
23
|
+
Reconnect: 'reconnect',
|
|
24
|
+
Error: 'error'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const CommandAttachFrameStatusEnum = {
|
|
30
|
+
Running: 'running',
|
|
31
|
+
Exited: 'exited',
|
|
32
|
+
Lost: 'lost'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the CommandAttachFrame interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfCommandAttachFrame(value) {
|
|
38
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
export function CommandAttachFrameFromJSON(json) {
|
|
43
|
+
return CommandAttachFrameFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function CommandAttachFrameFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'type': json['type'],
|
|
51
|
+
'processId': json['processId'] == null ? undefined : json['processId'],
|
|
52
|
+
'data': json['data'] == null ? undefined : json['data'],
|
|
53
|
+
'nextOffset': json['nextOffset'] == null ? undefined : json['nextOffset'],
|
|
54
|
+
'stdoutOffset': json['stdoutOffset'] == null ? undefined : json['stdoutOffset'],
|
|
55
|
+
'stderrOffset': json['stderrOffset'] == null ? undefined : json['stderrOffset'],
|
|
56
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
57
|
+
'exitCode': json['exitCode'] == null ? undefined : json['exitCode'],
|
|
58
|
+
'signal': json['signal'] == null ? undefined : json['signal'],
|
|
59
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
60
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function CommandAttachFrameToJSON(json) {
|
|
64
|
+
return CommandAttachFrameToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
export function CommandAttachFrameToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'type': value['type'],
|
|
72
|
+
'processId': value['processId'],
|
|
73
|
+
'data': value['data'],
|
|
74
|
+
'nextOffset': value['nextOffset'],
|
|
75
|
+
'stdoutOffset': value['stdoutOffset'],
|
|
76
|
+
'stderrOffset': value['stderrOffset'],
|
|
77
|
+
'status': value['status'],
|
|
78
|
+
'exitCode': value['exitCode'],
|
|
79
|
+
'signal': value['signal'],
|
|
80
|
+
'error': value['error'],
|
|
81
|
+
'message': value['message'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 CommandInfoResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CommandInfoResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof CommandInfoResponse
|
|
23
|
+
*/
|
|
24
|
+
ok: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {CommandInfoResponseTypeEnum}
|
|
28
|
+
* @memberof CommandInfoResponse
|
|
29
|
+
*/
|
|
30
|
+
type: CommandInfoResponseTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {CommandRecord}
|
|
34
|
+
* @memberof CommandInfoResponse
|
|
35
|
+
*/
|
|
36
|
+
command: CommandRecord;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const CommandInfoResponseTypeEnum: {
|
|
42
|
+
readonly CommandInfo: 'command.info';
|
|
43
|
+
};
|
|
44
|
+
export type CommandInfoResponseTypeEnum = typeof CommandInfoResponseTypeEnum[keyof typeof CommandInfoResponseTypeEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CommandInfoResponse interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCommandInfoResponse(value: object): value is CommandInfoResponse;
|
|
49
|
+
export declare function CommandInfoResponseFromJSON(json: any): CommandInfoResponse;
|
|
50
|
+
export declare function CommandInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommandInfoResponse;
|
|
51
|
+
export declare function CommandInfoResponseToJSON(json: any): CommandInfoResponse;
|
|
52
|
+
export declare function CommandInfoResponseToJSONTyped(value?: CommandInfoResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { CommandRecordFromJSON, CommandRecordToJSON, } from './CommandRecord';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const CommandInfoResponseTypeEnum = {
|
|
19
|
+
CommandInfo: 'command.info'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CommandInfoResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfCommandInfoResponse(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 (!('command' in value) || value['command'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function CommandInfoResponseFromJSON(json) {
|
|
34
|
+
return CommandInfoResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function CommandInfoResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'ok': json['ok'],
|
|
42
|
+
'type': json['type'],
|
|
43
|
+
'command': CommandRecordFromJSON(json['command']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function CommandInfoResponseToJSON(json) {
|
|
47
|
+
return CommandInfoResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function CommandInfoResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'ok': value['ok'],
|
|
55
|
+
'type': value['type'],
|
|
56
|
+
'command': CommandRecordToJSON(value['command']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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,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 { CommandRecordFromJSON, CommandRecordToJSON, } from './CommandRecord';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const CommandListResponseTypeEnum = {
|
|
19
|
+
CommandList: 'command.list'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CommandListResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfCommandListResponse(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 (!('commands' in value) || value['commands'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function CommandListResponseFromJSON(json) {
|
|
36
|
+
return CommandListResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function CommandListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'ok': json['ok'],
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
'commands': (json['commands'].map(CommandRecordFromJSON)),
|
|
46
|
+
'nextCursor': json['nextCursor'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function CommandListResponseToJSON(json) {
|
|
50
|
+
return CommandListResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function CommandListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'ok': value['ok'],
|
|
58
|
+
'type': value['type'],
|
|
59
|
+
'commands': (value['commands'].map(CommandRecordToJSON)),
|
|
60
|
+
'nextCursor': value['nextCursor'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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,99 @@
|
|
|
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 CommandLogsResponseTypeEnum = {
|
|
18
|
+
CommandLogs: 'command.logs'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export const CommandLogsResponseStreamEnum = {
|
|
24
|
+
Stdout: 'stdout',
|
|
25
|
+
Stderr: 'stderr'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export const CommandLogsResponseEncodingEnum = {
|
|
31
|
+
Utf8: 'utf8',
|
|
32
|
+
Base64: 'base64'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the CommandLogsResponse interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfCommandLogsResponse(value) {
|
|
38
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('commandId' in value) || value['commandId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('stream' in value) || value['stream'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('nextOffset' in value) || value['nextOffset'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('size' in value) || value['size'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('encoding' in value) || value['encoding'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('done' in value) || value['done'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
export function CommandLogsResponseFromJSON(json) {
|
|
61
|
+
return CommandLogsResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
export function CommandLogsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'ok': json['ok'],
|
|
69
|
+
'type': json['type'],
|
|
70
|
+
'commandId': json['commandId'],
|
|
71
|
+
'stream': json['stream'],
|
|
72
|
+
'offset': json['offset'],
|
|
73
|
+
'nextOffset': json['nextOffset'],
|
|
74
|
+
'size': json['size'],
|
|
75
|
+
'encoding': json['encoding'],
|
|
76
|
+
'data': json['data'],
|
|
77
|
+
'done': json['done'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export function CommandLogsResponseToJSON(json) {
|
|
81
|
+
return CommandLogsResponseToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
export function CommandLogsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
'ok': value['ok'],
|
|
89
|
+
'type': value['type'],
|
|
90
|
+
'commandId': value['commandId'],
|
|
91
|
+
'stream': value['stream'],
|
|
92
|
+
'offset': value['offset'],
|
|
93
|
+
'nextOffset': value['nextOffset'],
|
|
94
|
+
'size': value['size'],
|
|
95
|
+
'encoding': value['encoding'],
|
|
96
|
+
'data': value['data'],
|
|
97
|
+
'done': value['done'],
|
|
98
|
+
};
|
|
99
|
+
}
|