File tree Expand file tree Collapse file tree
apps/sim/lib/workspace-events Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { dollarsToCredits } from '@/lib/billing/credits/conversion'
33import {
44 SIM_FINAL_OUTPUT_MAX_BYTES ,
55 type SimEventType ,
6+ type SimPlainEventType ,
67 type SimRuleEventType ,
78} from '@/lib/workspace-events/constants'
89import type {
@@ -86,7 +87,9 @@ function summarizeRun(context: ExecutionEventContext): SimRunSummary {
8687 * the condition that fired, so it nests under `triggeringRun`.
8788 */
8889export function buildExecutionEventPayload ( params : {
89- event : 'execution_success' | 'execution_error' | SimRuleEventType
90+ event :
91+ | Exclude < SimPlainEventType , 'agent_tool_error' | 'workflow_deployed' | 'workflow_undeployed' >
92+ | SimRuleEventType
9093 workflowName : string
9194 context : ExecutionEventContext
9295} ) : SimEventPayload {
You can’t perform that action at this time.
0 commit comments