is_reply_vocabulary 0.2.1
is_reply_vocabulary: ^0.2.1 copied to clipboard
Where a reply goes and the message it posted, as values that name exactly one conversation: a web address or a Slack channel and thread, with their JSON.
Changelog #
0.2.1 #
- New:
ReplyEndpoint.admitsAddress(to, path), whether a request goes to an address the endpoint's replies are sent to, as one rule for every case.RepliesUnderWebAddressadmits what its prefix covers.RepliesInSlackConversationadmits exactlyRepliesInSlackConversation.postMessagePath(/api/chat.postMessage) on its own origin, so no other Slack method, such aschat.delete, is reachable. It checks the address only: a Slack address is the same for every conversation. - New:
ReplyEndpoint.redirectsStayUnder, the path prefix a redirect of an admitted request must stay under: the prefix for a web address,/api/for Slack. It bounds redirects only, never what a reply may reach. - New:
ReplyContent, a reply'sReplyTextand an optional footer, withencodeReplyContent/decodeReplyContent. - No JSON changes.
0.2.0 #
- Breaking:
encodeReplyEndpointandencodePostedMessagereturn achecked_jsonJsonObjectinstead of aMap<String, Object?>. The JSON they write is unchanged, byte for byte;jsonEncodewrites aJsonObjectas it is. A caller that put the result inside another map or list needs no change. One that read it by key, spread it or added to it reads it through a reader,raw,withFieldsorwithoutinstead.
0.1.2 #
decodeReplyEndpointanddecodePostedMessageread their object throughchecked_json'sJsonObjectinstead of a map read by key. They take, accept, refuse and say the same things as before.
0.1.1 #
- New:
ReplyText, a reply's text, made only byparse, which returns null for text of only whitespace or Unicode format characters (Cf, such as U+200B) and otherwise keeps it exactly, untrimmed. It has no length limit. WithencodeReplyText/decodeReplyText, a plain JSON string.
0.1.0 #
ReplyEndpoint,RepliesUnderWebAddress,RepliesInSlackConversation,SlackChannelId,encodeReplyEndpointanddecodeReplyEndpointmoved fromis_docking_station_api0.5.0, so a package that needs where a reply goes, such asis_effects, doesn't depend on the docking station. The JSON they write is unchanged, byte for byte.SlackThreadTimestampis nowSlackMessageTimestamp: a Slacktsnames any message, and a thread is named by its root message's. The field onRepliesInSlackConversationis stillthread, and its JSON key is still"thread".- New:
PostedMessage, the message a reply posted, withPostedUnderWebAddress(anAddressPrefixand aServerAssignedMessageId) andPostedInSlackConversation(aSlackChannelIdand aSlackMessageTimestamp), each made byanswering(endpoint, id)so its conversation is the endpoint's, andencodePostedMessage/decodePostedMessage, as strict as the endpoint pair.