@boatdev/sdk 1.4.0 → 1.5.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.
- package/.openapi-generator/FILES +2 -0
- package/dist/apis/BoatApi.d.ts +22 -0
- package/dist/apis/BoatApi.js +51 -0
- package/dist/esm/apis/BoatApi.d.ts +22 -0
- package/dist/esm/apis/BoatApi.js +51 -0
- package/dist/esm/models/PromptRequest.d.ts +6 -0
- package/dist/esm/models/PromptRequest.js +2 -0
- package/dist/esm/models/PromptResponse.d.ts +6 -0
- package/dist/esm/models/PromptResponse.js +2 -0
- package/dist/esm/models/PromptRun.d.ts +6 -0
- package/dist/esm/models/PromptRun.js +2 -0
- package/dist/esm/models/Sandbox.d.ts +39 -0
- package/dist/esm/models/Sandbox.js +18 -0
- package/dist/esm/models/Share200Response.d.ts +45 -0
- package/dist/esm/models/Share200Response.js +46 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/PromptRequest.d.ts +6 -0
- package/dist/models/PromptRequest.js +2 -0
- package/dist/models/PromptResponse.d.ts +6 -0
- package/dist/models/PromptResponse.js +2 -0
- package/dist/models/PromptRun.d.ts +6 -0
- package/dist/models/PromptRun.js +2 -0
- package/dist/models/Sandbox.d.ts +39 -0
- package/dist/models/Sandbox.js +19 -1
- package/dist/models/Share200Response.d.ts +45 -0
- package/dist/models/Share200Response.js +53 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/BoatApi.md +85 -1
- package/docs/PromptRequest.md +2 -0
- package/docs/PromptResponse.md +2 -0
- package/docs/PromptRun.md +2 -0
- package/docs/Sandbox.md +10 -0
- package/docs/Share200Response.md +36 -0
- package/package.json +1 -1
- package/src/apis/BoatApi.ts +76 -0
- package/src/models/PromptRequest.ts +8 -0
- package/src/models/PromptResponse.ts +8 -0
- package/src/models/PromptRun.ts +8 -0
- package/src/models/Sandbox.ts +50 -0
- package/src/models/Share200Response.ts +89 -0
- package/src/models/index.ts +1 -0
|
@@ -54,6 +54,7 @@ function PromptRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'provider': json['provider'],
|
|
55
55
|
'model': json['model'] == null ? undefined : json['model'],
|
|
56
56
|
'reasoningEffort': json['reasoningEffort'] == null ? undefined : json['reasoningEffort'],
|
|
57
|
+
'fast': json['fast'] == null ? undefined : json['fast'],
|
|
57
58
|
'_new': json['new'] == null ? undefined : json['new'],
|
|
58
59
|
'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
|
|
59
60
|
'prompt': json['prompt'],
|
|
@@ -70,6 +71,7 @@ function PromptRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
71
|
'provider': value['provider'],
|
|
71
72
|
'model': value['model'],
|
|
72
73
|
'reasoningEffort': value['reasoningEffort'],
|
|
74
|
+
'fast': value['fast'],
|
|
73
75
|
'new': value['_new'],
|
|
74
76
|
'conversationId': value['conversationId'],
|
|
75
77
|
'prompt': value['prompt'],
|
|
@@ -70,6 +70,7 @@ function PromptResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
70
|
'provider': json['provider'],
|
|
71
71
|
'model': json['model'] == null ? undefined : json['model'],
|
|
72
72
|
'reasoningEffort': json['reasoningEffort'] == null ? undefined : json['reasoningEffort'],
|
|
73
|
+
'fast': json['fast'] == null ? undefined : json['fast'],
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
76
|
function PromptResponseToJSON(json) {
|
|
@@ -90,5 +91,6 @@ function PromptResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
91
|
'provider': value['provider'],
|
|
91
92
|
'model': value['model'],
|
|
92
93
|
'reasoningEffort': value['reasoningEffort'],
|
|
94
|
+
'fast': value['fast'],
|
|
93
95
|
};
|
|
94
96
|
}
|
|
@@ -63,6 +63,12 @@ export interface PromptRun {
|
|
|
63
63
|
* @memberof PromptRun
|
|
64
64
|
*/
|
|
65
65
|
reasoningEffort?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The prompt runs in fast mode. `null` means no speed is set yet. The prompt waits without a speed choice, or it ended without running (`done` is true). The speed is set when the prompt starts, for the model that runs.
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof PromptRun
|
|
70
|
+
*/
|
|
71
|
+
fast?: boolean | null;
|
|
66
72
|
/**
|
|
67
73
|
* The conversation this prompt ran in. A Sandbox runs many conversations in parallel; see [Integrated agents](/integrated-agents).
|
|
68
74
|
* @type {string}
|
package/dist/models/PromptRun.js
CHANGED
|
@@ -62,6 +62,7 @@ function PromptRunFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
63
63
|
'model': json['model'] == null ? undefined : json['model'],
|
|
64
64
|
'reasoningEffort': json['reasoningEffort'] == null ? undefined : json['reasoningEffort'],
|
|
65
|
+
'fast': json['fast'] == null ? undefined : json['fast'],
|
|
65
66
|
'conversationId': json['conversationId'] == null ? undefined : json['conversationId'],
|
|
66
67
|
};
|
|
67
68
|
}
|
|
@@ -81,6 +82,7 @@ function PromptRunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
82
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
82
83
|
'model': value['model'],
|
|
83
84
|
'reasoningEffort': value['reasoningEffort'],
|
|
85
|
+
'fast': value['fast'],
|
|
84
86
|
'conversationId': value['conversationId'],
|
|
85
87
|
};
|
|
86
88
|
}
|
package/dist/models/Sandbox.d.ts
CHANGED
|
@@ -166,6 +166,36 @@ export interface Sandbox {
|
|
|
166
166
|
* @memberof Sandbox
|
|
167
167
|
*/
|
|
168
168
|
team?: SandboxTeam;
|
|
169
|
+
/**
|
|
170
|
+
* Display name (or email) of the person who created the sandbox. Organization members see every sandbox the organization pays for, so this says whose it is.
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof Sandbox
|
|
173
|
+
*/
|
|
174
|
+
createdBy?: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* Account id of the person who created the sandbox.
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof Sandbox
|
|
179
|
+
*/
|
|
180
|
+
createdById?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* What you may do with this sandbox. `owner`: you created it. `use`: a teammate's organization sandbox that is `noEnv` (created with it, or shared and restarted), so you can open, run commands in, prompt, resume and stop it. `view`: a teammate's organization sandbox that still holds their personal logins, so you can see it and stop it until they share it (`POST /sandboxes/{sandboxId}/share`).
|
|
183
|
+
* @type {SandboxAccessEnum}
|
|
184
|
+
* @memberof Sandbox
|
|
185
|
+
*/
|
|
186
|
+
access?: SandboxAccessEnum;
|
|
187
|
+
/**
|
|
188
|
+
* True while the sandbox still holds its creator's personal logins (GitHub token, model logins, secrets). Other members can only see such a sandbox.
|
|
189
|
+
* @type {boolean}
|
|
190
|
+
* @memberof Sandbox
|
|
191
|
+
*/
|
|
192
|
+
holdsCreatorLogins?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* True once the sandbox is shared but not restarted yet. Its creator's logins are wiped at its next start, and the organization can use it from then on.
|
|
195
|
+
* @type {boolean}
|
|
196
|
+
* @memberof Sandbox
|
|
197
|
+
*/
|
|
198
|
+
wipePendingUntilRestart?: boolean;
|
|
169
199
|
/**
|
|
170
200
|
* The sandbox's stable three-word subdomain slug (e.g. "frazil-pneuma-rallye"), or null before one is assigned.
|
|
171
201
|
* @type {string}
|
|
@@ -251,6 +281,15 @@ export declare const SandboxMachineProviderEnum: {
|
|
|
251
281
|
readonly Baremetal: 'baremetal';
|
|
252
282
|
};
|
|
253
283
|
export type SandboxMachineProviderEnum = typeof SandboxMachineProviderEnum[keyof typeof SandboxMachineProviderEnum];
|
|
284
|
+
/**
|
|
285
|
+
* @export
|
|
286
|
+
*/
|
|
287
|
+
export declare const SandboxAccessEnum: {
|
|
288
|
+
readonly Owner: 'owner';
|
|
289
|
+
readonly Use: 'use';
|
|
290
|
+
readonly View: 'view';
|
|
291
|
+
};
|
|
292
|
+
export type SandboxAccessEnum = typeof SandboxAccessEnum[keyof typeof SandboxAccessEnum];
|
|
254
293
|
/**
|
|
255
294
|
* @export
|
|
256
295
|
*/
|
package/dist/models/Sandbox.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SandboxSetupStatusEnum = exports.SandboxLastSnapshotStatusEnum = exports.SandboxMachineProviderEnum = exports.SandboxTypeEnum = exports.SandboxHealthEnum = exports.SandboxStateEnum = void 0;
|
|
16
|
+
exports.SandboxSetupStatusEnum = exports.SandboxLastSnapshotStatusEnum = exports.SandboxAccessEnum = exports.SandboxMachineProviderEnum = exports.SandboxTypeEnum = exports.SandboxHealthEnum = exports.SandboxStateEnum = void 0;
|
|
17
17
|
exports.instanceOfSandbox = instanceOfSandbox;
|
|
18
18
|
exports.SandboxFromJSON = SandboxFromJSON;
|
|
19
19
|
exports.SandboxFromJSONTyped = SandboxFromJSONTyped;
|
|
@@ -58,6 +58,14 @@ exports.SandboxMachineProviderEnum = {
|
|
|
58
58
|
Hetzner: 'hetzner',
|
|
59
59
|
Baremetal: 'baremetal'
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
exports.SandboxAccessEnum = {
|
|
65
|
+
Owner: 'owner',
|
|
66
|
+
Use: 'use',
|
|
67
|
+
View: 'view'
|
|
68
|
+
};
|
|
61
69
|
/**
|
|
62
70
|
* @export
|
|
63
71
|
*/
|
|
@@ -126,6 +134,11 @@ function SandboxFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
126
134
|
'snapshotCompletedAt': json['snapshotCompletedAt'] == null ? undefined : (new Date(json['snapshotCompletedAt'])),
|
|
127
135
|
'snapshotVerifiedAt': json['snapshotVerifiedAt'] == null ? undefined : (new Date(json['snapshotVerifiedAt'])),
|
|
128
136
|
'team': json['team'] == null ? undefined : (0, SandboxTeam_1.SandboxTeamFromJSON)(json['team']),
|
|
137
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
138
|
+
'createdById': json['createdById'] == null ? undefined : json['createdById'],
|
|
139
|
+
'access': json['access'] == null ? undefined : json['access'],
|
|
140
|
+
'holdsCreatorLogins': json['holdsCreatorLogins'] == null ? undefined : json['holdsCreatorLogins'],
|
|
141
|
+
'wipePendingUntilRestart': json['wipePendingUntilRestart'] == null ? undefined : json['wipePendingUntilRestart'],
|
|
129
142
|
'subdomain': json['subdomain'] == null ? undefined : json['subdomain'],
|
|
130
143
|
'lastSnapshotAttemptAt': json['lastSnapshotAttemptAt'] == null ? undefined : (new Date(json['lastSnapshotAttemptAt'])),
|
|
131
144
|
'lastSnapshotStatus': json['lastSnapshotStatus'] == null ? undefined : json['lastSnapshotStatus'],
|
|
@@ -168,6 +181,11 @@ function SandboxToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
168
181
|
'snapshotCompletedAt': value['snapshotCompletedAt'] == null ? value['snapshotCompletedAt'] : value['snapshotCompletedAt'].toISOString(),
|
|
169
182
|
'snapshotVerifiedAt': value['snapshotVerifiedAt'] == null ? value['snapshotVerifiedAt'] : value['snapshotVerifiedAt'].toISOString(),
|
|
170
183
|
'team': (0, SandboxTeam_1.SandboxTeamToJSON)(value['team']),
|
|
184
|
+
'createdBy': value['createdBy'],
|
|
185
|
+
'createdById': value['createdById'],
|
|
186
|
+
'access': value['access'],
|
|
187
|
+
'holdsCreatorLogins': value['holdsCreatorLogins'],
|
|
188
|
+
'wipePendingUntilRestart': value['wipePendingUntilRestart'],
|
|
171
189
|
'subdomain': value['subdomain'],
|
|
172
190
|
'lastSnapshotAttemptAt': value['lastSnapshotAttemptAt'] == null ? value['lastSnapshotAttemptAt'] : value['lastSnapshotAttemptAt'].toISOString(),
|
|
173
191
|
'lastSnapshotStatus': value['lastSnapshotStatus'],
|
|
@@ -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 { Sandbox } from './Sandbox';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Share200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface Share200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Sandbox}
|
|
22
|
+
* @memberof Share200Response
|
|
23
|
+
*/
|
|
24
|
+
sandbox?: Sandbox;
|
|
25
|
+
/**
|
|
26
|
+
* True when the sandbox was running: what runs on it still holds your logins in memory, so it stays `view` for the organization until you stop and resume it.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof Share200Response
|
|
29
|
+
*/
|
|
30
|
+
restartRequired?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Share200Response
|
|
35
|
+
*/
|
|
36
|
+
message?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the Share200Response interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfShare200Response(value: object): value is Share200Response;
|
|
42
|
+
export declare function Share200ResponseFromJSON(json: any): Share200Response;
|
|
43
|
+
export declare function Share200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Share200Response;
|
|
44
|
+
export declare function Share200ResponseToJSON(json: any): Share200Response;
|
|
45
|
+
export declare function Share200ResponseToJSONTyped(value?: Share200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfShare200Response = instanceOfShare200Response;
|
|
17
|
+
exports.Share200ResponseFromJSON = Share200ResponseFromJSON;
|
|
18
|
+
exports.Share200ResponseFromJSONTyped = Share200ResponseFromJSONTyped;
|
|
19
|
+
exports.Share200ResponseToJSON = Share200ResponseToJSON;
|
|
20
|
+
exports.Share200ResponseToJSONTyped = Share200ResponseToJSONTyped;
|
|
21
|
+
const Sandbox_1 = require("./Sandbox");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the Share200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfShare200Response(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function Share200ResponseFromJSON(json) {
|
|
29
|
+
return Share200ResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function Share200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'sandbox': json['sandbox'] == null ? undefined : (0, Sandbox_1.SandboxFromJSON)(json['sandbox']),
|
|
37
|
+
'restartRequired': json['restartRequired'] == null ? undefined : json['restartRequired'],
|
|
38
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function Share200ResponseToJSON(json) {
|
|
42
|
+
return Share200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function Share200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'sandbox': (0, Sandbox_1.SandboxToJSON)(value['sandbox']),
|
|
50
|
+
'restartRequired': value['restartRequired'],
|
|
51
|
+
'message': value['message'],
|
|
52
|
+
};
|
|
53
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export * from './SecretsUpdateRequest';
|
|
|
99
99
|
export * from './SelectedRepository';
|
|
100
100
|
export * from './SetEnvironmentSecretFileRequest';
|
|
101
101
|
export * from './SetEnvironmentVarRequest';
|
|
102
|
+
export * from './Share200Response';
|
|
102
103
|
export * from './SnapshotChunk';
|
|
103
104
|
export * from './SnapshotDownloadResponse';
|
|
104
105
|
export * from './SnapshotDownloadResponseAllOfInventory';
|
package/dist/models/index.js
CHANGED
|
@@ -117,6 +117,7 @@ __exportStar(require("./SecretsUpdateRequest"), exports);
|
|
|
117
117
|
__exportStar(require("./SelectedRepository"), exports);
|
|
118
118
|
__exportStar(require("./SetEnvironmentSecretFileRequest"), exports);
|
|
119
119
|
__exportStar(require("./SetEnvironmentVarRequest"), exports);
|
|
120
|
+
__exportStar(require("./Share200Response"), exports);
|
|
120
121
|
__exportStar(require("./SnapshotChunk"), exports);
|
|
121
122
|
__exportStar(require("./SnapshotDownloadResponse"), exports);
|
|
122
123
|
__exportStar(require("./SnapshotDownloadResponseAllOfInventory"), exports);
|
package/docs/BoatApi.md
CHANGED
|
@@ -61,6 +61,7 @@ All URIs are relative to *https://boat.dev/api/v1*
|
|
|
61
61
|
| [**setActiveOrganization**](BoatApi.md#setactiveorganization) | **PATCH** /orgs/active | Set the active organization |
|
|
62
62
|
| [**setEnvironmentSecretFile**](BoatApi.md#setenvironmentsecretfileoperation) | **PUT** /environments/{environmentId}/secret-files | Write one secret file |
|
|
63
63
|
| [**setEnvironmentVar**](BoatApi.md#setenvironmentvaroperation) | **PUT** /environments/{environmentId}/vars/{key} | Set one environment variable |
|
|
64
|
+
| [**share**](BoatApi.md#share) | **POST** /sandboxes/{sandboxId}/share | Share sandbox with the organization |
|
|
64
65
|
| [**sshKey**](BoatApi.md#sshkeyoperation) | **POST** /sandboxes/{sandboxId}/sshkey | Configure sandbox SSH key |
|
|
65
66
|
| [**steer**](BoatApi.md#steeroperation) | **POST** /sandboxes/{sandboxId}/steer | Steer a running turn |
|
|
66
67
|
| [**stop**](BoatApi.md#stopoperation) | **POST** /sandboxes/{sandboxId}/stop | Stop and archive sandbox |
|
|
@@ -3827,10 +3828,12 @@ example().catch(console.error);
|
|
|
3827
3828
|
|
|
3828
3829
|
## sandboxes
|
|
3829
3830
|
|
|
3830
|
-
> SandboxListResponse sandboxes(limit, cursor, sort, state)
|
|
3831
|
+
> SandboxListResponse sandboxes(org, xBoatOrg, limit, cursor, sort, state)
|
|
3831
3832
|
|
|
3832
3833
|
List sandboxes
|
|
3833
3834
|
|
|
3835
|
+
Your sandboxes. In an organization\'s scope (the active wallet, `org`, or `X-Boat-Org`) the list also holds every sandbox that organization pays for, whoever created it; `createdBy` and `access` say whose it is and what you may do with it.
|
|
3836
|
+
|
|
3834
3837
|
### Example
|
|
3835
3838
|
|
|
3836
3839
|
```ts
|
|
@@ -3849,6 +3852,10 @@ async function example() {
|
|
|
3849
3852
|
const api = new BoatApi(config);
|
|
3850
3853
|
|
|
3851
3854
|
const body = {
|
|
3855
|
+
// string | Billing wallet for this request: an organization you belong to, by id (`team_…`) or by name as `GET /orgs` lists it (case-insensitive), or `personal`. Omitted, the account\'s active wallet applies (`PATCH /orgs/active`; personal until set). Two organizations sharing the name answer `409 ambiguous_org` and need the id. Sandboxes, snapshots, and environments stay creator-private. (optional)
|
|
3856
|
+
org: org_example,
|
|
3857
|
+
// string | Same as the `org` query parameter. Query wins when both are set. (optional)
|
|
3858
|
+
xBoatOrg: xBoatOrg_example,
|
|
3852
3859
|
// number | Maximum items to return. (optional)
|
|
3853
3860
|
limit: 56,
|
|
3854
3861
|
// string | Opaque pagination cursor returned as `pageInfo.nextCursor`. (optional)
|
|
@@ -3876,6 +3883,8 @@ example().catch(console.error);
|
|
|
3876
3883
|
|
|
3877
3884
|
| Name | Type | Description | Notes |
|
|
3878
3885
|
|------------- | ------------- | ------------- | -------------|
|
|
3886
|
+
| **org** | `string` | Billing wallet for this request: an organization you belong to, by id (`team_…`) or by name as `GET /orgs` lists it (case-insensitive), or `personal`. Omitted, the account\'s active wallet applies (`PATCH /orgs/active`; personal until set). Two organizations sharing the name answer `409 ambiguous_org` and need the id. Sandboxes, snapshots, and environments stay creator-private. | [Optional] [Defaults to `undefined`] |
|
|
3887
|
+
| **xBoatOrg** | `string` | Same as the `org` query parameter. Query wins when both are set. | [Optional] [Defaults to `undefined`] |
|
|
3879
3888
|
| **limit** | `number` | Maximum items to return. | [Optional] [Defaults to `100`] |
|
|
3880
3889
|
| **cursor** | `string` | Opaque pagination cursor returned as `pageInfo.nextCursor`. | [Optional] [Defaults to `undefined`] |
|
|
3881
3890
|
| **sort** | `asc`, `desc` | Sort direction for cursor pagination. | [Optional] [Defaults to `'desc'`] [Enum: asc, desc] |
|
|
@@ -4349,6 +4358,81 @@ example().catch(console.error);
|
|
|
4349
4358
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
4350
4359
|
|
|
4351
4360
|
|
|
4361
|
+
## share
|
|
4362
|
+
|
|
4363
|
+
> Share200Response share(sandboxId)
|
|
4364
|
+
|
|
4365
|
+
Share sandbox with the organization
|
|
4366
|
+
|
|
4367
|
+
Let every member of the organization that pays for this sandbox use it. Your personal logins (GitHub token, Claude and Codex logins, environment secrets, the sandbox\'s own CLI key) are never pushed to it again and are wiped off its disk at its next start, so a teammate never acts as you. Files you wrote stay. One-way: the sandbox stays like a `noEnv` sandbox from then on. A running sandbox stays `view` for the organization until you stop and resume it (`restartRequired`). Only the person who created the sandbox can share it, and only a sandbox billed to an organization. Sharing an already shared sandbox is a no-op.
|
|
4368
|
+
|
|
4369
|
+
### Example
|
|
4370
|
+
|
|
4371
|
+
```ts
|
|
4372
|
+
import {
|
|
4373
|
+
Configuration,
|
|
4374
|
+
BoatApi,
|
|
4375
|
+
} from '@boatdev/sdk';
|
|
4376
|
+
import type { ShareRequest } from '@boatdev/sdk';
|
|
4377
|
+
|
|
4378
|
+
async function example() {
|
|
4379
|
+
console.log("🚀 Testing @boatdev/sdk SDK...");
|
|
4380
|
+
const config = new Configuration({
|
|
4381
|
+
// Configure HTTP bearer authorization: BoatBearerAuth
|
|
4382
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
4383
|
+
});
|
|
4384
|
+
const api = new BoatApi(config);
|
|
4385
|
+
|
|
4386
|
+
const body = {
|
|
4387
|
+
// string | Public Sandbox id returned by create/list/get sandbox calls.
|
|
4388
|
+
sandboxId: sandboxId_example,
|
|
4389
|
+
} satisfies ShareRequest;
|
|
4390
|
+
|
|
4391
|
+
try {
|
|
4392
|
+
const data = await api.share(body);
|
|
4393
|
+
console.log(data);
|
|
4394
|
+
} catch (error) {
|
|
4395
|
+
console.error(error);
|
|
4396
|
+
}
|
|
4397
|
+
}
|
|
4398
|
+
|
|
4399
|
+
// Run the test
|
|
4400
|
+
example().catch(console.error);
|
|
4401
|
+
```
|
|
4402
|
+
|
|
4403
|
+
### Parameters
|
|
4404
|
+
|
|
4405
|
+
|
|
4406
|
+
| Name | Type | Description | Notes |
|
|
4407
|
+
|------------- | ------------- | ------------- | -------------|
|
|
4408
|
+
| **sandboxId** | `string` | Public Sandbox id returned by create/list/get sandbox calls. | [Defaults to `undefined`] |
|
|
4409
|
+
|
|
4410
|
+
### Return type
|
|
4411
|
+
|
|
4412
|
+
[**Share200Response**](Share200Response.md)
|
|
4413
|
+
|
|
4414
|
+
### Authorization
|
|
4415
|
+
|
|
4416
|
+
[BoatBearerAuth](../README.md#BoatBearerAuth)
|
|
4417
|
+
|
|
4418
|
+
### HTTP request headers
|
|
4419
|
+
|
|
4420
|
+
- **Content-Type**: Not defined
|
|
4421
|
+
- **Accept**: `application/json`
|
|
4422
|
+
|
|
4423
|
+
|
|
4424
|
+
### HTTP response details
|
|
4425
|
+
| Status code | Description | Response headers |
|
|
4426
|
+
|-------------|-------------|------------------|
|
|
4427
|
+
| **200** | The sandbox is shared. | - |
|
|
4428
|
+
| **400** | Invalid request body or parameters. | - |
|
|
4429
|
+
| **401** | Missing or invalid bearer token. | - |
|
|
4430
|
+
| **403** | Authenticated token is not allowed to perform this action. | - |
|
|
4431
|
+
| **404** | Resource not found. | - |
|
|
4432
|
+
|
|
4433
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
4434
|
+
|
|
4435
|
+
|
|
4352
4436
|
## sshKey
|
|
4353
4437
|
|
|
4354
4438
|
> SshKeyResponse sshKey(sandboxId, sshKeyRequest)
|
package/docs/PromptRequest.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type
|
|
|
10
10
|
`provider` | string
|
|
11
11
|
`model` | string
|
|
12
12
|
`reasoningEffort` | string
|
|
13
|
+
`fast` | boolean
|
|
13
14
|
`_new` | boolean
|
|
14
15
|
`conversationId` | string
|
|
15
16
|
`prompt` | string
|
|
@@ -24,6 +25,7 @@ const example = {
|
|
|
24
25
|
"provider": null,
|
|
25
26
|
"model": null,
|
|
26
27
|
"reasoningEffort": null,
|
|
28
|
+
"fast": null,
|
|
27
29
|
"_new": null,
|
|
28
30
|
"conversationId": null,
|
|
29
31
|
"prompt": null,
|
package/docs/PromptResponse.md
CHANGED
|
@@ -16,6 +16,7 @@ Name | Type
|
|
|
16
16
|
`provider` | string
|
|
17
17
|
`model` | string
|
|
18
18
|
`reasoningEffort` | string
|
|
19
|
+
`fast` | boolean
|
|
19
20
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
@@ -34,6 +35,7 @@ const example = {
|
|
|
34
35
|
"provider": null,
|
|
35
36
|
"model": null,
|
|
36
37
|
"reasoningEffort": null,
|
|
38
|
+
"fast": null,
|
|
37
39
|
} satisfies PromptResponse
|
|
38
40
|
|
|
39
41
|
console.log(example)
|
package/docs/PromptRun.md
CHANGED
|
@@ -14,6 +14,7 @@ Name | Type
|
|
|
14
14
|
`createdAt` | Date
|
|
15
15
|
`model` | string
|
|
16
16
|
`reasoningEffort` | string
|
|
17
|
+
`fast` | boolean
|
|
17
18
|
`conversationId` | string
|
|
18
19
|
|
|
19
20
|
## Example
|
|
@@ -31,6 +32,7 @@ const example = {
|
|
|
31
32
|
"createdAt": null,
|
|
32
33
|
"model": null,
|
|
33
34
|
"reasoningEffort": null,
|
|
35
|
+
"fast": null,
|
|
34
36
|
"conversationId": null,
|
|
35
37
|
} satisfies PromptRun
|
|
36
38
|
|
package/docs/Sandbox.md
CHANGED
|
@@ -31,6 +31,11 @@ Name | Type
|
|
|
31
31
|
`snapshotCompletedAt` | Date
|
|
32
32
|
`snapshotVerifiedAt` | Date
|
|
33
33
|
`team` | [SandboxTeam](SandboxTeam.md)
|
|
34
|
+
`createdBy` | string
|
|
35
|
+
`createdById` | string
|
|
36
|
+
`access` | string
|
|
37
|
+
`holdsCreatorLogins` | boolean
|
|
38
|
+
`wipePendingUntilRestart` | boolean
|
|
34
39
|
`subdomain` | string
|
|
35
40
|
`lastSnapshotAttemptAt` | Date
|
|
36
41
|
`lastSnapshotStatus` | string
|
|
@@ -71,6 +76,11 @@ const example = {
|
|
|
71
76
|
"snapshotCompletedAt": null,
|
|
72
77
|
"snapshotVerifiedAt": null,
|
|
73
78
|
"team": null,
|
|
79
|
+
"createdBy": null,
|
|
80
|
+
"createdById": null,
|
|
81
|
+
"access": null,
|
|
82
|
+
"holdsCreatorLogins": null,
|
|
83
|
+
"wipePendingUntilRestart": null,
|
|
74
84
|
"subdomain": null,
|
|
75
85
|
"lastSnapshotAttemptAt": null,
|
|
76
86
|
"lastSnapshotStatus": null,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# Share200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`sandbox` | [Sandbox](Sandbox.md)
|
|
10
|
+
`restartRequired` | boolean
|
|
11
|
+
`message` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { Share200Response } from '@boatdev/sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"sandbox": null,
|
|
21
|
+
"restartRequired": null,
|
|
22
|
+
"message": null,
|
|
23
|
+
} satisfies Share200Response
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as Share200Response
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|