22
33from __future__ import annotations
44
5+ from typing_extensions import Literal
6+
57import httpx
68
79from ..._types import NOT_GIVEN , Body , Query , Headers , NotGiven
@@ -213,6 +215,8 @@ def list_scenario_runs(
213215 * ,
214216 limit : int | NotGiven = NOT_GIVEN ,
215217 starting_after : str | NotGiven = NOT_GIVEN ,
218+ state : Literal ["running" , "scoring" , "scored" , "completed" , "canceled" , "timeout" , "failed" ]
219+ | NotGiven = NOT_GIVEN ,
216220 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
217221 # The extra values given here take precedence over values defined on the client or passed to this method.
218222 extra_headers : Headers | None = None ,
@@ -228,6 +232,8 @@ def list_scenario_runs(
228232
229233 starting_after: Load the next page of data starting after the item with the given ID.
230234
235+ state: Filter by Scenario Run state
236+
231237 extra_headers: Send extra headers
232238
233239 extra_query: Add additional query parameters to the request
@@ -250,6 +256,7 @@ def list_scenario_runs(
250256 {
251257 "limit" : limit ,
252258 "starting_after" : starting_after ,
259+ "state" : state ,
253260 },
254261 run_list_scenario_runs_params .RunListScenarioRunsParams ,
255262 ),
@@ -448,6 +455,8 @@ def list_scenario_runs(
448455 * ,
449456 limit : int | NotGiven = NOT_GIVEN ,
450457 starting_after : str | NotGiven = NOT_GIVEN ,
458+ state : Literal ["running" , "scoring" , "scored" , "completed" , "canceled" , "timeout" , "failed" ]
459+ | NotGiven = NOT_GIVEN ,
451460 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
452461 # The extra values given here take precedence over values defined on the client or passed to this method.
453462 extra_headers : Headers | None = None ,
@@ -463,6 +472,8 @@ def list_scenario_runs(
463472
464473 starting_after: Load the next page of data starting after the item with the given ID.
465474
475+ state: Filter by Scenario Run state
476+
466477 extra_headers: Send extra headers
467478
468479 extra_query: Add additional query parameters to the request
@@ -485,6 +496,7 @@ def list_scenario_runs(
485496 {
486497 "limit" : limit ,
487498 "starting_after" : starting_after ,
499+ "state" : state ,
488500 },
489501 run_list_scenario_runs_params .RunListScenarioRunsParams ,
490502 ),
0 commit comments