9191 AsyncAssetsResourceWithStreamingResponse ,
9292)
9393from ...._base_client import AsyncPaginator , make_request_options
94- from ....types .workers import script_delete_params , script_update_params
94+ from ....types .workers import script_list_params , script_delete_params , script_update_params
9595from ....types .workers .script import Script
9696from .script_and_version_settings import (
9797 ScriptAndVersionSettingsResource ,
@@ -244,6 +244,7 @@ def list(
244244 self ,
245245 * ,
246246 account_id : str ,
247+ tags : str | NotGiven = NOT_GIVEN ,
247248 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
248249 # The extra values given here take precedence over values defined on the client or passed to this method.
249250 extra_headers : Headers | None = None ,
@@ -257,6 +258,9 @@ def list(
257258 Args:
258259 account_id: Identifier.
259260
261+ tags: Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where
262+ allowed is 'yes' or 'no'.
263+
260264 extra_headers: Send extra headers
261265
262266 extra_query: Add additional query parameters to the request
@@ -271,7 +275,11 @@ def list(
271275 f"/accounts/{ account_id } /workers/scripts" ,
272276 page = SyncSinglePage [Script ],
273277 options = make_request_options (
274- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
278+ extra_headers = extra_headers ,
279+ extra_query = extra_query ,
280+ extra_body = extra_body ,
281+ timeout = timeout ,
282+ query = maybe_transform ({"tags" : tags }, script_list_params .ScriptListParams ),
275283 ),
276284 model = Script ,
277285 )
@@ -509,6 +517,7 @@ def list(
509517 self ,
510518 * ,
511519 account_id : str ,
520+ tags : str | NotGiven = NOT_GIVEN ,
512521 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
513522 # The extra values given here take precedence over values defined on the client or passed to this method.
514523 extra_headers : Headers | None = None ,
@@ -522,6 +531,9 @@ def list(
522531 Args:
523532 account_id: Identifier.
524533
534+ tags: Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where
535+ allowed is 'yes' or 'no'.
536+
525537 extra_headers: Send extra headers
526538
527539 extra_query: Add additional query parameters to the request
@@ -536,7 +548,11 @@ def list(
536548 f"/accounts/{ account_id } /workers/scripts" ,
537549 page = AsyncSinglePage [Script ],
538550 options = make_request_options (
539- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
551+ extra_headers = extra_headers ,
552+ extra_query = extra_query ,
553+ extra_body = extra_body ,
554+ timeout = timeout ,
555+ query = maybe_transform ({"tags" : tags }, script_list_params .ScriptListParams ),
540556 ),
541557 model = Script ,
542558 )
0 commit comments