Skip to main content

Module common_types

Module common_types 

Source
Expand description

A2UI v1.0 Common Types

Mirrors the JSON Schema common_types.json — the core data binding types used throughout the A2UI protocol.

Structs§

AccessibilityAttributes
Accessibility attributes for a component.
ActionEvent
A server-bound event with optional context.
CheckRule
A validation check with a boolean condition and an error message.
DataBinding
A JSON Pointer path into the data model. Serialized as { "path": "/some/pointer" }.
FunctionCall
A named function call with arguments. Each argument value can itself be any JSON value (including nested Dynamic values).

Enums§

Action
An action triggered by user interaction (e.g. button click).
Align
Cross-axis alignment (maps to flexbox align-items).
ChildList
Describes the children of a container component.
DynamicBoolean
A value that is either a literal boolean, a data-binding, or a function call.
DynamicBooleanCondition
A value that is either a literal boolean (via condition key), a data-binding, or a function call — used in CheckRule conditions.
DynamicNumber
A value that is either a literal number, a data-binding, or a function call.
DynamicString
A value that is either a literal string, a data-binding, or a function call.
DynamicStringList
A dynamic value that resolves to a list of strings.
DynamicValue
A general-purpose dynamic value — can be any JSON primitive, binding, or function call.
Justify
Main-axis alignment (maps to flexbox justify-content).

Type Aliases§

ComponentId
Unique identifier for a component instance within a surface.