Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sixty-years-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/protocol": patch
---

feat(whatsapp): add disconnect reason field for disconnect request
135 changes: 102 additions & 33 deletions livekit/livekit_connector_whatsapp.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion protobufs/livekit_connector_whatsapp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,25 @@ message DialWhatsAppCallResponse {
}

message DisconnectWhatsAppCallRequest {
enum DisconnectReason {
// The call is being disconnected by the business
BUSINESS_INITIATED = 0;
// The call is disconnected by the user.
// This can be tracked as part of call terminate webhook
// https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/user-initiated-calls#call-terminate-webhook
// Note that this webhook will also be sent when the call is disconnected by the business.
// Calling the API twice in such cases will result in an error.
USER_INITIATED = 1;
}

// Required - Call ID sent by Meta
string whatsapp_call_id = 1;
// Required - The API key of the business that is disconnecting the call
// The API key of the whatsapp business.
// Required if the DisconnectReason is BUSINESS_INITIATED.
// Optional for USER_INITIATED as no API call to WhatsApp is needed.
string whatsapp_api_key = 2 [(logger.redact) = true];
// The reason for disconnecting the call
DisconnectReason disconnect_reason = 3;
}

message DisconnectWhatsAppCallResponse {
Expand Down
Loading