ConversationChannelData Class

Extended ChannelData with event type.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Constructor

ConversationChannelData(*, channel: ChannelInfo | None = None, app: AppInfo | None = None, chat: ChatInfo | None = None, replyChain: ReplyChainInfo | None = None, eventType: Literal['channelCreated', 'channelDeleted', 'channelRenamed', 'channelRestored', 'channelShared', 'channelUnshared', 'channelMemberAdded', 'channelMemberRemoved', 'teamArchived', 'teamDeleted', 'teamHardDeleted', 'teamRenamed', 'teamRestored', 'teamUnarchived', 'teamMemberRemoved', 'teamMemberAdded'] | str | None = None, team: TeamInfo | None = None, notification: NotificationInfo | None = None, tenant: TenantInfo | None = None, meeting: MeetingInfo | None = None, settings: ChannelDataSettings | None = None, source: SourceInfo | None = None, feedbackLoopEnabled: bool | None = None, feedbackLoop: FeedbackLoop | None = None, streamId: str | None = None, streamType: Literal['informative', 'streaming', 'final'] | str | None = None, streamSequence: int | None = None, **extra_data: Any)

Keyword-Only Parameters

Name Description
channel
Default value: None
app
Default value: None
chat
Default value: None
replyChain
Default value: None
eventType
Default value: None
team
Default value: None
notification
Default value: None
tenant
Default value: None
meeting
Default value: None
settings
Default value: None
source
Default value: None
feedbackLoopEnabled
Default value: None
feedbackLoop
Default value: None
streamId
Default value: None
streamType
Default value: None
streamSequence
Default value: None

Attributes

event_type

The type of event that occurred.

Known values are enumerated by ConversationEventType, which preserves IDE completion for recognized event types while still accepting any string so that unrecognized or newly introduced event types (e.g. from private/shared channels) do not fail validation.

event_type: Literal['channelCreated', 'channelDeleted', 'channelRenamed', 'channelRestored', 'channelShared', 'channelUnshared', 'channelMemberAdded', 'channelMemberRemoved', 'teamArchived', 'teamDeleted', 'teamHardDeleted', 'teamRenamed', 'teamRestored', 'teamUnarchived', 'teamMemberRemoved', 'teamMemberAdded'] | str | None

model_config

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

model_config: ClassVar[ConfigDict] = {'alias_generator': AliasGenerator(alias=None, validation_alias=<staticmethod(<function CustomBaseModel.validation_alias_generator>)>, serialization_alias=<staticmethod(<function CustomBaseModel.serialization_alias_generator>)>), 'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True, 'serialize_by_alias': True, 'validate_by_alias': True}