twitterapi.models.compliance module

class sparta.twitterapi.models.compliance.ComplianceEvent(*, id: str, action: str, event_at: datetime, event: Dict[str, Any])

Bases: BaseModel

action: str
event: Dict[str, Any]
event_at: datetime
id: str
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'action': FieldInfo(annotation=str, required=True), 'event': FieldInfo(annotation=Dict[str, Any], required=True), 'event_at': FieldInfo(annotation=datetime, required=True), 'id': FieldInfo(annotation=str, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.