from __future__ import annotations
import typing
from strike_api.models.generic import ItemsResponse, StrikeAPIModel
[docs]class Data(StrikeAPIModel):
entityId: str
[docs]class Event(StrikeAPIModel):
id: str
event_type: str
webhook_version: str
data: Data
created: str
delivery_success: bool
[docs]class Events(StrikeAPIModel):
__root__: typing.List[Event]
def __iter__(self) -> typing.Iterator[Event]: # type: ignore
return iter(self.__root__)
def __getitem__(self, index: int):
return self.__root__[index]
[docs]class EventItems(ItemsResponse):
items: typing.List[Event]