@@ -1530,6 +1530,7 @@ def list_workflow_definitions(
15301530 sort_by : Annotated [Optional [WorkflowDefinitionOrder ], Field (description = "Field to sort definitions by (default: CREATED_AT)" )] = None ,
15311531 sort_dir : Annotated [Optional [SortDirection ], Field (description = "Sort direction; overrides the field's natural default" )] = None ,
15321532 is_template : Optional [StrictBool ] = None ,
1533+ needs_approval : Annotated [Optional [StrictBool ], Field (description = "Only definitions with a run awaiting approval." )] = None ,
15331534 limit : Annotated [Optional [Annotated [int , Field (le = 100 , strict = True , ge = 1 )]], Field (description = "Number of items per page" )] = None ,
15341535 offset : Annotated [Optional [Annotated [int , Field (strict = True , ge = 0 )]], Field (description = "Number of items to skip" )] = None ,
15351536 created_after : Annotated [Optional [datetime ], Field (description = "Only items created at or after this timestamp (inclusive)" )] = None ,
@@ -1564,6 +1565,8 @@ def list_workflow_definitions(
15641565 :type sort_dir: SortDirection
15651566 :param is_template:
15661567 :type is_template: bool
1568+ :param needs_approval: Only definitions with a run awaiting approval.
1569+ :type needs_approval: bool
15671570 :param limit: Number of items per page
15681571 :type limit: int
15691572 :param offset: Number of items to skip
@@ -1608,6 +1611,7 @@ def list_workflow_definitions(
16081611 sort_by = sort_by ,
16091612 sort_dir = sort_dir ,
16101613 is_template = is_template ,
1614+ needs_approval = needs_approval ,
16111615 limit = limit ,
16121616 offset = offset ,
16131617 created_after = created_after ,
@@ -1645,6 +1649,7 @@ def list_workflow_definitions_with_http_info(
16451649 sort_by : Annotated [Optional [WorkflowDefinitionOrder ], Field (description = "Field to sort definitions by (default: CREATED_AT)" )] = None ,
16461650 sort_dir : Annotated [Optional [SortDirection ], Field (description = "Sort direction; overrides the field's natural default" )] = None ,
16471651 is_template : Optional [StrictBool ] = None ,
1652+ needs_approval : Annotated [Optional [StrictBool ], Field (description = "Only definitions with a run awaiting approval." )] = None ,
16481653 limit : Annotated [Optional [Annotated [int , Field (le = 100 , strict = True , ge = 1 )]], Field (description = "Number of items per page" )] = None ,
16491654 offset : Annotated [Optional [Annotated [int , Field (strict = True , ge = 0 )]], Field (description = "Number of items to skip" )] = None ,
16501655 created_after : Annotated [Optional [datetime ], Field (description = "Only items created at or after this timestamp (inclusive)" )] = None ,
@@ -1679,6 +1684,8 @@ def list_workflow_definitions_with_http_info(
16791684 :type sort_dir: SortDirection
16801685 :param is_template:
16811686 :type is_template: bool
1687+ :param needs_approval: Only definitions with a run awaiting approval.
1688+ :type needs_approval: bool
16821689 :param limit: Number of items per page
16831690 :type limit: int
16841691 :param offset: Number of items to skip
@@ -1723,6 +1730,7 @@ def list_workflow_definitions_with_http_info(
17231730 sort_by = sort_by ,
17241731 sort_dir = sort_dir ,
17251732 is_template = is_template ,
1733+ needs_approval = needs_approval ,
17261734 limit = limit ,
17271735 offset = offset ,
17281736 created_after = created_after ,
@@ -1760,6 +1768,7 @@ def list_workflow_definitions_without_preload_content(
17601768 sort_by : Annotated [Optional [WorkflowDefinitionOrder ], Field (description = "Field to sort definitions by (default: CREATED_AT)" )] = None ,
17611769 sort_dir : Annotated [Optional [SortDirection ], Field (description = "Sort direction; overrides the field's natural default" )] = None ,
17621770 is_template : Optional [StrictBool ] = None ,
1771+ needs_approval : Annotated [Optional [StrictBool ], Field (description = "Only definitions with a run awaiting approval." )] = None ,
17631772 limit : Annotated [Optional [Annotated [int , Field (le = 100 , strict = True , ge = 1 )]], Field (description = "Number of items per page" )] = None ,
17641773 offset : Annotated [Optional [Annotated [int , Field (strict = True , ge = 0 )]], Field (description = "Number of items to skip" )] = None ,
17651774 created_after : Annotated [Optional [datetime ], Field (description = "Only items created at or after this timestamp (inclusive)" )] = None ,
@@ -1794,6 +1803,8 @@ def list_workflow_definitions_without_preload_content(
17941803 :type sort_dir: SortDirection
17951804 :param is_template:
17961805 :type is_template: bool
1806+ :param needs_approval: Only definitions with a run awaiting approval.
1807+ :type needs_approval: bool
17971808 :param limit: Number of items per page
17981809 :type limit: int
17991810 :param offset: Number of items to skip
@@ -1838,6 +1849,7 @@ def list_workflow_definitions_without_preload_content(
18381849 sort_by = sort_by ,
18391850 sort_dir = sort_dir ,
18401851 is_template = is_template ,
1852+ needs_approval = needs_approval ,
18411853 limit = limit ,
18421854 offset = offset ,
18431855 created_after = created_after ,
@@ -1870,6 +1882,7 @@ def _list_workflow_definitions_serialize(
18701882 sort_by ,
18711883 sort_dir ,
18721884 is_template ,
1885+ needs_approval ,
18731886 limit ,
18741887 offset ,
18751888 created_after ,
@@ -1922,6 +1935,10 @@ def _list_workflow_definitions_serialize(
19221935
19231936 _query_params .append (('is_template' , is_template ))
19241937
1938+ if needs_approval is not None :
1939+
1940+ _query_params .append (('needs_approval' , needs_approval ))
1941+
19251942 if limit is not None :
19261943
19271944 _query_params .append (('limit' , limit ))
0 commit comments