@@ -111,6 +111,26 @@ export class Benchmarks extends APIResource {
111111 startRun ( body : BenchmarkStartRunParams , options ?: Core . RequestOptions ) : Core . APIPromise < BenchmarkRunView > {
112112 return this . _client . post ( '/v1/benchmarks/start_run' , { body, ...options } ) ;
113113 }
114+
115+ /**
116+ * Add and/or remove Scenario IDs from an existing Benchmark.
117+ */
118+ updateScenarios (
119+ id : string ,
120+ body ?: BenchmarkUpdateScenariosParams ,
121+ options ?: Core . RequestOptions ,
122+ ) : Core . APIPromise < BenchmarkView > ;
123+ updateScenarios ( id : string , options ?: Core . RequestOptions ) : Core . APIPromise < BenchmarkView > ;
124+ updateScenarios (
125+ id : string ,
126+ body : BenchmarkUpdateScenariosParams | Core . RequestOptions = { } ,
127+ options ?: Core . RequestOptions ,
128+ ) : Core . APIPromise < BenchmarkView > {
129+ if ( isRequestOptions ( body ) ) {
130+ return this . updateScenarios ( id , { } , body ) ;
131+ }
132+ return this . _client . post ( `/v1/benchmarks/${ id } /scenarios` , { body, ...options } ) ;
133+ }
114134}
115135
116136export class BenchmarkViewsBenchmarksCursorIDPage extends BenchmarksCursorIDPage < BenchmarkView > { }
@@ -237,6 +257,18 @@ export interface BenchmarkRunView {
237257 secrets_provided ?: { [ key : string ] : string } | null ;
238258}
239259
260+ export interface BenchmarkScenarioUpdateParameters {
261+ /**
262+ * Scenario IDs to add to the Benchmark.
263+ */
264+ scenarios_to_add ?: Array < string > | null ;
265+
266+ /**
267+ * Scenario IDs to remove from the Benchmark.
268+ */
269+ scenarios_to_remove ?: Array < string > | null ;
270+ }
271+
240272/**
241273 * A BenchmarkDefinitionView represents a grouped set of Scenarios that together
242274 * form a Benchmark.
@@ -448,6 +480,18 @@ export interface BenchmarkStartRunParams {
448480 runProfile ?: Shared . RunProfile | null ;
449481}
450482
483+ export interface BenchmarkUpdateScenariosParams {
484+ /**
485+ * Scenario IDs to add to the Benchmark.
486+ */
487+ scenarios_to_add ?: Array < string > | null ;
488+
489+ /**
490+ * Scenario IDs to remove from the Benchmark.
491+ */
492+ scenarios_to_remove ?: Array < string > | null ;
493+ }
494+
451495Benchmarks . BenchmarkViewsBenchmarksCursorIDPage = BenchmarkViewsBenchmarksCursorIDPage ;
452496Benchmarks . Runs = Runs ;
453497
@@ -456,6 +500,7 @@ export declare namespace Benchmarks {
456500 type BenchmarkCreateParameters as BenchmarkCreateParameters ,
457501 type BenchmarkRunListView as BenchmarkRunListView ,
458502 type BenchmarkRunView as BenchmarkRunView ,
503+ type BenchmarkScenarioUpdateParameters as BenchmarkScenarioUpdateParameters ,
459504 type BenchmarkView as BenchmarkView ,
460505 type ScenarioDefinitionListView as ScenarioDefinitionListView ,
461506 type StartBenchmarkRunParameters as StartBenchmarkRunParameters ,
@@ -466,6 +511,7 @@ export declare namespace Benchmarks {
466511 type BenchmarkDefinitionsParams as BenchmarkDefinitionsParams ,
467512 type BenchmarkListPublicParams as BenchmarkListPublicParams ,
468513 type BenchmarkStartRunParams as BenchmarkStartRunParams ,
514+ type BenchmarkUpdateScenariosParams as BenchmarkUpdateScenariosParams ,
469515 } ;
470516
471517 export {
0 commit comments