@boatdev/sdk 1.6.0 → 1.8.0

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 (80) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/dist/apis/BoatApi.d.ts +47 -4
  3. package/dist/apis/BoatApi.js +100 -4
  4. package/dist/esm/apis/BoatApi.d.ts +47 -4
  5. package/dist/esm/apis/BoatApi.js +100 -4
  6. package/dist/esm/http2-fetch.d.ts +1 -0
  7. package/dist/esm/http2-fetch.js +203 -0
  8. package/dist/esm/models/Conversation.d.ts +1 -1
  9. package/dist/esm/models/CreateSandboxRequest.d.ts +3 -2
  10. package/dist/esm/models/CreateSandboxRequest.js +2 -1
  11. package/dist/esm/models/ForkRequest.d.ts +2 -1
  12. package/dist/esm/models/ForkRequest.js +2 -1
  13. package/dist/esm/models/PromptRequest.d.ts +2 -1
  14. package/dist/esm/models/PromptRequest.js +2 -1
  15. package/dist/esm/models/Recover200Response.d.ts +57 -0
  16. package/dist/esm/models/Recover200Response.js +53 -0
  17. package/dist/esm/models/ResumeRequest.d.ts +2 -1
  18. package/dist/esm/models/ResumeRequest.js +2 -1
  19. package/dist/esm/models/Sandbox.d.ts +21 -1
  20. package/dist/esm/models/Sandbox.js +9 -1
  21. package/dist/esm/models/SandboxUsageResponse.d.ts +2 -1
  22. package/dist/esm/models/SandboxUsageResponse.js +2 -1
  23. package/dist/esm/models/StopOperation.d.ts +72 -0
  24. package/dist/esm/models/StopOperation.js +72 -0
  25. package/dist/esm/models/StopOperationResponse.d.ts +58 -0
  26. package/dist/esm/models/StopOperationResponse.js +62 -0
  27. package/dist/esm/models/StopRequest.d.ts +1 -1
  28. package/dist/esm/models/UpdateSandboxRequest.d.ts +1 -1
  29. package/dist/esm/models/index.d.ts +3 -0
  30. package/dist/esm/models/index.js +3 -0
  31. package/dist/esm/runtime.js +2 -1
  32. package/dist/http2-fetch.d.ts +1 -0
  33. package/dist/http2-fetch.js +239 -0
  34. package/dist/models/Conversation.d.ts +1 -1
  35. package/dist/models/CreateSandboxRequest.d.ts +3 -2
  36. package/dist/models/CreateSandboxRequest.js +2 -1
  37. package/dist/models/ForkRequest.d.ts +2 -1
  38. package/dist/models/ForkRequest.js +2 -1
  39. package/dist/models/PromptRequest.d.ts +2 -1
  40. package/dist/models/PromptRequest.js +2 -1
  41. package/dist/models/Recover200Response.d.ts +57 -0
  42. package/dist/models/Recover200Response.js +61 -0
  43. package/dist/models/ResumeRequest.d.ts +2 -1
  44. package/dist/models/ResumeRequest.js +2 -1
  45. package/dist/models/Sandbox.d.ts +21 -1
  46. package/dist/models/Sandbox.js +9 -1
  47. package/dist/models/SandboxUsageResponse.d.ts +2 -1
  48. package/dist/models/SandboxUsageResponse.js +2 -1
  49. package/dist/models/StopOperation.d.ts +72 -0
  50. package/dist/models/StopOperation.js +80 -0
  51. package/dist/models/StopOperationResponse.d.ts +58 -0
  52. package/dist/models/StopOperationResponse.js +70 -0
  53. package/dist/models/StopRequest.d.ts +1 -1
  54. package/dist/models/UpdateSandboxRequest.d.ts +1 -1
  55. package/dist/models/index.d.ts +3 -0
  56. package/dist/models/index.js +3 -0
  57. package/dist/runtime.js +9 -8
  58. package/docs/BoatApi.md +160 -2
  59. package/docs/PromptRequest.md +1 -1
  60. package/docs/Recover200Response.md +38 -0
  61. package/docs/Sandbox.md +6 -0
  62. package/docs/StopOperation.md +42 -0
  63. package/docs/StopOperationResponse.md +38 -0
  64. package/package.json +1 -1
  65. package/src/apis/BoatApi.ts +147 -4
  66. package/src/http2-fetch.ts +179 -0
  67. package/src/models/Conversation.ts +1 -1
  68. package/src/models/CreateSandboxRequest.ts +4 -3
  69. package/src/models/ForkRequest.ts +3 -2
  70. package/src/models/PromptRequest.ts +3 -2
  71. package/src/models/Recover200Response.ts +99 -0
  72. package/src/models/ResumeRequest.ts +3 -2
  73. package/src/models/Sandbox.ts +34 -2
  74. package/src/models/SandboxUsageResponse.ts +3 -2
  75. package/src/models/StopOperation.ts +124 -0
  76. package/src/models/StopOperationResponse.ts +111 -0
  77. package/src/models/StopRequest.ts +1 -1
  78. package/src/models/UpdateSandboxRequest.ts +1 -1
  79. package/src/models/index.ts +3 -0
  80. package/src/runtime.ts +2 -1
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { SandboxTeam } from './SandboxTeam';
13
+ import type { StopOperation } from './StopOperation';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -58,6 +59,18 @@ export interface Sandbox {
58
59
  * @memberof Sandbox
59
60
  */
60
61
  degradedSince?: Date | null;
62
+ /**
63
+ * True once every file of the sandbox's snapshot is on its disk. A resumed or forked sandbox is usable before that: its files keep copying in the background, and its docker volumes move onto the real disk near the end. Its docker containers start earlier; at that point their volume mounts move onto the real disk in place, without a restart. The `sandbox.hydrated` webhook fires at the same moment this turns true. A sandbox that restored nothing is hydrated from the start.
64
+ * @type {boolean}
65
+ * @memberof Sandbox
66
+ */
67
+ hydrated?: boolean;
68
+ /**
69
+ * When the last resume or fork finished copying files in, or null.
70
+ * @type {Date}
71
+ * @memberof Sandbox
72
+ */
73
+ hydratedAt?: Date | null;
61
74
  /**
62
75
  * Current machine size: what the sandbox was created with, or the size it was last resumed or forked onto.
63
76
  * @type {SandboxTypeEnum}
@@ -77,7 +90,7 @@ export interface Sandbox {
77
90
  */
78
91
  memoryGB?: number;
79
92
  /**
80
- * Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, and 2 for `large`.
93
+ * Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, 2 for `large`, and 50/9 (about 5.56) for `xlarge`.
81
94
  * @type {number}
82
95
  * @memberof Sandbox
83
96
  */
@@ -238,6 +251,12 @@ export interface Sandbox {
238
251
  * @memberof Sandbox
239
252
  */
240
253
  environmentVersion?: number | null;
254
+ /**
255
+ * The last stop you requested (`POST /sandboxes/{sandboxId}/stop`), or null if you never stopped this sandbox.
256
+ * @type {StopOperation}
257
+ * @memberof Sandbox
258
+ */
259
+ stop?: StopOperation | null;
241
260
  }
242
261
  /**
243
262
  * @export
@@ -271,6 +290,7 @@ export declare const SandboxTypeEnum: {
271
290
  readonly Small: 'small';
272
291
  readonly Default: 'default';
273
292
  readonly Large: 'large';
293
+ readonly Xlarge: 'xlarge';
274
294
  };
275
295
  export type SandboxTypeEnum = typeof SandboxTypeEnum[keyof typeof SandboxTypeEnum];
276
296
  /**
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { SandboxTeamFromJSON, SandboxTeamToJSON, } from './SandboxTeam';
15
+ import { StopOperationFromJSON, StopOperationToJSON, } from './StopOperation';
15
16
  /**
16
17
  * @export
17
18
  */
@@ -41,7 +42,8 @@ export const SandboxHealthEnum = {
41
42
  export const SandboxTypeEnum = {
42
43
  Small: 'small',
43
44
  Default: 'default',
44
- Large: 'large'
45
+ Large: 'large',
46
+ Xlarge: 'xlarge'
45
47
  };
46
48
  /**
47
49
  * @export
@@ -108,6 +110,8 @@ export function SandboxFromJSONTyped(json, ignoreDiscriminator) {
108
110
  'health': json['health'] == null ? undefined : json['health'],
109
111
  'healthReason': json['healthReason'] == null ? undefined : json['healthReason'],
110
112
  'degradedSince': json['degradedSince'] == null ? undefined : (new Date(json['degradedSince'])),
113
+ 'hydrated': json['hydrated'] == null ? undefined : json['hydrated'],
114
+ 'hydratedAt': json['hydratedAt'] == null ? undefined : (new Date(json['hydratedAt'])),
111
115
  'type': json['type'] == null ? undefined : json['type'],
112
116
  'vcpu': json['vcpu'] == null ? undefined : json['vcpu'],
113
117
  'memoryGB': json['memoryGB'] == null ? undefined : json['memoryGB'],
@@ -138,6 +142,7 @@ export function SandboxFromJSONTyped(json, ignoreDiscriminator) {
138
142
  'setupError': json['setupError'] == null ? undefined : json['setupError'],
139
143
  'environment': json['environment'] == null ? undefined : json['environment'],
140
144
  'environmentVersion': json['environmentVersion'] == null ? undefined : json['environmentVersion'],
145
+ 'stop': json['stop'] == null ? undefined : StopOperationFromJSON(json['stop']),
141
146
  };
142
147
  }
143
148
  export function SandboxToJSON(json) {
@@ -155,6 +160,8 @@ export function SandboxToJSONTyped(value, ignoreDiscriminator = false) {
155
160
  'health': value['health'],
156
161
  'healthReason': value['healthReason'],
157
162
  'degradedSince': value['degradedSince'] == null ? value['degradedSince'] : value['degradedSince'].toISOString(),
163
+ 'hydrated': value['hydrated'],
164
+ 'hydratedAt': value['hydratedAt'] == null ? value['hydratedAt'] : value['hydratedAt'].toISOString(),
158
165
  'type': value['type'],
159
166
  'vcpu': value['vcpu'],
160
167
  'memoryGB': value['memoryGB'],
@@ -185,5 +192,6 @@ export function SandboxToJSONTyped(value, ignoreDiscriminator = false) {
185
192
  'setupError': value['setupError'],
186
193
  'environment': value['environment'],
187
194
  'environmentVersion': value['environmentVersion'],
195
+ 'stop': StopOperationToJSON(value['stop']),
188
196
  };
189
197
  }
@@ -40,7 +40,7 @@ export interface SandboxUsageResponse {
40
40
  */
41
41
  sandboxType: SandboxUsageResponseSandboxTypeEnum;
42
42
  /**
43
- * Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, and 2 for `large`.
43
+ * Rate at which this sandbox consumes machine time. 0.5 for `small`, 1 for `default`, 2 for `large`, and 50/9 (about 5.56) for `xlarge`.
44
44
  * @type {number}
45
45
  * @memberof SandboxUsageResponse
46
46
  */
@@ -89,6 +89,7 @@ export declare const SandboxUsageResponseSandboxTypeEnum: {
89
89
  readonly Small: 'small';
90
90
  readonly Default: 'default';
91
91
  readonly Large: 'large';
92
+ readonly Xlarge: 'xlarge';
92
93
  };
93
94
  export type SandboxUsageResponseSandboxTypeEnum = typeof SandboxUsageResponseSandboxTypeEnum[keyof typeof SandboxUsageResponseSandboxTypeEnum];
94
95
  /**
@@ -17,7 +17,8 @@
17
17
  export const SandboxUsageResponseSandboxTypeEnum = {
18
18
  Small: 'small',
19
19
  Default: 'default',
20
- Large: 'large'
20
+ Large: 'large',
21
+ Xlarge: 'xlarge'
21
22
  };
22
23
  /**
23
24
  * Check if a given object implements the SandboxUsageResponse interface.
@@ -0,0 +1,72 @@
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 StopOperation
16
+ */
17
+ export interface StopOperation {
18
+ /**
19
+ * Stable id of this stop. Calling stop again while it is pending returns the same id.
20
+ * @type {string}
21
+ * @memberof StopOperation
22
+ */
23
+ id: string;
24
+ /**
25
+ * `pending`: accepted, the sandbox is archiving. `failing`: the last attempt failed (see `error`); it is retried automatically until the sandbox archives. Running commands or prompts does not cancel it. `completed`: the sandbox is archived. `superseded`: a resume ended it before it completed.
26
+ * @type {StopOperationStatusEnum}
27
+ * @memberof StopOperation
28
+ */
29
+ status: StopOperationStatusEnum;
30
+ /**
31
+ * When the stop was accepted. On the sandbox, null once it has ended. Read by id (`GET /sandboxes/{sandboxId}/stops/{stopId}`), it is kept.
32
+ * @type {Date}
33
+ * @memberof StopOperation
34
+ */
35
+ requestedAt: Date | null;
36
+ /**
37
+ * When the last archival attempt ended.
38
+ * @type {Date}
39
+ * @memberof StopOperation
40
+ */
41
+ lastAttemptAt: Date | null;
42
+ /**
43
+ * Why the last attempt failed, while `status` is `failing`. Otherwise null.
44
+ * @type {string}
45
+ * @memberof StopOperation
46
+ */
47
+ error: string | null;
48
+ /**
49
+ * When the stop completed or was superseded.
50
+ * @type {Date}
51
+ * @memberof StopOperation
52
+ */
53
+ endedAt: Date | null;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const StopOperationStatusEnum: {
59
+ readonly Pending: 'pending';
60
+ readonly Failing: 'failing';
61
+ readonly Completed: 'completed';
62
+ readonly Superseded: 'superseded';
63
+ };
64
+ export type StopOperationStatusEnum = typeof StopOperationStatusEnum[keyof typeof StopOperationStatusEnum];
65
+ /**
66
+ * Check if a given object implements the StopOperation interface.
67
+ */
68
+ export declare function instanceOfStopOperation(value: object): value is StopOperation;
69
+ export declare function StopOperationFromJSON(json: any): StopOperation;
70
+ export declare function StopOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopOperation;
71
+ export declare function StopOperationToJSON(json: any): StopOperation;
72
+ export declare function StopOperationToJSONTyped(value?: StopOperation | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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 StopOperationStatusEnum = {
18
+ Pending: 'pending',
19
+ Failing: 'failing',
20
+ Completed: 'completed',
21
+ Superseded: 'superseded'
22
+ };
23
+ /**
24
+ * Check if a given object implements the StopOperation interface.
25
+ */
26
+ export function instanceOfStopOperation(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ if (!('requestedAt' in value) || value['requestedAt'] === undefined)
32
+ return false;
33
+ if (!('lastAttemptAt' in value) || value['lastAttemptAt'] === undefined)
34
+ return false;
35
+ if (!('error' in value) || value['error'] === undefined)
36
+ return false;
37
+ if (!('endedAt' in value) || value['endedAt'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function StopOperationFromJSON(json) {
42
+ return StopOperationFromJSONTyped(json, false);
43
+ }
44
+ export function StopOperationFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'status': json['status'],
51
+ 'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
52
+ 'lastAttemptAt': (json['lastAttemptAt'] == null ? null : new Date(json['lastAttemptAt'])),
53
+ 'error': json['error'],
54
+ 'endedAt': (json['endedAt'] == null ? null : new Date(json['endedAt'])),
55
+ };
56
+ }
57
+ export function StopOperationToJSON(json) {
58
+ return StopOperationToJSONTyped(json, false);
59
+ }
60
+ export function StopOperationToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'id': value['id'],
66
+ 'status': value['status'],
67
+ 'requestedAt': value['requestedAt'] == null ? value['requestedAt'] : value['requestedAt'].toISOString(),
68
+ 'lastAttemptAt': value['lastAttemptAt'] == null ? value['lastAttemptAt'] : value['lastAttemptAt'].toISOString(),
69
+ 'error': value['error'],
70
+ 'endedAt': value['endedAt'] == null ? value['endedAt'] : value['endedAt'].toISOString(),
71
+ };
72
+ }
@@ -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 { StopOperation } from './StopOperation';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface StopOperationResponse
17
+ */
18
+ export interface StopOperationResponse {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof StopOperationResponse
23
+ */
24
+ ok: boolean;
25
+ /**
26
+ *
27
+ * @type {StopOperationResponseTypeEnum}
28
+ * @memberof StopOperationResponse
29
+ */
30
+ type: StopOperationResponseTypeEnum;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof StopOperationResponse
35
+ */
36
+ id: string;
37
+ /**
38
+ *
39
+ * @type {StopOperation}
40
+ * @memberof StopOperationResponse
41
+ */
42
+ stop: StopOperation;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const StopOperationResponseTypeEnum: {
48
+ readonly StopStatus: 'stop.status';
49
+ };
50
+ export type StopOperationResponseTypeEnum = typeof StopOperationResponseTypeEnum[keyof typeof StopOperationResponseTypeEnum];
51
+ /**
52
+ * Check if a given object implements the StopOperationResponse interface.
53
+ */
54
+ export declare function instanceOfStopOperationResponse(value: object): value is StopOperationResponse;
55
+ export declare function StopOperationResponseFromJSON(json: any): StopOperationResponse;
56
+ export declare function StopOperationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopOperationResponse;
57
+ export declare function StopOperationResponseToJSON(json: any): StopOperationResponse;
58
+ export declare function StopOperationResponseToJSONTyped(value?: StopOperationResponse | 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 { StopOperationFromJSON, StopOperationToJSON, } from './StopOperation';
15
+ /**
16
+ * @export
17
+ */
18
+ export const StopOperationResponseTypeEnum = {
19
+ StopStatus: 'stop.status'
20
+ };
21
+ /**
22
+ * Check if a given object implements the StopOperationResponse interface.
23
+ */
24
+ export function instanceOfStopOperationResponse(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 (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('stop' in value) || value['stop'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function StopOperationResponseFromJSON(json) {
36
+ return StopOperationResponseFromJSONTyped(json, false);
37
+ }
38
+ export function StopOperationResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'ok': json['ok'],
44
+ 'type': json['type'],
45
+ 'id': json['id'],
46
+ 'stop': StopOperationFromJSON(json['stop']),
47
+ };
48
+ }
49
+ export function StopOperationResponseToJSON(json) {
50
+ return StopOperationResponseToJSONTyped(json, false);
51
+ }
52
+ export function StopOperationResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'ok': value['ok'],
58
+ 'type': value['type'],
59
+ 'id': value['id'],
60
+ 'stop': StopOperationToJSON(value['stop']),
61
+ };
62
+ }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface StopRequest {
18
18
  /**
19
- * Stop the sandbox even if its disk cannot be snapshotted. Everything written since the last successful snapshot is permanently LOST. Without this, a sandbox whose snapshot pipeline is failing is left running rather than discarding your work, and you are not billed for that time. Only use this after a stop has already been refused.
19
+ * Stop the sandbox even if its disk cannot be snapshotted. It keeps its last successful snapshot and everything written since then is permanently LOST. Without this, a sandbox whose snapshot pipeline is failing is left running rather than discarding your work, and you are not billed for that time. Only use this after a stop has already been refused.
20
20
  * @type {boolean}
21
21
  * @memberof StopRequest
22
22
  */
@@ -22,7 +22,7 @@ export interface UpdateSandboxRequest {
22
22
  */
23
23
  name?: string;
24
24
  /**
25
- * New archival TTL. `null` disables auto-stop.
25
+ * New auto-stop TTL. The deadline becomes now + `ttlSeconds`, so calling this again extends a running sandbox's life. `null` disables auto-stop.
26
26
  * @type {number}
27
27
  * @memberof UpdateSandboxRequest
28
28
  */
@@ -74,6 +74,7 @@ export * from './PromptRequest';
74
74
  export * from './PromptResponse';
75
75
  export * from './PromptRun';
76
76
  export * from './PromptRunResponse';
77
+ export * from './Recover200Response';
77
78
  export * from './RepoSelectionRequest';
78
79
  export * from './RepoSelectionResponse';
79
80
  export * from './ReposResponse';
@@ -116,6 +117,8 @@ export * from './SteerEvent';
116
117
  export * from './SteerEventData';
117
118
  export * from './SteerRequest';
118
119
  export * from './SteerResponse';
120
+ export * from './StopOperation';
121
+ export * from './StopOperationResponse';
119
122
  export * from './StopRequest';
120
123
  export * from './SuccessBase';
121
124
  export * from './UnknownEvent';
@@ -76,6 +76,7 @@ export * from './PromptRequest';
76
76
  export * from './PromptResponse';
77
77
  export * from './PromptRun';
78
78
  export * from './PromptRunResponse';
79
+ export * from './Recover200Response';
79
80
  export * from './RepoSelectionRequest';
80
81
  export * from './RepoSelectionResponse';
81
82
  export * from './ReposResponse';
@@ -118,6 +119,8 @@ export * from './SteerEvent';
118
119
  export * from './SteerEventData';
119
120
  export * from './SteerRequest';
120
121
  export * from './SteerResponse';
122
+ export * from './StopOperation';
123
+ export * from './StopOperationResponse';
121
124
  export * from './StopRequest';
122
125
  export * from './SuccessBase';
123
126
  export * from './UnknownEvent';
@@ -1,3 +1,4 @@
1
+ import { defaultFetch } from './http2-fetch';
1
2
  /* tslint:disable */
2
3
  /* eslint-disable */
3
4
  /**
@@ -77,7 +78,7 @@ export class BaseAPI {
77
78
  }
78
79
  let response = undefined;
79
80
  try {
80
- response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
81
+ response = await (this.configuration.fetchApi || defaultFetch)(fetchParams.url, fetchParams.init);
81
82
  }
82
83
  catch (e) {
83
84
  for (const middleware of this.middleware) {
@@ -0,0 +1 @@
1
+ export declare const defaultFetch: typeof fetch;