using System.Text.Json.Serialization;
namespace AIStudio.Assistants.VisualBriefing;
///
/// Stable, content-free validation rules suitable for diagnostics.
///
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum VisualBriefingValidationRule
{
/// No validation rule was violated.
NONE,
/// The response was not valid JSON.
JSON_INVALID,
/// A value did not match its required JSON type.
VALUE_TYPE_INVALID,
/// The response contained an unknown field.
UNKNOWN_FIELD,
/// The response used an unsupported contract version.
CONTRACT_VERSION_UNSUPPORTED,
/// An identifier was empty, malformed, or duplicated.
ID_INVALID,
/// A reference did not resolve to its required target.
REFERENCE_INVALID,
/// Source coverage was incomplete or duplicated.
SOURCE_COVERAGE_INVALID,
/// The visual asset plan was incomplete or invalid.
ASSET_PLAN_INVALID,
/// Planned content slots were missing, duplicated, or unexpected.
SLOT_FULFILLMENT_INVALID,
/// A slot value did not match its planned semantic type.
SLOT_VALUE_TYPE_INVALID,
/// The set of charts did not match the planned components.
CHART_SET_INVALID,
/// A chart contained invalid categories or series values.
CHART_DATA_INVALID,
/// An interaction control identifier was invalid.
CONTROL_ID_INVALID,
/// An interaction control targeted an invalid component.
CONTROL_TARGET_INVALID,
/// An interaction control used an invalid initial state.
CONTROL_STATE_INVALID,
/// A component did not satisfy its required controls.
CONTROL_REQUIREMENT_INVALID,
/// A formula targeted an invalid component or output slot.
FORMULA_TARGET_INVALID,
/// A formula tree contained an invalid operation or argument shape.
FORMULA_AST_INVALID,
/// The set of accessibility texts did not match component requirements.
ACCESSIBILITY_SET_INVALID,
/// An accessibility text was empty or invalid.
ACCESSIBILITY_TEXT_INVALID,
/// The bounded presentation layout was invalid.
LAYOUT_INVALID,
/// A compiled template used a prohibited attribute.
TEMPLATE_ATTRIBUTE_PROHIBITED,
/// A model response attempted to provide markup.
MODEL_MARKUP_PROHIBITED,
/// AI Studio's deterministic compiler produced invalid output.
COMPILER_OUTPUT_INVALID,
}