@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,121 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * One line of `GET /sandboxes/{sandboxId}/commands/{processId}/stream` (application/x-ndjson).
14
+ * - `attached`: first line. `processId`, `stdoutOffset`, `stderrOffset` (where the output starts).
15
+ * - `stdout` / `stderr`: a chunk. `data`, and `nextOffset` for that stream.
16
+ * - `heartbeat`: sent after 15 s with no other line.
17
+ * - `exit`: last line when the command ended and all its output was sent. `status`, `exitCode`, `signal`, `stdoutOffset`, `stderrOffset`.
18
+ * - `reconnect`: last line after 10 minutes. Open the stream again with its `stdoutOffset` and `stderrOffset`. Nothing is lost or repeated.
19
+ * - `error`: last line on a failure. `error`, `message`, `stdoutOffset`, `stderrOffset`.
20
+ *
21
+ * @export
22
+ * @interface CommandAttachFrame
23
+ */
24
+ export interface CommandAttachFrame {
25
+ /**
26
+ *
27
+ * @type {CommandAttachFrameTypeEnum}
28
+ * @memberof CommandAttachFrame
29
+ */
30
+ type: CommandAttachFrameTypeEnum;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof CommandAttachFrame
35
+ */
36
+ processId?: number;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof CommandAttachFrame
41
+ */
42
+ data?: string;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof CommandAttachFrame
47
+ */
48
+ nextOffset?: number;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof CommandAttachFrame
53
+ */
54
+ stdoutOffset?: number;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof CommandAttachFrame
59
+ */
60
+ stderrOffset?: number;
61
+ /**
62
+ *
63
+ * @type {CommandAttachFrameStatusEnum}
64
+ * @memberof CommandAttachFrame
65
+ */
66
+ status?: CommandAttachFrameStatusEnum;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof CommandAttachFrame
71
+ */
72
+ exitCode?: number | null;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof CommandAttachFrame
77
+ */
78
+ signal?: string | null;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof CommandAttachFrame
83
+ */
84
+ error?: string;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof CommandAttachFrame
89
+ */
90
+ message?: string;
91
+ }
92
+ /**
93
+ * @export
94
+ */
95
+ export declare const CommandAttachFrameTypeEnum: {
96
+ readonly Attached: 'attached';
97
+ readonly Stdout: 'stdout';
98
+ readonly Stderr: 'stderr';
99
+ readonly Heartbeat: 'heartbeat';
100
+ readonly Exit: 'exit';
101
+ readonly Reconnect: 'reconnect';
102
+ readonly Error: 'error';
103
+ };
104
+ export type CommandAttachFrameTypeEnum = typeof CommandAttachFrameTypeEnum[keyof typeof CommandAttachFrameTypeEnum];
105
+ /**
106
+ * @export
107
+ */
108
+ export declare const CommandAttachFrameStatusEnum: {
109
+ readonly Running: 'running';
110
+ readonly Exited: 'exited';
111
+ readonly Lost: 'lost';
112
+ };
113
+ export type CommandAttachFrameStatusEnum = typeof CommandAttachFrameStatusEnum[keyof typeof CommandAttachFrameStatusEnum];
114
+ /**
115
+ * Check if a given object implements the CommandAttachFrame interface.
116
+ */
117
+ export declare function instanceOfCommandAttachFrame(value: object): value is CommandAttachFrame;
118
+ export declare function CommandAttachFrameFromJSON(json: any): CommandAttachFrame;
119
+ export declare function CommandAttachFrameFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommandAttachFrame;
120
+ export declare function CommandAttachFrameToJSON(json: any): CommandAttachFrame;
121
+ export declare function CommandAttachFrameToJSONTyped(value?: CommandAttachFrame | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CommandAttachFrameTypeEnum = {
18
+ Attached: 'attached',
19
+ Stdout: 'stdout',
20
+ Stderr: 'stderr',
21
+ Heartbeat: 'heartbeat',
22
+ Exit: 'exit',
23
+ Reconnect: 'reconnect',
24
+ Error: 'error'
25
+ };
26
+ /**
27
+ * @export
28
+ */
29
+ export const CommandAttachFrameStatusEnum = {
30
+ Running: 'running',
31
+ Exited: 'exited',
32
+ Lost: 'lost'
33
+ };
34
+ /**
35
+ * Check if a given object implements the CommandAttachFrame interface.
36
+ */
37
+ export function instanceOfCommandAttachFrame(value) {
38
+ if (!('type' in value) || value['type'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ export function CommandAttachFrameFromJSON(json) {
43
+ return CommandAttachFrameFromJSONTyped(json, false);
44
+ }
45
+ export function CommandAttachFrameFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'type': json['type'],
51
+ 'processId': json['processId'] == null ? undefined : json['processId'],
52
+ 'data': json['data'] == null ? undefined : json['data'],
53
+ 'nextOffset': json['nextOffset'] == null ? undefined : json['nextOffset'],
54
+ 'stdoutOffset': json['stdoutOffset'] == null ? undefined : json['stdoutOffset'],
55
+ 'stderrOffset': json['stderrOffset'] == null ? undefined : json['stderrOffset'],
56
+ 'status': json['status'] == null ? undefined : json['status'],
57
+ 'exitCode': json['exitCode'] == null ? undefined : json['exitCode'],
58
+ 'signal': json['signal'] == null ? undefined : json['signal'],
59
+ 'error': json['error'] == null ? undefined : json['error'],
60
+ 'message': json['message'] == null ? undefined : json['message'],
61
+ };
62
+ }
63
+ export function CommandAttachFrameToJSON(json) {
64
+ return CommandAttachFrameToJSONTyped(json, false);
65
+ }
66
+ export function CommandAttachFrameToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'type': value['type'],
72
+ 'processId': value['processId'],
73
+ 'data': value['data'],
74
+ 'nextOffset': value['nextOffset'],
75
+ 'stdoutOffset': value['stdoutOffset'],
76
+ 'stderrOffset': value['stderrOffset'],
77
+ 'status': value['status'],
78
+ 'exitCode': value['exitCode'],
79
+ 'signal': value['signal'],
80
+ 'error': value['error'],
81
+ 'message': value['message'],
82
+ };
83
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CommandRecord } from './CommandRecord';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommandInfoResponse
17
+ */
18
+ export interface CommandInfoResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof CommandInfoResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {CommandInfoResponseTypeEnum}
28
+ * @memberof CommandInfoResponse
29
+ */
30
+ type: CommandInfoResponseTypeEnum;
31
+ /**
32
+ *
33
+ * @type {CommandRecord}
34
+ * @memberof CommandInfoResponse
35
+ */
36
+ command: CommandRecord;
37
+ }
38
+ /**
39
+ * @export
40
+ */
41
+ export declare const CommandInfoResponseTypeEnum: {
42
+ readonly CommandInfo: 'command.info';
43
+ };
44
+ export type CommandInfoResponseTypeEnum = typeof CommandInfoResponseTypeEnum[keyof typeof CommandInfoResponseTypeEnum];
45
+ /**
46
+ * Check if a given object implements the CommandInfoResponse interface.
47
+ */
48
+ export declare function instanceOfCommandInfoResponse(value: object): value is CommandInfoResponse;
49
+ export declare function CommandInfoResponseFromJSON(json: any): CommandInfoResponse;
50
+ export declare function CommandInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommandInfoResponse;
51
+ export declare function CommandInfoResponseToJSON(json: any): CommandInfoResponse;
52
+ export declare function CommandInfoResponseToJSONTyped(value?: CommandInfoResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { CommandRecordFromJSON, CommandRecordToJSON, } from './CommandRecord';
15
+ /**
16
+ * @export
17
+ */
18
+ export const CommandInfoResponseTypeEnum = {
19
+ CommandInfo: 'command.info'
20
+ };
21
+ /**
22
+ * Check if a given object implements the CommandInfoResponse interface.
23
+ */
24
+ export function instanceOfCommandInfoResponse(value) {
25
+ if (!('ok' in value) || value['ok'] === undefined)
26
+ return false;
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ if (!('command' in value) || value['command'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function CommandInfoResponseFromJSON(json) {
34
+ return CommandInfoResponseFromJSONTyped(json, false);
35
+ }
36
+ export function CommandInfoResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'ok': json['ok'],
42
+ 'type': json['type'],
43
+ 'command': CommandRecordFromJSON(json['command']),
44
+ };
45
+ }
46
+ export function CommandInfoResponseToJSON(json) {
47
+ return CommandInfoResponseToJSONTyped(json, false);
48
+ }
49
+ export function CommandInfoResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'ok': value['ok'],
55
+ 'type': value['type'],
56
+ 'command': CommandRecordToJSON(value['command']),
57
+ };
58
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CommandRecord } from './CommandRecord';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommandListResponse
17
+ */
18
+ export interface CommandListResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof CommandListResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {CommandListResponseTypeEnum}
28
+ * @memberof CommandListResponse
29
+ */
30
+ type: CommandListResponseTypeEnum;
31
+ /**
32
+ * Newest first.
33
+ * @type {Array<CommandRecord>}
34
+ * @memberof CommandListResponse
35
+ */
36
+ commands: Array<CommandRecord>;
37
+ /**
38
+ * Pass as `cursor` to get the next page. Null on the last page.
39
+ * @type {string}
40
+ * @memberof CommandListResponse
41
+ */
42
+ nextCursor: string | null;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const CommandListResponseTypeEnum: {
48
+ readonly CommandList: 'command.list';
49
+ };
50
+ export type CommandListResponseTypeEnum = typeof CommandListResponseTypeEnum[keyof typeof CommandListResponseTypeEnum];
51
+ /**
52
+ * Check if a given object implements the CommandListResponse interface.
53
+ */
54
+ export declare function instanceOfCommandListResponse(value: object): value is CommandListResponse;
55
+ export declare function CommandListResponseFromJSON(json: any): CommandListResponse;
56
+ export declare function CommandListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommandListResponse;
57
+ export declare function CommandListResponseToJSON(json: any): CommandListResponse;
58
+ export declare function CommandListResponseToJSONTyped(value?: CommandListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { CommandRecordFromJSON, CommandRecordToJSON, } from './CommandRecord';
15
+ /**
16
+ * @export
17
+ */
18
+ export const CommandListResponseTypeEnum = {
19
+ CommandList: 'command.list'
20
+ };
21
+ /**
22
+ * Check if a given object implements the CommandListResponse interface.
23
+ */
24
+ export function instanceOfCommandListResponse(value) {
25
+ if (!('ok' in value) || value['ok'] === undefined)
26
+ return false;
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ if (!('commands' in value) || value['commands'] === undefined)
30
+ return false;
31
+ if (!('nextCursor' in value) || value['nextCursor'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function CommandListResponseFromJSON(json) {
36
+ return CommandListResponseFromJSONTyped(json, false);
37
+ }
38
+ export function CommandListResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'ok': json['ok'],
44
+ 'type': json['type'],
45
+ 'commands': (json['commands'].map(CommandRecordFromJSON)),
46
+ 'nextCursor': json['nextCursor'],
47
+ };
48
+ }
49
+ export function CommandListResponseToJSON(json) {
50
+ return CommandListResponseToJSONTyped(json, false);
51
+ }
52
+ export function CommandListResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'ok': value['ok'],
58
+ 'type': value['type'],
59
+ 'commands': (value['commands'].map(CommandRecordToJSON)),
60
+ 'nextCursor': value['nextCursor'],
61
+ };
62
+ }
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Boat Public API v1
3
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CommandLogsResponse
16
+ */
17
+ export interface CommandLogsResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof CommandLogsResponse
22
+ */
23
+ ok: boolean;
24
+ /**
25
+ *
26
+ * @type {CommandLogsResponseTypeEnum}
27
+ * @memberof CommandLogsResponse
28
+ */
29
+ type: CommandLogsResponseTypeEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CommandLogsResponse
34
+ */
35
+ commandId: string;
36
+ /**
37
+ *
38
+ * @type {CommandLogsResponseStreamEnum}
39
+ * @memberof CommandLogsResponse
40
+ */
41
+ stream: CommandLogsResponseStreamEnum;
42
+ /**
43
+ * Byte position of the first byte in `data`. Greater than the requested offset only when output was not kept (see outputTruncated).
44
+ * @type {number}
45
+ * @memberof CommandLogsResponse
46
+ */
47
+ offset: number;
48
+ /**
49
+ * Pass as `offset` to read on.
50
+ * @type {number}
51
+ * @memberof CommandLogsResponse
52
+ */
53
+ nextOffset: number;
54
+ /**
55
+ * Bytes the stream has so far.
56
+ * @type {number}
57
+ * @memberof CommandLogsResponse
58
+ */
59
+ size: number;
60
+ /**
61
+ *
62
+ * @type {CommandLogsResponseEncodingEnum}
63
+ * @memberof CommandLogsResponse
64
+ */
65
+ encoding: CommandLogsResponseEncodingEnum;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof CommandLogsResponse
70
+ */
71
+ data: string;
72
+ /**
73
+ * True when the command ended and this read reached the end of the stream.
74
+ * @type {boolean}
75
+ * @memberof CommandLogsResponse
76
+ */
77
+ done: boolean;
78
+ }
79
+ /**
80
+ * @export
81
+ */
82
+ export declare const CommandLogsResponseTypeEnum: {
83
+ readonly CommandLogs: 'command.logs';
84
+ };
85
+ export type CommandLogsResponseTypeEnum = typeof CommandLogsResponseTypeEnum[keyof typeof CommandLogsResponseTypeEnum];
86
+ /**
87
+ * @export
88
+ */
89
+ export declare const CommandLogsResponseStreamEnum: {
90
+ readonly Stdout: 'stdout';
91
+ readonly Stderr: 'stderr';
92
+ };
93
+ export type CommandLogsResponseStreamEnum = typeof CommandLogsResponseStreamEnum[keyof typeof CommandLogsResponseStreamEnum];
94
+ /**
95
+ * @export
96
+ */
97
+ export declare const CommandLogsResponseEncodingEnum: {
98
+ readonly Utf8: 'utf8';
99
+ readonly Base64: 'base64';
100
+ };
101
+ export type CommandLogsResponseEncodingEnum = typeof CommandLogsResponseEncodingEnum[keyof typeof CommandLogsResponseEncodingEnum];
102
+ /**
103
+ * Check if a given object implements the CommandLogsResponse interface.
104
+ */
105
+ export declare function instanceOfCommandLogsResponse(value: object): value is CommandLogsResponse;
106
+ export declare function CommandLogsResponseFromJSON(json: any): CommandLogsResponse;
107
+ export declare function CommandLogsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommandLogsResponse;
108
+ export declare function CommandLogsResponseToJSON(json: any): CommandLogsResponse;
109
+ export declare function CommandLogsResponseToJSONTyped(value?: CommandLogsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,99 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Boat Public API v1
5
+ * Public JSON API for creating, operating, prompting, observing, and exposing sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CommandLogsResponseTypeEnum = {
18
+ CommandLogs: 'command.logs'
19
+ };
20
+ /**
21
+ * @export
22
+ */
23
+ export const CommandLogsResponseStreamEnum = {
24
+ Stdout: 'stdout',
25
+ Stderr: 'stderr'
26
+ };
27
+ /**
28
+ * @export
29
+ */
30
+ export const CommandLogsResponseEncodingEnum = {
31
+ Utf8: 'utf8',
32
+ Base64: 'base64'
33
+ };
34
+ /**
35
+ * Check if a given object implements the CommandLogsResponse interface.
36
+ */
37
+ export function instanceOfCommandLogsResponse(value) {
38
+ if (!('ok' in value) || value['ok'] === undefined)
39
+ return false;
40
+ if (!('type' in value) || value['type'] === undefined)
41
+ return false;
42
+ if (!('commandId' in value) || value['commandId'] === undefined)
43
+ return false;
44
+ if (!('stream' in value) || value['stream'] === undefined)
45
+ return false;
46
+ if (!('offset' in value) || value['offset'] === undefined)
47
+ return false;
48
+ if (!('nextOffset' in value) || value['nextOffset'] === undefined)
49
+ return false;
50
+ if (!('size' in value) || value['size'] === undefined)
51
+ return false;
52
+ if (!('encoding' in value) || value['encoding'] === undefined)
53
+ return false;
54
+ if (!('data' in value) || value['data'] === undefined)
55
+ return false;
56
+ if (!('done' in value) || value['done'] === undefined)
57
+ return false;
58
+ return true;
59
+ }
60
+ export function CommandLogsResponseFromJSON(json) {
61
+ return CommandLogsResponseFromJSONTyped(json, false);
62
+ }
63
+ export function CommandLogsResponseFromJSONTyped(json, ignoreDiscriminator) {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+ 'ok': json['ok'],
69
+ 'type': json['type'],
70
+ 'commandId': json['commandId'],
71
+ 'stream': json['stream'],
72
+ 'offset': json['offset'],
73
+ 'nextOffset': json['nextOffset'],
74
+ 'size': json['size'],
75
+ 'encoding': json['encoding'],
76
+ 'data': json['data'],
77
+ 'done': json['done'],
78
+ };
79
+ }
80
+ export function CommandLogsResponseToJSON(json) {
81
+ return CommandLogsResponseToJSONTyped(json, false);
82
+ }
83
+ export function CommandLogsResponseToJSONTyped(value, ignoreDiscriminator = false) {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+ return {
88
+ 'ok': value['ok'],
89
+ 'type': value['type'],
90
+ 'commandId': value['commandId'],
91
+ 'stream': value['stream'],
92
+ 'offset': value['offset'],
93
+ 'nextOffset': value['nextOffset'],
94
+ 'size': value['size'],
95
+ 'encoding': value['encoding'],
96
+ 'data': value['data'],
97
+ 'done': value['done'],
98
+ };
99
+ }