@@ -576,7 +576,6 @@ export abstract class BaseClient {
576576 prop_name : opts . propName ,
577577 configured_props : opts . configuredProps ,
578578 dynamic_props_id : opts . dynamicPropsId ,
579- environment : this . environment ,
580579 } ;
581580 return await this . makeConnectRequestAsync < {
582581 options : { label : string ; value : string ; } [ ] ;
@@ -596,7 +595,6 @@ export abstract class BaseClient {
596595 id : opts . componentId ,
597596 configured_props : opts . configuredProps ,
598597 dynamic_props_id : opts . dynamicPropsId ,
599- environment : this . environment ,
600598 } ;
601599 // eslint-disable-next-line @typescript-eslint/no-explicit-any
602600 return await this . makeConnectRequestAsync < Record < string , any > > ( "/components/props" , {
@@ -618,7 +616,6 @@ export abstract class BaseClient {
618616 id : opts . actionId ,
619617 configured_props : opts . configuredProps ,
620618 dynamic_props_id : opts . dynamicPropsId ,
621- environment : this . environment ,
622619 } ;
623620 return await this . makeConnectRequestAsync < {
624621 exports : unknown ;
@@ -630,6 +627,27 @@ export abstract class BaseClient {
630627 } ) ;
631628 }
632629
630+ public async triggerDeploy ( opts : {
631+ userId : string ;
632+ triggerId : string ;
633+ configuredProps : Record < string , any > ; // eslint-disable-line @typescript-eslint/no-explicit-any
634+ dynamicPropsId ?: string ;
635+ webhookUrl ?: string ;
636+ } ) {
637+ const body = {
638+ async_handle : this . asyncResponseManager . createAsyncHandle ( ) ,
639+ external_user_id : opts . userId ,
640+ id : opts . triggerId ,
641+ configured_props : opts . configuredProps ,
642+ dynamic_props_id : opts . dynamicPropsId ,
643+ webhook_url : opts . webhookUrl ,
644+ }
645+ return await this . makeConnectRequestAsync ( "/triggers/deploy" , {
646+ method : "POST" ,
647+ body,
648+ } ) ;
649+ }
650+
633651 /**
634652 * Builds a full workflow URL based on the input.
635653 *
0 commit comments