Skip to content

Commit 1c89956

Browse files
feat(devbox): return user for createSshKey
1 parent 497439c commit 1c89956

7 files changed

Lines changed: 75 additions & 58 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-cb2d725f71e87810cd872eacd70e867ca10f94980fdf9c78bb2844c02ee47bf3.yml
3-
openapi_spec_hash: 16ce3e9184fc2afdee66db18a83a96e8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b92a4ee1d2c5382b0d77ec6a16e2e03b79bfd0a08cd75e28ee219350d5b6c5c6.yml
3+
openapi_spec_hash: 20d89d072b105d18e5bb8f73adb75063
44
config_hash: 2363f563f42501d2b1587a4f64bdccaf

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
Types:
44

55
- <code><a href="./src/resources/shared.ts">AfterIdle</a></code>
6-
- <code><a href="./src/resources/shared.ts">AgentMountParameters</a></code>
76
- <code><a href="./src/resources/shared.ts">AgentSource</a></code>
87
- <code><a href="./src/resources/shared.ts">CodeMountParameters</a></code>
98
- <code><a href="./src/resources/shared.ts">LaunchParameters</a></code>
109
- <code><a href="./src/resources/shared.ts">Mount</a></code>
11-
- <code><a href="./src/resources/shared.ts">ObjectMountParameters</a></code>
1210
- <code><a href="./src/resources/shared.ts">RunProfile</a></code>
1311

1412
# Benchmarks

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,12 +590,10 @@ export declare namespace Runloop {
590590
};
591591

592592
export type AfterIdle = API.AfterIdle;
593-
export type AgentMountParameters = API.AgentMountParameters;
594593
export type AgentSource = API.AgentSource;
595594
export type CodeMountParameters = API.CodeMountParameters;
596595
export type LaunchParameters = API.LaunchParameters;
597596
export type Mount = API.Mount;
598-
export type ObjectMountParameters = API.ObjectMountParameters;
599597
export type RunProfile = API.RunProfile;
600598
}
601599

src/resources/devboxes/devboxes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,11 @@ export interface DevboxCreateSSHKeyResponse {
865865
*/
866866
ssh_private_key: string;
867867

868+
/**
869+
* The Linux user to use for SSH connections to this Devbox.
870+
*/
871+
ssh_user: string;
872+
868873
/**
869874
* The host url of the Devbox that can be used for SSH.
870875
*/

src/resources/shared.ts

Lines changed: 68 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,6 @@ export interface AfterIdle {
1212
on_idle: 'shutdown' | 'suspend';
1313
}
1414

15-
export interface AgentMountParameters {
16-
/**
17-
* The ID of the agent to mount. Either agent_id or name must be set.
18-
*/
19-
agent_id: string | null;
20-
21-
/**
22-
* The name of the agent to mount. Returns the most recent agent with a matching
23-
* name if no agent id string provided. Either agent id or name must be set
24-
*/
25-
agent_name: string | null;
26-
27-
type: 'agent_mount';
28-
29-
/**
30-
* Path to mount the agent on the Devbox. Required for git and object agents. Use
31-
* absolute path (e.g., /home/user/agent)
32-
*/
33-
agent_path?: string | null;
34-
35-
/**
36-
* Optional auth token for private repositories. Only used for git agents.
37-
*/
38-
auth_token?: string | null;
39-
}
40-
4115
/**
4216
* Agent source configuration.
4317
*/
@@ -167,8 +141,6 @@ export interface CodeMountParameters {
167141
*/
168142
repo_owner: string;
169143

170-
type: 'code_mount';
171-
172144
/**
173145
* The authentication token necessary to pull repo.
174146
*/
@@ -276,14 +248,76 @@ export namespace LaunchParameters {
276248
}
277249
}
278250

279-
export type Mount =
280-
| ObjectMountParameters
281-
| AgentMountParameters
282-
| CodeMountParameters
283-
| Mount.FileMountParameters;
251+
export type Mount = Mount.ObjectMount | Mount.AgentMount | Mount.CodeMount | Mount.FileMount;
284252

285253
export namespace Mount {
286-
export interface FileMountParameters {
254+
export interface ObjectMount {
255+
/**
256+
* The ID of the object to write.
257+
*/
258+
object_id: string;
259+
260+
/**
261+
* The path to write the object on the Devbox. Use absolute path of object (ie
262+
* /home/user/object.txt, or directory if archive /home/user/archive_dir)
263+
*/
264+
object_path: string;
265+
266+
type: 'object_mount';
267+
}
268+
269+
export interface AgentMount {
270+
/**
271+
* The ID of the agent to mount. Either agent_id or name must be set.
272+
*/
273+
agent_id: string | null;
274+
275+
/**
276+
* The name of the agent to mount. Returns the most recent agent with a matching
277+
* name if no agent id string provided. Either agent id or name must be set
278+
*/
279+
agent_name: string | null;
280+
281+
type: 'agent_mount';
282+
283+
/**
284+
* Path to mount the agent on the Devbox. Required for git and object agents. Use
285+
* absolute path (e.g., /home/user/agent)
286+
*/
287+
agent_path?: string | null;
288+
289+
/**
290+
* Optional auth token for private repositories. Only used for git agents.
291+
*/
292+
auth_token?: string | null;
293+
}
294+
295+
export interface CodeMount {
296+
/**
297+
* The name of the repo to mount. By default, code will be mounted at
298+
* /home/user/{repo_name}s.
299+
*/
300+
repo_name: string;
301+
302+
/**
303+
* The owner of the repo.
304+
*/
305+
repo_owner: string;
306+
307+
type: 'code_mount';
308+
309+
/**
310+
* The authentication token necessary to pull repo.
311+
*/
312+
token?: string | null;
313+
314+
/**
315+
* Installation command to install and setup repository.
316+
*/
317+
install_command?: string | null;
318+
}
319+
320+
export interface FileMount {
287321
/**
288322
* Content of the file to mount.
289323
*/
@@ -298,21 +332,6 @@ export namespace Mount {
298332
}
299333
}
300334

301-
export interface ObjectMountParameters {
302-
/**
303-
* The ID of the object to write.
304-
*/
305-
object_id: string;
306-
307-
/**
308-
* The path to write the object on the Devbox. Use absolute path of object (ie
309-
* /home/user/object.txt, or directory if archive /home/user/archive_dir)
310-
*/
311-
object_path: string;
312-
313-
type: 'object_mount';
314-
}
315-
316335
export interface RunProfile {
317336
/**
318337
* Mapping of Environment Variable to Value. May be shown in devbox logging.

tests/api-resources/blueprints.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ describe('resource blueprints', () => {
3131
{
3232
repo_name: 'repo_name',
3333
repo_owner: 'repo_owner',
34-
type: 'code_mount',
3534
token: 'token',
3635
install_command: 'install_command',
3736
},
@@ -261,7 +260,6 @@ describe('resource blueprints', () => {
261260
{
262261
repo_name: 'repo_name',
263262
repo_owner: 'repo_owner',
264-
type: 'code_mount',
265263
token: 'token',
266264
install_command: 'install_command',
267265
},

tests/api-resources/devboxes/devboxes.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ describe('resource devboxes', () => {
3939
{
4040
repo_name: 'repo_name',
4141
repo_owner: 'repo_owner',
42-
type: 'code_mount',
4342
token: 'token',
4443
install_command: 'install_command',
4544
},

0 commit comments

Comments
 (0)