Skip to content

Commit adc419a

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(workspace-events): retain plain event payload type usage
1 parent ecaed56 commit adc419a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/sim/lib/workspace-events/payload.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { dollarsToCredits } from '@/lib/billing/credits/conversion'
33
import {
44
SIM_FINAL_OUTPUT_MAX_BYTES,
55
type SimEventType,
6+
type SimPlainEventType,
67
type SimRuleEventType,
78
} from '@/lib/workspace-events/constants'
89
import type {
@@ -86,7 +87,9 @@ function summarizeRun(context: ExecutionEventContext): SimRunSummary {
8687
* the condition that fired, so it nests under `triggeringRun`.
8788
*/
8889
export 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 {

0 commit comments

Comments
 (0)