Files
meeting-assistant/MeetingAssistant/Workflow/MeetingWorkflowRuleSchema.cs
T
codex 351ed2eb50
PR and Push Build/Test / build-and-test (push) Failing after 9m19s
Fix workflow rule validation logging
2026-06-03 17:33:12 +02:00

58 lines
1.6 KiB
C#

namespace MeetingAssistant.Workflow;
internal static class MeetingWorkflowRuleSchema
{
public const string StepAddAttendee = "add_attendee";
public const string StepRemoveAttendee = "remove_attendee";
public const string StepAddProject = "add_project";
public const string StepSetProperty = "set_property";
public const string StepAddContext = "add_context";
public const string PropertyTitle = "title";
public const string PropertyMeetingTitle = "meeting.title";
public const string PropertyTranscriptLine = "transcript.line";
public const string ParameterTranscriptSpeaker = "transcript.speaker";
public static readonly string[] SupportedTriggerKeys =
[
"created",
"state_transition",
"speaker_identified",
"transcript_line"
];
public static readonly string[] SupportedConditionKeys =
[
"condition",
"and",
"or",
"not"
];
public static readonly string[] SupportedStepUses =
[
StepAddAttendee,
StepRemoveAttendee,
StepAddProject,
StepSetProperty,
StepAddContext
];
public static readonly string[] SupportedSetPropertyNames =
[
PropertyTitle,
PropertyMeetingTitle,
PropertyTranscriptLine
];
public static bool IsStep(string? value, string step)
{
return string.Equals(value?.Trim(), step, StringComparison.OrdinalIgnoreCase);
}
public static bool IsProperty(string? value, string property)
{
return string.Equals(value?.Trim(), property, StringComparison.OrdinalIgnoreCase);
}
}