diff --git a/.changeset/yellow-clocks-join.md b/.changeset/yellow-clocks-join.md new file mode 100644 index 000000000..29d117ded --- /dev/null +++ b/.changeset/yellow-clocks-join.md @@ -0,0 +1,5 @@ +--- +"@livekit/protocol": mintor +--- + +feat: initial connector implementation diff --git a/livekit/livekit_connector_whatsapp.pb.go b/livekit/livekit_connector_whatsapp.pb.go index 8690a78a7..c1de67700 100644 --- a/livekit/livekit_connector_whatsapp.pb.go +++ b/livekit/livekit_connector_whatsapp.pb.go @@ -21,6 +21,7 @@ package livekit import ( + _ "github.com/livekit/protocol/logger" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -717,11 +718,11 @@ var File_livekit_connector_whatsapp_proto protoreflect.FileDescriptor const file_livekit_connector_whatsapp_proto_rawDesc = "" + "\n" + - " livekit_connector_whatsapp.proto\x12\alivekit\x1a\x1clivekit_agent_dispatch.proto\x1a\x11livekit_rtc.proto\"\x8d\x06\n" + + " livekit_connector_whatsapp.proto\x12\alivekit\x1a\x1clivekit_agent_dispatch.proto\x1a\x11livekit_rtc.proto\x1a\x14logger/options.proto\"\x93\x06\n" + "\x17DialWhatsAppCallRequest\x127\n" + "\x18whatsapp_phone_number_id\x18\x01 \x01(\tR\x15whatsappPhoneNumberId\x127\n" + - "\x18whatsapp_to_phone_number\x18\x02 \x01(\tR\x15whatsappToPhoneNumber\x12(\n" + - "\x10whatsapp_api_key\x18\x03 \x01(\tR\x0ewhatsappApiKey\x12;\n" + + "\x18whatsapp_to_phone_number\x18\x02 \x01(\tR\x15whatsappToPhoneNumber\x12.\n" + + "\x10whatsapp_api_key\x18\x03 \x01(\tB\x04\x88\xb5\x18\x01R\x0ewhatsappApiKey\x12;\n" + "\x1awhatsapp_cloud_api_version\x18\f \x01(\tR\x17whatsappCloudApiVersion\x12H\n" + "!whatsapp_biz_opaque_callback_data\x18\x04 \x01(\tR\x1dwhatsappBizOpaqueCallbackData\x12\x1b\n" + "\troom_name\x18\x05 \x01(\tR\broomName\x122\n" + @@ -745,10 +746,10 @@ const file_livekit_connector_whatsapp_proto_rawDesc = "" + "\x1aConnectWhatsAppCallRequest\x12(\n" + "\x10whatsapp_call_id\x18\x01 \x01(\tR\x0ewhatsappCallId\x12-\n" + "\x03sdp\x18\x02 \x01(\v2\x1b.livekit.SessionDescriptionR\x03sdp\"\x1d\n" + - "\x1bConnectWhatsAppCallResponse\"\xb1\x06\n" + + "\x1bConnectWhatsAppCallResponse\"\xb7\x06\n" + "\x19AcceptWhatsAppCallRequest\x127\n" + - "\x18whatsapp_phone_number_id\x18\x01 \x01(\tR\x15whatsappPhoneNumberId\x12(\n" + - "\x10whatsapp_api_key\x18\x02 \x01(\tR\x0ewhatsappApiKey\x12;\n" + + "\x18whatsapp_phone_number_id\x18\x01 \x01(\tR\x15whatsappPhoneNumberId\x12.\n" + + "\x10whatsapp_api_key\x18\x02 \x01(\tB\x04\x88\xb5\x18\x01R\x0ewhatsappApiKey\x12;\n" + "\x1awhatsapp_cloud_api_version\x18\r \x01(\tR\x17whatsappCloudApiVersion\x12(\n" + "\x10whatsapp_call_id\x18\x03 \x01(\tR\x0ewhatsappCallId\x12H\n" + "!whatsapp_biz_opaque_callback_data\x18\x04 \x01(\tR\x1dwhatsappBizOpaqueCallbackData\x12-\n" + diff --git a/protobufs/livekit_connector_whatsapp.proto b/protobufs/livekit_connector_whatsapp.proto index 76e477bda..8fc859a79 100644 --- a/protobufs/livekit_connector_whatsapp.proto +++ b/protobufs/livekit_connector_whatsapp.proto @@ -21,6 +21,7 @@ option ruby_package = "LiveKit::Proto"; import "livekit_agent_dispatch.proto"; import "livekit_rtc.proto"; +import "logger/options.proto"; message DialWhatsAppCallRequest { // Required - The number of the business that is initiating the call @@ -28,7 +29,7 @@ message DialWhatsAppCallRequest { // Required - The number of the user that is supossed to receive the call string whatsapp_to_phone_number = 2; // Required - The API key of the business that is initiating the call - string whatsapp_api_key = 3; + string whatsapp_api_key = 3 [(logger.redact) = true]; // Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc. string whatsapp_cloud_api_version = 12; // Optional - An arbitrary string you can pass in that is useful for tracking and logging purposes. @@ -82,7 +83,7 @@ message AcceptWhatsAppCallRequest { // Required - The number of the business that is conencting the call string whatsapp_phone_number_id = 1; // Required - The API key of the business that is connecting the call - string whatsapp_api_key = 2; + string whatsapp_api_key = 2 [(logger.redact) = true]; // Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc. string whatsapp_cloud_api_version = 13; // Required - Call ID sent by Meta