@@ -126,7 +126,7 @@ declare namespace Components {
126126 types ?: ( ( "CreateMeterReading" | "UpdateMeterReading" | "DocDownloadedFromPortal" | "PortalUserResetPassword" | "PortalUserResetForgotPassword" | "SelfAssignmentFromPortal" ) | string ) [ ] ;
127127 } ;
128128 }
129- export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerShareEntityAction | TriggerWebhookAction | InformERPAction | CreateDocumentAction | SendEmailAction | /* Creates an order entity with prices from journey */ CartCheckoutAction | CustomAction | AutomationAction | FlowExecutionCancelAction ;
129+ export type AnyAction = MapEntityAction | TriggerWorkflowAction | TriggerShareEntityAction | TriggerWebhookAction | InformERPAction | TriggerEventAction | CreateDocumentAction | SendEmailAction | /* Creates an order entity with prices from journey */ CartCheckoutAction | CustomAction | AutomationAction | FlowExecutionCancelAction ;
130130 export type AnyActionConfig = /**
131131 * example:
132132 * {
@@ -312,6 +312,20 @@ declare namespace Components {
312312 * }
313313 */
314314 InformERPActionConfig | /**
315+ * example:
316+ * {
317+ * "id": "2520gja-2sgmsaga-0asg-822jgal",
318+ * "name": "Trigger Event",
319+ * "type": "trigger-event",
320+ * "config": {
321+ * "event_name": "my_custom_event",
322+ * "event_inputs": {
323+ * "key": "value"
324+ * }
325+ * }
326+ * }
327+ */
328+ TriggerEventActionConfig | /**
315329 * example:
316330 * {
317331 * "id": "08g988-ojt2jtaga-292h-8978gsaga",
@@ -479,7 +493,7 @@ declare namespace Components {
479493 * ```
480494 *
481495 */
482- EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger | FlowsTrigger ;
496+ EntityOperationTrigger | ActivityTrigger | EntityManualTrigger | ReceivedEmailTrigger | NewEmailThreadTrigger | FlowsTrigger ;
483497 export interface AnythingButCondition {
484498 "anything-but" ?: string [ ] ;
485499 }
@@ -806,7 +820,7 @@ declare namespace Components {
806820 * 2
807821 */
808822 version ?: number ;
809- trigger_event ?: TriggerEventManual | TriggerEventEntityActivity | TriggerEventEntityOperation | TriggerEventFlowAutomationTask ;
823+ trigger_event ?: TriggerEventManual | TriggerEventEntityActivity | TriggerEventEntityOperation | TriggerEventFlowAutomationTask | TriggerEventMessaging ;
810824 workflow_context ?: WorkflowExecutionContext ;
811825 }
812826 /**
@@ -2785,6 +2799,17 @@ declare namespace Components {
27852799 */
27862800 target_inbox_id ?: string ;
27872801 }
2802+ export interface NewEmailThreadTrigger {
2803+ /**
2804+ * example:
2805+ * 12d4f45a-1883-4841-a94c-5928cb338a94
2806+ */
2807+ id ?: string ; // uuid
2808+ type : "new_email_thread" ;
2809+ configuration : {
2810+ direction ?: "INBOUND" | "OUTBOUND" | "BOTH" ;
2811+ } ;
2812+ }
27882813 export interface NumericCondition {
27892814 numeric ?: ( string | number ) [ ] ;
27902815 }
@@ -3182,6 +3207,145 @@ declare namespace Components {
31823207 export interface TriggerContext {
31833208 [ name : string ] : string ;
31843209 }
3210+ export interface TriggerEventAction {
3211+ id ?: /**
3212+ * example:
3213+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
3214+ */
3215+ AutomationActionId ;
3216+ flow_action_id ?: /**
3217+ * example:
3218+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
3219+ */
3220+ AutomationActionId ;
3221+ name ?: string ;
3222+ type ?: "trigger-event" ;
3223+ config ?: /* Configuration for triggering an event catalog event */ TriggerEventConfig ;
3224+ /**
3225+ * Whether to stop execution in a failed state if this action fails
3226+ */
3227+ allow_failure ?: boolean ;
3228+ /**
3229+ * Flag indicating whether the action was created automatically or manually
3230+ */
3231+ created_automatically ?: boolean ;
3232+ /**
3233+ * Flag indicating whether the same action can be in bulk in a single execution. e.g; send-email / map-entity
3234+ */
3235+ is_bulk_action ?: boolean ;
3236+ reason ?: {
3237+ /**
3238+ * Why the action has to be skipped/failed
3239+ * example:
3240+ * There are no registered portal users for the given emails, hence skipping the action
3241+ */
3242+ message ?: string ;
3243+ /**
3244+ * Extra metadata about the skipping reason - such as a certain condition not met, etc.
3245+ */
3246+ payload ?: {
3247+ [ name : string ] : any ;
3248+ } ;
3249+ } ;
3250+ /**
3251+ * Condition Id to be checked before executing the action
3252+ */
3253+ condition_id ?: string ;
3254+ /**
3255+ * Schedule Id which indicates the schedule of the action
3256+ */
3257+ schedule_id ?: string ;
3258+ execution_status ?: ExecutionStatus ;
3259+ started_at ?: string ;
3260+ updated_at ?: string ;
3261+ /**
3262+ * example:
3263+ * {}
3264+ */
3265+ outputs ?: {
3266+ [ name : string ] : any ;
3267+ } ;
3268+ error_output ?: ErrorOutput ;
3269+ retry_strategy ?: /* different behaviors for retrying failed execution actions. */ RetryStrategy ;
3270+ }
3271+ /**
3272+ * example:
3273+ * {
3274+ * "id": "2520gja-2sgmsaga-0asg-822jgal",
3275+ * "name": "Trigger Event",
3276+ * "type": "trigger-event",
3277+ * "config": {
3278+ * "event_name": "my_custom_event",
3279+ * "event_inputs": {
3280+ * "key": "value"
3281+ * }
3282+ * }
3283+ * }
3284+ */
3285+ export interface TriggerEventActionConfig {
3286+ id ?: /**
3287+ * example:
3288+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
3289+ */
3290+ AutomationActionId ;
3291+ flow_action_id ?: /**
3292+ * example:
3293+ * 9ec3711b-db63-449c-b894-54d5bb622a8f
3294+ */
3295+ AutomationActionId ;
3296+ name ?: string ;
3297+ type ?: "trigger-event" ;
3298+ config ?: /* Configuration for triggering an event catalog event */ TriggerEventConfig ;
3299+ /**
3300+ * Whether to stop execution in a failed state if this action fails
3301+ */
3302+ allow_failure ?: boolean ;
3303+ /**
3304+ * Flag indicating whether the action was created automatically or manually
3305+ */
3306+ created_automatically ?: boolean ;
3307+ /**
3308+ * Flag indicating whether the same action can be in bulk in a single execution. e.g; send-email / map-entity
3309+ */
3310+ is_bulk_action ?: boolean ;
3311+ reason ?: {
3312+ /**
3313+ * Why the action has to be skipped/failed
3314+ * example:
3315+ * There are no registered portal users for the given emails, hence skipping the action
3316+ */
3317+ message ?: string ;
3318+ /**
3319+ * Extra metadata about the skipping reason - such as a certain condition not met, etc.
3320+ */
3321+ payload ?: {
3322+ [ name : string ] : any ;
3323+ } ;
3324+ } ;
3325+ /**
3326+ * Condition Id to be checked before executing the action
3327+ */
3328+ condition_id ?: string ;
3329+ /**
3330+ * Schedule Id which indicates the schedule of the action
3331+ */
3332+ schedule_id ?: string ;
3333+ }
3334+ /**
3335+ * Configuration for triggering an event catalog event
3336+ */
3337+ export interface TriggerEventConfig {
3338+ /**
3339+ * The event catalog event name to trigger
3340+ */
3341+ event_name : string ;
3342+ /**
3343+ * Inputs to be passed to trigger the event
3344+ */
3345+ event_inputs ?: {
3346+ [ name : string ] : any ;
3347+ } ;
3348+ }
31853349 export interface TriggerEventEntityActivity {
31863350 type ?: "entity_activity" ;
31873351 /**
@@ -3258,6 +3422,21 @@ declare namespace Components {
32583422 EntityId ;
32593423 caller ?: ApiCallerContext ;
32603424 }
3425+ export interface TriggerEventMessaging {
3426+ type ?: "new_email_thread" ;
3427+ /**
3428+ * example:
3429+ * 123
3430+ */
3431+ org_id : string ;
3432+ thread_id : string ;
3433+ message_id : string ;
3434+ entity_id : /**
3435+ * example:
3436+ * e3d3ebac-baab-4395-abf4-50b5bf1f8b74
3437+ */
3438+ EntityId ;
3439+ }
32613440 export interface TriggerShareEntityAction {
32623441 id ?: /**
32633442 * example:
@@ -4611,6 +4790,7 @@ export type MappingAttributeV2 = Components.Schemas.MappingAttributeV2;
46114790export type MappingConfigRef = Components . Schemas . MappingConfigRef ;
46124791export type MoveThreadAction = Components . Schemas . MoveThreadAction ;
46134792export type MoveThreadConfig = Components . Schemas . MoveThreadConfig ;
4793+ export type NewEmailThreadTrigger = Components . Schemas . NewEmailThreadTrigger ;
46144794export type NumericCondition = Components . Schemas . NumericCondition ;
46154795export type OperationNode = Components . Schemas . OperationNode ;
46164796export type OperationObjectNode = Components . Schemas . OperationObjectNode ;
@@ -4637,10 +4817,14 @@ export type StartExecutionRequest = Components.Schemas.StartExecutionRequest;
46374817export type SuffixCondition = Components . Schemas . SuffixCondition ;
46384818export type TriggerCondition = Components . Schemas . TriggerCondition ;
46394819export type TriggerContext = Components . Schemas . TriggerContext ;
4820+ export type TriggerEventAction = Components . Schemas . TriggerEventAction ;
4821+ export type TriggerEventActionConfig = Components . Schemas . TriggerEventActionConfig ;
4822+ export type TriggerEventConfig = Components . Schemas . TriggerEventConfig ;
46404823export type TriggerEventEntityActivity = Components . Schemas . TriggerEventEntityActivity ;
46414824export type TriggerEventEntityOperation = Components . Schemas . TriggerEventEntityOperation ;
46424825export type TriggerEventFlowAutomationTask = Components . Schemas . TriggerEventFlowAutomationTask ;
46434826export type TriggerEventManual = Components . Schemas . TriggerEventManual ;
4827+ export type TriggerEventMessaging = Components . Schemas . TriggerEventMessaging ;
46444828export type TriggerShareEntityAction = Components . Schemas . TriggerShareEntityAction ;
46454829export type TriggerShareEntityActionConfig = Components . Schemas . TriggerShareEntityActionConfig ;
46464830export type TriggerShareEntityConfig = Components . Schemas . TriggerShareEntityConfig ;
0 commit comments