is_reply_vocabulary
Where a reply goes and the message it posted, as values that name exactly
one conversation, with their JSON. It holds types and does nothing, and
depends on nothing but dart:core, is_web_address_vocabulary and
checked_json.
ReplyEndpoint: where replies to an event go, sealed, one case for each way an external system takes replies.RepliesUnderWebAddress: anAddressPrefixthat names the conversation, as Teams' Bot Connector takes replies.RepliesInSlackConversation: Slack'sOrigin, aSlackChannelIdand the thread'sSlackMessageTimestamp, null only for a direct message.
PostedMessage: the message a reply posted, sealed, with one case for eachReplyEndpointcase. Each case is made only byanswering, which takes the endpoint it answers and its conversation from it, or bydecodePostedMessage.PostedUnderWebAddress: the conversation'sAddressPrefixand theServerAssignedMessageIdits server gave the message.PostedInSlackConversation: theSlackChannelIdand the posted message'sSlackMessageTimestamp, which a later reply can thread under.
ReplyText: what a reply says, never only whitespace or Unicode format characters (such as U+200B), kept exactly as given. It has no length limit; a driver splits a long text. Its JSON is a plain string.SlackChannelId(C…,D…orG…),SlackMessageTimestamp(1700000000.000100) andServerAssignedMessageId(non-empty, no whitespace) are made only byparse, which returns null for anything else.
Each sealed type has an encodeX / decodeX pair. A decode throws a
FormatException naming the field for an unknown case or a field that is
missing, extra or malformed. Both name their cases the same way:
{"case":"in-slack-conversation","origin":"https://slack.com","channel":"C0123ABC","thread":"1700000000.000100"}
{"case":"in-slack-conversation","channel":"C0123ABC","timestamp":"1700000000.000200"}
is_docking_station_api re-exports all of this from 0.6.0, so its
ReplyEndpoint and this one are the same type. A package that uses both
must require is_docking_station_api: ^0.6.0; 0.5.0 declares its own.
Libraries
- is_reply_vocabulary
- Where a reply goes, a
ReplyEndpoint, what it says, aReplyText, and the message it posted, aPostedMessage, with their JSON.