Skip to content

TEL-1319: Proto definitions for sending messages and messaging trunks - #2036

Merged
genseric-ghiro merged 6 commits into
mainfrom
gensericghiro/tel-1319-01-define-the-messaging-protos-in
Dec 4, 2026
Merged

genseric-ghiro merged 6 commits into
mainfrom
gensericghiro/tel-1319-01-define-the-messaging-protos-in

Conversation

@genseric-ghiro

@genseric-ghiro genseric-ghiro commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor
  • Add livekit_messaging.proto with the Messaging service: messaging trunk create, update, get, list, and delete, plus SendMessage.
  • Add MessagingGrant to the access token claims.

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

This PR bumps

  • github.com/livekit/protocol: minor

Also bumped

  • @livekit/protocol: fixed with github.com/livekit/protocol

@genseric-ghiro genseric-ghiro changed the title TEL-1319: add messaging protos and grant TEL-1319: Proto definitions for sending messages and messaging trunks Dec 3, 2026
@genseric-ghiro
genseric-ghiro requested a review from a team December 3, 2026 16:20
@genseric-ghiro genseric-ghiro self-assigned this 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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if these status values aren't shared between inbound and outbound messages, would it be worth creating two distinct enums for them?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@genseric-ghiro
genseric-ghiro merged commit c5bef54 into main Dec 4, 2026
10 checks passed
@genseric-ghiro
genseric-ghiro deleted the gensericghiro/tel-1319-01-define-the-messaging-protos-in branch December 4, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants