Skip to content

Commit ffe23be

Browse files
feat(devbox): remove this one
1 parent 3c31dd4 commit ffe23be

9 files changed

Lines changed: 38 additions & 14 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: 98
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-5271153bd2f82579803953bd2fa1b9ea6466c979118804f64379fb14e9a9c436.yml
3-
openapi_spec_hash: 95ac224a4b0f10e9ba6129a86746c9d4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-8ebd9dbfacb180ec9c980f5e46a814b0c8a3cb6063136db18780271d33a8dfa6.yml
3+
openapi_spec_hash: 12d4edec72b722945bade9419636d63e
44
config_hash: cb8534d20a68a49b92726bedd50f8bb1

src/resources/benchmarks/benchmarks.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,19 +206,14 @@ export interface BenchmarkRunListView {
206206

207207
/**
208208
* A BenchmarkRunView represents a run of a complete set of Scenarios, organized
209-
* under a Benchmark.
209+
* under a Benchmark or created by a BenchmarkJob.
210210
*/
211211
export interface BenchmarkRunView {
212212
/**
213213
* The ID of the BenchmarkRun.
214214
*/
215215
id: string;
216216

217-
/**
218-
* The ID of the Benchmark.
219-
*/
220-
benchmark_id: string;
221-
222217
/**
223218
* User defined metadata to attach to the benchmark run for organization.
224219
*/
@@ -234,6 +229,12 @@ export interface BenchmarkRunView {
234229
*/
235230
state: 'running' | 'canceled' | 'completed';
236231

232+
/**
233+
* The ID of the Benchmark definition. Present if run was created from a benchmark
234+
* definition.
235+
*/
236+
benchmark_id?: string | null;
237+
237238
/**
238239
* The duration for the BenchmarkRun to complete.
239240
*/

src/resources/devboxes/devboxes.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export class Devboxes extends APIResource {
491491

492492
/**
493493
* Polls the asynchronous execution's status until it reaches one of the desired
494-
* statuses or times out. Defaults to 60 seconds.
494+
* statuses or times out. Max is 25 seconds.
495495
*/
496496
waitForCommand(
497497
devboxId: string,
@@ -814,7 +814,7 @@ export interface DevboxView {
814814
/**
815815
* The type of initiator that created the Devbox.
816816
*/
817-
initiator_type?: 'unknown' | 'api' | 'scenario';
817+
initiator_type?: 'unknown' | 'api' | 'scenario' | 'scoring_validation';
818818

819819
/**
820820
* The name of the Devbox.
@@ -960,6 +960,12 @@ export interface DevboxCreateParams {
960960
*/
961961
name?: string | null;
962962

963+
/**
964+
* (Optional) ID of the network policy to apply to this Devbox. If not specified,
965+
* the default network policy will be used.
966+
*/
967+
network_policy_id?: string | null;
968+
963969
/**
964970
* Repository connection id the devbox should source its base image from.
965971
*/
@@ -1048,8 +1054,8 @@ export interface DevboxExecuteParams {
10481054
last_n?: string;
10491055

10501056
/**
1051-
* Body param: Timeout in seconds to wait for command completion. Operation is not
1052-
* killed. Max is 600 seconds.
1057+
* Body param: Timeout in seconds to wait for command completion, up to 25 seconds.
1058+
* Defaults to 25 seconds. Operation is not killed.
10531059
*/
10541060
optimistic_timeout?: number | null;
10551061

@@ -1204,8 +1210,8 @@ export interface DevboxWaitForCommandParams {
12041210
last_n?: string;
12051211

12061212
/**
1207-
* Body param: (Optional) Timeout in seconds to wait for the status, up to 60
1208-
* seconds. Defaults to 60 seconds.
1213+
* Body param: (Optional) Timeout in seconds to wait for the status, up to 25
1214+
* seconds. Defaults to 25 seconds.
12091215
*/
12101216
timeout_seconds?: number | null;
12111217
}

src/resources/shared.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@ export interface LaunchParameters {
208208
*/
209209
launch_commands?: Array<string> | null;
210210

211+
/**
212+
* (Optional) ID of the network policy to apply to Devboxes launched with these
213+
* parameters. When set on a Blueprint launch parameters, Devboxes created from it
214+
* will inherit this policy unless explicitly overridden.
215+
*/
216+
network_policy_id?: string | null;
217+
211218
/**
212219
* A list of ContainerizedService names to be started when a Devbox is created. A
213220
* valid ContainerizedService must be specified in Blueprint to be started.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ describe('resource benchmarks', () => {
203203
custom_gb_memory: 0,
204204
keep_alive_time_seconds: 0,
205205
launch_commands: ['string'],
206+
network_policy_id: 'network_policy_id',
206207
required_services: ['string'],
207208
resource_size_request: 'X_SMALL',
208209
user_parameters: { uid: 0, username: 'username' },

tests/api-resources/blueprints.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe('resource blueprints', () => {
4646
custom_gb_memory: 0,
4747
keep_alive_time_seconds: 0,
4848
launch_commands: ['string'],
49+
network_policy_id: 'network_policy_id',
4950
required_services: ['string'],
5051
resource_size_request: 'X_SMALL',
5152
user_parameters: { uid: 0, username: 'username' },
@@ -188,6 +189,7 @@ describe('resource blueprints', () => {
188189
custom_gb_memory: 0,
189190
keep_alive_time_seconds: 0,
190191
launch_commands: ['string'],
192+
network_policy_id: 'network_policy_id',
191193
required_services: ['string'],
192194
resource_size_request: 'X_SMALL',
193195
user_parameters: { uid: 0, username: 'username' },
@@ -285,6 +287,7 @@ describe('resource blueprints', () => {
285287
custom_gb_memory: 0,
286288
keep_alive_time_seconds: 0,
287289
launch_commands: ['string'],
290+
network_policy_id: 'network_policy_id',
288291
required_services: ['string'],
289292
resource_size_request: 'X_SMALL',
290293
user_parameters: { uid: 0, username: 'username' },

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describe('resource devboxes', () => {
5555
custom_gb_memory: 0,
5656
keep_alive_time_seconds: 0,
5757
launch_commands: ['string'],
58+
network_policy_id: 'network_policy_id',
5859
required_services: ['string'],
5960
resource_size_request: 'X_SMALL',
6061
user_parameters: { uid: 0, username: 'username' },
@@ -68,6 +69,7 @@ describe('resource devboxes', () => {
6869
},
6970
],
7071
name: 'name',
72+
network_policy_id: 'network_policy_id',
7173
repo_connection_id: 'repo_connection_id',
7274
secrets: { foo: 'string' },
7375
snapshot_id: 'snapshot_id',

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ describe('resource scenarios', () => {
6868
custom_gb_memory: 0,
6969
keep_alive_time_seconds: 0,
7070
launch_commands: ['string'],
71+
network_policy_id: 'network_policy_id',
7172
required_services: ['string'],
7273
resource_size_request: 'X_SMALL',
7374
user_parameters: { uid: 0, username: 'username' },
@@ -136,6 +137,7 @@ describe('resource scenarios', () => {
136137
custom_gb_memory: 0,
137138
keep_alive_time_seconds: 0,
138139
launch_commands: ['string'],
140+
network_policy_id: 'network_policy_id',
139141
required_services: ['string'],
140142
resource_size_request: 'X_SMALL',
141143
user_parameters: { uid: 0, username: 'username' },
@@ -267,6 +269,7 @@ describe('resource scenarios', () => {
267269
custom_gb_memory: 0,
268270
keep_alive_time_seconds: 0,
269271
launch_commands: ['string'],
272+
network_policy_id: 'network_policy_id',
270273
required_services: ['string'],
271274
resource_size_request: 'X_SMALL',
272275
user_parameters: { uid: 0, username: 'username' },

tests/api-resources/scenarios/scorers.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ describe('resource scorers', () => {
116116
custom_gb_memory: 0,
117117
keep_alive_time_seconds: 0,
118118
launch_commands: ['string'],
119+
network_policy_id: 'network_policy_id',
119120
required_services: ['string'],
120121
resource_size_request: 'X_SMALL',
121122
user_parameters: { uid: 0, username: 'username' },

0 commit comments

Comments
 (0)