Repository navigation
TEL-1319: Proto definitions for sending messages and messaging trunks - #2036
Merged
genseric-ghiro merged 6 commits intoDec 4, 2026
Merged
genseric-ghiro merged 6 commits into
genseric-ghiro merged 6 commits into
Conversation
Contributor
|
This PR bumps
Also bumped
|
alexfish8
reviewed
Dec 3, 2026
Comment on lines
+46
to
+70
| // Inbound | ||
|
|
||
| // The webhook passed validation. | ||
| MESSAGE_STATUS_RECEIVED = 1; | ||
| // The webhook failed validation, or the trunk does not accept the message. | ||
| MESSAGE_STATUS_REJECTED = 2; | ||
| // No dispatch rule matched the To number. | ||
| MESSAGE_STATUS_NO_RULE = 3; | ||
| // The agent accepted the message. | ||
| MESSAGE_STATUS_DISPATCHED = 4; | ||
| // The agent was unreachable or returned an error. | ||
| MESSAGE_STATUS_AGENT_FAILED = 5; | ||
|
|
||
| // Outbound | ||
|
|
||
| // Accepted for sending, not yet sent by the provider. | ||
| MESSAGE_STATUS_QUEUED = 6; | ||
| // The provider sent the message to the carrier. | ||
| MESSAGE_STATUS_SENT = 7; | ||
| // The carrier confirmed delivery to the recipient. | ||
| MESSAGE_STATUS_DELIVERED = 8; | ||
| // The carrier could not deliver the message. | ||
| MESSAGE_STATUS_UNDELIVERED = 9; | ||
| // The provider rejected the message or could not send it. | ||
| MESSAGE_STATUS_FAILED = 10; |
Contributor
There was a problem hiding this comment.
if these status values aren't shared between inbound and outbound messages, would it be worth creating two distinct enums for them?
Contributor
Author
There was a problem hiding this comment.
That was my initial thought as well, but since we don't have a distinct struct for inbound and outbound messages (there's just one, Message, it will come in a follow-up PR), it would have added complexity (needing a oneof, + potentially a message direction). I added them here for completeness, but I don't plan on using them right away (so we can still change them later if needed)
alexfish8
approved these changes
Dec 3, 2026
genseric-ghiro
deleted the
gensericghiro/tel-1319-01-define-the-messaging-protos-in
branch
December 4, 2026 19:05
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
livekit_messaging.protowith theMessagingservice: messaging trunk create, update, get, list, and delete, plusSendMessage.MessagingGrantto the access token claims.