@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,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Boat Public API v1
|
|
5
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { TelemetryConfigFromJSON, TelemetryConfigToJSON, } from './TelemetryConfig';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the TelemetryResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfTelemetryResponse(value) {
|
|
19
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('telemetry' in value) || value['telemetry'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function TelemetryResponseFromJSON(json) {
|
|
28
|
+
return TelemetryResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function TelemetryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'ok': json['ok'],
|
|
36
|
+
'type': json['type'],
|
|
37
|
+
'telemetry': TelemetryConfigFromJSON(json['telemetry']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function TelemetryResponseToJSON(json) {
|
|
41
|
+
return TelemetryResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function TelemetryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'ok': value['ok'],
|
|
49
|
+
'type': value['type'],
|
|
50
|
+
'telemetry': TelemetryConfigToJSON(value['telemetry']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Boat Public API v1
|
|
3
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TelemetrySetRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface TelemetrySetRequest {
|
|
18
|
+
/**
|
|
19
|
+
* HTTPS URL on port 443 or 4318. Boat removes a trailing `/v1/metrics` or `/v1/logs`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TelemetrySetRequest
|
|
22
|
+
*/
|
|
23
|
+
endpoint: string;
|
|
24
|
+
/**
|
|
25
|
+
* Headers sent with every export, for example the vendor API key. Boat encrypts them at rest.
|
|
26
|
+
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @memberof TelemetrySetRequest
|
|
28
|
+
*/
|
|
29
|
+
headers?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the TelemetrySetRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfTelemetrySetRequest(value: object): value is TelemetrySetRequest;
|
|
37
|
+
export declare function TelemetrySetRequestFromJSON(json: any): TelemetrySetRequest;
|
|
38
|
+
export declare function TelemetrySetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelemetrySetRequest;
|
|
39
|
+
export declare function TelemetrySetRequestToJSON(json: any): TelemetrySetRequest;
|
|
40
|
+
export declare function TelemetrySetRequestToJSONTyped(value?: TelemetrySetRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Boat Public API v1
|
|
5
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the TelemetrySetRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTelemetrySetRequest(value) {
|
|
18
|
+
if (!('endpoint' in value) || value['endpoint'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function TelemetrySetRequestFromJSON(json) {
|
|
23
|
+
return TelemetrySetRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function TelemetrySetRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'endpoint': json['endpoint'],
|
|
31
|
+
'headers': json['headers'] == null ? undefined : json['headers'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function TelemetrySetRequestToJSON(json) {
|
|
35
|
+
return TelemetrySetRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function TelemetrySetRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'endpoint': value['endpoint'],
|
|
43
|
+
'headers': value['headers'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -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 { TelemetryTestResult } from './TelemetryTestResult';
|
|
13
|
+
import type { TelemetryConfig } from './TelemetryConfig';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface TelemetrySetResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface TelemetrySetResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof TelemetrySetResponse
|
|
24
|
+
*/
|
|
25
|
+
ok: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Stable success envelope discriminator added by v1.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof TelemetrySetResponse
|
|
30
|
+
*/
|
|
31
|
+
type: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {TelemetryConfig}
|
|
35
|
+
* @memberof TelemetrySetResponse
|
|
36
|
+
*/
|
|
37
|
+
telemetry: TelemetryConfig;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {TelemetryTestResult}
|
|
41
|
+
* @memberof TelemetrySetResponse
|
|
42
|
+
*/
|
|
43
|
+
test: TelemetryTestResult;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the TelemetrySetResponse interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfTelemetrySetResponse(value: object): value is TelemetrySetResponse;
|
|
49
|
+
export declare function TelemetrySetResponseFromJSON(json: any): TelemetrySetResponse;
|
|
50
|
+
export declare function TelemetrySetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelemetrySetResponse;
|
|
51
|
+
export declare function TelemetrySetResponseToJSON(json: any): TelemetrySetResponse;
|
|
52
|
+
export declare function TelemetrySetResponseToJSONTyped(value?: TelemetrySetResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { TelemetryTestResultFromJSON, TelemetryTestResultToJSON, } from './TelemetryTestResult';
|
|
15
|
+
import { TelemetryConfigFromJSON, TelemetryConfigToJSON, } from './TelemetryConfig';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the TelemetrySetResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfTelemetrySetResponse(value) {
|
|
20
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('telemetry' in value) || value['telemetry'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('test' in value) || value['test'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function TelemetrySetResponseFromJSON(json) {
|
|
31
|
+
return TelemetrySetResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function TelemetrySetResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'ok': json['ok'],
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'telemetry': TelemetryConfigFromJSON(json['telemetry']),
|
|
41
|
+
'test': TelemetryTestResultFromJSON(json['test']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function TelemetrySetResponseToJSON(json) {
|
|
45
|
+
return TelemetrySetResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function TelemetrySetResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'ok': value['ok'],
|
|
53
|
+
'type': value['type'],
|
|
54
|
+
'telemetry': TelemetryConfigToJSON(value['telemetry']),
|
|
55
|
+
'test': TelemetryTestResultToJSON(value['test']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Boat Public API v1
|
|
3
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TelemetryTestResult
|
|
16
|
+
*/
|
|
17
|
+
export interface TelemetryTestResult {
|
|
18
|
+
/**
|
|
19
|
+
* True when the collector accepted the test export.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof TelemetryTestResult
|
|
22
|
+
*/
|
|
23
|
+
ok: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TelemetryTestResult
|
|
28
|
+
*/
|
|
29
|
+
status: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* The collector error or partial-success message.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TelemetryTestResult
|
|
34
|
+
*/
|
|
35
|
+
message: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TelemetryTestResult interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfTelemetryTestResult(value: object): value is TelemetryTestResult;
|
|
41
|
+
export declare function TelemetryTestResultFromJSON(json: any): TelemetryTestResult;
|
|
42
|
+
export declare function TelemetryTestResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelemetryTestResult;
|
|
43
|
+
export declare function TelemetryTestResultToJSON(json: any): TelemetryTestResult;
|
|
44
|
+
export declare function TelemetryTestResultToJSONTyped(value?: TelemetryTestResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Boat Public API v1
|
|
5
|
+
* Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the TelemetryTestResult interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTelemetryTestResult(value) {
|
|
18
|
+
if (!('ok' in value) || value['ok'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function TelemetryTestResultFromJSON(json) {
|
|
27
|
+
return TelemetryTestResultFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function TelemetryTestResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'ok': json['ok'],
|
|
35
|
+
'status': json['status'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function TelemetryTestResultToJSON(json) {
|
|
40
|
+
return TelemetryTestResultToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function TelemetryTestResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'ok': value['ok'],
|
|
48
|
+
'status': value['status'],
|
|
49
|
+
'message': value['message'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -16,10 +16,16 @@ export * from './ApiKeySecretResponse';
|
|
|
16
16
|
export * from './ApiKeyUsageResponse';
|
|
17
17
|
export * from './ApiKeysResponse';
|
|
18
18
|
export * from './Command200Response';
|
|
19
|
+
export * from './CommandAttachFrame';
|
|
20
|
+
export * from './CommandInfoResponse';
|
|
21
|
+
export * from './CommandListResponse';
|
|
22
|
+
export * from './CommandLogsResponse';
|
|
23
|
+
export * from './CommandRecord';
|
|
19
24
|
export * from './CommandRequest';
|
|
20
25
|
export * from './CommandResponse';
|
|
21
26
|
export * from './CommandStartedResponse';
|
|
22
27
|
export * from './CommandStatusResponse';
|
|
28
|
+
export * from './CommandStopResponse';
|
|
23
29
|
export * from './CommandStreamFrame';
|
|
24
30
|
export * from './CompletionEvent';
|
|
25
31
|
export * from './Conversation';
|
|
@@ -70,6 +76,7 @@ export * from './NamedSnapshotShareRevokedResponse';
|
|
|
70
76
|
export * from './Org';
|
|
71
77
|
export * from './OrgListResponse';
|
|
72
78
|
export * from './PageInfo';
|
|
79
|
+
export * from './ProcessListResponse';
|
|
73
80
|
export * from './PromptEvent';
|
|
74
81
|
export * from './PromptEventData';
|
|
75
82
|
export * from './PromptEventDataAttachmentsInner';
|
|
@@ -97,6 +104,7 @@ export * from './SandboxEnvironmentVersionSummary';
|
|
|
97
104
|
export * from './SandboxEvent';
|
|
98
105
|
export * from './SandboxInfoResponse';
|
|
99
106
|
export * from './SandboxListResponse';
|
|
107
|
+
export * from './SandboxProcess';
|
|
100
108
|
export * from './SandboxTeam';
|
|
101
109
|
export * from './SandboxUsageResponse';
|
|
102
110
|
export * from './SecretFile';
|
|
@@ -125,6 +133,12 @@ export * from './StopOperation';
|
|
|
125
133
|
export * from './StopOperationResponse';
|
|
126
134
|
export * from './StopRequest';
|
|
127
135
|
export * from './SuccessBase';
|
|
136
|
+
export * from './TelemetryConfig';
|
|
137
|
+
export * from './TelemetryConfigLastError';
|
|
138
|
+
export * from './TelemetryResponse';
|
|
139
|
+
export * from './TelemetrySetRequest';
|
|
140
|
+
export * from './TelemetrySetResponse';
|
|
141
|
+
export * from './TelemetryTestResult';
|
|
128
142
|
export * from './UnknownEvent';
|
|
129
143
|
export * from './UpdateSandboxEnvironmentRequest';
|
|
130
144
|
export * from './UpdateSandboxEnvironmentRequestRepositoriesInner';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -18,10 +18,16 @@ export * from './ApiKeySecretResponse';
|
|
|
18
18
|
export * from './ApiKeyUsageResponse';
|
|
19
19
|
export * from './ApiKeysResponse';
|
|
20
20
|
export * from './Command200Response';
|
|
21
|
+
export * from './CommandAttachFrame';
|
|
22
|
+
export * from './CommandInfoResponse';
|
|
23
|
+
export * from './CommandListResponse';
|
|
24
|
+
export * from './CommandLogsResponse';
|
|
25
|
+
export * from './CommandRecord';
|
|
21
26
|
export * from './CommandRequest';
|
|
22
27
|
export * from './CommandResponse';
|
|
23
28
|
export * from './CommandStartedResponse';
|
|
24
29
|
export * from './CommandStatusResponse';
|
|
30
|
+
export * from './CommandStopResponse';
|
|
25
31
|
export * from './CommandStreamFrame';
|
|
26
32
|
export * from './CompletionEvent';
|
|
27
33
|
export * from './Conversation';
|
|
@@ -72,6 +78,7 @@ export * from './NamedSnapshotShareRevokedResponse';
|
|
|
72
78
|
export * from './Org';
|
|
73
79
|
export * from './OrgListResponse';
|
|
74
80
|
export * from './PageInfo';
|
|
81
|
+
export * from './ProcessListResponse';
|
|
75
82
|
export * from './PromptEvent';
|
|
76
83
|
export * from './PromptEventData';
|
|
77
84
|
export * from './PromptEventDataAttachmentsInner';
|
|
@@ -99,6 +106,7 @@ export * from './SandboxEnvironmentVersionSummary';
|
|
|
99
106
|
export * from './SandboxEvent';
|
|
100
107
|
export * from './SandboxInfoResponse';
|
|
101
108
|
export * from './SandboxListResponse';
|
|
109
|
+
export * from './SandboxProcess';
|
|
102
110
|
export * from './SandboxTeam';
|
|
103
111
|
export * from './SandboxUsageResponse';
|
|
104
112
|
export * from './SecretFile';
|
|
@@ -127,6 +135,12 @@ export * from './StopOperation';
|
|
|
127
135
|
export * from './StopOperationResponse';
|
|
128
136
|
export * from './StopRequest';
|
|
129
137
|
export * from './SuccessBase';
|
|
138
|
+
export * from './TelemetryConfig';
|
|
139
|
+
export * from './TelemetryConfigLastError';
|
|
140
|
+
export * from './TelemetryResponse';
|
|
141
|
+
export * from './TelemetrySetRequest';
|
|
142
|
+
export * from './TelemetrySetResponse';
|
|
143
|
+
export * from './TelemetryTestResult';
|
|
130
144
|
export * from './UnknownEvent';
|
|
131
145
|
export * from './UpdateSandboxEnvironmentRequest';
|
|
132
146
|
export * from './UpdateSandboxEnvironmentRequestRepositoriesInner';
|
|
@@ -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,91 @@
|
|
|
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.CommandAttachFrameStatusEnum = exports.CommandAttachFrameTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCommandAttachFrame = instanceOfCommandAttachFrame;
|
|
18
|
+
exports.CommandAttachFrameFromJSON = CommandAttachFrameFromJSON;
|
|
19
|
+
exports.CommandAttachFrameFromJSONTyped = CommandAttachFrameFromJSONTyped;
|
|
20
|
+
exports.CommandAttachFrameToJSON = CommandAttachFrameToJSON;
|
|
21
|
+
exports.CommandAttachFrameToJSONTyped = CommandAttachFrameToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CommandAttachFrameTypeEnum = {
|
|
26
|
+
Attached: 'attached',
|
|
27
|
+
Stdout: 'stdout',
|
|
28
|
+
Stderr: 'stderr',
|
|
29
|
+
Heartbeat: 'heartbeat',
|
|
30
|
+
Exit: 'exit',
|
|
31
|
+
Reconnect: 'reconnect',
|
|
32
|
+
Error: 'error'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.CommandAttachFrameStatusEnum = {
|
|
38
|
+
Running: 'running',
|
|
39
|
+
Exited: 'exited',
|
|
40
|
+
Lost: 'lost'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CommandAttachFrame interface.
|
|
44
|
+
*/
|
|
45
|
+
function instanceOfCommandAttachFrame(value) {
|
|
46
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function CommandAttachFrameFromJSON(json) {
|
|
51
|
+
return CommandAttachFrameFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function CommandAttachFrameFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'type': json['type'],
|
|
59
|
+
'processId': json['processId'] == null ? undefined : json['processId'],
|
|
60
|
+
'data': json['data'] == null ? undefined : json['data'],
|
|
61
|
+
'nextOffset': json['nextOffset'] == null ? undefined : json['nextOffset'],
|
|
62
|
+
'stdoutOffset': json['stdoutOffset'] == null ? undefined : json['stdoutOffset'],
|
|
63
|
+
'stderrOffset': json['stderrOffset'] == null ? undefined : json['stderrOffset'],
|
|
64
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
65
|
+
'exitCode': json['exitCode'] == null ? undefined : json['exitCode'],
|
|
66
|
+
'signal': json['signal'] == null ? undefined : json['signal'],
|
|
67
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
68
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function CommandAttachFrameToJSON(json) {
|
|
72
|
+
return CommandAttachFrameToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function CommandAttachFrameToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'type': value['type'],
|
|
80
|
+
'processId': value['processId'],
|
|
81
|
+
'data': value['data'],
|
|
82
|
+
'nextOffset': value['nextOffset'],
|
|
83
|
+
'stdoutOffset': value['stdoutOffset'],
|
|
84
|
+
'stderrOffset': value['stderrOffset'],
|
|
85
|
+
'status': value['status'],
|
|
86
|
+
'exitCode': value['exitCode'],
|
|
87
|
+
'signal': value['signal'],
|
|
88
|
+
'error': value['error'],
|
|
89
|
+
'message': value['message'],
|
|
90
|
+
};
|
|
91
|
+
}
|