@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
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`ok` | boolean
|
|
10
10
|
`type` | string
|
|
11
11
|
`success` | boolean
|
|
12
|
+
`commandId` | string
|
|
12
13
|
`exitCode` | number
|
|
13
14
|
`signal` | string
|
|
14
15
|
`oomKilled` | boolean
|
|
@@ -36,6 +37,7 @@ const example = {
|
|
|
36
37
|
"ok": null,
|
|
37
38
|
"type": null,
|
|
38
39
|
"success": null,
|
|
40
|
+
"commandId": null,
|
|
39
41
|
"exitCode": null,
|
|
40
42
|
"signal": null,
|
|
41
43
|
"oomKilled": null,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
|
|
2
|
+
# CommandAttachFrame
|
|
3
|
+
|
|
4
|
+
One line of `GET /sandboxes/{sandboxId}/commands/{processId}/stream` (application/x-ndjson). - `attached`: first line. `processId`, `stdoutOffset`, `stderrOffset` (where the output starts). - `stdout` / `stderr`: a chunk. `data`, and `nextOffset` for that stream. - `heartbeat`: sent after 15 s with no other line. - `exit`: last line when the command ended and all its output was sent. `status`, `exitCode`, `signal`, `stdoutOffset`, `stderrOffset`. - `reconnect`: last line after 10 minutes. Open the stream again with its `stdoutOffset` and `stderrOffset`. Nothing is lost or repeated. - `error`: last line on a failure. `error`, `message`, `stdoutOffset`, `stderrOffset`.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`type` | string
|
|
11
|
+
`processId` | number
|
|
12
|
+
`data` | string
|
|
13
|
+
`nextOffset` | number
|
|
14
|
+
`stdoutOffset` | number
|
|
15
|
+
`stderrOffset` | number
|
|
16
|
+
`status` | string
|
|
17
|
+
`exitCode` | number
|
|
18
|
+
`signal` | string
|
|
19
|
+
`error` | string
|
|
20
|
+
`message` | string
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import type { CommandAttachFrame } from '@boatdev/sdk'
|
|
26
|
+
|
|
27
|
+
// TODO: Update the object below with actual values
|
|
28
|
+
const example = {
|
|
29
|
+
"type": null,
|
|
30
|
+
"processId": null,
|
|
31
|
+
"data": null,
|
|
32
|
+
"nextOffset": null,
|
|
33
|
+
"stdoutOffset": null,
|
|
34
|
+
"stderrOffset": null,
|
|
35
|
+
"status": null,
|
|
36
|
+
"exitCode": null,
|
|
37
|
+
"signal": null,
|
|
38
|
+
"error": null,
|
|
39
|
+
"message": null,
|
|
40
|
+
} satisfies CommandAttachFrame
|
|
41
|
+
|
|
42
|
+
console.log(example)
|
|
43
|
+
|
|
44
|
+
// Convert the instance to a JSON string
|
|
45
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
46
|
+
console.log(exampleJSON)
|
|
47
|
+
|
|
48
|
+
// Parse the JSON string back to an object
|
|
49
|
+
const exampleParsed = JSON.parse(exampleJSON) as CommandAttachFrame
|
|
50
|
+
console.log(exampleParsed)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# CommandInfoResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`ok` | boolean
|
|
10
|
+
`type` | string
|
|
11
|
+
`command` | [CommandRecord](CommandRecord.md)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { CommandInfoResponse } from '@boatdev/sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"ok": null,
|
|
21
|
+
"type": null,
|
|
22
|
+
"command": null,
|
|
23
|
+
} satisfies CommandInfoResponse
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as CommandInfoResponse
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# CommandListResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`ok` | boolean
|
|
10
|
+
`type` | string
|
|
11
|
+
`commands` | [Array<CommandRecord>](CommandRecord.md)
|
|
12
|
+
`nextCursor` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { CommandListResponse } from '@boatdev/sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"ok": null,
|
|
22
|
+
"type": null,
|
|
23
|
+
"commands": null,
|
|
24
|
+
"nextCursor": null,
|
|
25
|
+
} satisfies CommandListResponse
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as CommandListResponse
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# CommandLogsResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`ok` | boolean
|
|
10
|
+
`type` | string
|
|
11
|
+
`commandId` | string
|
|
12
|
+
`stream` | string
|
|
13
|
+
`offset` | number
|
|
14
|
+
`nextOffset` | number
|
|
15
|
+
`size` | number
|
|
16
|
+
`encoding` | string
|
|
17
|
+
`data` | string
|
|
18
|
+
`done` | boolean
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { CommandLogsResponse } from '@boatdev/sdk'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"ok": null,
|
|
28
|
+
"type": null,
|
|
29
|
+
"commandId": null,
|
|
30
|
+
"stream": null,
|
|
31
|
+
"offset": null,
|
|
32
|
+
"nextOffset": null,
|
|
33
|
+
"size": null,
|
|
34
|
+
"encoding": null,
|
|
35
|
+
"data": null,
|
|
36
|
+
"done": null,
|
|
37
|
+
} satisfies CommandLogsResponse
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as CommandLogsResponse
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
|
|
2
|
+
# CommandRecord
|
|
3
|
+
|
|
4
|
+
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.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`commandId` | string
|
|
11
|
+
`sandboxId` | string
|
|
12
|
+
`command` | string
|
|
13
|
+
`cwd` | string
|
|
14
|
+
`mode` | string
|
|
15
|
+
`processId` | number
|
|
16
|
+
`status` | string
|
|
17
|
+
`exitCode` | number
|
|
18
|
+
`signal` | string
|
|
19
|
+
`stdoutBytes` | number
|
|
20
|
+
`stderrBytes` | number
|
|
21
|
+
`outputTruncated` | boolean
|
|
22
|
+
`startedAt` | Date
|
|
23
|
+
`finishedAt` | Date
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import type { CommandRecord } from '@boatdev/sdk'
|
|
29
|
+
|
|
30
|
+
// TODO: Update the object below with actual values
|
|
31
|
+
const example = {
|
|
32
|
+
"commandId": null,
|
|
33
|
+
"sandboxId": null,
|
|
34
|
+
"command": null,
|
|
35
|
+
"cwd": null,
|
|
36
|
+
"mode": null,
|
|
37
|
+
"processId": null,
|
|
38
|
+
"status": null,
|
|
39
|
+
"exitCode": null,
|
|
40
|
+
"signal": null,
|
|
41
|
+
"stdoutBytes": null,
|
|
42
|
+
"stderrBytes": null,
|
|
43
|
+
"outputTruncated": null,
|
|
44
|
+
"startedAt": null,
|
|
45
|
+
"finishedAt": null,
|
|
46
|
+
} satisfies CommandRecord
|
|
47
|
+
|
|
48
|
+
console.log(example)
|
|
49
|
+
|
|
50
|
+
// Convert the instance to a JSON string
|
|
51
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
52
|
+
console.log(exampleJSON)
|
|
53
|
+
|
|
54
|
+
// Parse the JSON string back to an object
|
|
55
|
+
const exampleParsed = JSON.parse(exampleJSON) as CommandRecord
|
|
56
|
+
console.log(exampleParsed)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
package/docs/CommandResponse.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`ok` | boolean
|
|
10
10
|
`type` | string
|
|
11
11
|
`success` | boolean
|
|
12
|
+
`commandId` | string
|
|
12
13
|
`exitCode` | number
|
|
13
14
|
`signal` | string
|
|
14
15
|
`oomKilled` | boolean
|
|
@@ -31,6 +32,7 @@ const example = {
|
|
|
31
32
|
"ok": null,
|
|
32
33
|
"type": null,
|
|
33
34
|
"success": null,
|
|
35
|
+
"commandId": null,
|
|
34
36
|
"exitCode": null,
|
|
35
37
|
"signal": null,
|
|
36
38
|
"oomKilled": null,
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`ok` | boolean
|
|
10
10
|
`type` | string
|
|
11
11
|
`success` | boolean
|
|
12
|
+
`commandId` | string
|
|
12
13
|
`processId` | number
|
|
13
14
|
`pid` | number
|
|
14
15
|
`command` | string
|
|
@@ -27,6 +28,7 @@ const example = {
|
|
|
27
28
|
"ok": null,
|
|
28
29
|
"type": null,
|
|
29
30
|
"success": null,
|
|
31
|
+
"commandId": null,
|
|
30
32
|
"processId": null,
|
|
31
33
|
"pid": null,
|
|
32
34
|
"command": null,
|
|
@@ -27,6 +27,11 @@ Name | Type
|
|
|
27
27
|
`stderrTruncated` | boolean
|
|
28
28
|
`logPath` | string
|
|
29
29
|
`errLogPath` | string
|
|
30
|
+
`stdoutOffset` | number
|
|
31
|
+
`stderrOffset` | number
|
|
32
|
+
`stdoutNextOffset` | number
|
|
33
|
+
`stderrNextOffset` | number
|
|
34
|
+
`more` | boolean
|
|
30
35
|
|
|
31
36
|
## Example
|
|
32
37
|
|
|
@@ -56,6 +61,11 @@ const example = {
|
|
|
56
61
|
"stderrTruncated": null,
|
|
57
62
|
"logPath": null,
|
|
58
63
|
"errLogPath": null,
|
|
64
|
+
"stdoutOffset": null,
|
|
65
|
+
"stderrOffset": null,
|
|
66
|
+
"stdoutNextOffset": null,
|
|
67
|
+
"stderrNextOffset": null,
|
|
68
|
+
"more": null,
|
|
59
69
|
} satisfies CommandStatusResponse
|
|
60
70
|
|
|
61
71
|
console.log(example)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# CommandStopResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`ok` | boolean
|
|
10
|
+
`type` | string
|
|
11
|
+
`processId` | number
|
|
12
|
+
`running` | boolean
|
|
13
|
+
`signaled` | boolean
|
|
14
|
+
`command` | [CommandRecord](CommandRecord.md)
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { CommandStopResponse } from '@boatdev/sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"ok": null,
|
|
24
|
+
"type": null,
|
|
25
|
+
"processId": null,
|
|
26
|
+
"running": null,
|
|
27
|
+
"signaled": null,
|
|
28
|
+
"command": null,
|
|
29
|
+
} satisfies CommandStopResponse
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as CommandStopResponse
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -8,6 +8,7 @@ One line of a streamed command. `started` first, then `stdout`/`stderr` chunks,
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`type` | string
|
|
11
|
+
`commandId` | string
|
|
11
12
|
`data` | string
|
|
12
13
|
`exitCode` | number
|
|
13
14
|
`success` | boolean
|
|
@@ -24,6 +25,7 @@ import type { CommandStreamFrame } from '@boatdev/sdk'
|
|
|
24
25
|
// TODO: Update the object below with actual values
|
|
25
26
|
const example = {
|
|
26
27
|
"type": null,
|
|
28
|
+
"commandId": null,
|
|
27
29
|
"data": null,
|
|
28
30
|
"exitCode": null,
|
|
29
31
|
"success": null,
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`environment` | string
|
|
14
14
|
`noEnv` | boolean
|
|
15
15
|
`snapshots` | boolean
|
|
16
|
+
`monitoring` | boolean
|
|
16
17
|
`failFast` | boolean
|
|
17
18
|
`setupScript` | string
|
|
18
19
|
`org` | string
|
|
@@ -32,6 +33,7 @@ const example = {
|
|
|
32
33
|
"environment": null,
|
|
33
34
|
"noEnv": null,
|
|
34
35
|
"snapshots": null,
|
|
36
|
+
"monitoring": null,
|
|
35
37
|
"failFast": null,
|
|
36
38
|
"setupScript": null,
|
|
37
39
|
"org": null,
|
|
@@ -14,6 +14,8 @@ Name | Type
|
|
|
14
14
|
`acceptedDeletionOperationsIrreversible` | boolean
|
|
15
15
|
`snapshotsOff` | boolean
|
|
16
16
|
`snapshotsOffAt` | Date
|
|
17
|
+
`monitoringOff` | boolean
|
|
18
|
+
`monitoringOffAt` | Date
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -30,6 +32,8 @@ const example = {
|
|
|
30
32
|
"acceptedDeletionOperationsIrreversible": null,
|
|
31
33
|
"snapshotsOff": null,
|
|
32
34
|
"snapshotsOffAt": null,
|
|
35
|
+
"monitoringOff": null,
|
|
36
|
+
"monitoringOffAt": null,
|
|
33
37
|
} satisfies DataRetentionPolicyResponse
|
|
34
38
|
|
|
35
39
|
console.log(example)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
# DataRetentionUpdateRequest
|
|
3
3
|
|
|
4
|
-
Pass `enabled` to change zero data retention, or `snapshotsOff` alone to change
|
|
4
|
+
Pass `enabled` to change zero data retention, or `snapshotsOff` or `monitoringOff` alone to change that account setting.
|
|
5
5
|
|
|
6
6
|
## Properties
|
|
7
7
|
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`enabled` | boolean
|
|
11
11
|
`snapshotsOff` | boolean
|
|
12
|
+
`monitoringOff` | boolean
|
|
12
13
|
`confirmation` | string
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -20,6 +21,7 @@ import type { DataRetentionUpdateRequest } from '@boatdev/sdk'
|
|
|
20
21
|
const example = {
|
|
21
22
|
"enabled": null,
|
|
22
23
|
"snapshotsOff": null,
|
|
24
|
+
"monitoringOff": null,
|
|
23
25
|
"confirmation": null,
|
|
24
26
|
} satisfies DataRetentionUpdateRequest
|
|
25
27
|
|
package/docs/ForkRequest.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`failFast` | boolean
|
|
10
|
+
`monitoring` | boolean
|
|
10
11
|
`env` | { [key: string]: string; }
|
|
11
12
|
`environment` | string
|
|
12
13
|
`noEnv` | boolean
|
|
@@ -21,6 +22,7 @@ import type { ForkRequest } from '@boatdev/sdk'
|
|
|
21
22
|
// TODO: Update the object below with actual values
|
|
22
23
|
const example = {
|
|
23
24
|
"failFast": null,
|
|
25
|
+
"monitoring": null,
|
|
24
26
|
"env": null,
|
|
25
27
|
"environment": null,
|
|
26
28
|
"noEnv": null,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# ProcessListResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`ok` | boolean
|
|
10
|
+
`type` | string
|
|
11
|
+
`live` | boolean
|
|
12
|
+
`sampledAt` | Date
|
|
13
|
+
`total` | number
|
|
14
|
+
`processes` | [Array<SandboxProcess>](SandboxProcess.md)
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { ProcessListResponse } from '@boatdev/sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"ok": null,
|
|
24
|
+
"type": null,
|
|
25
|
+
"live": null,
|
|
26
|
+
"sampledAt": null,
|
|
27
|
+
"total": null,
|
|
28
|
+
"processes": null,
|
|
29
|
+
} satisfies ProcessListResponse
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProcessListResponse
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
package/docs/Sandbox.md
CHANGED
|
@@ -29,6 +29,7 @@ Name | Type
|
|
|
29
29
|
`desktopAvailable` | boolean
|
|
30
30
|
`desktopUrl` | string
|
|
31
31
|
`snapshots` | boolean
|
|
32
|
+
`monitoring` | boolean
|
|
32
33
|
`snapshotAvailable` | boolean
|
|
33
34
|
`snapshotCompletedAt` | Date
|
|
34
35
|
`snapshotVerifiedAt` | Date
|
|
@@ -77,6 +78,7 @@ const example = {
|
|
|
77
78
|
"desktopAvailable": null,
|
|
78
79
|
"desktopUrl": null,
|
|
79
80
|
"snapshots": null,
|
|
81
|
+
"monitoring": null,
|
|
80
82
|
"snapshotAvailable": null,
|
|
81
83
|
"snapshotCompletedAt": null,
|
|
82
84
|
"snapshotVerifiedAt": null,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# SandboxProcess
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`pid` | number
|
|
10
|
+
`parentPid` | number
|
|
11
|
+
`user` | string
|
|
12
|
+
`cpuPercent` | number
|
|
13
|
+
`memoryMB` | number
|
|
14
|
+
`startedAt` | Date
|
|
15
|
+
`command` | string
|
|
16
|
+
`commandId` | string
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { SandboxProcess } from '@boatdev/sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"pid": null,
|
|
26
|
+
"parentPid": null,
|
|
27
|
+
"user": null,
|
|
28
|
+
"cpuPercent": null,
|
|
29
|
+
"memoryMB": null,
|
|
30
|
+
"startedAt": null,
|
|
31
|
+
"command": null,
|
|
32
|
+
"commandId": null,
|
|
33
|
+
} satisfies SandboxProcess
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as SandboxProcess
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# TelemetryConfig
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`endpoint` | string
|
|
10
|
+
`headers` | Array<string>
|
|
11
|
+
`lastExportAt` | Date
|
|
12
|
+
`lastError` | [TelemetryConfigLastError](TelemetryConfigLastError.md)
|
|
13
|
+
`createdAt` | Date
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { TelemetryConfig } from '@boatdev/sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"endpoint": null,
|
|
23
|
+
"headers": null,
|
|
24
|
+
"lastExportAt": null,
|
|
25
|
+
"lastError": null,
|
|
26
|
+
"createdAt": null,
|
|
27
|
+
} satisfies TelemetryConfig
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as TelemetryConfig
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
# TelemetryConfigLastError
|
|
3
|
+
|
|
4
|
+
The most recent error from the collector, for metrics or events.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`message` | string
|
|
11
|
+
`status` | number
|
|
12
|
+
`at` | Date
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { TelemetryConfigLastError } from '@boatdev/sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"message": null,
|
|
22
|
+
"status": null,
|
|
23
|
+
"at": null,
|
|
24
|
+
} satisfies TelemetryConfigLastError
|
|
25
|
+
|
|
26
|
+
console.log(example)
|
|
27
|
+
|
|
28
|
+
// Convert the instance to a JSON string
|
|
29
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
30
|
+
console.log(exampleJSON)
|
|
31
|
+
|
|
32
|
+
// Parse the JSON string back to an object
|
|
33
|
+
const exampleParsed = JSON.parse(exampleJSON) as TelemetryConfigLastError
|
|
34
|
+
console.log(exampleParsed)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# TelemetryResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`ok` | boolean
|
|
10
|
+
`type` | string
|
|
11
|
+
`telemetry` | [TelemetryConfig](TelemetryConfig.md)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { TelemetryResponse } from '@boatdev/sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"ok": null,
|
|
21
|
+
"type": null,
|
|
22
|
+
"telemetry": null,
|
|
23
|
+
} satisfies TelemetryResponse
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as TelemetryResponse
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|