@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.
Files changed (164) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/dist/apis/BoatApi.d.ts +192 -4
  3. package/dist/apis/BoatApi.js +452 -5
  4. package/dist/esm/apis/BoatApi.d.ts +192 -4
  5. package/dist/esm/apis/BoatApi.js +451 -4
  6. package/dist/esm/models/CommandAttachFrame.d.ts +121 -0
  7. package/dist/esm/models/CommandAttachFrame.js +83 -0
  8. package/dist/esm/models/CommandInfoResponse.d.ts +52 -0
  9. package/dist/esm/models/CommandInfoResponse.js +58 -0
  10. package/dist/esm/models/CommandListResponse.d.ts +58 -0
  11. package/dist/esm/models/CommandListResponse.js +62 -0
  12. package/dist/esm/models/CommandLogsResponse.d.ts +109 -0
  13. package/dist/esm/models/CommandLogsResponse.js +99 -0
  14. package/dist/esm/models/CommandRecord.d.ts +132 -0
  15. package/dist/esm/models/CommandRecord.js +105 -0
  16. package/dist/esm/models/CommandResponse.d.ts +6 -0
  17. package/dist/esm/models/CommandResponse.js +2 -0
  18. package/dist/esm/models/CommandStartedResponse.d.ts +6 -0
  19. package/dist/esm/models/CommandStartedResponse.js +2 -0
  20. package/dist/esm/models/CommandStatusResponse.d.ts +32 -2
  21. package/dist/esm/models/CommandStatusResponse.js +10 -0
  22. package/dist/esm/models/CommandStopResponse.d.ts +70 -0
  23. package/dist/esm/models/CommandStopResponse.js +70 -0
  24. package/dist/esm/models/CommandStreamFrame.d.ts +6 -0
  25. package/dist/esm/models/CommandStreamFrame.js +2 -0
  26. package/dist/esm/models/CreateSandboxRequest.d.ts +6 -0
  27. package/dist/esm/models/CreateSandboxRequest.js +2 -0
  28. package/dist/esm/models/DataRetentionPolicyResponse.d.ts +12 -0
  29. package/dist/esm/models/DataRetentionPolicyResponse.js +4 -0
  30. package/dist/esm/models/DataRetentionUpdateRequest.d.ts +7 -1
  31. package/dist/esm/models/DataRetentionUpdateRequest.js +2 -0
  32. package/dist/esm/models/ForkRequest.d.ts +6 -0
  33. package/dist/esm/models/ForkRequest.js +2 -0
  34. package/dist/esm/models/HostPortRequest.d.ts +6 -0
  35. package/dist/esm/models/HostPortRequest.js +2 -0
  36. package/dist/esm/models/HostPortResponse.d.ts +6 -0
  37. package/dist/esm/models/HostPortResponse.js +2 -0
  38. package/dist/esm/models/ProcessListResponse.d.ts +70 -0
  39. package/dist/esm/models/ProcessListResponse.js +70 -0
  40. package/dist/esm/models/Sandbox.d.ts +6 -0
  41. package/dist/esm/models/Sandbox.js +2 -0
  42. package/dist/esm/models/SandboxProcess.d.ts +74 -0
  43. package/dist/esm/models/SandboxProcess.js +59 -0
  44. package/dist/esm/models/TelemetryConfig.d.ts +57 -0
  45. package/dist/esm/models/TelemetryConfig.js +60 -0
  46. package/dist/esm/models/TelemetryConfigLastError.d.ts +44 -0
  47. package/dist/esm/models/TelemetryConfigLastError.js +51 -0
  48. package/dist/esm/models/TelemetryResponse.d.ts +45 -0
  49. package/dist/esm/models/TelemetryResponse.js +52 -0
  50. package/dist/esm/models/TelemetrySetRequest.d.ts +40 -0
  51. package/dist/esm/models/TelemetrySetRequest.js +45 -0
  52. package/dist/esm/models/TelemetrySetResponse.d.ts +52 -0
  53. package/dist/esm/models/TelemetrySetResponse.js +57 -0
  54. package/dist/esm/models/TelemetryTestResult.d.ts +44 -0
  55. package/dist/esm/models/TelemetryTestResult.js +51 -0
  56. package/dist/esm/models/index.d.ts +14 -0
  57. package/dist/esm/models/index.js +14 -0
  58. package/dist/models/CommandAttachFrame.d.ts +121 -0
  59. package/dist/models/CommandAttachFrame.js +91 -0
  60. package/dist/models/CommandInfoResponse.d.ts +52 -0
  61. package/dist/models/CommandInfoResponse.js +66 -0
  62. package/dist/models/CommandListResponse.d.ts +58 -0
  63. package/dist/models/CommandListResponse.js +70 -0
  64. package/dist/models/CommandLogsResponse.d.ts +109 -0
  65. package/dist/models/CommandLogsResponse.js +107 -0
  66. package/dist/models/CommandRecord.d.ts +132 -0
  67. package/dist/models/CommandRecord.js +113 -0
  68. package/dist/models/CommandResponse.d.ts +6 -0
  69. package/dist/models/CommandResponse.js +2 -0
  70. package/dist/models/CommandStartedResponse.d.ts +6 -0
  71. package/dist/models/CommandStartedResponse.js +2 -0
  72. package/dist/models/CommandStatusResponse.d.ts +32 -2
  73. package/dist/models/CommandStatusResponse.js +10 -0
  74. package/dist/models/CommandStopResponse.d.ts +70 -0
  75. package/dist/models/CommandStopResponse.js +78 -0
  76. package/dist/models/CommandStreamFrame.d.ts +6 -0
  77. package/dist/models/CommandStreamFrame.js +2 -0
  78. package/dist/models/CreateSandboxRequest.d.ts +6 -0
  79. package/dist/models/CreateSandboxRequest.js +2 -0
  80. package/dist/models/DataRetentionPolicyResponse.d.ts +12 -0
  81. package/dist/models/DataRetentionPolicyResponse.js +4 -0
  82. package/dist/models/DataRetentionUpdateRequest.d.ts +7 -1
  83. package/dist/models/DataRetentionUpdateRequest.js +2 -0
  84. package/dist/models/ForkRequest.d.ts +6 -0
  85. package/dist/models/ForkRequest.js +2 -0
  86. package/dist/models/HostPortRequest.d.ts +6 -0
  87. package/dist/models/HostPortRequest.js +2 -0
  88. package/dist/models/HostPortResponse.d.ts +6 -0
  89. package/dist/models/HostPortResponse.js +2 -0
  90. package/dist/models/ProcessListResponse.d.ts +70 -0
  91. package/dist/models/ProcessListResponse.js +78 -0
  92. package/dist/models/Sandbox.d.ts +6 -0
  93. package/dist/models/Sandbox.js +2 -0
  94. package/dist/models/SandboxProcess.d.ts +74 -0
  95. package/dist/models/SandboxProcess.js +66 -0
  96. package/dist/models/TelemetryConfig.d.ts +57 -0
  97. package/dist/models/TelemetryConfig.js +67 -0
  98. package/dist/models/TelemetryConfigLastError.d.ts +44 -0
  99. package/dist/models/TelemetryConfigLastError.js +58 -0
  100. package/dist/models/TelemetryResponse.d.ts +45 -0
  101. package/dist/models/TelemetryResponse.js +59 -0
  102. package/dist/models/TelemetrySetRequest.d.ts +40 -0
  103. package/dist/models/TelemetrySetRequest.js +52 -0
  104. package/dist/models/TelemetrySetResponse.d.ts +52 -0
  105. package/dist/models/TelemetrySetResponse.js +64 -0
  106. package/dist/models/TelemetryTestResult.d.ts +44 -0
  107. package/dist/models/TelemetryTestResult.js +58 -0
  108. package/dist/models/index.d.ts +14 -0
  109. package/dist/models/index.js +14 -0
  110. package/docs/BoatApi.md +715 -11
  111. package/docs/Command200Response.md +2 -0
  112. package/docs/CommandAttachFrame.md +53 -0
  113. package/docs/CommandInfoResponse.md +36 -0
  114. package/docs/CommandListResponse.md +38 -0
  115. package/docs/CommandLogsResponse.md +50 -0
  116. package/docs/CommandRecord.md +59 -0
  117. package/docs/CommandResponse.md +2 -0
  118. package/docs/CommandStartedResponse.md +2 -0
  119. package/docs/CommandStatusResponse.md +10 -0
  120. package/docs/CommandStopResponse.md +42 -0
  121. package/docs/CommandStreamFrame.md +2 -0
  122. package/docs/CreateSandboxRequest.md +2 -0
  123. package/docs/DataRetentionPolicyResponse.md +4 -0
  124. package/docs/DataRetentionUpdateRequest.md +3 -1
  125. package/docs/ForkRequest.md +2 -0
  126. package/docs/HostPortRequest.md +2 -0
  127. package/docs/HostPortResponse.md +2 -0
  128. package/docs/ProcessListResponse.md +42 -0
  129. package/docs/Sandbox.md +2 -0
  130. package/docs/SandboxProcess.md +46 -0
  131. package/docs/TelemetryConfig.md +40 -0
  132. package/docs/TelemetryConfigLastError.md +37 -0
  133. package/docs/TelemetryResponse.md +36 -0
  134. package/docs/TelemetrySetRequest.md +34 -0
  135. package/docs/TelemetrySetResponse.md +38 -0
  136. package/docs/TelemetryTestResult.md +36 -0
  137. package/package.json +1 -1
  138. package/src/apis/BoatApi.ts +671 -4
  139. package/src/models/CommandAttachFrame.ts +179 -0
  140. package/src/models/CommandInfoResponse.ts +102 -0
  141. package/src/models/CommandListResponse.ts +111 -0
  142. package/src/models/CommandLogsResponse.ts +175 -0
  143. package/src/models/CommandRecord.ts +204 -0
  144. package/src/models/CommandResponse.ts +8 -0
  145. package/src/models/CommandStartedResponse.ts +8 -0
  146. package/src/models/CommandStatusResponse.ts +42 -2
  147. package/src/models/CommandStopResponse.ts +129 -0
  148. package/src/models/CommandStreamFrame.ts +8 -0
  149. package/src/models/CreateSandboxRequest.ts +8 -0
  150. package/src/models/DataRetentionPolicyResponse.ts +16 -0
  151. package/src/models/DataRetentionUpdateRequest.ts +9 -1
  152. package/src/models/ForkRequest.ts +8 -0
  153. package/src/models/HostPortRequest.ts +8 -0
  154. package/src/models/HostPortResponse.ts +8 -0
  155. package/src/models/ProcessListResponse.ts +129 -0
  156. package/src/models/Sandbox.ts +8 -0
  157. package/src/models/SandboxProcess.ts +123 -0
  158. package/src/models/TelemetryConfig.ts +110 -0
  159. package/src/models/TelemetryConfigLastError.ts +84 -0
  160. package/src/models/TelemetryResponse.ts +92 -0
  161. package/src/models/TelemetrySetRequest.ts +74 -0
  162. package/src/models/TelemetrySetResponse.ts +108 -0
  163. package/src/models/TelemetryTestResult.ts +84 -0
  164. package/src/models/index.ts +14 -0
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SandboxProcess } from './SandboxProcess';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProcessListResponse
17
+ */
18
+ export interface ProcessListResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ProcessListResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {ProcessListResponseTypeEnum}
28
+ * @memberof ProcessListResponse
29
+ */
30
+ type: ProcessListResponseTypeEnum;
31
+ /**
32
+ * True: read from the running sandbox now. False: the sandbox is stopped (or its agent is not upgraded yet), and this is the last sample kept (top 12 processes, every 30 s, 7 days).
33
+ * @type {boolean}
34
+ * @memberof ProcessListResponse
35
+ */
36
+ live: boolean;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof ProcessListResponse
41
+ */
42
+ sampledAt: Date | null;
43
+ /**
44
+ * Processes on the sandbox. The list holds at most 500
45
+ * @type {number}
46
+ * @memberof ProcessListResponse
47
+ */
48
+ total: number;
49
+ /**
50
+ *
51
+ * @type {Array<SandboxProcess>}
52
+ * @memberof ProcessListResponse
53
+ */
54
+ processes: Array<SandboxProcess>;
55
+ }
56
+ /**
57
+ * @export
58
+ */
59
+ export declare const ProcessListResponseTypeEnum: {
60
+ readonly ProcessList: 'process.list';
61
+ };
62
+ export type ProcessListResponseTypeEnum = typeof ProcessListResponseTypeEnum[keyof typeof ProcessListResponseTypeEnum];
63
+ /**
64
+ * Check if a given object implements the ProcessListResponse interface.
65
+ */
66
+ export declare function instanceOfProcessListResponse(value: object): value is ProcessListResponse;
67
+ export declare function ProcessListResponseFromJSON(json: any): ProcessListResponse;
68
+ export declare function ProcessListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessListResponse;
69
+ export declare function ProcessListResponseToJSON(json: any): ProcessListResponse;
70
+ export declare function ProcessListResponseToJSONTyped(value?: ProcessListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,78 @@
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.ProcessListResponseTypeEnum = void 0;
17
+ exports.instanceOfProcessListResponse = instanceOfProcessListResponse;
18
+ exports.ProcessListResponseFromJSON = ProcessListResponseFromJSON;
19
+ exports.ProcessListResponseFromJSONTyped = ProcessListResponseFromJSONTyped;
20
+ exports.ProcessListResponseToJSON = ProcessListResponseToJSON;
21
+ exports.ProcessListResponseToJSONTyped = ProcessListResponseToJSONTyped;
22
+ const SandboxProcess_1 = require("./SandboxProcess");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ProcessListResponseTypeEnum = {
27
+ ProcessList: 'process.list'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ProcessListResponse interface.
31
+ */
32
+ function instanceOfProcessListResponse(value) {
33
+ if (!('ok' in value) || value['ok'] === undefined)
34
+ return false;
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('live' in value) || value['live'] === undefined)
38
+ return false;
39
+ if (!('sampledAt' in value) || value['sampledAt'] === undefined)
40
+ return false;
41
+ if (!('total' in value) || value['total'] === undefined)
42
+ return false;
43
+ if (!('processes' in value) || value['processes'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function ProcessListResponseFromJSON(json) {
48
+ return ProcessListResponseFromJSONTyped(json, false);
49
+ }
50
+ function ProcessListResponseFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'ok': json['ok'],
56
+ 'type': json['type'],
57
+ 'live': json['live'],
58
+ 'sampledAt': (json['sampledAt'] == null ? null : new Date(json['sampledAt'])),
59
+ 'total': json['total'],
60
+ 'processes': (json['processes'].map(SandboxProcess_1.SandboxProcessFromJSON)),
61
+ };
62
+ }
63
+ function ProcessListResponseToJSON(json) {
64
+ return ProcessListResponseToJSONTyped(json, false);
65
+ }
66
+ function ProcessListResponseToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'ok': value['ok'],
72
+ 'type': value['type'],
73
+ 'live': value['live'],
74
+ 'sampledAt': value['sampledAt'] == null ? value['sampledAt'] : value['sampledAt'].toISOString(),
75
+ 'total': value['total'],
76
+ 'processes': (value['processes'].map(SandboxProcess_1.SandboxProcessToJSON)),
77
+ };
78
+ }
@@ -155,6 +155,12 @@ export interface Sandbox {
155
155
  * @memberof Sandbox
156
156
  */
157
157
  snapshots?: boolean;
158
+ /**
159
+ * False when the sandbox was created with monitoring off.
160
+ * @type {boolean}
161
+ * @memberof Sandbox
162
+ */
163
+ monitoring?: boolean;
158
164
  /**
159
165
  *
160
166
  * @type {boolean}
@@ -134,6 +134,7 @@ function SandboxFromJSONTyped(json, ignoreDiscriminator) {
134
134
  'desktopAvailable': json['desktopAvailable'],
135
135
  'desktopUrl': json['desktopUrl'] == null ? undefined : json['desktopUrl'],
136
136
  'snapshots': json['snapshots'] == null ? undefined : json['snapshots'],
137
+ 'monitoring': json['monitoring'] == null ? undefined : json['monitoring'],
137
138
  'snapshotAvailable': json['snapshotAvailable'],
138
139
  'snapshotCompletedAt': json['snapshotCompletedAt'] == null ? undefined : (new Date(json['snapshotCompletedAt'])),
139
140
  'snapshotVerifiedAt': json['snapshotVerifiedAt'] == null ? undefined : (new Date(json['snapshotVerifiedAt'])),
@@ -184,6 +185,7 @@ function SandboxToJSONTyped(value, ignoreDiscriminator = false) {
184
185
  'desktopAvailable': value['desktopAvailable'],
185
186
  'desktopUrl': value['desktopUrl'],
186
187
  'snapshots': value['snapshots'],
188
+ 'monitoring': value['monitoring'],
187
189
  'snapshotAvailable': value['snapshotAvailable'],
188
190
  'snapshotCompletedAt': value['snapshotCompletedAt'] == null ? value['snapshotCompletedAt'] : value['snapshotCompletedAt'].toISOString(),
189
191
  'snapshotVerifiedAt': value['snapshotVerifiedAt'] == null ? value['snapshotVerifiedAt'] : value['snapshotVerifiedAt'].toISOString(),
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SandboxProcess
16
+ */
17
+ export interface SandboxProcess {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SandboxProcess
22
+ */
23
+ pid: number;
24
+ /**
25
+ * Live list only.
26
+ * @type {number}
27
+ * @memberof SandboxProcess
28
+ */
29
+ parentPid?: number;
30
+ /**
31
+ * Live list only.
32
+ * @type {string}
33
+ * @memberof SandboxProcess
34
+ */
35
+ user?: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SandboxProcess
40
+ */
41
+ cpuPercent?: number;
42
+ /**
43
+ * Resident memory.
44
+ * @type {number}
45
+ * @memberof SandboxProcess
46
+ */
47
+ memoryMB?: number;
48
+ /**
49
+ * Live list only.
50
+ * @type {Date}
51
+ * @memberof SandboxProcess
52
+ */
53
+ startedAt?: Date;
54
+ /**
55
+ * The full command line (first 1000 characters; 120 in a stored sample).
56
+ * @type {string}
57
+ * @memberof SandboxProcess
58
+ */
59
+ command: string;
60
+ /**
61
+ * Live list: the history record holding this process's output, when it has one.
62
+ * @type {string}
63
+ * @memberof SandboxProcess
64
+ */
65
+ commandId?: string | null;
66
+ }
67
+ /**
68
+ * Check if a given object implements the SandboxProcess interface.
69
+ */
70
+ export declare function instanceOfSandboxProcess(value: object): value is SandboxProcess;
71
+ export declare function SandboxProcessFromJSON(json: any): SandboxProcess;
72
+ export declare function SandboxProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxProcess;
73
+ export declare function SandboxProcessToJSON(json: any): SandboxProcess;
74
+ export declare function SandboxProcessToJSONTyped(value?: SandboxProcess | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfSandboxProcess = instanceOfSandboxProcess;
17
+ exports.SandboxProcessFromJSON = SandboxProcessFromJSON;
18
+ exports.SandboxProcessFromJSONTyped = SandboxProcessFromJSONTyped;
19
+ exports.SandboxProcessToJSON = SandboxProcessToJSON;
20
+ exports.SandboxProcessToJSONTyped = SandboxProcessToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SandboxProcess interface.
23
+ */
24
+ function instanceOfSandboxProcess(value) {
25
+ if (!('pid' in value) || value['pid'] === undefined)
26
+ return false;
27
+ if (!('command' in value) || value['command'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SandboxProcessFromJSON(json) {
32
+ return SandboxProcessFromJSONTyped(json, false);
33
+ }
34
+ function SandboxProcessFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'pid': json['pid'],
40
+ 'parentPid': json['parentPid'] == null ? undefined : json['parentPid'],
41
+ 'user': json['user'] == null ? undefined : json['user'],
42
+ 'cpuPercent': json['cpuPercent'] == null ? undefined : json['cpuPercent'],
43
+ 'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
44
+ 'startedAt': json['startedAt'] == null ? undefined : (new Date(json['startedAt'])),
45
+ 'command': json['command'],
46
+ 'commandId': json['commandId'] == null ? undefined : json['commandId'],
47
+ };
48
+ }
49
+ function SandboxProcessToJSON(json) {
50
+ return SandboxProcessToJSONTyped(json, false);
51
+ }
52
+ function SandboxProcessToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'pid': value['pid'],
58
+ 'parentPid': value['parentPid'],
59
+ 'user': value['user'],
60
+ 'cpuPercent': value['cpuPercent'],
61
+ 'memoryMB': value['memoryMB'],
62
+ 'startedAt': value['startedAt'] == null ? value['startedAt'] : value['startedAt'].toISOString(),
63
+ 'command': value['command'],
64
+ 'commandId': value['commandId'],
65
+ };
66
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TelemetryConfigLastError } from './TelemetryConfigLastError';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TelemetryConfig
17
+ */
18
+ export interface TelemetryConfig {
19
+ /**
20
+ * The OTLP/HTTP base URL. Boat posts to `<endpoint>/v1/metrics` and `<endpoint>/v1/logs`.
21
+ * @type {string}
22
+ * @memberof TelemetryConfig
23
+ */
24
+ endpoint: string;
25
+ /**
26
+ * The names of the saved headers. The values are never returned.
27
+ * @type {Array<string>}
28
+ * @memberof TelemetryConfig
29
+ */
30
+ headers: Array<string>;
31
+ /**
32
+ * The time of the last metrics export that the collector accepted.
33
+ * @type {Date}
34
+ * @memberof TelemetryConfig
35
+ */
36
+ lastExportAt: Date | null;
37
+ /**
38
+ *
39
+ * @type {TelemetryConfigLastError}
40
+ * @memberof TelemetryConfig
41
+ */
42
+ lastError: TelemetryConfigLastError | null;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof TelemetryConfig
47
+ */
48
+ createdAt: Date;
49
+ }
50
+ /**
51
+ * Check if a given object implements the TelemetryConfig interface.
52
+ */
53
+ export declare function instanceOfTelemetryConfig(value: object): value is TelemetryConfig;
54
+ export declare function TelemetryConfigFromJSON(json: any): TelemetryConfig;
55
+ export declare function TelemetryConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelemetryConfig;
56
+ export declare function TelemetryConfigToJSON(json: any): TelemetryConfig;
57
+ export declare function TelemetryConfigToJSONTyped(value?: TelemetryConfig | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfTelemetryConfig = instanceOfTelemetryConfig;
17
+ exports.TelemetryConfigFromJSON = TelemetryConfigFromJSON;
18
+ exports.TelemetryConfigFromJSONTyped = TelemetryConfigFromJSONTyped;
19
+ exports.TelemetryConfigToJSON = TelemetryConfigToJSON;
20
+ exports.TelemetryConfigToJSONTyped = TelemetryConfigToJSONTyped;
21
+ const TelemetryConfigLastError_1 = require("./TelemetryConfigLastError");
22
+ /**
23
+ * Check if a given object implements the TelemetryConfig interface.
24
+ */
25
+ function instanceOfTelemetryConfig(value) {
26
+ if (!('endpoint' in value) || value['endpoint'] === undefined)
27
+ return false;
28
+ if (!('headers' in value) || value['headers'] === undefined)
29
+ return false;
30
+ if (!('lastExportAt' in value) || value['lastExportAt'] === undefined)
31
+ return false;
32
+ if (!('lastError' in value) || value['lastError'] === undefined)
33
+ return false;
34
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function TelemetryConfigFromJSON(json) {
39
+ return TelemetryConfigFromJSONTyped(json, false);
40
+ }
41
+ function TelemetryConfigFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'endpoint': json['endpoint'],
47
+ 'headers': json['headers'],
48
+ 'lastExportAt': (json['lastExportAt'] == null ? null : new Date(json['lastExportAt'])),
49
+ 'lastError': (0, TelemetryConfigLastError_1.TelemetryConfigLastErrorFromJSON)(json['lastError']),
50
+ 'createdAt': (new Date(json['createdAt'])),
51
+ };
52
+ }
53
+ function TelemetryConfigToJSON(json) {
54
+ return TelemetryConfigToJSONTyped(json, false);
55
+ }
56
+ function TelemetryConfigToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'endpoint': value['endpoint'],
62
+ 'headers': value['headers'],
63
+ 'lastExportAt': value['lastExportAt'] == null ? value['lastExportAt'] : value['lastExportAt'].toISOString(),
64
+ 'lastError': (0, TelemetryConfigLastError_1.TelemetryConfigLastErrorToJSON)(value['lastError']),
65
+ 'createdAt': value['createdAt'].toISOString(),
66
+ };
67
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The most recent error from the collector, for metrics or events.
14
+ * @export
15
+ * @interface TelemetryConfigLastError
16
+ */
17
+ export interface TelemetryConfigLastError {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TelemetryConfigLastError
22
+ */
23
+ message: string;
24
+ /**
25
+ * HTTP status, or null for a network error.
26
+ * @type {number}
27
+ * @memberof TelemetryConfigLastError
28
+ */
29
+ status: number | null;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof TelemetryConfigLastError
34
+ */
35
+ at: Date;
36
+ }
37
+ /**
38
+ * Check if a given object implements the TelemetryConfigLastError interface.
39
+ */
40
+ export declare function instanceOfTelemetryConfigLastError(value: object): value is TelemetryConfigLastError;
41
+ export declare function TelemetryConfigLastErrorFromJSON(json: any): TelemetryConfigLastError;
42
+ export declare function TelemetryConfigLastErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelemetryConfigLastError;
43
+ export declare function TelemetryConfigLastErrorToJSON(json: any): TelemetryConfigLastError;
44
+ export declare function TelemetryConfigLastErrorToJSONTyped(value?: TelemetryConfigLastError | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfTelemetryConfigLastError = instanceOfTelemetryConfigLastError;
17
+ exports.TelemetryConfigLastErrorFromJSON = TelemetryConfigLastErrorFromJSON;
18
+ exports.TelemetryConfigLastErrorFromJSONTyped = TelemetryConfigLastErrorFromJSONTyped;
19
+ exports.TelemetryConfigLastErrorToJSON = TelemetryConfigLastErrorToJSON;
20
+ exports.TelemetryConfigLastErrorToJSONTyped = TelemetryConfigLastErrorToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TelemetryConfigLastError interface.
23
+ */
24
+ function instanceOfTelemetryConfigLastError(value) {
25
+ if (!('message' in value) || value['message'] === undefined)
26
+ return false;
27
+ if (!('status' in value) || value['status'] === undefined)
28
+ return false;
29
+ if (!('at' in value) || value['at'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function TelemetryConfigLastErrorFromJSON(json) {
34
+ return TelemetryConfigLastErrorFromJSONTyped(json, false);
35
+ }
36
+ function TelemetryConfigLastErrorFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'message': json['message'],
42
+ 'status': json['status'],
43
+ 'at': (new Date(json['at'])),
44
+ };
45
+ }
46
+ function TelemetryConfigLastErrorToJSON(json) {
47
+ return TelemetryConfigLastErrorToJSONTyped(json, false);
48
+ }
49
+ function TelemetryConfigLastErrorToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'message': value['message'],
55
+ 'status': value['status'],
56
+ 'at': value['at'].toISOString(),
57
+ };
58
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TelemetryConfig } from './TelemetryConfig';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TelemetryResponse
17
+ */
18
+ export interface TelemetryResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof TelemetryResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ * Stable success envelope discriminator added by v1.
27
+ * @type {string}
28
+ * @memberof TelemetryResponse
29
+ */
30
+ type: string;
31
+ /**
32
+ *
33
+ * @type {TelemetryConfig}
34
+ * @memberof TelemetryResponse
35
+ */
36
+ telemetry: TelemetryConfig | null;
37
+ }
38
+ /**
39
+ * Check if a given object implements the TelemetryResponse interface.
40
+ */
41
+ export declare function instanceOfTelemetryResponse(value: object): value is TelemetryResponse;
42
+ export declare function TelemetryResponseFromJSON(json: any): TelemetryResponse;
43
+ export declare function TelemetryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelemetryResponse;
44
+ export declare function TelemetryResponseToJSON(json: any): TelemetryResponse;
45
+ export declare function TelemetryResponseToJSONTyped(value?: TelemetryResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfTelemetryResponse = instanceOfTelemetryResponse;
17
+ exports.TelemetryResponseFromJSON = TelemetryResponseFromJSON;
18
+ exports.TelemetryResponseFromJSONTyped = TelemetryResponseFromJSONTyped;
19
+ exports.TelemetryResponseToJSON = TelemetryResponseToJSON;
20
+ exports.TelemetryResponseToJSONTyped = TelemetryResponseToJSONTyped;
21
+ const TelemetryConfig_1 = require("./TelemetryConfig");
22
+ /**
23
+ * Check if a given object implements the TelemetryResponse interface.
24
+ */
25
+ function instanceOfTelemetryResponse(value) {
26
+ if (!('ok' in value) || value['ok'] === undefined)
27
+ return false;
28
+ if (!('type' in value) || value['type'] === undefined)
29
+ return false;
30
+ if (!('telemetry' in value) || value['telemetry'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function TelemetryResponseFromJSON(json) {
35
+ return TelemetryResponseFromJSONTyped(json, false);
36
+ }
37
+ function TelemetryResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'ok': json['ok'],
43
+ 'type': json['type'],
44
+ 'telemetry': (0, TelemetryConfig_1.TelemetryConfigFromJSON)(json['telemetry']),
45
+ };
46
+ }
47
+ function TelemetryResponseToJSON(json) {
48
+ return TelemetryResponseToJSONTyped(json, false);
49
+ }
50
+ function TelemetryResponseToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'ok': value['ok'],
56
+ 'type': value['type'],
57
+ 'telemetry': (0, TelemetryConfig_1.TelemetryConfigToJSON)(value['telemetry']),
58
+ };
59
+ }