import { IsInt, IsObject, IsOptional, IsString } from 'class-validator';

export class ExecuteWorkflowDto {
  @IsOptional()
  @IsObject()
  context?: Record<string, any>;

  @IsOptional()
  @IsInt()
  versionId?: number;
}

export class SignalWorkflowDto {
  @IsString()
  signalName: string;

  @IsObject()
  payload: Record<string, any>;
}
