88from ..core .pagination import AsyncPager , SyncPager
99from ..core .request_options import RequestOptions
1010from ..types .action import Action
11+ from ..types .action_module_reference import ActionModuleReference
1112from ..types .action_secret_request import ActionSecretRequest
1213from ..types .action_trigger import ActionTrigger
1314from ..types .action_trigger_type_enum import ActionTriggerTypeEnum
2324
2425if typing .TYPE_CHECKING :
2526 from .executions .client import AsyncExecutionsClient , ExecutionsClient
27+ from .modules .client import AsyncModulesClient , ModulesClient
2628 from .triggers .client import AsyncTriggersClient , TriggersClient
2729 from .versions .client import AsyncVersionsClient , VersionsClient
2830# this is used as the default value for optional parameters
@@ -35,6 +37,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
3537 self ._client_wrapper = client_wrapper
3638 self ._versions : typing .Optional [VersionsClient ] = None
3739 self ._executions : typing .Optional [ExecutionsClient ] = None
40+ self ._modules : typing .Optional [ModulesClient ] = None
3841 self ._triggers : typing .Optional [TriggersClient ] = None
3942
4043 @property
@@ -130,6 +133,7 @@ def create(
130133 dependencies : typing .Optional [typing .Sequence [ActionVersionDependency ]] = OMIT ,
131134 runtime : typing .Optional [str ] = "node22" ,
132135 secrets : typing .Optional [typing .Sequence [ActionSecretRequest ]] = OMIT ,
136+ modules : typing .Optional [typing .Sequence [ActionModuleReference ]] = OMIT ,
133137 deploy : typing .Optional [bool ] = False ,
134138 request_options : typing .Optional [RequestOptions ] = None ,
135139 ) -> CreateActionResponseContent :
@@ -156,6 +160,9 @@ def create(
156160 secrets : typing.Optional[typing.Sequence[ActionSecretRequest]]
157161 The list of secrets that are included in an action or a version of an action.
158162
163+ modules : typing.Optional[typing.Sequence[ActionModuleReference]]
164+ The list of action modules and their versions used by this action.
165+
159166 deploy : typing.Optional[bool]
160167 True if the action should be deployed after creation.
161168
@@ -190,6 +197,7 @@ def create(
190197 dependencies = dependencies ,
191198 runtime = runtime ,
192199 secrets = secrets ,
200+ modules = modules ,
193201 deploy = deploy ,
194202 request_options = request_options ,
195203 )
@@ -272,6 +280,7 @@ def update(
272280 dependencies : typing .Optional [typing .Sequence [ActionVersionDependency ]] = OMIT ,
273281 runtime : typing .Optional [str ] = "node22" ,
274282 secrets : typing .Optional [typing .Sequence [ActionSecretRequest ]] = OMIT ,
283+ modules : typing .Optional [typing .Sequence [ActionModuleReference ]] = OMIT ,
275284 request_options : typing .Optional [RequestOptions ] = None ,
276285 ) -> UpdateActionResponseContent :
277286 """
@@ -300,6 +309,9 @@ def update(
300309 secrets : typing.Optional[typing.Sequence[ActionSecretRequest]]
301310 The list of secrets that are included in an action or a version of an action.
302311
312+ modules : typing.Optional[typing.Sequence[ActionModuleReference]]
313+ The list of action modules and their versions used by this action.
314+
303315 request_options : typing.Optional[RequestOptions]
304316 Request-specific configuration.
305317
@@ -327,6 +339,7 @@ def update(
327339 dependencies = dependencies ,
328340 runtime = runtime ,
329341 secrets = secrets ,
342+ modules = modules ,
330343 request_options = request_options ,
331344 )
332345 return _response .data
@@ -416,6 +429,14 @@ def executions(self):
416429 self ._executions = ExecutionsClient (client_wrapper = self ._client_wrapper )
417430 return self ._executions
418431
432+ @property
433+ def modules (self ):
434+ if self ._modules is None :
435+ from .modules .client import ModulesClient # noqa: E402
436+
437+ self ._modules = ModulesClient (client_wrapper = self ._client_wrapper )
438+ return self ._modules
439+
419440 @property
420441 def triggers (self ):
421442 if self ._triggers is None :
@@ -431,6 +452,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
431452 self ._client_wrapper = client_wrapper
432453 self ._versions : typing .Optional [AsyncVersionsClient ] = None
433454 self ._executions : typing .Optional [AsyncExecutionsClient ] = None
455+ self ._modules : typing .Optional [AsyncModulesClient ] = None
434456 self ._triggers : typing .Optional [AsyncTriggersClient ] = None
435457
436458 @property
@@ -535,6 +557,7 @@ async def create(
535557 dependencies : typing .Optional [typing .Sequence [ActionVersionDependency ]] = OMIT ,
536558 runtime : typing .Optional [str ] = "node22" ,
537559 secrets : typing .Optional [typing .Sequence [ActionSecretRequest ]] = OMIT ,
560+ modules : typing .Optional [typing .Sequence [ActionModuleReference ]] = OMIT ,
538561 deploy : typing .Optional [bool ] = False ,
539562 request_options : typing .Optional [RequestOptions ] = None ,
540563 ) -> CreateActionResponseContent :
@@ -561,6 +584,9 @@ async def create(
561584 secrets : typing.Optional[typing.Sequence[ActionSecretRequest]]
562585 The list of secrets that are included in an action or a version of an action.
563586
587+ modules : typing.Optional[typing.Sequence[ActionModuleReference]]
588+ The list of action modules and their versions used by this action.
589+
564590 deploy : typing.Optional[bool]
565591 True if the action should be deployed after creation.
566592
@@ -603,6 +629,7 @@ async def main() -> None:
603629 dependencies = dependencies ,
604630 runtime = runtime ,
605631 secrets = secrets ,
632+ modules = modules ,
606633 deploy = deploy ,
607634 request_options = request_options ,
608635 )
@@ -703,6 +730,7 @@ async def update(
703730 dependencies : typing .Optional [typing .Sequence [ActionVersionDependency ]] = OMIT ,
704731 runtime : typing .Optional [str ] = "node22" ,
705732 secrets : typing .Optional [typing .Sequence [ActionSecretRequest ]] = OMIT ,
733+ modules : typing .Optional [typing .Sequence [ActionModuleReference ]] = OMIT ,
706734 request_options : typing .Optional [RequestOptions ] = None ,
707735 ) -> UpdateActionResponseContent :
708736 """
@@ -731,6 +759,9 @@ async def update(
731759 secrets : typing.Optional[typing.Sequence[ActionSecretRequest]]
732760 The list of secrets that are included in an action or a version of an action.
733761
762+ modules : typing.Optional[typing.Sequence[ActionModuleReference]]
763+ The list of action modules and their versions used by this action.
764+
734765 request_options : typing.Optional[RequestOptions]
735766 Request-specific configuration.
736767
@@ -766,6 +797,7 @@ async def main() -> None:
766797 dependencies = dependencies ,
767798 runtime = runtime ,
768799 secrets = secrets ,
800+ modules = modules ,
769801 request_options = request_options ,
770802 )
771803 return _response .data
@@ -871,6 +903,14 @@ def executions(self):
871903 self ._executions = AsyncExecutionsClient (client_wrapper = self ._client_wrapper )
872904 return self ._executions
873905
906+ @property
907+ def modules (self ):
908+ if self ._modules is None :
909+ from .modules .client import AsyncModulesClient # noqa: E402
910+
911+ self ._modules = AsyncModulesClient (client_wrapper = self ._client_wrapper )
912+ return self ._modules
913+
874914 @property
875915 def triggers (self ):
876916 if self ._triggers is None :
0 commit comments