-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: send webhooks for forward messages
Signed-off-by: Timo Glastra <timo@animo.id>
- Loading branch information
1 parent
e847cd1
commit d521075
Showing
8 changed files
with
96 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
"""Enum representing captured send status of outbound messages.""" | ||
|
||
from enum import Enum, auto | ||
from enum import Enum | ||
|
||
|
||
class OutboundSendStatus(Enum): | ||
"""Send status of outbound messages.""" | ||
|
||
SENT_TO_SESSION = auto() | ||
QUEUED_FOR_DELIVERY = auto() | ||
# Could directly send the message to the connection over active session | ||
SENT_TO_SESSION = "sent_to_session" | ||
|
||
# Message is sent to external queue. We don't know how it will process the queue | ||
SENT_TO_EXTERNAL_QUEUE = "sent_to_external_queue" | ||
|
||
# Message is queued for delivery using outbound transport (recipient has endpoint) | ||
QUEUED_FOR_DELIVERY = "queued_for_delivery" | ||
|
||
# No endpoint available. | ||
# Need to wait for the recipient to connect with return routing for delivery | ||
WAITING_FOR_PICKUP = "waiting_for_pickup" | ||
|
||
# No endpoint available, and no internal queue for messages. | ||
UNDELIVERABLE = "undeliverable" |